Open corydorning53 opened 3 years ago
i have the exact same case, the SG is created with severless framework, i want severless-vpc-discovery plugin discover subnets only.
any plans to implement this? asking because if I add configValidationMode: error
to my serverless.yml it breaks.
bumping this issue...as it still persists and serverless v3 has been released.
Same issue here, I am also using this plugin to discover subnets of an existing VPC, but defining a security group as a resource and I get the same validation warning.
Bonus, it would also be really nice to get access to the resolved VPC ID from this plugin, so that you don't have to define both a VPC name for auto-discovery and a VPC ID that needs to be referenced in the SG resource.
@corydorning I know it was a year ago now, but did you find a way to work with this?
In my
serverless.yml
I create the following security group in theresources
section:Then in my functions I reference it as:
This has the side effect of giving the following configuration warning, even though its not really an issue, because I reference the subnets in the
custom.vpcDiscovery
:So I was wondering if I could remove the
vpc.securityGroupIds
altogether and just referenceMySecurityGroup
in the plugin config: