-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Support for RDS AddRoleToDBCluster with FeatureName #9552
Comments
I'd like to take this |
If you create the cluster in Terraform using the
|
@richardj-bsquare For us adding via AWS Console is enough, TF correctly picks up the association and no changes are shown in the plan even without the ignore. What AWS provider version do you use? |
No idea on the precise version, since I have a '~>' version specification on a rolling CI/CD deployment, so it would be whatever version was released prior to the post date above. |
Unfortunately, @richardj-bsquare's workaround is not working for me. After adding the role with the Anyone know of any other workarounds?
|
Update: appears to work if I manually un-taint it
|
when you say it worked, do you mean you used |
yes @antoxavier |
@jritsema i see this new code that has been added for if i am correct we are using 0.11 |
no need to upgrade terraform itself...just |
@jritsema thank you |
The update still only adds instance-level association as opposed to role-level association. That's not necessarily conducive to using a |
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. |
Community Note
Description
Resource object exists aws_rds_cluster which supports optional IAM Role attachments to the cluster via the argument iam_roles.
The implementation leverages AddRoleToDBCLuster to accomplish this task.
FeatureName is not listed as a required argument. For Amazon Aurora PostgreSQL attaching an IAM Role without a feature name results in
The feature-name parameter must be provided with the current operation for the Aurora (PostgreSQL) engine.
Currently there is not a mechanism for attaching feature-name on the existing aws_rds_cluster resource. There is an aws_db_instance_role_association resource which accepts feature_name for attaching a role to an instance.
This request is to add a resource for associating a role to an RDS cluster.
New or Affected Resource(s)
Potential Terraform Configuration
References
https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_AddRoleToDBCluster.html
https://aws.amazon.com/about-aws/whats-new/2019/06/amazon-aurora-with-postgresql-compatibility-supports-data-import-from-amazon-s3/
https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DBEngineVersion.html
SupportedFeatureNames:
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Migrating.html#USER_PostgreSQL.S3Import
The text was updated successfully, but these errors were encountered: