Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: |
JQ_OUTPUT_CHANGED=$(git diff --name-only $BASE_SHA $GITHUB_SHA modules/*/*/*.tf |
JQ_OUTPUT_CHANGED=$(git diff --name-only $BASE_SHA $GITHUB_SHA modules/**/*.tf |
cut -d/ -f1-3 | sort -u | jq -MRsc 'split("\n")[:-1]')
echo "changed_modules=$JQ_OUTPUT_CHANGED" >> $GITHUB_OUTPUT

Expand Down Expand Up @@ -69,6 +69,17 @@ jobs:
id: validate
run: terraform validate

- name: Terraform Plan
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably needs a check if test folder exists

id: plan
env:
"AWS_DEFAULT_REGION": "eu-west-2"
"AWS_ACCESS_KEY_ID": ${{ secrets.AWS_ACCESS_KEY_ID }}
"AWS_SECRET_ACCESS_KEY": ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
cd test
terraform init
terraform plan

- name: Terraform Security
uses: aquasecurity/tfsec-action@v1.0.3
with:
Expand Down Expand Up @@ -135,4 +146,3 @@ jobs:
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
file_pattern: .github/dependabot.yml
skip_checkout: true

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module "example_com" {
aliases = [
"example.org"
]

alias_records = {
"example.org" = {
foo = {
Expand All @@ -27,5 +26,4 @@ module "example_com" {
records = ["1.2.3.4"]
}
}

}
File renamed without changes.
File renamed without changes.