copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Guidance: How do I configure the Lambdas created by Copilot Load Balanced Web Service/Backend Service to be in inside a VPC?

Open rickychew77 opened this issue 1 year ago • 1 comments

There are functions like EnvControllerFunction, DynamicDesiredCountFunct and RulePriorityFunction are created from Copilot to support the the Copilot lifecycle.

As part of my organization compliant, it is recommended for lambdas to always be inside a VPC. How can I configure that in the copilot configuration? Understand can be done manually from console but I wish to do it from Copilot manifest as much as possible.

rickychew77 avatar Apr 11 '24 06:04 rickychew77

Hello @rickychew77. That's an interesting idea 🤔 I've never tried to put a lambda in a VPC but i guess technically you can do that by using override and update through https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig.

iamhopaul123 avatar Apr 12 '24 18:04 iamhopaul123