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

Terraform: Prevent Destroy Resource #383

Open
wants to merge 15 commits into
base: figma
Choose a base branch
from
Open

Conversation

DavidMah
Copy link

@DavidMah DavidMah commented Jan 31, 2022

Implements a golang version of https://github.com/figma/figma/blob/master/config/terraform/modules/asserts/prevent-destroy/main.tf. Test is documented in the accompanying PR on the figma repo: https://github.com/figma/figma/pull/57614

dmahfigma and others added 15 commits January 4, 2022 13:59
Originally from this commit, but tweaked for compatibility with v3.64.2

  commit 5522751
  Author: Kumarappan-A <kumarappan@zenefits.com>
  Date:   Mon May 20 23:36:26 2019 -0700

      resource/aws_ecs_task_set: Support ECS task set

      (cherry picked from commit 9dc5c3a)
We inherited a Github action from upstream that tries to lock discussion
threads on a schedule. Because our repo doesn't have access to do this
on the public repo, it fails and sends me an email once a day. This
removes this action, because we don't need it.
@DavidMah DavidMah requested a review from a team February 1, 2022 01:02
@DavidMah DavidMah marked this pull request as ready for review February 1, 2022 01:02
@DavidMah
Copy link
Author

DavidMah commented Feb 1, 2022

Red build

  • one seems to be an infra failure
  • another seems to fail no matter what, even on a brand new branch that doesn't do anything. Doing go mod tidy like it says doesn't do anything. Added to the documentation on the notion page
  • another one is a lint failure on tests for a different module that i didn't touch with this PR

Copy link

@ianvonseggern1 ianvonseggern1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet!! I did not realize how clean this would be, very cool

@DavidMah
Copy link
Author

DavidMah commented Feb 1, 2022

fyi cc @maxbfigma @jfirebaugh @bereket42 , being other terraform interested people

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants