Skip to content
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

update iam-role to iam-role-mapping #4023

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

panbenson
Copy link
Contributor

follow up for #3994

iam roles typically differ between environments so using same --iam-role may not always be valid.

update this variable to --iam-role-mapping so we can pass in a mapping from environment to role to account for this (e.g. {"dev": "some_role", "prod": "another_role"})

@panbenson panbenson requested a review from a team as a code owner March 18, 2025 18:14
@nemacysts nemacysts self-requested a review March 20, 2025 15:08
Comment on lines 168 to 174
parser.add_argument(
"--iam-role",
help="IAM role to use for the shard",
"--iam-role-mapping",
help="JSON string of deploy_prefix to IAM role mapping to use for the shard",
required=False,
type=str,
dest="iam_role",
dest="iam_role_mapping",
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you'll probably want to have both args exist temporarily - otherwise, there'll be a brief period of time where this is broken since either --iam-role or --iam-role-mapping won't exist in the deployed paasta package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants