-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Service Configuration Manager role based access improvements (#…
- Loading branch information
Showing
4 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
10 changes: 9 additions & 1 deletion
10
twilio-iac/scripts/python_tools/src/service_configuration/constants.py
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
""" Constants for the service configuration manager """ | ||
AWS_ROLE_ARN: str = 'arn:aws:iam::712893914485:role/twilio-iac-service-config-manager' | ||
AWS_ROLE_ARNS: dict[str, str] = { | ||
'developer': 'arn:aws:iam::712893914485:role/twilio-iac-service-config-developer', | ||
'manager': 'arn:aws:iam::712893914485:role/twilio-iac-service-config-manager', | ||
} | ||
|
||
def get_aws_role_arn(environment: str): | ||
role_key = "manager" if environment == "production" else "developer" | ||
aws_role_arn = AWS_ROLE_ARNS.get(role_key) | ||
return aws_role_arn |
This file contains 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
This file contains 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