Terraform设置AWS Codepipline通知规则

时间:2020-09-30 07:54:26

标签: amazon-web-services terraform amazon-sns terraform-provider-aws aws-codepipeline

我已经手动设置了AWS Codepipeline和通知规则。在该手动设置管道上,我设置了4个事件以在SNS上触发通知:

  • 状态执行:
    • 成功
    • 失败
  • 管道执行:
    • 成功
    • 失败

enter image description here

现在,我正在尝试使用Terraform做同样的事情。但是,无法在Terraform注册表中找到资源。

如何找到Terraform资源来创建Codepipeline通知规则?

1 个答案:

答案 0 :(得分:1)

使用aws_codestarnotifications_notification_rule设置CP通知。

有关如何设置event_type_ids的确切方法,您必须参考AWS文档: