简体   繁体   English

AWS ECR事件触发的Cloudwatch事件规则

[英]Cloudwatch event rule triggered by AWS ECR event

I am trying to setup CI/CD with AWS codepipeline and now I am stuck with pipeline autostart. 我正在尝试使用AWS Codepipeline设置CI / CD,现在我陷入了管道自动启动的困境。 Looks like cloudwatch does not detect ECR events so does not start a pipeline. 似乎cloudwatch无法检测到ECR事件,因此不会启动管道。 Target and role configured correctly, but in access advisor for role I don`t see any role invocations. 目标和角色已正确配置,但是在角色的访问顾问中我看不到任何角色调用。 Region us-west-2. 地区us-west-2。

Here is event pattern that I use: 这是我使用的事件模式:

{
  "detail": {
    "eventName": [
      "PutImage"
    ],
    "requestParameters": {
      "imageTag": [
        "service.develop.latest"
      ],
      "repositoryName": [
        "repository"
      ]
    }
  },
  "source": [
    "aws.ecr"
  ]
}

I can see PutImage events in cloudtrail but this rule does not work. 我可以在cloudtrail中看到PutImage事件,但是此规则不起作用。 Any help appreciated, thanks. 任何帮助表示赞赏,谢谢。

Well, magically this thing started to work. 好吧,这东西神奇地开始起作用了。 Looks like an AWS bug as I did not fixed it somehow. 看起来像一个AWS错误,因为我没有以某种方式修复它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM