Skip to content

Commit 8874310

Browse files
christopher-mabohMaboh Christophergsf
authored
PLT-212 New workflows for tofu fmt, plan, and apply (#320)
## 🎫 Ticket https://jira.cms.gov/browse/PLT-212 ## 🛠 Changes CDAP tf workflows have been replaced by tofu fmt, tofu plan, and tofu apply workflows. ## ℹ️ Context This change errs on the side of running tofu apply more often since we should be running it daily to keep infra drift in check anyway. By doing so, we can run a job per application and environment, planning and applying tf for all services within each environment whenever there is a change to our terraform services. ## 🧪 Validation See checks. --------- Co-authored-by: Maboh Christopher <chris.maboh@aquia.io> Co-authored-by: Sean Fern <seanfern@navapbc.com>
1 parent 6939565 commit 8874310

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+293
-1448
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: python-checks
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths:
7+
- 'terraform/services/alarm-to-slack/lambda_src/**'
8+
9+
jobs:
10+
python-checks:
11+
runs-on: codebuild-cdap-${{github.run_id}}-${{github.run_attempt}}
12+
steps:
13+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
14+
- uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
15+
id: changed-dirs
16+
with:
17+
files: |
18+
terraform/services/alarm-to-slack/lambda_src/**
19+
dir_names: 'true'
20+
- run: scripts/python-checks
21+
env:
22+
CHANGED_DIRS: ${{ steps.changed-dirs.outputs.all_changed_files }}

.github/workflows/tf-admin-aco-deny.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

.github/workflows/tf-admin-create-aco-creds.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

.github/workflows/tf-admin-create-aco.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

.github/workflows/tf-admin-create-group.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

.github/workflows/tf-alarm-to-slack.yml

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)