spotinst / terraform-provider-spotinst

Terraform Spotinst provider.
https://registry.terraform.io/providers/spotinst/spotinst/latest/docs
Mozilla Public License 2.0
63 stars 56 forks source link

Import spotinst_ocean_aws #324

Closed nitrocode closed 1 year ago

nitrocode commented 2 years ago

Terraform Version

Description

Please allow importing spotinst_ocean_aws so we don't need to recreate it

Use Cases

Potential Terraform Configuration

References

Community Note

pshamus commented 2 years ago

Even though there's no documentation, I was able to guess the command structure and import a spotinst_ocean_ecs resource by referencing the ID of the Ocean cluster. I suspect it might be the same for the resource you are asking about.

terraform import spotinst_ocean_ecs.this o-123456a78
stevenfeltner commented 1 year ago

@pshamus @nitrocode Thanks for sharing. I have created some PR to get this added to the documentation.

We also have a blog discussing this as well that can be found here: https://spot.io/blog/import-spot-resources-into-terraform/

anuragsharma-123 commented 1 year ago

PR released with v1.95.1