-
Notifications
You must be signed in to change notification settings - Fork 0
PLT-212 New workflows for tofu fmt, plan, and apply #320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 19 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
4de4b22
add tofu format workflow
91d9121
add tofu format workflow
05eb9d4
add tofu format workflow
7271b79
Add tofu-format-and-validate-diff script
gsf 565a68c
Rewrite tofu-format-and-validate workflow
gsf 393d11b
Clarify directory skipping
gsf 7d78508
Rename to tofu-checks
gsf 6cc0120
Rename step in tofu-checks
gsf 668fc11
Drop workflow_run triggers
gsf 32fcadc
Merge branch 'main' into PLT-212
gsf 0baf2f8
Ref commit hash for checkout in tofu-checks
gsf 32696f4
Add python-checks
gsf 1aad852
Drop pylint and pytest from tf-alarm-to-slack
gsf 69d23ca
Drop terraform lock in api-waf-sync
gsf 970cc5e
Drop whitespace in tf-security-groups
gsf 7833b75
Add tofu-plan workflow
gsf 99d670a
Add todo to alarm-to-slack
gsf e2da6e5
Add all_services input on tofu-plan
gsf 30c93e2
Fetch all history for tofu-checks and tofu-plan to allow git diff
gsf 28644cf
Switch INFRA_ENVS to TARGET_ENVS
gsf 60d5ab9
Merge branch 'main' into PLT-212
gsf 5f0294f
Add tofu-fmt workflow
gsf b63f17c
Update tofu-plan script to act on all services
gsf 9e8e65f
Update tofu-plan workflow for script on all services
gsf 679a90a
Add tofu-apply workflow
gsf 5b5a197
Drop tofu-checks
gsf b77648b
Drop unused services-ecr service
gsf 13a8b70
Drop tf- workflows
gsf e17ee1c
Improve error handling on tofu init
gsf ac44190
Drop dpc-prod env from api-waf-sync
gsf b29fb2d
Use -detailed-exitcode to check errors on tofu plan
gsf f92d8b3
Update python-checks to use tj-actions
gsf 98daa03
Run python-checks on changed directories
gsf fdcb505
Drop sidekiq keys from github-actions-role
gsf f5adb5e
Add grouping for tofu logs
gsf e996d68
Fix dpc services in each env in github-actions-role
gsf 39d029a
Merge branch 'main' into PLT-212
gsf c245f74
Update for added config service
gsf 97051e0
Merge branch 'main' into PLT-212
gsf 12e4701
Add sops and yq setup to plan workflow
gsf 8bf1a32
Add link to run log
gsf c46e57f
Drop link to run as it lacks job ID
gsf fcff0e6
Switch from exclamation to x emoji
gsf c32bbd3
Add errors after groups in logs
gsf 7af953d
Add log warning for changes planned
gsf 5d81b3d
Run apply only on plan changes
gsf 978fe60
Drop outputs to run summary
gsf 419b821
Do not create sops wrapper by default
gsf 9fd4848
Create policy doc for queue if docs set
gsf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: python-checks | ||
|
|
||
| on: | ||
| push: | ||
| paths: | ||
| - terraform/services/alarm-to-slack/lambda_src/** | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| python-checks: | ||
| runs-on: codebuild-cdap-${{github.run_id}}-${{github.run_attempt}} | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| - run: scripts/python-checks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| name: tofu-checks | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| paths: | ||
| - 'terraform/**' | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'terraform/**' | ||
|
|
||
| env: | ||
| TENV_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| jobs: | ||
| check: | ||
| runs-on: codebuild-cdap-${{github.run_id}}-${{github.run_attempt}} | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # v3.9.2 | ||
| - uses: cmsgov/cdap/actions/setup-tenv@8343fb96563ce4b74c4dececee9b268f42bd4a40 | ||
| - run: scripts/tofu-checks | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why fetch-depth: 0 instead of 1? Does zero fetch everything?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've dropped the need for commit comparison in this file but see python-checks for a place where I leverage tj-actions/changed-files to run tests on changed directories only.