Skip to content

Commit 5354ed0

Browse files
committed
Show final .build/cdk.json
1 parent 84d4242 commit 5354ed0

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/cdk_release_code.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,19 @@ jobs:
109109
run: |
110110
./.github/scripts/fix_cdk_json.sh
111111
env:
112+
ACCOUNT_ID: "${{ env.ACCOUNT_ID }}"
112113
STACK_NAME: "${{ inputs.STACK_NAME }}"
113114
VERSION_NUMBER: "${{ inputs.VERSION_NUMBER }}"
114115
COMMIT_ID: "${{ inputs.COMMIT_ID }}"
115116
LOG_RETENTION_IN_DAYS: "${{ inputs.LOG_RETENTION_IN_DAYS }}"
116117
LOG_LEVEL: "${{ inputs.LOG_LEVEL }}"
117118
SLACK_BOT_TOKEN: "${{ secrets.SLACK_BOT_TOKEN }}"
118119
SLACK_SIGNING_SECRET: "${{ secrets.SLACK_SIGNING_SECRET }}"
119-
ACCOUNT_ID: "${{ env.ACCOUNT_ID }}"
120+
121+
- name: Show final .build/cdk.json
122+
run: |
123+
echo "----- .build/cdk.json -----"
124+
jq . .build/cdk.json
120125
121126
- name: Debug AWS credentials inside Docker container
122127
run: |

packages/cdk/bin/EpsAssistMeApp.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ Tags.of(app).add("stackName", stackName)
2626
Tags.of(app).add("version", version)
2727
Tags.of(app).add("commit", commit)
2828

29+
console.log("CDK context:", {accountId, stackName, version, commit})
30+
31+
if (!accountId || !stackName || !version || !commit) {
32+
throw new Error(`Missing required CDK context values: ${JSON.stringify({accountId, stackName, version, commit})}`)
33+
}
34+
2935
const EpsAssistMe = new EpsAssistMeStack(app, "EpsAssistMeStack", {
3036
env: {
3137
region: "eu-west-2",

0 commit comments

Comments
 (0)