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
This commit is contained in:
Moritz Sanft 2023-02-21 12:47:14 +01:00 committed by GitHub
parent d89dd0ce18
commit 0ba810240f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 144 additions and 4 deletions

View file

@ -0,0 +1,17 @@
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