Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:17
    jamesls opened #1731
  • 13:53
    chwhit opened #1730
  • 13:05
    dependabot[bot] labeled #1729
  • 13:05

    dependabot[bot] on pip

    Update click requirement from <… (compare)

  • 13:05
    dependabot[bot] opened #1729
  • May 11 20:07
    jp-pix4d opened #1728
  • May 11 08:17
    dernat71 commented #1721
  • May 11 02:21
    wilmeragsgh edited #1727
  • May 11 02:18
    wilmeragsgh opened #1727
  • May 10 21:47
    umairnsr87 opened #1726
  • May 10 19:23
    jrbeilke opened #1725
  • May 10 15:48
    carolina-cascade opened #1724
  • May 10 15:12
    zoown13 opened #1723
  • May 10 11:07
    M-Thirumal edited #1722
  • May 10 11:06
    M-Thirumal opened #1722
  • May 10 06:39
    Cyb-himanshu commented #229
  • May 10 06:38
    Cyb-himanshu commented #229
  • May 10 00:34
    MichaelBoselowitz commented #1290
  • May 09 21:04
    bacota commented #1290
  • May 09 14:45
    bacota commented #1290
Mauro Spivak
@mspivak
Hi there, I'm new to chalice and I'm struggling with a tiny demo app I'm trying to deploy. Error is "The write operation timed out". I tried chalice --debug deploy It retries several times but it never works.
kristus123
@kristus123_gitlab
@mspivak Maybe send the code you have ? Maybe your environment is set up wrong as well
Rafał Mituła
@rmitula
Hi, I wonder if there is an option to commonly name all Chalice generated resource names with some prefix like 'PROD-ChaliceAppPrefix-FuntionName'? FYI I'm using Terraform deployment option.
kristus123
@kristus123_gitlab
why do i get this error ?
[ERROR] KeyError: 'version'
Traceback (most recent call last):
File "/var/task/chalice/app.py", line 1458, in call
event_obj = self.event_class(event, context)
File "/var/task/chalice/app.py", line 1486, in init
self._extract_attributes(event_dict)
File "/var/task/chalice/app.py", line 1497, in _extract_attributes
self.version = event_dict['version']
kristus123
@kristus123_gitlab
i get it a lot in my sqs method in chalice
chetan korde
@chetan_korde_twitter
Hello, query is if successive chalice deploy will only upload the diff(changes in app.py) or the entire package(including dependency packages) to aws?
yazaksu
@yazaksu
hello everyone. is there any plans to implement Provisioned Concurrency ?
is there a feature request for this?
yazaksu
@yazaksu
my question is regarding this feature request aws/chalice#1322
mowliv
@mowliv
Hi guys - I sometimes am in a rural area where upload speeds are slow enough that chalice deploy times out and I cannot upload. Before using chalice, I got around this by uploading first to S3. Is there any option for doing that with chalice? The other nice thing S3 upload provides is a progress bar (a non issue with fast upload, I know).
Nirali Mistry
@niralimistry
Hello I am trying to run aws chalice app with python. I am getting error "Missing authentication token". Does anyone came across such error ? Thanks for the help
image.png
Kovalchuk Evgeny
@Senpos

Hey there! Is stacking decorators on top of each other allowed? For example, I want my function to be invoked by both HTTP-request (route) and periodically (schedule).
Can I just do:

@app.route(...)
@app.schedule(...)
def my_function(): ...

Or should I create a separate handler for each of those?

Antony K
@kingy04
Hi all, Has anyone found a solution for testing functions wrapped in events such as @app.on_sqs_message locally (without calling deployed code). If not @jamesls whats the latest on this are we likely to see this added anytime soon there seems to be a lot of requests for it? Thanks
Ryan
@chimon2000

is it possible to generate terraform with the provider credentials?

https://registry.terraform.io/providers/hashicorp/aws/latest/docs#authentication

Kapil Thangavelu
@kapilt
@chimon2000 why?
you can have a separate file in the same output dir that defines credentials, its not really an artifact of generation, but an input to deployment/running
mostly its best to use say env vars for it
gsilva1108
@gsilva1108
Hello. I am trying to understand why when I do "chalice package --pkg-format terraform test/path" why it doesn't specify my region(s) in the chalice.tf.json? Do I have to add it manually every time?
2 replies
Sudhanshu Mishra
@debugger22
Hello. Why do I get ValueError: Deployed values for resource does not exist: api_gateway_custom_domain when I add custom domain config in chalice's config?
Mark
@marklester
hello, is there docs on how to managed app size?
automatic layer is getting bigger than 50MBs
Saravana kumar
@Saravan62651286_twitter

VPC is not getting configure with lambda though I supplied valid subnet_ids & security_group_ids to the chalice config.json file.

This is how my config file looks like,

"lambda_functions" : {
"cohort_submit_to_compiler" : {
"lambda_timeout": 600,
"autogen_policy": false,
"subnet_ids":["xxx-1","xxx-2"],
"security_group_ids" : ["YYYY"],
"iam_policy_file": "policy-dev.json"
}
}

And also with my policy-dev.json, I provided mandatory access permission to the EC2 resource to create VPC configuration, And this is how my policy-dev.json looks like,
{
"Action": [
"ec2:CreateNetworkInterface",
"ec2:DescribeNetworkInterfaces",
"ec2:DetachNetworkInterface",
"ec2:AttachNetworkInterface",
"ec2:DescribeInstances",
"ec2:DeleteNetworkInterface"
],
"Resource": "*",
"Effect": "Allow"
}

