Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

VpcFunctionSample parameters not working as expected #147

@yurigorokhov

Description

@yurigorokhov

SecurityGroupIds: !Ref SecurityGroupIds

Should the VpcConfig be using !Split or am I doing something wrong?

This works:

VpcConfig:
  SecurityGroupIds: !Split [ ",", !Ref SecurityGroupIds ]
  SubnetIds: !Split [ ",", !Ref SubnetIds ]

Parameters file:

SecurityGroupIds:
  - sg-009a24967393f87c0
SubnetIds: 
  - subnet-0abde2ab42ca91230

Without !Split I get the following error:

ERROR: UPDATE_FAILED MyFunction [AWS::Lambda::Function]: Value of property SecurityGroupIds must be of type List of String 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions