Skip to content

Commit 3eaf496

Browse files
committed
feat(dos-search): FTRS-765 test
1 parent 585e421 commit 3eaf496

File tree

5 files changed

+19
-1
lines changed

5 files changed

+19
-1
lines changed

.github/workflows/deploy-application-infrastructure.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ on:
6262
MGMT_ACCOUNT_ID:
6363
description: "Management AWS account ID for credentials"
6464
required: true
65+
SLACK_WEBHOOK_ALARMS_URL:
66+
description: "Slack webhook URL for CloudWatch alarm notifications"
67+
required: false
6568
outputs:
6669
plan_result:
6770
description: "The Terraform plan output"
@@ -73,6 +76,7 @@ on:
7376
jobs:
7477
plan-application-infrastructure:
7578
name: "Plan application infrastructure deployment to ${{ inputs.environment }} "
79+
environment: ${{ inputs.environment }}
7680
concurrency:
7781
group: "${{ inputs.environment }}-${{ inputs.ref || inputs.workspace}}"
7882
cancel-in-progress: false
@@ -94,6 +98,9 @@ jobs:
9498
secrets:
9599
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
96100
MGMT_ACCOUNT_ID: ${{ secrets.MGMT_ACCOUNT_ID }}
101+
SLACK_WEBHOOK_ALARMS_URL: ${{ secrets.SLACK_WEBHOOK_ALARMS_URL }}
102+
103+
manual-approval-application-infra:
97104
name: "Manual approval for deployment of application infrastructure to the ${{ inputs.environment }} environment"
98105
if: needs.plan-application-infrastructure.outputs.plan_result == 'true' && (inputs.skip_manual_approval != 'true' || !contains(format(',{0},', inputs.skip_manual_approval_environments), format(',{0},', inputs.environment)))
99106
needs:
@@ -138,6 +145,7 @@ jobs:
138145
secrets:
139146
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
140147
MGMT_ACCOUNT_ID: ${{ secrets.MGMT_ACCOUNT_ID }}
148+
SLACK_WEBHOOK_ALARMS_URL: ${{ secrets.SLACK_WEBHOOK_ALARMS_URL }}
141149

142150
deploy_summary:
143151
name: "Summarise deployment of application infrastructure to ${{ inputs.environment }} environment"

.github/workflows/deploy-infrastructure.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ on:
7575
MGMT_ACCOUNT_ID:
7676
description: "Management AWS account ID for credentials"
7777
required: true
78+
SLACK_WEBHOOK_ALARMS_URL:
79+
description: "Slack webhook URL for CloudWatch alarm notifications"
80+
required: false
7881
outputs:
7982
plan_result:
8083
description: "The Terraform plan output"
@@ -125,6 +128,8 @@ jobs:
125128

126129
- name: "Run Terraform ${{ inputs.action }} for infrastructure ${{ matrix.stack }} stack"
127130
id: deploy_stack
131+
env:
132+
TF_VAR_slack_webhook_alarms_url: ${{ secrets.SLACK_WEBHOOK_ALARMS_URL }}
128133
uses: ./.github/actions/action-infrastructure-stack
129134
with:
130135
environment: ${{ inputs.environment }}
@@ -134,7 +139,6 @@ jobs:
134139
project: ${{ inputs.project }}
135140
release_tag: ${{ inputs.release_tag }}
136141
mgmt_account_id: ${{ secrets.MGMT_ACCOUNT_ID }}
137-
slack_webhook_alarms_url: ${{ secrets.SLACK_WEBHOOK_ALARMS_URL }}
138142

139143
- name: "Upload Terraform Plan Artifact"
140144
uses: actions/upload-artifact@v6

.github/workflows/infrastructure-cleardown.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
secrets:
7777
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
7878
MGMT_ACCOUNT_ID: ${{ secrets.MGMT_ACCOUNT_ID }}
79+
SLACK_WEBHOOK_ALARMS_URL: ${{ secrets.SLACK_WEBHOOK_ALARMS_URL }}
7980

8081
destroy-toggle-infrastructure:
8182
needs:
@@ -97,6 +98,7 @@ jobs:
9798
secrets:
9899
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
99100
MGMT_ACCOUNT_ID: ${{ secrets.MGMT_ACCOUNT_ID }}
101+
SLACK_WEBHOOK_ALARMS_URL: ${{ secrets.SLACK_WEBHOOK_ALARMS_URL }}
100102

101103
cleardown-os-policies:
102104
name: "Cleardown OpenSearch Network Policies"

.github/workflows/pipeline-deploy-account-infrastructure.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ jobs:
137137
secrets:
138138
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
139139
MGMT_ACCOUNT_ID: ${{ secrets.MGMT_ACCOUNT_ID }}
140+
SLACK_WEBHOOK_ALARMS_URL: ${{ secrets.SLACK_WEBHOOK_ALARMS_URL }}
140141

141142
manual-approval:
142143
name: "Manual approval for ${{ needs.metadata.outputs.environment }} infrastructure deployment"
@@ -185,6 +186,7 @@ jobs:
185186
secrets:
186187
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
187188
MGMT_ACCOUNT_ID: ${{ secrets.MGMT_ACCOUNT_ID }}
189+
SLACK_WEBHOOK_ALARMS_URL: ${{ secrets.SLACK_WEBHOOK_ALARMS_URL }}
188190

189191
slack-notifications:
190192
name: "Send Notification to Slack"

.github/workflows/pipeline-deploy-policies.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ jobs:
119119
secrets:
120120
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
121121
MGMT_ACCOUNT_ID: ${{ secrets.MGMT_ACCOUNT_ID }}
122+
SLACK_WEBHOOK_ALARMS_URL: ${{ secrets.SLACK_WEBHOOK_ALARMS_URL }}
122123

123124
manual-approval-permissions:
124125
name: "Manual approval for ${{ needs.metadata.outputs.environment }} permissions infrastructure deployment"
@@ -164,6 +165,7 @@ jobs:
164165
secrets:
165166
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
166167
MGMT_ACCOUNT_ID: ${{ secrets.MGMT_ACCOUNT_ID }}
168+
SLACK_WEBHOOK_ALARMS_URL: ${{ secrets.SLACK_WEBHOOK_ALARMS_URL }}
167169

168170
slack-notifications:
169171
name: "Send Notification to Slack"

0 commit comments

Comments
 (0)