Initial commit: AWS expert EEM knowledge base for HuggingFace
Browse files2,775 justified beliefs covering DynamoDB, CloudTrail, IAM,
CloudFormation, RDS, S3, networking, compute, and 25+ AWS services.
Includes 655 exploration entries as belief provenance.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This view is limited to 50 files because it contains too many changes. Β See raw diff
- .gitignore +3 -0
- CLAUDE.md +40 -0
- README.md +158 -0
- entries/2026/03/08/acm-getting-started.md +38 -0
- entries/2026/03/08/acm-overview.md +40 -0
- entries/2026/03/08/aws-features-essential-vs-convenience-classification.md +188 -0
- entries/2026/03/08/cloudfront-distributions.md +63 -0
- entries/2026/03/08/cloudfront-feature-parity-cross-reference.md +64 -0
- entries/2026/03/08/cloudfront-invalidation.md +36 -0
- entries/2026/03/08/cloudfront-overview.md +56 -0
- entries/2026/03/08/cloudfront-security.md +42 -0
- entries/2026/03/08/cloudfront-ssl.md +54 -0
- entries/2026/03/08/cloudwatch-alarms.md +71 -0
- entries/2026/03/08/cloudwatch-metrics.md +47 -0
- entries/2026/03/08/cloudwatch-overview.md +68 -0
- entries/2026/03/08/ec2-amis.md +54 -0
- entries/2026/03/08/ec2-ebs.md +63 -0
- entries/2026/03/08/ec2-elastic-ips.md +48 -0
- entries/2026/03/08/ec2-instance-types.md +53 -0
- entries/2026/03/08/ec2-key-pairs.md +45 -0
- entries/2026/03/08/ec2-monitoring.md +43 -0
- entries/2026/03/08/ec2-overview.md +61 -0
- entries/2026/03/08/ec2-reserved-instances.md +52 -0
- entries/2026/03/08/ec2-security-groups.md +47 -0
- entries/2026/03/08/ec2-spot-instances.md +48 -0
- entries/2026/03/08/eks-feature-parity-cross-reference.md +67 -0
- entries/2026/03/08/eks-getting-started.md +38 -0
- entries/2026/03/08/eks-networking.md +39 -0
- entries/2026/03/08/eks-overview.md +63 -0
- entries/2026/03/08/elasticache-overview.md +41 -0
- entries/2026/03/08/elasticache-replication.md +47 -0
- entries/2026/03/08/iam-access-keys.md +51 -0
- entries/2026/03/08/iam-best-practices.md +59 -0
- entries/2026/03/08/iam-cross-account.md +102 -0
- entries/2026/03/08/iam-groups.md +42 -0
- entries/2026/03/08/iam-identity-center.md +64 -0
- entries/2026/03/08/iam-mfa.md +79 -0
- entries/2026/03/08/iam-overview.md +39 -0
- entries/2026/03/08/iam-permission-boundaries.md +88 -0
- entries/2026/03/08/iam-policies.md +89 -0
- entries/2026/03/08/iam-policy-evaluation.md +41 -0
- entries/2026/03/08/iam-policy-types.md +51 -0
- entries/2026/03/08/iam-roles.md +56 -0
- entries/2026/03/08/iam-service-linked-roles.md +92 -0
- entries/2026/03/08/iam-temporary-credentials.md +57 -0
- entries/2026/03/08/iam-users.md +62 -0
- entries/2026/03/08/rds-backups.md +48 -0
- entries/2026/03/08/rds-feature-parity-cross-reference-with-postgresql-expert.md +69 -0
- entries/2026/03/08/rds-instance-classes.md +41 -0
- entries/2026/03/08/rds-monitoring.md +42 -0
.gitignore
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
reasons.db
|
| 2 |
+
reasons.db-shm
|
| 3 |
+
reasons.db-wal
|
CLAUDE.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CLAUDE.md β AWS Expert
|
| 2 |
+
|
| 3 |
+
Expert agent for explaining AWS service behavior, defaults, and operational pitfalls. Knowledge is stored in `reasons.db` β a justified belief network with retraction cascades, not a flat knowledge base.
|
| 4 |
+
|
| 5 |
+
## Mission
|
| 6 |
+
|
| 7 |
+
Help humans and LLM agents understand AWS service behavior, default configurations, operational gotchas, and cross-service interactions. Answers should be grounded in the belief network (`reasons.db`), not parametric knowledge. Use `reasons search`, `reasons explain`, and `reasons show` to find and cite beliefs before answering.
|
| 8 |
+
|
| 9 |
+
## How to Answer Questions
|
| 10 |
+
|
| 11 |
+
1. `reasons search "relevant terms"` to find beliefs
|
| 12 |
+
2. `reasons explain NODE` to trace justification chains
|
| 13 |
+
3. Synthesize an answer grounded in the beliefs found
|
| 14 |
+
4. Cite node IDs so the questioner can audit the chain
|
| 15 |
+
|
| 16 |
+
## What This Expert Knows
|
| 17 |
+
|
| 18 |
+
- DynamoDB: capacity billing, GSI behavior, TTL, global tables, autoscaling pitfalls, DAX caching
|
| 19 |
+
- CloudTrail: audit blind spots, Lake configuration, KMS irrevocability, event data stores
|
| 20 |
+
- IAM: policy evaluation, cross-account access, permission boundaries, default postures
|
| 21 |
+
- CloudFormation: stack lifecycle, drift detection, resource dependencies, rollback behavior
|
| 22 |
+
- RDS/Aurora: backup strategies, PITR, parameter groups, Multi-AZ, read replicas
|
| 23 |
+
- S3: bucket policies, lifecycle rules, versioning, cross-region replication
|
| 24 |
+
- Networking: VPC design, security groups, NACLs, ENI limits, Route 53, CloudFront
|
| 25 |
+
- Compute: EC2 instance lifecycle, spot interruptions, ECS/EKS, Lambda cold starts
|
| 26 |
+
- Messaging: SQS visibility timeout, dead letter queues, FIFO ordering
|
| 27 |
+
- Security: default hardening requirements, KMS key management, ACM certificates
|
| 28 |
+
- Operations: backup/DR posture, observability gaps, FIS chaos engineering
|
| 29 |
+
|
| 30 |
+
## Skills Available
|
| 31 |
+
|
| 32 |
+
```bash
|
| 33 |
+
reasons search QUERY # Find beliefs by keyword
|
| 34 |
+
reasons show NODE # Full details + dependents
|
| 35 |
+
reasons explain NODE # Trace justification chain
|
| 36 |
+
reasons list # All nodes with status
|
| 37 |
+
reasons list --premises # Foundation beliefs
|
| 38 |
+
reasons list --has-dependents # Load-bearing beliefs
|
| 39 |
+
reasons export-markdown -o beliefs.md # Export readable snapshot
|
| 40 |
+
```
|
README.md
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
schema_version: "1.0"
|
| 3 |
+
type: eem
|
| 4 |
+
project_name: aws-expert
|
| 5 |
+
domain:
|
| 6 |
+
- aws
|
| 7 |
+
- cloud-infrastructure
|
| 8 |
+
- devops
|
| 9 |
+
- security
|
| 10 |
+
license: mit
|
| 11 |
+
base_network: null
|
| 12 |
+
source_repos: []
|
| 13 |
+
beliefs_total: 2775
|
| 14 |
+
beliefs_in: 2775
|
| 15 |
+
beliefs_out: 0
|
| 16 |
+
premises: 2615
|
| 17 |
+
derived: 160
|
| 18 |
+
nogoods: 0
|
| 19 |
+
generator: ftl-reasons/0.41.0
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# AWS Expert
|
| 23 |
+
|
| 24 |
+
Expert knowledge base for **AWS service behavior, defaults, and operational pitfalls**. Contains 2,775 justified beliefs covering DynamoDB, CloudTrail, IAM, CloudFormation, RDS, S3, networking, compute, and cross-service interactions.
|
| 25 |
+
|
| 26 |
+
## What is this?
|
| 27 |
+
|
| 28 |
+
This is an **External Epistemic Memory** (EEM) β a model-agnostic knowledge base that any LLM can use via the `reasons` CLI or tool calling. Unlike a LoRA or fine-tune, this knowledge is not baked into model weights. It is external, inspectable, correctable, and works with any model.
|
| 29 |
+
|
| 30 |
+
## Stats
|
| 31 |
+
|
| 32 |
+
| Metric | Value |
|
| 33 |
+
|--------|-------|
|
| 34 |
+
| Total beliefs | 2,775 |
|
| 35 |
+
| Status | 2,775 IN / 0 OUT |
|
| 36 |
+
| Premises (observations) | 2,615 |
|
| 37 |
+
| Derived (justified conclusions) | 160 |
|
| 38 |
+
| Nogoods (contradictions) | 0 |
|
| 39 |
+
| Retraction rate | 0% |
|
| 40 |
+
| Max derivation depth | 8 |
|
| 41 |
+
|
| 42 |
+
## Top Topics
|
| 43 |
+
|
| 44 |
+
| Topic | Beliefs |
|
| 45 |
+
|-------|---------|
|
| 46 |
+
| dynamodb | 723 |
|
| 47 |
+
| cloudtrail | 416 |
|
| 48 |
+
| iam | 261 |
|
| 49 |
+
| account | 144 |
|
| 50 |
+
| rds | 134 |
|
| 51 |
+
| cfn | 132 |
|
| 52 |
+
| table | 128 |
|
| 53 |
+
| lake | 126 |
|
| 54 |
+
| default | 125 |
|
| 55 |
+
| max | 107 |
|
| 56 |
+
| region | 102 |
|
| 57 |
+
| backup | 98 |
|
| 58 |
+
| vpc | 95 |
|
| 59 |
+
| aws | 93 |
|
| 60 |
+
| ec2 | 89 |
|
| 61 |
+
| policy | 83 |
|
| 62 |
+
| data | 82 |
|
| 63 |
+
| cross | 80 |
|
| 64 |
+
|
| 65 |
+
## Domain Coverage
|
| 66 |
+
|
| 67 |
+
- **DynamoDB**: capacity billing, GSI behavior, autoscaling pitfalls, TTL audit gaps, global tables consistency modes, DAX caching, item size overhead, cross-region replication (692 beliefs)
|
| 68 |
+
- **CloudTrail**: audit blind spots, Lake configuration, KMS key irrevocability, event data stores, data event logging gaps, automated operation blind spots (354 beliefs)
|
| 69 |
+
- **IAM**: policy evaluation, cross-account access, permission boundaries, default security posture, resource policies (222 beliefs)
|
| 70 |
+
- **CloudFormation**: stack lifecycle, drift detection, resource dependencies, rollback behavior, nested stacks (128 beliefs)
|
| 71 |
+
- **RDS/Aurora**: backup strategies, PITR windows, parameter groups, Multi-AZ failover, read replicas, lifecycle state transitions (139 beliefs)
|
| 72 |
+
- **S3**: bucket policies, lifecycle rules, versioning, cross-region replication, access points (119 beliefs)
|
| 73 |
+
- **EC2 & Compute**: instance lifecycle, spot interruptions, AMI management, EBS volumes, ENI limits (113 beliefs)
|
| 74 |
+
- **Networking**: VPC design, security groups, NACLs, Route 53 health checks, CloudFront distributions, EIP management (129 beliefs)
|
| 75 |
+
- **Backup & DR**: AWS Backup, PITR, cross-region backup, lifecycle transitions that degrade DR posture (65 beliefs)
|
| 76 |
+
- **DAX**: caching behavior, consistency implications, cluster management (61 beliefs)
|
| 77 |
+
- **CloudWatch**: metrics, alarms, log groups, observability investment ceilings (54 beliefs)
|
| 78 |
+
- **API Gateway**: REST vs HTTP APIs, throttling, authorization, stage management (89 beliefs)
|
| 79 |
+
- **SQS**: visibility timeout, dead letter queues, FIFO ordering, message retention (43 beliefs)
|
| 80 |
+
- **AppSync**: GraphQL resolvers, caching, authorization modes (31 beliefs)
|
| 81 |
+
- **Lambda**: cold starts, concurrency, event source mappings, resource limits (25 beliefs)
|
| 82 |
+
- **Container Services**: ECS task definitions, EKS node groups, ECR lifecycle policies (52 beliefs)
|
| 83 |
+
- **Security**: default hardening, KMS key management, ACM certificates, FIS chaos engineering (53 beliefs)
|
| 84 |
+
- **Additional topics**: ElastiCache, SES, CDK, spot instances, NoSQL Workbench patterns (remaining beliefs)
|
| 85 |
+
|
| 86 |
+
## How to Use
|
| 87 |
+
|
| 88 |
+
### Import into a reasons database
|
| 89 |
+
|
| 90 |
+
```bash
|
| 91 |
+
reasons init
|
| 92 |
+
reasons import-json network.json
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
### Query beliefs
|
| 96 |
+
|
| 97 |
+
```bash
|
| 98 |
+
reasons search "DynamoDB capacity billing"
|
| 99 |
+
reasons explain lifecycle-transitions-silently-degrade-dr-posture
|
| 100 |
+
reasons show cloudtrail-eds-kms-key-irrevocable
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
### Use as an MCP tool or CLI
|
| 104 |
+
|
| 105 |
+
Any LLM agent that can call `reasons search`, `reasons show`, and `reasons explain` can use this knowledge base. The agent does not need to be told it is an expert β the knowledge base speaks for itself.
|
| 106 |
+
|
| 107 |
+
## Key Beliefs
|
| 108 |
+
|
| 109 |
+
| Node | Summary |
|
| 110 |
+
|------|---------|
|
| 111 |
+
| `lifecycle-transitions-silently-degrade-dr-posture` | Routine feature toggling and DR restores lose configuration state (PITR windows, audit settings) |
|
| 112 |
+
| `cloudtrail-eds-kms-key-irrevocable` | Once a KMS key is associated with a CloudTrail Lake event data store, it cannot be changed or removed |
|
| 113 |
+
| `dynamodb-ttl-deletions-not-logged-cloudtrail` | DynamoDB TTL data plane deletion actions are NOT logged by CloudTrail |
|
| 114 |
+
| `dynamodb-capacity-billing-penalizes-small-items-disproportionately` | DynamoDB capacity billing includes three hidden overhead mechanisms beyond raw item size |
|
| 115 |
+
| `aws-defaults-require-systematic-hardening-across-dimensions` | AWS default configurations systematically favor ease-of-use over security across operations |
|
| 116 |
+
| `full-observability-has-hard-ceiling-despite-investment` | Even after closing CloudTrail's configurable gaps, fundamental blind spots remain |
|
| 117 |
+
| `dynamodb-global-tables-consistency-mode-immutable` | DynamoDB Global Tables consistency mode is set at creation and cannot be changed afterward |
|
| 118 |
+
| `dynamodb-autoscaling-new-gsi-no-auto-scaling` | Creating a GSI on an existing DynamoDB table does not auto-enable scaling on the GSI |
|
| 119 |
+
| `cloudtrail-audit-blind-spots-exist-for-automated-operations` | Certain automated and system-initiated operations create audit gaps |
|
| 120 |
+
| `protocol-safety-unfalsifiable-under-current-testing` | Distributed protocol safety claims are unfalsifiable under the current testing methodology |
|
| 121 |
+
|
| 122 |
+
## Sources
|
| 123 |
+
|
| 124 |
+
Built from exploration of AWS documentation, API behavior, and operational experience across DynamoDB, CloudTrail, IAM, CloudFormation, RDS, S3, EC2, VPC, and 25+ additional AWS services.
|
| 125 |
+
|
| 126 |
+
## Files
|
| 127 |
+
|
| 128 |
+
| File | Description |
|
| 129 |
+
|------|-------------|
|
| 130 |
+
| `network.json` | Full belief network (machine-readable, portable) |
|
| 131 |
+
| `reasons.db` | SQLite database (gitignored, regenerate with `reasons import-json network.json`) |
|
| 132 |
+
| `CLAUDE.md` | Agent instructions for using this knowledge base |
|
| 133 |
+
| `entries/` | 655 exploration entries β raw observations behind the premises |
|
| 134 |
+
|
| 135 |
+
## Quality
|
| 136 |
+
|
| 137 |
+
- All 2,775 beliefs are IN (none retracted)
|
| 138 |
+
- 2,615 premises grounded in direct observations of AWS service behavior
|
| 139 |
+
- 160 derived beliefs justified from premises via SL justifications
|
| 140 |
+
- 0 nogoods β no contradictions detected
|
| 141 |
+
- Max derivation depth of 8, indicating multi-step reasoning chains
|
| 142 |
+
- Built and reviewed using ftl-reasons derive and review-beliefs pipeline
|
| 143 |
+
|
| 144 |
+
## Limitations
|
| 145 |
+
|
| 146 |
+
- Focused on AWS service behavior and defaults as of mid-2026
|
| 147 |
+
- AWS services evolve rapidly; some beliefs may become stale as features change
|
| 148 |
+
- Heavier coverage of DynamoDB and CloudTrail than other services
|
| 149 |
+
- Does not cover pricing in detail beyond capacity billing mechanics
|
| 150 |
+
- No ATMS or assumption-based beliefs (single-context TMS only)
|
| 151 |
+
|
| 152 |
+
## Authors
|
| 153 |
+
|
| 154 |
+
- Ben Thomasson ([@benthomasson](https://github.com/benthomasson))
|
| 155 |
+
|
| 156 |
+
## License
|
| 157 |
+
|
| 158 |
+
mit
|
entries/2026/03/08/acm-getting-started.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/acm/latest/userguide/gs.html
|
| 3 |
+
source: sources/acm-getting-started.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:28
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
This page introduces AWS Certificate Manager (ACM) and the types of certificates it manages: public, private, and imported. ACM can issue publicly trusted certificates directly, accept third-party imports (including self-signed), and provision internal PKI certificates signed by a private CA via AWS Private CA.
|
| 14 |
+
|
| 15 |
+
## Key Concepts
|
| 16 |
+
- **ACM certificate types**: public (issued by ACM), private (signed by AWS Private CA), and imported (third-party or self-signed)
|
| 17 |
+
- **Public ACM certificates** are publicly trusted and can be installed on EC2 instances connected to a Nitro Enclave or exported for use on any EC2 instance
|
| 18 |
+
- **Private CA certificates** are **not trusted by default** β administrators must install them in client trust stores
|
| 19 |
+
- **AWS Private CA** can reside in your own account or be shared from a different account via cross-account sharing
|
| 20 |
+
- ACM is accessed via the AWS Management Console at `https://console.aws.amazon.com/acm/home`
|
| 21 |
+
|
| 22 |
+
## Commands and Syntax
|
| 23 |
+
- No CLI commands covered on this page; it is a console-oriented getting-started guide
|
| 24 |
+
- Console navigation: **Certificate Manager** or **Private CAs** in the left navigation pane
|
| 25 |
+
|
| 26 |
+
## Relationships
|
| 27 |
+
- **AWS Private CA**: Issues private certificates managed through ACM; can be cross-account shared
|
| 28 |
+
- **Amazon EC2 / Nitro Enclaves**: Public ACM certificates can be deployed to Nitro Enclave-connected instances or exported to standard EC2 instances
|
| 29 |
+
- **Integrated AWS services**: ACM certificates are used with services like ELB, CloudFront, API Gateway (covered elsewhere)
|
| 30 |
+
- **Client trust stores**: Required configuration for private CA certificates
|
| 31 |
+
|
| 32 |
+
## Exam-Relevant Points
|
| 33 |
+
- Public ACM certificates can only be installed on EC2 via **Nitro Enclaves** or by **exporting** β they are not directly deployed to standard EC2 instances
|
| 34 |
+
- Private CA certificates require manual trust store installation on clients
|
| 35 |
+
- AWS Private CA supports **cross-account sharing** of certificate authorities
|
| 36 |
+
- ACM handles three certificate categories: public, private, imported
|
| 37 |
+
- Self-signed certificates are supported through the import mechanism
|
| 38 |
+
|
entries/2026/03/08/acm-overview.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html
|
| 3 |
+
source: sources/acm-overview.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:28
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
AWS Certificate Manager (ACM) is a managed service that handles the creation, storage, and renewal of public and private SSL/TLS X.509 certificates and keys used to protect AWS websites and applications. ACM can issue certificates directly or import third-party certificates, and supports singular, multiple, wildcard, and combination domain names.
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
- ACM manages **public and private SSL/TLS X.509 certificates** and keys
|
| 15 |
+
- Certificates can be **issued directly by ACM** or **imported** from third-party sources
|
| 16 |
+
- ACM certificates can secure: singular domain names, multiple specific domains, wildcard domains, or combinations
|
| 17 |
+
- **Wildcard certificates** protect an unlimited number of subdomains
|
| 18 |
+
- Certificates signed by **AWS Private CA** can be exported for use in internal PKI
|
| 19 |
+
- ACM is **not** intended for stand-alone web servers (e.g., directly on EC2 instances)
|
| 20 |
+
- **No additional charge** for SSL/TLS certificates managed by ACM β you only pay for underlying AWS resources
|
| 21 |
+
|
| 22 |
+
## Commands and Syntax
|
| 23 |
+
No CLI commands or configuration syntax are provided on this page. Certificate management is done through the ACM console, CLI, or API (covered in other pages).
|
| 24 |
+
|
| 25 |
+
## Relationships
|
| 26 |
+
- **Integrated AWS services**: ACM certificates are used with services like Elastic Load Balancing, CloudFront, and others listed in the integrated services page
|
| 27 |
+
- **AWS Private CA**: Used together with ACM to issue and export private certificates
|
| 28 |
+
- **CloudFront**: Requires certificates to be in **US East (N. Virginia)** region; certificates are then distributed to all configured geographic locations
|
| 29 |
+
- **Elastic Load Balancing**: Requires a separate certificate in each region where the ELB operates
|
| 30 |
+
- **Amazon EC2**: ACM certificates cannot be used directly on EC2 instances; standalone SSL/TLS must be configured manually
|
| 31 |
+
|
| 32 |
+
## Exam-Relevant Points
|
| 33 |
+
- **ACM certificates are regional resources** β you cannot copy a certificate between regions
|
| 34 |
+
- For **CloudFront**, the certificate **must** be requested/imported in **us-east-1 (N. Virginia)**
|
| 35 |
+
- For **ELB** across multiple regions, you must request or import a **separate certificate per region** and revalidate each domain name
|
| 36 |
+
- ACM itself is **free** β no additional charge for certificate management
|
| 37 |
+
- ACM supports **IPv4 and IPv6** on public endpoints
|
| 38 |
+
- ACM wildcard certificates can protect an **unlimited number of subdomains**
|
| 39 |
+
- ACM cannot be used with standalone web servers on EC2 β only with integrated AWS services
|
| 40 |
+
|
entries/2026/03/08/aws-features-essential-vs-convenience-classification.md
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# AWS Features Essential vs Convenience Classification
|
| 2 |
+
|
| 3 |
+
**Date:** 2026-03-08
|
| 4 |
+
**Time:** 18:41
|
| 5 |
+
|
| 6 |
+
## Summary
|
| 7 |
+
|
| 8 |
+
Classification of AWS managed service features into Essential (must replicate for production parity), Convenience (nice to have, can live without), and Irreplaceable (no practical self-hosted equivalent). Based on 747 beliefs across 13 AWS services.
|
| 9 |
+
|
| 10 |
+
This classification supports migration planning by identifying which features require investment to replicate vs. which can be safely dropped.
|
| 11 |
+
|
| 12 |
+
## Classification Criteria
|
| 13 |
+
|
| 14 |
+
- **Essential:** Feature is required for production workloads. Missing it creates security, reliability, or data integrity risk. Must be replicated or replaced.
|
| 15 |
+
- **Convenience:** Feature reduces operational burden but workloads function without it. Can be deferred or approximated.
|
| 16 |
+
- **Irreplaceable:** Feature depends on AWS-specific infrastructure (global network, scale, integration) that cannot be practically self-hosted. Must be accepted as a trade-off or sourced from another provider.
|
| 17 |
+
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
## Compute (EC2)
|
| 21 |
+
|
| 22 |
+
### Essential
|
| 23 |
+
- **Security groups** (`security-groups-only-allow-rules-no-deny`, `ec2-security-groups-are-stateful-virtual-firewalls`) β firewall rules. Replicated by iptables/nftables, Calico network policies, or hardware firewalls.
|
| 24 |
+
- **EBS volumes** (`ebs-volumes-az-scoped`, `ebs-encryption-at-rest-and-transit`) β persistent block storage with encryption. Replicated by Ceph RBD, LVM, or SAN storage + LUKS.
|
| 25 |
+
- **Key pairs for SSH** (`ec2-key-pair-public-stored-private-user`) β SSH access control. Standard SSH key management.
|
| 26 |
+
- **Instance monitoring** (`ec2-system-status-check-monitors-aws-infrastructure`, `ec2-instance-status-check-monitors-guest-os`) β health checks. Replicated by Prometheus node_exporter + alerting.
|
| 27 |
+
- **AMIs** (`ami-region-specific`, `ami-create-from-running-instance`) β machine images. Replicated by Packer, cloud-init, or container images.
|
| 28 |
+
|
| 29 |
+
### Convenience
|
| 30 |
+
- **Elastic IPs** (`eip-ipv4-only`, `eip-dns-resolves-private-internally`) β static public IPs. Most self-hosted environments use DNS-based addressing or load balancer VIPs.
|
| 31 |
+
- **Instance type flexibility** (`ec2-instance-type-change-requires-stop`) β vertical scaling by changing instance type. Self-hosted requires hardware provisioning or VM resizing.
|
| 32 |
+
- **Spot instances** (`spot-instances-up-to-90-percent-savings`) β cost optimization. No equivalent in self-hosted (you own the hardware).
|
| 33 |
+
- **Reserved Instances / Savings Plans** (`ris-are-billing-discounts-not-physical-instances`) β pricing models. Irrelevant for self-hosted.
|
| 34 |
+
- **SSM Session Manager** (`ec2-ssm-session-manager-alternative`) β SSH-less access. Replicated by bastion hosts or VPN.
|
| 35 |
+
|
| 36 |
+
### Irreplaceable
|
| 37 |
+
- **Graviton processors** (`ec2-graviton-arm-best-price-performance`) β AWS custom silicon. Can use other ARM servers (Ampere) but not the same chips.
|
| 38 |
+
- **Nitro enclaves** β hardware-isolated compute environments. No equivalent.
|
| 39 |
+
|
| 40 |
+
---
|
| 41 |
+
|
| 42 |
+
## Database (RDS)
|
| 43 |
+
|
| 44 |
+
### Essential
|
| 45 |
+
- **Automated backups / PITR** (`rds-automated-backups-snapshot-entire-instance`, `rds-first-snapshot-full-subsequent-incremental`) β data protection. Replicated by pgBackRest, Barman, or mysqldump + cron.
|
| 46 |
+
- **Multi-AZ failover** (`rds-multi-az-instance-standby-no-reads`, `rds-multi-az-cluster-two-standbys-serve-reads`) β high availability. Replicated by Patroni, MHA, Galera, or repmgr.
|
| 47 |
+
- **Encryption at rest** (`rds-encryption-at-rest-aes-256`) β data protection. Replicated by LUKS/dm-crypt at disk level.
|
| 48 |
+
- **SSL/TLS** (`rds-ssl-tls-all-major-engines`) β encryption in transit. Native to all database engines.
|
| 49 |
+
- **VPC isolation** (`rds-default-vpc-unless-specified`, `rds-security-groups-deny-all-by-default`) β network security. Standard network segmentation.
|
| 50 |
+
- **Monitoring** (`rds-monitoring-five-tools`) β operational visibility. Replicated by Prometheus + postgres_exporter + Grafana.
|
| 51 |
+
|
| 52 |
+
### Convenience
|
| 53 |
+
- **One-click scaling** (`rds-instance-class-naming-convention`) β change instance class via API. Self-hosted requires migration or downtime.
|
| 54 |
+
- **Managed patching** β RDS handles OS and engine patches automatically. Self-hosted requires patch management process.
|
| 55 |
+
- **Performance Insights** (`rds-performance-insights-identifies-queries`) β query performance analysis. Replicated by pg_stat_statements, pgBadger, or PMM.
|
| 56 |
+
- **Read replicas** (`rds-read-replica-async-replication`) β read scaling. Available in all major databases natively but requires manual setup.
|
| 57 |
+
- **Parameter groups** (`rds-db-parameter-groups-control-engine-behavior`) β centralized config management. Replicated by Ansible/Chef/Puppet.
|
| 58 |
+
- **Secrets Manager integration** (`rds-secrets-manager-password-rotation`) β automatic password rotation. Replicated by Vault.
|
| 59 |
+
|
| 60 |
+
### Irreplaceable
|
| 61 |
+
- **Cross-region snapshot sharing** (`rds-only-manual-snapshots-can-be-shared`) β share database snapshots across AWS accounts.
|
| 62 |
+
- **Data Layer Versioning** (`rds-dlv-fixed-1024gib-3000iops-piops-only`) β specialized storage tier.
|
| 63 |
+
|
| 64 |
+
---
|
| 65 |
+
|
| 66 |
+
## Storage (S3)
|
| 67 |
+
|
| 68 |
+
### Essential
|
| 69 |
+
- **Object storage API** (`s3-max-object-size-5tb`, `s3-strong-read-after-write-consistency`) β basic object storage. Replicated by MinIO or Ceph RGW.
|
| 70 |
+
- **Versioning** (`s3-versioning-cannot-revert-to-unversioned`, `s3-delete-creates-delete-marker`) β data protection. Available in MinIO and Ceph.
|
| 71 |
+
- **Encryption at rest** (`s3-sse-s3-default-encryption`) β data protection. Available in MinIO (SSE-S3, SSE-KMS).
|
| 72 |
+
- **Access control** (`s3-resources-private-by-default`, `s3-bucket-policy-size-limit-20kb`) β security. Available in MinIO IAM policies.
|
| 73 |
+
- **Lifecycle rules** (`s3-lifecycle-rules-apply-retroactively`) β data management. Available in MinIO ILM.
|
| 74 |
+
- **Replication** (`s3-live-replication-no-preexisting-objects`) β disaster recovery. Available in MinIO site replication.
|
| 75 |
+
|
| 76 |
+
### Convenience
|
| 77 |
+
- **Event notifications** (`s3-event-notification-four-destinations`) β event-driven workflows. MinIO supports webhooks and Kafka.
|
| 78 |
+
- **Requester pays** (`s3-requester-pays-shifts-transfer-cost`) β billing model.
|
| 79 |
+
- **Transfer acceleration** (`s3-transfer-acceleration-uses-cloudfront-edges`) β faster uploads via edge network.
|
| 80 |
+
- **Presigned URLs** (`s3-presigned-urls-share-private-objects`) β temporary access. Supported by MinIO.
|
| 81 |
+
|
| 82 |
+
### Irreplaceable
|
| 83 |
+
- **11 nines durability** (`s3-all-classes-11-nines-except-rrs`) β 99.999999999% durability SLA. Self-hosted can be highly durable but no SLA.
|
| 84 |
+
- **Intelligent-Tiering** (`s3-intelligent-tiering-five-tiers`) β automatic cost-optimized storage tiering across 5 tiers.
|
| 85 |
+
- **Glacier / Deep Archive** (`s3-glacier-flexible-deep-archive-require-restore`) β ultra-low-cost archival with restore delays.
|
| 86 |
+
- **S3 Express One Zone** (`s3-express-one-zone-10x-faster-50pct-lower-cost`) β single-digit millisecond latency at scale.
|
| 87 |
+
- **Storage Lens** (`s3-storage-lens-60-plus-metrics`) β organization-wide analytics.
|
| 88 |
+
|
| 89 |
+
---
|
| 90 |
+
|
| 91 |
+
## Networking (Route 53, CloudFront, VPC)
|
| 92 |
+
|
| 93 |
+
### Essential
|
| 94 |
+
- **DNS hosting** (`route53-public-vs-private-hosted-zones`) β authoritative DNS. Replicated by PowerDNS, BIND, CoreDNS.
|
| 95 |
+
- **VPC / network isolation** (`vpc-itself-is-free`, `vpc-subnet-single-az`) β network segmentation. Standard networking with VLANs, firewalls, SDN.
|
| 96 |
+
- **NACLs** (`nacl-stateless-subnet-level-filtering`) β network-level filtering. Replicated by iptables, hardware firewalls.
|
| 97 |
+
- **NAT** (`nat-gateway-connections-initiated-from-inside-only`) β outbound internet access for private resources. Standard NAT with iptables or dedicated appliances.
|
| 98 |
+
- **Flow logs** (`vpc-flow-logs-capture-metadata-not-contents`) β network monitoring. Replicated by NetFlow, sFlow, or packet capture.
|
| 99 |
+
|
| 100 |
+
### Convenience
|
| 101 |
+
- **Health-check-based DNS failover** (`route53-dns-failover-requires-health-check-association`) β automatic DNS failover. Achievable with Consul DNS or custom health check pipelines.
|
| 102 |
+
- **Routing policies** (`route53-eight-routing-policies`) β weighted, geolocation, latency. Achievable with PowerDNS GeoIP.
|
| 103 |
+
- **VPC peering** (`vpc-peering-non-transitive`) β cross-VPC connectivity. Standard networking with routing.
|
| 104 |
+
- **PrivateLink** (`privatelink-no-public-infrastructure-required`) β private service endpoints. Achievable with VPN or direct connections.
|
| 105 |
+
- **Internet Gateway** (`igw-horizontally-scaled-no-bottleneck`) β managed, infinitely scalable. Self-hosted uses standard routers.
|
| 106 |
+
|
| 107 |
+
### Irreplaceable
|
| 108 |
+
- **Global edge network** (`cloudfront-routes-to-lowest-latency-edge`, `cloudfront-uses-aws-backbone-network`) β 450+ edge locations. Must use alternative CDN (Cloudflare) or accept higher latency.
|
| 109 |
+
- **Latency-based routing** (`route53-geolocation-vs-geoproximity-vs-latency`) β requires global latency measurement infrastructure.
|
| 110 |
+
- **Transit Gateway** (`tgw-hub-and-spoke-architecture`) β managed at AWS scale. Self-hosted hub-and-spoke requires BGP/OSPF expertise.
|
| 111 |
+
- **100% DNS uptime SLA** β Route 53's unique SLA. Self-hosted requires anycast + multi-site for similar availability.
|
| 112 |
+
|
| 113 |
+
---
|
| 114 |
+
|
| 115 |
+
## Messaging (SQS, SES)
|
| 116 |
+
|
| 117 |
+
### Essential
|
| 118 |
+
- **Message queuing** (`sqs-standard-at-least-once-fifo-exactly-once`) β asynchronous processing. Replicated by RabbitMQ, Kafka, NATS.
|
| 119 |
+
- **Dead letter queues** (`sqs-dlq-maxreceivecount-controls-transfer`) β failed message handling. Available in RabbitMQ (DLX).
|
| 120 |
+
- **Email sending** (`ses-three-sending-methods`) β transactional email. Replicated by Postfix + DKIM/SPF/DMARC, or third-party (Mailgun, SendGrid).
|
| 121 |
+
|
| 122 |
+
### Convenience
|
| 123 |
+
- **FIFO exactly-once** (`sqs-fifo-dedup-id-idempotent-retries`) β deduplication. Kafka provides per-partition ordering; idempotent producers available.
|
| 124 |
+
- **Email receiving** (`ses-receiving-not-all-regions`) β inbound email processing. Replicated by Postfix + custom handlers.
|
| 125 |
+
- **Bounce/complaint tracking** (`ses-sns-bounce-complaint-delivery-notifications`) β email deliverability monitoring. Available via Postfix logs + custom processing.
|
| 126 |
+
|
| 127 |
+
### Irreplaceable
|
| 128 |
+
- **SQS zero-ops scaling** (`sqs-scales-transparently-no-provisioning`) β infinite auto-scaling with no capacity planning. All self-hosted brokers require sizing.
|
| 129 |
+
- **SES reputation management** β AWS manages IP reputation for deliverability. Self-hosted requires IP warming and reputation monitoring.
|
| 130 |
+
|
| 131 |
+
---
|
| 132 |
+
|
| 133 |
+
## Containers (EKS), Caching (ElastiCache), Certificates (ACM), Monitoring (CloudWatch)
|
| 134 |
+
|
| 135 |
+
### Essential
|
| 136 |
+
- **Kubernetes API** (`eks-certified-kubernetes-conformant`) β container orchestration. Any CNCF-certified distribution.
|
| 137 |
+
- **Redis/Valkey caching** (`elasticache-three-engines`) β in-memory caching. Self-hosted Redis/Valkey.
|
| 138 |
+
- **TLS certificates** (`acm-three-certificate-types`) β HTTPS. Let's Encrypt + cert-manager.
|
| 139 |
+
- **Metrics and alarms** (`cloudwatch-metric-retention-15-months`, `cloudwatch-alarm-three-states`) β monitoring. Prometheus + Alertmanager + Grafana.
|
| 140 |
+
|
| 141 |
+
### Convenience
|
| 142 |
+
- **Managed control plane** (EKS) β Kubernetes control plane operations. Self-hosted with kubeadm/k3s/RKE2.
|
| 143 |
+
- **ElastiCache Multi-AZ failover** (`elasticache-multi-az-automatic-failover`) β automatic Redis failover. Replicated by Redis Sentinel or Redis Cluster.
|
| 144 |
+
- **ACM auto-renewal** β automatic certificate renewal. cert-manager provides this for Let's Encrypt.
|
| 145 |
+
- **CloudWatch Container Insights** (`cloudwatch-container-insights-ecs-eks-k8s`) β container monitoring. Replicated by Prometheus + kube-state-metrics.
|
| 146 |
+
|
| 147 |
+
### Irreplaceable
|
| 148 |
+
- **ACM free certificates for AWS services** (`acm-no-additional-charge`) β free provisioning integrated with ELB/CloudFront. Let's Encrypt is also free but lacks native integration.
|
| 149 |
+
- **CloudWatch cross-account observability** (`cloudwatch-cross-account-observability-central-monitoring`) β centralized monitoring across AWS accounts. Requires Thanos or Cortex for self-hosted equivalent.
|
| 150 |
+
- **EKS Fargate** (`eks-fargate-serverless-compute`) β serverless Kubernetes pods. No self-hosted equivalent.
|
| 151 |
+
|
| 152 |
+
---
|
| 153 |
+
|
| 154 |
+
## IAM and Security
|
| 155 |
+
|
| 156 |
+
### Essential
|
| 157 |
+
- **Identity and access management** (`iam-new-user-zero-permissions-by-default`, `iam-explicit-deny-always-wins`) β access control. Replicated by Keycloak, FreeIPA, or LDAP + policy engine.
|
| 158 |
+
- **MFA** (`iam-mfa-max-8-devices-per-user`, `iam-root-mfa-enforced-all-account-types`) β multi-factor auth. Available in any identity provider.
|
| 159 |
+
- **Temporary credentials** (`sts-temporary-credentials-three-components`) β short-lived access tokens. Replicated by Vault dynamic secrets.
|
| 160 |
+
- **Policy evaluation** (`iam-explicit-deny-always-wins`, `iam-cross-account-needs-both-policies`) β policy logic. Must implement in chosen identity system.
|
| 161 |
+
|
| 162 |
+
### Convenience
|
| 163 |
+
- **IAM Identity Center** (`iam-identity-center-recommended-multi-account`) β SSO across accounts. Replicated by Keycloak + SAML/OIDC.
|
| 164 |
+
- **Service-linked roles** (`iam-service-linked-role-permissions-not-editable`) β AWS-specific automation permissions.
|
| 165 |
+
- **Permission boundaries** (`iam-permission-boundary-limits-not-grants`) β delegation guardrails. Must implement in policy engine.
|
| 166 |
+
- **Access Analyzer** (`iam-access-analyzer-three-functions`) β automated policy analysis. Open Policy Agent can partially replicate.
|
| 167 |
+
|
| 168 |
+
### Irreplaceable
|
| 169 |
+
- **IAM policy language** (`iam-seven-policy-types`) β the specific JSON policy language and evaluation engine is AWS-native
|
| 170 |
+
- **Cross-account role assumption** (`iam-cross-account-requires-trust-and-identity-policy`) β seamless cross-account access. Requires identity federation design in self-hosted.
|
| 171 |
+
- **SCPs / RCPs** (`iam-scps-rcps-restrict-only-no-grant`) β organization-level guardrails. No equivalent in self-hosted without building a policy hierarchy.
|
| 172 |
+
|
| 173 |
+
---
|
| 174 |
+
|
| 175 |
+
## Summary Statistics
|
| 176 |
+
|
| 177 |
+
| Category | Essential | Convenience | Irreplaceable |
|
| 178 |
+
|----------|-----------|-------------|---------------|
|
| 179 |
+
| Compute (EC2) | 5 | 5 | 2 |
|
| 180 |
+
| Database (RDS) | 6 | 6 | 2 |
|
| 181 |
+
| Storage (S3) | 6 | 4 | 5 |
|
| 182 |
+
| Networking | 5 | 5 | 4 |
|
| 183 |
+
| Messaging | 3 | 3 | 2 |
|
| 184 |
+
| Containers/Cache/Certs/Mon | 4 | 4 | 3 |
|
| 185 |
+
| IAM/Security | 4 | 4 | 3 |
|
| 186 |
+
| **Total** | **33** | **31** | **21** |
|
| 187 |
+
|
| 188 |
+
**Key finding:** Roughly 39% of significant AWS features are Essential and replicable, 36% are Convenience features that can be deferred, and 25% are Irreplaceable β requiring either acceptance of the trade-off or sourcing from an alternative provider (e.g., Cloudflare for CDN, Backblaze B2 for archival storage).
|
entries/2026/03/08/cloudfront-distributions.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-overview.html
|
| 3 |
+
source: sources/cloudfront-distributions.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:28
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
This page describes how to create and configure Amazon CloudFront distributions β the core resource that defines where CloudFront fetches content (origins) and how it manages delivery. It covers configurable settings like origins, access control, security, caching, geographic restrictions, and logging, as well as the types of content distributions can serve.
|
| 14 |
+
|
| 15 |
+
## Key Concepts
|
| 16 |
+
- A **distribution** tells CloudFront where to get content and how to deliver it
|
| 17 |
+
- CloudFront **auto-configures most settings** based on origin type; manual editing is optional
|
| 18 |
+
- A distribution supports up to **25 origins**
|
| 19 |
+
- The **cache key** uniquely identifies each file in the cache for a given distribution
|
| 20 |
+
- **No maximum number of files** per distribution (but there are account-level limits on number of distributions)
|
| 21 |
+
- **Multi-tenant distributions** have restrictions: only WAF V2 web ACLs supported, no Smooth Streaming
|
| 22 |
+
|
| 23 |
+
## Supported Origin Types
|
| 24 |
+
- Amazon S3 bucket
|
| 25 |
+
- AWS Elemental MediaPackage channel
|
| 26 |
+
- AWS Elemental MediaStore container
|
| 27 |
+
- Elastic Load Balancing load balancer
|
| 28 |
+
- HTTP server (custom origin)
|
| 29 |
+
|
| 30 |
+
## Configurable Settings
|
| 31 |
+
| Setting | Description |
|
| 32 |
+
|---------|-------------|
|
| 33 |
+
| Origin | Source of content (up to 25 per distribution) |
|
| 34 |
+
| Access | Public or restricted |
|
| 35 |
+
| Security | AWS WAF protection, HTTPS enforcement |
|
| 36 |
+
| Cache key | Values included for cache identification |
|
| 37 |
+
| Origin request settings | Headers, cookies, query strings forwarded to origin |
|
| 38 |
+
| Geographic restrictions | Country-level blocking |
|
| 39 |
+
| Logs | Standard logs or real-time access logs |
|
| 40 |
+
|
| 41 |
+
## Content Types Served
|
| 42 |
+
- Static/dynamic download content (HTML, CSS, JS, images) over HTTP/HTTPS
|
| 43 |
+
- Video on demand (HLS, Microsoft Smooth Streaming)
|
| 44 |
+
- Live streaming (via CloudFormation stack with AWS Media Services)
|
| 45 |
+
|
| 46 |
+
## Relationships
|
| 47 |
+
- **S3, ELB, MediaPackage, MediaStore** β all valid origin types
|
| 48 |
+
- **AWS WAF** β optional security layer for distributions
|
| 49 |
+
- **CloudFormation** β can automate live-streaming distribution creation
|
| 50 |
+
- **Alternate domain names (CNAMEs)** β custom URLs for distributions
|
| 51 |
+
- **Continuous deployment** β safe testing of CDN config changes
|
| 52 |
+
- **WebSockets, gRPC, IPv6** β protocol-level features available on distributions
|
| 53 |
+
|
| 54 |
+
## Exam-Relevant Points
|
| 55 |
+
- Maximum of **25 origins per distribution**
|
| 56 |
+
- No limit on files per distribution, but there are **account-level distribution quotas**
|
| 57 |
+
- Multi-tenant distributions only support **WAF V2** (not V1)
|
| 58 |
+
- Multi-tenant distributions do **not support Smooth Streaming**
|
| 59 |
+
- Cache key composition affects cache behavior β know what values can be included
|
| 60 |
+
- Live streaming distributions can be provisioned via **CloudFormation stacks**
|
| 61 |
+
- CloudFront supports **continuous deployment** for safely testing configuration changes
|
| 62 |
+
- **Anycast static IPs** can be requested for allowlisting use cases
|
| 63 |
+
|
entries/2026/03/08/cloudfront-feature-parity-cross-reference.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CloudFront Feature Parity Cross-Reference
|
| 2 |
+
|
| 3 |
+
**Date:** 2026-03-08
|
| 4 |
+
**Time:** 18:32
|
| 5 |
+
|
| 6 |
+
## Summary
|
| 7 |
+
|
| 8 |
+
Cross-reference of AWS CloudFront features against self-hosted CDN/reverse proxy alternatives (Nginx, HAProxy, Varnish, Caddy). Maps AWS expert beliefs to replacement requirements.
|
| 9 |
+
|
| 10 |
+
## Well Covered by Self-Hosted Alternatives
|
| 11 |
+
|
| 12 |
+
| CloudFront Feature | AWS Expert Beliefs | Self-Hosted Equivalent |
|
| 13 |
+
|---|---|---|
|
| 14 |
+
| Static content caching | `cloudfront-default-ttl-24-hours`, `cloudfront-cache-key-identifies-cached-files` | Nginx, Varnish, and Caddy all provide excellent HTTP caching with configurable TTLs. |
|
| 15 |
+
| SSL/TLS termination | `cloudfront-acm-cert-must-be-us-east-1`, `cloudfront-redirect-http-returns-301-get-head-only` | Nginx, HAProxy, and Caddy handle TLS termination. Caddy provides automatic Let's Encrypt certificates. |
|
| 16 |
+
| Cache invalidation | `cloudfront-invalidation-does-not-clear-browser-cache`, `cloudfront-invalidation-has-cost` | Self-hosted invalidation is free and immediate via cache purge APIs. No per-path cost. |
|
| 17 |
+
| HTTP/2 and WebSocket support | `cloudfront-supports-websockets-grpc-ipv6` | Nginx and Caddy support HTTP/2, WebSocket, and gRPC natively. |
|
| 18 |
+
| Custom headers | N/A | Nginx and HAProxy provide full header manipulation. |
|
| 19 |
+
| Compression | N/A | Nginx provides gzip and Brotli compression. |
|
| 20 |
+
|
| 21 |
+
## Gaps in Self-Hosted Alternatives
|
| 22 |
+
|
| 23 |
+
### Global Edge Network
|
| 24 |
+
- **CloudFront provides:** `cloudfront-routes-to-lowest-latency-edge`, `cloudfront-uses-aws-backbone-network` β 450+ edge locations worldwide, anycast routing
|
| 25 |
+
- **Self-hosted gap:** Building a global edge network is extremely expensive. Multi-region Nginx deployments with GeoDNS can approximate this but at much higher cost and operational complexity.
|
| 26 |
+
- **Migration implication:** This is CloudFront's primary value proposition. Self-hosted CDN will have higher latency for geographically distributed users.
|
| 27 |
+
|
| 28 |
+
### DDoS Protection
|
| 29 |
+
- **CloudFront provides:** `cloudfront-ddos-resilient-architecture-component` β integrated with AWS Shield Standard (free) and Shield Advanced
|
| 30 |
+
- **Self-hosted gap:** Must provision DDoS protection separately (Cloudflare, or on-premise DDoS mitigation appliances). Significant cost.
|
| 31 |
+
|
| 32 |
+
### AWS WAF Integration
|
| 33 |
+
- **CloudFront provides:** `cloudfront-waf-integration-request-filtering`, `cloudfront-multi-tenant-waf-v2-only` β native WAF with managed rule sets
|
| 34 |
+
- **Self-hosted gap:** ModSecurity with Nginx, or standalone WAF appliances. Requires separate management and rule updates.
|
| 35 |
+
|
| 36 |
+
### Origin Access Control
|
| 37 |
+
- **CloudFront provides:** `cloudfront-origin-access-restriction-s3-alb` β cryptographically restrict origin access to CloudFront only
|
| 38 |
+
- **Self-hosted gap:** IP-based restrictions on origin servers. Less secure than signed OAC requests.
|
| 39 |
+
|
| 40 |
+
### Signed URLs / Signed Cookies
|
| 41 |
+
- **CloudFront provides:** `cloudfront-signed-urls-vs-cookies`, `cloudfront-private-content-signed-urls-cookies` β built-in content access control
|
| 42 |
+
- **Self-hosted gap:** Must implement token-based access in application layer or use Nginx secure_link module. More development effort.
|
| 43 |
+
|
| 44 |
+
### Field-Level Encryption
|
| 45 |
+
- **CloudFront provides:** `cloudfront-field-level-encryption-at-edge` β encrypt specific POST fields at the edge before forwarding
|
| 46 |
+
- **Self-hosted gap:** No equivalent. Must implement in application code.
|
| 47 |
+
|
| 48 |
+
### Free Data Transfer from AWS Origins
|
| 49 |
+
- **CloudFront provides:** `cloudfront-free-data-transfer-from-aws-origins` β no transfer charges between CloudFront and S3/ALB/etc.
|
| 50 |
+
- **Self-hosted gap:** All egress from cloud providers is charged. Self-hosted CDN in a datacenter eliminates this but requires infrastructure investment.
|
| 51 |
+
|
| 52 |
+
## CloudFront Features With No Self-Managed Equivalent
|
| 53 |
+
|
| 54 |
+
- **Continuous Deployment:** `cloudfront-continuous-deployment-support` β staged rollout of distribution config changes
|
| 55 |
+
- **CloudFront Functions / Lambda@Edge:** Serverless compute at edge locations β no self-hosted equivalent without deploying code to every edge node
|
| 56 |
+
- **Anycast Static IPs:** `cloudfront-anycast-static-ips` β requires BGP anycast infrastructure
|
| 57 |
+
- **mTLS:** `cloudfront-mtls-both-directions` β mutual TLS at scale across 450+ edges
|
| 58 |
+
|
| 59 |
+
## Recommendations
|
| 60 |
+
|
| 61 |
+
1. **Nginx + Varnish is the closest self-hosted replacement** for caching and reverse proxy functionality
|
| 62 |
+
2. **The global edge network is irreplaceable at reasonable cost** β consider Cloudflare (free/paid tiers) as a non-AWS CDN alternative rather than fully self-hosting
|
| 63 |
+
3. **WAF and DDoS protection must be provisioned separately** β ModSecurity, Cloudflare, or dedicated appliances
|
| 64 |
+
4. **Cache invalidation is actually better self-hosted** β free, immediate, no API limits
|
entries/2026/03/08/cloudfront-invalidation.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html
|
| 3 |
+
source: sources/cloudfront-invalidation.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:28
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
This page covers how to remove or update content cached at CloudFront edge locations before it naturally expires, focusing on two strategies: cache invalidation and file versioning. It recommends file versioning as the preferred approach for frequently updated content.
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
- **Cache invalidation** forces CloudFront to remove a file from edge caches; the next viewer request fetches the latest version from the origin.
|
| 15 |
+
- **File versioning** serves a different version of a file by using a different file name (e.g., `style-v2.css`), bypassing the cache entirely.
|
| 16 |
+
- AWS recommends **file versioning over invalidation** for frequently updated files.
|
| 17 |
+
- Invalidation does **not** clear files cached locally in a user's browser or behind corporate caching proxies β users may still see old versions until those caches expire.
|
| 18 |
+
- Invalidation has an associated **cost**; versioning avoids that cost (you only pay for transferring new files to edge locations).
|
| 19 |
+
|
| 20 |
+
## Commands and Syntax
|
| 21 |
+
No CLI commands are shown on this page. Invalidation is performed via the CloudFront console or API (detailed in linked sub-pages: `Invalidation_Requests.html`, `InvalidationLimits.html`).
|
| 22 |
+
|
| 23 |
+
## Relationships
|
| 24 |
+
- **CloudFront Distributions**: Invalidation operates on files served by a distribution.
|
| 25 |
+
- **Origin servers (S3, ALB, custom)**: After invalidation, CloudFront fetches the latest file from the origin.
|
| 26 |
+
- **Cache behaviors / TTL**: Invalidation is the manual override for content that hasn't yet reached its TTL expiration.
|
| 27 |
+
- **CloudFront access logs**: Versioned file names appear in logs, making analysis of file changes easier.
|
| 28 |
+
- **Concurrent invalidation limits**: There is a maximum number of concurrent invalidation requests per distribution.
|
| 29 |
+
|
| 30 |
+
## Exam-Relevant Points
|
| 31 |
+
- **File versioning is the AWS-recommended approach** over invalidation for frequently changing content β know the five reasons (local cache bypass, log analysis, per-user versions, easy rollback, lower cost).
|
| 32 |
+
- Invalidation **does not guarantee** users see the new version immediately if intermediate caches (browser, corporate proxy) hold the old version.
|
| 33 |
+
- Invalidation **costs money**; versioning does not incur invalidation fees.
|
| 34 |
+
- There is a **concurrent invalidation request limit** per distribution.
|
| 35 |
+
- Invalidation causes CloudFront to **return to the origin** on the next request β understand the origin-fetch behavior.
|
| 36 |
+
|
entries/2026/03/08/cloudfront-overview.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html
|
| 3 |
+
source: sources/cloudfront-overview.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:29
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
|
| 14 |
+
Amazon CloudFront is a Content Delivery Network (CDN) service that accelerates distribution of static and dynamic web content (HTML, CSS, JS, images) through a global network of edge locations. It routes user requests to the lowest-latency edge location, caching content closer to users to improve performance, reliability, and availability.
|
| 15 |
+
|
| 16 |
+
## Key Concepts
|
| 17 |
+
|
| 18 |
+
- **Edge locations (Points of Presence / POPs)**: Geographically-dispersed data centers where CloudFront caches copies of content
|
| 19 |
+
- **Origin server**: The source of the definitive version of your content β can be an S3 bucket, MediaPackage channel, or any HTTP server (including EC2 instances)
|
| 20 |
+
- **Custom origin**: An HTTP server you manage (e.g., on EC2 or on-premises) as opposed to an AWS-native origin like S3
|
| 21 |
+
- **Distribution**: The CloudFront configuration that specifies which origins to use and how to manage delivery
|
| 22 |
+
- **Objects**: The files (web pages, images, media) served through CloudFront
|
| 23 |
+
- **Default cache expiration**: 24 hours per file; minimum is 0 seconds, no maximum limit
|
| 24 |
+
- **AWS backbone network**: CloudFront routes requests through AWS's own network, reducing hops and improving latency
|
| 25 |
+
- Content can be **public** or **private** (controlled via signed URLs and signed cookies)
|
| 26 |
+
- **Standard distribution**: One distribution per website/app with unique configuration
|
| 27 |
+
- **Multi-tenant distribution (CloudFront SaaS Manager)**: Designed for SaaS providers managing multiple customer sites with centralized shared configuration
|
| 28 |
+
|
| 29 |
+
## Commands and Syntax
|
| 30 |
+
|
| 31 |
+
- CloudFront assigns a domain like `d111111abcdef8.cloudfront.net` to each distribution
|
| 32 |
+
- Example URL: `https://d111111abcdef8.cloudfront.net/logo.jpg`
|
| 33 |
+
- You can configure an **alternate domain name** (CNAME) so URLs use your own domain: `https://www.example.com/logo.jpg`
|
| 34 |
+
- Cache duration is controlled via **headers on the origin server**
|
| 35 |
+
|
| 36 |
+
## Relationships
|
| 37 |
+
|
| 38 |
+
- **Amazon S3**: Common origin server for CloudFront distributions
|
| 39 |
+
- **Amazon EC2**: Can serve as a custom origin
|
| 40 |
+
- **Elastic Load Balancing / API Gateway**: Supported AWS origins (free data transfer to CloudFront)
|
| 41 |
+
- **MediaPackage**: Origin for media/streaming content
|
| 42 |
+
- **Signed URLs / Signed Cookies**: Mechanism for serving private content
|
| 43 |
+
- **Route 53**: Implied for custom domain name configuration (alternate domain names)
|
| 44 |
+
|
| 45 |
+
## Exam-Relevant Points
|
| 46 |
+
|
| 47 |
+
- CloudFront delivers content from the **lowest-latency edge location**, not necessarily the geographically closest
|
| 48 |
+
- Data transfer **from AWS origins (S3, ELB, API Gateway) to CloudFront is free**; you pay only for edge-to-viewer transfer
|
| 49 |
+
- Default TTL is **24 hours**; minimum is **0 seconds**; **no maximum**
|
| 50 |
+
- CloudFront supports both **static and dynamic** content
|
| 51 |
+
- Origin can be S3, EC2, on-premises HTTP server, or MediaPackage
|
| 52 |
+
- Distribution configuration is pushed to **all edge locations**, but content is cached on demand
|
| 53 |
+
- Two distribution types: **Standard** (single site) and **Multi-tenant** (SaaS/multi-customer)
|
| 54 |
+
- Private content is controlled via **signed URLs and signed cookies**
|
| 55 |
+
- CloudFront pricing varies by **usage type, geographic region, and feature selection**
|
| 56 |
+
|
entries/2026/03/08/cloudfront-security.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecurityAndPrivateContent.html
|
| 3 |
+
source: sources/cloudfront-security.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:29
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
This page covers the security features available in Amazon CloudFront for securing and restricting access to content delivered through the CDN. It serves as a hub page linking to detailed documentation on HTTPS configuration, signed URLs/cookies, geographic restrictions, field-level encryption, and integration with AWS WAF.
|
| 14 |
+
|
| 15 |
+
## Key Concepts
|
| 16 |
+
- **HTTPS connections** β CloudFront supports configuring HTTPS for both viewer-to-CloudFront and CloudFront-to-origin connections
|
| 17 |
+
- **Geographic restrictions (geo-blocking)** β Prevent users in specific countries/locations from accessing content
|
| 18 |
+
- **Signed URLs and signed cookies** β Require authentication tokens to access private content; two mechanisms for controlling who can access content and for how long
|
| 19 |
+
- **Field-level encryption** β Encrypt specific form fields at the edge so only your application can decrypt them, adding a layer beyond HTTPS
|
| 20 |
+
- **AWS WAF integration** β Use Web Application Firewall rules to control access based on IP, geo, request patterns, etc.
|
| 21 |
+
- **Mutual TLS (mTLS)** β Supported both on the viewer side (viewer mTLS) and origin side (origin mTLS) for certificate-based authentication
|
| 22 |
+
- **Origin access restriction** β Restrict access so content is only served through CloudFront, not directly from the origin (S3, ALB, etc.)
|
| 23 |
+
- **DDoS resiliency** β CloudFront is part of a DDoS-resilient architecture; AWS recommends following their DDoS Best Practices whitepaper
|
| 24 |
+
|
| 25 |
+
## Commands and Syntax
|
| 26 |
+
No CLI commands or configuration syntax on this page β it is a navigation hub linking to subtopics.
|
| 27 |
+
|
| 28 |
+
## Relationships
|
| 29 |
+
- **AWS WAF** β Directly integrates with CloudFront for request filtering and rate limiting
|
| 30 |
+
- **AWS Shield** β Works alongside CloudFront for DDoS protection (referenced via DDoS resiliency best practices)
|
| 31 |
+
- **S3 / ALB origins** β Origin access controls restrict direct access to these services, forcing traffic through CloudFront
|
| 32 |
+
- **ACM (Certificate Manager)** β Required for HTTPS with alternate domain names; certificates must be in us-east-1 for CloudFront
|
| 33 |
+
- **Amazon OpenSearch Service** β Referenced for SIEM/logging analysis of CloudFront security events
|
| 34 |
+
|
| 35 |
+
## Exam-Relevant Points
|
| 36 |
+
- CloudFront offers **six primary security mechanisms**: HTTPS, geo-restriction, signed URLs/cookies, field-level encryption, AWS WAF, and origin access restriction
|
| 37 |
+
- **Signed URLs vs signed cookies**: signed URLs for individual files, signed cookies for multiple files or when you don't want to change URLs
|
| 38 |
+
- **Field-level encryption** protects specific fields beyond standard HTTPS β data is encrypted at the edge and stays encrypted through to the application
|
| 39 |
+
- **mTLS** is supported in both directions: viewer-to-CloudFront and CloudFront-to-origin
|
| 40 |
+
- **Origin access** can be restricted for both S3 origins (OAC/OAI) and ALB origins
|
| 41 |
+
- CloudFront is a key component in **AWS DDoS-resilient architectures** (often tested alongside Shield and WAF)
|
| 42 |
+
|
entries/2026/03/08/cloudfront-ssl.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cnames-and-https-procedures.html
|
| 3 |
+
source: sources/cloudfront-ssl.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:29
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
This page describes how to configure custom domain names (CNAMEs) with HTTPS on Amazon CloudFront distributions, covering the full workflow: obtaining an SSL/TLS certificate, importing it if from a third-party CA, and updating the CloudFront distribution to use the certificate and enforce HTTPS.
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
- **Alternate domain names (CNAMEs)** allow you to serve CloudFront content from your own domain (e.g., `www.example.com`) instead of the default `d111111abcdef8.cloudfront.net`
|
| 15 |
+
- SSL/TLS certificates can come from **AWS Certificate Manager (ACM)** or a **third-party Certificate Authority (CA)**
|
| 16 |
+
- ACM is the recommended method for provisioning and managing certificates
|
| 17 |
+
- **ACM certificates for CloudFront must be requested/imported in US East (N. Virginia) region** β this is a hard requirement
|
| 18 |
+
- Third-party certificates can be imported into ACM (recommended) or uploaded to the **IAM certificate store** (not recommended)
|
| 19 |
+
- **Viewer Protocol Policy** controls how CloudFront handles HTTP vs HTTPS from viewers:
|
| 20 |
+
- **Redirect HTTP to HTTPS** β returns `301 Moved Permanently`; charges for both requests
|
| 21 |
+
- **HTTPS Only** β returns `403 Forbidden` for HTTP requests
|
| 22 |
+
- CloudFront does **NOT redirect** `DELETE`, `OPTIONS`, `PATCH`, `POST`, or `PUT` from HTTP to HTTPS β these return `403 Forbidden`
|
| 23 |
+
- Do not delete a certificate from ACM/IAM until it is removed from **all** distributions and those distributions are fully deployed
|
| 24 |
+
|
| 25 |
+
## Commands and Syntax
|
| 26 |
+
**Upload third-party certificate to IAM certificate store:**
|
| 27 |
+
```bash
|
| 28 |
+
aws iam upload-server-certificate \
|
| 29 |
+
--server-certificate-name CertificateName \
|
| 30 |
+
--certificate-body file://public_key_certificate_file \
|
| 31 |
+
--private-key file://privatekey.pem \
|
| 32 |
+
--certificate-chain file://certificate_chain_file \
|
| 33 |
+
--path /cloudfront/path/
|
| 34 |
+
```
|
| 35 |
+
- `--path` must start with `/cloudfront/` and end with `/`
|
| 36 |
+
- Must use the same AWS account that created the CloudFront distribution
|
| 37 |
+
- `--server-certificate-name` and `--path` must differ from existing certificates
|
| 38 |
+
|
| 39 |
+
## Relationships
|
| 40 |
+
- **ACM** β certificate provisioning and management service; tightly integrated with CloudFront
|
| 41 |
+
- **IAM certificate store** β legacy alternative for certificate storage
|
| 42 |
+
- **CloudFront cache behaviors** β where Viewer Protocol Policy (HTTP/HTTPS handling) is configured per path pattern
|
| 43 |
+
- **Route 53 / DNS** β implied dependency for alternate domain names to resolve to the CloudFront distribution
|
| 44 |
+
- **Path patterns** β cache behaviors are evaluated in order; determines which requests get HTTPS enforcement
|
| 45 |
+
|
| 46 |
+
## Exam-Relevant Points
|
| 47 |
+
- **ACM certificates for CloudFront must be in `us-east-1`** β most frequently tested fact
|
| 48 |
+
- IAM certificate store `--path` must start with `/cloudfront/`
|
| 49 |
+
- `Redirect HTTP to HTTPS` returns **301** but only for `GET`/`HEAD`; non-idempotent methods (`POST`, `PUT`, `DELETE`, `PATCH`, `OPTIONS`) return **403**
|
| 50 |
+
- `HTTPS Only` returns **403** for any HTTP request
|
| 51 |
+
- HTTP-to-HTTPS redirects incur **double charges** (one for the HTTP request, one for the HTTPS request)
|
| 52 |
+
- You can associate up to **100 certificates** via the console dropdown; beyond that, specify the certificate ARN directly
|
| 53 |
+
- Never delete a certificate still associated with any CloudFront distribution
|
| 54 |
+
|
entries/2026/03/08/cloudwatch-alarms.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html
|
| 3 |
+
source: sources/cloudwatch-alarms.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:30
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
Amazon CloudWatch alarms monitor metrics and automatically take actions (notifications, scaling, remediation) when thresholds are breached. CloudWatch supports two alarm types β metric alarms (watching a single metric or math expression) and composite alarms (combining multiple alarm states via rule expressions) β enabling both granular monitoring and noise reduction across AWS resources.
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
- **Metric alarm**: Watches a single CloudWatch metric or math expression; triggers actions (SNS, EC2, Auto Scaling, Investigations, Systems Manager) based on threshold breaches over evaluation periods
|
| 15 |
+
- **Composite alarm**: Evaluates a rule expression over other alarms' states; enters ALARM only when all rule conditions are met; reduces alarm noise
|
| 16 |
+
- **Three alarm states**: `OK`, `ALARM`, `INSUFFICIENT_DATA`
|
| 17 |
+
- Alarms invoke actions **only on state change**, except Auto Scaling actions which continue invoking once per minute while in the new state
|
| 18 |
+
- **No limit** on the number of alarms per account
|
| 19 |
+
- Composite alarms can send SNS notifications and create OpsItems/incidents, but **cannot** perform EC2 or Auto Scaling actions
|
| 20 |
+
- Cross-account metric alarms are supported (with cross-account functionality enabled), but cross-account **composite** alarms are **not** supported
|
| 21 |
+
- Cross-account math expression alarms do not support `ANOMALY_DETECTION_BAND`, `INSIGHT_RULE`, or `SERVICE_QUOTA` functions
|
| 22 |
+
- Alarm history is retained for **30 days**
|
| 23 |
+
- Alarms can be created for custom metrics **before** the metric exists, provided all dimensions, namespace, and metric name are specified
|
| 24 |
+
- CloudWatch does **not** validate alarm actions β nonexistent SNS topics or Auto Scaling actions will silently fail
|
| 25 |
+
- **Evaluation period quotas**: max 7 days (for period β₯ 1 hour), max 1 day (for shorter periods or Lambda data source)
|
| 26 |
+
- Resources may stop sending data (e.g., unattached EBS volumes), causing `INSUFFICIENT_DATA` β configurable via missing data treatment
|
| 27 |
+
- Tag-based alarms use Metrics Insights queries with resource tags for context-aware monitoring
|
| 28 |
+
|
| 29 |
+
## Commands and Syntax
|
| 30 |
+
```bash
|
| 31 |
+
# Create or update an alarm
|
| 32 |
+
aws cloudwatch put-metric-alarm ...
|
| 33 |
+
|
| 34 |
+
# List/describe alarms (optionally filter by state)
|
| 35 |
+
aws cloudwatch describe-alarms
|
| 36 |
+
|
| 37 |
+
# View alarm history
|
| 38 |
+
aws cloudwatch describe-alarm-history
|
| 39 |
+
|
| 40 |
+
# Disable/enable alarm actions
|
| 41 |
+
aws cloudwatch disable-alarm-actions
|
| 42 |
+
aws cloudwatch enable-alarm-actions
|
| 43 |
+
|
| 44 |
+
# Test an alarm by manually setting state (temporary)
|
| 45 |
+
aws cloudwatch set-alarm-state
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
**API equivalents**: `PutMetricAlarm`, `DescribeAlarms`, `DescribeAlarmHistory`, `SetAlarmState`, `DisableAlarmActions`, `EnableAlarmActions`
|
| 49 |
+
|
| 50 |
+
## Relationships
|
| 51 |
+
- **Amazon SNS**: Primary notification target for alarm actions
|
| 52 |
+
- **Amazon EC2**: Alarms can trigger EC2 actions (stop, terminate, reboot, recover)
|
| 53 |
+
- **EC2 Auto Scaling**: Alarms trigger scaling policies; Auto Scaling actions repeat every minute while alarm persists
|
| 54 |
+
- **Systems Manager**: Alarms can create OpsItems or incidents
|
| 55 |
+
- **CloudWatch Investigations**: Alarms can start operational investigations
|
| 56 |
+
- **CloudWatch Dashboards**: Alarms can be added to dashboards for cross-region visibility
|
| 57 |
+
- **CloudWatch Metrics Insights**: Alarms can be built on Metrics Insights queries using resource tags
|
| 58 |
+
- **Missing data handling**: Configurable behavior for metrics that stop reporting (see `alarms-and-missing-data`)
|
| 59 |
+
|
| 60 |
+
## Exam-Relevant Points
|
| 61 |
+
- Composite alarms **cannot** perform EC2 or Auto Scaling actions β only SNS, OpsItems, incidents, and investigations
|
| 62 |
+
- Alarms trigger actions **only on state change** (exception: Auto Scaling continues once/minute)
|
| 63 |
+
- Cross-account composite alarms are **not supported**; cross-account metric alarms are supported
|
| 64 |
+
- Alarm history retention: **30 days**
|
| 65 |
+
- No limit on number of alarms per account
|
| 66 |
+
- Evaluation period max: **7 days** (period β₯ 1 hour) or **1 day** (shorter periods)
|
| 67 |
+
- `INSUFFICIENT_DATA` may indicate an inactive resource, not necessarily a problem
|
| 68 |
+
- CloudWatch does **not validate** that alarm action targets (SNS topics, Auto Scaling groups) actually exist
|
| 69 |
+
- You can create an alarm for a custom metric **before** the metric is published
|
| 70 |
+
- `SetAlarmState` is for **testing only** β the state change is temporary until the next evaluation
|
| 71 |
+
|
entries/2026/03/08/cloudwatch-metrics.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/working_with_metrics.html
|
| 3 |
+
source: sources/cloudwatch-metrics.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:30
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
Amazon CloudWatch Metrics provides performance data for AWS resources and custom applications. Many AWS services offer free basic metrics by default, with options for detailed monitoring. CloudWatch stores metric data for 15 months and offers tools like Metrics Insights (SQL-based querying), metrics explorer, metric streams, anomaly detection, and math expressions for analysis and visualization.
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
- **Metrics** are data points about the performance of your systems
|
| 15 |
+
- Many AWS services provide **free metrics by default** (EC2, EBS, RDS, etc.)
|
| 16 |
+
- **Detailed monitoring** can be enabled for some resources (e.g., EC2) at additional cost
|
| 17 |
+
- You can **publish custom application metrics** to CloudWatch
|
| 18 |
+
- Metric data is **retained for 15 months** β supports both real-time and historical views
|
| 19 |
+
- **CloudWatch Metrics Insights** is a SQL query engine for identifying trends and patterns across all metrics in real time
|
| 20 |
+
- Metrics Insights supports querying up to **two weeks of historical data**
|
| 21 |
+
- CloudWatch loads **all metrics in your account** (AWS and custom) for search, graphing, and alarms
|
| 22 |
+
|
| 23 |
+
## Commands and Syntax
|
| 24 |
+
No CLI commands or API calls are detailed on this page. Key sub-features referenced:
|
| 25 |
+
- **Metrics Insights** β SQL-based queries against metrics
|
| 26 |
+
- **Metrics Explorer** β monitor resources by tags and properties
|
| 27 |
+
- **Metric Streams** β continuous streaming of metrics to destinations
|
| 28 |
+
- **Metric Math** β expressions combining/transforming metrics
|
| 29 |
+
- **Search Expressions** β dynamic graph population based on search
|
| 30 |
+
- **Custom Metrics** β publish your own via `PutMetricData` API (detailed in linked page)
|
| 31 |
+
|
| 32 |
+
## Relationships
|
| 33 |
+
- **EC2, EBS, RDS** β primary services that emit default metrics
|
| 34 |
+
- **CloudWatch Alarms** β consume metrics to trigger actions
|
| 35 |
+
- **CloudWatch Anomaly Detection** β applies ML to detect outliers in metric data
|
| 36 |
+
- **Metric Streams** β export metrics to external destinations (e.g., S3, Datadog via Firehose)
|
| 37 |
+
- **Basic vs. Detailed Monitoring** β determines metric granularity (5-min vs. 1-min intervals for EC2)
|
| 38 |
+
|
| 39 |
+
## Exam-Relevant Points
|
| 40 |
+
- Metric data retention is **15 months**
|
| 41 |
+
- Basic monitoring is **free**; detailed monitoring incurs **additional charges**
|
| 42 |
+
- Basic monitoring for EC2 = **5-minute intervals**; detailed = **1-minute intervals**
|
| 43 |
+
- CloudWatch Metrics Insights queries support up to **2 weeks** of historical data (not the full 15 months)
|
| 44 |
+
- You can publish **custom metrics** β CloudWatch treats them the same as AWS resource metrics
|
| 45 |
+
- Metrics are used by **alarms, dashboards, and automated actions**
|
| 46 |
+
- Know the distinction between **basic and detailed monitoring** and which services support each
|
| 47 |
+
|
entries/2026/03/08/cloudwatch-overview.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html
|
| 3 |
+
source: sources/cloudwatch-overview.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:30
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
|
| 14 |
+
Amazon CloudWatch is AWS's comprehensive monitoring and observability service that tracks resources and applications in real time. It provides system-wide visibility into application performance, operational health, and resource utilization through metrics, alarms, dashboards, logs, traces, and specialized monitoring tools for databases, containers, Lambda, and network infrastructure.
|
| 15 |
+
|
| 16 |
+
## Key Concepts
|
| 17 |
+
|
| 18 |
+
- **Metrics**: Key performance data collected at user-defined intervals; many AWS services report metrics automatically; custom metrics can be published from applications
|
| 19 |
+
- **Alarms**: Continuously monitor metrics against user-defined thresholds; can trigger automated actions (SNS notifications, Auto Scaling, EC2 actions)
|
| 20 |
+
- **Dashboards**: Unified visualizations of metrics and logs; can be shared across accounts and Regions; curated automatic dashboards available for many AWS services
|
| 21 |
+
- **Application Signals**: Automatic APM β detects and monitors latency, error rates, and request rates without manual instrumentation
|
| 22 |
+
- **Synthetics (Canaries)**: Configurable scripts that simulate user behavior to proactively detect endpoint/API availability and performance issues
|
| 23 |
+
- **CloudWatch RUM**: Real User Monitoring β gathers performance data from actual user sessions
|
| 24 |
+
- **Service Level Objectives (SLOs)**: Define reliability targets, set error budgets, and monitor SLO compliance over time
|
| 25 |
+
- **Log Groups and Streams**: Organizational units for ingested logs
|
| 26 |
+
- **Logs Insights**: Interactive query engine supporting SQL and PPL query languages
|
| 27 |
+
- **Metric Filters**: Extract numerical values from logs to generate CloudWatch metrics
|
| 28 |
+
- **Subscription Filters**: Real-time log processing/routing to S3, Firehose, etc.
|
| 29 |
+
- **Log Outlier Detection**: Finds unusual patterns in log events
|
| 30 |
+
- **Cross-account observability**: Central monitoring account can view metrics, logs, and traces from source accounts across an AWS Organization
|
| 31 |
+
- **Solutions Catalog**: Pre-built monitoring configurations for common workloads (JVM, NVIDIA GPU, Kafka, Tomcat, NGINX)
|
| 32 |
+
|
| 33 |
+
## Commands and Syntax
|
| 34 |
+
|
| 35 |
+
No CLI commands on this page (overview page). Key operational concepts:
|
| 36 |
+
|
| 37 |
+
- **CloudWatch Agent**: Install on EC2/on-premises to collect system metrics (CPU, memory, disk, network, GPU), custom app metrics, and logs. Supports Windows and Linux. Integrates with Systems Manager for centralized config management.
|
| 38 |
+
- **Metric filters** extract metrics from logs for alerting/dashboards.
|
| 39 |
+
- **Subscription filters** route logs to S3, Firehose, or other services.
|
| 40 |
+
|
| 41 |
+
## Relationships
|
| 42 |
+
|
| 43 |
+
- **EC2, ECS, EKS, Lambda, RDS** β CloudWatch monitors all of these; specialized Insights tools exist for containers (Container Insights), Lambda (Lambda Insights), and databases (Database Insights)
|
| 44 |
+
- **SNS** β Alarm notifications are typically sent via SNS
|
| 45 |
+
- **Systems Manager** β Used for centralized CloudWatch agent configuration
|
| 46 |
+
- **AWS Organizations** β Enables automatic cross-account observability linking
|
| 47 |
+
- **S3, Firehose** β Log subscription filter destinations
|
| 48 |
+
- **Direct Connect** β Network Synthetic Monitor tests connectivity over Direct Connect links
|
| 49 |
+
- **VPC Flow Logs** β Used by Internet Monitor for traffic analysis
|
| 50 |
+
- **Auto Scaling** β Alarms can trigger scaling actions
|
| 51 |
+
|
| 52 |
+
## Exam-Relevant Points
|
| 53 |
+
|
| 54 |
+
- CloudWatch collects metrics at **user-defined intervals**; many AWS services send **basic metrics for free**
|
| 55 |
+
- **Custom metrics** can be published to CloudWatch from applications
|
| 56 |
+
- **Alarms** can trigger **automated actions**, not just notifications
|
| 57 |
+
- **Dashboards can be shared cross-account and cross-Region**
|
| 58 |
+
- **CloudWatch Agent** is required for detailed OS-level metrics (memory, disk, processes) β these are NOT sent automatically by EC2
|
| 59 |
+
- **Logs Insights** supports **SQL and PPL** query languages in addition to its native syntax
|
| 60 |
+
- **Metric filters** turn log data into CloudWatch metrics
|
| 61 |
+
- **Cross-account observability** uses a central monitoring account with linked source accounts
|
| 62 |
+
- **Synthetics canaries** proactively test endpoints; **RUM** monitors real users β know the difference
|
| 63 |
+
- **Application Signals** requires no manual instrumentation or code changes
|
| 64 |
+
- **Container Insights** works with ECS, EKS, and self-managed Kubernetes on EC2
|
| 65 |
+
- **Internet Monitor** analyzes internet performance using AWS global networking data and VPC flow logs
|
| 66 |
+
- **Network Flow Monitor** uses lightweight agents on instances and produces a **Network Health Indicator (NHI)**
|
| 67 |
+
- **Network Synthetic Monitor** is specifically for **Direct Connect** connectivity testing
|
| 68 |
+
|
entries/2026/03/08/ec2-amis.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html
|
| 3 |
+
source: sources/ec2-amis.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:31
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
|
| 14 |
+
An Amazon Machine Image (AMI) provides the software configuration (OS, application server, applications) needed to launch an EC2 instance. AMIs define the root volume, block device mappings, and launch permissions, and are the foundational building block for every EC2 instance launch.
|
| 15 |
+
|
| 16 |
+
## Key Concepts
|
| 17 |
+
|
| 18 |
+
- **AMI** = template containing OS, application server, applications, and block device mappings required to boot an EC2 instance
|
| 19 |
+
- You **must** specify an AMI when launching an instance, and it **must be compatible** with the chosen instance type
|
| 20 |
+
- An AMI is specific to: **Region**, **Operating system**, **Processor architecture**, **Root volume type**, **Virtualization type**
|
| 21 |
+
- **AMI sources**: AWS-provided, public community AMIs, shared AMIs (from other accounts), or AWS Marketplace purchases
|
| 22 |
+
- **One-to-many**: A single AMI can launch multiple identical instances
|
| 23 |
+
- **Custom AMIs**: You can create an AMI from an existing EC2 instance to capture its configuration
|
| 24 |
+
- **Cross-region copy**: AMIs can be copied to other AWS Regions for multi-region deployments
|
| 25 |
+
- **Sharing**: AMIs can be shared with other AWS accounts or sold via AWS Marketplace
|
| 26 |
+
|
| 27 |
+
## Commands and Syntax
|
| 28 |
+
|
| 29 |
+
No CLI commands are provided on this overview page. Key AMI operations include:
|
| 30 |
+
- **Launch instance from AMI** β requires selecting an AMI ID (e.g., `ami-0abcdef1234567890`)
|
| 31 |
+
- **Create AMI from instance** β captures running instance as a reusable image
|
| 32 |
+
- **Copy AMI cross-region** β replicates an AMI to another AWS Region
|
| 33 |
+
- **Share AMI** β grants launch permissions to other AWS accounts
|
| 34 |
+
|
| 35 |
+
## Relationships
|
| 36 |
+
|
| 37 |
+
- **EC2 Instances** β AMIs are the launch template for all instances
|
| 38 |
+
- **EBS Volumes** β AMI block device mappings define attached storage (EBS-backed vs instance-store-backed root volumes)
|
| 39 |
+
- **AWS Regions** β AMIs are region-scoped; must be copied to use in another region
|
| 40 |
+
- **AWS Marketplace** β commercial AMIs can be purchased/sold
|
| 41 |
+
- **IAM** β launch permissions control who can use an AMI
|
| 42 |
+
- **Boot modes** β AMIs specify UEFI or Legacy BIOS boot
|
| 43 |
+
- **Encryption** β AMI snapshots can be encrypted via EBS encryption
|
| 44 |
+
|
| 45 |
+
## Exam-Relevant Points
|
| 46 |
+
|
| 47 |
+
- AMIs are **region-specific** β you cannot launch an instance in us-west-2 using an AMI that exists only in us-east-1 without copying it first
|
| 48 |
+
- AMIs are scoped by **five attributes**: Region, OS, architecture, root volume type, virtualization type
|
| 49 |
+
- The AMI **must be compatible** with the selected instance type (architecture match, virtualization type match)
|
| 50 |
+
- You can create a custom AMI from a running instance to replicate configurations
|
| 51 |
+
- AMIs can be **shared** across accounts and **copied** across regions
|
| 52 |
+
- **Block device mapping** in the AMI determines what storage is attached at launch
|
| 53 |
+
- Know the difference between **EBS-backed** and **instance-store-backed** AMIs (relates to root volume type)
|
| 54 |
+
|
entries/2026/03/08/ec2-ebs.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html
|
| 3 |
+
source: sources/ec2-ebs.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:31
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
|
| 14 |
+
Amazon Elastic Block Store (Amazon EBS) is a scalable, high-performance block storage service designed for use with Amazon EC2 instances. It provides persistent storage volumes that behave like raw, unformatted block devices, along with point-in-time snapshots for backup, recovery, and migration.
|
| 15 |
+
|
| 16 |
+
## Key Concepts
|
| 17 |
+
|
| 18 |
+
- **EBS Volumes** β Storage volumes attached to EC2 instances; used like local hard drives for files, applications, etc.
|
| 19 |
+
- **EBS Snapshots** β Point-in-time backups of EBS volumes that persist independently from the volume; can restore new volumes from snapshots at any time.
|
| 20 |
+
- **Volume types** fall into two categories:
|
| 21 |
+
- **SSD-backed** β optimized for transactional workloads (IOPS)
|
| 22 |
+
- **HDD-backed** β optimized for throughput-intensive workloads
|
| 23 |
+
- **Elastic Volumes** β Dynamically increase capacity or tune performance with no downtime.
|
| 24 |
+
- **EBS Encryption** β Encrypts volumes and snapshots; encryption occurs on EC2 host servers, securing both data-at-rest and data-in-transit between instance and volume.
|
| 25 |
+
- **Durability**:
|
| 26 |
+
- **io2 Block Express**: 99.999% durability (0.001% AFR)
|
| 27 |
+
- **Other volume types**: 99.8%β99.9% durability (0.1%β0.2% AFR)
|
| 28 |
+
- Volume data is **automatically replicated across multiple servers within a single AZ**.
|
| 29 |
+
- **EBS Snapshots Archive** β Low-cost tier for snapshots retained 90+ days (regulatory/compliance use).
|
| 30 |
+
- **Pay only for what you provision**.
|
| 31 |
+
|
| 32 |
+
## Commands and Syntax
|
| 33 |
+
|
| 34 |
+
EBS is managed through:
|
| 35 |
+
- **AWS Management Console** (EC2 console)
|
| 36 |
+
- **AWS CLI** (`aws ec2` commands)
|
| 37 |
+
- **AWS Tools for PowerShell**
|
| 38 |
+
- **CloudFormation** (JSON/YAML templates)
|
| 39 |
+
- **EC2 Query API** (HTTP GET/POST with `Action` parameter)
|
| 40 |
+
- **AWS SDKs** (language-specific APIs)
|
| 41 |
+
|
| 42 |
+
## Relationships
|
| 43 |
+
|
| 44 |
+
| Related Service | Relationship |
|
| 45 |
+
|---|---|
|
| 46 |
+
| **Amazon EC2** | EBS volumes attach to EC2 instances as block devices |
|
| 47 |
+
| **AWS KMS** | Provides cryptographic keys for EBS encryption |
|
| 48 |
+
| **Amazon Data Lifecycle Manager** | Automates creation, retention, and deletion of EBS snapshots and EBS-backed AMIs |
|
| 49 |
+
| **EBS Direct APIs** | Create snapshots, read/write snapshot data, diff two snapshots |
|
| 50 |
+
| **Recycle Bin** | Recover accidentally deleted snapshots and EBS-backed AMIs |
|
| 51 |
+
| **CloudFormation** | Infrastructure-as-code provisioning of EBS resources |
|
| 52 |
+
|
| 53 |
+
## Exam-Relevant Points
|
| 54 |
+
|
| 55 |
+
- EBS volumes are **AZ-scoped** β data is replicated within a single AZ, not across AZs.
|
| 56 |
+
- Snapshots can migrate data across **accounts, Regions, and AZs**.
|
| 57 |
+
- **io2 Block Express** has significantly higher durability (99.999%) than other volume types (99.8%β99.9%).
|
| 58 |
+
- Encryption covers **data-at-rest, data-in-transit** (instance β volume), and **subsequent snapshots**.
|
| 59 |
+
- Elastic Volumes allow **live resizing and performance tuning** without downtime.
|
| 60 |
+
- Snapshots Archive requires a **minimum 90-day retention**.
|
| 61 |
+
- EBS is **not a standalone service in the console** β it is accessed through the EC2 console.
|
| 62 |
+
- Snapshots persist **independently** from the source volume (volume can be deleted, snapshot remains).
|
| 63 |
+
|
entries/2026/03/08/ec2-elastic-ips.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html
|
| 3 |
+
source: sources/ec2-elastic-ips.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:31
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
Elastic IP (EIP) addresses are static public IPv4 addresses allocated to an AWS account for use with EC2 instances and network interfaces. They enable high availability by allowing rapid remapping of a public IP from a failed instance to a healthy one, and they persist until explicitly released by the account owner.
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
- **Static IPv4 only** β EIPs are static public IPv4 addresses; IPv6 is not supported for EIPs.
|
| 15 |
+
- **Account-scoped** β An EIP belongs to your account until you explicitly release it.
|
| 16 |
+
- **Region-scoped** β An EIP is bound to a specific Region and cannot be moved to another Region.
|
| 17 |
+
- **Network border group** β EIPs can be associated with a network border group, limiting where the CIDR block is advertised. Defaults to all AZs in the Region.
|
| 18 |
+
- **Association behavior** β Associating an EIP with an instance that already has a public IPv4 address causes that original public IP to be released back to Amazon's pool (it cannot be recovered or converted to an EIP).
|
| 19 |
+
- **Dual association** β Associating an EIP with an instance also associates it with the primary ENI, and vice versa.
|
| 20 |
+
- **DNS resolution** β Public DNS resolves to the EIP externally but to the private IPv4 address internally within the VPC.
|
| 21 |
+
- **Disassociated EIPs remain allocated** β A disassociated EIP stays in your account (and incurs charges) until released.
|
| 22 |
+
- **IP source** β EIPs come from Amazon's pool or from a BYOIP (Bring Your Own IP) pool.
|
| 23 |
+
|
| 24 |
+
## Commands and Syntax
|
| 25 |
+
No CLI commands were included in this page, but the key lifecycle operations are:
|
| 26 |
+
1. **Allocate** β Reserve an EIP to your account.
|
| 27 |
+
2. **Associate** β Bind the EIP to an instance or network interface.
|
| 28 |
+
3. **Disassociate** β Unbind the EIP from a resource (EIP remains allocated).
|
| 29 |
+
4. **Release** β Return the EIP to the pool (stops billing for that address).
|
| 30 |
+
5. **Transfer** β Move an EIP between AWS accounts.
|
| 31 |
+
|
| 32 |
+
## Relationships
|
| 33 |
+
- **EC2 Instances** β EIPs attach to instances or their ENIs to provide stable public addressing.
|
| 34 |
+
- **VPC / ENI** β EIPs associate with network interfaces; behavior differs slightly between instance-level and ENI-level association.
|
| 35 |
+
- **Public IPv4 addressing** β EIPs replace auto-assigned public IPs when associated; the original public IP is permanently lost.
|
| 36 |
+
- **Route 53 / DNS** β EIPs are commonly referenced in DNS records for domain-to-instance mapping.
|
| 37 |
+
- **BYOIP** β Custom IP pools brought to AWS can supply EIPs and do not count against the default quota.
|
| 38 |
+
- **Service Quotas** β EIP limits are managed through the Service Quotas console.
|
| 39 |
+
|
| 40 |
+
## Exam-Relevant Points
|
| 41 |
+
- Default quota is **5 EIPs per Region per account** (increase via Service Quotas console).
|
| 42 |
+
- **All public IPv4 addresses are now charged**, including EIPs whether associated or not.
|
| 43 |
+
- Associating an EIP with an instance that has an existing public IP **releases that public IP permanently**.
|
| 44 |
+
- EIPs are **Region-specific** and **cannot be moved** across Regions.
|
| 45 |
+
- BYOIP-sourced EIPs **do not count** toward the default EIP quota.
|
| 46 |
+
- AWS recommends using EIPs primarily for **instance failover remapping**, not general addressing β use DNS hostnames for inter-node communication.
|
| 47 |
+
- EIPs are **IPv4 only**; there is no Elastic IP concept for IPv6.
|
| 48 |
+
|
entries/2026/03/08/ec2-instance-types.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
|
| 3 |
+
source: sources/ec2-instance-types.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:32
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
Amazon EC2 instance types define the virtual hardware (CPU, memory, storage, networking) of launched instances. Each type belongs to an instance family optimized for specific workloads, and instances can be resized after launch. EC2 shares some host resources (network, disk) among instances while dedicating others (CPU, memory, instance storage), with underutilized shared resources available for burst consumption.
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
- **Instance type** determines the host computer hardware; each offers different compute, memory, storage, and networking capabilities
|
| 15 |
+
- **Instance families** group types by capability: General Purpose, Compute Optimized, Memory Optimized, Storage Optimized, Accelerated Computing, High-Performance Computing
|
| 16 |
+
- **Instance naming convention**: encodes family, generation, processor family, capabilities, and size (e.g., `m7g.xlarge`)
|
| 17 |
+
- **Shared vs. dedicated resources**: CPU/memory/instance storage are dedicated; network and disk subsystem are shared with equal-share fairness and burst capability
|
| 18 |
+
- **Higher I/O instance types** get larger allocations of shared resources, reducing I/O variance
|
| 19 |
+
- **Two hypervisors**: **Nitro** (current generation) and **Xen** (previous generation)
|
| 20 |
+
- **Two AMI virtualization types**: **HVM** (recommended, required for enhanced networking) and **PV** (legacy, limited support)
|
| 21 |
+
- **Processor families**: Intel, AMD EPYC, AWS Graviton (ARM), AWS Trainium (ML training), AWS Inferentia (ML inference)
|
| 22 |
+
- **AWS Graviton** β ARM-based processors designed for best price-performance
|
| 23 |
+
- **AWS Trainium** β purpose-built for high-performance deep learning training (PyTorch, TensorFlow)
|
| 24 |
+
- **AWS Inferentia** β optimized for low-latency ML inference; use with Neuron SDK
|
| 25 |
+
- You pay by the **instance second**, making it inexpensive to benchmark multiple types
|
| 26 |
+
|
| 27 |
+
## Commands and Syntax
|
| 28 |
+
- **Find instance types programmatically**: use the EC2 instance type discovery APIs (see `instance-discovery.html`)
|
| 29 |
+
- **Change instance type after launch**: stop instance β change type β start (see `ec2-instance-resize.html`)
|
| 30 |
+
- **Launch Inferentia instances**: via SageMaker AI, Deep Learning AMI, custom AMI + Neuron SDK, ECS with optimized AMI, or EKS with Inf1/Inf2 nodes
|
| 31 |
+
|
| 32 |
+
## Relationships
|
| 33 |
+
- **AMIs**: virtualization type (HVM/PV) of the AMI must match instance type support; HVM required for enhanced networking
|
| 34 |
+
- **EBS optimization**: related topic β certain instance types are EBS-optimized by default (`ebs-optimized.html`)
|
| 35 |
+
- **Burstable instances** (T3, T3a, T4g): subset with CPU credit model (`burstable-performance-instances.html`)
|
| 36 |
+
- **CPU options**: threads per core and core count can be customized (`instance-optimize-cpu.html`)
|
| 37 |
+
- **Nitro System**: underpins current-gen instances; enables enhanced networking, EBS optimization, and security features like AMD SEV-SNP
|
| 38 |
+
- **SageMaker AI / ECS / EKS**: deployment paths for ML-focused instance types (Inf1, Inf2, Trn1)
|
| 39 |
+
- **Compute Optimizer**: AWS service that recommends right-sizing instance types based on utilization
|
| 40 |
+
|
| 41 |
+
## Exam-Relevant Points
|
| 42 |
+
- **Nitro vs. Xen**: know which generations use which hypervisor β all current-gen (5th gen+) use Nitro; M1-M4, C1-C4, T1-T2, R3-R4 etc. use Xen
|
| 43 |
+
- **HVM is always preferred** over PV; HVM is required for enhanced networking and current-gen instances
|
| 44 |
+
- **Instance type can be changed** after launch (requires stop/start for most types)
|
| 45 |
+
- **Graviton instances** (denoted by `g` in type name, e.g., M7g, C7g) offer best price-performance
|
| 46 |
+
- **T-series** are burstable; all others provide fixed/dedicated CPU performance
|
| 47 |
+
- **U-series** (e.g., U-6tb1, U7i-12tb) are high-memory instances for large in-memory workloads
|
| 48 |
+
- **Trainium** (Trn1, Trn2) = training; **Inferentia** (Inf1, Inf2) = inference β don't confuse them
|
| 49 |
+
- **P-series** (P4d, P5, P6) = GPU instances for ML training/HPC; **G-series** = GPU for graphics/inference
|
| 50 |
+
- **Hpc-series** = dedicated high-performance computing family
|
| 51 |
+
- Instance naming: family + generation + processor suffix + capabilities + size (e.g., `c7gn.2xlarge` = Compute optimized, 7th gen, Graviton, network-optimized, 2xlarge)
|
| 52 |
+
- **Pay per instance-second** β benchmark multiple types cheaply before committing
|
| 53 |
+
|
entries/2026/03/08/ec2-key-pairs.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html
|
| 3 |
+
source: sources/ec2-key-pairs.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:32
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
This page covers Amazon EC2 key pairs β the public/private key mechanism used to authenticate when connecting to EC2 instances. It explains how key pairs work for both Linux (SSH) and Windows (password decryption) instances, where keys are stored, and what happens if a private key is lost.
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
- A **key pair** consists of a **public key** (stored by EC2 on the instance) and a **private key** (stored by the user)
|
| 15 |
+
- For **Linux instances**: the private key enables SSH access; the public key is placed in `~/.ssh/authorized_keys` on first boot
|
| 16 |
+
- For **Windows instances**: the private key is used to **decrypt the administrator password**, which is then used to connect
|
| 17 |
+
- **Amazon EC2 does not retain a copy of your private key** β if lost, there is no way to recover it from AWS
|
| 18 |
+
- A key pair can be specified at **launch time**; you can use the same key pair across instances or different ones
|
| 19 |
+
- **AWS Systems Manager Session Manager** is an alternative to key pairs for connecting to instances (browser-based shell or CLI)
|
| 20 |
+
|
| 21 |
+
## Commands and Syntax
|
| 22 |
+
- Key pair is specified during instance launch via the `--key-name` parameter (or console equivalent)
|
| 23 |
+
- Public key location on Linux: `~/.ssh/authorized_keys`
|
| 24 |
+
- Related operations:
|
| 25 |
+
- Create a key pair (`create-key-pairs`)
|
| 26 |
+
- Describe key pairs (`describe-keys`)
|
| 27 |
+
- Delete a key pair (`delete-key-pair`)
|
| 28 |
+
- Add/replace a public key on a Linux instance (`replacing-key-pair`)
|
| 29 |
+
- Verify key pair fingerprint (`verify-keys`)
|
| 30 |
+
|
| 31 |
+
## Relationships
|
| 32 |
+
- **EC2 Instance Launch** β key pair is one of the launch parameters
|
| 33 |
+
- **SSH / Instance Connect** β key pairs are the authentication mechanism for SSH connections
|
| 34 |
+
- **AWS Systems Manager Session Manager** β alternative connection method that bypasses key pairs entirely
|
| 35 |
+
- **Security best practices** β private key management is critical; anyone with the key can access the instance
|
| 36 |
+
- **Troubleshooting** β lost private keys connect to instance recovery procedures
|
| 37 |
+
|
| 38 |
+
## Exam-Relevant Points
|
| 39 |
+
- EC2 stores the **public** key; the user is responsible for the **private** key β EC2 has **no way to recover** a lost private key
|
| 40 |
+
- On Linux, the public key goes into `~/.ssh/authorized_keys` at **first boot**
|
| 41 |
+
- On Windows, the private key is used to **decrypt the admin password**, not for direct login
|
| 42 |
+
- **Systems Manager Session Manager** is the recommended alternative when key pair management is undesirable (no need to manage SSH keys or open port 22)
|
| 43 |
+
- You can **add or replace** a public key on a running Linux instance without needing the original key pair
|
| 44 |
+
- Key pair fingerprint verification is available to confirm key authenticity
|
| 45 |
+
|
entries/2026/03/08/ec2-monitoring.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring_ec2.html
|
| 3 |
+
source: sources/ec2-monitoring.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:32
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
This page covers the monitoring tools and capabilities available for Amazon EC2 instances. It describes the built-in status checks, CloudWatch integration, event-driven automation, API logging, and agent-based metric collection that together form a comprehensive monitoring strategy for EC2 resources.
|
| 14 |
+
|
| 15 |
+
## Key Concepts
|
| 16 |
+
- **System status checks** β Monitor the underlying AWS infrastructure (physical host, network, power). Problems require AWS involvement or instance stop/start/terminate to resolve.
|
| 17 |
+
- **Instance status checks** β Monitor the instance's software and network configuration. Problems require customer action (reboot, OS-level fixes).
|
| 18 |
+
- **CloudWatch alarms** β Watch a single metric over a specified period; trigger actions (SNS notification or Auto Scaling policy) only on **sustained state changes**, not momentary spikes.
|
| 19 |
+
- **EventBridge events** β Deliver AWS service events in **near real time**; enable automated responses via rules.
|
| 20 |
+
- **CloudTrail logs** β Capture all EC2 API calls (who, what, when, source IP) and store them in S3.
|
| 21 |
+
- **CloudWatch agent** β Collect **system-level metrics and logs** from both EC2 instances and on-premises servers (host and guest level).
|
| 22 |
+
|
| 23 |
+
## Commands and Syntax
|
| 24 |
+
No CLI commands are shown on this page. Key operational actions referenced:
|
| 25 |
+
- Stop and restart or terminate and replace an instance to recover from system status check failures.
|
| 26 |
+
- Reboot an instance to recover from instance status check failures.
|
| 27 |
+
- Configure CloudWatch alarms with a threshold, time period, and number of evaluation periods.
|
| 28 |
+
|
| 29 |
+
## Relationships
|
| 30 |
+
- **CloudWatch** β Central to alarms, metrics, and the CloudWatch agent; tightly integrated with EC2.
|
| 31 |
+
- **Amazon SNS** β Target for CloudWatch alarm notifications.
|
| 32 |
+
- **EC2 Auto Scaling** β Can be triggered by CloudWatch alarm actions.
|
| 33 |
+
- **EventBridge** β Receives EC2 system events for rule-based automation.
|
| 34 |
+
- **CloudTrail** β Logs EC2 API activity to S3 for auditing.
|
| 35 |
+
- **On-premises servers** β CloudWatch agent extends monitoring beyond EC2.
|
| 36 |
+
|
| 37 |
+
## Exam-Relevant Points
|
| 38 |
+
- **System vs. instance status checks**: System = AWS-side issues (hardware, power, network); Instance = customer-side issues (OS, memory, filesystem, kernel). Know which party is responsible for remediation.
|
| 39 |
+
- CloudWatch alarms act only on **sustained state changes** β a single breach of threshold does not trigger an action; the state must persist for the configured number of periods.
|
| 40 |
+
- CloudTrail captures **API calls**, not performance metrics β that's CloudWatch's role.
|
| 41 |
+
- The CloudWatch agent is required for **OS-level metrics** (memory, disk) and log collection; default EC2 monitoring provides only hypervisor-level metrics (CPU, network, disk I/O).
|
| 42 |
+
- EventBridge delivers events in **near real time**, making it suitable for automated remediation workflows.
|
| 43 |
+
|
entries/2026/03/08/ec2-overview.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html
|
| 3 |
+
source: sources/ec2-overview.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:33
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
|
| 14 |
+
Amazon Elastic Compute Cloud (Amazon EC2) provides on-demand, scalable virtual servers (instances) in the AWS Cloud. It allows users to launch configurable compute capacity, scale up or down based on demand, and pay only for what they use. EC2 is a foundational AWS service that integrates with numerous other services for monitoring, scaling, load balancing, and management.
|
| 15 |
+
|
| 16 |
+
## Key Concepts
|
| 17 |
+
|
| 18 |
+
- **EC2 Instance** β A virtual server in the AWS Cloud; the instance type determines the hardware (CPU, memory, network, storage, GPU).
|
| 19 |
+
- **Amazon Machine Image (AMI)** β A preconfigured template containing the OS and software needed to launch an instance.
|
| 20 |
+
- **Instance Types** β Various configurations offering different balances of compute, memory, storage, and networking resources.
|
| 21 |
+
- **Amazon EBS Volumes** β Persistent block storage that survives instance stop/terminate (unlike instance store).
|
| 22 |
+
- **Instance Store Volumes** β Ephemeral storage that is **deleted** when you stop, hibernate, or terminate the instance.
|
| 23 |
+
- **Key Pairs** β Asymmetric key authentication; AWS stores the public key, user stores the private key.
|
| 24 |
+
- **Security Groups** β Virtual firewalls controlling inbound/outbound traffic by protocol, port, and IP range.
|
| 25 |
+
- **PCI DSS Compliance** β EC2 is validated as PCI DSS Level 1 compliant.
|
| 26 |
+
|
| 27 |
+
## Commands and Syntax
|
| 28 |
+
|
| 29 |
+
No specific CLI commands are listed on this page, but access methods include:
|
| 30 |
+
|
| 31 |
+
- **EC2 Console** β Web UI via AWS Management Console β EC2
|
| 32 |
+
- **AWS CLI** β `aws ec2 <command>` (reference: `aws cli latest/reference/ec2/`)
|
| 33 |
+
- **CloudFormation** β JSON/YAML templates to provision EC2 resources declaratively
|
| 34 |
+
- **AWS SDKs** β Language-specific APIs (Python/Boto3, Java, .NET, etc.)
|
| 35 |
+
- **AWS Tools for PowerShell** β PowerShell cmdlets built on .NET SDK
|
| 36 |
+
- **Query API** β Direct HTTP GET/POST with `Action` parameter
|
| 37 |
+
|
| 38 |
+
## Relationships
|
| 39 |
+
|
| 40 |
+
- **EC2 Auto Scaling** β Maintains correct instance count for workload demand
|
| 41 |
+
- **Elastic Load Balancing (ELB)** β Distributes traffic across multiple EC2 instances
|
| 42 |
+
- **Amazon CloudWatch** β Monitors instances and EBS volumes
|
| 43 |
+
- **AWS Backup** β Automates EC2 and EBS backup
|
| 44 |
+
- **Amazon GuardDuty** β Threat detection for EC2 instances
|
| 45 |
+
- **EC2 Image Builder** β Automates AMI creation and management
|
| 46 |
+
- **AWS Systems Manager** β Operations at scale on EC2 fleets
|
| 47 |
+
- **Alternative compute**: Amazon Lightsail (simpler/cheaper), Amazon ECS and Amazon EKS (container workloads)
|
| 48 |
+
|
| 49 |
+
## Exam-Relevant Points
|
| 50 |
+
|
| 51 |
+
- **Instance store data is lost** on stop, hibernate, or terminate β EBS persists.
|
| 52 |
+
- **On-Demand billing** is per-second with a 60-second minimum.
|
| 53 |
+
- **Savings Plans** commit to $/hr usage for 1 or 3 years; **Reserved Instances** commit to a specific instance configuration for 1 or 3 years β know the difference.
|
| 54 |
+
- **Spot Instances** use unused capacity at significant discount but can be interrupted.
|
| 55 |
+
- **Dedicated Hosts** provide a physical server for compliance and BYOL (bring your own license) scenarios.
|
| 56 |
+
- **On-Demand Capacity Reservations** reserve capacity in a specific AZ without term commitment.
|
| 57 |
+
- **Security Groups** act as a virtual firewall at the instance level (stateful).
|
| 58 |
+
- **Key Pairs** use public/private key cryptography β AWS never stores your private key.
|
| 59 |
+
- **AWS Trusted Advisor** optimizes cost, security, and performance.
|
| 60 |
+
- **AWS Cost Explorer** shows up to 13 months of historical data and forecasts up to 12 months ahead.
|
| 61 |
+
|
entries/2026/03/08/ec2-reserved-instances.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-reserved-instances.html
|
| 3 |
+
source: sources/ec2-reserved-instances.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:33
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
Amazon EC2 Reserved Instances (RIs) provide significant cost savings over On-Demand pricing by committing to a specific instance configuration for a one- or three-year term. RIs are not physical instances but billing discounts applied to matching On-Demand Instances. AWS now recommends Savings Plans over Reserved Instances for greater flexibility.
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
- **RIs are billing constructs**, not physical instances β they apply a discount to matching On-Demand usage
|
| 15 |
+
- **AWS recommends Savings Plans** over RIs for easier, more flexible savings (up to 72% off On-Demand)
|
| 16 |
+
- Savings Plans commit to a USD/hour spend; RIs commit to a specific instance configuration
|
| 17 |
+
- RI discounts apply **immediately** when a running instance matches the RI attributes
|
| 18 |
+
- RIs **do not auto-renew** β when they expire, you revert to On-Demand rates
|
| 19 |
+
- RIs **cannot be cancelled** after purchase, but can be modified, exchanged (Convertible only), or sold on the RI Marketplace
|
| 20 |
+
|
| 21 |
+
## Four Pricing Variables
|
| 22 |
+
|
| 23 |
+
| Variable | Options |
|
| 24 |
+
|----------|---------|
|
| 25 |
+
| **Instance attributes** | Instance type (family + size), Region, Tenancy (shared/dedicated), Platform (Linux/Windows) |
|
| 26 |
+
| **Term commitment** | 1-year (31,536,000 sec) or 3-year (94,608,000 sec) β 3-year = bigger discount |
|
| 27 |
+
| **Payment option** | All Upfront, Partial Upfront, No Upfront β more upfront = more savings |
|
| 28 |
+
| **Offering class** | Standard (biggest discount, modify only) or Convertible (smaller discount, can exchange + modify) |
|
| 29 |
+
|
| 30 |
+
## Commands and Syntax
|
| 31 |
+
No CLI commands on this page. Key actions referenced:
|
| 32 |
+
- **Modify** an RI β change attributes within constraints (Standard and Convertible)
|
| 33 |
+
- **Exchange** a Convertible RI β swap for a different Convertible RI with different attributes
|
| 34 |
+
- **Sell** an RI β list on the Reserved Instance Marketplace
|
| 35 |
+
|
| 36 |
+
## Relationships
|
| 37 |
+
- **Savings Plans** β newer, more flexible alternative; commit to $/hr instead of instance config
|
| 38 |
+
- **On-Demand Instances** β the baseline pricing RIs discount against
|
| 39 |
+
- **Dedicated Instances** β tenancy option that affects RI pricing
|
| 40 |
+
- **RI Marketplace** β third-party resale of RIs at potentially lower prices / shorter terms
|
| 41 |
+
- **Billing & Cost Management** β RI discount application rules determine actual savings
|
| 42 |
+
|
| 43 |
+
## Exam-Relevant Points
|
| 44 |
+
- RIs are **billing discounts**, not capacity reservations (unless zonal scope β covered in related topic)
|
| 45 |
+
- **Cannot cancel** an RI purchase β only modify, exchange (Convertible), or sell
|
| 46 |
+
- **Three payment options**: All Upfront (most savings) > Partial Upfront > No Upfront (least savings)
|
| 47 |
+
- **No Upfront** requires a successful billing history to purchase
|
| 48 |
+
- **Standard vs Convertible**: Standard = higher discount but no exchange; Convertible = lower discount but can exchange for different attributes
|
| 49 |
+
- **3-year term** offers a bigger discount than 1-year
|
| 50 |
+
- AWS officially recommends **Savings Plans over RIs** for new commitments
|
| 51 |
+
- RI must match **instance type, Region, tenancy, and platform** to apply the discount
|
| 52 |
+
|
entries/2026/03/08/ec2-security-groups.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-security-groups.html
|
| 3 |
+
source: sources/ec2-security-groups.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:33
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
Amazon EC2 security groups act as virtual firewalls that control inbound and outbound traffic for EC2 instances within a VPC. They are a core AWS-provided security mechanism, are free to use, and operate at the instance level with stateful traffic filtering.
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
- A security group is a **virtual firewall** controlling inbound and outbound traffic for EC2 instances
|
| 15 |
+
- You can assign **multiple security groups to one instance**, and **multiple instances to one security group** (many-to-many)
|
| 16 |
+
- If no security group is specified at launch, the **default security group for the VPC** is used
|
| 17 |
+
- Security group **rules can be modified at any time**; changes are **automatically applied** to all associated instances
|
| 18 |
+
- When evaluating traffic, EC2 evaluates **all rules from all associated security groups** (union of rules)
|
| 19 |
+
- Security groups are **stateful**: response traffic to an allowed request is automatically permitted regardless of rules in the opposite direction
|
| 20 |
+
- **No additional charge** for using security groups
|
| 21 |
+
- Security groups are part of the **shared responsibility model** β AWS provides the tool, the customer must configure it
|
| 22 |
+
- You can run your own firewall on instances **in addition to** security groups if needed
|
| 23 |
+
- Security groups can be **changed after instance launch**
|
| 24 |
+
|
| 25 |
+
## Commands and Syntax
|
| 26 |
+
No CLI commands provided in this page. Related procedures are linked:
|
| 27 |
+
- Create a security group: `creating-security-group.html`
|
| 28 |
+
- Change security groups for an instance: `changing-security-group.html`
|
| 29 |
+
- Delete a security group: `deleting-security-group.html`
|
| 30 |
+
|
| 31 |
+
## Relationships
|
| 32 |
+
- **VPC** β security groups exist within a VPC; each VPC has a default security group
|
| 33 |
+
- **Subnets / Internet Gateways** β security groups work alongside VPC networking components to filter traffic before it reaches instances
|
| 34 |
+
- **Security group rules** β defined separately (in VPC User Guide); control the actual allow specifications (protocol, port, source/destination)
|
| 35 |
+
- **Connection tracking** β the mechanism that implements stateful behavior
|
| 36 |
+
- **NACLs** β not mentioned here but are the complementary stateless firewall at the subnet level
|
| 37 |
+
- **Shared responsibility model** β security groups are one tool within the broader EC2 security framework
|
| 38 |
+
|
| 39 |
+
## Exam-Relevant Points
|
| 40 |
+
- Security groups are **stateful** (contrast with NACLs which are stateless) β this is a very commonly tested distinction
|
| 41 |
+
- Security groups **only allow rules** (no deny rules); traffic not explicitly allowed is denied by default
|
| 42 |
+
- Rules changes take effect **immediately and automatically** across all associated instances
|
| 43 |
+
- **Default behavior**: no security group specified β default VPC security group is used
|
| 44 |
+
- **No additional cost** for security groups
|
| 45 |
+
- Many-to-many relationship between security groups and instances
|
| 46 |
+
- All rules from all associated security groups are **evaluated together** (logical OR / union)
|
| 47 |
+
|
entries/2026/03/08/ec2-spot-instances.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html
|
| 3 |
+
source: sources/ec2-spot-instances.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:34
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
AWS Spot Instances allow you to use spare EC2 capacity at significantly reduced prices compared to On-Demand pricing. The Spot price fluctuates gradually based on long-term supply and demand. Spot Instances can be interrupted by AWS when capacity is needed, making them suitable for fault-tolerant, flexible workloads such as batch jobs, data analysis, and background processing.
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
- **Spot capacity pool** β A set of unused EC2 instances sharing the same instance type and Availability Zone (e.g., all unused `m5.large` in `us-east-1a`)
|
| 15 |
+
- **Spot price** β The current per-hour price, set by Amazon EC2 and adjusted gradually based on long-term supply/demand
|
| 16 |
+
- **Spot Instance request** β Can be **one-time** or **persistent**; persistent requests are automatically resubmitted after interruption
|
| 17 |
+
- **EC2 instance rebalance recommendation** β A proactive signal indicating elevated risk of interruption, giving time to rebalance workloads *before* the 2-minute interruption notice
|
| 18 |
+
- **Spot Instance interruption** β AWS terminates, stops, or hibernates the instance with a **two-minute warning** when it needs capacity back
|
| 19 |
+
- Spot Instances are **not covered by Savings Plans**; Spot spend does not count toward Compute Savings Plans commitments
|
| 20 |
+
- Billing for interrupted instances depends on the OS and who initiated the interruption
|
| 21 |
+
|
| 22 |
+
## Commands and Syntax
|
| 23 |
+
- **View Spot price history (CLI):**
|
| 24 |
+
```
|
| 25 |
+
aws ec2 describe-spot-price-history
|
| 26 |
+
```
|
| 27 |
+
Returns up to 3 months of history. Prices update every 5 minutes on the console.
|
| 28 |
+
|
| 29 |
+
- **View savings:** Available via EC2 console for a single Spot Fleet or all Spot Instances (last hour or last 3 days), showing average cost per vCPU-hour and per GiB-hour.
|
| 30 |
+
|
| 31 |
+
## Relationships
|
| 32 |
+
- **On-Demand Instances** β Spot's counterpart with static pricing and no involuntary interruption
|
| 33 |
+
- **Savings Plans** β Do *not* stack with Spot pricing and Spot spend does not apply to Savings Plans commitments
|
| 34 |
+
- **EC2 Auto Scaling** β Can terminate Spot Instances during scale-in events
|
| 35 |
+
- **Spot Fleet** β A mechanism to manage collections of Spot (and optionally On-Demand) instances
|
| 36 |
+
- **EBS-backed instances** β Spot Instances backed by EBS can be stopped and started (not just terminated)
|
| 37 |
+
- **Availability Zones** β AZ code-to-physical-zone mapping is per-account, so prices for the same AZ code may differ across accounts
|
| 38 |
+
|
| 39 |
+
## Exam-Relevant Points
|
| 40 |
+
- Spot Instances provide up to 90% savings over On-Demand but can be interrupted with a **2-minute notice**
|
| 41 |
+
- A **rebalance recommendation** signal is separate from and arrives *before* the 2-minute interruption notice
|
| 42 |
+
- Persistent vs. one-time requests: persistent requests are automatically resubmitted after interruption
|
| 43 |
+
- Spot Instances are **not covered by Savings Plans** β this is a common exam distractor
|
| 44 |
+
- AZ-to-physical-zone mapping is **account-specific** β the same AZ code can represent different physical zones in different accounts
|
| 45 |
+
- Spot price history is available for the **past 3 months**; current prices update every **5 minutes**
|
| 46 |
+
- Suitable workloads: batch processing, data analysis, CI/CD, stateless web servers, HPC β anything fault-tolerant
|
| 47 |
+
- EBS-backed Spot Instances can be **stopped and restarted**, not just terminated
|
| 48 |
+
|
entries/2026/03/08/eks-feature-parity-cross-reference.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EKS Feature Parity Cross-Reference
|
| 2 |
+
|
| 3 |
+
**Date:** 2026-03-08
|
| 4 |
+
**Time:** 18:38
|
| 5 |
+
|
| 6 |
+
## Summary
|
| 7 |
+
|
| 8 |
+
Cross-reference of AWS EKS features against self-hosted Kubernetes alternatives (kubeadm, k3s, RKE2, OpenShift). Maps AWS expert beliefs to replacement requirements.
|
| 9 |
+
|
| 10 |
+
## Well Covered by Self-Hosted Alternatives
|
| 11 |
+
|
| 12 |
+
| EKS Feature | AWS Expert Beliefs | Self-Hosted Equivalent |
|
| 13 |
+
|---|---|---|
|
| 14 |
+
| Kubernetes API | `eks-certified-kubernetes-conformant` | All alternatives are CNCF-certified Kubernetes distributions. Full API compatibility. |
|
| 15 |
+
| RBAC | `eks-access-control-rbac-and-iam` | Native Kubernetes RBAC is available in all distributions. |
|
| 16 |
+
| Container networking | `eks-vpc-cni-plugin-pod-networking` | Calico, Flannel, Cilium, Weave β multiple CNI plugins available. |
|
| 17 |
+
| Storage | `eks-auto-mode-ebs-storage-classes` | CSI drivers for any storage backend (Ceph, NFS, local, cloud). Longhorn for replicated block storage. |
|
| 18 |
+
| Version management | `eks-standard-and-extended-version-support` | Self-managed upgrades with kubeadm, or automated with RKE2/k3s. |
|
| 19 |
+
|
| 20 |
+
## Gaps in Self-Hosted Alternatives
|
| 21 |
+
|
| 22 |
+
### Managed Control Plane
|
| 23 |
+
- **EKS provides:** Managed etcd, API server, scheduler, controller manager β AWS handles control plane availability, patching, and scaling
|
| 24 |
+
- **Self-hosted gap:** Must manage control plane HA (typically 3+ masters), etcd backup/restore, certificate rotation, and upgrades. This is the biggest operational burden.
|
| 25 |
+
- **Migration implication:** Control plane management is the primary reason teams choose EKS. Self-hosted requires dedicated platform engineering effort.
|
| 26 |
+
|
| 27 |
+
### Fargate Integration
|
| 28 |
+
- **EKS provides:** `eks-fargate-serverless-compute` β serverless pod execution, no node management
|
| 29 |
+
- **Self-hosted gap:** No equivalent. Virtual Kubelet can approximate with external compute but is not production-grade for most use cases.
|
| 30 |
+
|
| 31 |
+
### IAM Integration
|
| 32 |
+
- **EKS provides:** `eks-access-control-rbac-and-iam` β map IAM roles to Kubernetes service accounts (IRSA), pod-level AWS permissions
|
| 33 |
+
- **Self-hosted gap:** Must implement external identity provider integration (OIDC, LDAP). No native cloud permissions integration. kube2iam or similar tools can bridge but add complexity.
|
| 34 |
+
|
| 35 |
+
### Managed Add-ons
|
| 36 |
+
- **EKS provides:** `eks-capabilities-managed-controllers` β managed CoreDNS, kube-proxy, VPC CNI, EBS CSI, with automatic updates
|
| 37 |
+
- **Self-hosted gap:** Must manage all add-on lifecycle manually. Helm charts help but upgrades are still manual.
|
| 38 |
+
|
| 39 |
+
### Auto Mode
|
| 40 |
+
- **EKS provides:** `eks-standard-vs-auto-mode` β automatic node provisioning, scaling, and management (Karpenter-based)
|
| 41 |
+
- **Self-hosted gap:** Cluster Autoscaler or Karpenter can be self-hosted but require more configuration. No equivalent of fully managed node lifecycle.
|
| 42 |
+
|
| 43 |
+
### GuardDuty Threat Detection
|
| 44 |
+
- **EKS provides:** `eks-guardduty-threat-detection` β automatic threat detection for Kubernetes audit logs
|
| 45 |
+
- **Self-hosted gap:** Falco is the closest equivalent for runtime security. Must also set up audit log analysis separately.
|
| 46 |
+
|
| 47 |
+
### Hybrid Nodes
|
| 48 |
+
- **EKS provides:** `eks-hybrid-nodes-different-cni` β run on-premises nodes connected to EKS control plane
|
| 49 |
+
- **Self-hosted gap:** Not applicable β self-hosted is already on-premises. But `eks-anywhere-on-premises-clusters` is EKS's own self-hosted offering.
|
| 50 |
+
|
| 51 |
+
### Monitoring Integration
|
| 52 |
+
- **EKS provides:** `eks-monitoring-cloudwatch-prometheus-cloudtrail` β native CloudWatch Container Insights, managed Prometheus
|
| 53 |
+
- **Self-hosted gap:** Must deploy Prometheus + Grafana stack. Well-documented but additional operational overhead.
|
| 54 |
+
|
| 55 |
+
## EKS Features With No Self-Managed Equivalent
|
| 56 |
+
|
| 57 |
+
- **EKS Anywhere:** `eks-anywhere-on-premises-clusters` β AWS's own answer to self-hosted EKS, interestingly
|
| 58 |
+
- **Savings Plans:** `eks-savings-plans-apply-to-compute` β pricing model, not a technical feature
|
| 59 |
+
- **Per-cluster pricing:** `eks-pricing-per-cluster` β $0.10/hour per cluster for the control plane
|
| 60 |
+
|
| 61 |
+
## Recommendations
|
| 62 |
+
|
| 63 |
+
1. **k3s for lightweight / edge environments** β single binary, embedded etcd, minimal resource requirements
|
| 64 |
+
2. **RKE2 for production environments** β CIS hardened, FIPS compliant, manages control plane lifecycle
|
| 65 |
+
3. **OpenShift for enterprise environments** β includes built-in monitoring, logging, CI/CD, and security policies
|
| 66 |
+
4. **Control plane management is the biggest operational gap** β budget platform engineering time for etcd operations, certificate management, and version upgrades
|
| 67 |
+
5. **Falco + Prometheus + Grafana replaces EKS's monitoring/security stack** but requires dedicated setup and maintenance
|
entries/2026/03/08/eks-getting-started.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html
|
| 3 |
+
source: sources/eks-getting-started.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:34
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
This page serves as the entry point for getting started with Amazon EKS (Elastic Kubernetes Service), directing users to two distinct setup paths for creating a Kubernetes cluster with nodes.
|
| 14 |
+
|
| 15 |
+
## Key Concepts
|
| 16 |
+
- **Amazon EKS** provides managed Kubernetes clusters on AWS
|
| 17 |
+
- **Prerequisites**: Users must complete setup steps before following either getting started guide (see "Set up to use Amazon EKS")
|
| 18 |
+
- **Two getting started paths** exist, differing in automation level and visibility into resource creation
|
| 19 |
+
- **eksctl** is described as "a simple command line utility for creating and managing Kubernetes clusters on Amazon EKS" β the fastest and simplest approach
|
| 20 |
+
- **Console + CLI path** requires manually creating each resource, providing visibility into how resources are created and interact
|
| 21 |
+
|
| 22 |
+
## Commands and Syntax
|
| 23 |
+
No specific commands on this page; it references:
|
| 24 |
+
- `eksctl` β CLI tool for EKS cluster lifecycle management
|
| 25 |
+
- AWS CLI β used in the console-based guide
|
| 26 |
+
|
| 27 |
+
## Relationships
|
| 28 |
+
- **Prerequisite**: "Set up to use Amazon EKS" (setup page)
|
| 29 |
+
- **Path 1**: Getting started with eksctl
|
| 30 |
+
- **Path 2**: Getting started with AWS Management Console and AWS CLI
|
| 31 |
+
- **Related**: AWS SDKs code examples for EKS, EKS Cluster Setup tutorials on AWS Community
|
| 32 |
+
|
| 33 |
+
## Exam-Relevant Points
|
| 34 |
+
- **eksctl is the fastest/simplest way** to create an EKS cluster β likely tested as the recommended quick-start tool
|
| 35 |
+
- Both paths result in a **running EKS cluster that you can deploy applications to**
|
| 36 |
+
- The console/CLI path creates resources **manually**, giving visibility into resource interactions β important for understanding EKS architecture
|
| 37 |
+
- EKS requires **setup/prerequisites** before cluster creation
|
| 38 |
+
|
entries/2026/03/08/eks-networking.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/eks/latest/userguide/eks-networking.html
|
| 3 |
+
source: sources/eks-networking.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:34
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
This page introduces networking configuration for Amazon EKS clusters, covering the foundational relationship between EKS and Amazon VPC. EKS clusters run within a VPC, with pod networking provided by the Amazon VPC CNI plugin, and the page serves primarily as a navigation hub to more detailed networking subtopics.
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
- **EKS clusters are always created within a VPC** β networking is not optional or separate.
|
| 15 |
+
- **Pod networking** is handled by the **Amazon VPC Container Network Interface (CNI) plugin** for nodes running on AWS infrastructure.
|
| 16 |
+
- **Hybrid nodes** (nodes on your own infrastructure) use a separate CNI configuration path.
|
| 17 |
+
- Existing VPC subnets can be added to a running EKS cluster post-creation via the management console.
|
| 18 |
+
- EKS networking spans several sub-domains: VPC/subnet requirements, VPC creation, security group requirements, and networking add-ons.
|
| 19 |
+
|
| 20 |
+
## Commands and Syntax
|
| 21 |
+
No CLI commands on this page. Console procedure for adding a subnet to an existing cluster:
|
| 22 |
+
|
| 23 |
+
1. Navigate to the cluster in the AWS Management Console.
|
| 24 |
+
2. Open the **Networking** tab β select **Manage VPC Resources**.
|
| 25 |
+
3. From the **Subnets** dropdown, select additional subnets from the cluster's VPC.
|
| 26 |
+
|
| 27 |
+
## Relationships
|
| 28 |
+
- **VPC CNI Plugin** β the core networking add-on; detailed under networking add-ons management.
|
| 29 |
+
- **VPC and Subnet Requirements** β prerequisite knowledge for cluster creation (`network-reqs`).
|
| 30 |
+
- **Security Groups** β controls traffic flow to/from cluster components (`sec-group-reqs`).
|
| 31 |
+
- **Hybrid Nodes CNI** β alternative path for non-AWS infrastructure (`hybrid-nodes-cni`).
|
| 32 |
+
- **Amazon VPC service** β EKS depends on VPC for all network isolation and routing.
|
| 33 |
+
|
| 34 |
+
## Exam-Relevant Points
|
| 35 |
+
- EKS uses the **Amazon VPC CNI plugin** for pod networking β pods get real VPC IP addresses (not overlay IPs).
|
| 36 |
+
- You **can add subnets** to an existing EKS cluster after creation (but they must be in the same VPC).
|
| 37 |
+
- Hybrid nodes require a **different CNI configuration** than standard AWS-hosted nodes.
|
| 38 |
+
- Understanding the distinction between cluster networking (VPC/subnets/security groups) and pod networking (CNI plugin) is fundamental to EKS architecture questions.
|
| 39 |
+
|
entries/2026/03/08/eks-overview.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/eks/latest/userguide/what-is-eks.html
|
| 3 |
+
source: sources/eks-overview.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:35
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
|
| 14 |
+
Amazon Elastic Kubernetes Service (Amazon EKS) is a fully managed Kubernetes service that simplifies building, securing, and maintaining Kubernetes clusters in the AWS cloud or on-premises (via EKS Anywhere and EKS Hybrid Nodes). It offers two primary modes: **EKS Standard** (AWS manages the control plane) and **EKS Auto Mode** (AWS also manages the data plane, including node provisioning, scaling, patching, and cost optimization).
|
| 15 |
+
|
| 16 |
+
## Key Concepts
|
| 17 |
+
|
| 18 |
+
- **EKS Standard**: AWS manages the Kubernetes control plane (scheduling, scaling, updates); you manage worker nodes.
|
| 19 |
+
- **EKS Auto Mode**: AWS manages both control plane and data plane β automatically provisions infrastructure, selects optimal compute, dynamically scales, patches OS, and integrates with AWS security.
|
| 20 |
+
- **EKS Anywhere**: Run EKS clusters in your own data centers.
|
| 21 |
+
- **EKS Hybrid Nodes**: Connect on-premises nodes to EKS clusters in the cloud.
|
| 22 |
+
- **EKS Capabilities**: Fully managed cluster services extending functionality via Kubernetes-native tools:
|
| 23 |
+
- **Argo CD** β GitOps-based continuous deployment
|
| 24 |
+
- **AWS Controllers for Kubernetes (ACK)** β manage AWS resources via Kubernetes APIs
|
| 25 |
+
- **kro (Kube Resource Orchestrator)** β custom resource composition
|
| 26 |
+
- **Kubernetes Conformance**: EKS is certified Kubernetes-conformant; existing K8s apps deploy without refactoring.
|
| 27 |
+
- **Support tiers**: Standard support and Extended support for Kubernetes versions.
|
| 28 |
+
|
| 29 |
+
## Commands and Syntax
|
| 30 |
+
|
| 31 |
+
Management interfaces for EKS:
|
| 32 |
+
- **AWS Console**, **AWS CLI**, **eksctl CLI**, **EKS API/SDKs**, **CDK**, **CloudFormation**, **Terraform**
|
| 33 |
+
|
| 34 |
+
No specific CLI commands were provided on this page, but key tools include:
|
| 35 |
+
```
|
| 36 |
+
eksctl # Dedicated EKS CLI for cluster lifecycle
|
| 37 |
+
aws eks # AWS CLI subcommand for EKS operations
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
## Relationships
|
| 41 |
+
|
| 42 |
+
- **Compute**: Amazon EC2 (instance types including Nitro, Graviton); AWS Fargate (serverless)
|
| 43 |
+
- **Storage**: Amazon EBS (block, auto-created in Auto Mode via storage classes), Amazon S3, Amazon EFS, Amazon FSx, Amazon File Cache β all via CSI drivers
|
| 44 |
+
- **Container Registry**: Amazon ECR
|
| 45 |
+
- **Networking/Load Balancing**: Elastic Load Balancing, Amazon VPC
|
| 46 |
+
- **Monitoring/Observability**: Amazon CloudWatch, Amazon Managed Prometheus, AWS CloudTrail, ADOT Operator, observability dashboard, Metrics Server
|
| 47 |
+
- **Security**: AWS IAM (access control), Amazon GuardDuty (threat detection), shared responsibility model
|
| 48 |
+
- **Resilience**: AWS Resilience Hub
|
| 49 |
+
- **Cost**: Savings Plans applicable to EKS compute
|
| 50 |
+
|
| 51 |
+
## Exam-Relevant Points
|
| 52 |
+
|
| 53 |
+
- EKS manages the **control plane**; in Auto Mode it also manages the **data plane**.
|
| 54 |
+
- EKS is **certified Kubernetes-conformant** β no app refactoring needed.
|
| 55 |
+
- **Pricing is per-cluster** based on K8s version support tier, plus separate charges for compute (EC2/Fargate), storage (EBS), and networking (public IPv4).
|
| 56 |
+
- **EKS Auto Mode** handles: infrastructure provisioning, compute selection, dynamic scaling, cost optimization, OS patching, and AWS security integration.
|
| 57 |
+
- Access control uses **both Kubernetes RBAC and AWS IAM**.
|
| 58 |
+
- Storage in Auto Mode auto-creates **EBS-backed storage classes**; other storage uses **CSI drivers**.
|
| 59 |
+
- EKS offers **standard and extended Kubernetes version support**.
|
| 60 |
+
- **Savings Plans** can be applied to EKS compute costs.
|
| 61 |
+
- EKS follows the **shared responsibility model** for security.
|
| 62 |
+
- **EKS Capabilities** (Argo CD, ACK, kro) are managed services β controllers run in EKS infrastructure, not in your cluster, with automated patching/scaling/monitoring.
|
| 63 |
+
|
entries/2026/03/08/elasticache-overview.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/WhatIs.html
|
| 3 |
+
source: sources/elasticache-overview.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:35
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
Amazon ElastiCache is a fully managed AWS service for deploying, operating, and scaling distributed in-memory data stores and caches in the cloud. It supports three enginesβValkey, Memcached, and Redis OSSβand can be operated in two formats: serverless caching (hands-off, auto-scaling) or node-based clusters (fine-grained control over infrastructure).
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
- **In-memory data store/cache** β ElastiCache provides high-performance, low-latency caching by keeping data in memory rather than on disk.
|
| 15 |
+
- **Two operational formats**: Serverless and Node-based clusters.
|
| 16 |
+
- **Serverless caching** β Fully abstracted; no need to provision instances, configure nodes, or plan capacity. Auto-scales memory, compute, and network. Creates a cache in under a minute with a single endpoint.
|
| 17 |
+
- **Node-based clusters** β User selects node type, node count, and placement across Availability Zones. Offers control over AZ placement, cluster mode (horizontal vs vertical scaling), and patch scheduling.
|
| 18 |
+
- **Supported engines**: Valkey, Memcached, Redis OSS.
|
| 19 |
+
- **Serverless version compatibility**: Valkey 7.2, Memcached 1.6.22+, Redis OSS 7.1+.
|
| 20 |
+
- **Fully managed** β AWS handles hardware provisioning, monitoring, node replacement, and software patching in both formats.
|
| 21 |
+
|
| 22 |
+
## Commands and Syntax
|
| 23 |
+
- Serverless cache creation: specify cache name via **ElastiCache console, SDK, or CLI** (no further configuration required).
|
| 24 |
+
- Node-based cluster creation: specify **node type**, **number of nodes**, and **AZ placement**.
|
| 25 |
+
- No specific CLI commands shown on this page; creation is done through console/SDK/CLI.
|
| 26 |
+
|
| 27 |
+
## Relationships
|
| 28 |
+
- **Engine selection** β ties to the engine comparison topic (`SelectEngine`): Valkey vs Memcached vs Redis OSS.
|
| 29 |
+
- **Engine versions** β ties to version support and upgrade paths (`engine-versions`).
|
| 30 |
+
- **Availability Zones** β node-based clusters can be single-AZ or multi-AZ.
|
| 31 |
+
- **Cluster mode** β enables horizontal scaling (sharding); without it, only vertical scaling is available. Applies to Valkey and Redis OSS.
|
| 32 |
+
|
| 33 |
+
## Exam-Relevant Points
|
| 34 |
+
- ElastiCache has **two deployment models**: Serverless (auto-scaling, simplified) and Node-based (manual control).
|
| 35 |
+
- Serverless eliminates capacity planning; node-based requires the user to correctly size node type and count.
|
| 36 |
+
- Serverless supports **Valkey 7.2, Memcached 1.6.22+, Redis OSS 7.1+** β know the minimum versions.
|
| 37 |
+
- Node-based clusters allow choosing **single-AZ or multi-AZ** availability.
|
| 38 |
+
- **Cluster mode** enables horizontal scaling (partitioning data across shards); without cluster mode, scaling is vertical only.
|
| 39 |
+
- In node-based clusters, users control **when software patches are applied**; in serverless, patching is fully automatic.
|
| 40 |
+
- ElastiCache supports three engines: **Valkey, Memcached, and Redis OSS** β not just Redis.
|
| 41 |
+
|
entries/2026/03/08/elasticache-replication.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Replication.html
|
| 3 |
+
source: sources/elasticache-replication.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:35
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
This page covers high availability for Amazon ElastiCache using Valkey and Redis OSS replication groups. It explains how grouping nodes into clusters with replicas protects against data loss from node failures, and describes the architectural concepts of shards, primary nodes, and read replicas.
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
- **Single-node clusters** have limited data protection; all data is lost on failure
|
| 15 |
+
- **Replication groups** consist of 2β6 nodes: 1 read/write primary + 1β5 read-only replicas
|
| 16 |
+
- **Shard** (called *node group* in API/CLI) is the container for a replication structure
|
| 17 |
+
- **Cluster mode disabled**: always exactly 1 shard
|
| 18 |
+
- **Cluster mode enabled**: up to 500 shards, data partitioned across them
|
| 19 |
+
- **Maximum 90 nodes per cluster** (e.g., 90 shards Γ 0 replicas, or 15 shards Γ 5 replicas)
|
| 20 |
+
- **Node/shard limit of 500** available for ElastiCache for Valkey and Redis OSS version 5.0.6+; older versions limited to 250
|
| 21 |
+
- A 500-node cluster can range from 83 shards (1 primary + 5 replicas each) to 500 shards (primary only)
|
| 22 |
+
- Replication is **asynchronous** β some data loss possible if the primary fails
|
| 23 |
+
- **Multi-AZ** enables automatic failover from primary to a read replica
|
| 24 |
+
|
| 25 |
+
## Commands and Syntax
|
| 26 |
+
No specific CLI commands on this page, but key references:
|
| 27 |
+
- Shard = "node group" in the API/CLI
|
| 28 |
+
- To request node limit increases: AWS Service Limits β limit type **"Nodes per cluster per instance type"**
|
| 29 |
+
- Subnet groups must have sufficient IP addresses (CIDR range) to accommodate node increases
|
| 30 |
+
|
| 31 |
+
## Relationships
|
| 32 |
+
- **Multi-AZ with Auto Failover**: automatic promotion of replica to primary on failure
|
| 33 |
+
- **Subnet Groups**: must be correctly sized; shared/small subnets are a common pitfall
|
| 34 |
+
- **Cluster Mode Disabled vs. Enabled**: determines single-shard vs. multi-shard topology
|
| 35 |
+
- **Disaster Recovery / Fault Tolerance**: ties into mitigating failure strategies
|
| 36 |
+
- **AOF (Append Only File)**: the limited data protection available to single-node clusters
|
| 37 |
+
|
| 38 |
+
## Exam-Relevant Points
|
| 39 |
+
- Single-node cluster = no replication, all data lost on failure
|
| 40 |
+
- Max 5 read replicas per shard
|
| 41 |
+
- Cluster mode disabled = 1 shard; cluster mode enabled = up to 500 shards
|
| 42 |
+
- Max 90 nodes per cluster (general); max 500 shards per cluster (with limit increase, version 5.0.6+)
|
| 43 |
+
- Pre-5.0.6 limit: 250 nodes per cluster
|
| 44 |
+
- Replication is **asynchronous** β data loss possible on primary failure
|
| 45 |
+
- Subnet CIDR sizing is a common pitfall when scaling node counts
|
| 46 |
+
- Multi-AZ enables automatic failover; without it, primary failure requires manual intervention
|
| 47 |
+
|
entries/2026/03/08/iam-access-keys.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html
|
| 3 |
+
source: sources/iam-access-keys.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 17:17
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
Access keys are long-term credentials consisting of an access key ID and secret access key, used to sign programmatic requests to the AWS CLI, API, or SDK. AWS strongly recommends using temporary credentials (IAM roles) instead. Access keys can be created for IAM users or the root user, but require careful lifecycle management due to their persistent nature.
|
| 14 |
+
|
| 15 |
+
## Key Concepts
|
| 16 |
+
- Access keys have two parts: **access key ID** (e.g., `AKIAIOSFODNN7EXAMPLE`) and **secret access key** (e.g., `wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`)
|
| 17 |
+
- Both parts are required together to authenticate requests
|
| 18 |
+
- The **secret access key can only be retrieved at creation time** β if lost, you must delete and recreate
|
| 19 |
+
- **Maximum of two access keys per IAM user** (enables rotation without downtime)
|
| 20 |
+
- Access keys are **long-term credentials** β they don't expire automatically
|
| 21 |
+
- Stored in the shared AWS credentials file in **plaintext**
|
| 22 |
+
|
| 23 |
+
## Commands and Syntax
|
| 24 |
+
No specific CLI commands on this page, but access keys are used with:
|
| 25 |
+
- AWS CLI authentication
|
| 26 |
+
- AWS API direct calls
|
| 27 |
+
- AWS SDK programmatic access
|
| 28 |
+
|
| 29 |
+
Key management tasks referenced:
|
| 30 |
+
- Create, update, delete, and rotate access keys
|
| 31 |
+
- Attach inline policies to control access key usage
|
| 32 |
+
- Self-managed vs. administrator-managed access keys
|
| 33 |
+
|
| 34 |
+
## Relationships
|
| 35 |
+
- **IAM Roles / Temporary Credentials**: Preferred alternative to access keys
|
| 36 |
+
- **IAM Users**: Access keys are associated with IAM users (or root)
|
| 37 |
+
- **AWS CloudTrail**: Monitor access key usage and detect unauthorized access
|
| 38 |
+
- **Amazon CloudWatch**: Set alarms for denied access attempts
|
| 39 |
+
- **IAM Policies**: Inline policies can control access key usage
|
| 40 |
+
- **AWS STS**: Provides the temporary credentials that should replace access keys
|
| 41 |
+
|
| 42 |
+
## Exam-Relevant Points
|
| 43 |
+
- **Maximum two access keys per user** β this limit enables key rotation (one active while transitioning to the new one)
|
| 44 |
+
- **Secret key is only available at creation** β cannot be retrieved later
|
| 45 |
+
- **Best practice is to use IAM roles/temporary credentials** instead of access keys
|
| 46 |
+
- **Never use root account access keys** β critical security anti-pattern
|
| 47 |
+
- **Never embed access keys in application code or project files**
|
| 48 |
+
- Access key IDs starting with `AKIA` indicate long-term IAM user keys
|
| 49 |
+
- **CloudTrail** is the service for monitoring/auditing access key usage
|
| 50 |
+
- Credentials file stores keys in **plaintext** β important security consideration
|
| 51 |
+
|
entries/2026/03/08/iam-best-practices.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html
|
| 3 |
+
source: sources/iam-best-practices.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 17:18
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
|
| 12 |
+
This page outlines AWS's recommended security best practices for IAM, covering identity federation, temporary credentials, MFA, least-privilege access, credential management, policy validation, and multi-account guardrails. These practices form the foundation of a secure AWS identity strategy.
|
| 13 |
+
|
| 14 |
+
## Key Concepts
|
| 15 |
+
|
| 16 |
+
- **Federation over IAM users**: Human users should access AWS through an identity provider (IdP) using temporary credentials, not long-lived IAM user credentials
|
| 17 |
+
- **IAM Identity Center**: AWS's recommended centralized access management service for federated access across accounts
|
| 18 |
+
- **Temporary credentials for workloads**: Workloads on AWS compute (EC2, Lambda) automatically receive temporary credentials via IAM roles; workloads outside AWS can use IAM Roles Anywhere, `AssumeRoleWithSAML`, `AssumeRoleWithWebIdentity`, or IoT Core MTLS
|
| 19 |
+
- **IAM Roles Anywhere**: Enables external workloads to obtain temporary AWS credentials using X.509 certificates from PKI
|
| 20 |
+
- **Least-privilege permissions**: Grant only the permissions required to perform a task β define allowed actions on specific resources under specific conditions
|
| 21 |
+
- **AWS managed policies**: Pre-built policies for common use cases; use as starting point, then refine to customer managed policies
|
| 22 |
+
- **IAM Access Analyzer**: Multi-purpose tool that generates least-privilege policies from CloudTrail activity, validates policy syntax/best practices (100+ checks), and detects public/cross-account access
|
| 23 |
+
- **Last accessed information**: IAM feature to identify unused users, roles, permissions, policies, and credentials for cleanup
|
| 24 |
+
- **Permissions boundaries**: Managed policies that set the maximum permissions an identity-based policy can grant β used to delegate permission management safely
|
| 25 |
+
- **SCPs and RCPs**: Organization-level guardrails that restrict (but do not grant) permissions across accounts
|
| 26 |
+
|
| 27 |
+
## Commands and Syntax
|
| 28 |
+
|
| 29 |
+
No CLI commands are provided directly, but key API/service references include:
|
| 30 |
+
|
| 31 |
+
- **STS APIs for external workloads**:
|
| 32 |
+
- `AssumeRoleWithSAML` β federate via SAML assertion
|
| 33 |
+
- `AssumeRoleWithWebIdentity` β federate via JWT/OIDC token
|
| 34 |
+
- **IAM Roles Anywhere** β X.509 certificate-based credential delivery
|
| 35 |
+
- **IAM Access Analyzer** β policy generation, policy validation, access previews
|
| 36 |
+
- **`git-remote-codecommit`** β utility for CodeCommit access with rotating credentials (avoids IAM user SSH keys)
|
| 37 |
+
|
| 38 |
+
## Relationships
|
| 39 |
+
|
| 40 |
+
- **IAM Identity Center** β preferred federation service for workforce identities
|
| 41 |
+
- **AWS Organizations / SCPs / RCPs** β multi-account permission guardrails work alongside IAM policies
|
| 42 |
+
- **CloudTrail** β access activity logs feed IAM Access Analyzer policy generation
|
| 43 |
+
- **IAM Roles** β central mechanism for delivering temporary credentials to both humans and workloads
|
| 44 |
+
- **Permissions Boundaries** β advanced feature used with identity-based policies to cap effective permissions
|
| 45 |
+
- **MFA** β required for IAM users and root users; also configurable in IAM Identity Center
|
| 46 |
+
- **Services delivering temp creds outside AWS**: ECS Anywhere, EKS Hybrid Nodes, Systems Manager Hybrid Activations
|
| 47 |
+
|
| 48 |
+
## Exam-Relevant Points
|
| 49 |
+
|
| 50 |
+
- **Temporary credentials are always preferred** over long-term access keys; IAM roles are the delivery mechanism
|
| 51 |
+
- **Root user credentials** must be safeguarded; follow root user best practices (separate from day-to-day use)
|
| 52 |
+
- **Legitimate use cases for long-term credentials**: workloads that can't use IAM roles (e.g., WordPress plugins), third-party clients without IAM Identity Center support, CodeCommit SSH/Git credentials, Amazon Keyspaces service-specific credentials
|
| 53 |
+
- **SCPs and RCPs do not grant permissions** β they only restrict; you still need identity-based or resource-based policies to grant access
|
| 54 |
+
- **Permissions boundaries do not grant permissions** on their own β they set a ceiling on what identity-based policies can grant
|
| 55 |
+
- **IAM Access Analyzer has three distinct functions**: (1) generate least-privilege policies from CloudTrail, (2) validate policy syntax and best practices, (3) detect and preview public/cross-account access
|
| 56 |
+
- **Policy conditions** can enforce requirements like TLS (`aws:SecureTransport`) or restrict actions to specific AWS services
|
| 57 |
+
- **Regularly review and remove unused identities and credentials** using IAM last accessed information
|
| 58 |
+
- **Start broad, then reduce**: AWS recommends starting with managed policies and progressively tightening to least privilege
|
| 59 |
+
|
entries/2026/03/08/iam-cross-account.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html
|
| 3 |
+
source: sources/iam-cross-account.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 17:18
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
|
| 14 |
+
This tutorial walks through delegating access across AWS accounts using IAM roles. It demonstrates a cross-account access pattern where users in an "Originating" account assume a role in a "Destination" account to access specific S3 resources, without needing separate IAM users in each account. The pattern uses STS AssumeRole to obtain temporary credentials.
|
| 15 |
+
|
| 16 |
+
## Key Concepts
|
| 17 |
+
|
| 18 |
+
- **Cross-account access** uses IAM roles to share resources between AWS accounts without creating duplicate IAM users
|
| 19 |
+
- **Trusted account (Originating)** β the account whose users are allowed to assume the role
|
| 20 |
+
- **Trusting account (Destination)** β the account that holds the role and the resources
|
| 21 |
+
- **Trust relationship** β established by specifying the Originating account ID as a trusted entity when creating the role in the Destination account
|
| 22 |
+
- **Temporary credentials** β AssumeRole returns AccessKeyId, SecretAccessKey, and SessionToken with an expiration time
|
| 23 |
+
- **Only one set of permissions active at a time** β while using the assumed role, the user cannot use their original account permissions
|
| 24 |
+
- **Root users cannot switch roles** β you must be signed in as an IAM user or federated identity
|
| 25 |
+
- **Partition restriction** β cross-account role delegation only works within a single partition (e.g., `aws` and `aws-cn` cannot cross)
|
| 26 |
+
- **ExternalId limitation** β roles requiring ExternalId cannot be assumed via the console; must use CLI or API
|
| 27 |
+
- **Explicit Deny** β to prevent PowerUsers (like Analysts) from assuming a role, you must add an explicit Deny policy since PowerUser permissions are broad
|
| 28 |
+
|
| 29 |
+
## Commands and Syntax
|
| 30 |
+
|
| 31 |
+
**AssumeRole via CLI:**
|
| 32 |
+
```bash
|
| 33 |
+
aws sts assume-role \
|
| 34 |
+
--role-arn "arn:aws:iam::999999999999:role/UpdateData" \
|
| 35 |
+
--role-session-name "David-ProdUpdate"
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
**Setting temporary credentials (Linux/macOS):**
|
| 39 |
+
```bash
|
| 40 |
+
export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
|
| 41 |
+
export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
| 42 |
+
export AWS_SESSION_TOKEN=AQoDYXdzEGcaEXAMPLE...
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
**S3 bucket permission policy for the role:**
|
| 46 |
+
```json
|
| 47 |
+
{
|
| 48 |
+
"Version": "2012-10-17",
|
| 49 |
+
"Statement": [
|
| 50 |
+
{ "Effect": "Allow", "Action": "s3:ListAllMyBuckets", "Resource": "*" },
|
| 51 |
+
{ "Effect": "Allow", "Action": ["s3:ListBucket", "s3:GetBucketLocation"], "Resource": "arn:aws:s3:::amzn-s3-demo-bucket-shared-container" },
|
| 52 |
+
{ "Effect": "Allow", "Action": ["s3:GetObject", "s3:PutObject", "s3:DeleteObject"], "Resource": "arn:aws:s3:::amzn-s3-demo-bucket-shared-container/*" }
|
| 53 |
+
]
|
| 54 |
+
}
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
**Allow policy (for Developers to assume the role):**
|
| 58 |
+
```json
|
| 59 |
+
{
|
| 60 |
+
"Version": "2012-10-17",
|
| 61 |
+
"Statement": {
|
| 62 |
+
"Effect": "Allow",
|
| 63 |
+
"Action": "sts:AssumeRole",
|
| 64 |
+
"Resource": "arn:aws:iam::999999999999:role/UpdateData"
|
| 65 |
+
}
|
| 66 |
+
}
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
**Deny policy (to block Analysts from assuming the role):**
|
| 70 |
+
```json
|
| 71 |
+
{
|
| 72 |
+
"Version": "2012-10-17",
|
| 73 |
+
"Statement": {
|
| 74 |
+
"Effect": "Deny",
|
| 75 |
+
"Action": "sts:AssumeRole",
|
| 76 |
+
"Resource": "arn:aws:iam::999999999999:role/UpdateData"
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
## Relationships
|
| 82 |
+
|
| 83 |
+
- **STS (Security Token Service)** β provides the AssumeRole API that generates temporary credentials
|
| 84 |
+
- **S3** β the target resource in this tutorial; role permissions are scoped to a specific bucket
|
| 85 |
+
- **IAM Policies** β both the trust policy (on the role) and identity policies (on the users/groups) must align for cross-account access to work
|
| 86 |
+
- **IAM Identity Center (SSO)** β recommended alternative for cross-account access using federation and SAML
|
| 87 |
+
- **IAM Access Analyzer** β can identify whether principals outside your zone of trust can assume your roles
|
| 88 |
+
- **ExternalId** β used with third-party access scenarios to prevent confused deputy attacks
|
| 89 |
+
- **Role chaining** β AWS SDKs can auto-refresh temporary credentials when using role chaining
|
| 90 |
+
|
| 91 |
+
## Exam-Relevant Points
|
| 92 |
+
|
| 93 |
+
- Cross-account access requires **both**: a trust policy on the role (in the trusting account) AND an identity policy granting `sts:AssumeRole` (in the trusted account)
|
| 94 |
+
- The **root user cannot assume roles** via Switch Role
|
| 95 |
+
- Cross-account roles **do not work across partitions** (e.g., `aws` to `aws-cn`)
|
| 96 |
+
- `sts:AssumeRole` returns three components: **AccessKeyId, SecretAccessKey, SessionToken**
|
| 97 |
+
- To block a group with broad permissions from assuming a role, use an **explicit Deny** on `sts:AssumeRole`
|
| 98 |
+
- While using an assumed role, the user's **original permissions are not active** β only one set of permissions at a time
|
| 99 |
+
- `aws configure` **cannot capture session tokens**; use environment variables or manual config file edits
|
| 100 |
+
- Console-based role switching **does not work** when `ExternalId` is required
|
| 101 |
+
- S3 bucket ARN for bucket-level actions uses `arn:aws:s3:::bucket-name`; for object-level actions uses `arn:aws:s3:::bucket-name/*`
|
| 102 |
+
|
entries/2026/03/08/iam-groups.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups.html
|
| 3 |
+
source: sources/iam-groups.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 17:18
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
IAM user groups are collections of IAM users that simplify permissions management by allowing you to attach policies to a group rather than to individual users. Users in a group automatically inherit the group's permissions.
|
| 14 |
+
|
| 15 |
+
## Key Concepts
|
| 16 |
+
- A user group is a collection of IAM users β it is **not** an authenticated entity (not a principal)
|
| 17 |
+
- Policies attached to a group apply to all users in that group
|
| 18 |
+
- A user can belong to **multiple** user groups
|
| 19 |
+
- User groups **cannot be nested** (no groups within groups β users only)
|
| 20 |
+
- There is **no default group** that includes all users; you must create and populate one manually
|
| 21 |
+
- Groups relate to **permissions**, not authentication
|
| 22 |
+
- Only **identity-based policies** can be attached to groups (not resource-based)
|
| 23 |
+
- A group **cannot be identified as a `Principal`** in a resource-based policy
|
| 24 |
+
|
| 25 |
+
## Commands and Syntax
|
| 26 |
+
No CLI commands or configuration syntax provided on this page. Group management is done via the IAM console, CLI (`aws iam create-group`, `aws iam add-user-to-group`), or API.
|
| 27 |
+
|
| 28 |
+
## Relationships
|
| 29 |
+
- **IAM Users**: Groups contain users; users can belong to multiple groups
|
| 30 |
+
- **Identity-based policies**: Attached to groups to grant permissions to all members
|
| 31 |
+
- **Resource-based policies**: Groups cannot appear as principals in these policies
|
| 32 |
+
- **IAM Roles**: Unlike groups, roles are principals and can be assumed; groups cannot
|
| 33 |
+
- **IAM quotas**: Limits apply to number of groups per account and groups per user
|
| 34 |
+
|
| 35 |
+
## Exam-Relevant Points
|
| 36 |
+
- Groups **cannot be nested** β this is a frequently tested constraint
|
| 37 |
+
- Groups **cannot be used as principals** in resource-based policies β key distinction from users and roles
|
| 38 |
+
- There is **no automatic "all users" group** β must be created manually
|
| 39 |
+
- A user **can belong to multiple groups**
|
| 40 |
+
- Groups are a permissions mechanism, **not an authentication mechanism**
|
| 41 |
+
- IAM quotas limit the number of groups and group memberships
|
| 42 |
+
|
entries/2026/03/08/iam-identity-center.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html
|
| 3 |
+
source: sources/iam-identity-center.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 17:19
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
|
| 12 |
+
AWS IAM Identity Center (formerly AWS Single Sign-On) is AWS's centralized service for managing workforce user access to AWS managed applications and AWS accounts. It supports connecting an existing identity provider (IdP) via SAML 2.0 federation, synchronizing users/groups from an external directory, or managing users directly within the service. It provides a single point of federation, a user-facing web portal (AWS access portal), and multi-account permission management.
|
| 13 |
+
|
| 14 |
+
## Key Concepts
|
| 15 |
+
|
| 16 |
+
- **Workforce identity management** β IAM Identity Center is for *workforce* users (employees), not application end-users (that's Cognito)
|
| 17 |
+
- **Identity sources** β Three options: IAM Identity Center's built-in directory, external IdP via SAML 2.0, or Active Directory (via AWS Directory Service)
|
| 18 |
+
- **Two instance types:**
|
| 19 |
+
- **Organization instance** β deployed in the AWS Organizations management account; best practice for production; required for multi-account access
|
| 20 |
+
- **Account instance** β bound to a single AWS account; only for isolated deployments of select managed applications
|
| 21 |
+
- **Trusted identity propagation** β allows AWS managed applications (e.g., Amazon QuickSight β Amazon Redshift) to securely pass user identity between services; CloudTrail logs the actual user identity
|
| 22 |
+
- **Multi-account permissions** β assign permissions to groups of users across multiple AWS accounts from a single place; only available with organization instances
|
| 23 |
+
- **Single point of federation** β federate once with your IdP, one SAML certificate to manage
|
| 24 |
+
- **AWS access portal** β user-facing web portal for accessing all assigned applications and accounts
|
| 25 |
+
- **Multi-Region replication** β IAM Identity Center instance can be replicated to additional Regions for resilience and regional application deployment
|
| 26 |
+
- **Coexistence with IAM federation** β existing IAM federation workflows continue to work alongside IAM Identity Center
|
| 27 |
+
|
| 28 |
+
## Commands and Syntax
|
| 29 |
+
|
| 30 |
+
Legacy CLI namespaces (unchanged after the SSO β Identity Center rename):
|
| 31 |
+
```bash
|
| 32 |
+
aws configure sso # Configure CLI SSO profile
|
| 33 |
+
aws sso login # Login via SSO
|
| 34 |
+
aws identitystore ... # Identity store operations
|
| 35 |
+
aws sso ... # SSO operations
|
| 36 |
+
aws sso-admin ... # SSO admin operations
|
| 37 |
+
aws sso-oidc ... # SSO OIDC operations
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
CloudFormation resource prefix: `AWS::SSO`
|
| 41 |
+
|
| 42 |
+
Service-linked role: `AWSServiceRoleForSSO`
|
| 43 |
+
|
| 44 |
+
Managed policy prefixes: `AWSSSO` and `AWSIdentitySync`
|
| 45 |
+
|
| 46 |
+
## Relationships
|
| 47 |
+
|
| 48 |
+
- **AWS Organizations** β organization instances require AWS Organizations; deployed in the management account
|
| 49 |
+
- **IAM** β complements IAM; IAM Identity Center handles workforce SSO while IAM handles fine-grained access policies and service roles
|
| 50 |
+
- **SAML 2.0 IdPs** β integrates with external identity providers (Okta, Azure AD, etc.)
|
| 51 |
+
- **AWS managed applications** β QuickSight, Kiro, Redshift, and others integrate natively
|
| 52 |
+
- **CloudTrail** β logs user activity with actual user identity via trusted identity propagation
|
| 53 |
+
- **CloudFormation** β resources provisioned via `AWS::SSO` namespace
|
| 54 |
+
|
| 55 |
+
## Exam-Relevant Points
|
| 56 |
+
|
| 57 |
+
- IAM Identity Center is the **recommended** approach for managing workforce access to multiple AWS accounts (over per-account IAM federation)
|
| 58 |
+
- **Organization instances** are the best practice; **account instances** are limited to isolated app deployments
|
| 59 |
+
- The service was renamed from AWS SSO to IAM Identity Center, but **all API namespaces, CLI commands, endpoints, and CloudFormation resources retain the `sso`/`singlesignon` naming**
|
| 60 |
+
- **Trusted identity propagation** enables identity-aware access across chained AWS services with CloudTrail audit at the user level
|
| 61 |
+
- Multi-account permissions are **only available with organization instances**
|
| 62 |
+
- IAM Identity Center provides a **single point of federation** β one SAML certificate, one integration point
|
| 63 |
+
- You do **not** need to migrate away from existing IAM federation to adopt IAM Identity Center for applications
|
| 64 |
+
|
entries/2026/03/08/iam-mfa.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_mfa.html
|
| 3 |
+
source: sources/iam-mfa.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 17:19
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
|
| 12 |
+
AWS Multi-Factor Authentication (MFA) adds an extra layer of security beyond passwords by requiring users to provide authentication from a supported MFA mechanism. MFA can be enabled for the AWS account root user and IAM users, with support for up to eight MFA devices per user. MFA is now enforced for all account types at the root user level.
|
| 13 |
+
|
| 14 |
+
## Key Concepts
|
| 15 |
+
|
| 16 |
+
- **MFA** requires a second authentication factor beyond username/password when accessing AWS
|
| 17 |
+
- Root user MFA is **enforced for all account types** (standalone, management, and member accounts)
|
| 18 |
+
- Enabling MFA for root user **does not affect IAM users** β each identity has its own MFA configuration
|
| 19 |
+
- Up to **8 MFA devices** of any type can be registered per root user or IAM user
|
| 20 |
+
- Only **one MFA device** is needed to sign in to the Console or create a CLI session
|
| 21 |
+
- **SMS-based MFA has been discontinued** β users must migrate to passkeys, virtual MFA, or hardware tokens
|
| 22 |
+
- Unassigned virtual MFA devices are automatically deleted when adding new ones
|
| 23 |
+
|
| 24 |
+
## Three MFA Types
|
| 25 |
+
|
| 26 |
+
- **Passkeys and security keys (FIDO2)**
|
| 27 |
+
- Based on FIDO standards; uses public key cryptography
|
| 28 |
+
- **Phishing-resistant** β more secure than TOTP-based methods
|
| 29 |
+
- **Device-bound passkeys** (e.g., YubiKey) β physical security keys
|
| 30 |
+
- **Synced passkeys** β stored in credential managers (Google, Apple, 1Password, Dashlane, Bitwarden)
|
| 31 |
+
- Support biometric unlock (Touch ID, face, device PIN)
|
| 32 |
+
- Cross-device authentication (CDA) supported
|
| 33 |
+
- A single security key can support multiple root and IAM users
|
| 34 |
+
- Can only be enabled via **Console** β not CLI or API
|
| 35 |
+
- **Virtual authenticator applications**
|
| 36 |
+
- Software-based TOTP (RFC 6238) on phone or device
|
| 37 |
+
- Support multiple tokens per device; each token must be unique per user
|
| 38 |
+
- Recommended as interim solution while waiting for hardware
|
| 39 |
+
- **Hardware TOTP tokens**
|
| 40 |
+
- Physical device generating 6-digit TOTP codes
|
| 41 |
+
- Must be purchased from AWS-approved sources (token seeds must be shared with AWS at production)
|
| 42 |
+
- Tokens from other sources **will not work**
|
| 43 |
+
- Security keys are recommended over hardware TOTP (no battery, phishing-resistant, multi-user)
|
| 44 |
+
|
| 45 |
+
## Commands and Syntax
|
| 46 |
+
|
| 47 |
+
```bash
|
| 48 |
+
# List virtual MFA devices (find unassigned ones)
|
| 49 |
+
aws iam list-virtual-mfa-devices
|
| 50 |
+
|
| 51 |
+
# Deactivate a virtual MFA device (makes it unassigned)
|
| 52 |
+
aws iam deactivate-mfa-device --user-name <user> --serial-number <arn>
|
| 53 |
+
|
| 54 |
+
# Enable/attach a virtual MFA device
|
| 55 |
+
aws iam enable-mfa-device --user-name <user> --serial-number <arn> \
|
| 56 |
+
--authentication-code1 <code1> --authentication-code2 <code2>
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
## Relationships
|
| 60 |
+
|
| 61 |
+
- **IAM Identity Center**: Recommended for centralized MFA-protected SSO across multiple accounts; supports SAML 2.0 identity providers
|
| 62 |
+
- **AWS STS**: FIDO security key MFA information **cannot** be passed to STS API operations for temporary credentials
|
| 63 |
+
- **IAM Policies**: MFA can be required via IAM policy conditions (e.g., `aws:MultiFactorAuthPresent`)
|
| 64 |
+
- **Root user security**: MFA is a core component of root user best practices
|
| 65 |
+
- **Temporary credentials**: AWS recommends temporary credentials via IAM Identity Center over long-lived IAM user credentials
|
| 66 |
+
|
| 67 |
+
## Exam-Relevant Points
|
| 68 |
+
|
| 69 |
+
- MFA is **enforced** for root users across all account types
|
| 70 |
+
- Maximum of **8 MFA devices** per user (any combination of types)
|
| 71 |
+
- **FIDO security keys cannot be enabled via CLI or API** β Console only
|
| 72 |
+
- **FIDO MFA info cannot be passed to STS** for temporary credentials
|
| 73 |
+
- **SMS MFA is no longer supported** β must use passkeys, virtual MFA, or hardware TOTP
|
| 74 |
+
- Hardware TOTP tokens **must be purchased from AWS-approved vendors** β third-party tokens won't work
|
| 75 |
+
- Passkeys/security keys are **phishing-resistant**; TOTP methods are not
|
| 76 |
+
- A single security key can serve **multiple users**; TOTP tokens are **one-to-one**
|
| 77 |
+
- Enabling root user MFA does **not** enable MFA for IAM users β they are independent
|
| 78 |
+
- An IAM user **must authenticate with an existing MFA device** to enable or disable an additional MFA device
|
| 79 |
+
|
entries/2026/03/08/iam-overview.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html
|
| 3 |
+
source: sources/iam-overview.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 17:20
|
| 9 |
+
|
| 10 |
+
The summary has been prepared. Here's what was generated:
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
AWS IAM is a web service for controlling access to AWS resources via authentication and authorization, supporting users, roles, and federated principals.
|
| 14 |
+
|
| 15 |
+
## Key Concepts
|
| 16 |
+
- **Root user** β full access, avoid for daily use
|
| 17 |
+
- **Principals** β IAM users, roles, federated users (STS), applications
|
| 18 |
+
- **Authentication vs Authorization** β distinct steps (identity verification then policy evaluation)
|
| 19 |
+
- **Eventually consistent** β IAM changes replicate globally and may take time to propagate
|
| 20 |
+
- **Free service** β IAM, IAM Identity Center, and STS have no charge; IAM Access Analyzer unused access analysis is paid
|
| 21 |
+
|
| 22 |
+
## Commands and Syntax
|
| 23 |
+
None β this is a conceptual overview page.
|
| 24 |
+
|
| 25 |
+
## Relationships
|
| 26 |
+
- **AWS STS** β temporary credentials for federated access
|
| 27 |
+
- **IAM Identity Center** β centralized workforce access management
|
| 28 |
+
- **IAM Access Analyzer** β external/unused access analysis
|
| 29 |
+
- Integrates with virtually all AWS services
|
| 30 |
+
|
| 31 |
+
## Exam-Relevant Points
|
| 32 |
+
- Root user should not be used for everyday tasks
|
| 33 |
+
- IAM is eventually consistent β don't depend on immediate propagation in critical code paths
|
| 34 |
+
- IAM, Identity Center, and STS are free
|
| 35 |
+
- Cross-account authorization requests are supported from trusted accounts
|
| 36 |
+
- High availability via multi-datacenter replication
|
| 37 |
+
|
| 38 |
+
Would you like me to retry writing this to the source file?
|
| 39 |
+
|
entries/2026/03/08/iam-permission-boundaries.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html
|
| 3 |
+
source: sources/iam-permission-boundaries.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 17:20
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
|
| 12 |
+
Permissions boundaries are an advanced IAM feature that uses a managed policy to set the **maximum permissions** an IAM entity (user or role) can have. They do not grant permissions on their own β effective permissions are the **intersection** of identity-based policies and the permissions boundary. This mechanism enables safe delegation of administrative tasks like user creation.
|
| 13 |
+
|
| 14 |
+
## Key Concepts
|
| 15 |
+
|
| 16 |
+
- A permissions boundary is a **managed policy** (AWS-managed or customer-managed) attached to an IAM user or role
|
| 17 |
+
- It sets the **ceiling** on permissions β the entity can only perform actions allowed by **both** its identity-based policies **and** its permissions boundary
|
| 18 |
+
- Permissions boundaries **do not grant permissions** on their own; they only limit what identity-based policies can grant
|
| 19 |
+
- An **explicit deny** in either the permissions boundary or identity-based policy always wins
|
| 20 |
+
- Effective permissions = intersection of identity-based policies β© permissions boundary
|
| 21 |
+
- Within an account, **resource-based policies** that grant permissions to an IAM **user ARN** are **not limited** by an implicit deny in a permissions boundary
|
| 22 |
+
- Resource-based policies that grant permissions to an IAM **role ARN** **are limited** by implicit denies in permissions boundaries
|
| 23 |
+
- Permissions granted directly to an **IAM role session ARN** or **federated user session ARN** via resource-based policies are **not limited** by permissions boundaries
|
| 24 |
+
- When SCPs, permissions boundaries, and identity-based policies all apply, the request is allowed only if **all three** allow it (intersection of all three)
|
| 25 |
+
- Session policies further restrict: effective permissions = intersection of identity-based policy β© permissions boundary β© session policy
|
| 26 |
+
- **Do not** use `NotPrincipal` with `Deny` in resource-based policies for entities with permissions boundaries β it will always deny those principals. Use `ArnNotEquals` with `aws:PrincipalArn` instead.
|
| 27 |
+
|
| 28 |
+
## Commands and Syntax
|
| 29 |
+
|
| 30 |
+
**Setting a permissions boundary (policy example):**
|
| 31 |
+
```json
|
| 32 |
+
{
|
| 33 |
+
"Version": "2012-10-17",
|
| 34 |
+
"Statement": [
|
| 35 |
+
{
|
| 36 |
+
"Effect": "Allow",
|
| 37 |
+
"Action": ["s3:*", "cloudwatch:*", "ec2:*"],
|
| 38 |
+
"Resource": "*"
|
| 39 |
+
}
|
| 40 |
+
]
|
| 41 |
+
}
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
**Requiring a permissions boundary via condition key:**
|
| 45 |
+
```json
|
| 46 |
+
{
|
| 47 |
+
"Effect": "Allow",
|
| 48 |
+
"Action": ["iam:CreateUser", "iam:PutUserPermissionsBoundary"],
|
| 49 |
+
"Resource": "*",
|
| 50 |
+
"Condition": {
|
| 51 |
+
"StringEquals": {
|
| 52 |
+
"iam:PermissionsBoundary": "arn:aws:iam::123456789012:policy/XCompanyBoundaries"
|
| 53 |
+
}
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
**Key condition key:** `iam:PermissionsBoundary` β ensures users can only create/modify entities with a specific boundary attached.
|
| 59 |
+
|
| 60 |
+
**Preventing boundary removal:**
|
| 61 |
+
```json
|
| 62 |
+
{
|
| 63 |
+
"Effect": "Deny",
|
| 64 |
+
"Action": "iam:DeleteUserPermissionsBoundary",
|
| 65 |
+
"Resource": "*"
|
| 66 |
+
}
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
## Relationships
|
| 70 |
+
|
| 71 |
+
- **Policy evaluation logic**: Permissions boundaries are one of several policy types evaluated together (identity-based, resource-based, SCPs, session policies, permissions boundaries)
|
| 72 |
+
- **AWS Organizations SCPs**: Work alongside permissions boundaries β when both apply, effective permissions are the intersection of all applicable policy types
|
| 73 |
+
- **Session policies**: Passed during `AssumeRole` or `GetFederationToken`; combined with permissions boundaries to further restrict temporary credentials
|
| 74 |
+
- **Resource-based policies**: Interact differently with permissions boundaries depending on whether the principal is a user ARN, role ARN, or session ARN
|
| 75 |
+
- **Delegation pattern**: Enables administrators to delegate user creation while enforcing guardrails β directly related to IAM administrative patterns
|
| 76 |
+
|
| 77 |
+
## Exam-Relevant Points
|
| 78 |
+
|
| 79 |
+
- Permissions boundaries **limit but do not grant** permissions β this distinction is frequently tested
|
| 80 |
+
- Effective permissions = **intersection** of identity-based policies and permissions boundary (not union)
|
| 81 |
+
- Resource-based policies granting access to an **IAM user ARN** bypass implicit denies in permissions boundaries (same account)
|
| 82 |
+
- Resource-based policies granting access to an **IAM role ARN** are limited by permissions boundaries; but grants to a **role session ARN** are not
|
| 83 |
+
- `iam:PermissionsBoundary` condition key enforces that delegated admins must attach a specific boundary when creating users
|
| 84 |
+
- `iam:DeleteUserPermissionsBoundary` must be explicitly denied to prevent boundary removal
|
| 85 |
+
- `NotPrincipal` + `Deny` in resource-based policies always denies principals with permissions boundaries attached β use `ArnNotEquals` with `aws:PrincipalArn` instead
|
| 86 |
+
- When SCP + permissions boundary + identity-based policy all apply: request succeeds only if **all three allow** it
|
| 87 |
+
- An **explicit deny** in any policy type overrides allows from any other policy type
|
| 88 |
+
|
entries/2026/03/08/iam-policies.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html
|
| 3 |
+
source: sources/iam-policies.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 17:21
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
|
| 12 |
+
AWS IAM policies are JSON documents that define permissions for identities (users, groups, roles) or resources. AWS supports seven policy typesβidentity-based, resource-based, permissions boundaries, SCPs, RCPs, ACLs, and session policiesβwhich are evaluated together when a principal makes a request to determine whether access is allowed or denied.
|
| 13 |
+
|
| 14 |
+
## Key Concepts
|
| 15 |
+
|
| 16 |
+
- **Policy**: An object that defines permissions; most are stored as JSON documents
|
| 17 |
+
- **Seven policy types** (ordered by frequency of use):
|
| 18 |
+
1. **Identity-based policies** β attached to users, groups, or roles; grant permissions
|
| 19 |
+
2. **Resource-based policies** β attached inline to resources (e.g., S3 bucket policies, role trust policies); grant permissions to a specified principal
|
| 20 |
+
3. **Permissions boundaries** β set *maximum* permissions an identity-based policy can grant; do not grant permissions themselves
|
| 21 |
+
4. **SCPs (Service Control Policies)** β org-wide caps on permissions for IAM users/roles in member accounts; do not grant permissions
|
| 22 |
+
5. **RCPs (Resource Control Policies)** β org-wide caps on permissions for *resources* in member accounts; do not grant permissions
|
| 23 |
+
6. **ACLs** β cross-account only; the only policy type that does **not** use JSON format
|
| 24 |
+
7. **Session policies** β passed when assuming a role or creating federated session; limit (never expand) session permissions
|
| 25 |
+
- **Managed vs. Inline policies**:
|
| 26 |
+
- **AWS managed** β created/maintained by AWS
|
| 27 |
+
- **Customer managed** β created/maintained by you; more precise control
|
| 28 |
+
- **Inline** β embedded directly in a single user, group, or role; deleted with the identity
|
| 29 |
+
- **Cross-account access** via resource-based policies requires specifying the external principal; if principal and resource are in *different* accounts, an identity-based policy is also needed on the principal side
|
| 30 |
+
- **Role trust policy** β the only resource-based policy type supported by IAM itself; defines who can assume the role
|
| 31 |
+
- **Root user** β cannot have identity-based policies or permissions boundaries attached, but is affected by SCPs, RCPs, resource-based policies, and ACLs
|
| 32 |
+
- **Explicit deny always wins** β an explicit deny in any applicable policy overrides any allow
|
| 33 |
+
|
| 34 |
+
## Commands and Syntax
|
| 35 |
+
|
| 36 |
+
**JSON policy document structure elements:**
|
| 37 |
+
- `Version` β use `"2012-10-17"` (latest)
|
| 38 |
+
- `Statement` β container; multiple statements evaluated with logical OR
|
| 39 |
+
- `Sid` β optional statement identifier
|
| 40 |
+
- `Effect` β `"Allow"` or `"Deny"`
|
| 41 |
+
- `Principal` β required in resource-based policies; implied in identity-based policies
|
| 42 |
+
- `Action` β list of API actions
|
| 43 |
+
- `Resource` β ARN(s) the actions apply to
|
| 44 |
+
- `Condition` β optional; statement only applies when condition is true
|
| 45 |
+
|
| 46 |
+
**Example identity-based policy:**
|
| 47 |
+
```json
|
| 48 |
+
{
|
| 49 |
+
"Version": "2012-10-17",
|
| 50 |
+
"Statement": {
|
| 51 |
+
"Effect": "Allow",
|
| 52 |
+
"Action": "s3:ListBucket",
|
| 53 |
+
"Resource": "arn:aws:s3:::amzn-s3-demo-bucket"
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
**Example MFA condition:**
|
| 59 |
+
```json
|
| 60 |
+
"Condition": {"Bool": {"aws:MultiFactorAuthPresent": "true"}}
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
**Session policy APIs:** `AssumeRole`, `AssumeRoleWithSAML`, `AssumeRoleWithWebIdentity` (use `Policy` param for inline JSON, `PolicyArns` for up to 10 managed policies). Federated user sessions use `GetFederationToken`.
|
| 64 |
+
|
| 65 |
+
## Relationships
|
| 66 |
+
|
| 67 |
+
- **IAM Policy Evaluation Logic** β how AWS resolves multiple policies (OR across statements/policies, explicit deny wins)
|
| 68 |
+
- **IAM Roles** β require both a trust policy (resource-based) and identity-based policy
|
| 69 |
+
- **AWS Organizations** β SCPs and RCPs are org-level guardrails that restrict but never grant permissions
|
| 70 |
+
- **IAM Access Analyzer** β validates policies, generates least-privilege policies from CloudTrail activity
|
| 71 |
+
- **STS / Temporary Credentials** β session policies constrain temporary sessions
|
| 72 |
+
- **S3, WAF, VPC** β services that support ACLs
|
| 73 |
+
- **CloudTrail** β provides access activity data for refining permissions
|
| 74 |
+
- **Permissions Boundaries** β intersect with identity-based policies but do not limit resource-based policies that specify the session ARN as principal
|
| 75 |
+
|
| 76 |
+
## Exam-Relevant Points
|
| 77 |
+
|
| 78 |
+
- **Permissions boundaries do NOT grant permissions** β they only cap what identity-based policies can grant
|
| 79 |
+
- **SCPs do NOT grant permissions** β they set maximum permissions for accounts/OUs; affect even the root user
|
| 80 |
+
- **RCPs limit permissions on resources** across org accounts; also do not grant permissions
|
| 81 |
+
- **ACLs are the only policy type not in JSON format** and only work cross-account (cannot grant to entities in the same account)
|
| 82 |
+
- **Session policies are an intersection** β resulting permissions = intersection of (identity-based policies β© session policies); resource-based policies specifying the *session ARN* as principal are additive and NOT limited by session policies
|
| 83 |
+
- **Explicit deny always overrides allow** in any policy type
|
| 84 |
+
- **Cross-account resource-based policy**: if principal and resource are in different accounts, both a resource-based policy AND an identity-based policy are needed; if same account, resource-based policy alone suffices
|
| 85 |
+
- **Root user cannot have identity-based policies or permissions boundaries** but IS subject to SCPs and RCPs
|
| 86 |
+
- **Least privilege tools**: access level groupings (List/Read/Write/Permissions management/Tagging), IAM Access Analyzer policy generation from CloudTrail, last accessed information via Access Advisor
|
| 87 |
+
- **Multiple statements** in a policy are evaluated with logical OR; multiple policies are also OR'd together
|
| 88 |
+
- **Policy version** should always be `"2012-10-17"`
|
| 89 |
+
|
entries/2026/03/08/iam-policy-evaluation.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html
|
| 3 |
+
source: sources/iam-policy-evaluation.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 17:21
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
This page explains how AWS evaluates policies when a principal makes a request, covering the three-step evaluation process (authentication, request context processing, and policy evaluation) and how different policy types interact to produce allow/deny decisions.
|
| 14 |
+
|
| 15 |
+
## Key Concepts
|
| 16 |
+
- **Three-step request evaluation**: Authentication β Request context processing β Policy evaluation against context
|
| 17 |
+
- **Identity-based + Resource-based policies (same account)**: Permissions are the **union** β if either policy allows, the action is allowed
|
| 18 |
+
- **Identity-based + Permissions boundaries**: Permissions are the **intersection** β action must be allowed by both; adding a boundary can only reduce permissions
|
| 19 |
+
- **Identity-based + SCPs + RCPs (Organizations)**: Permissions are the **intersection** of all three β action must be allowed by all three policy types
|
| 20 |
+
- **Explicit deny always wins**: In every evaluation scenario, an explicit deny in any applicable policy overrides any allow
|
| 21 |
+
- Some services (e.g., S3) allow requests from anonymous/unauthenticated users, skipping the authentication step
|
| 22 |
+
|
| 23 |
+
## Commands and Syntax
|
| 24 |
+
- To check organization membership via CLI, the principal needs `organizations:DescribeOrganization` permission
|
| 25 |
+
- No specific CLI commands are documented on this page beyond referencing the AWS CLI and API
|
| 26 |
+
|
| 27 |
+
## Relationships
|
| 28 |
+
- **IAM Policies** (identity-based): Core input to all evaluation scenarios
|
| 29 |
+
- **Resource-based policies**: Combined as union with identity-based in same-account access
|
| 30 |
+
- **Permission boundaries**: Act as a ceiling on identity-based policy permissions (intersection)
|
| 31 |
+
- **AWS Organizations SCPs/RCPs**: Act as guardrails across the organization (intersection with identity-based and each other)
|
| 32 |
+
- **S3**: Notable exception β allows some anonymous requests without authentication
|
| 33 |
+
|
| 34 |
+
## Exam-Relevant Points
|
| 35 |
+
- **Union vs. Intersection is the critical distinction**: Identity + Resource-based = union; Identity + Boundary = intersection; Identity + SCP + RCP = intersection
|
| 36 |
+
- Explicit deny **always** overrides allow regardless of policy type
|
| 37 |
+
- Adding a permissions boundary can only **reduce** (never expand) effective permissions
|
| 38 |
+
- With Organizations, an action must be allowed by **all three**: identity-based policy, SCP, and RCP
|
| 39 |
+
- Authentication is the **first** step, but is skipped for some services allowing anonymous access (S3)
|
| 40 |
+
- To check if an SCP/RCP is denying access, contact your AWS Organizations administrator
|
| 41 |
+
|
entries/2026/03/08/iam-policy-types.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_managed-vs-inline.html
|
| 3 |
+
source: sources/iam-policy-types.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 17:22
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
This page covers the three types of identity-based policies in AWS IAM: AWS managed policies, customer managed policies, and inline policies. It explains when to use each type, how they differ in terms of ownership, modifiability, and attachment scope, and provides examples of common AWS managed policy categories.
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
|
| 15 |
+
- **AWS managed policies** β standalone policies created and maintained by AWS; have their own ARN (e.g., `arn:aws:iam::aws:policy/IAMReadOnlyAccess`); cannot be modified by customers; automatically updated by AWS when new services/APIs launch
|
| 16 |
+
- **Customer managed policies** β standalone policies you create in your own account; fully editable; can be attached to multiple principals; best practice is to start by copying an AWS managed policy and customizing it
|
| 17 |
+
- **Inline policies** β embedded directly in a single IAM identity (user, group, or role); strict one-to-one relationship; deleted when the identity is deleted; each role/user gets its own copy even if the policy content is identical
|
| 18 |
+
- **Standalone policy** β a policy with its own ARN, independent of any identity (both AWS managed and customer managed are standalone)
|
| 19 |
+
- AWS managed policy categories:
|
| 20 |
+
- **Full access** β e.g., `AmazonDynamoDBFullAccess`, `IAMFullAccess`
|
| 21 |
+
- **Power-user** β full service access but no user/group management
|
| 22 |
+
- **Partial-access** β specific access levels (read-only, write-only)
|
| 23 |
+
- **Job function** β aligned to IT roles (e.g., `AdministratorAccess`, `PowerUserAccess`); maintained by AWS as services evolve
|
| 24 |
+
|
| 25 |
+
## Commands and Syntax
|
| 26 |
+
|
| 27 |
+
No CLI commands on this page. Key ARN pattern for AWS managed policies:
|
| 28 |
+
```
|
| 29 |
+
arn:aws:iam::aws:policy/<PolicyName>
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
## Relationships
|
| 33 |
+
|
| 34 |
+
- **IAM identities** (users, groups, roles) β policies attach to these principals to grant permissions
|
| 35 |
+
- **IAM policy evaluation** β these policy types feed into the evaluation logic that determines allow/deny
|
| 36 |
+
- **Permission boundaries** β interact with managed policies to cap effective permissions
|
| 37 |
+
- **Service-linked roles** β use AWS managed policies specific to a service
|
| 38 |
+
- **IAM best practices** β recommend managed policies over inline policies for reusability and auditability
|
| 39 |
+
|
| 40 |
+
## Exam-Relevant Points
|
| 41 |
+
|
| 42 |
+
- AWS managed policies **cannot** be modified by customers; only AWS updates them
|
| 43 |
+
- Customer managed policies and inline policies **can** be modified by the customer
|
| 44 |
+
- A single AWS managed or customer managed policy can be attached to **multiple** principals, even across accounts (for AWS managed)
|
| 45 |
+
- Inline policies maintain a **strict one-to-one** relationship with an identity and are **deleted with the identity**
|
| 46 |
+
- Two roles with identical inline policy content are **not sharing** a policy β each has its own independent copy
|
| 47 |
+
- **Job function policies** (e.g., `AdministratorAccess`, `PowerUserAccess`) are AWS managed and auto-updated
|
| 48 |
+
- `AdministratorAccess` grants full access + permissions delegation; `PowerUserAccess` grants full access except limited IAM and Organizations access
|
| 49 |
+
- Best practice: prefer **managed policies over inline policies** for reusability and central management
|
| 50 |
+
- When AWS updates a managed policy, the change **automatically applies** to all attached principals
|
| 51 |
+
|
entries/2026/03/08/iam-roles.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html
|
| 3 |
+
source: sources/iam-roles.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 17:22
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
|
| 12 |
+
IAM roles are AWS identities with specific permissions that can be assumed by users, applications, or services to obtain temporary security credentials. Unlike IAM users, roles are not tied to a single person and lack long-term credentials (passwords or access keys). Roles are the primary mechanism for delegating access across accounts, granting AWS service permissions, and federating external identities.
|
| 13 |
+
|
| 14 |
+
## Key Concepts
|
| 15 |
+
|
| 16 |
+
- **IAM Role**: An assumable identity that provides temporary security credentials for a session, rather than long-term credentials
|
| 17 |
+
- **Trust Policy**: A required resource-based JSON policy attached to a role that defines which principals (users, roles, accounts, services) can assume it
|
| 18 |
+
- **Permissions Policy**: An identity-based policy attached to the role defining what actions/resources the role can use
|
| 19 |
+
- **Service Role**: An IAM role that an AWS service assumes to perform actions on your behalf; IAM admins can create, modify, and delete these
|
| 20 |
+
- **Service-Linked Role**: A special service role owned by the AWS service itself; IAM admins can view but **not edit** its permissions. Must delete related resources before deleting the role
|
| 21 |
+
- **Role Chaining**: Assuming a second role from within a first assumed role; **limits session to 1 hour maximum** regardless of individual role max session duration settings
|
| 22 |
+
- **Delegation**: Granting cross-account access by creating a role with both a trust policy (who can assume) and permissions policy (what they can do)
|
| 23 |
+
- **External ID**: An additional parameter for secure role assumption between accounts not controlled by the same organization
|
| 24 |
+
- **Transitive Session Tags**: Session tags that propagate through all subsequent sessions in a role chain
|
| 25 |
+
- Roles can be assumed by: IAM users (same or cross-account), other IAM roles, service principals, external IdP-authenticated users (SAML 2.0 or OIDC)
|
| 26 |
+
- A user who assumes a role **temporarily gives up their own permissions** and takes on the role's permissions
|
| 27 |
+
|
| 28 |
+
## Commands and Syntax
|
| 29 |
+
|
| 30 |
+
- **AssumeRole API**: Use `DurationSeconds` parameter (up to 43200 seconds / 12 hours) to set session length β but role chaining caps this at 3600 seconds (1 hour)
|
| 31 |
+
- **Console**: Switch roles via the AWS Management Console role-switching interface
|
| 32 |
+
- **CLI/API**: Role chaining supported through CLI and API calls
|
| 33 |
+
|
| 34 |
+
## Relationships
|
| 35 |
+
|
| 36 |
+
- **IAM Users**: Roles recommended over users in almost all cases; IAM users only for edge cases (WordPress plugins, third-party clients without IdP support, CodeCommit SSH/service-specific credentials, emergency access)
|
| 37 |
+
- **IAM Identity Center**: Preferred for workforce authentication; IAM users/roles used where Identity Center isn't supported
|
| 38 |
+
- **STS (Security Token Service)**: Provides the temporary credentials when a role is assumed
|
| 39 |
+
- **Identity Federation (SAML 2.0 / OIDC)**: External identities map to IAM roles for AWS access
|
| 40 |
+
- **Permissions Boundaries**: Can limit maximum permissions of a role, but **cannot be applied to service-linked roles**
|
| 41 |
+
- **Resource-Based Policies**: Alternative to cross-account roles for some services (S3, Glacier, SNS, SQS)
|
| 42 |
+
- **IAM Roles Anywhere / ECS Anywhere**: Deliver temporary credentials to workloads running outside AWS
|
| 43 |
+
|
| 44 |
+
## Exam-Relevant Points
|
| 45 |
+
|
| 46 |
+
- Roles provide **temporary credentials**, not long-term credentials β no passwords or access keys
|
| 47 |
+
- **Role chaining limits sessions to 1 hour** β this overrides any configured maximum session duration
|
| 48 |
+
- Trust policies **cannot use wildcard (\*) as part of an ARN** in the Principal element
|
| 49 |
+
- Service-linked roles are **owned by the service** and permissions **cannot be edited** by IAM administrators
|
| 50 |
+
- You must **delete related resources before deleting a service-linked role**
|
| 51 |
+
- When assuming a role, a user **temporarily loses their own permissions**
|
| 52 |
+
- Cross-account access: role requires **both** a trust policy (on the trusting account's role) and a permissions policy (on the trusted account's user)
|
| 53 |
+
- Normal `AssumeRole` supports up to **12 hours** (43200 seconds); role chaining caps at **1 hour**
|
| 54 |
+
- IAM users are only recommended for: workloads that can't use roles, third-party tools without IdP support, CodeCommit SSH access, Amazon Keyspaces compatibility testing, and emergency/break-glass access
|
| 55 |
+
- No roles are created by default when you first create an AWS account
|
| 56 |
+
|
entries/2026/03/08/iam-service-linked-roles.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html
|
| 3 |
+
source: sources/iam-service-linked-roles.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 17:22
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
|
| 12 |
+
Service-linked roles are a special type of IAM role predefined and managed by an AWS service, containing all permissions that service needs to call other AWS services on your behalf. Unlike regular service roles (which IAM administrators can fully manage), service-linked roles are owned by the service β administrators can view but not edit their permissions. Creation and deletion may be automatic, service-managed, or manual via IAM.
|
| 13 |
+
|
| 14 |
+
## Key Concepts
|
| 15 |
+
|
| 16 |
+
- **Service-linked role vs. service role**: A service role is any IAM role a service assumes; a service-linked role is a *specific subtype* that is linked to and owned by the service, with predefined, uneditable permissions.
|
| 17 |
+
- Service-linked roles include both a **trust policy** and a **permissions policy**, neither of which can be attached to other IAM entities.
|
| 18 |
+
- Related resources **must be deleted before** the service-linked role itself can be deleted β this prevents accidental permission removal.
|
| 19 |
+
- Service-linked roles count toward the IAM roles-per-account quota, but **can exceed the limit** (only service-linked roles get this exception).
|
| 20 |
+
- **Indirect permissions**: Users who can invoke a service using a service-linked role gain indirect access to whatever that role can call (e.g., creating an RDS instance indirectly grants access to EC2, SNS, CloudWatch Logs, Kinesis through the RDS service-linked role).
|
| 21 |
+
- Tags **cannot be attached** to service-linked roles during creation.
|
| 22 |
+
- Role names **cannot be changed** after creation.
|
| 23 |
+
- Services may create the role automatically (e.g., on first resource creation), or you may need to create it manually via the IAM console, CLI, or API.
|
| 24 |
+
|
| 25 |
+
## Commands and Syntax
|
| 26 |
+
|
| 27 |
+
**Create a service-linked role (CLI):**
|
| 28 |
+
```bash
|
| 29 |
+
aws iam create-service-linked-role --aws-service-name SERVICE-NAME.amazonaws.com
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
**IAM policy to allow creating a specific service-linked role:**
|
| 33 |
+
```json
|
| 34 |
+
{
|
| 35 |
+
"Effect": "Allow",
|
| 36 |
+
"Action": "iam:CreateServiceLinkedRole",
|
| 37 |
+
"Resource": "arn:aws:iam::*:role/aws-service-role/SERVICE-NAME.amazonaws.com/SERVICE-LINKED-ROLE-NAME-PREFIX*",
|
| 38 |
+
"Condition": {"StringLike": {"iam:AWSServiceName": "SERVICE-NAME.amazonaws.com"}}
|
| 39 |
+
}
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
**IAM policy to allow creating any service-linked role:**
|
| 43 |
+
```json
|
| 44 |
+
{
|
| 45 |
+
"Effect": "Allow",
|
| 46 |
+
"Action": "iam:CreateServiceLinkedRole",
|
| 47 |
+
"Resource": "arn:aws:iam::*:role/aws-service-role/*"
|
| 48 |
+
}
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
**IAM policy to allow deleting a specific service-linked role:**
|
| 52 |
+
```json
|
| 53 |
+
{
|
| 54 |
+
"Effect": "Allow",
|
| 55 |
+
"Action": [
|
| 56 |
+
"iam:DeleteServiceLinkedRole",
|
| 57 |
+
"iam:GetServiceLinkedRoleDeletionStatus"
|
| 58 |
+
],
|
| 59 |
+
"Resource": "arn:aws:iam::*:role/aws-service-role/SERVICE-NAME.amazonaws.com/SERVICE-LINKED-ROLE-NAME-PREFIX*"
|
| 60 |
+
}
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
**Pass an existing role to a service:**
|
| 64 |
+
```json
|
| 65 |
+
{
|
| 66 |
+
"Effect": "Allow",
|
| 67 |
+
"Action": ["iam:PassRole"],
|
| 68 |
+
"Resource": "arn:aws:iam::account-id:role/my-role-for-XYZ"
|
| 69 |
+
}
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
**API call:** `CreateServiceLinkedRole` with service name parameter.
|
| 73 |
+
|
| 74 |
+
## Relationships
|
| 75 |
+
|
| 76 |
+
- **IAM Roles** β service-linked roles are a subtype of IAM roles with restricted management
|
| 77 |
+
- **IAM Policies** β permissions for creating/deleting service-linked roles are controlled via IAM policies; the `iam:AWSServiceName` condition key scopes creation
|
| 78 |
+
- **iam:PassRole** β alternative pattern where an existing role is passed to a service instead of creating a service-linked role
|
| 79 |
+
- **Service quotas** β service-linked roles count toward (but can exceed) the IAM roles-per-account limit
|
| 80 |
+
- **Specific services** (RDS, Lex, etc.) β each service defines its own service-linked role with specific permissions and service principal
|
| 81 |
+
|
| 82 |
+
## Exam-Relevant Points
|
| 83 |
+
|
| 84 |
+
- Service-linked roles **cannot have their permissions edited** by IAM administrators β they are defined by the service.
|
| 85 |
+
- You **must delete dependent resources first** before deleting a service-linked role.
|
| 86 |
+
- Service-linked roles are the **only IAM roles that can exceed** the account role limit.
|
| 87 |
+
- The **service principal** format (`SERVICE-NAME.amazonaws.com`) is case-sensitive and varies across services β do not guess it.
|
| 88 |
+
- **Indirect permissions** are a security consideration: granting a user access to a service that uses a service-linked role effectively grants indirect access to all services that role can call.
|
| 89 |
+
- The `iam:CreateServiceLinkedRole` action with `iam:AWSServiceName` condition key restricts which service-linked roles a principal can create.
|
| 90 |
+
- Deleting a service-linked role requires both `iam:DeleteServiceLinkedRole` and `iam:GetServiceLinkedRoleDeletionStatus` permissions.
|
| 91 |
+
- Tags **cannot** be attached to service-linked roles at creation time.
|
| 92 |
+
|
entries/2026/03/08/iam-temporary-credentials.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html
|
| 3 |
+
source: sources/iam-temporary-credentials.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 17:23
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
|
| 12 |
+
AWS Security Token Service (AWS STS) generates short-lived temporary security credentials that grant controlled access to AWS resources without requiring long-term access keys. These credentials are dynamically generated on request, automatically expire, and serve as the foundation for IAM roles, identity federation, and cross-account access patterns.
|
| 13 |
+
|
| 14 |
+
## Key Concepts
|
| 15 |
+
|
| 16 |
+
- **Temporary credentials** consist of an access key ID, secret access key, and a **session token** β all three are required for API calls
|
| 17 |
+
- Credentials can be configured to last from **a few minutes to several hours**, depending on the API used and role configuration
|
| 18 |
+
- Credentials are **not stored with the user** β they are generated dynamically by STS when requested
|
| 19 |
+
- After expiration, credentials **cannot be reused**; a new set must be requested
|
| 20 |
+
- Temporary credentials work **almost identically** to long-term access keys, with the addition of the session token
|
| 21 |
+
- Three key advantages over long-term credentials:
|
| 22 |
+
- No need to embed or distribute long-term secrets
|
| 23 |
+
- Can grant access without creating an IAM user (federation)
|
| 24 |
+
- Auto-expire with no need for rotation or explicit revocation
|
| 25 |
+
|
| 26 |
+
## Commands and Syntax
|
| 27 |
+
|
| 28 |
+
- **Global STS endpoint:** `https://sts.amazonaws.com`
|
| 29 |
+
- **Regional STS endpoints** are available in all supported regions to reduce latency
|
| 30 |
+
- Credentials from any region **work globally**
|
| 31 |
+
- Key STS API operations (referenced in doc):
|
| 32 |
+
- `AssumeRole` β cross-account access, delegation
|
| 33 |
+
- `AssumeRoleWithWebIdentity` β OIDC federation
|
| 34 |
+
- `AssumeRoleWithSAML` β SAML 2.0 federation
|
| 35 |
+
- `SourceIdentity` attribute can be set during STS calls to track the original user through role chains
|
| 36 |
+
|
| 37 |
+
## Relationships
|
| 38 |
+
|
| 39 |
+
- **IAM Roles** β temporary credentials are the mechanism that makes roles work; assuming a role returns STS credentials
|
| 40 |
+
- **Identity Federation (OIDC / SAML)** β external identity providers authenticate users, STS issues temporary credentials
|
| 41 |
+
- **Cross-Account Access** β STS enables delegation by issuing credentials scoped to a role in another account
|
| 42 |
+
- **EC2 Instance Roles** β instance metadata service delivers STS credentials to applications on EC2, eliminating stored keys
|
| 43 |
+
- **Amazon Cognito** β recommended over direct STS OIDC federation for mobile apps; wraps STS with sync and guest access features
|
| 44 |
+
- **MFA** β STS can require MFA for sensitive API actions via condition keys in role trust policies
|
| 45 |
+
- **IAM Access Analyzer** β evaluates whether principals outside your trust zone can assume your roles
|
| 46 |
+
|
| 47 |
+
## Exam-Relevant Points
|
| 48 |
+
|
| 49 |
+
- Temporary credentials are **short-term, automatically expire, and do not need explicit revocation**
|
| 50 |
+
- STS is a **global service by default** but supports **regional endpoints** β credentials from any region work globally
|
| 51 |
+
- Two federation types: **OIDC federation** (web/mobile identity providers) and **SAML 2.0 federation** (enterprise SSO/Active Directory)
|
| 52 |
+
- For **mobile apps**, AWS recommends **Amazon Cognito** over direct STS web identity federation
|
| 53 |
+
- EC2 instances should use **instance roles** (not embedded access keys) β credentials are delivered via the instance metadata service
|
| 54 |
+
- A **custom identity broker** can be built for organizations whose IdP doesn't support SAML 2.0
|
| 55 |
+
- `SourceIdentity` enables tracing the **original caller** through a chain of role assumptions
|
| 56 |
+
- Temporary credentials are accepted by **most but not all** AWS services β check the services-that-work-with-IAM reference
|
| 57 |
+
|
entries/2026/03/08/iam-users.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users.html
|
| 3 |
+
source: sources/iam-users.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 17:23
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
|
| 12 |
+
IAM users are entities created within an AWS account that represent human users or workloads interacting with AWS resources. Each IAM user has a name and credentials, and is associated with exactly one AWS account. AWS best practices recommend using federation with identity providers and temporary credentials instead of IAM users with long-term credentials, reserving IAM users for specific use cases not supported by federated users.
|
| 13 |
+
|
| 14 |
+
## Key Concepts
|
| 15 |
+
|
| 16 |
+
- An IAM user consists of a friendly name, an ARN, and a unique identifier
|
| 17 |
+
- IAM users with administrator permissions are **not** the same as the AWS account root user
|
| 18 |
+
- A new IAM user has **no permissions by default** β permissions must be explicitly granted
|
| 19 |
+
- Each IAM user is associated with **one and only one** AWS account
|
| 20 |
+
- All AWS activity by IAM users is billed to the owning account
|
| 21 |
+
- IAM users can represent people or applications (service accounts)
|
| 22 |
+
- IAM user names appear in ARNs β avoid personally identifying information in names
|
| 23 |
+
- IAM users created via CLI or API have **no credentials by default**; credentials must be explicitly created
|
| 24 |
+
|
| 25 |
+
## Credentials Types
|
| 26 |
+
|
| 27 |
+
- **Console password** β for interactive sign-in to the AWS Management Console; disabling it does not remove programmatic access or prevent assuming roles
|
| 28 |
+
- **Access keys** β for programmatic access (CLI, SDK, API); more secure alternatives should be considered first
|
| 29 |
+
- **SSH keys** β OpenSSH public keys for authenticating with CodeCommit
|
| 30 |
+
- **Server certificates** β SSL/TLS certificates for AWS services; use ACM instead unless the region doesn't support it
|
| 31 |
+
|
| 32 |
+
## Commands and Syntax
|
| 33 |
+
|
| 34 |
+
- IAM user ARN format: `arn:aws:iam::account-ID-without-hyphens:user/UserName`
|
| 35 |
+
- Console users can authenticate for CLI/SDK via `aws login` (requires `SignInLocalDevelopmentAccess` permissions)
|
| 36 |
+
- **Credential report** β can be generated and downloaded listing all IAM users and credential status (password/access key age, MFA devices)
|
| 37 |
+
- **Never embed access keys directly in application code** β use SDK credential providers or known locations
|
| 38 |
+
|
| 39 |
+
## Relationships
|
| 40 |
+
|
| 41 |
+
- **IAM Roles** β preferred over IAM users for temporary credentials and service accounts
|
| 42 |
+
- **IAM Policies / Permissions** β attached to users to grant access; new users have none by default
|
| 43 |
+
- **Permission Boundaries** β advanced feature to cap the maximum permissions an identity-based policy can grant to a user or role
|
| 44 |
+
- **MFA** β best practice is to require MFA for all IAM users
|
| 45 |
+
- **Root User** β distinct from any IAM user, even those with administrator permissions
|
| 46 |
+
- **IAM Identity Center / Federation** β recommended alternative to IAM users for human access
|
| 47 |
+
- **ACM** β preferred over IAM server certificates for SSL/TLS management
|
| 48 |
+
- **CodeCommit** β uses IAM SSH keys for authentication
|
| 49 |
+
|
| 50 |
+
## Exam-Relevant Points
|
| 51 |
+
|
| 52 |
+
- New IAM users have **zero permissions** by default (implicit deny)
|
| 53 |
+
- IAM users created via CLI/API have **no credentials** by default
|
| 54 |
+
- Each IAM user belongs to **exactly one** AWS account
|
| 55 |
+
- An IAM admin user is **not** the root user
|
| 56 |
+
- Disabling console password does **not** revoke programmatic access or prevent role assumption
|
| 57 |
+
- Best practice: use federation/temporary credentials over IAM users with long-term credentials
|
| 58 |
+
- Best practice: enable MFA for all IAM users
|
| 59 |
+
- Best practice: never embed access keys in application code
|
| 60 |
+
- Best practice: regularly audit for unused passwords and access keys using credential reports
|
| 61 |
+
- IAM resources are subject to **quotas** (account-level limits on number and size)
|
| 62 |
+
|
entries/2026/03/08/rds-backups.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html
|
| 3 |
+
source: sources/rds-backups.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:35
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
This page covers Amazon RDS automated and manual backup mechanisms, including how storage volume snapshots work, backup retention, point-in-time recovery (PITR), and backup storage management. It applies to both Single-AZ DB instances and Multi-AZ DB clusters.
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
- **Automated backups** create storage volume snapshots of the **entire DB instance**, not individual databases, during a configured backup window.
|
| 15 |
+
- Backups are retained according to a user-specified **backup retention period**.
|
| 16 |
+
- **Point-in-time recovery (PITR)** allows restoring to any point within the retention period.
|
| 17 |
+
- The **first snapshot is a full backup**; subsequent snapshots are **incremental** (only changed data).
|
| 18 |
+
- **Multi-volume configurations** are fully supported β snapshots, backups, and PITR cover all storage volumes (primary + additional).
|
| 19 |
+
- Automated backups require the DB instance to be in the **`available` state** β they do not occur during states like `storage_full`.
|
| 20 |
+
- Automated backups are **blocked** while a DB snapshot copy is running in the same Region for the same database.
|
| 21 |
+
- **Manual DB snapshots** can be created at any time and are not automatically deleted.
|
| 22 |
+
- Limit of **100 manual snapshots per Region**.
|
| 23 |
+
- Backups are stored in **Amazon S3**.
|
| 24 |
+
|
| 25 |
+
## Commands and Syntax
|
| 26 |
+
No CLI commands are shown on this page. Key operational actions referenced:
|
| 27 |
+
- **Creating a DB snapshot** (manual) β see `USER_CreateSnapshot`
|
| 28 |
+
- **Copying a DB snapshot** β see `USER_CopySnapshot` (can copy across Regions)
|
| 29 |
+
- **Sharing a DB snapshot** β see `USER_ShareSnapshot` (manual snapshots only)
|
| 30 |
+
|
| 31 |
+
## Relationships
|
| 32 |
+
- **Multi-AZ deployments**: Backup behavior applies to both Single-AZ instances and Multi-AZ DB clusters.
|
| 33 |
+
- **Amazon S3**: Underlying storage for all RDS backups.
|
| 34 |
+
- **Cross-Region copies**: Copying snapshots to another Region increases backup storage costs in the destination Region.
|
| 35 |
+
- **DB instance deletion**: Ties into retention decisions β automated backups can optionally be retained or deleted with the instance; a final snapshot can be created.
|
| 36 |
+
- **Snapshot sharing**: Only manual snapshots can be shared (not automated).
|
| 37 |
+
|
| 38 |
+
## Exam-Relevant Points
|
| 39 |
+
- Automated backups require `available` state β know the failure conditions (`storage_full`, concurrent snapshot copy in same Region).
|
| 40 |
+
- First snapshot = full; subsequent = incremental.
|
| 41 |
+
- PITR restores to any point within the backup retention period.
|
| 42 |
+
- **100 manual snapshots per Region** limit.
|
| 43 |
+
- When deleting a DB instance: automated backups are deleted **unless** you explicitly choose to retain them; deleted automated backups **cannot be recovered**.
|
| 44 |
+
- Manual snapshots are **never automatically deleted**.
|
| 45 |
+
- Backups are stored in **S3** (not EBS).
|
| 46 |
+
- You can **copy** both automatic and manual snapshots, but can only **share** manual snapshots.
|
| 47 |
+
- Copying a snapshot cross-Region increases backup storage in the destination Region.
|
| 48 |
+
|
entries/2026/03/08/rds-feature-parity-cross-reference-with-postgresql-expert.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# RDS Feature Parity Cross-Reference with PostgreSQL Expert
|
| 2 |
+
|
| 3 |
+
**Date:** 2026-03-08
|
| 4 |
+
**Time:** 17:05
|
| 5 |
+
|
| 6 |
+
## Summary
|
| 7 |
+
|
| 8 |
+
Cross-reference between the AWS expert's RDS beliefs and the postgresql-expert's gap analysis (entries/2026/03/08/rds-parity-gap-analysis.md). Maps AWS-side knowledge to self-managed replacement gaps to support migration planning.
|
| 9 |
+
|
| 10 |
+
## Well-Covered Areas (Both Experts)
|
| 11 |
+
|
| 12 |
+
These areas have strong coverage from both sides β the AWS expert documents what RDS provides, the PostgreSQL expert documents the self-managed equivalent:
|
| 13 |
+
|
| 14 |
+
| RDS Feature | AWS Expert Beliefs | PostgreSQL Expert Coverage |
|
| 15 |
+
|---|---|---|
|
| 16 |
+
| Multi-AZ failover | `rds-multi-az-instance-standby-no-reads`, `rds-multi-az-cluster-two-standbys-serve-reads`, `rds-multi-az-cluster-spans-3-azs` | ~75 Patroni beliefs |
|
| 17 |
+
| Read replicas | `rds-read-replica-async-replication`, `rds-no-circular-replication`, `rds-chained-replicas-mysql-mariadb-postgres-only` | ~222 streaming/logical replication beliefs |
|
| 18 |
+
| Backups / PITR | `rds-automated-backups-snapshot-entire-instance`, `rds-first-snapshot-full-subsequent-incremental`, `rds-backups-stored-in-s3` | ~119 pgBackRest beliefs |
|
| 19 |
+
| Storage types | `rds-three-storage-types`, `rds-gp3-baseline-3000-iops-125-mibs`, `rds-io2-block-express-up-to-256000-iops`, `rds-gp2-iops-formula` | ~23 tablespace beliefs (infrastructure gap) |
|
| 20 |
+
| Connection pooling | `rds-overview` mentions RDS Proxy | Deep PgBouncer coverage |
|
| 21 |
+
| SSL/TLS | `rds-ssl-tls-all-major-engines` | ~31 PostgreSQL + PgBouncer TLS beliefs |
|
| 22 |
+
| Monitoring | `rds-monitoring` entry covers Performance Insights, CloudWatch, Enhanced Monitoring | ~28 pg_stat_* beliefs |
|
| 23 |
+
| Pricing/billing | `rds-compute-billed-per-second-min-10-minutes`, `rds-six-billing-components`, `rds-provisioned-iops-billed-regardless-of-use` | N/A (self-managed has different cost model) |
|
| 24 |
+
|
| 25 |
+
## Gap Areas Where AWS Expert Adds Context
|
| 26 |
+
|
| 27 |
+
These are gaps identified in the postgresql-expert that our AWS expert beliefs can inform:
|
| 28 |
+
|
| 29 |
+
### Encryption at Rest
|
| 30 |
+
- **RDS provides:** AES-256 encryption, automatic and transparent (`rds-encryption-at-rest-aes-256`)
|
| 31 |
+
- **PostgreSQL gap:** 0 beliefs. No native encryption at rest.
|
| 32 |
+
- **Migration implication:** Self-managed must use LUKS/dm-crypt at infrastructure layer, plus pgcrypto for column-level. RDS makes this invisible β teams migrating off RDS may not realize they need to provision this separately.
|
| 33 |
+
|
| 34 |
+
### Storage Autoscaling and IOPS
|
| 35 |
+
- **RDS provides:** gp2 auto-scales IOPS with volume size (3 IOPS/GiB), gp3 has configurable baseline (3000 IOPS, 125 MiB/s), io2 Block Express up to 256K IOPS. Instance-level cap overrides volume cap (`rds-instance-level-iops-cap-overrides-volume`). Disk space alarm at 85% (`rds-disk-space-85-percent-threshold`).
|
| 36 |
+
- **PostgreSQL gap:** ~23 beliefs but mostly tablespace-level. No infrastructure IOPS tuning.
|
| 37 |
+
- **Migration implication:** Teams must understand gp3 baseline IOPS when sizing self-managed EBS volumes or equivalent storage. The RDS `rds-gp2-iops-formula` (3 IOPS per GiB, burst to 3000) is critical for sizing decisions.
|
| 38 |
+
|
| 39 |
+
### Automated Patching
|
| 40 |
+
- **RDS provides:** Managed minor version patching, maintenance windows, automatic software installation (per responsibility matrix in `rds-overview`).
|
| 41 |
+
- **PostgreSQL gap:** No documented minor version patching runbook.
|
| 42 |
+
- **Migration implication:** Need to build a patch management process. RDS handles OS patching, DB software patching, and DB software installation β all three become customer responsibility.
|
| 43 |
+
|
| 44 |
+
### Monitoring and Observability
|
| 45 |
+
- **RDS provides:** CloudWatch metrics (automatic, every 60s), Performance Insights, Enhanced Monitoring (real-time OS metrics), EventBridge integration, DevOps Guru (`cloudwatch-agent-required-for-os-metrics`, `ec2-basic-monitoring-5min-detailed-1min`).
|
| 46 |
+
- **PostgreSQL gap:** ~3 beliefs on observability stack. Need Prometheus + Grafana + postgres_exporter.
|
| 47 |
+
- **Migration implication:** RDS gives you 5+ monitoring systems out of the box. Self-managed starts with zero. The CloudWatch beliefs document exactly what metrics are available and at what granularity β useful as a requirements checklist for the replacement stack.
|
| 48 |
+
|
| 49 |
+
### VPC and Networking
|
| 50 |
+
- **RDS provides:** Default VPC placement, no extra charge, dual-stack IPv4/IPv6, security groups (`rds-default-vpc-unless-specified`, `rds-vpc-no-extra-charge`, `rds-supports-dual-stack-ipv4-ipv6`).
|
| 51 |
+
- **PostgreSQL gap:** ~1 belief on load balancing/read routing.
|
| 52 |
+
- **Migration implication:** RDS DNS endpoints handle read/write splitting automatically. Self-managed needs HAProxy or Pgpool-II plus DNS management.
|
| 53 |
+
|
| 54 |
+
## RDS Features With No Self-Managed Equivalent
|
| 55 |
+
|
| 56 |
+
These RDS features have no direct self-managed replacement and represent permanent trade-offs:
|
| 57 |
+
|
| 58 |
+
- **One-click scaling:** `rds-instance-class-naming-convention` β change instance class via API. Self-managed requires migration or downtime.
|
| 59 |
+
- **Cross-region read replicas:** `rds-cross-region-replication-async-multi-az-sync` β built-in. Self-managed needs Patroni standby clusters + WAN configuration.
|
| 60 |
+
- **Snapshot sharing:** `rds-only-manual-snapshots-can-be-shared` β RDS snapshots can be shared across accounts. No pgBackRest equivalent.
|
| 61 |
+
- **Reserved Instance pricing:** `rds-reserved-instances-1-or-3-year` β up to 60% discount for commitment. Self-managed has different economics.
|
| 62 |
+
- **Data Layer Versioning:** `rds-dlv-fixed-1024gib-3000iops-piops-only` β specialized storage tier.
|
| 63 |
+
|
| 64 |
+
## Recommendations
|
| 65 |
+
|
| 66 |
+
1. **Use AWS expert beliefs as requirements checklist** when planning RDS-to-self-managed migration β each belief is a feature that needs a replacement or conscious trade-off
|
| 67 |
+
2. **Prioritize postgresql-expert gaps** that the AWS expert shows are transparently handled by RDS (encryption, patching, monitoring) β teams won't know they need these until they're missing
|
| 68 |
+
3. **Build companion experts** for infrastructure (Ansible/Terraform), observability (Prometheus/Grafana), and Linux administration to cover the full operational layer
|
| 69 |
+
4. **Cost analysis** would benefit from combining `rds-six-billing-components` with self-managed infrastructure costs β neither expert currently covers TCO comparison
|
entries/2026/03/08/rds-instance-classes.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html
|
| 3 |
+
source: sources/rds-instance-classes.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:36
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
This page introduces Amazon RDS DB instance classes, which determine the computation and memory capacity of an RDS DB instance. It explains the naming convention (type + size) and links to subtopics covering supported engines, regions, hardware specs, and modification procedures.
|
| 14 |
+
|
| 15 |
+
## Key Concepts
|
| 16 |
+
- **DB instance class** determines compute and memory capacity of an RDS DB instance.
|
| 17 |
+
- A DB instance class consists of a **type** (e.g., `db.r6g`) and a **size** (e.g., `2xlarge`), combined as `db.r6g.2xlarge`.
|
| 18 |
+
- `db.r6g` is a **memory-optimized** class type powered by **AWS Graviton2** processors.
|
| 19 |
+
- Instance class choice depends on **processing power and memory requirements**.
|
| 20 |
+
- DB instance classes vary by supported DB engines and AWS Regions.
|
| 21 |
+
- Oracle RDS supports processor configuration at the instance class level.
|
| 22 |
+
|
| 23 |
+
## Commands and Syntax
|
| 24 |
+
- **Changing instance class**: Modify the DB instance via the standard RDS modification process (console, CLI, or API) as described in "Modifying an Amazon RDS DB instance."
|
| 25 |
+
- No specific CLI commands on this page, but the modification workflow applies (e.g., `aws rds modify-db-instance --db-instance-class <new-class>`).
|
| 26 |
+
|
| 27 |
+
## Relationships
|
| 28 |
+
- **DB instance class types** β subtopic covering categories (general purpose, memory-optimized, burstable).
|
| 29 |
+
- **Supported DB engines** β not all instance classes support all engines (MySQL, PostgreSQL, Oracle, SQL Server, MariaDB).
|
| 30 |
+
- **Region support** β instance class availability varies by AWS Region.
|
| 31 |
+
- **Hardware specifications** β vCPUs, memory, networking, and storage details per class.
|
| 32 |
+
- **RDS for Oracle processor configuration** β Oracle-specific CPU/threading options.
|
| 33 |
+
- **DB instance modification** β changing the class is done through the standard modify workflow.
|
| 34 |
+
|
| 35 |
+
## Exam-Relevant Points
|
| 36 |
+
- Know the **naming convention**: `db.<type>.<size>` (e.g., `db.r6g.2xlarge`).
|
| 37 |
+
- `db.r6g` uses **AWS Graviton2** processors and is **memory-optimized**.
|
| 38 |
+
- Changing a DB instance class requires **modifying the DB instance** (can cause downtime depending on apply timing β immediately vs. next maintenance window).
|
| 39 |
+
- Instance class availability is **region-dependent** and **engine-dependent**.
|
| 40 |
+
- Understand the distinction between instance class **types** (general purpose, memory-optimized, burstable) and **sizes** within those types.
|
| 41 |
+
|
entries/2026/03/08/rds-monitoring.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Monitoring.html
|
| 3 |
+
source: sources/rds-monitoring.md
|
| 4 |
+
---
|
| 5 |
+
# Overview
|
| 6 |
+
|
| 7 |
+
**Date:** 2026-03-08
|
| 8 |
+
**Time:** 16:36
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
This page covers the fundamentals of monitoring Amazon RDS instances, including how to create a monitoring plan, establish performance baselines, and interpret key performance metrics. It serves as a gateway to more detailed monitoring topics like CloudWatch, Performance Insights, Enhanced Monitoring, and DevOps Guru.
|
| 12 |
+
|
| 13 |
+
## Key Concepts
|
| 14 |
+
- **Monitoring plan**: A structured approach answering what to monitor, how often, with which tools, who is responsible, and who gets alerted.
|
| 15 |
+
- **Performance baseline**: Historical measurements of performance under varying load conditions, used to detect anomalies and trending variances.
|
| 16 |
+
- **Baseline metrics to track**: Network throughput, client connections, I/O operations (read/write/metadata), and burst credit balances.
|
| 17 |
+
- **Store historical data**: Enables comparison of current vs. past performance and distinguishes normal patterns from anomalies.
|
| 18 |
+
- **Performance issues typically stem from**: CPU/RAM consumption, disk space, network traffic, database connections, and IOPS.
|
| 19 |
+
|
| 20 |
+
## Commands and Syntax
|
| 21 |
+
- **Constraining database connections**: Associate the DB instance with a parameter group where `User Connections` is set to a non-zero value (default is 0 = unlimited). Use an existing or new parameter group.
|
| 22 |
+
- No CLI commands are directly provided on this page; it references parameter groups via the console/API.
|
| 23 |
+
|
| 24 |
+
## Relationships
|
| 25 |
+
- **CloudWatch**: Primary metrics monitoring integration (`monitoring-cloudwatch.html`)
|
| 26 |
+
- **Performance Insights**: DB load monitoring and combined metrics dashboard (`USER_PerfInsights.html`, `Viewing_Unifiedmetrics.html`)
|
| 27 |
+
- **Enhanced Monitoring**: OS-level metrics beyond CloudWatch (`USER_Monitoring.OS.html`)
|
| 28 |
+
- **CloudWatch Database Insights**: Dedicated database monitoring view (`USER_DatabaseInsights.html`)
|
| 29 |
+
- **DevOps Guru for RDS**: Automated anomaly detection and analysis (`devops-guru-for-rds.html`)
|
| 30 |
+
- **Parameter Groups**: Used to tune settings like `User Connections` (`USER_WorkingWithParamGroups.html`)
|
| 31 |
+
- **Events, Logs, and Streams**: Complementary monitoring covered separately (`CHAP_Monitor_Logs_Events.html`)
|
| 32 |
+
- **Read Replicas / Instance Classes**: Scaling options when performance falls outside baseline
|
| 33 |
+
|
| 34 |
+
## Exam-Relevant Points
|
| 35 |
+
- Disk space consumption above **85%** warrants investigation β this is a specific threshold to remember.
|
| 36 |
+
- The `User Connections` parameter defaults to **0 (unlimited)** and is controlled via **parameter groups**, not instance settings directly.
|
| 37 |
+
- **Burst credit balances** should be monitored β relevant to burstable instance classes (e.g., `db.t3`).
|
| 38 |
+
- Performance optimization options include changing the **instance class** or adding **read replicas**.
|
| 39 |
+
- IOPS performance improves when the **working set fits into memory**, minimizing disk I/O.
|
| 40 |
+
- A monitoring plan should be created **before** you start monitoring β not reactively.
|
| 41 |
+
- Baselines must be measured under **different load conditions at various times** β not just peak or average.
|
| 42 |
+
|