aws-events-targets EcsTask Only allows one security group to be added #3312
Labels
@aws-cdk/aws-ecs
Related to Amazon Elastic Container
@aws-cdk/aws-events
Related to CloudWatch Events
effort/medium
Medium work item β several days of effort
feature-request
A feature should be added or improved.
in-progress
This issue is being actively worked on.
p1
I'm submitting a ...
What is the current behavior?
When using AwsVpc mode for scheduled fargate tasks the optional
securityGroup
prop on EcsTask only allows for passing one security group through.It gets cast to an array within the custom resource:
https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-events-targets/lib/ecs-task.ts#L141
What is the expected behavior (or behavior of feature suggested)?
It should allow a array of security groups to be passed through.
What is the motivation / use case for changing the behavior or adding this feature?
To allow multiple source security groups to be added to the running scheduled task
Please tell us about your environment:
Other information
Unless there are further limitation within the
NetworkConfiguration
&awsvpcConfiguration
custom resources this should just be able to be changed to an array of Security groupsThe text was updated successfully, but these errors were encountered: