Skip to content

Lambda in VPC needs access to Bedrock Runtime endpoint

0

I created "com.amazonaws.us-east-1.bedrock-runtime" endpoint and it is in a security group that has inbound https 443 access, outbound has all access & policy allows all. I used the same setup for "com.amazonaws.us-east-1.ssm" which works.

If I put lambda outside of VPC - bedrock runtime works, so how can I get lambda inside my VPC to communicate with bedrock runtime - what inbound ports need to be opened in VPC security group?

2 Answers
1

Please see link. What you have created for ssm should be fine for bedrock, however there are 4 VPC endpoints. You may need some or all of these for your function to work correctly.

Don’t forget to enable Private DNS

https://docs.aws.amazon.com/bedrock/latest/userguide/vpc-interface-endpoints.html

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

0
Accepted Answer

It worked as per description - I guess some change did take longer time to propagate than what was indicated in the AWS console.

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.