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 = var.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
Parameters
-
arn
optional computed - string -
created_time
optional computed - string -
description
optional computed - string -
id
optional computed - string -
name
required - string -
provider_name
optional - string -
tags
optional - map from string to string -
timeouts
single block
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.
Parameters
-
ProviderName
required - String -
Description
optional - String -
DisplayName
required - String -
AcceptLanguage
optional - String -
Tags
optional - List of Tag
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.