aws-samples / amazon-ec2-nice-dcv-samples

AWS CloudFormation templates to provision Linux or Windows EC2 instances with GUI running NICE DCV remote display server. Includes option to install GPU drivers
MIT No Attribution
37 stars 3 forks source link

VPC and Subnet - part of CloudFormation stacks #3

Closed ruzickap closed 5 months ago

ruzickap commented 5 months ago

Hello

Wouldn't it make sense to have some "default" VPC and Subnet part of the CloudFormation templates?

Ideally end users should these templates as "easy to go" solution without creating the VPC/Subnet in advance.

Thank you for a great work...

limmike commented 5 months ago

Hello

When users start using AWS, they have a default VPC in each region. The default VPC comes with a public subnet in each AZ, an internet gateway, and settings to enable DNS resolution. There is no need to create VPC and subnet in advance.

Users can select default VPC and subnet in the CloudFormation parameters page, and use default settings for the rest. They do need to create EC2 key pair (for Linux), and I have included link (https://console.aws.amazon.com/ec2/#KeyPairs) in parameter description for user convenience. User can also use AWS CLI from CloudShell to get the values,

aws ec2 describe-vpcs --query "Vpcs[*].VpcId"
aws ec2 describe-subnets --query 'Subnets[*].[SubnetId,VpcId]' 

Thanks for the feedback!