0

I want to write a script/code/serverless script that when run adds a trigger to the specified Lambda function. I can deploy a lambda function using a script, I have added a trigger by going to the aws console and clicking the options from there, Also added a post method to trigger the lambda. I want to do this using a piece of code/ script that can run on was cli or anywhere. Is it possible to do that?

asked Apr 19, 2021 at 12:41

1 Answer 1

1

Instead of using CLI or scripts you can use AWS CDK to deploy Infrastructure as Code.

For creating and deploying lambda with API Gateway check this example.

You can get yourself familiar with AWS CDK from this workshop. There are many other resources available on internet as well.

answered Apr 19, 2021 at 12:57
Sign up to request clarification or add additional context in comments.

1 Comment

is it possible to do it via a script/code on CLI or terminal?

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.