constellation/.github/actions/constellation_iam_destroy/action.yml
Moritz Sanft 0ba810240f
ci: integrate automatic iam creation in e2e test (#1158)
* integrate automatic iam creation in e2e test

* fix typo

* break long line comments

* fix semvers

* correct bracing
2023-02-21 12:47:14 +01:00

18 lines
521 B
YAML

name: Delete IAM configuration
description: Delete previously created IAM configuration.
runs:
using: "composite"
steps:
- name: Delete IAM configuration
shell: bash
run: |
if [[ -f constellation-iam-terraform/terraform.tfstate ]]; then
echo "IAM Terraform state file exists, deleting..."
cd constellation-iam-terraform
terraform destroy -auto-approve
else
echo "IAM Terraform state file does not exist, exiting..."
exit 0
fi