mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
1.2 KiB
1.2 KiB
Read this on the main serverless docs site
Reference AWS-specific variables
You can reference AWS-specific values as the source of your variables. Those values are exposed via the Serverless Variables system through the {aws:} variable prefix.
The following variables are available:
accountId
Account ID of you AWS Account, based on the AWS Credentials that you have configured.
service: new-service
provider:
name: aws
functions:
func1:
name: function-1
handler: handler.func1
environment:
ACCOUNT_ID: ${aws:accountId}
region
The region used by the Serverless CLI. The ${aws:region} variable is a shortcut for ${opt:region, self:provider.region, "us-east-1"}.