Skip to content

Commit

Permalink
testing new iac setup issues
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanHoladay committed Mar 29, 2024
1 parent f9f5f2d commit 8540288
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/test-eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ jobs:
with:
terraform_version: "1.5.7"

- name: Create UDS Core Package
run: ZARF_ARCHITECTURE=amd64 uds run -f tasks/create.yaml standard-package
# - name: Create UDS Core Package
# run: ZARF_ARCHITECTURE=amd64 uds run -f tasks/create.yaml standard-package

- name: Create Bundle
run: uds create .github/bundles --confirm
# - name: Create Bundle
# run: uds create .github/bundles --confirm

- name: Create Cluster
run: uds run -f tasks/iac.yaml create-cluster
# - name: Create Cluster
# run: uds run -f tasks/iac.yaml create-cluster

- name: Create IAC
env:
Expand All @@ -64,25 +64,25 @@ jobs:
TF_VAR_PERMISSIONS_BOUNDARY_NAME: $UDS_PERMISSIONS_BOUNDARY_NAME
run: uds run -f tasks/iac.yaml create-iac

- name: Deploy Bundle
env:
UDS_CONFIG: .github/bundles/uds-config.yaml
run: uds deploy .github/bundles/uds-bundle-uds-core-eks-nightly-*.tar.zst --confirm
# - name: Deploy Bundle
# env:
# UDS_CONFIG: .github/bundles/uds-config.yaml
# run: uds deploy .github/bundles/uds-bundle-uds-core-eks-nightly-*.tar.zst --confirm

- name: Remove UDS Core
if: always()
run: uds remove .github/bundles/uds-bundle-uds-core-eks-*.tar.zst --confirm
timeout-minutes: 30
continue-on-error: true
# - name: Remove UDS Core
# if: always()
# run: uds remove .github/bundles/uds-bundle-uds-core-eks-*.tar.zst --confirm
# timeout-minutes: 30
# continue-on-error: true

- name: Remove IAC
if: always()
run: uds run -f tasks/iac.yaml destroy-iac
timeout-minutes: 30
continue-on-error: true
# - name: Remove IAC
# if: always()
# run: uds run -f tasks/iac.yaml destroy-iac
# timeout-minutes: 30
# continue-on-error: true

- name: Teardown EKS cluster
if: always()
run: uds run -f tasks/iac.yaml destroy-cluster
timeout-minutes: 30
continue-on-error: true
# - name: Teardown EKS cluster
# if: always()
# run: uds run -f tasks/iac.yaml destroy-cluster
# timeout-minutes: 30
# continue-on-error: true
7 changes: 4 additions & 3 deletions tasks/iac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ tasks:
- name: create-iac
actions:
- task: apply-terraform
- task: terraform-outputs
- task: create-uds-config
# - task: terraform-outputs
# - task: create-uds-config

- name: destroy-iac
actions:
Expand All @@ -88,14 +88,15 @@ tasks:
- cmd: echo ${STATE_KEY} | sed 's/\.tfstate/-buckets.tfstate/g'
setVariables:
- name: BUCKETS_STATE_KEY
- cmd: echo ${BUCKETS_STATE_KEY}
- cmd: |
terraform init -force-copy \
-backend-config="bucket=${STATE_BUCKET_NAME}" \
-backend-config="key=${BUCKETS_STATE_KEY}" \
-backend-config="region=${REGION}" \
-backend-config="dynamodb_table=${STATE_DYNAMODB_TABLE_NAME}"

Check failure on line 98 in tasks/iac.yaml

View workflow job for this annotation

GitHub Actions / lint-check

98:1 [trailing-spaces] trailing spaces
terraform apply -auto-approve
# terraform apply -auto-approve
dir: .github/test-infra/buckets-iac

Check failure on line 101 in tasks/iac.yaml

View workflow job for this annotation

GitHub Actions / lint-check

101:1 [trailing-spaces] trailing spaces
- name: terraform-outputs
Expand Down

0 comments on commit 8540288

Please sign in to comment.