https://serverless.com/framework/docs/providers/aws/guide/serverless.yml/
provider:
stackTags: # Optional CF stack tags
key: value
tags: # Optional service wide function tags
foo: bar
baz: qux
What's the difference between the two?
A service, aka a project, is the Framework's unit of organization. A service is configured via a serverless.yml file where you define your functions, the events that trigger them, and the AWS resources to deploy.
To reference properties in other YAML files use the ${file(./myFile. yml):someProperty} syntax in your serverless. yml configuration file. To reference properties in other JSON files use the ${file(./myFile.
Service. service: app. The service is simply the name of your project. Since Serverless lets us deploy a project in multiple stages (prod, dev, staging…), CloudFormation stacks will contain both the service name and the stage: app-prod , app-dev , etc.
The CloudFormation stack itself can have tags, which is what stackTags
is used for.
If you want to tag your Lambda functions you'd use tags
.
tags
on a provider
level are applied to all functions within the stack.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With