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
0
votes
1 answer

Fetch from Chalice API

I have an endpoint to add items to a "MasterList" dynamoDB table @app.route('/save_listing', methods=['POST'], content_types=['application/json'], cors=cors_config) def post_item(): try: data =…
user8022517
0
votes
0 answers

unable to deploy on chalice with pulp python library

I'm running amazon ec2 instance. Have created a chalice project. So far, have installed pulp into the project folder using pip -install pulp -t /home/test/project/vendor/ When doing chalice deploy, I get error: return…
j doe
  • 1
  • 1
0
votes
0 answers

importError: No module named jose

Although, I have installed python-jose, its still complaining that jose module not found when run "chalice local". Can anybody please help. Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/chalice/cli/__init__.py",…
SudipM
  • 416
  • 7
  • 14
0
votes
1 answer

How to include python mysql.connector into AWS Chalice deployment?

I try to deploy an AWS lambda application, I implemented with the Chalice Python Framework. My app.py connects to a MySQL server and therefore has to import mysql.connector But on every invocation of one of my lambda functions I get an error in…
S.Schedel
  • 31
  • 3
0
votes
3 answers

return chalice Response object from chalicelib/utils.py

Using AWS Chalice, and suppose app.py looks like this: from chalice import Chalice, Response from chalicelib.utils import some_class app = Chalice(app_name='myApp') app.debug = True @app.route('/myRoute', methods=['POST'], …
mjkrause
  • 406
  • 1
  • 7
  • 14
0
votes
1 answer

json decod error when using POST in chalice

When I try to use app.current_request.json_body in chalice I get a decode error: Traceback (most recent call last): File "/var/task/chalice/app.py", line 659, in _get_view_function_response response = view_function(**function_args) File…
0
votes
1 answer

Error "Client.NetworkInterfaceLimitExceeded" in AWS Lambda API Calls

Background: I have 2 web services implemented through Chalice framework on AWS lambda. Both framework points to the same RDS (MySQL) database backend. Problem: User can't login to apps these two days in the afternoon for a few hours. (Those who has…
Qinjie
  • 1,786
  • 2
  • 19
  • 32
0
votes
1 answer

Peewee circular reference detected in Chalice view

Given the following model: class BaseModel(Model): class Meta: database = database class ContentItem(BaseModel): content = JSONField(index=True) content_item_set = TextField(db_column='content_item_set_id') id =…
James Lin
  • 25,028
  • 36
  • 133
  • 233
0
votes
1 answer

AWS Chalice using custom config path or custom app path?

I am trying to use Chalice to fit into an pre-existing build folder structure, the python source file (app.py) is one level deeper than the vanilla Chalice project ├── .chalice │   └── config.json └── src ├── app.py ├── requirements.txt …
James Lin
  • 25,028
  • 36
  • 133
  • 233
0
votes
0 answers

Using pynamodb in Chalice gives InternalServerError

I have am writing a project with the Chalice framework. I need to interact with DynamoDB so I wanted to use library to simplify the code. I am attempting to use pynamodb and I cannot figure out what I am missing. app.py from chalice import…
0
votes
0 answers

AWS Lambda Chalice: "The request could not be satisfied" Error

I want my lambda function to return the response of another lambda function invoked via AWS API Gateway. Both functions are deployed by Lambda Chalice to different APIs. When the first function sends a request to the 2nd functions API endpoint, I…
onurmatik
  • 5,105
  • 7
  • 42
  • 67
0
votes
1 answer

Connecting to AWS RDS through Chalice for different routes?

A typical chalice app has several routes defined, but how do I properly connect that to an RDS so that I can save POST data, or retrieve data from a db? I already created a database through the RDS panel; I'm just not sure how to access it from…
watdeo
  • 199
  • 1
  • 5
0
votes
2 answers

How to deploy AWS python Lambda project locally?

I got an AWS python Lambda function which contains few python files and also several dependencies. The app is build using Chalice so by that the function will be mapped like any REST function. Before the deployment in prod env, I want to test it…
roeygol
  • 4,908
  • 9
  • 51
  • 88
-1
votes
1 answer

Write a query (preferably in sqlalchemy) to count number of occurrence of unique values in a column grouped by another column in a postgres table

my project uses AWS Chalice framework and sqlalchemy. Here is a sample table from the project. I am required to get data from table in two formats. I require two separate queries which should give the data in different format as both will have…
Ashutosh
  • 209
  • 3
  • 9
-1
votes
1 answer

Python syntax error when trying to access path parameter in chalice

I am trying to access a path parameter using chalice but it's giving me a syntax error. py file @app.route('/someValue/{indicator}', methods=['GET'] def get_indicator_value(indicator): Gives me this error mentioned below: [ERROR]…
Naxi
  • 1,504
  • 5
  • 33
  • 72
1 2 3
10
11