You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/r/imagebuilder_image.html.markdown
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ The following arguments are optional:
30
30
31
31
*`region` - (Optional) Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the [provider configuration](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#aws-configuration-reference).
32
32
*`container_recipe_arn` - (Optional) - Amazon Resource Name (ARN) of the container recipe.
33
+
*`deletion_settings` - (Optional) Configuration block with deletion settings. Detailed below.
33
34
*`distribution_configuration_arn` - (Optional) Amazon Resource Name (ARN) of the Image Builder Distribution Configuration.
34
35
*`enhanced_image_metadata_enabled` - (Optional) Whether additional information about the image being created is collected. Defaults to `true`.
35
36
*`execution_role` - (Optional) Amazon Resource Name (ARN) of the service-linked role to be used by Image Builder to [execute workflows](https://docs.aws.amazon.com/imagebuilder/latest/userguide/manage-image-workflows.html).
@@ -83,6 +84,21 @@ The following arguments are required:
83
84
*`name` - (Required) The name of the Workflow parameter.
84
85
*`value` - (Required) The value of the Workflow parameter.
85
86
87
+
### deletion_settings
88
+
89
+
When configured, enables managed deletion of the image and all associated resources using Image Builder's lifecycle management. When not configured, uses standard deletion which only removes the image record.
90
+
91
+
For AMI-based images, managed deletion removes:
92
+
* AMIs
93
+
* EBS snapshots
94
+
95
+
For container images, managed deletion removes:
96
+
* Container images from ECR repositories
97
+
98
+
The following arguments are required:
99
+
100
+
*`execution_role` - (Required) Amazon Resource Name (ARN) of the IAM role used to delete the image and associated resources.
101
+
86
102
## Attribute Reference
87
103
88
104
This resource exports the following attributes in addition to the arguments above:
0 commit comments