Closed elduds closed 1 year ago
Thanks for the report.
Stack creation fails as your EC2 is not provisioned in a public subnet, i.e. it does not have a public IP.
For EC2 in public subnet, assignStaticIP
provides option to associate a static internet IP via Elastic IP.
As per EC2 instance in private subnet, you can either remove or comment out the last 3 lines in yaml file.
Add displayPublicIP
CloudFormation parameter. Set this to No
if EC2 has no public IP.
Editing of template file is no longer required.
https://github.com/aws-samples/amazon-ec2-nice-dcv-samples/blob/c0b9957144b7b1d5b477216742ed9c3f346a60b2/cfn/AmazonLinux2-NICE-DCV.yaml#L535
Suggest adding a condition to the output eg.