Description:
My project exist exists in one single VPC (default one) (account created way after 2013)
I have a Lambda function that requests successfully data from a DynamoDB table.
I created a DAX cache Layer (which was created in the same default VPC)
For the Lambda function to be able successfully query DAX, instead of the DynamoDB I should configure its VpcConfig.
I manage my services using cloud formation (JSON) - Amplify CLI
Question
I can hardcode the SecurityGroupIds and SubnetIds in the lambda VpcConfig and it works fine. But I want a way to retrieve these values dynamically (This cloud formation will be also used in different environments) from the default VPC
Usually when I need a specific ARN or Name I just put it in the Outputs of the created resources and use it elsewhere
But in my case I didn't create the default VPC (It's automatically created when the account was created)