Resource: aws_servicecatalog_provisioned_product

This resource provisions and manages a Service Catalog provisioned product.

A provisioned product is a resourced instance of a product. For example, provisioning a product based on a CloudFormation template launches a CloudFormation stack and its underlying resources.

Like this resource, the aws_servicecatalog_record data source also provides information about a provisioned product. Although a Service Catalog record provides some overlapping information with this resource, a record is tied to a provisioned product event, such as provisioning, termination, and updating.

Example Usage

Basic Usage

resource "aws_servicecatalog_provisioned_product" "example" {
  name                       = "example"
  product_name               = "Example product"
  provisioning_artifact_name = "Example version"

  provisioning_parameters {
    key   = "foo"
    value = "bar"
  }

  tags = {
    foo = "bar"
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

provisioning_parameters

This argument supports the following arguments:

stack_set_provisioning_preferences

All of the stack_set_provisioning_preferences are only applicable to a CFN_STACKSET provisioned product type.

This argument supports the following arguments:

Attribute Reference

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

status Meanings

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import aws_servicecatalog_provisioned_product using the provisioned product ID. For example:

import {
  to = aws_servicecatalog_provisioned_product.example
  id = "pp-dnigbtea24ste"
}

Using terraform import, import aws_servicecatalog_provisioned_product using the provisioned product ID. For example:

% terraform import aws_servicecatalog_provisioned_product.example pp-dnigbtea24ste