save
This commit is contained in:
parent
7b4bcdd879
commit
fb7317b422
1 changed files with 56 additions and 40 deletions
96
.github/workflows/terraform-apply.yml
vendored
96
.github/workflows/terraform-apply.yml
vendored
|
|
@ -69,44 +69,60 @@ jobs:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
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: |
|
run: |
|
||||||
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
|
echo ""
|
||||||
sudo apt-get install -y nodejs
|
echo "⚠️ REMINDER: Future maintenance required for SES Terraform"
|
||||||
node --version
|
echo ""
|
||||||
|
echo "This SES configuration currently uses a separate S3 backend for state management."
|
||||||
- name: Setup Terraform
|
echo "Plan to consolidate and migrate away from Hashicorp Terraform Cloud:"
|
||||||
uses: hashicorp/setup-terraform@v3
|
echo ""
|
||||||
with:
|
echo "TODO:"
|
||||||
terraform_version: "1.6.6"
|
echo " - [ ] Consolidate SES terraform into main Terraform Cloud workspace"
|
||||||
|
echo " - [ ] Move away from Hashicorp Terraform Cloud entirely"
|
||||||
- name: Install AWS CLI v2
|
echo " - [ ] Use alternative state management solution for all infrastructure"
|
||||||
run: |
|
echo ""
|
||||||
sudo apt-get update
|
echo "See: aws_environment/ses-juntekim/README.md for details"
|
||||||
sudo apt-get install -y unzip curl
|
echo ""
|
||||||
|
|
||||||
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
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue