akshaykarle / terraform-provider-mongodbatlas

Terraform provider for MongoDB Atlas
Mozilla Public License 2.0
122 stars 54 forks source link

Add support to query container id #92

Closed joonhwa closed 5 years ago

joonhwa commented 5 years ago

Is it possible to add a data source to query for container id? This ID is required when creating peering connection and i would like to query for it rather than storing it as a config in my code.

Thanks.

akshaykarle commented 5 years ago

Hey @joonhwa there is already a data source for containers but you do need to pass it a group and identifier (ID) as the MongoDB Atlas API only supports querying containers by ID. If you are creating a peering connection you should be able to create the data source and pass it to your VPC peering connection