Skip to content

Instantly share code, notes, and snippets.

@miry
Last active September 5, 2016 11:43
Show Gist options
  • Save miry/2edc38b2971b4b1f38353f434deddab3 to your computer and use it in GitHub Desktop.
Save miry/2edc38b2971b4b1f38353f434deddab3 to your computer and use it in GitHub Desktop.
Before to create a new resources in the cluster via terraform, need to import current values and names of existen resources to not duplicate them.
1. Import VPC data
```
$ terraform import aws_vpc.virginia_vpc vpc-12312312
$ terraform import aws_subnet.virginia_public_1a subnet-1321123
$ terraform import aws_security_group.virginia_office_ssh sg-321123
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment