I'm new to AWS and chalice deployment, but I am the only person in my company working on our api. No one else knows anything about it and we contracted a company to create our api skeleton with basic code and chalice to deploy it. I've learned a lot and I can usually figure things out myself, but I'm stuck on this.
The chalice setup we have doesn't create a bunch of lambda functions in AWS Lambda like you would have to do if you weren't using chalice. It creates a single lambda function with my chalice app name. My app.py file has the app route for all the api calls that can be made.
I want to add a custom message trigger in my user pool to be able to replace the basic AWS verification emails so I can send customized verification emails when a user registers or wants to update their email, but the user pool triggers need a lambda function to call. Do I have to create a new chalice folder with its own app.py for each trigger or can I somehow capture those triggers in the existing app.py?
Whatever the above answer may be, assuming triggers can even be captured with chalice, I also need to know how to fill out @app.route for the trigger in app.py?
@app.route('api invoke url extension?', methods=['?'], content_types=['?'], ...?)
One last thing, is it possible to have the same trigger for all stages in my api? From documentation it appears to be stage specific.
If I can get those questions answered I'm pretty sure I could figure out the rest from http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html.
Thanks in advance.
I'm new to AWS and chalice deployment, but I am the only person in my company working on our api. No one else knows anything about it and we contracted a company to create our api skeleton with basic code and chalice to deploy it. I've learned a lot and I can usually figure things out myself, but I'm stuck on this.
The chalice setup we have doesn't create a bunch of lambda functions in AWS Lambda like you would have to do if you weren't using chalice. It creates a single lambda function with my chalice app name. My app.py file has the app route for all the api calls that can be made.
I want to add a custom message trigger in my user pool to be able to replace the basic AWS verification emails so I can send customized verification emails when a user registers or wants to update their email, but the user pool triggers need a lambda function to call. Do I have to create a new chalice folder with its own app.py for each trigger or can I somehow capture those triggers in the existing app.py?
Whatever the above answer may be, assuming triggers can even be captured with chalice, I also need to know how to fill out @app.route for the trigger in app.py?
@app.route('api invoke url extension?', methods=['?'], content_types=['?'], ...?)
One last thing, is it possible to have the same trigger for all stages in my api? From documentation it appears to be stage specific.
If I can get those questions answered I'm pretty sure I could figure out the rest from http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html.
Thanks in advance.