aws-samples / aws-samples/amazon-dotnet-api-to-lambda

Error trying to deploy using SAM

Đang mở
#3 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C#
Star
28
Fork
9
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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/

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.