Skip to content

Commit 65f9f31

Browse files
committed
Update GitHub Actions terraform workflow
1 parent 8855dbe commit 65f9f31

File tree

2 files changed

+1
-53
lines changed

2 files changed

+1
-53
lines changed

.github/workflows/terraform.yml

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -22,59 +22,8 @@ jobs:
2222
uses: hashicorp/setup-terraform@v1
2323
# cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
2424

25-
# TODO: This step duplicates work done by the Makefile.
26-
# - name: check terraform formatting
27-
# id: fmt
28-
# run: |
29-
# terraform fmt -check -recursive
30-
3125
- name: run make
3226
# env:
3327
# TOKEN: ${{ secrets.TOKEN }}
3428
run: |
3529
make all
36-
37-
# - name: terraform init
38-
# id: init
39-
# run: terraform init
40-
#
41-
# - name: terraform plan
42-
# id: plan
43-
# if: github.event_name == 'pull_request'
44-
# run: terraform plan -no-color
45-
# continue-on-error: true
46-
#
47-
# - uses: actions/github-script@0.9.0
48-
# if: github.event_name == 'pull_request'
49-
# env:
50-
# PLAN: "terraform\n${{ steps.plan.outputs.stdout }}"
51-
# with:
52-
# github-token: ${{ secrets.GITHUB_TOKEN }}
53-
# script: |
54-
# const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\`
55-
# #### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\`
56-
# #### Terraform Plan 📖\`${{ steps.plan.outcome }}\`
57-
#
58-
# <details><summary>Show Plan</summary>
59-
#
60-
# \`\`\`${process.env.PLAN}\`\`\`
61-
#
62-
# </details>
63-
#
64-
# *Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`*`;
65-
#
66-
#
67-
# github.issues.createComment({
68-
# issue_number: context.issue.number,
69-
# owner: context.repo.owner,
70-
# repo: context.repo.repo,
71-
# body: output
72-
# })
73-
#
74-
# - name: terraform plan status
75-
# if: steps.plan.outcome == 'failure'
76-
# run: exit 1
77-
#
78-
# - name: terraform apply
79-
# if: github.ref == 'refs/heads/master' && github.event_name == 'push'
80-
# run: terraform apply -auto-approve

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@ all: tfc test
1313
tfc: .terraform
1414
@# Basic Terraform validation and formating checks
1515
terraform version
16-
AWS_DEFAULT_REGION=us-east-2 terraform validate
16+
terraform validate
1717
terraform fmt -check -recursive
1818

1919
# Create .terraform if does not exist
2020
# A terraform init is requried to run a validate :-(
2121
.terraform:
2222
terraform init -backend=false
23-
terraform version
2423

2524
test:
2625
@####################################################

0 commit comments

Comments
 (0)