AWS SAM Package don't send to S3 Bucket

Viewed 731

I'm trying to send a simple hello world using net core 3.1 lambda with AWS SAM, so this is my template.yml:

AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Net Core 3.1 Lambda
Resources:
  netcore31lambdafunc:
    Type: AWS::Serveless::Function
    Properties:
      FunctionName: Netcore31Test
      CodeUri: src/LambdaEmptyServerless/bin/Release/netcoreapp3.1/publish
      Handler: LambdaEmptyServerless::LambdaEmptyServerless.Functions::Get
      Runtime: dotnetcore3.1
      Events:
        netcore31ApiEvent:
          Type: Api
          Properties:
            Path: /
            Method: GET

That is located in this level:

enter image description here

Now I'm trying to package this to S3 bucket, so I'm executing the following:

sam package --template-file template.yml --output-template-file out-template.yml  --s3-bucket demo-sam-001

I got the following return:

Successfully packaged artifacts and wrote output template to file out-template.yml.
Execute the following command to deploy the packaged template
sam deploy --template-file C:\Users\rlanh\Workspace\Pessoal\awssam-netcore31\LambdaEmptyServerless\out-template.yml --stack-name <YOUR STACK NAME>

But nothing is uploaded to my S3 bucket.

0 Answers
Related