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:
ec2:CreateNetworkInterface
ec2:DeleteNetworkInterface
ec2:AttachNetworkInterface
ec2:DescribeNetworkInterfaces
ec2:DescribeInstances
How Has This Been Tested?
Deployed in personal environment with private deployment disabled: deployment succeeded, extra permissions not deployed, cluster creation succeeded.
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.
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:
How Has This Been Tested?
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.