Skip to content

Commit

Permalink
fix(ssm): add GetParameters action to grantRead() (aws#3546)
Browse files Browse the repository at this point in the history
  • Loading branch information
jogold authored and Elad Ben-Israel committed Aug 6, 2019
1 parent 6ce248b commit ebaa1b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ export = {
{
Action: [
'ssm:DescribeParameters',
'ssm:GetParameters',
'ssm:GetParameter',
'ssm:GetParameterHistory'
],
Expand Down
7 changes: 6 additions & 1 deletion packages/@aws-cdk/aws-ssm/lib/parameter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,12 @@ abstract class ParameterBase extends Resource implements IParameter {
public grantRead(grantee: iam.IGrantable): iam.Grant {
return iam.Grant.addToPrincipal({
grantee,
actions: ['ssm:DescribeParameters', 'ssm:GetParameter', 'ssm:GetParameterHistory'],
actions: [
'ssm:DescribeParameters',
'ssm:GetParameters',
'ssm:GetParameter',
'ssm:GetParameterHistory'
],
resourceArns: [this.parameterArn],
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
{
"Action": [
"ssm:DescribeParameters",
"ssm:GetParameters",
"ssm:GetParameter",
"ssm:GetParameterHistory"
],
Expand Down

0 comments on commit ebaa1b5

Please sign in to comment.