Skip to content

Instantly share code, notes, and snippets.

@oriordanniall
Created June 14, 2022 11:21
Show Gist options
  • Save oriordanniall/311cec7f28a869fc6da080f102534c86 to your computer and use it in GitHub Desktop.
Save oriordanniall/311cec7f28a869fc6da080f102534c86 to your computer and use it in GitHub Desktop.
run tf commands on drone
- name: remove-from-state-uat
image: hashicorp/terraform:0.15.3
commands:
- cd terraform
- rm -rf .terraform
- terraform init -backend-config=<YOUR_CONFIG_FILE>
- terraform state rm ''
- terraform show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment