Questions tagged [chalice]

Chalice is a microframework for writing serverless apps in python. It allows you to quickly create and deploy applications that use AWS Lambda.

Chalice is a Python Serverless Microframework for AWS (Amazon Web Services). Chalice is maintained by AWS, the code is available on GitHub at https://github.com/aws/chalice.

Chalice allows to quickly create and deploy applications that use Amazon API Gateway and AWS Lambda. It provides:

  • A command line tool for creating, deploying, and managing your app
  • A familiar and easy to use API for declaring views in python code
  • Automatic IAM policy generation
153 questions
3
votes
2 answers

AWS - Send Message to an SQS from a Lambda function inside a VPC

I have hosted a Lambda function using AWS Chalice inside a VPC since I want it to access a Serverless Aurora DB Instance. Now I also want this function to send_message() to an SQS. I followed Tutorial: Sending a Message to an Amazon SQS Queue from…
Mehran
  • 1,264
  • 10
  • 27
3
votes
2 answers

How to process DynamoDB stream events with Chalice

I am writing a project where I need to process DynamoDB table inserts and updates in Chalice. I see in Chalice events processing for SNS, SQS, scheduler but not for DynamoDB table. Currently it is not in Chalice, but AWS definitely can do it. What…
3
votes
2 answers

Chalice Packaging Problems

I'm playing around with Chalice for the first time as I am trying to evaluate it as a possible replacement framework to migrate my existing Python Flask APIs from EC2 to Lambda. From an Amazon Linux EC2 instance, I added some dependencies to a…
mickzer
  • 5,958
  • 5
  • 34
  • 57
2
votes
0 answers

Is it safe to convert synchronous HTTP endpoint to asynchronous

The framework we're using is Chalice (AWS) but in this case I think framework doesn't matter alot. Simply, it does not support async routes like some other Python frameworks and uses Python. Chalice official documentation:…
Fatih Ersoy
  • 680
  • 1
  • 5
  • 24
2
votes
0 answers

Proper way to test Chalice app with env variables

I have a Chalice API project with the following config under .chalice/config.json: { "version": "2.0", "app_name": "my-app", "manage_iam_role": true, "stages": { "local": { "api_gateway_stage": "local", …
bolino
  • 867
  • 1
  • 10
  • 27
2
votes
1 answer

AWS: Always Getting `"message": "Forbidden"` from API Gateway for Endpoints that Require an API Key

We have deployed a Chalice app to AWS, and we are receiving the following response when calling endpoints that require an API Key: { "message": "Forbidden" } Endpoints that don't require an API Key can be called without any issues. What's…
2
votes
0 answers

AWS Chalice route working locally, but not when deployed

I'm new to AWS Chalice and I'm running into obstacles during deployment--essentially, everything works fine when I run chalice local, I can go to the route I've defined and it will return the related JSON data. However, once deployed and I try…
A. Keller
  • 21
  • 1
2
votes
1 answer

How to deploy by stage with Chalice using CDK

I can't find any examples of how to deploy by stages (environments) when deploying a Chalice app with CDK, as spelled out here? https://aws.github.io/chalice/tutorials/cdk.html I found https://aws.github.io/chalice/topics/stages.html, but can't find…
brno32
  • 414
  • 5
  • 17
2
votes
1 answer

AWS Lambda Chalice Layers Segmentation Fault

I am deploying a Python 3.7 Lambda function via Chalice. Because the code with its environment requirements, is larger than 50 MB limit, I am using the "automatic_layer" feature of Chalice to generate the layer with the requirements, which is…
2
votes
0 answers

best way to manage sessions/cookies with chalice

What's the easiest way to have sessions or at least cookie management in a python chalice web app? Have looked around but haven't found a good solution.
mowliv
  • 125
  • 1
  • 7
2
votes
1 answer

Enabling SOFTWARE_TOKEN_MFA through Python Boto3 for a cognito user

I need to enable MFA for Cognito users as per their requirements. I tried SMS MFA & it worked perfectly, but when it comes to Software MFA (SOFTWARE_TOKEN_MFA) i couldn't find any proper documents or examples on how to enable it through code. Either…
2
votes
0 answers

Terraform invalid arn for aws provider

I'm using AWS Chalice to configure my app, and packaging this to terraform config so that I can combine with the terraform config responsible for the creation of backing services (s3 buckets, elasticache instances etc). Because chalice is not…
kalpaitch
  • 5,193
  • 10
  • 43
  • 67
2
votes
2 answers

Any framework or tool is available to achieve swagger definition as the auto generation process for AWS Chalice?

I'm using AWS chalice for API development and deployed. Currently, I'm about to implement swagger definition for my API's and I don't want to do the swagger definition creation process as the manual. Is there any framework or tool available…
saravana kumar
  • 255
  • 1
  • 3
  • 10
2
votes
1 answer

missing public key file in chalice

I am working with Chalice Chalice (to write python rest api) and cashfree sdk Cashfree SDK (to transfer money). I have a public_key.pem file which helps in maintaining a dynamic IP DYnamic Link Info. I have been able to run this code in local ...…
Darth Vader
  • 881
  • 2
  • 7
  • 24
2
votes
0 answers

AWS Lambda function is not triggered on S3 bucket object create event in Chalice

I deployed an AWS Lambda Function which triggers on S3 bucket event creation using Chalice, but the lambda function is not triggered when I upload an object to the S3 bucket. The Cloudwatch logs and metrics don't show any data. The code is as…
1
2
3
10 11