terraform import aws default vpc.default
Jump to navigation
Jump to search
terraform import aws_default_vpc.default vpc-a01106c2 Error: resource address "aws_default_vpc.default" does not exist in the configuration. Before importing this resource, please create its configuration in the root module. For example: resource "aws_default_vpc" "default" { # (resource arguments) }
terraform import aws_default_vpc.default vpc-037a44511edc0b893 aws_default_vpc.default: Importing from ID "vpc-037a44511edc0b893"... aws_default_vpc.default: Import prepared! Prepared aws_default_vpc for import aws_default_vpc.default: Refreshing state... [id=vpc-037a44511edc0b893] Import successful! The resources that were imported are shown above. These resources are now in your Terraform state and will henceforth be managed by Terraform.
terraform import aws_default_vpc.default vpc-e7698f8e aws_default_vpc.default: Importing from ID "vpc-e7698f8e"... aws_default_vpc.default: Import prepared! Prepared aws_default_vpc for import aws_default_vpc.default: Refreshing state... [id=vpc-e7698f8e] ╷ │ Error: Cannot import non-existent remote object │ │ While attempting to import an existing object to "aws_default_vpc.default", the provider detected that no object exists with the given id. Only │ pre-existing objects can be imported; check that the id is correct and that it is associated with the provider's configured region or endpoint, or use │ "terraform apply" to create a new remote object for this resource. ╵
Related
See also
terraform import
,terraform import --help
- 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: