Skip to content

Conversation

zaki3mymy
Copy link
Contributor

Description of Changes

DEPLOY_ON_CLOUDSHELL.mdに従って環境を指定してデプロイしたところ、CloudFormationによるデプロイが終わったあとにDescribeStacks APIのエラーが発生し、URLが空欄で表示されていました。

実行したコマンド

./deploy.sh -p ~/parameter.ts -e dev

エラー内容
image

コマンドのスタック名に環境が指定されていなかったのが原因です。

# デプロイした CloudFront の url を取得
weburl=`aws cloudformation describe-stacks --stack-name GenerativeAiUseCasesStack --output json | jq -r ".Stacks[0].Outputs[] | select(.OutputKey==\"WebUrl\") | .OutputValue"`

この変更はCloudFormationスタックの出力からURLを取ってくる部分なのでデプロイ自体に影響はありません。

Checklist

  • Modified relevant documentation
  • Verified operation in local environment
  • Executed npm run cdk:test and if there are snapshot differences, execute npm run cdk:test:update-snapshot to update snapshots

Related Issues

なし

Copy link
Contributor

@tbrand tbrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tbrand tbrand merged commit d53ff9f into aws-samples:main Oct 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants