Skip to content

Cannot access SOCA API using AWS Lambda Function using Python code. #122

Closed Answered by mcrozes
balu-hcl asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @balu-hcl -

This environment is owned and managed by another Amazon internal team. I will follow-up with you directly on your Amazon email.

Generally speaking, if you are trying to access to the SOCA API endpoint via a Lambda you just created, you have to verify if your Lambda is deployed on the same VPC or using generic environment (this will depends whether you should reference the API endpoint via the private or public endpoint).

If you are getting Not Authorized, the most obvious reason would be that the user you are initiating the connection with is not authenticated correctly and/or you are trying to access an admin-only API with a non-admin user. Here is an example of simple …

Replies: 1 comment

Comment options

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