terraform-provider-spotinst
terraform-provider-spotinst copied to clipboard
Import spotinst_ocean_aws
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.
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 @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/
PR released with v1.95.1