The specified VPC does not support DNS resolution, DNS hostnames, or both.
You can enable DNS and hostname resolution with the AWS CLI - by downloading the AWS Tools for PowerShell and running the following commands:
aws ec2 modify-vpc-attribute --vpc-id vpc-123456 --enable-dns-support --enable-dns-hostnames
aws ec2 modify-vpc-attribute --vpc-id vpc-123456 -enable-dns-hostnames
and re-running the step that flagged up the error initially.
For others who find this, you can also quickly go to the VPC Management Console:
ReplyDeletehttps://console.aws.amazon.com/vpc/
Right click on the VPC and Edit the two DNS options, and set to Yes.