Secure deployment at scale
SCS-C03 · Lesson 21 of 22 · 3:16:21
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the SCS-C03 exam (AWS Certified Security – Specialty). In this lesson: CloudFormation StackSets with automatic deployments, cfn-lint, CloudFormation Guard, and hooks, tags for management, tag policies, and the required-tags rule, AWS Firewall Manager policies for AWS WAF, Shield Advanced, security groups, and Network Firewall, and sharing with AWS RAM and AWS Service Catalog launch constraints. Includes three original practice questions.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Thirty copies, one mistake
A network team copies a template by hand into thirty accounts, and one copy is missing a rule. A security group in a new account opens a database port to the internet, and nobody notices for weeks. This lesson covers deployment with infrastructure as code, tags that organize resources, central firewall policies, and secure sharing between accounts.
Infrastructure as code
Infrastructure as code deploys the same reviewed template everywhere, and CloudFormation StackSets deploy one template as stacks in the accounts and Regions that you choose, from one administrator account. With service-managed permissions, the StackSet is created from the management account or a delegated administrator, and automatic deployments add stacks to accounts that join a target OU, and delete or keep them when accounts leave. With self-managed permissions, you create the trust between the administrator account and each target account yourself, with IAM roles. Before deployment, cfn-lint checks templates against the resource schemas of CloudFormation, with valid property values and best practices, while CloudFormation Guard checks them against your own rules, written as policy as code, for templates, change sets, Terraform configuration files in JSON, or Kubernetes configurations. Guard runs in your pipeline, not in the service, so CloudFormation hooks block a noncompliant deployment in CloudFormation itself, and for Terraform, Account Factory for Terraform provisions accounts that Control Tower governs.
Tags for management
Tags are key and value pairs that group resources, for example by department, cost center, environment, or project, so that teams can find them, report on them, and control them. Tag keys and values are case sensitive, so tag policies in Organizations standardize them, with the preferred case and the allowed values, and they can block noncompliant tagging operations on the resource types that you choose. But a tag policy does not evaluate untagged resources, so to find resources with a missing tag, use the AWS Config rule for required tags. After you activate user-defined tags as cost allocation tags in Billing and Cost Management, costs can be reported by cost center. And tags also drive security: ABAC policies compare the tags of principals and resources, and Firewall Manager can protect every resource that carries a given tag.
Central security policies
AWS Firewall Manager sets protections once, from a Firewall Manager administrator account, and applies them across the accounts of the organization, including new accounts and new resources. Its policies cover AWS WAF, Shield Advanced, VPC security groups, network ACLs, AWS Network Firewall, and DNS Firewall. A WAF policy places rule groups that run first and last in every web ACL, and account owners can add their own rules in between. A security group policy enforces a baseline of security group rules across the organization, and a Shield Advanced policy applies its protections to the resource types that you choose. Each policy can target all resources of a type, or only the resources with specific tags, and Firewall Manager adds protection to new resources in scope automatically.
Sharing between accounts
AWS Resource Access Manager, or AWS RAM, shares a resource that you create once, such as a subnet, with the whole organization, with OUs, or with specific accounts, and some resource types with IAM roles and users. Managed permissions set what the principals in the share can do with the resource: AWS managed permissions, or customer managed permissions that you write for least privilege. The owner keeps one resource to manage, instead of copies in every account. AWS Service Catalog lets administrators publish approved products, built from CloudFormation templates or Terraform configurations, in portfolios that can be shared with other accounts. A launch constraint sets the IAM role that Service Catalog uses to launch a product, so users can deploy approved resources without broad permissions of their own.
Recap
Let's recap. StackSets deploy templates to many accounts and Regions, with automatic deployments for OUs, while cfn-lint, CloudFormation Guard, and hooks check templates. Tags group resources by department, cost center, or environment, tag policies standardize them, and the required tags rule finds what is missing. Firewall Manager applies WAF, Shield Advanced, security group, and firewall policies across the organization. And AWS RAM shares resources, while Service Catalog lets users launch approved products with a launch constraint.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Every account that joins the Workloads OU must get the same logging stack automatically, and the stack must be removed when an account leaves. What should the team use?
- A CloudFormation Guard rule for logging
- A stack deployed by hand in each account
- StackSets with automatic deployments
- A cfn-lint check in the pipeline
Show the answer
StackSets with automatic deployments
With service-managed permissions, automatic deployments add the stack to accounts that join the OU, and can delete it when they leave. “A CloudFormation Guard rule for logging” checks templates against rules, and it deploys nothing. “A stack deployed by hand in each account” would miss new accounts until someone deploys the stack by hand. And “A cfn-lint check in the pipeline” only checks the structure and values of a template.
Every Application Load Balancer in the organization must run a central set of WAF rules first, while application teams still add their own rules. New accounts must be covered automatically. What should the security team use?
- A web ACL created in each account by hand
- A Firewall Manager policy for AWS WAF
- An SCP that denies changes to web ACLs
- A Config rule that checks for a web ACL
Show the answer
A Firewall Manager policy for AWS WAF
A Firewall Manager policy for AWS WAF places the central rule groups first, lets account owners add rules in between, and covers new accounts. “A web ACL created in each account by hand” would miss new accounts, and the copies would drift over time. “An SCP that denies changes to web ACLs” would stop teams from adding their own rules. And “A Config rule that checks for a web ACL” would detect a missing web ACL without creating one.
Developers in workload accounts must launch databases only from templates approved by the security team, and they must not have broad permissions on the database service. What should the team set up?
- Service Catalog with a launch constraint
- A resource share of the database in RAM
- A Firewall Manager policy for databases
- A StackSet that creates a database everywhere
Show the answer
Service Catalog with a launch constraint
Approved products launch with the role of the launch constraint, so developers do not need broad permissions on the database service. “A resource share of the database in RAM” shares an existing resource, and it does not let developers launch new ones. “A Firewall Manager policy for databases” manages firewall protections, not the launch of databases. And “A StackSet that creates a database everywhere” would deploy databases to every account, whether a team needs one or not.