Error trying to deploy using SAM
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
調査の方向性
template.yaml と issue に記載された Step 2-2 sam deploy コマンドから始め、デプロイディレクトリから CodeUri がどのように解決されるかを確認します。文書化されているデプロイの前提条件と、報告されている stack-name および S3 アップロードオプションの不足を比較します。完了の条件は、文書化されているコマンドがこれらのエラーなしでデプロイを完了することです。issue ではテストについて言及されていません。
索引モデルが issue の本文から書いたものです。
説明
When trying to deploy to AWS I encountered errors when following Step 2 -2.
I was able to execute the code locally. Nice!
I was also successful on Step 1. Infrastructure of Serverless Deployment.
I was successful on Step 2 - 1 (sam build)
However when executing Step 2 -2 (sam deploy) The following errors were encountered:
Ran this command with the appropriate parameters:
PS C:\source\repo\amazon-dotnet-api-to-lambda\src\serverless\DotnetToLambda.Serverless> sam deploy --parameter-overrides ParameterKey=SecretArn,ParameterValue=... ParameterKey=PrivateSubnet1,ParameterValue=... ParameterKey=PrivateSubnet2,ParameterValue=... ParameterKey=SecurityGroup,ParameterValue=...
Got this error:
Error: Missing option '--stack-name', 'sam deploy --guided' can be used to provide and save needed parameters for future deploys.
I was able to resolve this error by adding --stack-name InfrastructureStack. Then I got the following error:
Ran this command:
PS C:\source\repo\amazon-dotnet-api-to-lambda\src\serverless\DotnetToLambda.Serverless> sam deploy --stack-name InfrastructureStack --parameter-overrides ...
Got this error:
Error: Unable to upload artifact ReserveBookingFunction referenced by CodeUri parameter of ReserveBookingFunction resource.
S3 Bucket not specified, use --s3-bucket to specify a bucket name, or use --resolve-s3 to create a managed default bucket, or run sam deploy --guided
I'm assuming that in the template.yaml file, this setting is not correct? If so, what should it be?
CodeUri: ./src/ReserveBooking/
- 主要言語
- C#
- スター
- 28
- フォーク
- 9
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
似ている issue
-
area-ai untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
dotnet/extensions#7790 ·
メンテナーはふだん 1 日以内に返信
-
P2 testing
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
area-Infrastructure-coreclr os-ios os-maccatalyst os-tvos untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
dotnet/runtime#134766 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
0 - Backlog Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
BrighterCommand/Brighter#4444 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信