mudmuseum / terraform-stacks

A repository to collect *aC related resources.
0 stars 2 forks source link

Create IaC for EventBridge trigger and SSM Policy in Instance Profile #26

Closed nswarner closed 3 years ago

nswarner commented 3 years ago

In order to connect GitHub Actions push image to ECR with updating the new image on the mud host, an EventBridge trigger was created on successful ECR push. This EventBridge uses SSM run command to stop, remove, pull, and start the just-pushed image. This required three things,

There may also be other resources (IAM Policy associated to the IAM Role) to document as well.

nswarner commented 3 years ago

Reference: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_rule

EventBridge was formerly known as CloudWatch Events. The functionality is identical.

nswarner commented 3 years ago

Done.