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.
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 areen
(English),jp
(Japanese), andzh
(Chinese). Default isen
.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 toLAUNCH_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 isSSM_AUTOMATION
. Default isSSM_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
-
AcceptLanguage
optional - String -
Name
required - String -
DefinitionType
required - String -
Definition
required - List of DefinitionParameter -
Description
optional - String
Explanation in CloudFormation Registry
Creates a self-service action.