spacelift-io / terraform-provider-spacelift

Terraform provider to interact with Spacelift
MIT License
74 stars 28 forks source link

Unable to import AWS integration #467

Closed leetrout closed 1 month ago

leetrout commented 1 year ago

Hey 👋

We've been trying to import our AWS integration and we've tried various incantations... The docs say "projectID" but we're assuming that is the stack ID (the slug)?

We have tried:

None of those work and we get this error:

â•·
│ Error: Cannot import non-existent remote object
│ 
│ While attempting to import an existing object to
│ "spacelift_aws_integration_attachment.opsx-admin-aws", the provider
│ detected that no object exists with the given id. Only pre-existing objects
│ can be imported; check that the id is correct and that it is associated
│ with the provider's configured region or endpoint, or use "terraform apply"
│ to create a new remote object for this resource.
╵
â•·
│ Error: attachment not found
│ 
│ 
╵
Yantrio commented 1 month ago

Hi, If you are still hitting this issue please feel free to re-open this ticket.

After looking at the code it seems that you want to pass the stack slug only. This is because only one AWS integration can be attached to each stack.