Use this data source to get the ARNs and names of Image Builder Container Recipes matching the specified criteria.
data "aws_imagebuilder_container_recipes" "example" {
owner = "Self"
filter {
name = "platform"
values = ["Linux"]
}
}
owner
- (Optional) Owner of the container recipes. Valid values are Self
, Shared
, Amazon
and ThirdParty
. Defaults to Self
.filter
- (Optional) Configuration block(s) for filtering. Detailed below.The filter
configuration block supports the following arguments:
name
- (Required) Name of the filter field. Valid values can be found in the Image Builder ListContainerRecipes API Reference.values
- (Required) Set of values that are accepted for the given filter field. Results will be selected if any given value matches.This data source exports the following attributes in addition to the arguments above:
arns
- Set of ARNs of the matched Image Builder Container Recipes.names
- Set of names of the matched Image Builder Container Recipes.