Support update stack label API
I want to see if you can support a mutation in graphql or spacectl to add stack label only instead of updating all stack info.
- Workaround
- No
I want to see if you can support a mutation in graphql or spacectl to add stack label only instead of updating all stack info.
Log in to comment and vote
Comments1
Aleksandra Cieslak
May 20
Thanks for the feature request!
This is already achievable using our existing Terraform provider! You can update just the labels without touching other stack properties:
<pre><code>resource "spacelift_stack" "example" {
id = "existing-stack-id"
name = "existing-name" # Keep existing values
# ... other existing properties
labels = ["new-label", "another-label"] # Update only labels
}
</code></pre>
The existing
stackUpdateGraphQL mutation also allows updating specific fields including labels without requiring all stack information.I’m not sure if that would be sufficient for your use case, so I’d appreciate it if you could explain in more detail what you’re trying to achieve with this dynamic behaviour.