Skip to content

Commit fbc1e54

Browse files
committed
Switch most names from Terraform to Tofu
1 parent 44cddbd commit fbc1e54

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

.github/workflows/ci-iac.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ jobs:
7575
steps:
7676
- uses: actions/checkout@v4
7777

78-
- name: Terraform Setup
78+
- name: Tofu Setup
7979
uses: opentofu/setup-opentofu@v1
8080
with:
8181
tofu_version: ${{ env.tf_version }}
8282

83-
- name: Terraform Format
83+
- name: Tofu Format
8484
working-directory: terraform-iac
8585
run: tofu fmt -check -recursive
8686

8787
plan:
88-
name: Terraform Plan / ${{ matrix.env.environment_name }}
88+
name: Tofu Plan / ${{ matrix.env.environment_name }}
8989
timeout-minutes: 6
9090
runs-on: ubuntu-latest
9191
needs: env
@@ -120,27 +120,27 @@ jobs:
120120
npm ci --production --prefer-offline
121121
zip -r lambda.zip *
122122
123-
- name: Terraform Setup
123+
- name: Tofu Setup
124124
uses: opentofu/setup-opentofu@v1
125125
with:
126126
tofu_version: ${{ env.tf_version }}
127127

128-
- name: Terraform Init
128+
- name: Tofu Init
129129
working-directory: ${{ matrix.env.tf_working_dir }}
130130
run: tofu init
131131

132-
- name: Terraform Plan
132+
- name: Tofu Plan
133133
working-directory: ${{ matrix.env.tf_working_dir }}
134134
run: tofu plan -input=false -out plan -lock=false
135135

136-
- name: Comment Terraform Plan
136+
- name: Comment Tofu Plan
137137
uses: byu-oit/github-action-tf-plan-comment@v1
138138
with:
139139
github-token: ${{ secrets.GITHUB_TOKEN }}
140140
working-directory: ${{ matrix.env.tf_working_dir }}
141141
terraform-plan-file: plan
142142

143-
- name: Analyze Terraform Plan
143+
- name: Analyze Tofu Plan
144144
uses: byu-oit/github-action-tf-plan-analyzer@v2
145145
with:
146146
working-directory: ${{ matrix.env.tf_working_dir }}

.github/workflows/deploy.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -150,25 +150,25 @@ jobs:
150150
role-session-name: ${{ github.sha }}
151151
aws-region: us-west-2
152152

153-
- name: Terraform Setup
153+
- name: Tofu Setup
154154
uses: opentofu/setup-opentofu@v1
155155
with:
156156
tofu_version: ${{ env.tf_version }}
157157
tofu_wrapper: false
158158

159-
- name: Terraform Init
159+
- name: Tofu Init
160160
working-directory: ${{ matrix.env.tf_working_dir }}
161161
run: tofu init
162162

163-
- name: Terraform Format
163+
- name: Tofu Format
164164
working-directory: "./"
165165
run: tofu fmt -check -recursive
166166

167-
- name: Terraform Plan
167+
- name: Tofu Plan
168168
working-directory: ${{ matrix.env.tf_working_dir }}
169169
run: tofu plan -input=false -out=plan
170170

171-
- name: Analyze Terraform Plan
171+
- name: Analyze Tofu Plan
172172
uses: byu-oit/github-action-tf-plan-analyzer@v2
173173
if: github.repository_owner == 'byu-oit'
174174
# If you're at BYU, but outside the byu-oit GitHub org, you may be able to obtain credentials by contacting [email protected]
@@ -186,12 +186,12 @@ jobs:
186186
client-secret: ${{ secrets[matrix.env.rfc_secret_name] }}
187187
template-id: ${{ matrix.env.rfc_template_id }}
188188

189-
- name: Terraform Apply
189+
- name: Tofu Apply
190190
working-directory: ${{ matrix.env.tf_working_dir }}
191191
run: tofu apply plan
192192

193-
- name: Get Terraform Outputs
194-
id: terraform-outputs
193+
- name: Get Tofu Outputs
194+
id: tofu-outputs
195195
working-directory: ${{ matrix.env.tf_working_dir }}
196196
run: |
197197
echo "codedeploy_app_name=$(tofu output -raw codedeploy_app_name)" >> $GITHUB_OUTPUT
@@ -203,9 +203,9 @@ jobs:
203203
id: deploy
204204
uses: byu-oit/github-action-codedeploy@v2
205205
with:
206-
application-name: ${{ steps.terraform-outputs.outputs.codedeploy_app_name }}
207-
deployment-group-name: ${{ steps.terraform-outputs.outputs.codedeploy_deployment_group_name }}
208-
appspec-file: ${{ steps.terraform-outputs.outputs.codedeploy_appspec_json_file }}
206+
application-name: ${{ steps.tofu-outputs.outputs.codedeploy_app_name }}
207+
deployment-group-name: ${{ steps.tofu-outputs.outputs.codedeploy_deployment_group_name }}
208+
appspec-file: ${{ steps.tofu-outputs.outputs.codedeploy_appspec_json_file }}
209209

210210
- name: End Standard Change
211211
uses: byu-oit/github-action-end-standard-change@v1

0 commit comments

Comments
 (0)