terraform-provider-spotinst icon indicating copy to clipboard operation
terraform-provider-spotinst copied to clipboard

Import spotinst_ocean_aws

Open nitrocode opened this issue 2 years ago • 1 comments

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

  • Please vote on this issue by adding a 👍 reaction to help the community and maintainers prioritize this request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

nitrocode avatar Jun 17 '22 21:06 nitrocode

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

pshamus avatar Jun 27 '22 20:06 pshamus

@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/

stevenfeltner avatar Dec 06 '22 05:12 stevenfeltner

PR released with v1.95.1

anuragsharma-123 avatar Jan 20 '23 08:01 anuragsharma-123