service: exemplo custom: dynamoDBTableName: "${opt:stage, self:provider.stage}-foobar" provider: name: aws runtime: nodejs4.3 region: ap-southeast-1 functions: hello: handler: handler.hello environment: TABLE: ${self:custom.dynamoDBTableName} resources: Resources: MyTable: Type: AWS::DynamoDB::Table Properties: TableName: ${self:custom.dynamoDBTableName} AttributeDefinitions: - AttributeName: uuid AttributeType: S KeySchema: - AttributeName: uuid KeyType: HASH ProvisionedThroughput: ReadCapacityUnits: 1 WriteCapacityUnits: 1