Skip to content

Commit 27ab4b7

Browse files
authored
Merge pull request akshaykarle#93 from xM8WVqaG/patch-1
Correct args and import in vpc_peering_connection
2 parents 9d8088a + 94bdb16 commit 27ab4b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

website/docs/r/vpc_peering_connection.html.markdown

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ resource "mongodbatlas_container" "container" {
4242
4343
resource "mongodbatlas_vpc_peering_connection" "peering" {
4444
group = "${data.mongodbatlas_project.project.id}"
45+
provider_name = "AWS"
4546
aws_account_id = "111111111111"
4647
vpc_id = "vpc-xxxxxxxxxxxxxxxxx"
4748
route_table_cidr_block = "10.1.0.0/16"
@@ -125,6 +126,9 @@ resource "google_compute_network_peering" "atlas_peer" {
125126
~> **NOTE:** The Atlas VPC container and the `vpc_id` peer VPC *must* share an AWS region.
126127

127128
* `group` - (Required) The ID of the project in which to create the VPC peering connection.
129+
* `provider_name` - (Required) Name of the cloud provider. Valid options are:
130+
* `AWS`
131+
* `GCP`
128132
* `route_table_cidr_block` ( _AWS_ ) - (Optional) The peer VPC CIDR block or subnet.
129133
* `vpc_id` ( _AWS_ ) - (Optional) - The ID of the peer VPC.
130134
* `gcp_project_id` ( _GCP_ ) - (Optional) - GCP project ID of the owner of the peer VPC.
@@ -160,5 +164,5 @@ In addition to all arguments above, the following attributes are exported:
160164
VPC Peering Connections can be imported using project ID and peering connection ID, in the format `PROJECTID-PEERINGID`, e.g.
161165

162166
```
163-
$ terraform import mongodbatlas_vpc_peering_connection.peering 1112222b3bf99403840e8934-pcx-xxxxxxxxxxxxxxxxx
167+
$ terraform import mongodbatlas_vpc_peering_connection.peering 1112222b3bf99403840e8934-1aa111a1a11a111aa1a1a111
164168
```

0 commit comments

Comments
 (0)