Can’t get configuration profile of AppConfig from AWS Lambda function

Question:

Lambda function – Node.js

When getConfigurationProfile is called there is no response. No data, no error and the function get timeout.

I added below inline policy to Lambda execution IAM role, but it didn’t work.

Anyone solved this issue before me? Thank you.

Answer:

Based on the comments.

The issue was due to the fact that lambda function was configure to be in a VPC. However, functions in VPC don’t have internet access nor public IP. From docs:

Connecting a function to a public subnet doesn’t give it internet access or a public IP address.

The solution was to use VPC endpoint.

Leave a Reply