Lesson 3 of 3 Multi-Account Provisioning and Resource Sharing

Offering Self-Service Infrastructure with AWS Service Catalog

This lesson explains how AWS Service Catalog lets administrators publish approved infrastructure products that users launch themselves without permissions to the underlying services.

Learning outcomes

After completing this lesson, you will be able to:

  • Configure portfolios, products and constraints.
  • Operate provisioned products and versions.

Portfolios, products and constraints

A product is a CloudFormation template (or Terraform configuration) with versions. Products are grouped into portfolios, which are shared with IAM users, groups and roles, other accounts or the organisation. Constraints control how products are launched. A launch constraint names an IAM role that Service Catalog assumes to provision the product, so end users need permissions only for Service Catalog, not for EC2 or RDS. A template constraint restricts parameter values, such as allowed instance types. A notification constraint sends stack events to SNS, a tag update constraint controls tag changes, and a StackSet constraint deploys products to multiple accounts and Regions. TagOptions enforce tags on provisioned products.

The following diagram shows a launch through a launch constraint.

Self-service with AWS Service Catalog. A developer with permission only for Service Catalog launches a product from a shared portfolio. A launch constraint names an IAM role that Service Catalog assumes to provision the CloudFormation template, and a template constraint limits parameter values such as instance types.
The product and limits are illustrative. The launch role, not the user, needs EC2 and RDS permissions.
Match the pairs

Service Catalog constraints

Exam skills 3.1.4 · 4.1.1

Match each Service Catalog feature with what it controls.

Log in to try this activity Interactive activities are free with an account.

Operating provisioned products

Users launch products as provisioned products and can update them to new versions or terminate them. Administrators publish new versions with fixes, deprecate old versions, and can use service actions (Systems Manager documents) so that users can perform operational tasks, such as restarting an instance, without direct permissions. AppRegistry records applications and their resources. The following table summarises the main choices for provisioning across accounts.

RequirementService
Same baseline resources pushed to every accountCloudFormation StackSets
Share one resource with other accountsAWS RAM
Let users self-serve approved stacks without broad permissionsAWS Service Catalog with launch constraints
Create new governed accountsAWS Control Tower Account Factory
Worked example

Self-service development environments

Developers keep requesting EC2 and RDS test environments from the operations team. The team publishes a Service Catalog product, a CloudFormation template with a template constraint that allows only t3 and t4g instance types, a launch constraint role with the necessary EC2 and RDS permissions, and TagOptions requiring a cost centre. Developers, whose IAM permissions include only Service Catalog end-user access, launch and terminate environments themselves, and a service action lets them restart the instance.

Check yourself

How can Service Catalog enforce tags on provisioned products?

Show answer

With TagOptions.

Exam Tips

Remember for the exam

  • Service Catalog products are versioned templates grouped in shared portfolios.
  • Launch constraints let users provision without permissions to the underlying services.
  • Template constraints restrict parameters; TagOptions enforce tags.
  • Service actions let users run approved operational tasks.