Skip to content

Commit

Permalink
chore: updated names from terraform -> tofu
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare committed Feb 22, 2024
1 parent bb7f40c commit 10b98d3
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 56 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,30 @@ env:
AWS_SECRET_ACCESS_KEY: ${{ secrets.CI_ONLY_AWS_SECRET_ACCESS_KEY }}

jobs:
terraform:
name: "Terraform"
tofu:
name: "Tofu"
runs-on: ubuntu-latest
defaults:
run:
working-directory: terraform
working-directory: tofu
steps:
- uses: actions/checkout@v3
- uses: opentofu/setup-opentofu@v1

- name: OpenTofu fmt
- name: Format
id: fmt
run: tofu fmt -check
continue-on-error: true

- name: OpenTofu Init
- name: Init
id: init
run: tofu init

- name: OpenTofu Validate
- name: Validate
id: validate
run: tofu validate -no-color

- name: OpenTofu Plan
- name: Plan
id: plan
run: tofu plan -no-color
continue-on-error: true
Expand Down Expand Up @@ -96,10 +96,10 @@ jobs:
})
}
- name: Terraform Plan Status
- name: Plan Status
if: steps.plan.outcome == 'failure'
run: exit 1

- name: Terraform Apply
- name: Apply
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: terraform apply -auto-approve -input=false
run: tofu apply -auto-approve -input=false
24 changes: 1 addition & 23 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
# Local .terraform directories
**/.terraform/*

# .tfstate files
*.tfstate
*.tfstate.*

# Crash log files
crash.log

# Ignore any .tfvars files that are generated automatically for each Terraform run. Most
# .tfvars files are managed as part of configuration and so should be included in
# version control.
#
# example.tfvars

# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Include override files you do wish to add to version control using negated pattern
#
# !example_override.tf

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*
.env
.terraform/
.env
23 changes: 0 additions & 23 deletions terraform/.terraform.lock.hcl

This file was deleted.

20 changes: 20 additions & 0 deletions tofu/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 10b98d3

Please sign in to comment.