alicloud_ecs_image_component

Provides a Ecs Image Component resource.

For information about Ecs Image Component and how to use it, see What is Image Component.

Example Usage

Basic Usage

data "alicloud_resource_manager_resource_groups" "default" {
  name_regex = "default"
}

resource "alicloud_ecs_image_component" "example" {
  component_type       = "Build"
  content              = "RUN yum update -y"
  description          = "example_value"
  image_component_name = "example_value"
  resource_group_id    = data.alicloud_resource_manager_resource_groups.default.groups.0.id
  system_type          = "Linux"
  tags = {
    Created = "TF"
  }
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Ecs Image Component can be imported using the id, e.g.

$ terraform import alicloud_ecs_image_component.example <id>