Update container image pipelines from the Amazon CLI
To update a container image pipeline, use a JSON file as input to the
update-image-pipeline
-
Image pipeline to update
-
Container recipe
-
Infrastructure configuration
-
Distribution settings (if included in the current pipeline)
If the distribution settings resource is included, then the ECR repository that's specified as the target repository in the distribution settings for the Region where the command runs (Region 1) takes precedence over the target repository that's specified in the container recipe.
Follow these steps to update a container image pipeline using the
update-image-pipeline command in the Amazon CLI, or the
Update-EC2IBImagePipeline cmdlet:
The update-image-pipeline command and the
Update-EC2IBImagePipeline cmdlet replace the entire
pipeline configuration. You must specify all required properties in the
update request. Include all properties—both properties you want to change
and properties that should stay the same. Properties that you omit are
reset to default values or are removed.
To prevent unintended removal of existing settings, use the get-image-pipeline command to retrieve the current configuration. Then modify only the fields you want to change:
aws imagebuilder get-image-pipeline --image-pipeline-arn arn:aws:imagebuilder:us-west-2:111122223333:image-pipeline/my-container-pipeline
Use the output as the basis for your update request JSON file.
With Tools for PowerShell, run the Get-EC2IBImagePipeline cmdlet instead:
Get-EC2IBImagePipeline -ImagePipelineArn arn:aws:imagebuilder:us-west-2:111122223333:image-pipeline/my-container-pipeline
Use the returned values as the basis for the parameters that you pass to the
Update-EC2IBImagePipeline cmdlet.