hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.73k stars 9.09k forks source link

[Enhancement]: allow resource aws_vpc_ipam_preview_next_cidr to be imported #36271

Open jmreicha opened 6 months ago

jmreicha commented 6 months ago

Description

Currently, it does not look like this is possible. The use case would be, a network was previously provisioned using IPAM but was not configured with Terraform. In this case it would be nice to "adopt" the pool that gets used into state so that it can all be managed by Terraform.

Affected Resource(s) and/or Data Source(s)

aws_vpc_ipam_preview_next_cidr

Potential Terraform Configuration

I don't know a lot about how the API works behind the scenes but I was hoping something like the following would work.

terrafrom import aws_vpc_ipam_preview_next_cidr.this '10.0.0.0/24_ipam-pool-abc6a42d53659e2fe'

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 6 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue