Last active
July 24, 2022 14:10
-
-
Save camin-mccluskey/a48f13f31e2828b91184998cfab62fc5 to your computer and use it in GitHub Desktop.
NumberCrunchingServiceRole
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
--- | |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: Role for Number Crunching Service Container Instance Role with permission to assume SecretMarsDataReadOnlyRole | |
Outputs: | |
RoleARN: | |
Description: ARN of the container instance role | |
Value: | |
Fn::GetAtt: | |
- NumberCrunchingServiceRole | |
- Arn | |
Resources: | |
NumberCrunchingServiceRole: | |
Type: AWS::IAM::Role | |
Properties: | |
AssumeRolePolicyDocument: | |
Version: 2012-10-17 | |
Statement: | |
- Effect: Allow | |
Principal: | |
Service: | |
- ec2.amazonaws.com # allow EC2 instances to assume this role | |
Action: | |
- sts:AssumeRole | |
Path: / | |
Policies: | |
- PolicyDocument: | |
Statement: | |
- Action: sts:AssumeRole | |
Effect: Allow | |
Resource: | |
- arn:aws:iam::9999999999:role/SecretMarsDataReadOnlyRole # specify that containers running with this role can assume NASA's SecretMarsDataReadOnlyRole | |
Version: 2012-10-17 | |
PolicyName: SecretMarsDataReadOnlyRoleAssumeRole |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment