Hi all,
With serverless 1.0b2, I’m trying to create a security group with cloudformation and attach this SG to my lambda function (for the VPC integration feature). I can already create the new security group, but how would I reference it in my function definition given that I don’t know its id/name until it is deployed?
This is my custom resource definition in serverless.yml (sorry, the indentation is not preserved for some reason):
resources: Resources: LambdaSecurityGroup: Type: AWS::EC2::SecurityGroup Properties: GroupDescription: StealthMonitorSecurityGroup SecurityGroupEgress: - IpProtocol: -1 CidrIp: 0.0.0.0/0 SecurityGroupIngress: - IpProtocol: -1 CidrIp: 0.0.0.0/0 VpcId: ${VpcId}
Thanks!