AWS Service Catalog Portfolio

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

aws_servicecatalog_portfolio (Terraform)

The Portfolio in AWS Service Catalog can be configured in Terraform with the resource name aws_servicecatalog_portfolio. The following sections describe 5 examples of how to use the resource and its parameters.

Example Usage from GitHub
resource "aws_servicecatalog_portfolio" "portfolio" {
  name          =
  description   = var.description
  provider_name = var.provider_name
resource "aws_servicecatalog_portfolio" "portfolio" {
  name          = var.portfolio["name"]
  description   = var.portfolio["description"]
  provider_name = var.portfolio["provider_name"]
resource "aws_servicecatalog_portfolio" "portfolio" {
  name          = "My App Portfolio"
  description   = "List of my organizations apps"
  provider_name = "Dev"
resource "aws_servicecatalog_portfolio" "demo" {
  name          = "tfprov-demo-123"
  description   = "Porfolio demonstrating how to use the Service Catalog resource in the Terraform AWS Provider"
  provider_name = "Cloudsoft"
resource "aws_servicecatalog_portfolio" "servicecatalog_portfolio" {
  count = var.enable_servicecatalog_portfolio ? 1 : 0

  name          = var.servicecatalog_portfolio_name != "" ? lower(var.servicecatalog_portfolio_name) : "servicecatalog-portfolio"
  description   = var.servicecatalog_portfolio_description != "" ? lower(var.servicecatalog_portfolio_description) : "servicecatalog portfolio that manages by Terraform"
  provider_name = var.servicecatalog_portfolio_provider_name

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).


Explanation in Terraform Registry

Provides a resource to create a Service Catalog Portfolio.

AWS::ServiceCatalog::Portfolio (CloudFormation)

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

Example Usage from GitHub

An example could not be found in GitHub.


Explanation in CloudFormation Registry

Specifies a portfolio.

Frequently asked questions

What is AWS Service Catalog Portfolio?

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

Where can I find the example code for the AWS Service Catalog Portfolio?

For Terraform, the gauravgitdir/Jack, JamesWoolfenden/terraform-aws-servicecatalog and seanremenyi/service_catalog source code examples are useful. See the Terraform Example section for further details.