From fb7317b42289e2fb64678f364e68f12dad5d9c11 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Sun, 8 Feb 2026 21:01:18 +0000 Subject: [PATCH] save --- .github/workflows/terraform-apply.yml | 96 ++++++++++++++++----------- 1 file changed, 56 insertions(+), 40 deletions(-) diff --git a/.github/workflows/terraform-apply.yml b/.github/workflows/terraform-apply.yml index 4d1067f..43680fa 100644 --- a/.github/workflows/terraform-apply.yml +++ b/.github/workflows/terraform-apply.yml @@ -69,44 +69,60 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 - - name: Install modern Node.js + # - name: Install modern Node.js + # run: | + # curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - + # sudo apt-get install -y nodejs + # node --version + + # - name: Setup Terraform + # uses: hashicorp/setup-terraform@v3 + # with: + # terraform_version: "1.6.6" + + # - name: Install AWS CLI v2 + # run: | + # sudo apt-get update + # sudo apt-get install -y unzip curl + + # curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + # unzip awscliv2.zip + # sudo ./aws/install + + # aws --version + + # - name: Verify AWS identity + # run: aws sts get-caller-identity + + # - name: Terraform Init + # working-directory: aws_environment/ses-juntekim + # run: terraform init + + # - name: Terraform Validate + # working-directory: aws_environment/ses-juntekim + # run: terraform validate + + # - name: Terraform Plan + # id: plan + # working-directory: aws_environment/ses-juntekim + # run: terraform plan -input=false + + # - name: Terraform Apply + # working-directory: aws_environment/ses-juntekim + # run: terraform apply -auto-approve -input=false + + - name: Future Improvement Reminder run: | - curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - - sudo apt-get install -y nodejs - node --version - - - name: Setup Terraform - uses: hashicorp/setup-terraform@v3 - with: - terraform_version: "1.6.6" - - - name: Install AWS CLI v2 - run: | - sudo apt-get update - sudo apt-get install -y unzip curl - - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - unzip awscliv2.zip - sudo ./aws/install - - aws --version - - - name: Verify AWS identity - run: aws sts get-caller-identity - - - name: Terraform Init - working-directory: aws_environment/ses-juntekim - run: terraform init - - - name: Terraform Validate - working-directory: aws_environment/ses-juntekim - run: terraform validate - - - name: Terraform Plan - id: plan - working-directory: aws_environment/ses-juntekim - run: terraform plan -input=false - - - name: Terraform Apply - working-directory: aws_environment/ses-juntekim - run: terraform apply -auto-approve -input=false + echo "" + echo "⚠️ REMINDER: Future maintenance required for SES Terraform" + echo "" + echo "This SES configuration currently uses a separate S3 backend for state management." + echo "Plan to consolidate and migrate away from Hashicorp Terraform Cloud:" + echo "" + echo "TODO:" + echo " - [ ] Consolidate SES terraform into main Terraform Cloud workspace" + echo " - [ ] Move away from Hashicorp Terraform Cloud entirely" + echo " - [ ] Use alternative state management solution for all infrastructure" + echo "" + echo "See: aws_environment/ses-juntekim/README.md for details" + echo ""