spacelift-io / terraform-provider-spacelift

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

Request: `allow_run_promotion` parameter in `spacelift_stack` resource #369

Closed garbanzos closed 1 year ago

garbanzos commented 1 year ago

Currently, there is no way to control whether run promotions are allowed in the spacelift_stack resource. It would be nice if we have a allow_run_promotion boolean parameter to control this.

Yantrio commented 1 year ago

Hi @garbanzos,

After looking at what the user interface uses, I can see that the property you are looking for does exist but is not named very clearly right now. We have raised a ticket internally to rename this and deprecate it, however in the meantime you can use this property safely.

To achieve what you want until we complete the rename of this property, you will want to use github_action_deploy, this acts in the same way as the Allow Run Promotion setting does in our user interface.

Thanks!

garbanzos commented 1 year ago

@Yantrio Thanks, I will try it out :D