Lesson 4 of 5 Secure Deployment and Resource Sharing

Offering Pre-Approved Infrastructure with AWS Service Catalog

This lesson explains how AWS Service Catalog lets teams launch pre-approved, compliant products with only Service Catalog permissions, instead of broad IAM permissions to deploy infrastructure.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe portfolios and products.
  • Use launch constraints so users do not need resource permissions.
  • Identify the security benefits of Service Catalog.

Portfolios and products

AWS Service Catalog lets a central team offer pre-approved infrastructure that other teams can deploy themselves. A product is a CloudFormation template or Terraform configuration, such as a hardened EC2 instance, an encrypted S3 bucket or a complete application stack. Products are grouped into portfolios, and access to a portfolio is granted to IAM principals and shared with other accounts or organisational units. Users see only the products in portfolios granted to them, and each product version is reviewed before publication, so teams can deploy quickly without choosing their own configurations.

Constraints

Service Catalog lets users launch approved products, and constraints control how. A launch constraint names an IAM role that provisions the product's resources. Users therefore need permission only to use Service Catalog, not to create the underlying resources themselves, which keeps their own permissions narrow. A template constraint limits the parameter values users may choose, such as allowed instance types. A tag update constraint controls whether users can change tags on provisioned products, protecting tags used for access control and cost allocation. A notification constraint sends stack events to an SNS topic. The following table summarises the constraints.

ConstraintEffect
Launch constraintA role provisions the product, so users need only Service Catalog permissions
Template constraintLimits parameter values, for example allowed instance types
Tag update constraintControls whether users can change tags on provisioned products
Notification constraintSends stack events to SNS

The following diagram follows a developer's launch of a Service Catalog product to a compliant S3 bucket.

Compliant self-service buckets through AWS Service Catalog. Developers hold only Service Catalog permissions and an SCP denies them s3:CreateBucket; they launch the product, the launch constraint's role creates the bucket, and the template always enables encryption, Block Public Access, versioning and access logging.
BPA stands for Block Public Access.
Match the pairs

Service Catalog constraints

Exam skills 6.2.4

Match each Service Catalog constraint with its effect.

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

Security benefits

Service Catalog improves security in two ways. First, products embed security baselines, such as encryption, logging, private networking and required tags, so every deployment is compliant by construction instead of being checked after the fact. Second, a launch constraint assigns an IAM role that Service Catalog uses to create the resources. End users need permission only to launch the product, not to create the underlying resources directly, so they cannot deploy a non-compliant variant outside the catalogue. Template constraints can further restrict the parameter values users may choose, such as instance types.

Select all that apply

Why Service Catalog helps security

Exam skills 6.2.4 · 6.2.1

Pick the security benefits of Service Catalog products.

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

Self-service S3 buckets that are always compliant

Teams keep creating S3 buckets without encryption or logging. The platform team publishes a Service Catalog product whose template always enables default encryption, Block Public Access, versioning and access logging, and adds a launch constraint:

aws servicecatalog create-constraint --portfolio-id port-0abc --product-id prod-0bucket \
  --type LAUNCH --parameters '{"RoleArn":"arn:aws:iam::111111111111:role/SCLaunchS3"}'
aws servicecatalog associate-principal-with-portfolio --portfolio-id port-0abc \
  --principal-arn arn:aws:iam::111111111111:role/Developers --principal-type IAM

Developers launch the product with only Service Catalog permissions; the launch role creates the bucket. An SCP denies s3:CreateBucket to developers directly, so every new bucket comes from the compliant product.

Check yourself

What do template constraints do in Service Catalog?

Show answer

They limit the parameter values users can choose when launching a product.

Exam Tips

Remember for the exam

  • For self-service deployment of approved stacks without broad IAM rights, use a Service Catalog launch constraint.
  • Template constraints limit the parameter values users can choose.
  • Share portfolios across accounts and OUs.
  • Embed security baselines in products so every deployment is compliant.
  • Products can be defined in CloudFormation or Terraform.