Serverless vpc plugin

Hi Team,

I am trying to create a stack of VPC using the serverless-vpc-plugin. I need to get the output of the Subnet IDs for cross reference . But Somehow its not working . Please see below my serverless.yml

service: vpc-creation-service

plugins:

  • serverless-vpc-plugin

provider:

you do not need to provide the “vpc” section as this plugin will populate it automatically

name: aws
region: ap-southeast-2
vpc:
securityGroupIds:
- # plugin will add LambdaExecutionSecurityGroup to this list
subnetIds:
- # plugin will add the “Application” subnets to this list

custom:
vpcConfig:
cidrBlock: ‘172.1.0.0/16’

# if createNatGateway is a boolean "true", a NAT Gateway and EIP will be provisioned in each zone
# if createNatGateway is a number, that number of NAT Gateways will be provisioned
createNatGateway: 2

# When enabled, the DB subnet will only be accessible from the Application subnet
# Both the Public and Application subnets will be accessible from 0.0.0.0/0
createNetworkAcl: false

# Whether to create the DB subnet
#createDbSubnet: true

# Whether to enable VPC flow logging to an S3 bucket
createFlowLogs: false

# Whether to create a bastion host
createBastionHost: false
bastionHostKeyName: MyKey # required if creating a bastion host

# Whether to create a NAT instance
createNatInstance: false
zones:
      - ap-southeast-2a
      - ap-southeast-2b 


# By default, S3 and DynamoDB endpoints will be available within the VPC
# see https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints.html
# for a list of available service endpoints to provision within the VPC
# (varies per region)
# Output of created architecture

Outputs:
AppSubnet1:
Value:
Ref: AppSubnet1
AppSubnet2:
Value:
Ref: AppSubnet2
PublicSubnet1:
Value:
Ref: PublicSubnet1
PublicSubnet2:
Value:
Ref: PublicSubnet2
DynamodbVPCEndpoint:
Value:
Ref: DynamodbVPCEndpoint
S3VPCEndpoint:
Value:
Ref: S3VPCEndpoint
LambdaExecutionSecurityGroupId:
Value:
Ref: LambdaExecutionSecurityGroupId
vpc:
Value:
Ref: vpc