Terraform 设置 AWS Codepipline 通知规则

Dee*_*gal 5 amazon-web-services amazon-sns terraform aws-codepipeline terraform-provider-aws

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

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

在此输入图像描述

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

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

Mar*_*cin 7

CP 通知使用aws_codestarnotifications_notification_rule设置。

有关具体如何设置,event_type_ids 您必须参考 AWS 文档: