-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Bug]: aws_ssm_activation ValidationException: Nonexistent role or missing ssm service principal in trust policy #27952
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
I think
might fix it. Replace name by id for the role. Can you confirm that? If yes, the documentation needs an update. |
replacing name with id is not making any difference |
I think it's a race condition. Running The first time; when |
I am seeing the role be created and the policy get attached before and I even use a depends_on statement for the role attachment so the role has to exist technically for everything to be true. The "missing ssm service principal in trust policy" seems to be more of the smoking gun however it does create the activation for me on the second apply attempt. I am using version 1.0.6 in the environment I am experiencing this in. |
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. |
Terraform Core Version
1.3.5
AWS Provider Version
4.40.0
Affected Resource(s)
Expected Behavior
Using the example code from https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_activation
One would expect all resources to be created.
Actual Behavior
Relevant Error/Panic Output Snippet
Terraform Configuration Files
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_activation
Steps to Reproduce
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_activation
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: