You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Serverless: Configuration warning:
Serverless: at 'functions.myLambda.vpc': should have required property 'subnetIds'
So I was wondering if I could remove the vpc.securityGroupIds altogether and just reference MySecurityGroup in the plugin config:
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:The text was updated successfully, but these errors were encountered: