- Create the project from the following template:
$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch5/account-as-code --path cncb-account-as-code
- Navigate to the cncb-account-as-code directory with cd cncb-account-as-code.
- Review the file named serverless.yml with the following content:
service: cncb-account-as-codeprovider: name: aws # cfnRole: arn:aws:iam::${self:custom.accountNumber}:role/${opt:stage}-cfnRolecustom: accountNumber: 123456789012resources: Resources: AuditBucket: Type: AWS::S3::Bucket DeletionPolicy: Retain ... CloudTrail: Type: AWS::CloudTrail::Trail ... CloudFormationServiceRole: Type: AWS::IAM::Role Properties: RoleName: ${opt:stage}-cfnRole ... ExecuteCloudFormationPolicy ...