Skip to content
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

cli: fix iam rollback #1148

Merged
merged 3 commits into from
Feb 13, 2023
Merged

cli: fix iam rollback #1148

merged 3 commits into from
Feb 13, 2023

Conversation

msanft
Copy link
Contributor

@msanft msanft commented Feb 6, 2023

Proposed change(s)

  • Check whether Terraform state directory already exists on the iam create command and if it exists, do not continue with execution
  • Rename DestroyCluster to DestroyResources as it can also destroy IAM resources

Additional info

  • Previously, if the iam create command is executed twice in a row, the second execution would error because the Terraform state dir already exists. On this error, it would also rollback the existing directory which deletes the Terraform state of a previous execution of the command

Checklist

  • Add labels (e.g., for changelog category)
  • Link to Milestone

@netlify
Copy link

netlify bot commented Feb 6, 2023

Deploy Preview for constellation-docs canceled.

Name Link
🔨 Latest commit d2b69cc
🔍 Latest deploy log https://app.netlify.com/sites/constellation-docs/deploys/63e0f2b4e8e0e100082eeb7b

@msanft msanft added the bug fix Fixing a bug label Feb 6, 2023
@msanft msanft self-assigned this Feb 6, 2023
@msanft msanft added this to the v2.6.0 milestone Feb 6, 2023
@msanft msanft requested a review from 3u13r February 6, 2023 08:17
@katexochen katexochen removed their request for review February 6, 2023 13:00
@msanft msanft requested review from katexochen and removed request for katexochen February 9, 2023 08:57
@msanft msanft merged commit 7410cf8 into main Feb 13, 2023
@msanft msanft deleted the fix/iamRollbacker branch February 13, 2023 07:42
msanft added a commit that referenced this pull request Feb 13, 2023
* AB#2897 rename DestroyCluster

* #AB2897 error if terraform dir exists

* AB#2897 reword DestroyResources
msanft added a commit that referenced this pull request Feb 13, 2023
* AB#2897 rename DestroyCluster

* #AB2897 error if terraform dir exists

* AB#2897 reword DestroyResources
@katexochen katexochen added the backport This PR is a backport to a previous release label Feb 22, 2023
derpsteb pushed a commit that referenced this pull request Feb 22, 2023
* AB#2897 rename DestroyCluster

* #AB2897 error if terraform dir exists

* AB#2897 reword DestroyResources
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport This PR is a backport to a previous release bug fix Fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants