Skip to content

Commit 2559c19

Browse files
authored
Website: Adding an import section to the bottom of the page of importable resources (hashicorp#7703)
* docs/digitalocean: Adding an import section to the bottom of the DO importable resources * docs/azurerm: Adding the Import sections for the AzureRM Importable resources * docs/aws: Adding the import sections to the AWS provider pages
1 parent e1c3eba commit 2559c19

27 files changed

Lines changed: 236 additions & 5 deletions

website/source/docs/providers/aws/r/simpledb_domain.html.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,11 @@ The following arguments are supported:
2929
The following attributes are exported:
3030

3131
* `id` - The name of the SimpleDB domain
32+
33+
## Import
34+
35+
SimpleDB Domains can be imported using the `name`, e.g.
36+
37+
```
38+
terraform import aws_simpledb_domain.users users
39+
```

website/source/docs/providers/aws/r/sns_topic.html.markdown

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,10 @@ The following attributes are exported:
3434
* `id` - The ARN of the SNS topic
3535
* `arn` - The ARN of the SNS topic, as a more obvious property (clone of id)
3636

37+
## Import
38+
39+
SNS Topics can be imported using the `topic arn`, e.g.
40+
41+
```
42+
terraform import aws_sns_topic.user_updates arn:aws:sns:us-west-2:0123456789012:my-topic
43+
```

website/source/docs/providers/aws/r/sns_topic_subscription.html.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,11 @@ The following attributes are exported:
9696
* `endpoint` - The full endpoint to send data to (SQS ARN, HTTP(S) URL, Application ARN, SMS number, etc.)
9797
* `arn` - The ARN of the subscription stored as a more user-friendly property
9898

99+
100+
## Import
101+
102+
SNS Topic Subscriptions can be imported using the `subscription arn`, e.g.
103+
104+
```
105+
terraform import aws_sns_topic_subscription.user_updates_sqs_target arn:aws:sns:us-west-2:0123456789012:my-topic:8a21d249-4329-4871-acc6-7be709c6ea7f
106+
```

website/source/docs/providers/aws/r/sqs_queue.html.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,11 @@ The following attributes are exported:
4040

4141
* `id` - The URL for the created Amazon SQS queue.
4242
* `arn` - The ARN of the SQS queue
43+
44+
## Import
45+
46+
SQS Queues can be imported using the `queue url`, e.g.
47+
48+
```
49+
terraform import aws_sqs_queue.public_queue https://queue.amazonaws.com/80398EXAMPLE/MyQueue
50+
```

website/source/docs/providers/aws/r/subnet.html.markdown

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,12 @@ The following attributes are exported:
4444
* `cidr_block` - The CIDR block for the subnet.
4545
* `vpc_id` - The VPC ID.
4646

47+
48+
49+
## Import
50+
51+
Subnets can be imported using the `subnet id`, e.g.
52+
53+
```
54+
terraform import aws_subnet.public_subnet subnet-9d4a7b6c
55+
```

website/source/docs/providers/aws/r/vpc.html.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,11 @@ The following attributes are exported:
6464

6565

6666
[1]: http://docs.aws.amazon.com/fr_fr/AWSEC2/latest/UserGuide/vpc-classiclink.html
67+
68+
## Import
69+
70+
VPNs can be imported using the `vpn id`, e.g.
71+
72+
```
73+
terraform import aws_vpn.test_vpn vpc-a01106c2
74+
```

website/source/docs/providers/aws/r/vpc_dhcp_options.html.markdown

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,12 @@ The following attributes are exported:
6161

6262
You can find more technical documentation about DHCP Options Set in the
6363
official [AWS User Guide](https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html).
64+
65+
66+
## Import
67+
68+
VPC DHCP Options can be imported using the `dhcp options id`, e.g.
69+
70+
```
71+
terraform import aws_vpc_dhcp_options.my_options dopt-d9070ebb
72+
```

website/source/docs/providers/aws/r/vpc_endpoint.html.markdown

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,12 @@ The following attributes are exported:
3636

3737
* `id` - The ID of the VPC endpoint.
3838
* `prefix_list_id` - The prefix list ID of the exposed service.
39+
40+
41+
## Import
42+
43+
VPN Endpoints can be imported using the `vpc endpoint id`, e.g.
44+
45+
```
46+
terraform import aws_vpc_endpoint.endpoint1 vpce-3ecf2a57
47+
```

website/source/docs/providers/aws/r/vpc_peering.html.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,11 @@ The following attributes are exported:
6666

6767
## Notes
6868
If you are not the owner of both VPCs, or do not enable auto_accept you will still have to accept the peering with the AWS Console, aws-cli or aws-sdk-go.
69+
70+
## Import
71+
72+
VPC Peering resources can be imported using the `vpc peering id`, e.g.
73+
74+
```
75+
terraform import aws_vpc_peering_connection.test_connection pcx-111aaa111
76+
```

website/source/docs/providers/aws/r/vpn_connection.html.markdown

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,12 @@ The following attributes are exported:
6161
* `tunnel2_preshared_key` - The preshared key of the second VPN tunnel.
6262
* `type` - The type of VPN connection.
6363
* `vpn_gateway_id` - The ID of the virtual private gateway to which the connection is attached.
64+
65+
66+
## Import
67+
68+
VPN Connections can be imported using the `vpn connection id`, e.g.
69+
70+
```
71+
terraform import aws_vpn_connection.testvpnconnection vpn-40f41529
72+
```

0 commit comments

Comments
 (0)