cloudamqp / terraform-provider-cloudamqp

Terraform Provider for CloudAMQP
https://registry.terraform.io/providers/cloudamqp/cloudamqp
Mozilla Public License 2.0
35 stars 39 forks source link

Can't import “cloudamqp_vpc_peering” resource #158

Closed strund3r closed 2 years ago

strund3r commented 2 years ago

Issue

I'm getting this error when trying to import this resource, even though it exists on the documentation

$ terragrunt import cloudamqp_vpc_peering.this vpc-xxxxxxxxx

cloudamqp_vpc_peering.this: Importing from ID "vpc-xxxxxxxxx"...

Error: resource cloudamqp_vpc_peering doesn't support import

Versions

tbroden84 commented 2 years ago

Then we have missed and added this to the documentation, even though the resource is not importable. It is only used to accept the VPC peering requested from your AWS account. It using our internal CloudAMQP identifiers (vpc_id or instance_id) to make the underlying API calls, together with peering_id created by AWS.

Example:

resource "cloudamqp_vpc_peering" "vpc_accept_peering" {
  vpc_id = cloudamqp_vpc.vpc.id
  peering_id = aws_vpc_peering_connection.aws_vpc_peering.id
  sleep = 30
  timeout = 600
}

Will update the documentation to be correct.

dentarg commented 2 years ago

The documentation now states that you can't import this resource.