chore: migrate from terraform to opentofu
This commit is contained in:
parent
d167a57dbf
commit
26f489ecc0
6 changed files with 36 additions and 30 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue