aws / ec2-image-builder-roadmap

Public Roadmap for EC2 Image Builder.
Other
34 stars 7 forks source link

Notify of AMI builds with Event Bridge #82

Open pb8o opened 1 year ago

pb8o commented 1 year ago

Community Note

Tell us about your request What do you want us to build?

EventBridge integration so after an AMI is built, it sends a notification to EventBridge.

This would allow one to write something like this in CDK

const onBuildRule = ibInfra.onBuild('OnBuild', {
  target: new targets.SfnStateMachine(),
  ...
});

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? What outcome are you trying to achieve, ultimately, and why is it hard/impossible to do right now? What is the impact of not having this problem solved? The more details you can provide, the better we'll be able to understand and solve the problem.

After an AMI is built we would like to run it through a qualification workflow before putting it in production. This doesn't quite fit the build-time validation, so we would like to do it after the AMI is built.

Are you currently working around this issue? How are you currently solving this problem?

I am using an SNS topic for notifications, with a Sfn subscribed to the topic. It works, but it would be more direct to have EventBridge.

Additional context Anything else we should know?

Attachments If you think you might have additional information that you'd like to include via an attachment, please do - we'll take a look. (Remember to remove any personally-identifiable information.)

wieshka commented 11 months ago

This is easy to achieve with EC2 AMI notifications emitting AMI ready events.