ruby_terraform | A simple Ruby wrapper for invoking terraform commands | Infrastructure Automation library
kandi X-RAY | ruby_terraform Summary
kandi X-RAY | ruby_terraform Summary
A simple Ruby wrapper for invoking terraform commands.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Execute a workspace
- Gets the default logger .
- Execute the shell command
- Execute a shell
- Execute a shell
- Dispatches the prompt .
- Move the state of the state machine .
- List all state states
- Implements the input to the server
- Validates the given input .
ruby_terraform Key Features
ruby_terraform Examples and Code Snippets
Community Discussions
Trending Discussions on ruby_terraform
QUESTION
I'm trying to setup terraform to handle creation of fine-grained user permissions, and have been able to create:
- Cognito User Pools, Identity Pools
- IAM Roles, Permissions
What I'm struggling with is how to link them together. I have two types of user:
- Standard User
- Manager
As such, I have found two ways that I could use to correctly hook up the correct IAM policy upon login:
Method 1 - Create a custom attribute, and Use the "Choose Role With Rules" to set a rule to set an IAM policy based on the attribute
Method 2 - Create Cognito Groups, and link users and the required IAM policy to each group.
The problem, as far as I can see, is that Terraform doesn't currently support either of those cases, so I need to find a work around. So, my question is essentially, how do I get around terraform's lack of support in some areas?
I've seen some projects that use [Ruby, Go, etc.] to make up for some of the limitations, but I don't quite understand where to start and what is the best option for my needs. I haven't been able to find much in Google yet (possibly https://github.com/infrablocks/ruby_terraform). Does anyone have a good guide or resource I could use to get started?
...ANSWER
Answered 2018-Feb-23 at 16:39If terraform does not support something you can use the local-exec
provisioner to execute commands after resource creation. For example you could use the aws cli to add a custom attribute:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ruby_terraform
There are a couple of ways to call Terraform using RubyTerraform. Firstly, the RubyTerraform module includes class methods for each of the supported Terraform commands. Each class method takes a parameter hash containing options to pass to Terraform.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page