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

[Custom DC]Add a script to remove Terraform managed resources #2591

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Fructokinase
Copy link
Collaborator

No description provided.

@Fructokinase Fructokinase requested a review from shifucun April 20, 2023 12:07
exit 1
fi

WEBSITE_ROOT=$PWD
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you do this:

script_path="$(realpath "${BASH_SOURCE[0]}")"
WEBSITE_ROOT="$(dirname "$(dirname "$(dirname "$script_path")")")"

Comment on lines +59 to +61
# Delete all objects without resource bucket
# Terraform cannot delete non-empty buckets.
gsutil -m rm -a gs://$PROJECT_ID-resources/** || echo "Resource bucket is empty."
Copy link
Contributor

Choose a reason for hiding this comment

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

can we not touching resource buckets at all?

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

Successfully merging this pull request may close these issues.

2 participants