- Create the project from the following template:
$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch7/datadog-account --path cncb-datadog-account
- Navigate to the cncb-datadog-account directory with cd cncb-datadog-account.
- Review the file named serverless.yml with the following content:
service: cncb-datadog-account...resources: Resources: DatadogAWSIntegrationPolicy: Type: AWS::IAM::ManagedPolicy Properties: PolicyDocument: ${file(includes.yml):PolicyDocument} DatadogAWSIntegrationRole: Type: AWS::IAM::Role Properties: RoleName: DatadogAWSIntegrationRole AssumeRolePolicyDocument: Statement: Effect: Allow Principal: AWS: arn:aws:iam::464622532012:root Action: sts:AssumeRole ...