If Security group is added as Input parameter to template
Parameters:
VPCSGID:
Type: String
Description: Comma separated Security Groups
Security Groups can be split with !Split
as
SecurityGroupIds: !Split [",", !Ref VPCSGID]
can be split with Fn:Split
as
SecurityGroupIds: { "Fn::Split": [",", !Ref VPCSGID] }
Parameter to sam deploy can be passed as
sam deploy --parameter-overrides 'ParameterKey=VPCSGID,ParameterValue=sg-011111,sg-222222'
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…