serverless-fargate icon indicating copy to clipboard operation
serverless-fargate copied to clipboard

Warning if securityGroupIds is not set

Open tw1t611 opened this issue 2 years ago • 2 comments

Docs show, that securityGroupIds are optional.

  vpc:
    # (optional) default security groups which are added to tasks that do not contain any overrides; these override any provider-level configuration.
    securityGroupIds:
      - sg-12345

Not setting it results in the following error:


Warning: Invalid configuration encountered
  at 'provider.vpc': must have required property 'securityGroupIds'

Learn more about configuration validation here: http://slss.io/configuration-validation

tw1t611 avatar Jul 25 '22 19:07 tw1t611

What configuration are you supplying for the vpc configuration at the provider level?

eddmann avatar Aug 22 '22 22:08 eddmann

  vpc:
    securityGroupIds:
      - sg-xxx
    subnetIds:
      - subnet-xxx

That's what I have for now. Removing securityGroupIds causes the warning.

tw1t611 avatar Aug 31 '22 14:08 tw1t611

Apologies, looking at the Serverless source both the securityGroupIds and subnetIds are required if the provider.vpc is defined. I have pushed a change to the README to reflect this https://github.com/eddmann/serverless-fargate/commit/d5728456d2d5292629b48b247027f7ee9bb9ced0

eddmann avatar Nov 11 '22 17:11 eddmann