aws / aws-parallelcluster-ui

Apache License 2.0
31 stars 17 forks source link

[Infrastructure] Add EC2 permissions required by PCUI private deployment only when private deployment is enabled. #297

Closed gmarciani closed 7 months ago

gmarciani commented 7 months ago

Description

Add EC2 permissions required by PCUI private deployment only when private deployment is enabled. In particular, the following permissions are required by the PCUI Lambda execution role when private deployment is enabled:

  1. ec2:CreateNetworkInterface
  2. ec2:DeleteNetworkInterface
  3. ec2:AttachNetworkInterface
  4. ec2:DescribeNetworkInterfaces
  5. ec2:DescribeInstances

How Has This Been Tested?

  1. Deployed in personal environment with private deployment disabled: deployment succeeded, extra permissions not deployed, cluster creation succeeded.
  2. Deployed in personal environment with private deployment enable: deployment succeeded, extra permissions are deployed, cluster creation succeeded.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.