Skip to content

Commit

Permalink
Fix broken sanity check for custom EC2 role
Browse files Browse the repository at this point in the history
#1241

Signed-off-by: Francesco De Martino <fdm@amazon.com>
  • Loading branch information
demartinofra committed Aug 2, 2019
1 parent f294fb5 commit 415f050
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli/pcluster/config_sanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,7 @@ 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 415f050

Please sign in to comment.