Created
September 24, 2018 08:51
-
-
Save pwood/2a33411475622cb253b18fdead3bef82 to your computer and use it in GitHub Desktop.
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
"SSMCredentialPolicy": { | |
"Type": "AWS::IAM::Policy", | |
"Properties": { | |
"Roles": [ | |
{ | |
"Ref": "FetcherTaskRole" | |
} | |
], | |
"Users": [ | |
{ | |
"Ref": "BackendFetcherTestUser" | |
} | |
], | |
"PolicyName": "GetSteamCredentialsFromSSM", | |
"PolicyDocument": { | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"ssm:GetParameter*" | |
], | |
"Resource": [ | |
{ | |
"Fn::Sub": "arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/steam/username" | |
}, | |
{ | |
"Fn::Sub": "arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/steam/password" | |
}, | |
{ | |
"Fn::Sub": "arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/steam/depot/*" | |
} | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"ssm:PutParameter" | |
], | |
"Resource": [ | |
{ | |
"Fn::Sub": "arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/steam/depot/*" | |
} | |
] | |
} | |
] | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment