Skill 3.1.3
Identify and remediate deployment issues (for example, subnet sizing issues, CloudFormation errors, permissions issues)
Key Concepts
Subnet sizing: AWS reserves five addresses in every subnet, and load balancers, Lambda functions in a VPC, EKS pods, interface endpoints and Auto Scaling all consume IPs. InsufficientFreeAddressesInSubnet is fixed by adding subnets (or a secondary CIDR block) since an existing subnet cannot be resized. Capacity and quotas: InsufficientInstanceCapacity means AWS lacks capacity for that type in that AZ (try another AZ or type), while InstanceLimitExceeded or vCPU limit errors need a Service Quotas increase.
CloudFormation errors appear in stack events: CREATE_FAILED on a resource, ROLLBACK_COMPLETE (delete and recreate the stack), UPDATE_ROLLBACK_FAILED (fix the resource and continue rollback, optionally skipping resources) and DELETE_FAILED (for example a non-empty S3 bucket). Permissions issues include a missing iam:PassRole to give a role to a service, a CloudFormation service role without rights, an SCP denial or a KMS key policy that blocks the service.