Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output the role names and pass them to other modules #18

Open
bhavikkumar opened this issue May 4, 2019 · 0 comments
Open

Output the role names and pass them to other modules #18

bhavikkumar opened this issue May 4, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@bhavikkumar
Copy link
Owner

Currently a module know what the roles are that are being created. Instead the names should be passed in to the module as a variable.

For example currently principals in the terraform-state module are defined as:

 "arn:aws:iam::${var.account_id}:role/OrganizationAccountAccessRole",
 "arn:aws:iam::${var.account_id}:role/Admin",
 "arn:aws:iam::${var.account_id}:role/Terraform",

Instead this could be achieved by a list variable and the following block:

"${formatlist("arn:aws:iam::%s:role%s", var.account_id, var.role_names)}"
@bhavikkumar bhavikkumar added the enhancement New feature or request label May 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant