Skip to content

Commit

Permalink
feat(policy-template): adding cloudwatch:describeAlarmHistory policy (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
zmaleki authored and Shreya Gangishetty committed Dec 6, 2019
1 parent 7c438c0 commit d5a7c50
Show file tree
Hide file tree
Showing 6 changed files with 208 additions and 147 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Resources:
- LambdaInvokePolicy:
FunctionName: name

- CloudWatchDescribeAlarmHistoryPolicy: {}

- CloudWatchPutMetricPolicy: {}

- EC2DescribePolicy: {}
Expand Down
15 changes: 15 additions & 0 deletions samtranslator/policy_templates_data/policy_templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,21 @@
]
}
},
"CloudWatchDescribeAlarmHistoryPolicy": {
"Description": "Gives permissions to describe CloudWatch alarm history",
"Parameters": {},
"Definition": {
"Statement": [
{
"Effect": "Allow",
"Action": [
"cloudwatch:DescribeAlarmHistory"
],
"Resource": "*"
}
]
}
},
"CloudWatchPutMetricPolicy": {
"Description": "Gives permissions to put metrics to CloudWatch",
"Parameters": {
Expand Down
2 changes: 2 additions & 0 deletions tests/translator/input/all_policy_templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Resources:
- LambdaInvokePolicy:
FunctionName: name

- CloudWatchDescribeAlarmHistoryPolicy: {}

- CloudWatchPutMetricPolicy: {}

- EC2DescribePolicy: {}
Expand Down
Loading

0 comments on commit d5a7c50

Please sign in to comment.