3: Deployment, Provisioning, and Automation

    Provision and Maintain Cloud Resources

    Provisioning at the operator level is not just running aws cloudformation create-stack. It is the discipline of standing up account-shaped resources (VPCs, subnets, IAM roles, KMS keys, baseline log destinations) plus workload-shaped resources (compute, storage, databases, networking) in a way that is repeatable, auditable, and governed. The SOA-C03 surface treats provisioning as a property of accounts and Regions, not a property of single stacks: an operator should be able to recreate a Region within a target window, validate that what was provisioned still matches the source of truth, and prove who approved each change. The two operator anchors are an infrastructure-as-code engine (the next section covers AWS CloudFormation and AWS CDK in depth) and a governance layer that gates self-service so application teams can deploy without filing tickets while platform teams retain control. AWS Service Catalog is the governance layer the exam expects.

    Before reaching for any specific tool, an operator should classify the resource by its lifecycle. Account-level resources (CloudTrail trails, AWS Config recorders, KMS customer-managed keys, IAM Identity Center permission sets, log archive S3 buckets) are typically deployed once per account, change rarely, and are owned by the platform team. Workload-level resources (Auto Scaling groups, RDS clusters, ALBs, ECS services) change with every release and are owned by the application team. The platform team manages the account-level set with CloudFormation StackSets, AWS Control Tower, and AWS Organizations. The application team consumes platform-built building blocks through Service Catalog products or directly through CloudFormation, CDK, or Terraform. Mixing these layers produces drift: an application team that edits a platform-owned VPC route table breaks the platform contract; a platform team that owns a workload-owned ALB blocks application velocity.

    AWS Service Catalog

    AWS Service Catalog packages a CloudFormation template (or a Terraform configuration through the Service Catalog External engine) plus the IAM, parameter, and tag rules around it into a product, groups one or more products into a portfolio, and shares the portfolio with principals (IAM users, IAM groups, IAM roles, or accounts in an AWS Organizations organizational unit). End users see the product as a self-service launch button: they pick parameters from a constrained list, click launch, and Service Catalog provisions the underlying CloudFormation stack on their behalf, often through a launch constraint role that has more permissions than the end user does. The end user never sees the template body, never edits the stack directly, and cannot deviate from approved parameters.

    Three constraint types are exam-relevant. A launch constraint attaches an IAM role to the product so the end user can launch products that touch resources their own IAM permissions do not allow (the operator pattern of "let developers launch an RDS instance without giving them rds:CreateDBInstance"). A template constraint uses JSON rules to restrict parameter values (for example, only allow db.r6g.large and db.r6g.xlarge for the DBInstanceClass parameter). A notification constraint sends stack-event notifications to an Amazon SNS topic so the platform team is alerted on every launch or termination. TagOptions enforce a tag library at the portfolio level so every product launched carries the required CostCenter, Environment, and Owner tags, which downstream feeds AWS Cost and Usage Report cost-allocation breakdowns.

    # Create a Service Catalog portfolio for the platform team
    aws servicecatalog create-portfolio \
     --display-name "Platform Baseline" \
     --provider-name "platform-team" \
     --description "Approved CloudFormation products for application teams" \
     --region eu-west-1
    
    # Associate a launch constraint so end users with read-only IAM can launch RDS
    aws servicecatalog create-constraint \
     --portfolio-id port-abc123 \
     --product-id prod-rds456 \
     --type LAUNCH \
     --parameters '{"RoleArn":"arn:aws:iam::111122223333:role/SC-RDS-LaunchRole"}' \
     --region eu-west-1
    
    # Share the portfolio with an OU under AWS Organizations
    aws servicecatalog create-portfolio-share \
     --portfolio-id port-abc123 \
     --organization-node Type=ORGANIZATIONAL_UNIT,Value=ou-prod-9988 \
     --share-tag-options \
     --region eu-west-1
    

    Provisioning maintenance does not end at launch. The product version field is the operator's pivot for updates: every new template version is a provisioning artifact, and Service Catalog can mark older versions as inactive so new launches use the patched version while running stacks keep their original version until the end user updates. Combined with CloudFormation drift detection (covered in the IaC section), the platform team can detect when a running provisioned product has drifted from its registered template, then either remediate by re-running provisioning or roll the product version forward.

    # Add a new provisioning artifact (template version) to a product
    aws servicecatalog create-provisioning-artifact \
     --product-id prod-rds456 \
     --parameters '{
     "Name":"v2-patched",
     "Type":"CLOUD_FORMATION_TEMPLATE",
     "Info":{"LoadTemplateFromURL":"https://s3.eu-west-1.amazonaws.com/sc-templates/rds-v2.yaml"}
     }' \
     --region eu-west-1
    

    💡 Exam Trap: Service Catalog launch constraints do NOT bypass AWS Organizations service control policies (SCPs). If an SCP denies rds:CreateDBInstance at the OU level, the launch constraint role is still blocked. The fix is to widen the SCP for the product owner's OU, not to "escalate" the constraint.

    📊 Limit: A Service Catalog portfolio can contain up to 25 products and 25 constraints per region by default, and a product can hold up to 50 active provisioning artifacts. AWS RAM-based portfolio shares with an organization scale further than account-by-account shares.

    ⚠️ Anti-Pattern: Granting application teams direct cloudformation:* permissions on production accounts "so they can deploy their own stacks." This destroys the audit story because there is no portfolio-level constraint, no template constraint on parameter values, and no enforced tagging. Force application self-service through Service Catalog products with launch constraints, and reserve direct CloudFormation access for the platform team.

    🎯 Scenario: A finance team requests an Amazon RDS for PostgreSQL instance every quarter, and each request triggers a ticket for the platform team to launch a CloudFormation stack. The platform engineer publishes a Service Catalog product whose template constraint limits DBInstanceClass to db.r6g.large and db.r6g.xlarge, attaches a launch constraint role that holds rds:CreateDBInstance, and adds a notification constraint pointing to the platform SNS topic. The finance team self-services future requests, all launches carry the platform TagOptions for CostCenter=Finance, and the platform team retains visibility through the SNS notifications and CloudTrail audit of the launch role.

    Decision Anchor. Choose Service Catalog when the platform team needs to delegate provisioning to application or business teams with parameter, tag, and IAM constraints. Choose direct CloudFormation or CDK access when the same team owns both the template and the deployed stack. Choose AWS Control Tower account factory (built on Service Catalog) when the unit of provisioning is an entire AWS account, not a single workload.

    The maintenance side of provisioning revolves around lifecycle events the exam expects an operator to recognize. Created products that never get launched are noise: archive them or mark them inactive. Failed provisioned products in TAINTED state mean the underlying CloudFormation stack succeeded but a post-launch action (such as a UserData script in an EC2 instance) failed; either remediate the stack and run update-provisioned-product, or terminate and relaunch. Inactive provisioning artifacts can still be updated by the running stack's owner but cannot be picked for new launches, which is the safe path for retiring an old template version.


    Continue with the interactive course

    Track your progress, jump into practice questions and use the Shark AI tutor inside the AWS - CloudOps Engineer Associate learning hub.