Passing deploy role to stack params#96
Conversation
✅ Deploy Preview for sst-docs canceled.
|
|
Having experienced the same permissions issues with my team after bumping from v2.47.3 -> v2.49.2, can confirm copying this change into our repo using Would appreciate this getting merged in soon so we can replace the patch with an actual fixed package 😊 |
|
@jayair wondering if you could help review this PR? Many thanks |
|
I have tried this, upgrade from 2.48.5 -> 2.49.3 and then implement the code change using the But still get this error: After trying to re-deploy, I now get this error I think it's not stable, usually when it does not exist, SST will automatically create the stack |
I believe that's a different issue than the one that this PR is trying to fix. This PR is in regards to permissions issues. But we are awaiting the permission issues to be resolved before we can update to v2.49.X |
Hey yea it looks like a different issue. I do notice that issue since v2.49 update though. So basically here is how it can happen:
For me, I just need to do another deployment (with the initial deployment issue fixed) and won't see stack not found error anymore. Maybe this will fix the issue #105 🤷 |
|
Worth noting that this patch doesn't fully fix the permission issues that we experience in local development with v2.49.2 -- we now have a permission error for being unauthorized to iam:PassRole. I'm not sure of the old implementation -- I assume it was assuming a role rather than passing? Edit: Perhaps obviously so -- this is issue/PR is directly in regard to passing a role😄 |
I found that cdk deploy role aren't being used for deployment, resulted in unnecessary permissions needed for deplooyment.
#82 (comment)
The easiest option to fix it seems to be passing cdk deploy role to CloudFormation stack params.
However, might need to look into using @aws-cdk/toolkit-lib to handle deployment if possible.