- Newest
- Most votes
- Most comments
In case it can help anyone else, I was able to find my answer on this forum:
https://www.reddit.com/r/aws/comments/cdgi9y/ecr_putimage_cloudwatch_event_rule_codepipeline/
General things to check:
-
Check if CloudTrail has been enabled for the region. If yes, for what event types is it enabled for? Ensure that it logs 'All' event types, not 'Read' or 'Write' events alone.
-
Check the CloudWatch metrics for the event rule. Specifically, check the 'Invocations' metric to see if it had been invoked, and if so, check 'FailedInvocations' to see if there have been failures.
My problem was in #1 above - my CloudTrail trail had "Read/Write events" set to "None" and should have been "All".
Closing this issue.
Hi Amazonians,
is it required to have CloudTrail trail created in order to use ECR events for CodePipeline?
It doesn't work till you enable it.
Goran
I've found a work around.
Modify your CWE rule like following
{
"source": [
"aws.ecr"
],
"detail-type": [
"ECR Image Action"
],
"detail": {
"action-type": [
"PUSH"
],
"repository-name": [
"repo-name"
],
"image-tag": [
"latest"
]
}
}
thanks.
Relevant content
- asked 5 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 months ago