AWS Service Catalog Service Action

This page shows how to write Terraform and CloudFormation for AWS Service Catalog Service Action and write them securely.

aws_servicecatalog_service_action (Terraform)

The Service Action in AWS Service Catalog can be configured in Terraform with the resource name aws_servicecatalog_service_action. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

The following arguments are required:

  • definition - (Required) Self-service action definition configuration block. Detailed below.
  • name - (Required) Self-service action name.

The following arguments are optional:

  • accept_language - (Optional) Language code. Valid values are en (English), jp (Japanese), and zh (Chinese). Default is en.
  • description - (Optional) Self-service action description.

definition

The definition configuration block supports the following attributes:

  • assume_role - (Optional) ARN of the role that performs the self-service actions on your behalf. For example, arn:aws:iam::12345678910:role/ActionRole. To reuse the provisioned product launch role, set to LAUNCH_ROLE.
  • name - (Required) Name of the SSM document. For example, AWS-RestartEC2Instance. If you are using a shared SSM document, you must provide the ARN instead of the name.
  • parameters - (Optional) List of parameters in JSON format. For example: [{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}] or [{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}].
  • type - (Optional) Service action definition type. Valid value is SSM_AUTOMATION. Default is SSM_AUTOMATION.
  • version - (Required) SSM document version. For example, 1.

In addition to all arguments above, the following attributes are exported:

  • id - Identifier of the service action.

Explanation in Terraform Registry

Manages a Service Catalog self-service action.

AWS::ServiceCatalog::ServiceAction (CloudFormation)

The ServiceAction in ServiceCatalog can be configured in CloudFormation with the resource name AWS::ServiceCatalog::ServiceAction. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

Explanation in CloudFormation Registry

Creates a self-service action.

Frequently asked questions

What is AWS Service Catalog Service Action?

AWS Service Catalog Service Action is a resource for Service Catalog of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.