Resource: aws_servicecatalog_service_action

Manages a Service Catalog self-service action.

Example Usage

Basic Usage

resource "aws_servicecatalog_service_action" "example" {
  description = "Motor generator unit"
  name        = "MGU"

  definition {
    name = "AWS-RestartEC2Instance"
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

definition

The definition configuration block supports the following attributes:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import aws_servicecatalog_service_action using the service action ID. For example:

import {
  to = aws_servicecatalog_service_action.example
  id = "act-f1w12eperfslh"
}

Using terraform import, import aws_servicecatalog_service_action using the service action ID. For example:

% terraform import aws_servicecatalog_service_action.example act-f1w12eperfslh