Resource: aws_servicecatalog_portfolio_share

Manages a Service Catalog Portfolio Share. Shares the specified portfolio with the specified account or organization node. You can share portfolios to an organization, an organizational unit, or a specific account.

If the portfolio share with the specified account or organization node already exists, using this resource to re-create the share will have no effect and will not return an error. You can then use this resource to update the share.

Example Usage

Basic Usage

resource "aws_servicecatalog_portfolio_share" "example" {
  principal_id = "012128675309"
  portfolio_id = aws_servicecatalog_portfolio.example.id
  type         = "ACCOUNT"
}

Argument Reference

The following arguments are required:

The following arguments are optional:

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_portfolio_share using the portfolio share ID. For example:

import {
  to = aws_servicecatalog_portfolio_share.example
  id = "port-12344321:ACCOUNT:123456789012"
}

Using terraform import, import aws_servicecatalog_portfolio_share using the portfolio share ID. For example:

% terraform import aws_servicecatalog_portfolio_share.example port-12344321:ACCOUNT:123456789012