alicloud_ecs_command

Provides a ECS Command resource.

For information about ECS Command and how to use it, see What is Command.

Example Usage

Basic Usage

resource "alicloud_ecs_command" "example" {
  name            = "tf-testAcc"
  command_content = "bHMK"
  description     = "For Terraform Test"
  type            = "RunShellScript"
  working_dir     = "/root"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

ECS Command can be imported using the id, e.g.

$ terraform import alicloud_ecs_command.example <id>