Skip to content

API Destination with POST returns 405 status code #7815

Discussion options

You must be logged in to vote

I was able to resolve the issue just by single quote for the endpoint.

aws --endpoint-url localhost:4566 events create-api-destination 
--name "api-name" 
--connection-arn "connection-arn" 
--invocation-rate-limit-per-second 10 
--http-method POST 
--invocation-endpoint "'host.docker.internal:port_no/api/my-endpoint'"

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Madhukara-Hiriadka
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant