-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: support removal_strategy on destroy environment #812
Conversation
@@ -41,7 +41,7 @@ jobs: | |||
uses: goreleaser/goreleaser-action@v5 | |||
with: | |||
version: latest | |||
args: release --rm-dist | |||
args: release --clean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated.
--rm-dist is deprecated.
@@ -335,6 +335,13 @@ func resourceEnvironment() *schema.Resource { | |||
Optional: true, | |||
Default: false, | |||
}, | |||
"removal_strategy": { | |||
Type: schema.TypeString, | |||
Description: "by default when removing an environment, it gets destroyed. Setting this value to 'mark_as_archived' will force the environment to be archived instead of tying to destroy it ('Mark as inactive' in the UI)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope the description is clear enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Issue & Steps to Reproduce / Feature Request
resolves #806
Solution