Skip to content

Commit

Permalink
remove listversionObject and ListBucketVersions access to compute node
Browse files Browse the repository at this point in the history
  • Loading branch information
Himani Deshpande committed Oct 29, 2024
1 parent 31f56ff commit 522ad2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/pcluster/templates/cdk_builder_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ def _build_policy(self) -> List[iam.PolicyStatement]:
),
iam.PolicyStatement(
sid="S3GetLaunchTemplate",
actions=["s3:GetObject", "s3:ListBucket", "s3:ListObjectVersions", "s3:ListBucketVersions"],
actions=["s3:GetObject", "s3:ListBucket"],
effect=iam.Effect.ALLOW,
resources=[
self._format_arn(service="s3", resource=self._cluster_bucket.name, region="", account=""),
Expand Down

0 comments on commit 522ad2a

Please sign in to comment.