Skip to content

Instantly share code, notes, and snippets.

@pwood
Created September 24, 2018 08:51
Show Gist options
  • Save pwood/2a33411475622cb253b18fdead3bef82 to your computer and use it in GitHub Desktop.
Save pwood/2a33411475622cb253b18fdead3bef82 to your computer and use it in GitHub Desktop.
"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