Skip to content

Commit 42118f8

Browse files
fix: cdk deployment issues (#680)
Co-authored-by: Maryam Khidir <[email protected]>
1 parent aba7483 commit 42118f8

File tree

5 files changed

+111
-30
lines changed

5 files changed

+111
-30
lines changed

.github/workflows/e2e-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
contents: read
1212
steps:
1313
- name: Configure AWS Credentials
14-
uses: aws-actions/configure-aws-credentials@v2
14+
uses: aws-actions/configure-aws-credentials@v3
1515
with:
1616
aws-region: ${{ secrets.PIPELINE_AWS_REGION }}
1717
role-to-assume: arn:aws:iam::${{ secrets.PIPELINE_AWS_ACCOUNT_ID }}:role/${{ secrets.PIPELINE_ROLE }}

aws-genai-llm-chatbot/modules/chatbot/deployspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ deploy:
99
- mkdir -p /root/.cdk/cache
1010
- env | grep NEXUS | sort | awk -F= '{printf "%-30s = %s\n", $1, $2}'
1111
- npm run tsc
12-
- npm run config -- --non-interactive --env-prefix NEXUS_PARAMETER_
12+
- npm run config -- --non-interactive --env-prefix SEEDFARMER_PARAMETER_
1313
- npm run deploy -- --require-approval never --progress events --outputs-file ./cdk-exports.json -v --no-notices
1414
- cat cdk-exports.json
15-
- seedfarmer metadata convert -f cdk-exports.json -jq .${NEXUS_PARAMETER_PREFIX}GenAIChatBotStack.metadata || true
15+
- seedfarmer metadata convert -f cdk-exports.json -jq .${SEEDFARMER_PARAMETER_PREFIX}GenAIChatBotStack.metadata || true
1616
destroy:
1717
phases:
1818
build:

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"@types/node": "20.1.7",
6565
"@typescript-eslint/eslint-plugin": "^6.0.0",
6666
"@typescript-eslint/parser": "^6.0.0",
67-
"aws-cdk": "^2.211.0",
67+
"aws-cdk": "^2.1025.0",
6868
"aws-xray-sdk-core": "3.10.1",
6969
"eslint": "^8.45.0",
7070
"eslint-config-prettier": "^9.1.0",
@@ -85,7 +85,7 @@
8585
"@aws-cdk/aws-apigatewayv2-integrations-alpha": "^2.114.1-alpha.0",
8686
"@aws-cdk/aws-cognito-identitypool-alpha": "^2.114.1-alpha.0",
8787
"@cdklabs/generative-ai-cdk-constructs": "^0.1.122",
88-
"aws-cdk-lib": "^2.211.0",
88+
"aws-cdk-lib": "^2.212.0",
8989
"cdk-monitoring-constructs": "8.1.0",
9090
"cdk-nag": "2.28.139",
9191
"commander": "^11.0.0",

tests/__snapshots__/cdk-app.test.ts.snap

Lines changed: 92 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21332,34 +21332,115 @@ schema {
2133221332
{},
2133321333
{
2133421334
"<<marker:0xbaba:0>>": {
21335-
"Ref": "AWS::Region",
21335+
"Fn::Join": [
21336+
"",
21337+
[
21338+
""",
21339+
{
21340+
"Ref": "AWS::Region",
21341+
},
21342+
""",
21343+
],
21344+
],
2133621345
},
2133721346
"<<marker:0xbaba:1>>": {
21338-
"Ref": "AWS::Region",
21347+
"Fn::Join": [
21348+
"",
21349+
[
21350+
""",
21351+
{
21352+
"Ref": "AWS::Region",
21353+
},
21354+
""",
21355+
],
21356+
],
2133921357
},
2134021358
"<<marker:0xbaba:2>>": {
21341-
"Ref": "AuthenticationUserPool28698864",
21359+
"Fn::Join": [
21360+
"",
21361+
[
21362+
""",
21363+
{
21364+
"Ref": "AuthenticationUserPool28698864",
21365+
},
21366+
""",
21367+
],
21368+
],
2134221369
},
2134321370
"<<marker:0xbaba:3>>": {
21344-
"Ref": "AuthenticationUserPoolUserPoolClient8AE1704E",
21371+
"Fn::Join": [
21372+
"",
21373+
[
21374+
""",
21375+
{
21376+
"Ref": "AuthenticationUserPoolUserPoolClient8AE1704E",
21377+
},
21378+
""",
21379+
],
21380+
],
2134521381
},
2134621382
"<<marker:0xbaba:4>>": {
21347-
"Ref": "AWS::Region",
21383+
"Fn::Join": [
21384+
"",
21385+
[
21386+
""",
21387+
{
21388+
"Ref": "AWS::Region",
21389+
},
21390+
""",
21391+
],
21392+
],
2134821393
},
2134921394
"<<marker:0xbaba:5>>": {
21350-
"Ref": "AuthenticationUserPool28698864",
21395+
"Fn::Join": [
21396+
"",
21397+
[
21398+
""",
21399+
{
21400+
"Ref": "AuthenticationUserPool28698864",
21401+
},
21402+
""",
21403+
],
21404+
],
2135121405
},
2135221406
"<<marker:0xbaba:6>>": {
21353-
"Ref": "AuthenticationUserPoolUserPoolClient8AE1704E",
21407+
"Fn::Join": [
21408+
"",
21409+
[
21410+
""",
21411+
{
21412+
"Ref": "AuthenticationUserPoolUserPoolClient8AE1704E",
21413+
},
21414+
""",
21415+
],
21416+
],
2135421417
},
2135521418
"<<marker:0xbaba:7>>": {
21356-
"Fn::GetAtt": [
21357-
"ChatBotApiChatbotApiBABF9B87",
21358-
"GraphQLUrl",
21419+
"Fn::Join": [
21420+
"",
21421+
[
21422+
""",
21423+
{
21424+
"Fn::GetAtt": [
21425+
"ChatBotApiChatbotApiBABF9B87",
21426+
"GraphQLUrl",
21427+
],
21428+
},
21429+
""",
21430+
],
2135921431
],
2136021432
},
2136121433
"<<marker:0xbaba:8>>": {
21362-
"Ref": "AWS::Region",
21434+
"Fn::Join": [
21435+
"",
21436+
[
21437+
""",
21438+
{
21439+
"Ref": "AWS::Region",
21440+
},
21441+
""",
21442+
],
21443+
],
2136321444
},
2136421445
},
2136521446
],

0 commit comments

Comments
 (0)