fix: propagate role_arn to companion stack CloudFormation calls (#5051) - #9263
Open
Som0111 wants to merge 4 commits into
Open
fix: propagate role_arn to companion stack CloudFormation calls (#5051)#9263Som0111 wants to merge 4 commits into
Som0111 wants to merge 4 commits into
Conversation
Author
|
Fixed in latest commit (f6b18a9):
|
Author
|
Addressed all bot findings in latest commits:
All 58 unit tests pass. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue(s) does this change fix?
#5051
Why is this change necessary?
When
sam deploy --role-arnis supplied, the companion stack's CloudFormationcalls did not pass the RoleArn argument. This caused permission errors when
the caller lacked
ecr:CreateRepositorybut the service role had it.How does it address the issue?
Propagates role_arn through the deploy call chain into CompanionStackManager
so create_stack and update_stack both receive RoleArn when set.
What side effects does this change have?
None — role_arn defaults to None, keeping existing behavior unchanged when
--role-arn is not supplied.
Mandatory Checklist
make prpasses (no local dev env with all deps installed)make update-reproducible-reqs(no dependencies changed)By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.