Skip to content

Commit

Permalink
Fix broken sanity check for custom EC2 role
Browse files Browse the repository at this point in the history
aws#1241
Signed-off-by: Francesco De Martino <fdm@amazon.com>
  • Loading branch information
demartinofra committed Aug 1, 2019
1 parent a391d89 commit afe624b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/pcluster/config_sanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,10 @@ def validate(self, resource_type, resource_value): # noqa: C901 FIXME
"arn:%s:dynamodb:%s:%s:table/parallelcluster-*" % (partition, self.region, account_id),
),
(
["cloudformation:DescribeStacks"],
["cloudformation:DescribeStackResource"],
[
"cloudformation:DescribeStacks",
"cloudformation:DescribeStackResource",
],
"arn:%s:cloudformation:%s:%s:stack/parallelcluster-*/*" % (partition, self.region, account_id),
),
(["s3:GetObject"], "arn:%s:s3:::%s-aws-parallelcluster/*" % (partition, self.region)),
Expand Down

0 comments on commit afe624b

Please sign in to comment.