Skip to content

Commit

Permalink
use apply and new iam name
Browse files Browse the repository at this point in the history
  • Loading branch information
elchead committed Oct 26, 2023
1 parent 6626cb4 commit 56381a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/aws-terraform-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ jobs:
cd terraform-module/aws-constellation
cp ../../build/constellation .
terraform init
terraform apply -var 'name=e2eTfAws' -var 'region=eu-west-1' -var 'zone=eu-west-1b' -var 'name_prefix=e2eTfAws' -auto-approve
terraform apply -var 'name=e2eAwsTF' -var 'region=eu-west-1' -var 'zone=eu-west-1b' -var 'name_prefix=e2eAwsTF' -auto-approve
- name: Destroy Terraform Cluster
if: always() && (steps.apply_terraform.outcome == 'failure' || steps.apply_terraform.outcome == 'success')
run: |
cd terraform-module/aws-constellation
terraform destroy -var 'name=e2eTfAws' -var 'region=eu-west-1' -var 'zone=eu-west-1b' -var 'name_prefix=e2eTfAws' -auto-approve
terraform destroy -var 'name=e2eAwsTF' -var 'region=eu-west-1' -var 'zone=eu-west-1b' -var 'name_prefix=e2eAwsTF' -auto-approve
- name: Verify cleanup
run: |
Expand Down
4 changes: 2 additions & 2 deletions terraform/constellation-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ resource "null_resource" "infra_state" {

resource "null_resource" "apply" {
provisioner "local-exec" {
command = "./constellation init --force" # TODO use apply --yes --skip-phases infrastructure
}
command = "./constellation apply --force --yes --skip-phases infrastructure"
} // need force to allow release images while using the dev build

provisioner "local-exec" {
when = destroy
Expand Down

0 comments on commit 56381a7

Please sign in to comment.