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?
Adding API Gateway as Trigger to Lambda Function Using Serverless Script not the UI
220 Views Asked by 007 At
1
There are 1 best solutions below
Related Questions in AMAZON-WEB-SERVICES
- S3 integration testing
- How to get content of BLOCK types LAYOUT_TITLE, LAYOUT_SECTION_HEADER and LAYOUT_xx in Textract
- Error **net::ERR_CONNECTION_RESET** error while uploading files to AWS S3 using multipart upload and Pre-Signed URL
- Failed to connect to your instance after deploying mern app on aws ec2 instance when i try to access frontend
- AWS - Tab Schema Conversion don't show up after creating a Migration Project
- Unable to run Bash Script using AWS Custom Lambda Runtime
- Using Amazon managed Prometheus to get EC2 metrics data in Grafana
- AWS Dns record A not navigate to elb
- Connection timed out error with smtp.gmail.com
- AWS Cognito Multi-tenant Integration | Ok to use Client’s Idp?
- Elasticbeanstalk FastAPI application is intermittently not responding to https requests
- Call an External API from AWS Lambda
- Why my mail service api spring isnt working?
- export 'AWSIoTProvider' (imported as 'AWSIoTProvider') was not found in '@aws-amplify/pubsub'
- How to take first x seconds of Audio from a wav file read from AWS S3 as binary stream using Python?
Related Questions in AWS-LAMBDA
- Query parameter works fine with fastapi application when tested locally but not working when the FastAPI application is deployed on AWS lambda
- Lambda endpoint for the Google OAuth callback does not recieve the access_token
- Golang lambda upload image into s3 static website
- Unable to run Bash Script using AWS Custom Lambda Runtime
- Call an External API from AWS Lambda
- AWS Lambda Trigger For Same S3 File Name In Quick Succession
- Trouble Extracting Request Body in Flask-Lambda Application Deployed on AWS Lambda via AWS SAM
- S3 pre-signed url not working on whatsapp cloud Api
- 'Load failed' error when trying to create a function in AWS lambda
- Using Python CDK to bundle dotnet 8 code to AWS Lambda function
- AWS WebSocket API return forbidden (403) error when sending message
- Pass integer value in json serializable Python Object
- AWS Lambda successfully called with 'Function URL', but not with 'API Gateway'
- How do I create a *clean* AWS lambda function in python?
- Laravel Vapor Queue Dynamic DB Connection Issue for Different Requests
Related Questions in AWS-API-GATEWAY
- Lambda endpoint for the Google OAuth callback does not recieve the access_token
- AWS WebSocket API return forbidden (403) error when sending message
- AWS Lambda successfully called with 'Function URL', but not with 'API Gateway'
- How to establish connection pooling for HTTP Requests Lambda function attached to AWS API gateway?
- Allow AWS API Gateway to return YAML format, when a specific JSON property equals YAML
- AWS ApiGateway StartSyncExcecution CORS configuration via SAM or CLI
- How to reference existing lambda in sam template
- AWS ApiGateway Documentation support to Open Api 3.1
- Using AWS API HTTP Gateway with HTTP Backend without 301 redirection
- How to get geolocalisation , request from AWS API Gateway?
- Issue with API Gateway-Lambda Integration: Consistent 504 Timeout Despite Quick Lambda Execution
- Exporting openAPI specification with terraform + apigateway + AWS?
- Cloudwatch Alarm 4xx Errors API Gateway Terraform
- AWS API Gateway custom domain path configuration
- How to LIMIT cost to 100 API calls max in a day even if someone has my API endpoint details
Related Questions in API-GATEWAY
- Minimizing IdentityServer4 Round Trips in Microservice Architecture with Ocelot
- Using Django as API gateway & authorizations service in Microservice
- Using AWS API HTTP Gateway with HTTP Backend without 301 redirection
- Websocket duplicate on headers
- LocalStack API Gateway Not Triggering Lambda Function from HTML Form Submission
- ApiGateway is not routing the api call
- Handling Microservice Failures in a Consul-Managed Architecture
- How to disable showing default Axis2 services (https://localhost:8243/services/Version?wsdl) in WSO2 API manager 3.2.0?
- Caching : functools vs API Gateway
- disable soap in wso2 api manager gateway https://IPaddr:9443/services
- add custom header at aws lambda authorizer
- Ocelot .NET API gateway: Failed to load API definition
- I want Netty webserver instead of tomcat in my spring-boot project with webflux
- Spring cloud gateway not able to find the service recource
- How to encode parameters for AWS API Gateway (HTTP API)?
Related Questions in AWS-LAMBDA-EDGE
- Cross account origin change in lambda edge
- Are key case sensitive in request.header.host in lambda edge function (nodejs16.x)
- Triggering lambda edge in Cloudfront origin response flow only for specific files
- Include CloudFront-Viewer-Country in the AWS Cloudfront logs
- How to use nodejs request module inside AWS Lamda Edge function
- Gatsby Functions - How can I deploy gatsby functions that works like express-style functions to s3 and cloudfront?
- Lambda@Edge Does Not See the `Authorization` Header
- How do I organise my CloudFront Behaviors to serve the correct SPA app when using separate buckets for a path based app
- AWS CloudFront and Lambda@Edge return 403
- Lambda@Edge with Cognito Authentication Fails for Subpaths in CloudFront-S3 Setup
- Lambda Edge Function trigger is getting removed automatically
- Lambda Edge returns html page instead of json
- How do I refresh a lambda after changing a config option
- Changing Host in LambdaEdge for an Origin-Request is forbidden
- can i use a cloudfront function to change url in the behaviour path pattern
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.