Repository
- class aws_cdk.aws_imagebuilder_alpha.Repository
Bases:
object(experimental) A container repository used to distribute container images in EC2 Image Builder.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
parameterized_component = imagebuilder.Component.from_component_name(self, "ParameterizedComponent", "my-parameterized-component") image_recipe = imagebuilder.ImageRecipe(self, "ParameterizedImageRecipe", base_image=imagebuilder.BaseImage.from_ssm_parameter_name("/aws/service/ami-amazon-linux-latest/al2023-ami-minimal-kernel-default-x86_64"), components=[imagebuilder.ComponentConfiguration( component=parameterized_component, parameters={ "environment": imagebuilder.ComponentParameterValue.from_string("production"), "version": imagebuilder.ComponentParameterValue.from_string("1.0.0") } ) ] )
- Stability:
experimental
Attributes
- repository_name
(experimental) The name of the container repository where the output container image is stored.
- Stability:
experimental
- service
(experimental) The service in which the container repository is hosted.
- Stability:
experimental
Static Methods
- classmethod from_ecr(repository)
(experimental) The ECR repository to use as the target container repository.
- Parameters:
repository (
IRepository) – The ECR repository to use.- Stability:
experimental
- Return type: