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
1
vote
1 answer

Setting environment variable for JSON files in AWS Lambda Chalice

I'm working with some Kaggle project. Using Python library for BigQuery on my laptop, I can successfully download the dataset after passing the authentication credential by environment variable GOOGLE_APPLICATION_CREDENTIALS. As the documentation…
1
vote
0 answers

How to show an item dynamodb with Chalice and Boto3

I'm having a problem when connecting Dynamodb and trying to show an item on Chalice response. When I access the link, my API shows this error: {"Message": "An internal server error occurred.", "Code": "InternalServerError"} I try to change the code…
1
vote
1 answer

How to set 'Description' in AWS Lambda using Chalice

I have been using Chalice for my AWS Lambda programming. There's only one thing that buggs me. How can I set the Description of a lambda function? I know I can customize memory and timeout using configuration file in the .chalice directory. But I…
user19906
  • 323
  • 4
  • 12
1
vote
1 answer

AWS Lambda upload file to s3

I have an AWS lambda function that takes in multipart form data, parses it for a document (can be .pdf, .doc, or .docx) and then uploads that to an S3 bucket. I'm receiving the form data, parsing it and seemingly uploading it just fine. However when…
DjH
  • 1,448
  • 2
  • 22
  • 41
1
vote
1 answer

aws chalice ignoring proxy config

I am trying to deploy the helloworld example using chalice behind a corporate proxy. On my machine I use cntlm to proxy the requests with my credentials to the corp proxy. I am monitoring cntlm logs but when I run chalice deploy the request never…
Joao Costa
  • 963
  • 1
  • 7
  • 7
1
vote
1 answer

trying to forward request with chalice

im trying to build a simple api+lambda with chalice which can receive a POST request and then forward it to another API while adding some authentication. when i run my chalice code locally i can send a request and print the payload which i sent…
wuls
  • 41
  • 5
1
vote
3 answers

AWS Chalice: Routes in multiple python files

I'm starting AWS Lambda and I fell in love with Chalice. From what I understand it has the same idea of Flask, but using all requests "serverless". I would like to put together a complex structure, with several lambda script files. I find no such…
luisdemarchi
  • 1,402
  • 19
  • 29
1
vote
0 answers

AWS Chalice - split the app.py in several files

I'm using chalice for an application with a lot of endpoints. I don't want to separate it in several lambdas, because they share the same code (which is in chalicelib), but I want to separate somehow my app.py (e.g. I want it to be like…
Ximik
  • 2,435
  • 3
  • 27
  • 53
1
vote
1 answer

sys.path in virtualenv python

I am running chalice local inside virtual environment. I don't see the libraries installed in virtual environment. From inside chalicelib/common.py, I see the path (sys.path) to be set at: ['/home/sudip/myapp', '/usr/local/bin',…
SudipM
  • 416
  • 7
  • 14
1
vote
1 answer

Chalice: Unable to connect with DynamoDB through pynamodb

It works fine on my local machine with .aws configured. However, lambda is unable to connect with the dynamodb tables through the auto-generated iam role. I even tried adding a policy explicitly to the role via IAM console: { "Sid":…
Vatsal
  • 13
  • 2
1
vote
1 answer

Chalice and Peewee, Error by calling different view

I have the following chalice app: # encoding: utf-8 from chalice import Chalice from models import ContentItem app = Chalice(app_name='moderations') app.debug = True @app.route("/item/{item_id}", methods=['GET']) def view_item(item_id): …
James Lin
  • 25,028
  • 36
  • 133
  • 233
1
vote
1 answer

Unable to deploy on Chalice with Tensorflow

I'm trying to deploy AWS function with Chalice framework which uses tensorflow but it gives me following error 'TypeError: parse() got an unexpected keyword argument 'transport_encoding' code is very simple: from chalice import Chalice import…
1
vote
1 answer

chalice helloworld deployment issue

I was learning about deploying the basic helloworld app in chalice with the help of https://media.readthedocs.org/pdf/chalice/latest/chalice.pdf I get an error unable to parse config file .aws/config need help in resolving the error
florence
  • 11
  • 5
1
vote
1 answer

AWS Chalice Return an Image File from S3

I am using Chalice to build a simple severless application which returns an image file from S3. I am able to return file after it is 64 bit encoded. But I am wondering how I can return the binary file so that user can take it as a file download? My…
Qinjie
  • 1,786
  • 2
  • 19
  • 32
1
vote
2 answers

Using aws chalice to build a single page application?

Has anyone here ever worked with chalice? Its an aws tool for creating api's. I want to use it to create a single page application, but Im not sure how to actually serve html from it. I've seen videos where its explored, but I can't figure out…
Owen Percoco
  • 583
  • 1
  • 4
  • 16