(synthetics): canary permissions for cloudwatch logging are malformed #18910
Labels
@aws-cdk/aws-synthetics
Related to Amazon CloudWatch Synthetics
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p1
What is the problem?
When creating a canary using
@aws-cdk/aws-synthetics-alpha
version2.10.0-alpha.0
and using the default role creation, the permissions allow the canary to run but it doesn't create logs in CloudWatch. I've traced this to the policy that is created around logging, which is generated as follows:The
Resource
element is missing a region. It can be rectified by adding a more specific policy statement to thecdk
code e.g.Reproduction Steps
What did you expect to happen?
Canary can create and write to CloudWatch logs with default role permissions
What actually happened?
Canary cannot create or write to CloudWatch logs with default role permissions
CDK CLI Version
2.10.0 (build e5b301f)
Framework Version
No response
Node.js Version
v14.15.5
OS
Mac OS / CodeBuild (same results locally and on CI)
Language
Typescript
Language Version
Typescript (4.2.4)
Other information
No response
The text was updated successfully, but these errors were encountered: