Difference between revisions of "Terraform: VPCIdNotSpecified"
Jump to navigation
Jump to search
(Created page with " aws_instance.myinfo: Creating... ╷ │ Error: Error launching source instance: VPCIdNotSpecified: No default VPC for this user. GroupName is only supported for EC...") |
|||
(15 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
aws_instance.myinfo: Creating... | aws_instance.myinfo: Creating... | ||
╷ | ╷ | ||
− | │ Error: Error launching source instance: VPCIdNotSpecified: No [[default VPC]] for this user. GroupName is only | + | │ Error: Error launching source instance: VPCIdNotSpecified: No [[default VPC]] for this user. [[GroupName]] is only |
supported for EC2-Classic and default VPC. | supported for EC2-Classic and default VPC. | ||
│ status code: 400, request id: 760acc5b-bbe5-4a22-98d4-33a3ed190409 | │ status code: 400, request id: 760acc5b-bbe5-4a22-98d4-33a3ed190409 | ||
│ | │ | ||
− | │ with aws_instance.MyInstanceName, | + | │ with [[aws_instance]].MyInstanceName, |
│ on main.tf line 22, in resource "aws_instance" "MyInstanceName": | │ on main.tf line 22, in resource "aws_instance" "MyInstanceName": | ||
│ 22: resource "[[aws_instance]]" "MyInstanceName" { | │ 22: resource "[[aws_instance]]" "MyInstanceName" { | ||
+ | ╵ | ||
+ | |||
+ | |||
+ | │ Error: Error launching source instance: VPCIdNotSpecified: No default VPC for this user. GroupName is only supported for EC2-Classic and default VPC. | ||
+ | │ status code: 400, request id: 1dfaab37-725c-4d52-ba9c-7a59c63f388b | ||
│ | │ | ||
− | + | │ with aws_instance.myUbuntuMicroInstance, | |
+ | │ on main.tf line 22, in resource "aws_instance" "myUbuntuMicroInstance": | ||
+ | │ 22: resource "aws_instance" "myUbuntuMicroInstance" { | ||
+ | |||
+ | |||
+ | == Related == | ||
+ | * [[AWS default VPC]] | ||
+ | * <code>[[subnet_id]]</code> | ||
+ | * <code>[[terraform import aws default vpc.default]]</code> | ||
+ | * <code>[[Terraform module: vpc]]</code> | ||
+ | * <code>[[aws ec2 describe-instances]] | grep -i SubnetId</code> | ||
+ | * [[Terraform: AWS instance example with aws ami lookup and key name]] | ||
+ | * [[aws ec2 create-default-vpc]] | ||
== See also == | == See also == | ||
* {{terraform apply}} | * {{terraform apply}} | ||
− | * {{terraform}} | + | * {{terraform examples}} |
+ | * {{AWS VPC}} | ||
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 11:05, 19 October 2023
aws_instance.myinfo: Creating... ╷ │ Error: Error launching source instance: VPCIdNotSpecified: No default VPC for this user. GroupName is only supported for EC2-Classic and default VPC. │ status code: 400, request id: 760acc5b-bbe5-4a22-98d4-33a3ed190409 │ │ with aws_instance.MyInstanceName, │ on main.tf line 22, in resource "aws_instance" "MyInstanceName": │ 22: resource "aws_instance" "MyInstanceName" { ╵
│ Error: Error launching source instance: VPCIdNotSpecified: No default VPC for this user. GroupName is only supported for EC2-Classic and default VPC. │ status code: 400, request id: 1dfaab37-725c-4d52-ba9c-7a59c63f388b │ │ with aws_instance.myUbuntuMicroInstance, │ on main.tf line 22, in resource "aws_instance" "myUbuntuMicroInstance": │ 22: resource "aws_instance" "myUbuntuMicroInstance" {
Related[edit]
- AWS default VPC
subnet_id
terraform import aws default vpc.default
Terraform module: vpc
aws ec2 describe-instances | grep -i SubnetId
- Terraform: AWS instance example with aws ami lookup and key name
- aws ec2 create-default-vpc
See also[edit]
terraform apply
[-auto-approve
|-refresh-only, -destroy | --help ]
, Terraform examples,Still creating...
, Terraform apply examples with errors- Terraform examples: AWS create s3 bucket
- AWS VPC, AWS default VPC, AWS VPC sharing, AWS subnets, Amazon VPC NAT gateway, Amazon VPN internet gateway, VPC Flow Logs,
aws ec2 create-vpc
,aws ec2 describe-vpcs
, NACL, VPC Scenarios, AWS VPC endpoint, AWS ClassicLink, VPC peering, Reachability Analyzer, AWS internet gateway, VPC Lattice,vpce.amazonaws.com
Advertising: