aws-sam Questions

1

Solved

In cloudformation, AWS::ApiGateway::Method has a boolean property ApiKeyRequired . How can i achieve the same in SAM ? I know that we can enable using explicit swagger Configuration. which is like...
Melina asked 22/10, 2018 at 19:2

1

Solved

I have a lambda authorizer for my API Gateway authorization. When authorizer returns 401 or 403 I do not get CORS back in response header. I am using AWS::Serverless::Api resource, and after some r...
Lilylilyan asked 14/5, 2020 at 5:35

2

I have a Custom Authorizer with API Gateway. When deployed through SAM Module it also creates Options Method when you enable CORS. The thing I really don't understand is why the custom authorizer g...
Balfour asked 18/1, 2019 at 21:26

0

I am using AWS SAM template for deployment of python AWS lambdas. The trigger for these functions are from existing S3 buckets. But in SAM template I am unable to use existing buckets (only new buc...
Repay asked 28/4, 2020 at 7:27

1

I have a Maven Project which has a module 'AddUser'. This module is basically a sam application. When trying to run the command 'sam build' from the project root path. I am getting the below error...
Hypermetropia asked 14/7, 2019 at 11:27

0

I work in a mono repo where I have a AWS SAM (lambda) application. The structure is more or less like so: . ├── my_folder1   ├── file1.py   ├── __init__.py    └── file2.py    ├── my_folder2   ...

2

I'm having an AWS SAM template file with some resources hosted on github, a codepipeline has been setted up to detect changes in the repo then create/update and execute changes on cloudformation st...

1

ORIGINAL QUESTIONS: How to get RegionalDomainName out of a AWS APIGateway DomainName in SAM Cloud-formation EDIT: I changed the question to hopefully get more traffic to this answer as it answers ...

1

I have created an API Gateway using AWS::Serverless::API in SAM and now I want to add Tags to Gateway in order to enforce security constraints on every Gateway with the same tag. Type: AWS::Serve...
Lorolla asked 10/3, 2020 at 18:44

1

Solved

I created a lambda function from a SAM template, and defined multiple triggers, but only one of these triggers is being created in cloudformation. This is my sam template: Myfunc: Type: AWS::Serv...
Macule asked 24/2, 2020 at 23:11

0

When creating an API Gateway using an OAS3 definition, the path and query parameter types get changed to strings. I can't find any AWS documentation stating the expected behavior or why this is. I ...

1

Solved

I'm using SAM Template to create my serverless application. Using the tag Policies under the properties of the resource I can add standard policies like this: Resources: QueryFunction: Type: AW...
Faunus asked 9/12, 2019 at 13:15

2

Solved

So this is my SAM template: webApi: Type: AWS::Serverless::Api Properties: Auth: DefaultAuthorizer: CognitoAuthorizer Authorizers: CognitoAuthorizer: UserPoolArn: !GetAtt myUserPool.Arn Ad...

2

Solved

I am trying to configure a Lambda function's S3 policy bucket that is environment specific. I would like to be able to pass a variable during either "sam package" or "sam deploy" specifying "dev", ...
Pearliepearline asked 26/11, 2019 at 23:18

1

I am working on a project using AWS SAM local. I am invoking a function with sam local invoke which successfully executes the function. The lambda function writes an image file into /tmp/image.png ...
Gegenschein asked 9/10, 2019 at 6:55

1

Solved

I'm trying to use AWS SAM to link a request validator resource to a serverless API in a SAM template. I have created the request validator and referenced the API in its RestApiId but the validator ...

2

I'm a kind of lost in the documentation. I want to push Python code to a repo and use CodePipeline to deploy Lambdas. I have CodeCommit repo, CodePipeline - so far this works and I can create/updat...

0

I have an API with around 150 endpoints. When I try to deploy the whole thing in one SAM (Serverless Application Model) template it fails (expected) because the 744 resources it wants to create is ...
Trapp asked 5/5, 2019 at 13:6

1

I'm using AWS Serverless for building a small site with around 15 Lambda functions. My Cloudformation stack is completely built using SAM. I'm NOT using Lambda proxy integration. The Api section ...

1

Solved

I'm trying to use AWS SAM to deploy a simple API. When the API is simple (that is, does not specify explicitly an API Gateway). the deployment succeeds. However, the following deployment fails: A...

2

Solved

When configuring a SAM template and defining a AWS::Serverless::Function there is the Events param that accepts an Api type. Does this create an API Gateway resource? What is the difference between...
Incapable asked 22/12, 2018 at 19:5

1

Solved

I have an apparently-simple requirement to create a proxy resource in SAM (Amazon's Serverless Application Model). So simple in fact that Amazon's documentation appears to leave this as an exercise...

0

I am new to Serverless and AWS SAM. I have tried creating a template.yaml for my new lambda functions and api gateway's of my application and deployed to AWS using AWS SAM. It worked fine. But my ...
Erikerika asked 23/1, 2019 at 16:32

0

I've a Lambda function written in Go that supposed to allow image file upload—via an HTML form/JavaScript and an API Gateway integration—into an S3 bucket, all defined in a SAM template. Here's an...
Goethite asked 29/11, 2018 at 11:24

1

Solved

Instead of (A) following a more traditional route for running a web application on AWS (e.g., using Ruby/Sinatra or Python/Flask on AWS EC2 or Beanstalk), or (C) creating static HTML and JavaScri...
Phebe asked 22/10, 2018 at 8:30

© 2022 - 2024 — McMap. All rights reserved.