Replies: 3 comments 1 reply
-
I am seeing the same issue in circleCI, any updates on this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I also see this suddenly happening... I used to be able to synth and deploy my stack until |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to limit the amount of permissions for a user to run CDK. Reading this fabulous doc page I understand the unique permissions that a user needs to run CDK is to be able to assume the
cdk-
roles created during thecdk bootstrap
. So I created a new user and placed this policy:When running
cdk diff
with the user with the above policy I get the error[100%] fail: Bucket named 'cdk-*-assets-*-*' exists, but not in account <account-id>. Wrong account?
. Using cloudtrail and runningcdk diff -v
I found that the issue happens in theGetBucketLocation
request and allowing the user to dos3:GetBucketLocation
seems to fix the issue (a new one appears but I guess it is also due to missing permissions).I did not find this issue earlier as the user I was using during testing has a more permissive set of permissions and I guess I could workaround this issue by adding the missing permissions but, if I understand correctly, with the policy I attached to the user it should be enough as the bootstrapped roles do already have the
s3:GetBucket*
action. What am I missing? Is this worth to open an issue? I did not want to open an issue until I am certainly that I understand how CDK interacts with the bootstrapped roles and with the identity running the CDK command.Reading this similar issue I have verified that the CDK bootstrapped roles have the correct policies and are pointing to the correct bucket.
Beta Was this translation helpful? Give feedback.
All reactions