Note: Deployment is getting success but VPC is not configured to my Lamba.

Could someone please help me with this? I even raised this an issue in github.

Pi
@p-i-
Wow, just look at the questions to answers ratio in this community.
Nobody is providing support for this technology.
Can't Amazon dig into their pockets and free up a few engineer hours a week to foster their community?
1 reply
Such a pity to see this attractive technology so unsupported.
alincmt
@ClimenteA
I saw that they update this repo, so it's still work done on this project
probably on stackoverflow we have a better change for some questions
  • javascript/typescript is booming, there is also serverless framework (which I don't like)
chalice is awesome, hope they will still support this framework
Tristan
@tvb
Hi all
I have an Flask app which uses quite some extensions like babel, wtforms and sessions. I would like to replace Flask with Chalice, but I don't think any of these extensions are supported nor are the any alternatives available. Am I right?
4 replies
Clark "CJ" Milholland
@cjMilholland

Hello Everyone,

I am looking to extend a current application that is build on Chalice to serve its Web Assets through the AWS API Gateway.

Currently the Web Assets are in an S3 bucket.
I have been able to get a function going that will serve the index.html page through the API Gateway which is a great start.

But what I am running into is trouble figuring out how to match all of the possible files in the S3 bucket.

I.E. pseudo code

WORKS

www.example.com/ui -> API Gateway ( /ui )

@app.route('/ui')
def ui_index():
file_body = get_file_from_s3('index.html')
return file_body

WORKS

www.example.com/ui/script.js -> API Gateway ( /ui/{path} )

@app.route('/ui/{path}')
def ui_path(path):
file_body = get_file_from_s3(path)
return file_body

FAILS

www.example.com/ui/images/logo.png -> API Gateway ( /ui/{path} )

@app.route('/ui/{path}')
def ui_path(path):
file_body = get_file_from_s3(path)
return file_body

FAILS

www.example.com/ui/really/long/path/into/random/library/app.js -> API Gateway ( /ui/{path} )

@app.route('/ui/{path}')
def ui_path(path):
file_body = get_file_from_s3(path)
return file_body

Looking at the AWS API Gateway docs there is a proxy feature that allows for a 'greedy' api resource {proxy+}
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-set-up-simple-proxy.html
See: HTTP proxy integration with a proxy resource

The above seems to half work when I configure the following in the Chalice App

www.example.com/ui/really/long/path/into/random/library/app.js -> API Gateway ( /ui/{path+} )

@app.route('/ui/{path+}')
def ui_path(path):
file_body = get_file_from_s3(path)
return file_body

But obviously path+ is not a valid python variable name so I can't have that as a parameter for the function.

Does anyone know if we have access to the whole requested URL inside of the function?
I was thinking that could be a good workaround to this problem

Sorry for the poor formatting on the message above... First time posting on gitter
pco-dev-x66
@pco-dev-x66
excellent day, someone could guide me on how to add a *.so file, I have problems with the python-magic package and I have read about including such a file but I do not understand how to do this with chalice.
Ian DesJardins
@iandesj
Has anyone had success (or failure) with attaching an creating an sqs event listener using blueprints? At runtime, it appears that it's not getting picked up. Even though I'm registering this blueprint to the root app instance.
Ian DesJardins
@iandesj
Some more context. Here's my error:
[ERROR] Runtime.HandlerNotFound: Handler 'dataset_requests' missing on module 'app'
Gopikrishnateja
@Gopikrishnateja
Hii Guys, i need help on aws chalice
@iandesj Hii bro
Gopikrishnateja
@Gopikrishnateja
@metasci hii i need help on chalice
Matt Walker
@walkermatt:matrix.org
[m]
Hi, how are people handling versioning a REST API built with Chalice?
Currently I've defined a dev stage and I'm wondering about creating a v1 stage, does this sound reasonable or is there a better approach?
chalice.dev
@chalice-dev
Hey we created a Slack channel for Chalice https://chalice.dev
Ian Meyers
@IanMeyers
Hello all - am upgrading from a (much) older version of chalice, and redeploying. Some changes in how boolean values are handled in config.json, but got it working. However, it seems that the .chalice/config.json file isn't included in the deployment. Have tested with chalice package --single-file OUT, and the file isn't included in deployment.zip. Has anyone else seen this issue?
1 reply
generatorzxy
@generatorzxy_twitter
Hi im new here, is it possible to install https://github.com/aws/chalice in windows 10? because i see all comands are for linux
Tom May
@tjdecke
Hi. Is there any way to find out if my code is running in chalice local mode? I would like to customise CORS settings based on whether running locally or not.
S K
@sarav11:matrix.org
[m]

Hi All! I have been using chalice for my project. Current I'm in a stage with implementing authorizer for my project. And I'm also using AWS Cognito for authentication & authorization.

My 1st question is, When I came across Chalice Authorization document, I noticed a note that "In Chalice, all the authorizers are configured per-route", So is it possible to configure API gateway level authorization rather than against every route level? Is chalice 'Built-in-Authorizers' functionality is for API gateway level or it's same as route level?

And My 2nd question is, I came across CognitoUserPoolAuthorizer and I used it too . But is it possible to use CognitoUserPoolAuthorizer functionality logic inside 'Built-in-Authorizers' auth_handler lambda for authorising? If yes, How Could I invoke CognitoUserPoolAuthorizer inside my auth_handler lambda?