chore: migrate from terraform to opentofu

This commit is contained in:
Kim, Jimin 2024-04-15 20:19:51 +09:00
parent d167a57dbf
commit 26f489ecc0
Signed by: pomp
GPG key ID: 2B516173EDD492EB
6 changed files with 36 additions and 30 deletions

View file

@ -19,10 +19,8 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
cli_config_credentials_token: ${{ secrets.TERRAFORM_TOKEN }}
- name: Setup OpenTofu
uses: opentofu/setup-opentofu@v1
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
@ -31,7 +29,7 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-1 # just a random region (also used in main.tf)
- run: terraform init
- run: terraform fmt -check
- run: terraform plan -input=false
- run: terraform apply -auto-approve -input=false
- run: tofu init
- run: tofu fmt -check
- run: tofu plan -input=false
- run: tofu apply -auto-approve -input=false