Which solution will meet these requirements?
Create an EC2 Image Builder pipeline that uses a container recipe to build the image. Configure the pipeline to distribute the image to an Amazon Elastic Container Registry (Amazon ECR) repository in us-west-2. Configure ECR replication from us-west-2 to us-east-2 and from us-east-2 to eu-central-1. Configure the pipeline to run weekly.
Create an AWS CodePipeline pipeline that uses an AWS CodeBuild project to build the image. Use AWS CodeDeploy to publish the image to an Amazon Elastic Container Registry (Amazon ECR) repository in us-west-2. Configure ECR replication from us-west-2 to us-east-2 and from us-east-2 to eu-central-1. Configure the pipeline to run weekly.
Create an EC2 Image Builder pipeline that uses a container recipe to build the image. Configure the pipeline to distribute the image to Amazon Elastic Container Registry (Amazon ECR) repositories in all three Regions. Configure the pipeline to run weekly.
Create an AWS CodePipeline pipeline that uses an AWS CodeBuild project to build the image. Use AWS CodeDeploy to publish the image to Amazon Elastic Container Registry (Amazon ECR) repositories in all three Regions. Configure the pipeline to run weekly.
Explanations:
While EC2 Image Builder can create and publish the image, the pipeline only targets the us-west-2 region directly. The replication setup to us-east-2 and eu-central-1 would not automatically guarantee the base image is built and published in all regions without explicit configuration for each region in the pipeline.
This option involves AWS CodePipeline and CodeBuild, but it relies on AWS CodeDeploy to publish the image to ECR. CodeDeploy is typically used for application deployments rather than for publishing container images. Additionally, it only targets the us-west-2 region without explicit publishing steps to the other regions.
This option correctly utilizes EC2 Image Builder to build the image and can be configured to publish directly to ECR repositories in all three specified regions. This ensures that the base image is available in all required regions. Configuring the pipeline to run weekly meets the specified requirement.
Although this option uses CodePipeline and CodeBuild to build the image, it incorrectly states that CodeDeploy is used to publish the image to multiple ECR repositories. CodeDeploy is not the right service for publishing container images. The pipeline also lacks direct publishing steps to all regions simultaneously.