honerlaw / serverless-fargate-plugin

Serverless plugin to deploy fargate tasks to an ECS cluster.
44 stars 16 forks source link

Ability to use existing VPC and Security Group? #13

Closed dimitry closed 4 years ago

dimitry commented 4 years ago

Not all of our cloud infrastructure is controlled by Serverless.

Serverless allows to use existing VPC at Provider config level by passing existing subnetIds and securityGroupIds. Is it possible to do the same with this Fargate plugin?

Thanks

dimitry commented 4 years ago

Never mind, should have just looked at the code. Apologies.

(For reference: https://github.com/honerlaw/serverless-fargate-plugin/blob/master/src/resources/vpc.ts has a method of useExistingVPC(). Look there to figure out how to pass existing VPC and security group configuration)

kevlarr commented 4 years ago

Thanks @dimitry, had same issue and that would have taken me a bit to find.