Micro services with shared API Gateway

The Resources need to go under a resources key in the serverless.yml for the service that creates the API GW. See https://serverless.com/framework/docs/providers/aws/guide/resources#configuration

You then import it using the ${cf:...} variables syntax into other services. See https://serverless.com/framework/docs/providers/aws/guide/variables#reference-cloudformation-outputs

1 Like