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

Error when creating role in China #437

Closed
stephenrjohnson opened this issue Mar 14, 2024 · 3 comments · Fixed by #442
Closed

Error when creating role in China #437

stephenrjohnson opened this issue Mar 14, 2024 · 3 comments · Fixed by #442
Labels

Comments

@stephenrjohnson
Copy link

https://github.com/terraform-aws-modules/terraform-aws-rds-aurora/blame/ec99016a364fe7abee822f78a11b8ccfccaa70d9/main.tf#L240

Error:
│ Error: creating IAM Role (terraform-20240314084919599800000001): MalformedPolicyDocument: Invalid principal in policy: "SERVICE":"monitoring.rds.amazonaws.com.cn" │ status code: 400, request id: 607f6a7e-6557-4b0d-90d3-822172f306c4 │ │ with module.rds.module.rds_cluster.aws_iam_role.rds_enhanced_monitoring[0], │ on .terraform/modules/rds.rds_cluster/main.tf line 245, in resource "aws_iam_role" "rds_enhanced_monitoring": │ 245: resource "aws_iam_role" "rds_enhanced_monitoring" {

On opening a role that works in China it's
{ "Version": "2012-10-17", "Statement": [ { "Sid": "", "Effect": "Allow", "Principal": { "Service": "monitoring.rds.amazonaws.com" }, "Action": "sts:AssumeRole" } ] }

So it seems to me in china the suffix should be .com for ht service, unless I'm missing something. Can anyone else confirm this is the case?

@stephenrjohnson
Copy link
Author

Is this s bug in AWS RDS China?

@antonbabenko
Copy link
Member

This issue has been resolved in version 9.3.1 🎉

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants