Closed estebane-frb closed 2 years ago
The issue is most likely not with the deploy-role
, but the cfn-exec-role
. This is the role that CloudFormation uses to perform all calls it needs to.
Make sure that role has ssm:GetParameters
.
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
@rix0rrr it helps a lot
@rix0rrr i have attached same permission to cfn-exec-role. Unfortunately its not work. getting error as mentioned title.
Describe the bug
Following this cdk workshop when using an AWS GovCloud account fails when running
cdk deploy
command with the following error:AWS CDK version: 2.30.0 (build 1529743)
Expected Behavior
Stack deploys successfully as instructed in the Workshop
Current Behavior
See error pasted above.
Reproduction Steps
Follow the steps in this workshop https://cdkworkshop.com/30-python.html
Possible Solution
The cloudtrail even shows the following information: "eventSource": "cloudformation.amazonaws.com", "eventName": "CreateChangeSet", "awsRegion": "us-gov-west-1", "errorCode": "ValidationException", "errorMessage": "AccessDenied. User doesn't have permission to call ssm:GetParameters", "requestParameters": null, "responseElements": null,
There is a validation step in CreateChangeSet that I think checks cached metadata about the deploy-role generated during bootstrap. Even if I manually change the
cdk-*********-deploy-role-**************-us-gov-west-1
IAM role default policy to include sam:GetParameters (notice that the policy is missing sam:GetParameters), the CreateChangeSet action does not seem to be checking the actual IAM role. Is it possible that it is checking somewhere else?Additional Information/Context
No response
CDK CLI Version
2.30.0 (build 1529743)
Framework Version
No response
Node.js Version
Node.js v17.9.0
OS
Mac OS (Monterrey) / Intel
Language
Python
Language Version
Python 3.8.2
Other information
Colleague reported seeing the same issue in Typescript sample