Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .checkov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ soft-fail: true # Don't fail the build on security issues
directory: .

# Include severity information
include-all-checkov-policies: true
include-all-checkov-policies: true
2 changes: 1 addition & 1 deletion .github/.release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@
"changelogDate": "(%B %d, %Y)"
},
"group-pull-request-title-pattern": "chore: release ${version}"
}
}
2 changes: 1 addition & 1 deletion .github/workflows/claude-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:

# Optional: Custom environment variables for Claude
# claude_env: |
# NODE_ENV: test
# NODE_ENV: test
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,4 @@ jobs:
echo "- terraform_fmt" >> $GITHUB_STEP_SUMMARY
echo "- terraform_validate" >> $GITHUB_STEP_SUMMARY
echo "- terraform_docs" >> $GITHUB_STEP_SUMMARY
echo "- terraform_tflint" >> $GITHUB_STEP_SUMMARY
echo "- terraform_tflint" >> $GITHUB_STEP_SUMMARY
6 changes: 3 additions & 3 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
security-scan:
name: Security Scan
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
'simple_audit_framework',
'secure_backup_configuration'
]

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -128,4 +128,4 @@ jobs:
if [ -d "examples/${{ matrix.example }}" ]; then
tfsec examples/${{ matrix.example }} --format default
fi
continue-on-error: true
continue-on-error: true
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Terratest Examples
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
'TestIAMRoleCreation'
]
fail-fast: false

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
'TestBackupRestore'
]
fail-fast: false

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
runs-on: ubuntu-latest
needs: [terratest-examples, terratest-integration, terratest-integration-advanced]
if: always()

steps:
- name: Test Results
run: |
Expand All @@ -149,10 +149,10 @@ jobs:
echo "| Examples | ${{ needs.terratest-examples.result }} |" >> $GITHUB_STEP_SUMMARY
echo "| Integration | ${{ needs.terratest-integration.result }} |" >> $GITHUB_STEP_SUMMARY
echo "| Integration Advanced | ${{ needs.terratest-integration-advanced.result }} |" >> $GITHUB_STEP_SUMMARY

if [[ "${{ needs.terratest-examples.result }}" == "failure" || "${{ needs.terratest-integration.result }}" == "failure" || "${{ needs.terratest-integration-advanced.result }}" == "failure" ]]; then
echo "❌ Some tests failed. Please check the logs for details." >> $GITHUB_STEP_SUMMARY
exit 1
else
echo "✅ All tests passed successfully!" >> $GITHUB_STEP_SUMMARY
fi
fi
5 changes: 2 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
terraform_version: ['1.3.0', '1.5.0', '1.9.0']
aws_provider_version: ['5.0.0', '5.70.0']

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
'complete_audit_framework',
'simple_audit_framework'
]

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -104,4 +104,3 @@ jobs:
cd examples/${{ matrix.example }}
terraform validate
fi

7 changes: 3 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,15 @@ repos:
- id: terraform_validate
args:
- --hook-config=--retry-once-with-cleanup=true # Retry validation with cleanup
- --args=-backend=false # Skip backend initialization
exclude: '^.*test_formatting\.tf$|.*test_formatting.*|^test_.*\.tf$'
exclude: '^.*test_formatting\.tf$|.*test_formatting.*|^test_.*\.tf$|^examples/.*|^test/fixtures/.*'
- id: terraform_docs
args:
- --args=--config=.terraform-docs.yml # Use config file for consistent documentation
exclude: '^.*test_formatting\.tf$|.*test_formatting.*|^test_.*\.tf$'
exclude: '^.*test_formatting\.tf$|.*test_formatting.*|^test_.*\.tf$|^examples/.*|^test/fixtures/.*'
- id: terraform_tflint # Added terraform linter
args:
- --args=--config=.tflint.hcl
exclude: '^.*test_formatting\.tf$|.*test_formatting.*|^test_.*\.tf$'
exclude: '^.*test_formatting\.tf$|.*test_formatting.*|^test_.*\.tf$|^examples/.*|^test/fixtures/.*'
# Temporarily disabled terraform_checkov due to missing checkov installation in CI
# - id: terraform_checkov # Added security scanner
# args:
Expand Down
2 changes: 1 addition & 1 deletion .release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
}
},
"pull-request-title-pattern": "chore: release ${version}"
}
}
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.0.1"
}
}
2 changes: 1 addition & 1 deletion .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@
],
"results": {},
"generated_at": "2025-08-10T20:32:00Z"
}
}
26 changes: 6 additions & 20 deletions .terraform-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,41 +42,27 @@ content: |-

### Simple plan

```hcl
{{ include "examples/simple_plan/main.tf" }}
```
See [examples/simple_plan/main.tf](examples/simple_plan/main.tf) for a basic backup plan configuration.

### Simple plan using variables

```hcl
{{ include "examples/simple_plan_using_variables/main.tf" }}
```

See [examples/simple_plan_using_variables/main.tf](examples/simple_plan_using_variables/main.tf) for a backup plan using variables.

### Complete plan

```hcl
{{ include "examples/complete_plan/main.tf" }}
```
See [examples/complete_plan/main.tf](examples/complete_plan/main.tf) for a comprehensive backup plan setup.

### Multiple backup plans

```hcl
{{ include "examples/multiple_plans/main.tf" }}
```

See [examples/multiple_plans/main.tf](examples/multiple_plans/main.tf) for managing multiple backup plans.

### Simple plan using AWS Organizations backup policies

```hcl
{{ include "examples/organization_backup_policy/main.tf" }}
```
See [examples/organization_backup_policy/main.tf](examples/organization_backup_policy/main.tf) for organization-wide backup policies.

### AWS Backup Audit Manager Framework

```hcl
{{ include "examples/simple_audit_framework/main.tf" }}
```
See [examples/simple_audit_framework/main.tf](examples/simple_audit_framework/main.tf) for audit framework configuration.

<!-- BEGIN_TF_DOCS -->
{{ .Requirements }}
Expand Down
Loading
Loading