Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Create Lambda function using SAM template #632

Copy link
Copy link
Closed
@dprraj

Description

@dprraj
Issue body actions

Is it possible to create a lambda function using SAM template? For example:

AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
     TestLambda:
            Type: 'AWS::Serverless::Function'
             Properties:
                    CodeUri: ./testLambda.zip
                     Handler: testLambda.handler
                      .......

When I try to package to s3 in localstack using the following command:

aws --endpoint-url=http://localhost:4581 cloudformation package --template-file test.yaml --output-template-file output.yaml --s3-bucket test-bucket

I get an error as follows:
Unable to upload artifact ./testLambda.zip referenced by CodeUri parameter of TestLambda resource. An error occurred (AccessDenied) when calling the PutObject operation: Access Denied.

Any help will be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.