You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
It is currently possible to create a data source for a number of different AWS resources; however, it looks like aws_iam_role is missing. My team has a repository for all of our baseline infrastructure templates, and we put templates for applications in their own, separate, repository. This is intended to reduce risk for big changes. As such, we'd like to be able to define aws_iam_roles (e.g. for monitoring roles) in our central repository, and then have the application templates refer to it via a data definition.
Resources such as aws_db_cluster_instance require the ARN of the IAM role for monitoring, and we'd rather not have to hard-code it in these separate resources.
I'd like to be able to add a data source that is a reference to a pre-existing IAM role.
Actual Behavior
I can currently not use a data source to reference a pre-existing IAM role. I have to either hard-code the ARN or use the external data feature to look up the ARN via the AWS CLI.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
+1 for the data sources feature. I'm looking at terraform for the first time in a while, and they're a welcome addition.
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here?
Not that I could find.
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 13, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there,
It is currently possible to create a data source for a number of different AWS resources; however, it looks like aws_iam_role is missing. My team has a repository for all of our baseline infrastructure templates, and we put templates for applications in their own, separate, repository. This is intended to reduce risk for big changes. As such, we'd like to be able to define aws_iam_roles (e.g. for monitoring roles) in our central repository, and then have the application templates refer to it via a data definition.
Resources such as aws_db_cluster_instance require the ARN of the IAM role for monitoring, and we'd rather not have to hard-code it in these separate resources.
Terraform Version
0.9.0
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
N/A
Panic Output
N/A
Expected Behavior
I'd like to be able to add a data source that is a reference to a pre-existing IAM role.
Actual Behavior
I can currently not use a data source to reference a pre-existing IAM role. I have to either hard-code the ARN or use the external data feature to look up the ARN via the AWS CLI.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
+1 for the data sources feature. I'm looking at terraform for the first time in a while, and they're a welcome addition.
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here?
Not that I could find.
The text was updated successfully, but these errors were encountered: