diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..ba0fd1822157a7b6604d85946d37292d29769365 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +reasons.db +reasons.db-shm +reasons.db-wal diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000000000000000000000000000000000000..00f37d833a6f0a4b340968025ac82c917ba130f0 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,40 @@ +# CLAUDE.md — AWS Expert + +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. + +## Mission + +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. + +## How to Answer Questions + +1. `reasons search "relevant terms"` to find beliefs +2. `reasons explain NODE` to trace justification chains +3. Synthesize an answer grounded in the beliefs found +4. Cite node IDs so the questioner can audit the chain + +## What This Expert Knows + +- DynamoDB: capacity billing, GSI behavior, TTL, global tables, autoscaling pitfalls, DAX caching +- CloudTrail: audit blind spots, Lake configuration, KMS irrevocability, event data stores +- IAM: policy evaluation, cross-account access, permission boundaries, default postures +- CloudFormation: stack lifecycle, drift detection, resource dependencies, rollback behavior +- RDS/Aurora: backup strategies, PITR, parameter groups, Multi-AZ, read replicas +- S3: bucket policies, lifecycle rules, versioning, cross-region replication +- Networking: VPC design, security groups, NACLs, ENI limits, Route 53, CloudFront +- Compute: EC2 instance lifecycle, spot interruptions, ECS/EKS, Lambda cold starts +- Messaging: SQS visibility timeout, dead letter queues, FIFO ordering +- Security: default hardening requirements, KMS key management, ACM certificates +- Operations: backup/DR posture, observability gaps, FIS chaos engineering + +## Skills Available + +```bash +reasons search QUERY # Find beliefs by keyword +reasons show NODE # Full details + dependents +reasons explain NODE # Trace justification chain +reasons list # All nodes with status +reasons list --premises # Foundation beliefs +reasons list --has-dependents # Load-bearing beliefs +reasons export-markdown -o beliefs.md # Export readable snapshot +``` diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..01c067ac8f8360af709379e6d5c5bedfe8295c02 --- /dev/null +++ b/README.md @@ -0,0 +1,158 @@ +--- +schema_version: "1.0" +type: eem +project_name: aws-expert +domain: + - aws + - cloud-infrastructure + - devops + - security +license: mit +base_network: null +source_repos: [] +beliefs_total: 2775 +beliefs_in: 2775 +beliefs_out: 0 +premises: 2615 +derived: 160 +nogoods: 0 +generator: ftl-reasons/0.41.0 +--- + +# AWS Expert + +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. + +## What is this? + +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. + +## Stats + +| Metric | Value | +|--------|-------| +| Total beliefs | 2,775 | +| Status | 2,775 IN / 0 OUT | +| Premises (observations) | 2,615 | +| Derived (justified conclusions) | 160 | +| Nogoods (contradictions) | 0 | +| Retraction rate | 0% | +| Max derivation depth | 8 | + +## Top Topics + +| Topic | Beliefs | +|-------|---------| +| dynamodb | 723 | +| cloudtrail | 416 | +| iam | 261 | +| account | 144 | +| rds | 134 | +| cfn | 132 | +| table | 128 | +| lake | 126 | +| default | 125 | +| max | 107 | +| region | 102 | +| backup | 98 | +| vpc | 95 | +| aws | 93 | +| ec2 | 89 | +| policy | 83 | +| data | 82 | +| cross | 80 | + +## Domain Coverage + +- **DynamoDB**: capacity billing, GSI behavior, autoscaling pitfalls, TTL audit gaps, global tables consistency modes, DAX caching, item size overhead, cross-region replication (692 beliefs) +- **CloudTrail**: audit blind spots, Lake configuration, KMS key irrevocability, event data stores, data event logging gaps, automated operation blind spots (354 beliefs) +- **IAM**: policy evaluation, cross-account access, permission boundaries, default security posture, resource policies (222 beliefs) +- **CloudFormation**: stack lifecycle, drift detection, resource dependencies, rollback behavior, nested stacks (128 beliefs) +- **RDS/Aurora**: backup strategies, PITR windows, parameter groups, Multi-AZ failover, read replicas, lifecycle state transitions (139 beliefs) +- **S3**: bucket policies, lifecycle rules, versioning, cross-region replication, access points (119 beliefs) +- **EC2 & Compute**: instance lifecycle, spot interruptions, AMI management, EBS volumes, ENI limits (113 beliefs) +- **Networking**: VPC design, security groups, NACLs, Route 53 health checks, CloudFront distributions, EIP management (129 beliefs) +- **Backup & DR**: AWS Backup, PITR, cross-region backup, lifecycle transitions that degrade DR posture (65 beliefs) +- **DAX**: caching behavior, consistency implications, cluster management (61 beliefs) +- **CloudWatch**: metrics, alarms, log groups, observability investment ceilings (54 beliefs) +- **API Gateway**: REST vs HTTP APIs, throttling, authorization, stage management (89 beliefs) +- **SQS**: visibility timeout, dead letter queues, FIFO ordering, message retention (43 beliefs) +- **AppSync**: GraphQL resolvers, caching, authorization modes (31 beliefs) +- **Lambda**: cold starts, concurrency, event source mappings, resource limits (25 beliefs) +- **Container Services**: ECS task definitions, EKS node groups, ECR lifecycle policies (52 beliefs) +- **Security**: default hardening, KMS key management, ACM certificates, FIS chaos engineering (53 beliefs) +- **Additional topics**: ElastiCache, SES, CDK, spot instances, NoSQL Workbench patterns (remaining beliefs) + +## How to Use + +### Import into a reasons database + +```bash +reasons init +reasons import-json network.json +``` + +### Query beliefs + +```bash +reasons search "DynamoDB capacity billing" +reasons explain lifecycle-transitions-silently-degrade-dr-posture +reasons show cloudtrail-eds-kms-key-irrevocable +``` + +### Use as an MCP tool or CLI + +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. + +## Key Beliefs + +| Node | Summary | +|------|---------| +| `lifecycle-transitions-silently-degrade-dr-posture` | Routine feature toggling and DR restores lose configuration state (PITR windows, audit settings) | +| `cloudtrail-eds-kms-key-irrevocable` | Once a KMS key is associated with a CloudTrail Lake event data store, it cannot be changed or removed | +| `dynamodb-ttl-deletions-not-logged-cloudtrail` | DynamoDB TTL data plane deletion actions are NOT logged by CloudTrail | +| `dynamodb-capacity-billing-penalizes-small-items-disproportionately` | DynamoDB capacity billing includes three hidden overhead mechanisms beyond raw item size | +| `aws-defaults-require-systematic-hardening-across-dimensions` | AWS default configurations systematically favor ease-of-use over security across operations | +| `full-observability-has-hard-ceiling-despite-investment` | Even after closing CloudTrail's configurable gaps, fundamental blind spots remain | +| `dynamodb-global-tables-consistency-mode-immutable` | DynamoDB Global Tables consistency mode is set at creation and cannot be changed afterward | +| `dynamodb-autoscaling-new-gsi-no-auto-scaling` | Creating a GSI on an existing DynamoDB table does not auto-enable scaling on the GSI | +| `cloudtrail-audit-blind-spots-exist-for-automated-operations` | Certain automated and system-initiated operations create audit gaps | +| `protocol-safety-unfalsifiable-under-current-testing` | Distributed protocol safety claims are unfalsifiable under the current testing methodology | + +## Sources + +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. + +## Files + +| File | Description | +|------|-------------| +| `network.json` | Full belief network (machine-readable, portable) | +| `reasons.db` | SQLite database (gitignored, regenerate with `reasons import-json network.json`) | +| `CLAUDE.md` | Agent instructions for using this knowledge base | +| `entries/` | 655 exploration entries — raw observations behind the premises | + +## Quality + +- All 2,775 beliefs are IN (none retracted) +- 2,615 premises grounded in direct observations of AWS service behavior +- 160 derived beliefs justified from premises via SL justifications +- 0 nogoods — no contradictions detected +- Max derivation depth of 8, indicating multi-step reasoning chains +- Built and reviewed using ftl-reasons derive and review-beliefs pipeline + +## Limitations + +- Focused on AWS service behavior and defaults as of mid-2026 +- AWS services evolve rapidly; some beliefs may become stale as features change +- Heavier coverage of DynamoDB and CloudTrail than other services +- Does not cover pricing in detail beyond capacity billing mechanics +- No ATMS or assumption-based beliefs (single-context TMS only) + +## Authors + +- Ben Thomasson ([@benthomasson](https://github.com/benthomasson)) + +## License + +mit diff --git a/entries/2026/03/08/acm-getting-started.md b/entries/2026/03/08/acm-getting-started.md new file mode 100644 index 0000000000000000000000000000000000000000..432a1b071f94493296c2b84c1748227c9dc6008c --- /dev/null +++ b/entries/2026/03/08/acm-getting-started.md @@ -0,0 +1,38 @@ +--- +source_url: https://docs.aws.amazon.com/acm/latest/userguide/gs.html +source: sources/acm-getting-started.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:28 + + + +## Overview +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. + +## Key Concepts +- **ACM certificate types**: public (issued by ACM), private (signed by AWS Private CA), and imported (third-party or self-signed) +- **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 +- **Private CA certificates** are **not trusted by default** — administrators must install them in client trust stores +- **AWS Private CA** can reside in your own account or be shared from a different account via cross-account sharing +- ACM is accessed via the AWS Management Console at `https://console.aws.amazon.com/acm/home` + +## Commands and Syntax +- No CLI commands covered on this page; it is a console-oriented getting-started guide +- Console navigation: **Certificate Manager** or **Private CAs** in the left navigation pane + +## Relationships +- **AWS Private CA**: Issues private certificates managed through ACM; can be cross-account shared +- **Amazon EC2 / Nitro Enclaves**: Public ACM certificates can be deployed to Nitro Enclave-connected instances or exported to standard EC2 instances +- **Integrated AWS services**: ACM certificates are used with services like ELB, CloudFront, API Gateway (covered elsewhere) +- **Client trust stores**: Required configuration for private CA certificates + +## Exam-Relevant Points +- Public ACM certificates can only be installed on EC2 via **Nitro Enclaves** or by **exporting** — they are not directly deployed to standard EC2 instances +- Private CA certificates require manual trust store installation on clients +- AWS Private CA supports **cross-account sharing** of certificate authorities +- ACM handles three certificate categories: public, private, imported +- Self-signed certificates are supported through the import mechanism + diff --git a/entries/2026/03/08/acm-overview.md b/entries/2026/03/08/acm-overview.md new file mode 100644 index 0000000000000000000000000000000000000000..b47c833ad62d8cc3b8d924592329097553bd996f --- /dev/null +++ b/entries/2026/03/08/acm-overview.md @@ -0,0 +1,40 @@ +--- +source_url: https://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html +source: sources/acm-overview.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:28 + +## Overview +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. + +## Key Concepts +- ACM manages **public and private SSL/TLS X.509 certificates** and keys +- Certificates can be **issued directly by ACM** or **imported** from third-party sources +- ACM certificates can secure: singular domain names, multiple specific domains, wildcard domains, or combinations +- **Wildcard certificates** protect an unlimited number of subdomains +- Certificates signed by **AWS Private CA** can be exported for use in internal PKI +- ACM is **not** intended for stand-alone web servers (e.g., directly on EC2 instances) +- **No additional charge** for SSL/TLS certificates managed by ACM — you only pay for underlying AWS resources + +## Commands and Syntax +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). + +## Relationships +- **Integrated AWS services**: ACM certificates are used with services like Elastic Load Balancing, CloudFront, and others listed in the integrated services page +- **AWS Private CA**: Used together with ACM to issue and export private certificates +- **CloudFront**: Requires certificates to be in **US East (N. Virginia)** region; certificates are then distributed to all configured geographic locations +- **Elastic Load Balancing**: Requires a separate certificate in each region where the ELB operates +- **Amazon EC2**: ACM certificates cannot be used directly on EC2 instances; standalone SSL/TLS must be configured manually + +## Exam-Relevant Points +- **ACM certificates are regional resources** — you cannot copy a certificate between regions +- For **CloudFront**, the certificate **must** be requested/imported in **us-east-1 (N. Virginia)** +- For **ELB** across multiple regions, you must request or import a **separate certificate per region** and revalidate each domain name +- ACM itself is **free** — no additional charge for certificate management +- ACM supports **IPv4 and IPv6** on public endpoints +- ACM wildcard certificates can protect an **unlimited number of subdomains** +- ACM cannot be used with standalone web servers on EC2 — only with integrated AWS services + diff --git a/entries/2026/03/08/aws-features-essential-vs-convenience-classification.md b/entries/2026/03/08/aws-features-essential-vs-convenience-classification.md new file mode 100644 index 0000000000000000000000000000000000000000..dff3787b4af3c3cf75ff0f4ad2b2bbcaf99eb318 --- /dev/null +++ b/entries/2026/03/08/aws-features-essential-vs-convenience-classification.md @@ -0,0 +1,188 @@ +# AWS Features Essential vs Convenience Classification + +**Date:** 2026-03-08 +**Time:** 18:41 + +## Summary + +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. + +This classification supports migration planning by identifying which features require investment to replicate vs. which can be safely dropped. + +## Classification Criteria + +- **Essential:** Feature is required for production workloads. Missing it creates security, reliability, or data integrity risk. Must be replicated or replaced. +- **Convenience:** Feature reduces operational burden but workloads function without it. Can be deferred or approximated. +- **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. + +--- + +## Compute (EC2) + +### Essential +- **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. +- **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. +- **Key pairs for SSH** (`ec2-key-pair-public-stored-private-user`) — SSH access control. Standard SSH key management. +- **Instance monitoring** (`ec2-system-status-check-monitors-aws-infrastructure`, `ec2-instance-status-check-monitors-guest-os`) — health checks. Replicated by Prometheus node_exporter + alerting. +- **AMIs** (`ami-region-specific`, `ami-create-from-running-instance`) — machine images. Replicated by Packer, cloud-init, or container images. + +### Convenience +- **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. +- **Instance type flexibility** (`ec2-instance-type-change-requires-stop`) — vertical scaling by changing instance type. Self-hosted requires hardware provisioning or VM resizing. +- **Spot instances** (`spot-instances-up-to-90-percent-savings`) — cost optimization. No equivalent in self-hosted (you own the hardware). +- **Reserved Instances / Savings Plans** (`ris-are-billing-discounts-not-physical-instances`) — pricing models. Irrelevant for self-hosted. +- **SSM Session Manager** (`ec2-ssm-session-manager-alternative`) — SSH-less access. Replicated by bastion hosts or VPN. + +### Irreplaceable +- **Graviton processors** (`ec2-graviton-arm-best-price-performance`) — AWS custom silicon. Can use other ARM servers (Ampere) but not the same chips. +- **Nitro enclaves** — hardware-isolated compute environments. No equivalent. + +--- + +## Database (RDS) + +### Essential +- **Automated backups / PITR** (`rds-automated-backups-snapshot-entire-instance`, `rds-first-snapshot-full-subsequent-incremental`) — data protection. Replicated by pgBackRest, Barman, or mysqldump + cron. +- **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. +- **Encryption at rest** (`rds-encryption-at-rest-aes-256`) — data protection. Replicated by LUKS/dm-crypt at disk level. +- **SSL/TLS** (`rds-ssl-tls-all-major-engines`) — encryption in transit. Native to all database engines. +- **VPC isolation** (`rds-default-vpc-unless-specified`, `rds-security-groups-deny-all-by-default`) — network security. Standard network segmentation. +- **Monitoring** (`rds-monitoring-five-tools`) — operational visibility. Replicated by Prometheus + postgres_exporter + Grafana. + +### Convenience +- **One-click scaling** (`rds-instance-class-naming-convention`) — change instance class via API. Self-hosted requires migration or downtime. +- **Managed patching** — RDS handles OS and engine patches automatically. Self-hosted requires patch management process. +- **Performance Insights** (`rds-performance-insights-identifies-queries`) — query performance analysis. Replicated by pg_stat_statements, pgBadger, or PMM. +- **Read replicas** (`rds-read-replica-async-replication`) — read scaling. Available in all major databases natively but requires manual setup. +- **Parameter groups** (`rds-db-parameter-groups-control-engine-behavior`) — centralized config management. Replicated by Ansible/Chef/Puppet. +- **Secrets Manager integration** (`rds-secrets-manager-password-rotation`) — automatic password rotation. Replicated by Vault. + +### Irreplaceable +- **Cross-region snapshot sharing** (`rds-only-manual-snapshots-can-be-shared`) — share database snapshots across AWS accounts. +- **Data Layer Versioning** (`rds-dlv-fixed-1024gib-3000iops-piops-only`) — specialized storage tier. + +--- + +## Storage (S3) + +### Essential +- **Object storage API** (`s3-max-object-size-5tb`, `s3-strong-read-after-write-consistency`) — basic object storage. Replicated by MinIO or Ceph RGW. +- **Versioning** (`s3-versioning-cannot-revert-to-unversioned`, `s3-delete-creates-delete-marker`) — data protection. Available in MinIO and Ceph. +- **Encryption at rest** (`s3-sse-s3-default-encryption`) — data protection. Available in MinIO (SSE-S3, SSE-KMS). +- **Access control** (`s3-resources-private-by-default`, `s3-bucket-policy-size-limit-20kb`) — security. Available in MinIO IAM policies. +- **Lifecycle rules** (`s3-lifecycle-rules-apply-retroactively`) — data management. Available in MinIO ILM. +- **Replication** (`s3-live-replication-no-preexisting-objects`) — disaster recovery. Available in MinIO site replication. + +### Convenience +- **Event notifications** (`s3-event-notification-four-destinations`) — event-driven workflows. MinIO supports webhooks and Kafka. +- **Requester pays** (`s3-requester-pays-shifts-transfer-cost`) — billing model. +- **Transfer acceleration** (`s3-transfer-acceleration-uses-cloudfront-edges`) — faster uploads via edge network. +- **Presigned URLs** (`s3-presigned-urls-share-private-objects`) — temporary access. Supported by MinIO. + +### Irreplaceable +- **11 nines durability** (`s3-all-classes-11-nines-except-rrs`) — 99.999999999% durability SLA. Self-hosted can be highly durable but no SLA. +- **Intelligent-Tiering** (`s3-intelligent-tiering-five-tiers`) — automatic cost-optimized storage tiering across 5 tiers. +- **Glacier / Deep Archive** (`s3-glacier-flexible-deep-archive-require-restore`) — ultra-low-cost archival with restore delays. +- **S3 Express One Zone** (`s3-express-one-zone-10x-faster-50pct-lower-cost`) — single-digit millisecond latency at scale. +- **Storage Lens** (`s3-storage-lens-60-plus-metrics`) — organization-wide analytics. + +--- + +## Networking (Route 53, CloudFront, VPC) + +### Essential +- **DNS hosting** (`route53-public-vs-private-hosted-zones`) — authoritative DNS. Replicated by PowerDNS, BIND, CoreDNS. +- **VPC / network isolation** (`vpc-itself-is-free`, `vpc-subnet-single-az`) — network segmentation. Standard networking with VLANs, firewalls, SDN. +- **NACLs** (`nacl-stateless-subnet-level-filtering`) — network-level filtering. Replicated by iptables, hardware firewalls. +- **NAT** (`nat-gateway-connections-initiated-from-inside-only`) — outbound internet access for private resources. Standard NAT with iptables or dedicated appliances. +- **Flow logs** (`vpc-flow-logs-capture-metadata-not-contents`) — network monitoring. Replicated by NetFlow, sFlow, or packet capture. + +### Convenience +- **Health-check-based DNS failover** (`route53-dns-failover-requires-health-check-association`) — automatic DNS failover. Achievable with Consul DNS or custom health check pipelines. +- **Routing policies** (`route53-eight-routing-policies`) — weighted, geolocation, latency. Achievable with PowerDNS GeoIP. +- **VPC peering** (`vpc-peering-non-transitive`) — cross-VPC connectivity. Standard networking with routing. +- **PrivateLink** (`privatelink-no-public-infrastructure-required`) — private service endpoints. Achievable with VPN or direct connections. +- **Internet Gateway** (`igw-horizontally-scaled-no-bottleneck`) — managed, infinitely scalable. Self-hosted uses standard routers. + +### Irreplaceable +- **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. +- **Latency-based routing** (`route53-geolocation-vs-geoproximity-vs-latency`) — requires global latency measurement infrastructure. +- **Transit Gateway** (`tgw-hub-and-spoke-architecture`) — managed at AWS scale. Self-hosted hub-and-spoke requires BGP/OSPF expertise. +- **100% DNS uptime SLA** — Route 53's unique SLA. Self-hosted requires anycast + multi-site for similar availability. + +--- + +## Messaging (SQS, SES) + +### Essential +- **Message queuing** (`sqs-standard-at-least-once-fifo-exactly-once`) — asynchronous processing. Replicated by RabbitMQ, Kafka, NATS. +- **Dead letter queues** (`sqs-dlq-maxreceivecount-controls-transfer`) — failed message handling. Available in RabbitMQ (DLX). +- **Email sending** (`ses-three-sending-methods`) — transactional email. Replicated by Postfix + DKIM/SPF/DMARC, or third-party (Mailgun, SendGrid). + +### Convenience +- **FIFO exactly-once** (`sqs-fifo-dedup-id-idempotent-retries`) — deduplication. Kafka provides per-partition ordering; idempotent producers available. +- **Email receiving** (`ses-receiving-not-all-regions`) — inbound email processing. Replicated by Postfix + custom handlers. +- **Bounce/complaint tracking** (`ses-sns-bounce-complaint-delivery-notifications`) — email deliverability monitoring. Available via Postfix logs + custom processing. + +### Irreplaceable +- **SQS zero-ops scaling** (`sqs-scales-transparently-no-provisioning`) — infinite auto-scaling with no capacity planning. All self-hosted brokers require sizing. +- **SES reputation management** — AWS manages IP reputation for deliverability. Self-hosted requires IP warming and reputation monitoring. + +--- + +## Containers (EKS), Caching (ElastiCache), Certificates (ACM), Monitoring (CloudWatch) + +### Essential +- **Kubernetes API** (`eks-certified-kubernetes-conformant`) — container orchestration. Any CNCF-certified distribution. +- **Redis/Valkey caching** (`elasticache-three-engines`) — in-memory caching. Self-hosted Redis/Valkey. +- **TLS certificates** (`acm-three-certificate-types`) — HTTPS. Let's Encrypt + cert-manager. +- **Metrics and alarms** (`cloudwatch-metric-retention-15-months`, `cloudwatch-alarm-three-states`) — monitoring. Prometheus + Alertmanager + Grafana. + +### Convenience +- **Managed control plane** (EKS) — Kubernetes control plane operations. Self-hosted with kubeadm/k3s/RKE2. +- **ElastiCache Multi-AZ failover** (`elasticache-multi-az-automatic-failover`) — automatic Redis failover. Replicated by Redis Sentinel or Redis Cluster. +- **ACM auto-renewal** — automatic certificate renewal. cert-manager provides this for Let's Encrypt. +- **CloudWatch Container Insights** (`cloudwatch-container-insights-ecs-eks-k8s`) — container monitoring. Replicated by Prometheus + kube-state-metrics. + +### Irreplaceable +- **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. +- **CloudWatch cross-account observability** (`cloudwatch-cross-account-observability-central-monitoring`) — centralized monitoring across AWS accounts. Requires Thanos or Cortex for self-hosted equivalent. +- **EKS Fargate** (`eks-fargate-serverless-compute`) — serverless Kubernetes pods. No self-hosted equivalent. + +--- + +## IAM and Security + +### Essential +- **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. +- **MFA** (`iam-mfa-max-8-devices-per-user`, `iam-root-mfa-enforced-all-account-types`) — multi-factor auth. Available in any identity provider. +- **Temporary credentials** (`sts-temporary-credentials-three-components`) — short-lived access tokens. Replicated by Vault dynamic secrets. +- **Policy evaluation** (`iam-explicit-deny-always-wins`, `iam-cross-account-needs-both-policies`) — policy logic. Must implement in chosen identity system. + +### Convenience +- **IAM Identity Center** (`iam-identity-center-recommended-multi-account`) — SSO across accounts. Replicated by Keycloak + SAML/OIDC. +- **Service-linked roles** (`iam-service-linked-role-permissions-not-editable`) — AWS-specific automation permissions. +- **Permission boundaries** (`iam-permission-boundary-limits-not-grants`) — delegation guardrails. Must implement in policy engine. +- **Access Analyzer** (`iam-access-analyzer-three-functions`) — automated policy analysis. Open Policy Agent can partially replicate. + +### Irreplaceable +- **IAM policy language** (`iam-seven-policy-types`) — the specific JSON policy language and evaluation engine is AWS-native +- **Cross-account role assumption** (`iam-cross-account-requires-trust-and-identity-policy`) — seamless cross-account access. Requires identity federation design in self-hosted. +- **SCPs / RCPs** (`iam-scps-rcps-restrict-only-no-grant`) — organization-level guardrails. No equivalent in self-hosted without building a policy hierarchy. + +--- + +## Summary Statistics + +| Category | Essential | Convenience | Irreplaceable | +|----------|-----------|-------------|---------------| +| Compute (EC2) | 5 | 5 | 2 | +| Database (RDS) | 6 | 6 | 2 | +| Storage (S3) | 6 | 4 | 5 | +| Networking | 5 | 5 | 4 | +| Messaging | 3 | 3 | 2 | +| Containers/Cache/Certs/Mon | 4 | 4 | 3 | +| IAM/Security | 4 | 4 | 3 | +| **Total** | **33** | **31** | **21** | + +**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). diff --git a/entries/2026/03/08/cloudfront-distributions.md b/entries/2026/03/08/cloudfront-distributions.md new file mode 100644 index 0000000000000000000000000000000000000000..8482e5312fef3dbbf2a5b0b846dc25d71f4a8bfa --- /dev/null +++ b/entries/2026/03/08/cloudfront-distributions.md @@ -0,0 +1,63 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-overview.html +source: sources/cloudfront-distributions.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:28 + + + +## Overview +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. + +## Key Concepts +- A **distribution** tells CloudFront where to get content and how to deliver it +- CloudFront **auto-configures most settings** based on origin type; manual editing is optional +- A distribution supports up to **25 origins** +- The **cache key** uniquely identifies each file in the cache for a given distribution +- **No maximum number of files** per distribution (but there are account-level limits on number of distributions) +- **Multi-tenant distributions** have restrictions: only WAF V2 web ACLs supported, no Smooth Streaming + +## Supported Origin Types +- Amazon S3 bucket +- AWS Elemental MediaPackage channel +- AWS Elemental MediaStore container +- Elastic Load Balancing load balancer +- HTTP server (custom origin) + +## Configurable Settings +| Setting | Description | +|---------|-------------| +| Origin | Source of content (up to 25 per distribution) | +| Access | Public or restricted | +| Security | AWS WAF protection, HTTPS enforcement | +| Cache key | Values included for cache identification | +| Origin request settings | Headers, cookies, query strings forwarded to origin | +| Geographic restrictions | Country-level blocking | +| Logs | Standard logs or real-time access logs | + +## Content Types Served +- Static/dynamic download content (HTML, CSS, JS, images) over HTTP/HTTPS +- Video on demand (HLS, Microsoft Smooth Streaming) +- Live streaming (via CloudFormation stack with AWS Media Services) + +## Relationships +- **S3, ELB, MediaPackage, MediaStore** — all valid origin types +- **AWS WAF** — optional security layer for distributions +- **CloudFormation** — can automate live-streaming distribution creation +- **Alternate domain names (CNAMEs)** — custom URLs for distributions +- **Continuous deployment** — safe testing of CDN config changes +- **WebSockets, gRPC, IPv6** — protocol-level features available on distributions + +## Exam-Relevant Points +- Maximum of **25 origins per distribution** +- No limit on files per distribution, but there are **account-level distribution quotas** +- Multi-tenant distributions only support **WAF V2** (not V1) +- Multi-tenant distributions do **not support Smooth Streaming** +- Cache key composition affects cache behavior — know what values can be included +- Live streaming distributions can be provisioned via **CloudFormation stacks** +- CloudFront supports **continuous deployment** for safely testing configuration changes +- **Anycast static IPs** can be requested for allowlisting use cases + diff --git a/entries/2026/03/08/cloudfront-feature-parity-cross-reference.md b/entries/2026/03/08/cloudfront-feature-parity-cross-reference.md new file mode 100644 index 0000000000000000000000000000000000000000..90dfc5ff546d3cfe867cb080efc207a289fe8190 --- /dev/null +++ b/entries/2026/03/08/cloudfront-feature-parity-cross-reference.md @@ -0,0 +1,64 @@ +# CloudFront Feature Parity Cross-Reference + +**Date:** 2026-03-08 +**Time:** 18:32 + +## Summary + +Cross-reference of AWS CloudFront features against self-hosted CDN/reverse proxy alternatives (Nginx, HAProxy, Varnish, Caddy). Maps AWS expert beliefs to replacement requirements. + +## Well Covered by Self-Hosted Alternatives + +| CloudFront Feature | AWS Expert Beliefs | Self-Hosted Equivalent | +|---|---|---| +| 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. | +| 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. | +| 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. | +| HTTP/2 and WebSocket support | `cloudfront-supports-websockets-grpc-ipv6` | Nginx and Caddy support HTTP/2, WebSocket, and gRPC natively. | +| Custom headers | N/A | Nginx and HAProxy provide full header manipulation. | +| Compression | N/A | Nginx provides gzip and Brotli compression. | + +## Gaps in Self-Hosted Alternatives + +### Global Edge Network +- **CloudFront provides:** `cloudfront-routes-to-lowest-latency-edge`, `cloudfront-uses-aws-backbone-network` — 450+ edge locations worldwide, anycast routing +- **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. +- **Migration implication:** This is CloudFront's primary value proposition. Self-hosted CDN will have higher latency for geographically distributed users. + +### DDoS Protection +- **CloudFront provides:** `cloudfront-ddos-resilient-architecture-component` — integrated with AWS Shield Standard (free) and Shield Advanced +- **Self-hosted gap:** Must provision DDoS protection separately (Cloudflare, or on-premise DDoS mitigation appliances). Significant cost. + +### AWS WAF Integration +- **CloudFront provides:** `cloudfront-waf-integration-request-filtering`, `cloudfront-multi-tenant-waf-v2-only` — native WAF with managed rule sets +- **Self-hosted gap:** ModSecurity with Nginx, or standalone WAF appliances. Requires separate management and rule updates. + +### Origin Access Control +- **CloudFront provides:** `cloudfront-origin-access-restriction-s3-alb` — cryptographically restrict origin access to CloudFront only +- **Self-hosted gap:** IP-based restrictions on origin servers. Less secure than signed OAC requests. + +### Signed URLs / Signed Cookies +- **CloudFront provides:** `cloudfront-signed-urls-vs-cookies`, `cloudfront-private-content-signed-urls-cookies` — built-in content access control +- **Self-hosted gap:** Must implement token-based access in application layer or use Nginx secure_link module. More development effort. + +### Field-Level Encryption +- **CloudFront provides:** `cloudfront-field-level-encryption-at-edge` — encrypt specific POST fields at the edge before forwarding +- **Self-hosted gap:** No equivalent. Must implement in application code. + +### Free Data Transfer from AWS Origins +- **CloudFront provides:** `cloudfront-free-data-transfer-from-aws-origins` — no transfer charges between CloudFront and S3/ALB/etc. +- **Self-hosted gap:** All egress from cloud providers is charged. Self-hosted CDN in a datacenter eliminates this but requires infrastructure investment. + +## CloudFront Features With No Self-Managed Equivalent + +- **Continuous Deployment:** `cloudfront-continuous-deployment-support` — staged rollout of distribution config changes +- **CloudFront Functions / Lambda@Edge:** Serverless compute at edge locations — no self-hosted equivalent without deploying code to every edge node +- **Anycast Static IPs:** `cloudfront-anycast-static-ips` — requires BGP anycast infrastructure +- **mTLS:** `cloudfront-mtls-both-directions` — mutual TLS at scale across 450+ edges + +## Recommendations + +1. **Nginx + Varnish is the closest self-hosted replacement** for caching and reverse proxy functionality +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 +3. **WAF and DDoS protection must be provisioned separately** — ModSecurity, Cloudflare, or dedicated appliances +4. **Cache invalidation is actually better self-hosted** — free, immediate, no API limits diff --git a/entries/2026/03/08/cloudfront-invalidation.md b/entries/2026/03/08/cloudfront-invalidation.md new file mode 100644 index 0000000000000000000000000000000000000000..321f9cd55288c05ed37adc0019fb180d069e0774 --- /dev/null +++ b/entries/2026/03/08/cloudfront-invalidation.md @@ -0,0 +1,36 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html +source: sources/cloudfront-invalidation.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:28 + +## Overview +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. + +## Key Concepts +- **Cache invalidation** forces CloudFront to remove a file from edge caches; the next viewer request fetches the latest version from the origin. +- **File versioning** serves a different version of a file by using a different file name (e.g., `style-v2.css`), bypassing the cache entirely. +- AWS recommends **file versioning over invalidation** for frequently updated files. +- 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. +- Invalidation has an associated **cost**; versioning avoids that cost (you only pay for transferring new files to edge locations). + +## Commands and Syntax +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`). + +## Relationships +- **CloudFront Distributions**: Invalidation operates on files served by a distribution. +- **Origin servers (S3, ALB, custom)**: After invalidation, CloudFront fetches the latest file from the origin. +- **Cache behaviors / TTL**: Invalidation is the manual override for content that hasn't yet reached its TTL expiration. +- **CloudFront access logs**: Versioned file names appear in logs, making analysis of file changes easier. +- **Concurrent invalidation limits**: There is a maximum number of concurrent invalidation requests per distribution. + +## Exam-Relevant Points +- **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). +- Invalidation **does not guarantee** users see the new version immediately if intermediate caches (browser, corporate proxy) hold the old version. +- Invalidation **costs money**; versioning does not incur invalidation fees. +- There is a **concurrent invalidation request limit** per distribution. +- Invalidation causes CloudFront to **return to the origin** on the next request — understand the origin-fetch behavior. + diff --git a/entries/2026/03/08/cloudfront-overview.md b/entries/2026/03/08/cloudfront-overview.md new file mode 100644 index 0000000000000000000000000000000000000000..ae8ac6b1603a60c9bf8e446c58f6e49aed3a6da3 --- /dev/null +++ b/entries/2026/03/08/cloudfront-overview.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html +source: sources/cloudfront-overview.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:29 + + + +## Overview + +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. + +## Key Concepts + +- **Edge locations (Points of Presence / POPs)**: Geographically-dispersed data centers where CloudFront caches copies of content +- **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) +- **Custom origin**: An HTTP server you manage (e.g., on EC2 or on-premises) as opposed to an AWS-native origin like S3 +- **Distribution**: The CloudFront configuration that specifies which origins to use and how to manage delivery +- **Objects**: The files (web pages, images, media) served through CloudFront +- **Default cache expiration**: 24 hours per file; minimum is 0 seconds, no maximum limit +- **AWS backbone network**: CloudFront routes requests through AWS's own network, reducing hops and improving latency +- Content can be **public** or **private** (controlled via signed URLs and signed cookies) +- **Standard distribution**: One distribution per website/app with unique configuration +- **Multi-tenant distribution (CloudFront SaaS Manager)**: Designed for SaaS providers managing multiple customer sites with centralized shared configuration + +## Commands and Syntax + +- CloudFront assigns a domain like `d111111abcdef8.cloudfront.net` to each distribution +- Example URL: `https://d111111abcdef8.cloudfront.net/logo.jpg` +- You can configure an **alternate domain name** (CNAME) so URLs use your own domain: `https://www.example.com/logo.jpg` +- Cache duration is controlled via **headers on the origin server** + +## Relationships + +- **Amazon S3**: Common origin server for CloudFront distributions +- **Amazon EC2**: Can serve as a custom origin +- **Elastic Load Balancing / API Gateway**: Supported AWS origins (free data transfer to CloudFront) +- **MediaPackage**: Origin for media/streaming content +- **Signed URLs / Signed Cookies**: Mechanism for serving private content +- **Route 53**: Implied for custom domain name configuration (alternate domain names) + +## Exam-Relevant Points + +- CloudFront delivers content from the **lowest-latency edge location**, not necessarily the geographically closest +- Data transfer **from AWS origins (S3, ELB, API Gateway) to CloudFront is free**; you pay only for edge-to-viewer transfer +- Default TTL is **24 hours**; minimum is **0 seconds**; **no maximum** +- CloudFront supports both **static and dynamic** content +- Origin can be S3, EC2, on-premises HTTP server, or MediaPackage +- Distribution configuration is pushed to **all edge locations**, but content is cached on demand +- Two distribution types: **Standard** (single site) and **Multi-tenant** (SaaS/multi-customer) +- Private content is controlled via **signed URLs and signed cookies** +- CloudFront pricing varies by **usage type, geographic region, and feature selection** + diff --git a/entries/2026/03/08/cloudfront-security.md b/entries/2026/03/08/cloudfront-security.md new file mode 100644 index 0000000000000000000000000000000000000000..ed612559b0ed256ab84ebfda57e94d8f3e8630be --- /dev/null +++ b/entries/2026/03/08/cloudfront-security.md @@ -0,0 +1,42 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecurityAndPrivateContent.html +source: sources/cloudfront-security.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:29 + + + +## Overview +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. + +## Key Concepts +- **HTTPS connections** — CloudFront supports configuring HTTPS for both viewer-to-CloudFront and CloudFront-to-origin connections +- **Geographic restrictions (geo-blocking)** — Prevent users in specific countries/locations from accessing content +- **Signed URLs and signed cookies** — Require authentication tokens to access private content; two mechanisms for controlling who can access content and for how long +- **Field-level encryption** — Encrypt specific form fields at the edge so only your application can decrypt them, adding a layer beyond HTTPS +- **AWS WAF integration** — Use Web Application Firewall rules to control access based on IP, geo, request patterns, etc. +- **Mutual TLS (mTLS)** — Supported both on the viewer side (viewer mTLS) and origin side (origin mTLS) for certificate-based authentication +- **Origin access restriction** — Restrict access so content is only served through CloudFront, not directly from the origin (S3, ALB, etc.) +- **DDoS resiliency** — CloudFront is part of a DDoS-resilient architecture; AWS recommends following their DDoS Best Practices whitepaper + +## Commands and Syntax +No CLI commands or configuration syntax on this page — it is a navigation hub linking to subtopics. + +## Relationships +- **AWS WAF** — Directly integrates with CloudFront for request filtering and rate limiting +- **AWS Shield** — Works alongside CloudFront for DDoS protection (referenced via DDoS resiliency best practices) +- **S3 / ALB origins** — Origin access controls restrict direct access to these services, forcing traffic through CloudFront +- **ACM (Certificate Manager)** — Required for HTTPS with alternate domain names; certificates must be in us-east-1 for CloudFront +- **Amazon OpenSearch Service** — Referenced for SIEM/logging analysis of CloudFront security events + +## Exam-Relevant Points +- CloudFront offers **six primary security mechanisms**: HTTPS, geo-restriction, signed URLs/cookies, field-level encryption, AWS WAF, and origin access restriction +- **Signed URLs vs signed cookies**: signed URLs for individual files, signed cookies for multiple files or when you don't want to change URLs +- **Field-level encryption** protects specific fields beyond standard HTTPS — data is encrypted at the edge and stays encrypted through to the application +- **mTLS** is supported in both directions: viewer-to-CloudFront and CloudFront-to-origin +- **Origin access** can be restricted for both S3 origins (OAC/OAI) and ALB origins +- CloudFront is a key component in **AWS DDoS-resilient architectures** (often tested alongside Shield and WAF) + diff --git a/entries/2026/03/08/cloudfront-ssl.md b/entries/2026/03/08/cloudfront-ssl.md new file mode 100644 index 0000000000000000000000000000000000000000..08d64204d1b8c47f61b0b4e421737890507605f9 --- /dev/null +++ b/entries/2026/03/08/cloudfront-ssl.md @@ -0,0 +1,54 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cnames-and-https-procedures.html +source: sources/cloudfront-ssl.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:29 + +## Overview +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. + +## Key Concepts +- **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` +- SSL/TLS certificates can come from **AWS Certificate Manager (ACM)** or a **third-party Certificate Authority (CA)** +- ACM is the recommended method for provisioning and managing certificates +- **ACM certificates for CloudFront must be requested/imported in US East (N. Virginia) region** — this is a hard requirement +- Third-party certificates can be imported into ACM (recommended) or uploaded to the **IAM certificate store** (not recommended) +- **Viewer Protocol Policy** controls how CloudFront handles HTTP vs HTTPS from viewers: + - **Redirect HTTP to HTTPS** — returns `301 Moved Permanently`; charges for both requests + - **HTTPS Only** — returns `403 Forbidden` for HTTP requests +- CloudFront does **NOT redirect** `DELETE`, `OPTIONS`, `PATCH`, `POST`, or `PUT` from HTTP to HTTPS — these return `403 Forbidden` +- Do not delete a certificate from ACM/IAM until it is removed from **all** distributions and those distributions are fully deployed + +## Commands and Syntax +**Upload third-party certificate to IAM certificate store:** +```bash +aws iam upload-server-certificate \ + --server-certificate-name CertificateName \ + --certificate-body file://public_key_certificate_file \ + --private-key file://privatekey.pem \ + --certificate-chain file://certificate_chain_file \ + --path /cloudfront/path/ +``` +- `--path` must start with `/cloudfront/` and end with `/` +- Must use the same AWS account that created the CloudFront distribution +- `--server-certificate-name` and `--path` must differ from existing certificates + +## Relationships +- **ACM** — certificate provisioning and management service; tightly integrated with CloudFront +- **IAM certificate store** — legacy alternative for certificate storage +- **CloudFront cache behaviors** — where Viewer Protocol Policy (HTTP/HTTPS handling) is configured per path pattern +- **Route 53 / DNS** — implied dependency for alternate domain names to resolve to the CloudFront distribution +- **Path patterns** — cache behaviors are evaluated in order; determines which requests get HTTPS enforcement + +## Exam-Relevant Points +- **ACM certificates for CloudFront must be in `us-east-1`** — most frequently tested fact +- IAM certificate store `--path` must start with `/cloudfront/` +- `Redirect HTTP to HTTPS` returns **301** but only for `GET`/`HEAD`; non-idempotent methods (`POST`, `PUT`, `DELETE`, `PATCH`, `OPTIONS`) return **403** +- `HTTPS Only` returns **403** for any HTTP request +- HTTP-to-HTTPS redirects incur **double charges** (one for the HTTP request, one for the HTTPS request) +- You can associate up to **100 certificates** via the console dropdown; beyond that, specify the certificate ARN directly +- Never delete a certificate still associated with any CloudFront distribution + diff --git a/entries/2026/03/08/cloudwatch-alarms.md b/entries/2026/03/08/cloudwatch-alarms.md new file mode 100644 index 0000000000000000000000000000000000000000..029a369c61eb5d8ec8c23bdfe2128f4aa5e2ec6e --- /dev/null +++ b/entries/2026/03/08/cloudwatch-alarms.md @@ -0,0 +1,71 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html +source: sources/cloudwatch-alarms.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:30 + +## Overview +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. + +## Key Concepts +- **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 +- **Composite alarm**: Evaluates a rule expression over other alarms' states; enters ALARM only when all rule conditions are met; reduces alarm noise +- **Three alarm states**: `OK`, `ALARM`, `INSUFFICIENT_DATA` +- Alarms invoke actions **only on state change**, except Auto Scaling actions which continue invoking once per minute while in the new state +- **No limit** on the number of alarms per account +- Composite alarms can send SNS notifications and create OpsItems/incidents, but **cannot** perform EC2 or Auto Scaling actions +- Cross-account metric alarms are supported (with cross-account functionality enabled), but cross-account **composite** alarms are **not** supported +- Cross-account math expression alarms do not support `ANOMALY_DETECTION_BAND`, `INSIGHT_RULE`, or `SERVICE_QUOTA` functions +- Alarm history is retained for **30 days** +- Alarms can be created for custom metrics **before** the metric exists, provided all dimensions, namespace, and metric name are specified +- CloudWatch does **not** validate alarm actions — nonexistent SNS topics or Auto Scaling actions will silently fail +- **Evaluation period quotas**: max 7 days (for period ≥ 1 hour), max 1 day (for shorter periods or Lambda data source) +- Resources may stop sending data (e.g., unattached EBS volumes), causing `INSUFFICIENT_DATA` — configurable via missing data treatment +- Tag-based alarms use Metrics Insights queries with resource tags for context-aware monitoring + +## Commands and Syntax +```bash +# Create or update an alarm +aws cloudwatch put-metric-alarm ... + +# List/describe alarms (optionally filter by state) +aws cloudwatch describe-alarms + +# View alarm history +aws cloudwatch describe-alarm-history + +# Disable/enable alarm actions +aws cloudwatch disable-alarm-actions +aws cloudwatch enable-alarm-actions + +# Test an alarm by manually setting state (temporary) +aws cloudwatch set-alarm-state +``` + +**API equivalents**: `PutMetricAlarm`, `DescribeAlarms`, `DescribeAlarmHistory`, `SetAlarmState`, `DisableAlarmActions`, `EnableAlarmActions` + +## Relationships +- **Amazon SNS**: Primary notification target for alarm actions +- **Amazon EC2**: Alarms can trigger EC2 actions (stop, terminate, reboot, recover) +- **EC2 Auto Scaling**: Alarms trigger scaling policies; Auto Scaling actions repeat every minute while alarm persists +- **Systems Manager**: Alarms can create OpsItems or incidents +- **CloudWatch Investigations**: Alarms can start operational investigations +- **CloudWatch Dashboards**: Alarms can be added to dashboards for cross-region visibility +- **CloudWatch Metrics Insights**: Alarms can be built on Metrics Insights queries using resource tags +- **Missing data handling**: Configurable behavior for metrics that stop reporting (see `alarms-and-missing-data`) + +## Exam-Relevant Points +- Composite alarms **cannot** perform EC2 or Auto Scaling actions — only SNS, OpsItems, incidents, and investigations +- Alarms trigger actions **only on state change** (exception: Auto Scaling continues once/minute) +- Cross-account composite alarms are **not supported**; cross-account metric alarms are supported +- Alarm history retention: **30 days** +- No limit on number of alarms per account +- Evaluation period max: **7 days** (period ≥ 1 hour) or **1 day** (shorter periods) +- `INSUFFICIENT_DATA` may indicate an inactive resource, not necessarily a problem +- CloudWatch does **not validate** that alarm action targets (SNS topics, Auto Scaling groups) actually exist +- You can create an alarm for a custom metric **before** the metric is published +- `SetAlarmState` is for **testing only** — the state change is temporary until the next evaluation + diff --git a/entries/2026/03/08/cloudwatch-metrics.md b/entries/2026/03/08/cloudwatch-metrics.md new file mode 100644 index 0000000000000000000000000000000000000000..e246cf5cb09942a000fdf35209e978177aeba114 --- /dev/null +++ b/entries/2026/03/08/cloudwatch-metrics.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/working_with_metrics.html +source: sources/cloudwatch-metrics.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:30 + +## Overview +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. + +## Key Concepts +- **Metrics** are data points about the performance of your systems +- Many AWS services provide **free metrics by default** (EC2, EBS, RDS, etc.) +- **Detailed monitoring** can be enabled for some resources (e.g., EC2) at additional cost +- You can **publish custom application metrics** to CloudWatch +- Metric data is **retained for 15 months** — supports both real-time and historical views +- **CloudWatch Metrics Insights** is a SQL query engine for identifying trends and patterns across all metrics in real time +- Metrics Insights supports querying up to **two weeks of historical data** +- CloudWatch loads **all metrics in your account** (AWS and custom) for search, graphing, and alarms + +## Commands and Syntax +No CLI commands or API calls are detailed on this page. Key sub-features referenced: +- **Metrics Insights** — SQL-based queries against metrics +- **Metrics Explorer** — monitor resources by tags and properties +- **Metric Streams** — continuous streaming of metrics to destinations +- **Metric Math** — expressions combining/transforming metrics +- **Search Expressions** — dynamic graph population based on search +- **Custom Metrics** — publish your own via `PutMetricData` API (detailed in linked page) + +## Relationships +- **EC2, EBS, RDS** — primary services that emit default metrics +- **CloudWatch Alarms** — consume metrics to trigger actions +- **CloudWatch Anomaly Detection** — applies ML to detect outliers in metric data +- **Metric Streams** — export metrics to external destinations (e.g., S3, Datadog via Firehose) +- **Basic vs. Detailed Monitoring** — determines metric granularity (5-min vs. 1-min intervals for EC2) + +## Exam-Relevant Points +- Metric data retention is **15 months** +- Basic monitoring is **free**; detailed monitoring incurs **additional charges** +- Basic monitoring for EC2 = **5-minute intervals**; detailed = **1-minute intervals** +- CloudWatch Metrics Insights queries support up to **2 weeks** of historical data (not the full 15 months) +- You can publish **custom metrics** — CloudWatch treats them the same as AWS resource metrics +- Metrics are used by **alarms, dashboards, and automated actions** +- Know the distinction between **basic and detailed monitoring** and which services support each + diff --git a/entries/2026/03/08/cloudwatch-overview.md b/entries/2026/03/08/cloudwatch-overview.md new file mode 100644 index 0000000000000000000000000000000000000000..ea24736c92eed18ae6dff9b757924a1a3814bafd --- /dev/null +++ b/entries/2026/03/08/cloudwatch-overview.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html +source: sources/cloudwatch-overview.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:30 + + + +## Overview + +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. + +## Key Concepts + +- **Metrics**: Key performance data collected at user-defined intervals; many AWS services report metrics automatically; custom metrics can be published from applications +- **Alarms**: Continuously monitor metrics against user-defined thresholds; can trigger automated actions (SNS notifications, Auto Scaling, EC2 actions) +- **Dashboards**: Unified visualizations of metrics and logs; can be shared across accounts and Regions; curated automatic dashboards available for many AWS services +- **Application Signals**: Automatic APM — detects and monitors latency, error rates, and request rates without manual instrumentation +- **Synthetics (Canaries)**: Configurable scripts that simulate user behavior to proactively detect endpoint/API availability and performance issues +- **CloudWatch RUM**: Real User Monitoring — gathers performance data from actual user sessions +- **Service Level Objectives (SLOs)**: Define reliability targets, set error budgets, and monitor SLO compliance over time +- **Log Groups and Streams**: Organizational units for ingested logs +- **Logs Insights**: Interactive query engine supporting SQL and PPL query languages +- **Metric Filters**: Extract numerical values from logs to generate CloudWatch metrics +- **Subscription Filters**: Real-time log processing/routing to S3, Firehose, etc. +- **Log Outlier Detection**: Finds unusual patterns in log events +- **Cross-account observability**: Central monitoring account can view metrics, logs, and traces from source accounts across an AWS Organization +- **Solutions Catalog**: Pre-built monitoring configurations for common workloads (JVM, NVIDIA GPU, Kafka, Tomcat, NGINX) + +## Commands and Syntax + +No CLI commands on this page (overview page). Key operational concepts: + +- **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. +- **Metric filters** extract metrics from logs for alerting/dashboards. +- **Subscription filters** route logs to S3, Firehose, or other services. + +## Relationships + +- **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) +- **SNS** — Alarm notifications are typically sent via SNS +- **Systems Manager** — Used for centralized CloudWatch agent configuration +- **AWS Organizations** — Enables automatic cross-account observability linking +- **S3, Firehose** — Log subscription filter destinations +- **Direct Connect** — Network Synthetic Monitor tests connectivity over Direct Connect links +- **VPC Flow Logs** — Used by Internet Monitor for traffic analysis +- **Auto Scaling** — Alarms can trigger scaling actions + +## Exam-Relevant Points + +- CloudWatch collects metrics at **user-defined intervals**; many AWS services send **basic metrics for free** +- **Custom metrics** can be published to CloudWatch from applications +- **Alarms** can trigger **automated actions**, not just notifications +- **Dashboards can be shared cross-account and cross-Region** +- **CloudWatch Agent** is required for detailed OS-level metrics (memory, disk, processes) — these are NOT sent automatically by EC2 +- **Logs Insights** supports **SQL and PPL** query languages in addition to its native syntax +- **Metric filters** turn log data into CloudWatch metrics +- **Cross-account observability** uses a central monitoring account with linked source accounts +- **Synthetics canaries** proactively test endpoints; **RUM** monitors real users — know the difference +- **Application Signals** requires no manual instrumentation or code changes +- **Container Insights** works with ECS, EKS, and self-managed Kubernetes on EC2 +- **Internet Monitor** analyzes internet performance using AWS global networking data and VPC flow logs +- **Network Flow Monitor** uses lightweight agents on instances and produces a **Network Health Indicator (NHI)** +- **Network Synthetic Monitor** is specifically for **Direct Connect** connectivity testing + diff --git a/entries/2026/03/08/ec2-amis.md b/entries/2026/03/08/ec2-amis.md new file mode 100644 index 0000000000000000000000000000000000000000..f860b378bdd98a1d1e45b90ef1a6c1491147a459 --- /dev/null +++ b/entries/2026/03/08/ec2-amis.md @@ -0,0 +1,54 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html +source: sources/ec2-amis.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:31 + + + +## Overview + +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. + +## Key Concepts + +- **AMI** = template containing OS, application server, applications, and block device mappings required to boot an EC2 instance +- You **must** specify an AMI when launching an instance, and it **must be compatible** with the chosen instance type +- An AMI is specific to: **Region**, **Operating system**, **Processor architecture**, **Root volume type**, **Virtualization type** +- **AMI sources**: AWS-provided, public community AMIs, shared AMIs (from other accounts), or AWS Marketplace purchases +- **One-to-many**: A single AMI can launch multiple identical instances +- **Custom AMIs**: You can create an AMI from an existing EC2 instance to capture its configuration +- **Cross-region copy**: AMIs can be copied to other AWS Regions for multi-region deployments +- **Sharing**: AMIs can be shared with other AWS accounts or sold via AWS Marketplace + +## Commands and Syntax + +No CLI commands are provided on this overview page. Key AMI operations include: +- **Launch instance from AMI** — requires selecting an AMI ID (e.g., `ami-0abcdef1234567890`) +- **Create AMI from instance** — captures running instance as a reusable image +- **Copy AMI cross-region** — replicates an AMI to another AWS Region +- **Share AMI** — grants launch permissions to other AWS accounts + +## Relationships + +- **EC2 Instances** — AMIs are the launch template for all instances +- **EBS Volumes** — AMI block device mappings define attached storage (EBS-backed vs instance-store-backed root volumes) +- **AWS Regions** — AMIs are region-scoped; must be copied to use in another region +- **AWS Marketplace** — commercial AMIs can be purchased/sold +- **IAM** — launch permissions control who can use an AMI +- **Boot modes** — AMIs specify UEFI or Legacy BIOS boot +- **Encryption** — AMI snapshots can be encrypted via EBS encryption + +## Exam-Relevant Points + +- 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 +- AMIs are scoped by **five attributes**: Region, OS, architecture, root volume type, virtualization type +- The AMI **must be compatible** with the selected instance type (architecture match, virtualization type match) +- You can create a custom AMI from a running instance to replicate configurations +- AMIs can be **shared** across accounts and **copied** across regions +- **Block device mapping** in the AMI determines what storage is attached at launch +- Know the difference between **EBS-backed** and **instance-store-backed** AMIs (relates to root volume type) + diff --git a/entries/2026/03/08/ec2-ebs.md b/entries/2026/03/08/ec2-ebs.md new file mode 100644 index 0000000000000000000000000000000000000000..4ad7fa32342baf44ea9815f078fcc81fa395773f --- /dev/null +++ b/entries/2026/03/08/ec2-ebs.md @@ -0,0 +1,63 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html +source: sources/ec2-ebs.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:31 + + + +## Overview + +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. + +## Key Concepts + +- **EBS Volumes** — Storage volumes attached to EC2 instances; used like local hard drives for files, applications, etc. +- **EBS Snapshots** — Point-in-time backups of EBS volumes that persist independently from the volume; can restore new volumes from snapshots at any time. +- **Volume types** fall into two categories: + - **SSD-backed** — optimized for transactional workloads (IOPS) + - **HDD-backed** — optimized for throughput-intensive workloads +- **Elastic Volumes** — Dynamically increase capacity or tune performance with no downtime. +- **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. +- **Durability**: + - **io2 Block Express**: 99.999% durability (0.001% AFR) + - **Other volume types**: 99.8%–99.9% durability (0.1%–0.2% AFR) +- Volume data is **automatically replicated across multiple servers within a single AZ**. +- **EBS Snapshots Archive** — Low-cost tier for snapshots retained 90+ days (regulatory/compliance use). +- **Pay only for what you provision**. + +## Commands and Syntax + +EBS is managed through: +- **AWS Management Console** (EC2 console) +- **AWS CLI** (`aws ec2` commands) +- **AWS Tools for PowerShell** +- **CloudFormation** (JSON/YAML templates) +- **EC2 Query API** (HTTP GET/POST with `Action` parameter) +- **AWS SDKs** (language-specific APIs) + +## Relationships + +| Related Service | Relationship | +|---|---| +| **Amazon EC2** | EBS volumes attach to EC2 instances as block devices | +| **AWS KMS** | Provides cryptographic keys for EBS encryption | +| **Amazon Data Lifecycle Manager** | Automates creation, retention, and deletion of EBS snapshots and EBS-backed AMIs | +| **EBS Direct APIs** | Create snapshots, read/write snapshot data, diff two snapshots | +| **Recycle Bin** | Recover accidentally deleted snapshots and EBS-backed AMIs | +| **CloudFormation** | Infrastructure-as-code provisioning of EBS resources | + +## Exam-Relevant Points + +- EBS volumes are **AZ-scoped** — data is replicated within a single AZ, not across AZs. +- Snapshots can migrate data across **accounts, Regions, and AZs**. +- **io2 Block Express** has significantly higher durability (99.999%) than other volume types (99.8%–99.9%). +- Encryption covers **data-at-rest, data-in-transit** (instance ↔ volume), and **subsequent snapshots**. +- Elastic Volumes allow **live resizing and performance tuning** without downtime. +- Snapshots Archive requires a **minimum 90-day retention**. +- EBS is **not a standalone service in the console** — it is accessed through the EC2 console. +- Snapshots persist **independently** from the source volume (volume can be deleted, snapshot remains). + diff --git a/entries/2026/03/08/ec2-elastic-ips.md b/entries/2026/03/08/ec2-elastic-ips.md new file mode 100644 index 0000000000000000000000000000000000000000..48623d76838e2fb24947b4c679c72b2c4cef1ed0 --- /dev/null +++ b/entries/2026/03/08/ec2-elastic-ips.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html +source: sources/ec2-elastic-ips.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:31 + +## Overview +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. + +## Key Concepts +- **Static IPv4 only** — EIPs are static public IPv4 addresses; IPv6 is not supported for EIPs. +- **Account-scoped** — An EIP belongs to your account until you explicitly release it. +- **Region-scoped** — An EIP is bound to a specific Region and cannot be moved to another Region. +- **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. +- **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). +- **Dual association** — Associating an EIP with an instance also associates it with the primary ENI, and vice versa. +- **DNS resolution** — Public DNS resolves to the EIP externally but to the private IPv4 address internally within the VPC. +- **Disassociated EIPs remain allocated** — A disassociated EIP stays in your account (and incurs charges) until released. +- **IP source** — EIPs come from Amazon's pool or from a BYOIP (Bring Your Own IP) pool. + +## Commands and Syntax +No CLI commands were included in this page, but the key lifecycle operations are: +1. **Allocate** — Reserve an EIP to your account. +2. **Associate** — Bind the EIP to an instance or network interface. +3. **Disassociate** — Unbind the EIP from a resource (EIP remains allocated). +4. **Release** — Return the EIP to the pool (stops billing for that address). +5. **Transfer** — Move an EIP between AWS accounts. + +## Relationships +- **EC2 Instances** — EIPs attach to instances or their ENIs to provide stable public addressing. +- **VPC / ENI** — EIPs associate with network interfaces; behavior differs slightly between instance-level and ENI-level association. +- **Public IPv4 addressing** — EIPs replace auto-assigned public IPs when associated; the original public IP is permanently lost. +- **Route 53 / DNS** — EIPs are commonly referenced in DNS records for domain-to-instance mapping. +- **BYOIP** — Custom IP pools brought to AWS can supply EIPs and do not count against the default quota. +- **Service Quotas** — EIP limits are managed through the Service Quotas console. + +## Exam-Relevant Points +- Default quota is **5 EIPs per Region per account** (increase via Service Quotas console). +- **All public IPv4 addresses are now charged**, including EIPs whether associated or not. +- Associating an EIP with an instance that has an existing public IP **releases that public IP permanently**. +- EIPs are **Region-specific** and **cannot be moved** across Regions. +- BYOIP-sourced EIPs **do not count** toward the default EIP quota. +- AWS recommends using EIPs primarily for **instance failover remapping**, not general addressing — use DNS hostnames for inter-node communication. +- EIPs are **IPv4 only**; there is no Elastic IP concept for IPv6. + diff --git a/entries/2026/03/08/ec2-instance-types.md b/entries/2026/03/08/ec2-instance-types.md new file mode 100644 index 0000000000000000000000000000000000000000..c1511406b82cdd57438caed7fe5760ce4d3f0d9e --- /dev/null +++ b/entries/2026/03/08/ec2-instance-types.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html +source: sources/ec2-instance-types.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:32 + +## Overview +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. + +## Key Concepts +- **Instance type** determines the host computer hardware; each offers different compute, memory, storage, and networking capabilities +- **Instance families** group types by capability: General Purpose, Compute Optimized, Memory Optimized, Storage Optimized, Accelerated Computing, High-Performance Computing +- **Instance naming convention**: encodes family, generation, processor family, capabilities, and size (e.g., `m7g.xlarge`) +- **Shared vs. dedicated resources**: CPU/memory/instance storage are dedicated; network and disk subsystem are shared with equal-share fairness and burst capability +- **Higher I/O instance types** get larger allocations of shared resources, reducing I/O variance +- **Two hypervisors**: **Nitro** (current generation) and **Xen** (previous generation) +- **Two AMI virtualization types**: **HVM** (recommended, required for enhanced networking) and **PV** (legacy, limited support) +- **Processor families**: Intel, AMD EPYC, AWS Graviton (ARM), AWS Trainium (ML training), AWS Inferentia (ML inference) +- **AWS Graviton** — ARM-based processors designed for best price-performance +- **AWS Trainium** — purpose-built for high-performance deep learning training (PyTorch, TensorFlow) +- **AWS Inferentia** — optimized for low-latency ML inference; use with Neuron SDK +- You pay by the **instance second**, making it inexpensive to benchmark multiple types + +## Commands and Syntax +- **Find instance types programmatically**: use the EC2 instance type discovery APIs (see `instance-discovery.html`) +- **Change instance type after launch**: stop instance → change type → start (see `ec2-instance-resize.html`) +- **Launch Inferentia instances**: via SageMaker AI, Deep Learning AMI, custom AMI + Neuron SDK, ECS with optimized AMI, or EKS with Inf1/Inf2 nodes + +## Relationships +- **AMIs**: virtualization type (HVM/PV) of the AMI must match instance type support; HVM required for enhanced networking +- **EBS optimization**: related topic — certain instance types are EBS-optimized by default (`ebs-optimized.html`) +- **Burstable instances** (T3, T3a, T4g): subset with CPU credit model (`burstable-performance-instances.html`) +- **CPU options**: threads per core and core count can be customized (`instance-optimize-cpu.html`) +- **Nitro System**: underpins current-gen instances; enables enhanced networking, EBS optimization, and security features like AMD SEV-SNP +- **SageMaker AI / ECS / EKS**: deployment paths for ML-focused instance types (Inf1, Inf2, Trn1) +- **Compute Optimizer**: AWS service that recommends right-sizing instance types based on utilization + +## Exam-Relevant Points +- **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 +- **HVM is always preferred** over PV; HVM is required for enhanced networking and current-gen instances +- **Instance type can be changed** after launch (requires stop/start for most types) +- **Graviton instances** (denoted by `g` in type name, e.g., M7g, C7g) offer best price-performance +- **T-series** are burstable; all others provide fixed/dedicated CPU performance +- **U-series** (e.g., U-6tb1, U7i-12tb) are high-memory instances for large in-memory workloads +- **Trainium** (Trn1, Trn2) = training; **Inferentia** (Inf1, Inf2) = inference — don't confuse them +- **P-series** (P4d, P5, P6) = GPU instances for ML training/HPC; **G-series** = GPU for graphics/inference +- **Hpc-series** = dedicated high-performance computing family +- Instance naming: family + generation + processor suffix + capabilities + size (e.g., `c7gn.2xlarge` = Compute optimized, 7th gen, Graviton, network-optimized, 2xlarge) +- **Pay per instance-second** — benchmark multiple types cheaply before committing + diff --git a/entries/2026/03/08/ec2-key-pairs.md b/entries/2026/03/08/ec2-key-pairs.md new file mode 100644 index 0000000000000000000000000000000000000000..0bc03a8a29acf56df56bffa06ba1c93ea642d395 --- /dev/null +++ b/entries/2026/03/08/ec2-key-pairs.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html +source: sources/ec2-key-pairs.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:32 + +## Overview +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. + +## Key Concepts +- A **key pair** consists of a **public key** (stored by EC2 on the instance) and a **private key** (stored by the user) +- For **Linux instances**: the private key enables SSH access; the public key is placed in `~/.ssh/authorized_keys` on first boot +- For **Windows instances**: the private key is used to **decrypt the administrator password**, which is then used to connect +- **Amazon EC2 does not retain a copy of your private key** — if lost, there is no way to recover it from AWS +- A key pair can be specified at **launch time**; you can use the same key pair across instances or different ones +- **AWS Systems Manager Session Manager** is an alternative to key pairs for connecting to instances (browser-based shell or CLI) + +## Commands and Syntax +- Key pair is specified during instance launch via the `--key-name` parameter (or console equivalent) +- Public key location on Linux: `~/.ssh/authorized_keys` +- Related operations: + - Create a key pair (`create-key-pairs`) + - Describe key pairs (`describe-keys`) + - Delete a key pair (`delete-key-pair`) + - Add/replace a public key on a Linux instance (`replacing-key-pair`) + - Verify key pair fingerprint (`verify-keys`) + +## Relationships +- **EC2 Instance Launch** — key pair is one of the launch parameters +- **SSH / Instance Connect** — key pairs are the authentication mechanism for SSH connections +- **AWS Systems Manager Session Manager** — alternative connection method that bypasses key pairs entirely +- **Security best practices** — private key management is critical; anyone with the key can access the instance +- **Troubleshooting** — lost private keys connect to instance recovery procedures + +## Exam-Relevant Points +- EC2 stores the **public** key; the user is responsible for the **private** key — EC2 has **no way to recover** a lost private key +- On Linux, the public key goes into `~/.ssh/authorized_keys` at **first boot** +- On Windows, the private key is used to **decrypt the admin password**, not for direct login +- **Systems Manager Session Manager** is the recommended alternative when key pair management is undesirable (no need to manage SSH keys or open port 22) +- You can **add or replace** a public key on a running Linux instance without needing the original key pair +- Key pair fingerprint verification is available to confirm key authenticity + diff --git a/entries/2026/03/08/ec2-monitoring.md b/entries/2026/03/08/ec2-monitoring.md new file mode 100644 index 0000000000000000000000000000000000000000..22453fff32bdbe857074a37b9fb9118dcce98f41 --- /dev/null +++ b/entries/2026/03/08/ec2-monitoring.md @@ -0,0 +1,43 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring_ec2.html +source: sources/ec2-monitoring.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:32 + + + +## Overview +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. + +## Key Concepts +- **System status checks** – Monitor the underlying AWS infrastructure (physical host, network, power). Problems require AWS involvement or instance stop/start/terminate to resolve. +- **Instance status checks** – Monitor the instance's software and network configuration. Problems require customer action (reboot, OS-level fixes). +- **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. +- **EventBridge events** – Deliver AWS service events in **near real time**; enable automated responses via rules. +- **CloudTrail logs** – Capture all EC2 API calls (who, what, when, source IP) and store them in S3. +- **CloudWatch agent** – Collect **system-level metrics and logs** from both EC2 instances and on-premises servers (host and guest level). + +## Commands and Syntax +No CLI commands are shown on this page. Key operational actions referenced: +- Stop and restart or terminate and replace an instance to recover from system status check failures. +- Reboot an instance to recover from instance status check failures. +- Configure CloudWatch alarms with a threshold, time period, and number of evaluation periods. + +## Relationships +- **CloudWatch** – Central to alarms, metrics, and the CloudWatch agent; tightly integrated with EC2. +- **Amazon SNS** – Target for CloudWatch alarm notifications. +- **EC2 Auto Scaling** – Can be triggered by CloudWatch alarm actions. +- **EventBridge** – Receives EC2 system events for rule-based automation. +- **CloudTrail** – Logs EC2 API activity to S3 for auditing. +- **On-premises servers** – CloudWatch agent extends monitoring beyond EC2. + +## Exam-Relevant Points +- **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. +- 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. +- CloudTrail captures **API calls**, not performance metrics — that's CloudWatch's role. +- 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). +- EventBridge delivers events in **near real time**, making it suitable for automated remediation workflows. + diff --git a/entries/2026/03/08/ec2-overview.md b/entries/2026/03/08/ec2-overview.md new file mode 100644 index 0000000000000000000000000000000000000000..675567b68ddff394a597635583414b78d82e5dae --- /dev/null +++ b/entries/2026/03/08/ec2-overview.md @@ -0,0 +1,61 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html +source: sources/ec2-overview.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:33 + + + +## Overview + +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. + +## Key Concepts + +- **EC2 Instance** — A virtual server in the AWS Cloud; the instance type determines the hardware (CPU, memory, network, storage, GPU). +- **Amazon Machine Image (AMI)** — A preconfigured template containing the OS and software needed to launch an instance. +- **Instance Types** — Various configurations offering different balances of compute, memory, storage, and networking resources. +- **Amazon EBS Volumes** — Persistent block storage that survives instance stop/terminate (unlike instance store). +- **Instance Store Volumes** — Ephemeral storage that is **deleted** when you stop, hibernate, or terminate the instance. +- **Key Pairs** — Asymmetric key authentication; AWS stores the public key, user stores the private key. +- **Security Groups** — Virtual firewalls controlling inbound/outbound traffic by protocol, port, and IP range. +- **PCI DSS Compliance** — EC2 is validated as PCI DSS Level 1 compliant. + +## Commands and Syntax + +No specific CLI commands are listed on this page, but access methods include: + +- **EC2 Console** — Web UI via AWS Management Console → EC2 +- **AWS CLI** — `aws ec2 ` (reference: `aws cli latest/reference/ec2/`) +- **CloudFormation** — JSON/YAML templates to provision EC2 resources declaratively +- **AWS SDKs** — Language-specific APIs (Python/Boto3, Java, .NET, etc.) +- **AWS Tools for PowerShell** — PowerShell cmdlets built on .NET SDK +- **Query API** — Direct HTTP GET/POST with `Action` parameter + +## Relationships + +- **EC2 Auto Scaling** — Maintains correct instance count for workload demand +- **Elastic Load Balancing (ELB)** — Distributes traffic across multiple EC2 instances +- **Amazon CloudWatch** — Monitors instances and EBS volumes +- **AWS Backup** — Automates EC2 and EBS backup +- **Amazon GuardDuty** — Threat detection for EC2 instances +- **EC2 Image Builder** — Automates AMI creation and management +- **AWS Systems Manager** — Operations at scale on EC2 fleets +- **Alternative compute**: Amazon Lightsail (simpler/cheaper), Amazon ECS and Amazon EKS (container workloads) + +## Exam-Relevant Points + +- **Instance store data is lost** on stop, hibernate, or terminate — EBS persists. +- **On-Demand billing** is per-second with a 60-second minimum. +- **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. +- **Spot Instances** use unused capacity at significant discount but can be interrupted. +- **Dedicated Hosts** provide a physical server for compliance and BYOL (bring your own license) scenarios. +- **On-Demand Capacity Reservations** reserve capacity in a specific AZ without term commitment. +- **Security Groups** act as a virtual firewall at the instance level (stateful). +- **Key Pairs** use public/private key cryptography — AWS never stores your private key. +- **AWS Trusted Advisor** optimizes cost, security, and performance. +- **AWS Cost Explorer** shows up to 13 months of historical data and forecasts up to 12 months ahead. + diff --git a/entries/2026/03/08/ec2-reserved-instances.md b/entries/2026/03/08/ec2-reserved-instances.md new file mode 100644 index 0000000000000000000000000000000000000000..6c93f3977996286144236c940fcbd13b1bddc68b --- /dev/null +++ b/entries/2026/03/08/ec2-reserved-instances.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-reserved-instances.html +source: sources/ec2-reserved-instances.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:33 + +## Overview +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. + +## Key Concepts +- **RIs are billing constructs**, not physical instances — they apply a discount to matching On-Demand usage +- **AWS recommends Savings Plans** over RIs for easier, more flexible savings (up to 72% off On-Demand) +- Savings Plans commit to a USD/hour spend; RIs commit to a specific instance configuration +- RI discounts apply **immediately** when a running instance matches the RI attributes +- RIs **do not auto-renew** — when they expire, you revert to On-Demand rates +- RIs **cannot be cancelled** after purchase, but can be modified, exchanged (Convertible only), or sold on the RI Marketplace + +## Four Pricing Variables + +| Variable | Options | +|----------|---------| +| **Instance attributes** | Instance type (family + size), Region, Tenancy (shared/dedicated), Platform (Linux/Windows) | +| **Term commitment** | 1-year (31,536,000 sec) or 3-year (94,608,000 sec) — 3-year = bigger discount | +| **Payment option** | All Upfront, Partial Upfront, No Upfront — more upfront = more savings | +| **Offering class** | Standard (biggest discount, modify only) or Convertible (smaller discount, can exchange + modify) | + +## Commands and Syntax +No CLI commands on this page. Key actions referenced: +- **Modify** an RI — change attributes within constraints (Standard and Convertible) +- **Exchange** a Convertible RI — swap for a different Convertible RI with different attributes +- **Sell** an RI — list on the Reserved Instance Marketplace + +## Relationships +- **Savings Plans** — newer, more flexible alternative; commit to $/hr instead of instance config +- **On-Demand Instances** — the baseline pricing RIs discount against +- **Dedicated Instances** — tenancy option that affects RI pricing +- **RI Marketplace** — third-party resale of RIs at potentially lower prices / shorter terms +- **Billing & Cost Management** — RI discount application rules determine actual savings + +## Exam-Relevant Points +- RIs are **billing discounts**, not capacity reservations (unless zonal scope — covered in related topic) +- **Cannot cancel** an RI purchase — only modify, exchange (Convertible), or sell +- **Three payment options**: All Upfront (most savings) > Partial Upfront > No Upfront (least savings) +- **No Upfront** requires a successful billing history to purchase +- **Standard vs Convertible**: Standard = higher discount but no exchange; Convertible = lower discount but can exchange for different attributes +- **3-year term** offers a bigger discount than 1-year +- AWS officially recommends **Savings Plans over RIs** for new commitments +- RI must match **instance type, Region, tenancy, and platform** to apply the discount + diff --git a/entries/2026/03/08/ec2-security-groups.md b/entries/2026/03/08/ec2-security-groups.md new file mode 100644 index 0000000000000000000000000000000000000000..2f0dbd0f91cccb26ba86af60344819426096d170 --- /dev/null +++ b/entries/2026/03/08/ec2-security-groups.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-security-groups.html +source: sources/ec2-security-groups.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:33 + +## Overview +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. + +## Key Concepts +- A security group is a **virtual firewall** controlling inbound and outbound traffic for EC2 instances +- You can assign **multiple security groups to one instance**, and **multiple instances to one security group** (many-to-many) +- If no security group is specified at launch, the **default security group for the VPC** is used +- Security group **rules can be modified at any time**; changes are **automatically applied** to all associated instances +- When evaluating traffic, EC2 evaluates **all rules from all associated security groups** (union of rules) +- Security groups are **stateful**: response traffic to an allowed request is automatically permitted regardless of rules in the opposite direction +- **No additional charge** for using security groups +- Security groups are part of the **shared responsibility model** — AWS provides the tool, the customer must configure it +- You can run your own firewall on instances **in addition to** security groups if needed +- Security groups can be **changed after instance launch** + +## Commands and Syntax +No CLI commands provided in this page. Related procedures are linked: +- Create a security group: `creating-security-group.html` +- Change security groups for an instance: `changing-security-group.html` +- Delete a security group: `deleting-security-group.html` + +## Relationships +- **VPC** — security groups exist within a VPC; each VPC has a default security group +- **Subnets / Internet Gateways** — security groups work alongside VPC networking components to filter traffic before it reaches instances +- **Security group rules** — defined separately (in VPC User Guide); control the actual allow specifications (protocol, port, source/destination) +- **Connection tracking** — the mechanism that implements stateful behavior +- **NACLs** — not mentioned here but are the complementary stateless firewall at the subnet level +- **Shared responsibility model** — security groups are one tool within the broader EC2 security framework + +## Exam-Relevant Points +- Security groups are **stateful** (contrast with NACLs which are stateless) — this is a very commonly tested distinction +- Security groups **only allow rules** (no deny rules); traffic not explicitly allowed is denied by default +- Rules changes take effect **immediately and automatically** across all associated instances +- **Default behavior**: no security group specified → default VPC security group is used +- **No additional cost** for security groups +- Many-to-many relationship between security groups and instances +- All rules from all associated security groups are **evaluated together** (logical OR / union) + diff --git a/entries/2026/03/08/ec2-spot-instances.md b/entries/2026/03/08/ec2-spot-instances.md new file mode 100644 index 0000000000000000000000000000000000000000..20c5230c21613bb239ef6d218fe07e541ce4275c --- /dev/null +++ b/entries/2026/03/08/ec2-spot-instances.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html +source: sources/ec2-spot-instances.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:34 + +## Overview +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. + +## Key Concepts +- **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`) +- **Spot price** — The current per-hour price, set by Amazon EC2 and adjusted gradually based on long-term supply/demand +- **Spot Instance request** — Can be **one-time** or **persistent**; persistent requests are automatically resubmitted after interruption +- **EC2 instance rebalance recommendation** — A proactive signal indicating elevated risk of interruption, giving time to rebalance workloads *before* the 2-minute interruption notice +- **Spot Instance interruption** — AWS terminates, stops, or hibernates the instance with a **two-minute warning** when it needs capacity back +- Spot Instances are **not covered by Savings Plans**; Spot spend does not count toward Compute Savings Plans commitments +- Billing for interrupted instances depends on the OS and who initiated the interruption + +## Commands and Syntax +- **View Spot price history (CLI):** + ``` + aws ec2 describe-spot-price-history + ``` + Returns up to 3 months of history. Prices update every 5 minutes on the console. + +- **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. + +## Relationships +- **On-Demand Instances** — Spot's counterpart with static pricing and no involuntary interruption +- **Savings Plans** — Do *not* stack with Spot pricing and Spot spend does not apply to Savings Plans commitments +- **EC2 Auto Scaling** — Can terminate Spot Instances during scale-in events +- **Spot Fleet** — A mechanism to manage collections of Spot (and optionally On-Demand) instances +- **EBS-backed instances** — Spot Instances backed by EBS can be stopped and started (not just terminated) +- **Availability Zones** — AZ code-to-physical-zone mapping is per-account, so prices for the same AZ code may differ across accounts + +## Exam-Relevant Points +- Spot Instances provide up to 90% savings over On-Demand but can be interrupted with a **2-minute notice** +- A **rebalance recommendation** signal is separate from and arrives *before* the 2-minute interruption notice +- Persistent vs. one-time requests: persistent requests are automatically resubmitted after interruption +- Spot Instances are **not covered by Savings Plans** — this is a common exam distractor +- AZ-to-physical-zone mapping is **account-specific** — the same AZ code can represent different physical zones in different accounts +- Spot price history is available for the **past 3 months**; current prices update every **5 minutes** +- Suitable workloads: batch processing, data analysis, CI/CD, stateless web servers, HPC — anything fault-tolerant +- EBS-backed Spot Instances can be **stopped and restarted**, not just terminated + diff --git a/entries/2026/03/08/eks-feature-parity-cross-reference.md b/entries/2026/03/08/eks-feature-parity-cross-reference.md new file mode 100644 index 0000000000000000000000000000000000000000..a73bfd2aa88c6519d928bf4ae4782117f019579d --- /dev/null +++ b/entries/2026/03/08/eks-feature-parity-cross-reference.md @@ -0,0 +1,67 @@ +# EKS Feature Parity Cross-Reference + +**Date:** 2026-03-08 +**Time:** 18:38 + +## Summary + +Cross-reference of AWS EKS features against self-hosted Kubernetes alternatives (kubeadm, k3s, RKE2, OpenShift). Maps AWS expert beliefs to replacement requirements. + +## Well Covered by Self-Hosted Alternatives + +| EKS Feature | AWS Expert Beliefs | Self-Hosted Equivalent | +|---|---|---| +| Kubernetes API | `eks-certified-kubernetes-conformant` | All alternatives are CNCF-certified Kubernetes distributions. Full API compatibility. | +| RBAC | `eks-access-control-rbac-and-iam` | Native Kubernetes RBAC is available in all distributions. | +| Container networking | `eks-vpc-cni-plugin-pod-networking` | Calico, Flannel, Cilium, Weave — multiple CNI plugins available. | +| Storage | `eks-auto-mode-ebs-storage-classes` | CSI drivers for any storage backend (Ceph, NFS, local, cloud). Longhorn for replicated block storage. | +| Version management | `eks-standard-and-extended-version-support` | Self-managed upgrades with kubeadm, or automated with RKE2/k3s. | + +## Gaps in Self-Hosted Alternatives + +### Managed Control Plane +- **EKS provides:** Managed etcd, API server, scheduler, controller manager — AWS handles control plane availability, patching, and scaling +- **Self-hosted gap:** Must manage control plane HA (typically 3+ masters), etcd backup/restore, certificate rotation, and upgrades. This is the biggest operational burden. +- **Migration implication:** Control plane management is the primary reason teams choose EKS. Self-hosted requires dedicated platform engineering effort. + +### Fargate Integration +- **EKS provides:** `eks-fargate-serverless-compute` — serverless pod execution, no node management +- **Self-hosted gap:** No equivalent. Virtual Kubelet can approximate with external compute but is not production-grade for most use cases. + +### IAM Integration +- **EKS provides:** `eks-access-control-rbac-and-iam` — map IAM roles to Kubernetes service accounts (IRSA), pod-level AWS permissions +- **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. + +### Managed Add-ons +- **EKS provides:** `eks-capabilities-managed-controllers` — managed CoreDNS, kube-proxy, VPC CNI, EBS CSI, with automatic updates +- **Self-hosted gap:** Must manage all add-on lifecycle manually. Helm charts help but upgrades are still manual. + +### Auto Mode +- **EKS provides:** `eks-standard-vs-auto-mode` — automatic node provisioning, scaling, and management (Karpenter-based) +- **Self-hosted gap:** Cluster Autoscaler or Karpenter can be self-hosted but require more configuration. No equivalent of fully managed node lifecycle. + +### GuardDuty Threat Detection +- **EKS provides:** `eks-guardduty-threat-detection` — automatic threat detection for Kubernetes audit logs +- **Self-hosted gap:** Falco is the closest equivalent for runtime security. Must also set up audit log analysis separately. + +### Hybrid Nodes +- **EKS provides:** `eks-hybrid-nodes-different-cni` — run on-premises nodes connected to EKS control plane +- **Self-hosted gap:** Not applicable — self-hosted is already on-premises. But `eks-anywhere-on-premises-clusters` is EKS's own self-hosted offering. + +### Monitoring Integration +- **EKS provides:** `eks-monitoring-cloudwatch-prometheus-cloudtrail` — native CloudWatch Container Insights, managed Prometheus +- **Self-hosted gap:** Must deploy Prometheus + Grafana stack. Well-documented but additional operational overhead. + +## EKS Features With No Self-Managed Equivalent + +- **EKS Anywhere:** `eks-anywhere-on-premises-clusters` — AWS's own answer to self-hosted EKS, interestingly +- **Savings Plans:** `eks-savings-plans-apply-to-compute` — pricing model, not a technical feature +- **Per-cluster pricing:** `eks-pricing-per-cluster` — $0.10/hour per cluster for the control plane + +## Recommendations + +1. **k3s for lightweight / edge environments** — single binary, embedded etcd, minimal resource requirements +2. **RKE2 for production environments** — CIS hardened, FIPS compliant, manages control plane lifecycle +3. **OpenShift for enterprise environments** — includes built-in monitoring, logging, CI/CD, and security policies +4. **Control plane management is the biggest operational gap** — budget platform engineering time for etcd operations, certificate management, and version upgrades +5. **Falco + Prometheus + Grafana replaces EKS's monitoring/security stack** but requires dedicated setup and maintenance diff --git a/entries/2026/03/08/eks-getting-started.md b/entries/2026/03/08/eks-getting-started.md new file mode 100644 index 0000000000000000000000000000000000000000..f6273bdf73ca1341129a4665d5be565986e4721b --- /dev/null +++ b/entries/2026/03/08/eks-getting-started.md @@ -0,0 +1,38 @@ +--- +source_url: https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html +source: sources/eks-getting-started.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:34 + + + +## Overview +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. + +## Key Concepts +- **Amazon EKS** provides managed Kubernetes clusters on AWS +- **Prerequisites**: Users must complete setup steps before following either getting started guide (see "Set up to use Amazon EKS") +- **Two getting started paths** exist, differing in automation level and visibility into resource creation +- **eksctl** is described as "a simple command line utility for creating and managing Kubernetes clusters on Amazon EKS" — the fastest and simplest approach +- **Console + CLI path** requires manually creating each resource, providing visibility into how resources are created and interact + +## Commands and Syntax +No specific commands on this page; it references: +- `eksctl` — CLI tool for EKS cluster lifecycle management +- AWS CLI — used in the console-based guide + +## Relationships +- **Prerequisite**: "Set up to use Amazon EKS" (setup page) +- **Path 1**: Getting started with eksctl +- **Path 2**: Getting started with AWS Management Console and AWS CLI +- **Related**: AWS SDKs code examples for EKS, EKS Cluster Setup tutorials on AWS Community + +## Exam-Relevant Points +- **eksctl is the fastest/simplest way** to create an EKS cluster — likely tested as the recommended quick-start tool +- Both paths result in a **running EKS cluster that you can deploy applications to** +- The console/CLI path creates resources **manually**, giving visibility into resource interactions — important for understanding EKS architecture +- EKS requires **setup/prerequisites** before cluster creation + diff --git a/entries/2026/03/08/eks-networking.md b/entries/2026/03/08/eks-networking.md new file mode 100644 index 0000000000000000000000000000000000000000..761925a2a626cb22b8dea51f6da51ca58fb49d79 --- /dev/null +++ b/entries/2026/03/08/eks-networking.md @@ -0,0 +1,39 @@ +--- +source_url: https://docs.aws.amazon.com/eks/latest/userguide/eks-networking.html +source: sources/eks-networking.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:34 + +## Overview +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. + +## Key Concepts +- **EKS clusters are always created within a VPC** — networking is not optional or separate. +- **Pod networking** is handled by the **Amazon VPC Container Network Interface (CNI) plugin** for nodes running on AWS infrastructure. +- **Hybrid nodes** (nodes on your own infrastructure) use a separate CNI configuration path. +- Existing VPC subnets can be added to a running EKS cluster post-creation via the management console. +- EKS networking spans several sub-domains: VPC/subnet requirements, VPC creation, security group requirements, and networking add-ons. + +## Commands and Syntax +No CLI commands on this page. Console procedure for adding a subnet to an existing cluster: + +1. Navigate to the cluster in the AWS Management Console. +2. Open the **Networking** tab → select **Manage VPC Resources**. +3. From the **Subnets** dropdown, select additional subnets from the cluster's VPC. + +## Relationships +- **VPC CNI Plugin** — the core networking add-on; detailed under networking add-ons management. +- **VPC and Subnet Requirements** — prerequisite knowledge for cluster creation (`network-reqs`). +- **Security Groups** — controls traffic flow to/from cluster components (`sec-group-reqs`). +- **Hybrid Nodes CNI** — alternative path for non-AWS infrastructure (`hybrid-nodes-cni`). +- **Amazon VPC service** — EKS depends on VPC for all network isolation and routing. + +## Exam-Relevant Points +- EKS uses the **Amazon VPC CNI plugin** for pod networking — pods get real VPC IP addresses (not overlay IPs). +- You **can add subnets** to an existing EKS cluster after creation (but they must be in the same VPC). +- Hybrid nodes require a **different CNI configuration** than standard AWS-hosted nodes. +- Understanding the distinction between cluster networking (VPC/subnets/security groups) and pod networking (CNI plugin) is fundamental to EKS architecture questions. + diff --git a/entries/2026/03/08/eks-overview.md b/entries/2026/03/08/eks-overview.md new file mode 100644 index 0000000000000000000000000000000000000000..719a58722b4fe1f9a982acb3383932a0729d45af --- /dev/null +++ b/entries/2026/03/08/eks-overview.md @@ -0,0 +1,63 @@ +--- +source_url: https://docs.aws.amazon.com/eks/latest/userguide/what-is-eks.html +source: sources/eks-overview.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:35 + + + +## Overview + +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). + +## Key Concepts + +- **EKS Standard**: AWS manages the Kubernetes control plane (scheduling, scaling, updates); you manage worker nodes. +- **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. +- **EKS Anywhere**: Run EKS clusters in your own data centers. +- **EKS Hybrid Nodes**: Connect on-premises nodes to EKS clusters in the cloud. +- **EKS Capabilities**: Fully managed cluster services extending functionality via Kubernetes-native tools: + - **Argo CD** — GitOps-based continuous deployment + - **AWS Controllers for Kubernetes (ACK)** — manage AWS resources via Kubernetes APIs + - **kro (Kube Resource Orchestrator)** — custom resource composition +- **Kubernetes Conformance**: EKS is certified Kubernetes-conformant; existing K8s apps deploy without refactoring. +- **Support tiers**: Standard support and Extended support for Kubernetes versions. + +## Commands and Syntax + +Management interfaces for EKS: +- **AWS Console**, **AWS CLI**, **eksctl CLI**, **EKS API/SDKs**, **CDK**, **CloudFormation**, **Terraform** + +No specific CLI commands were provided on this page, but key tools include: +``` +eksctl # Dedicated EKS CLI for cluster lifecycle +aws eks # AWS CLI subcommand for EKS operations +``` + +## Relationships + +- **Compute**: Amazon EC2 (instance types including Nitro, Graviton); AWS Fargate (serverless) +- **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 +- **Container Registry**: Amazon ECR +- **Networking/Load Balancing**: Elastic Load Balancing, Amazon VPC +- **Monitoring/Observability**: Amazon CloudWatch, Amazon Managed Prometheus, AWS CloudTrail, ADOT Operator, observability dashboard, Metrics Server +- **Security**: AWS IAM (access control), Amazon GuardDuty (threat detection), shared responsibility model +- **Resilience**: AWS Resilience Hub +- **Cost**: Savings Plans applicable to EKS compute + +## Exam-Relevant Points + +- EKS manages the **control plane**; in Auto Mode it also manages the **data plane**. +- EKS is **certified Kubernetes-conformant** — no app refactoring needed. +- **Pricing is per-cluster** based on K8s version support tier, plus separate charges for compute (EC2/Fargate), storage (EBS), and networking (public IPv4). +- **EKS Auto Mode** handles: infrastructure provisioning, compute selection, dynamic scaling, cost optimization, OS patching, and AWS security integration. +- Access control uses **both Kubernetes RBAC and AWS IAM**. +- Storage in Auto Mode auto-creates **EBS-backed storage classes**; other storage uses **CSI drivers**. +- EKS offers **standard and extended Kubernetes version support**. +- **Savings Plans** can be applied to EKS compute costs. +- EKS follows the **shared responsibility model** for security. +- **EKS Capabilities** (Argo CD, ACK, kro) are managed services — controllers run in EKS infrastructure, not in your cluster, with automated patching/scaling/monitoring. + diff --git a/entries/2026/03/08/elasticache-overview.md b/entries/2026/03/08/elasticache-overview.md new file mode 100644 index 0000000000000000000000000000000000000000..789b4ec956bb479492a207e66bd1ef0dd68bd72d --- /dev/null +++ b/entries/2026/03/08/elasticache-overview.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/WhatIs.html +source: sources/elasticache-overview.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:35 + +## Overview +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). + +## Key Concepts +- **In-memory data store/cache** — ElastiCache provides high-performance, low-latency caching by keeping data in memory rather than on disk. +- **Two operational formats**: Serverless and Node-based clusters. +- **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. +- **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. +- **Supported engines**: Valkey, Memcached, Redis OSS. +- **Serverless version compatibility**: Valkey 7.2, Memcached 1.6.22+, Redis OSS 7.1+. +- **Fully managed** — AWS handles hardware provisioning, monitoring, node replacement, and software patching in both formats. + +## Commands and Syntax +- Serverless cache creation: specify cache name via **ElastiCache console, SDK, or CLI** (no further configuration required). +- Node-based cluster creation: specify **node type**, **number of nodes**, and **AZ placement**. +- No specific CLI commands shown on this page; creation is done through console/SDK/CLI. + +## Relationships +- **Engine selection** — ties to the engine comparison topic (`SelectEngine`): Valkey vs Memcached vs Redis OSS. +- **Engine versions** — ties to version support and upgrade paths (`engine-versions`). +- **Availability Zones** — node-based clusters can be single-AZ or multi-AZ. +- **Cluster mode** — enables horizontal scaling (sharding); without it, only vertical scaling is available. Applies to Valkey and Redis OSS. + +## Exam-Relevant Points +- ElastiCache has **two deployment models**: Serverless (auto-scaling, simplified) and Node-based (manual control). +- Serverless eliminates capacity planning; node-based requires the user to correctly size node type and count. +- Serverless supports **Valkey 7.2, Memcached 1.6.22+, Redis OSS 7.1+** — know the minimum versions. +- Node-based clusters allow choosing **single-AZ or multi-AZ** availability. +- **Cluster mode** enables horizontal scaling (partitioning data across shards); without cluster mode, scaling is vertical only. +- In node-based clusters, users control **when software patches are applied**; in serverless, patching is fully automatic. +- ElastiCache supports three engines: **Valkey, Memcached, and Redis OSS** — not just Redis. + diff --git a/entries/2026/03/08/elasticache-replication.md b/entries/2026/03/08/elasticache-replication.md new file mode 100644 index 0000000000000000000000000000000000000000..aed17d2b5cd4db089fa428ddc566d2ff346ce061 --- /dev/null +++ b/entries/2026/03/08/elasticache-replication.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Replication.html +source: sources/elasticache-replication.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:35 + +## Overview +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. + +## Key Concepts +- **Single-node clusters** have limited data protection; all data is lost on failure +- **Replication groups** consist of 2–6 nodes: 1 read/write primary + 1–5 read-only replicas +- **Shard** (called *node group* in API/CLI) is the container for a replication structure +- **Cluster mode disabled**: always exactly 1 shard +- **Cluster mode enabled**: up to 500 shards, data partitioned across them +- **Maximum 90 nodes per cluster** (e.g., 90 shards × 0 replicas, or 15 shards × 5 replicas) +- **Node/shard limit of 500** available for ElastiCache for Valkey and Redis OSS version 5.0.6+; older versions limited to 250 +- A 500-node cluster can range from 83 shards (1 primary + 5 replicas each) to 500 shards (primary only) +- Replication is **asynchronous** — some data loss possible if the primary fails +- **Multi-AZ** enables automatic failover from primary to a read replica + +## Commands and Syntax +No specific CLI commands on this page, but key references: +- Shard = "node group" in the API/CLI +- To request node limit increases: AWS Service Limits → limit type **"Nodes per cluster per instance type"** +- Subnet groups must have sufficient IP addresses (CIDR range) to accommodate node increases + +## Relationships +- **Multi-AZ with Auto Failover**: automatic promotion of replica to primary on failure +- **Subnet Groups**: must be correctly sized; shared/small subnets are a common pitfall +- **Cluster Mode Disabled vs. Enabled**: determines single-shard vs. multi-shard topology +- **Disaster Recovery / Fault Tolerance**: ties into mitigating failure strategies +- **AOF (Append Only File)**: the limited data protection available to single-node clusters + +## Exam-Relevant Points +- Single-node cluster = no replication, all data lost on failure +- Max 5 read replicas per shard +- Cluster mode disabled = 1 shard; cluster mode enabled = up to 500 shards +- Max 90 nodes per cluster (general); max 500 shards per cluster (with limit increase, version 5.0.6+) +- Pre-5.0.6 limit: 250 nodes per cluster +- Replication is **asynchronous** — data loss possible on primary failure +- Subnet CIDR sizing is a common pitfall when scaling node counts +- Multi-AZ enables automatic failover; without it, primary failure requires manual intervention + diff --git a/entries/2026/03/08/iam-access-keys.md b/entries/2026/03/08/iam-access-keys.md new file mode 100644 index 0000000000000000000000000000000000000000..da21bcfd67d811d29d7bae25f89c245c14ffc315 --- /dev/null +++ b/entries/2026/03/08/iam-access-keys.md @@ -0,0 +1,51 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html +source: sources/iam-access-keys.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:17 + + + +## Overview +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. + +## Key Concepts +- Access keys have two parts: **access key ID** (e.g., `AKIAIOSFODNN7EXAMPLE`) and **secret access key** (e.g., `wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`) +- Both parts are required together to authenticate requests +- The **secret access key can only be retrieved at creation time** — if lost, you must delete and recreate +- **Maximum of two access keys per IAM user** (enables rotation without downtime) +- Access keys are **long-term credentials** — they don't expire automatically +- Stored in the shared AWS credentials file in **plaintext** + +## Commands and Syntax +No specific CLI commands on this page, but access keys are used with: +- AWS CLI authentication +- AWS API direct calls +- AWS SDK programmatic access + +Key management tasks referenced: +- Create, update, delete, and rotate access keys +- Attach inline policies to control access key usage +- Self-managed vs. administrator-managed access keys + +## Relationships +- **IAM Roles / Temporary Credentials**: Preferred alternative to access keys +- **IAM Users**: Access keys are associated with IAM users (or root) +- **AWS CloudTrail**: Monitor access key usage and detect unauthorized access +- **Amazon CloudWatch**: Set alarms for denied access attempts +- **IAM Policies**: Inline policies can control access key usage +- **AWS STS**: Provides the temporary credentials that should replace access keys + +## Exam-Relevant Points +- **Maximum two access keys per user** — this limit enables key rotation (one active while transitioning to the new one) +- **Secret key is only available at creation** — cannot be retrieved later +- **Best practice is to use IAM roles/temporary credentials** instead of access keys +- **Never use root account access keys** — critical security anti-pattern +- **Never embed access keys in application code or project files** +- Access key IDs starting with `AKIA` indicate long-term IAM user keys +- **CloudTrail** is the service for monitoring/auditing access key usage +- Credentials file stores keys in **plaintext** — important security consideration + diff --git a/entries/2026/03/08/iam-best-practices.md b/entries/2026/03/08/iam-best-practices.md new file mode 100644 index 0000000000000000000000000000000000000000..24a78723d62abe984bfddaeef1727b96df4eb9c3 --- /dev/null +++ b/entries/2026/03/08/iam-best-practices.md @@ -0,0 +1,59 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html +source: sources/iam-best-practices.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:18 + +## Overview + +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. + +## Key Concepts + +- **Federation over IAM users**: Human users should access AWS through an identity provider (IdP) using temporary credentials, not long-lived IAM user credentials +- **IAM Identity Center**: AWS's recommended centralized access management service for federated access across accounts +- **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 +- **IAM Roles Anywhere**: Enables external workloads to obtain temporary AWS credentials using X.509 certificates from PKI +- **Least-privilege permissions**: Grant only the permissions required to perform a task — define allowed actions on specific resources under specific conditions +- **AWS managed policies**: Pre-built policies for common use cases; use as starting point, then refine to customer managed policies +- **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 +- **Last accessed information**: IAM feature to identify unused users, roles, permissions, policies, and credentials for cleanup +- **Permissions boundaries**: Managed policies that set the maximum permissions an identity-based policy can grant — used to delegate permission management safely +- **SCPs and RCPs**: Organization-level guardrails that restrict (but do not grant) permissions across accounts + +## Commands and Syntax + +No CLI commands are provided directly, but key API/service references include: + +- **STS APIs for external workloads**: + - `AssumeRoleWithSAML` — federate via SAML assertion + - `AssumeRoleWithWebIdentity` — federate via JWT/OIDC token +- **IAM Roles Anywhere** — X.509 certificate-based credential delivery +- **IAM Access Analyzer** — policy generation, policy validation, access previews +- **`git-remote-codecommit`** — utility for CodeCommit access with rotating credentials (avoids IAM user SSH keys) + +## Relationships + +- **IAM Identity Center** — preferred federation service for workforce identities +- **AWS Organizations / SCPs / RCPs** — multi-account permission guardrails work alongside IAM policies +- **CloudTrail** — access activity logs feed IAM Access Analyzer policy generation +- **IAM Roles** — central mechanism for delivering temporary credentials to both humans and workloads +- **Permissions Boundaries** — advanced feature used with identity-based policies to cap effective permissions +- **MFA** — required for IAM users and root users; also configurable in IAM Identity Center +- **Services delivering temp creds outside AWS**: ECS Anywhere, EKS Hybrid Nodes, Systems Manager Hybrid Activations + +## Exam-Relevant Points + +- **Temporary credentials are always preferred** over long-term access keys; IAM roles are the delivery mechanism +- **Root user credentials** must be safeguarded; follow root user best practices (separate from day-to-day use) +- **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 +- **SCPs and RCPs do not grant permissions** — they only restrict; you still need identity-based or resource-based policies to grant access +- **Permissions boundaries do not grant permissions** on their own — they set a ceiling on what identity-based policies can grant +- **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 +- **Policy conditions** can enforce requirements like TLS (`aws:SecureTransport`) or restrict actions to specific AWS services +- **Regularly review and remove unused identities and credentials** using IAM last accessed information +- **Start broad, then reduce**: AWS recommends starting with managed policies and progressively tightening to least privilege + diff --git a/entries/2026/03/08/iam-cross-account.md b/entries/2026/03/08/iam-cross-account.md new file mode 100644 index 0000000000000000000000000000000000000000..8d920afb73fa28515ee59370457904a0a66a91a8 --- /dev/null +++ b/entries/2026/03/08/iam-cross-account.md @@ -0,0 +1,102 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html +source: sources/iam-cross-account.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:18 + + + +## Overview + +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. + +## Key Concepts + +- **Cross-account access** uses IAM roles to share resources between AWS accounts without creating duplicate IAM users +- **Trusted account (Originating)** — the account whose users are allowed to assume the role +- **Trusting account (Destination)** — the account that holds the role and the resources +- **Trust relationship** — established by specifying the Originating account ID as a trusted entity when creating the role in the Destination account +- **Temporary credentials** — AssumeRole returns AccessKeyId, SecretAccessKey, and SessionToken with an expiration time +- **Only one set of permissions active at a time** — while using the assumed role, the user cannot use their original account permissions +- **Root users cannot switch roles** — you must be signed in as an IAM user or federated identity +- **Partition restriction** — cross-account role delegation only works within a single partition (e.g., `aws` and `aws-cn` cannot cross) +- **ExternalId limitation** — roles requiring ExternalId cannot be assumed via the console; must use CLI or API +- **Explicit Deny** — to prevent PowerUsers (like Analysts) from assuming a role, you must add an explicit Deny policy since PowerUser permissions are broad + +## Commands and Syntax + +**AssumeRole via CLI:** +```bash +aws sts assume-role \ + --role-arn "arn:aws:iam::999999999999:role/UpdateData" \ + --role-session-name "David-ProdUpdate" +``` + +**Setting temporary credentials (Linux/macOS):** +```bash +export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE +export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY +export AWS_SESSION_TOKEN=AQoDYXdzEGcaEXAMPLE... +``` + +**S3 bucket permission policy for the role:** +```json +{ + "Version": "2012-10-17", + "Statement": [ + { "Effect": "Allow", "Action": "s3:ListAllMyBuckets", "Resource": "*" }, + { "Effect": "Allow", "Action": ["s3:ListBucket", "s3:GetBucketLocation"], "Resource": "arn:aws:s3:::amzn-s3-demo-bucket-shared-container" }, + { "Effect": "Allow", "Action": ["s3:GetObject", "s3:PutObject", "s3:DeleteObject"], "Resource": "arn:aws:s3:::amzn-s3-demo-bucket-shared-container/*" } + ] +} +``` + +**Allow policy (for Developers to assume the role):** +```json +{ + "Version": "2012-10-17", + "Statement": { + "Effect": "Allow", + "Action": "sts:AssumeRole", + "Resource": "arn:aws:iam::999999999999:role/UpdateData" + } +} +``` + +**Deny policy (to block Analysts from assuming the role):** +```json +{ + "Version": "2012-10-17", + "Statement": { + "Effect": "Deny", + "Action": "sts:AssumeRole", + "Resource": "arn:aws:iam::999999999999:role/UpdateData" + } +} +``` + +## Relationships + +- **STS (Security Token Service)** — provides the AssumeRole API that generates temporary credentials +- **S3** — the target resource in this tutorial; role permissions are scoped to a specific bucket +- **IAM Policies** — both the trust policy (on the role) and identity policies (on the users/groups) must align for cross-account access to work +- **IAM Identity Center (SSO)** — recommended alternative for cross-account access using federation and SAML +- **IAM Access Analyzer** — can identify whether principals outside your zone of trust can assume your roles +- **ExternalId** — used with third-party access scenarios to prevent confused deputy attacks +- **Role chaining** — AWS SDKs can auto-refresh temporary credentials when using role chaining + +## Exam-Relevant Points + +- 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) +- The **root user cannot assume roles** via Switch Role +- Cross-account roles **do not work across partitions** (e.g., `aws` to `aws-cn`) +- `sts:AssumeRole` returns three components: **AccessKeyId, SecretAccessKey, SessionToken** +- To block a group with broad permissions from assuming a role, use an **explicit Deny** on `sts:AssumeRole` +- While using an assumed role, the user's **original permissions are not active** — only one set of permissions at a time +- `aws configure` **cannot capture session tokens**; use environment variables or manual config file edits +- Console-based role switching **does not work** when `ExternalId` is required +- S3 bucket ARN for bucket-level actions uses `arn:aws:s3:::bucket-name`; for object-level actions uses `arn:aws:s3:::bucket-name/*` + diff --git a/entries/2026/03/08/iam-groups.md b/entries/2026/03/08/iam-groups.md new file mode 100644 index 0000000000000000000000000000000000000000..8bd05fe7e519174a6857d9a50bf9fb8c56809106 --- /dev/null +++ b/entries/2026/03/08/iam-groups.md @@ -0,0 +1,42 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups.html +source: sources/iam-groups.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:18 + + + +## Overview +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. + +## Key Concepts +- A user group is a collection of IAM users — it is **not** an authenticated entity (not a principal) +- Policies attached to a group apply to all users in that group +- A user can belong to **multiple** user groups +- User groups **cannot be nested** (no groups within groups — users only) +- There is **no default group** that includes all users; you must create and populate one manually +- Groups relate to **permissions**, not authentication +- Only **identity-based policies** can be attached to groups (not resource-based) +- A group **cannot be identified as a `Principal`** in a resource-based policy + +## Commands and Syntax +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. + +## Relationships +- **IAM Users**: Groups contain users; users can belong to multiple groups +- **Identity-based policies**: Attached to groups to grant permissions to all members +- **Resource-based policies**: Groups cannot appear as principals in these policies +- **IAM Roles**: Unlike groups, roles are principals and can be assumed; groups cannot +- **IAM quotas**: Limits apply to number of groups per account and groups per user + +## Exam-Relevant Points +- Groups **cannot be nested** — this is a frequently tested constraint +- Groups **cannot be used as principals** in resource-based policies — key distinction from users and roles +- There is **no automatic "all users" group** — must be created manually +- A user **can belong to multiple groups** +- Groups are a permissions mechanism, **not an authentication mechanism** +- IAM quotas limit the number of groups and group memberships + diff --git a/entries/2026/03/08/iam-identity-center.md b/entries/2026/03/08/iam-identity-center.md new file mode 100644 index 0000000000000000000000000000000000000000..841b6633944d1a5b584c1be831941636aa9ad0ce --- /dev/null +++ b/entries/2026/03/08/iam-identity-center.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html +source: sources/iam-identity-center.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:19 + +## Overview + +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. + +## Key Concepts + +- **Workforce identity management** — IAM Identity Center is for *workforce* users (employees), not application end-users (that's Cognito) +- **Identity sources** — Three options: IAM Identity Center's built-in directory, external IdP via SAML 2.0, or Active Directory (via AWS Directory Service) +- **Two instance types:** + - **Organization instance** — deployed in the AWS Organizations management account; best practice for production; required for multi-account access + - **Account instance** — bound to a single AWS account; only for isolated deployments of select managed applications +- **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 +- **Multi-account permissions** — assign permissions to groups of users across multiple AWS accounts from a single place; only available with organization instances +- **Single point of federation** — federate once with your IdP, one SAML certificate to manage +- **AWS access portal** — user-facing web portal for accessing all assigned applications and accounts +- **Multi-Region replication** — IAM Identity Center instance can be replicated to additional Regions for resilience and regional application deployment +- **Coexistence with IAM federation** — existing IAM federation workflows continue to work alongside IAM Identity Center + +## Commands and Syntax + +Legacy CLI namespaces (unchanged after the SSO → Identity Center rename): +```bash +aws configure sso # Configure CLI SSO profile +aws sso login # Login via SSO +aws identitystore ... # Identity store operations +aws sso ... # SSO operations +aws sso-admin ... # SSO admin operations +aws sso-oidc ... # SSO OIDC operations +``` + +CloudFormation resource prefix: `AWS::SSO` + +Service-linked role: `AWSServiceRoleForSSO` + +Managed policy prefixes: `AWSSSO` and `AWSIdentitySync` + +## Relationships + +- **AWS Organizations** — organization instances require AWS Organizations; deployed in the management account +- **IAM** — complements IAM; IAM Identity Center handles workforce SSO while IAM handles fine-grained access policies and service roles +- **SAML 2.0 IdPs** — integrates with external identity providers (Okta, Azure AD, etc.) +- **AWS managed applications** — QuickSight, Kiro, Redshift, and others integrate natively +- **CloudTrail** — logs user activity with actual user identity via trusted identity propagation +- **CloudFormation** — resources provisioned via `AWS::SSO` namespace + +## Exam-Relevant Points + +- IAM Identity Center is the **recommended** approach for managing workforce access to multiple AWS accounts (over per-account IAM federation) +- **Organization instances** are the best practice; **account instances** are limited to isolated app deployments +- 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** +- **Trusted identity propagation** enables identity-aware access across chained AWS services with CloudTrail audit at the user level +- Multi-account permissions are **only available with organization instances** +- IAM Identity Center provides a **single point of federation** — one SAML certificate, one integration point +- You do **not** need to migrate away from existing IAM federation to adopt IAM Identity Center for applications + diff --git a/entries/2026/03/08/iam-mfa.md b/entries/2026/03/08/iam-mfa.md new file mode 100644 index 0000000000000000000000000000000000000000..f3b3ea513499d40bbc228adb3da647b1624fa2c6 --- /dev/null +++ b/entries/2026/03/08/iam-mfa.md @@ -0,0 +1,79 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_mfa.html +source: sources/iam-mfa.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:19 + +## Overview + +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. + +## Key Concepts + +- **MFA** requires a second authentication factor beyond username/password when accessing AWS +- Root user MFA is **enforced for all account types** (standalone, management, and member accounts) +- Enabling MFA for root user **does not affect IAM users** — each identity has its own MFA configuration +- Up to **8 MFA devices** of any type can be registered per root user or IAM user +- Only **one MFA device** is needed to sign in to the Console or create a CLI session +- **SMS-based MFA has been discontinued** — users must migrate to passkeys, virtual MFA, or hardware tokens +- Unassigned virtual MFA devices are automatically deleted when adding new ones + +## Three MFA Types + +- **Passkeys and security keys (FIDO2)** + - Based on FIDO standards; uses public key cryptography + - **Phishing-resistant** — more secure than TOTP-based methods + - **Device-bound passkeys** (e.g., YubiKey) — physical security keys + - **Synced passkeys** — stored in credential managers (Google, Apple, 1Password, Dashlane, Bitwarden) + - Support biometric unlock (Touch ID, face, device PIN) + - Cross-device authentication (CDA) supported + - A single security key can support multiple root and IAM users + - Can only be enabled via **Console** — not CLI or API +- **Virtual authenticator applications** + - Software-based TOTP (RFC 6238) on phone or device + - Support multiple tokens per device; each token must be unique per user + - Recommended as interim solution while waiting for hardware +- **Hardware TOTP tokens** + - Physical device generating 6-digit TOTP codes + - Must be purchased from AWS-approved sources (token seeds must be shared with AWS at production) + - Tokens from other sources **will not work** + - Security keys are recommended over hardware TOTP (no battery, phishing-resistant, multi-user) + +## Commands and Syntax + +```bash +# List virtual MFA devices (find unassigned ones) +aws iam list-virtual-mfa-devices + +# Deactivate a virtual MFA device (makes it unassigned) +aws iam deactivate-mfa-device --user-name --serial-number + +# Enable/attach a virtual MFA device +aws iam enable-mfa-device --user-name --serial-number \ + --authentication-code1 --authentication-code2 +``` + +## Relationships + +- **IAM Identity Center**: Recommended for centralized MFA-protected SSO across multiple accounts; supports SAML 2.0 identity providers +- **AWS STS**: FIDO security key MFA information **cannot** be passed to STS API operations for temporary credentials +- **IAM Policies**: MFA can be required via IAM policy conditions (e.g., `aws:MultiFactorAuthPresent`) +- **Root user security**: MFA is a core component of root user best practices +- **Temporary credentials**: AWS recommends temporary credentials via IAM Identity Center over long-lived IAM user credentials + +## Exam-Relevant Points + +- MFA is **enforced** for root users across all account types +- Maximum of **8 MFA devices** per user (any combination of types) +- **FIDO security keys cannot be enabled via CLI or API** — Console only +- **FIDO MFA info cannot be passed to STS** for temporary credentials +- **SMS MFA is no longer supported** — must use passkeys, virtual MFA, or hardware TOTP +- Hardware TOTP tokens **must be purchased from AWS-approved vendors** — third-party tokens won't work +- Passkeys/security keys are **phishing-resistant**; TOTP methods are not +- A single security key can serve **multiple users**; TOTP tokens are **one-to-one** +- Enabling root user MFA does **not** enable MFA for IAM users — they are independent +- An IAM user **must authenticate with an existing MFA device** to enable or disable an additional MFA device + diff --git a/entries/2026/03/08/iam-overview.md b/entries/2026/03/08/iam-overview.md new file mode 100644 index 0000000000000000000000000000000000000000..10d976c43804d83c0cd3f6cb3cdf8f89b09fb610 --- /dev/null +++ b/entries/2026/03/08/iam-overview.md @@ -0,0 +1,39 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html +source: sources/iam-overview.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:20 + +The summary has been prepared. Here's what was generated: + +## Overview +AWS IAM is a web service for controlling access to AWS resources via authentication and authorization, supporting users, roles, and federated principals. + +## Key Concepts +- **Root user** — full access, avoid for daily use +- **Principals** — IAM users, roles, federated users (STS), applications +- **Authentication vs Authorization** — distinct steps (identity verification then policy evaluation) +- **Eventually consistent** — IAM changes replicate globally and may take time to propagate +- **Free service** — IAM, IAM Identity Center, and STS have no charge; IAM Access Analyzer unused access analysis is paid + +## Commands and Syntax +None — this is a conceptual overview page. + +## Relationships +- **AWS STS** — temporary credentials for federated access +- **IAM Identity Center** — centralized workforce access management +- **IAM Access Analyzer** — external/unused access analysis +- Integrates with virtually all AWS services + +## Exam-Relevant Points +- Root user should not be used for everyday tasks +- IAM is eventually consistent — don't depend on immediate propagation in critical code paths +- IAM, Identity Center, and STS are free +- Cross-account authorization requests are supported from trusted accounts +- High availability via multi-datacenter replication + +Would you like me to retry writing this to the source file? + diff --git a/entries/2026/03/08/iam-permission-boundaries.md b/entries/2026/03/08/iam-permission-boundaries.md new file mode 100644 index 0000000000000000000000000000000000000000..dd437cc50a65590d115e0d6b87b967ea6e084958 --- /dev/null +++ b/entries/2026/03/08/iam-permission-boundaries.md @@ -0,0 +1,88 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html +source: sources/iam-permission-boundaries.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:20 + +## Overview + +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. + +## Key Concepts + +- A permissions boundary is a **managed policy** (AWS-managed or customer-managed) attached to an IAM user or role +- It sets the **ceiling** on permissions — the entity can only perform actions allowed by **both** its identity-based policies **and** its permissions boundary +- Permissions boundaries **do not grant permissions** on their own; they only limit what identity-based policies can grant +- An **explicit deny** in either the permissions boundary or identity-based policy always wins +- Effective permissions = intersection of identity-based policies ∩ permissions boundary +- 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 +- Resource-based policies that grant permissions to an IAM **role ARN** **are limited** by implicit denies in permissions boundaries +- Permissions granted directly to an **IAM role session ARN** or **federated user session ARN** via resource-based policies are **not limited** by permissions boundaries +- When SCPs, permissions boundaries, and identity-based policies all apply, the request is allowed only if **all three** allow it (intersection of all three) +- Session policies further restrict: effective permissions = intersection of identity-based policy ∩ permissions boundary ∩ session policy +- **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. + +## Commands and Syntax + +**Setting a permissions boundary (policy example):** +```json +{ + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": ["s3:*", "cloudwatch:*", "ec2:*"], + "Resource": "*" + } + ] +} +``` + +**Requiring a permissions boundary via condition key:** +```json +{ + "Effect": "Allow", + "Action": ["iam:CreateUser", "iam:PutUserPermissionsBoundary"], + "Resource": "*", + "Condition": { + "StringEquals": { + "iam:PermissionsBoundary": "arn:aws:iam::123456789012:policy/XCompanyBoundaries" + } + } +} +``` + +**Key condition key:** `iam:PermissionsBoundary` — ensures users can only create/modify entities with a specific boundary attached. + +**Preventing boundary removal:** +```json +{ + "Effect": "Deny", + "Action": "iam:DeleteUserPermissionsBoundary", + "Resource": "*" +} +``` + +## Relationships + +- **Policy evaluation logic**: Permissions boundaries are one of several policy types evaluated together (identity-based, resource-based, SCPs, session policies, permissions boundaries) +- **AWS Organizations SCPs**: Work alongside permissions boundaries — when both apply, effective permissions are the intersection of all applicable policy types +- **Session policies**: Passed during `AssumeRole` or `GetFederationToken`; combined with permissions boundaries to further restrict temporary credentials +- **Resource-based policies**: Interact differently with permissions boundaries depending on whether the principal is a user ARN, role ARN, or session ARN +- **Delegation pattern**: Enables administrators to delegate user creation while enforcing guardrails — directly related to IAM administrative patterns + +## Exam-Relevant Points + +- Permissions boundaries **limit but do not grant** permissions — this distinction is frequently tested +- Effective permissions = **intersection** of identity-based policies and permissions boundary (not union) +- Resource-based policies granting access to an **IAM user ARN** bypass implicit denies in permissions boundaries (same account) +- Resource-based policies granting access to an **IAM role ARN** are limited by permissions boundaries; but grants to a **role session ARN** are not +- `iam:PermissionsBoundary` condition key enforces that delegated admins must attach a specific boundary when creating users +- `iam:DeleteUserPermissionsBoundary` must be explicitly denied to prevent boundary removal +- `NotPrincipal` + `Deny` in resource-based policies always denies principals with permissions boundaries attached — use `ArnNotEquals` with `aws:PrincipalArn` instead +- When SCP + permissions boundary + identity-based policy all apply: request succeeds only if **all three allow** it +- An **explicit deny** in any policy type overrides allows from any other policy type + diff --git a/entries/2026/03/08/iam-policies.md b/entries/2026/03/08/iam-policies.md new file mode 100644 index 0000000000000000000000000000000000000000..cf962b564ae3b248c991254626879a1e23d86df2 --- /dev/null +++ b/entries/2026/03/08/iam-policies.md @@ -0,0 +1,89 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html +source: sources/iam-policies.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:21 + +## Overview + +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. + +## Key Concepts + +- **Policy**: An object that defines permissions; most are stored as JSON documents +- **Seven policy types** (ordered by frequency of use): + 1. **Identity-based policies** — attached to users, groups, or roles; grant permissions + 2. **Resource-based policies** — attached inline to resources (e.g., S3 bucket policies, role trust policies); grant permissions to a specified principal + 3. **Permissions boundaries** — set *maximum* permissions an identity-based policy can grant; do not grant permissions themselves + 4. **SCPs (Service Control Policies)** — org-wide caps on permissions for IAM users/roles in member accounts; do not grant permissions + 5. **RCPs (Resource Control Policies)** — org-wide caps on permissions for *resources* in member accounts; do not grant permissions + 6. **ACLs** — cross-account only; the only policy type that does **not** use JSON format + 7. **Session policies** — passed when assuming a role or creating federated session; limit (never expand) session permissions +- **Managed vs. Inline policies**: + - **AWS managed** — created/maintained by AWS + - **Customer managed** — created/maintained by you; more precise control + - **Inline** — embedded directly in a single user, group, or role; deleted with the identity +- **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 +- **Role trust policy** — the only resource-based policy type supported by IAM itself; defines who can assume the role +- **Root user** — cannot have identity-based policies or permissions boundaries attached, but is affected by SCPs, RCPs, resource-based policies, and ACLs +- **Explicit deny always wins** — an explicit deny in any applicable policy overrides any allow + +## Commands and Syntax + +**JSON policy document structure elements:** +- `Version` — use `"2012-10-17"` (latest) +- `Statement` — container; multiple statements evaluated with logical OR +- `Sid` — optional statement identifier +- `Effect` — `"Allow"` or `"Deny"` +- `Principal` — required in resource-based policies; implied in identity-based policies +- `Action` — list of API actions +- `Resource` — ARN(s) the actions apply to +- `Condition` — optional; statement only applies when condition is true + +**Example identity-based policy:** +```json +{ + "Version": "2012-10-17", + "Statement": { + "Effect": "Allow", + "Action": "s3:ListBucket", + "Resource": "arn:aws:s3:::amzn-s3-demo-bucket" + } +} +``` + +**Example MFA condition:** +```json +"Condition": {"Bool": {"aws:MultiFactorAuthPresent": "true"}} +``` + +**Session policy APIs:** `AssumeRole`, `AssumeRoleWithSAML`, `AssumeRoleWithWebIdentity` (use `Policy` param for inline JSON, `PolicyArns` for up to 10 managed policies). Federated user sessions use `GetFederationToken`. + +## Relationships + +- **IAM Policy Evaluation Logic** — how AWS resolves multiple policies (OR across statements/policies, explicit deny wins) +- **IAM Roles** — require both a trust policy (resource-based) and identity-based policy +- **AWS Organizations** — SCPs and RCPs are org-level guardrails that restrict but never grant permissions +- **IAM Access Analyzer** — validates policies, generates least-privilege policies from CloudTrail activity +- **STS / Temporary Credentials** — session policies constrain temporary sessions +- **S3, WAF, VPC** — services that support ACLs +- **CloudTrail** — provides access activity data for refining permissions +- **Permissions Boundaries** — intersect with identity-based policies but do not limit resource-based policies that specify the session ARN as principal + +## Exam-Relevant Points + +- **Permissions boundaries do NOT grant permissions** — they only cap what identity-based policies can grant +- **SCPs do NOT grant permissions** — they set maximum permissions for accounts/OUs; affect even the root user +- **RCPs limit permissions on resources** across org accounts; also do not grant permissions +- **ACLs are the only policy type not in JSON format** and only work cross-account (cannot grant to entities in the same account) +- **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 +- **Explicit deny always overrides allow** in any policy type +- **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 +- **Root user cannot have identity-based policies or permissions boundaries** but IS subject to SCPs and RCPs +- **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 +- **Multiple statements** in a policy are evaluated with logical OR; multiple policies are also OR'd together +- **Policy version** should always be `"2012-10-17"` + diff --git a/entries/2026/03/08/iam-policy-evaluation.md b/entries/2026/03/08/iam-policy-evaluation.md new file mode 100644 index 0000000000000000000000000000000000000000..5eb4b73367ed0b64a2b4364b5f916e89b0fdb2c9 --- /dev/null +++ b/entries/2026/03/08/iam-policy-evaluation.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html +source: sources/iam-policy-evaluation.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:21 + + + +## Overview +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. + +## Key Concepts +- **Three-step request evaluation**: Authentication → Request context processing → Policy evaluation against context +- **Identity-based + Resource-based policies (same account)**: Permissions are the **union** — if either policy allows, the action is allowed +- **Identity-based + Permissions boundaries**: Permissions are the **intersection** — action must be allowed by both; adding a boundary can only reduce permissions +- **Identity-based + SCPs + RCPs (Organizations)**: Permissions are the **intersection** of all three — action must be allowed by all three policy types +- **Explicit deny always wins**: In every evaluation scenario, an explicit deny in any applicable policy overrides any allow +- Some services (e.g., S3) allow requests from anonymous/unauthenticated users, skipping the authentication step + +## Commands and Syntax +- To check organization membership via CLI, the principal needs `organizations:DescribeOrganization` permission +- No specific CLI commands are documented on this page beyond referencing the AWS CLI and API + +## Relationships +- **IAM Policies** (identity-based): Core input to all evaluation scenarios +- **Resource-based policies**: Combined as union with identity-based in same-account access +- **Permission boundaries**: Act as a ceiling on identity-based policy permissions (intersection) +- **AWS Organizations SCPs/RCPs**: Act as guardrails across the organization (intersection with identity-based and each other) +- **S3**: Notable exception — allows some anonymous requests without authentication + +## Exam-Relevant Points +- **Union vs. Intersection is the critical distinction**: Identity + Resource-based = union; Identity + Boundary = intersection; Identity + SCP + RCP = intersection +- Explicit deny **always** overrides allow regardless of policy type +- Adding a permissions boundary can only **reduce** (never expand) effective permissions +- With Organizations, an action must be allowed by **all three**: identity-based policy, SCP, and RCP +- Authentication is the **first** step, but is skipped for some services allowing anonymous access (S3) +- To check if an SCP/RCP is denying access, contact your AWS Organizations administrator + diff --git a/entries/2026/03/08/iam-policy-types.md b/entries/2026/03/08/iam-policy-types.md new file mode 100644 index 0000000000000000000000000000000000000000..d30a62cf8f719fb6939e886ba8271dfd6e5bf9a7 --- /dev/null +++ b/entries/2026/03/08/iam-policy-types.md @@ -0,0 +1,51 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_managed-vs-inline.html +source: sources/iam-policy-types.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:22 + +## Overview +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. + +## Key Concepts + +- **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 +- **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 +- **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 +- **Standalone policy** — a policy with its own ARN, independent of any identity (both AWS managed and customer managed are standalone) +- AWS managed policy categories: + - **Full access** — e.g., `AmazonDynamoDBFullAccess`, `IAMFullAccess` + - **Power-user** — full service access but no user/group management + - **Partial-access** — specific access levels (read-only, write-only) + - **Job function** — aligned to IT roles (e.g., `AdministratorAccess`, `PowerUserAccess`); maintained by AWS as services evolve + +## Commands and Syntax + +No CLI commands on this page. Key ARN pattern for AWS managed policies: +``` +arn:aws:iam::aws:policy/ +``` + +## Relationships + +- **IAM identities** (users, groups, roles) — policies attach to these principals to grant permissions +- **IAM policy evaluation** — these policy types feed into the evaluation logic that determines allow/deny +- **Permission boundaries** — interact with managed policies to cap effective permissions +- **Service-linked roles** — use AWS managed policies specific to a service +- **IAM best practices** — recommend managed policies over inline policies for reusability and auditability + +## Exam-Relevant Points + +- AWS managed policies **cannot** be modified by customers; only AWS updates them +- Customer managed policies and inline policies **can** be modified by the customer +- A single AWS managed or customer managed policy can be attached to **multiple** principals, even across accounts (for AWS managed) +- Inline policies maintain a **strict one-to-one** relationship with an identity and are **deleted with the identity** +- Two roles with identical inline policy content are **not sharing** a policy — each has its own independent copy +- **Job function policies** (e.g., `AdministratorAccess`, `PowerUserAccess`) are AWS managed and auto-updated +- `AdministratorAccess` grants full access + permissions delegation; `PowerUserAccess` grants full access except limited IAM and Organizations access +- Best practice: prefer **managed policies over inline policies** for reusability and central management +- When AWS updates a managed policy, the change **automatically applies** to all attached principals + diff --git a/entries/2026/03/08/iam-roles.md b/entries/2026/03/08/iam-roles.md new file mode 100644 index 0000000000000000000000000000000000000000..d75296576e7fb64f2f3663a62f5f20109a35174a --- /dev/null +++ b/entries/2026/03/08/iam-roles.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html +source: sources/iam-roles.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:22 + +## Overview + +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. + +## Key Concepts + +- **IAM Role**: An assumable identity that provides temporary security credentials for a session, rather than long-term credentials +- **Trust Policy**: A required resource-based JSON policy attached to a role that defines which principals (users, roles, accounts, services) can assume it +- **Permissions Policy**: An identity-based policy attached to the role defining what actions/resources the role can use +- **Service Role**: An IAM role that an AWS service assumes to perform actions on your behalf; IAM admins can create, modify, and delete these +- **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 +- **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 +- **Delegation**: Granting cross-account access by creating a role with both a trust policy (who can assume) and permissions policy (what they can do) +- **External ID**: An additional parameter for secure role assumption between accounts not controlled by the same organization +- **Transitive Session Tags**: Session tags that propagate through all subsequent sessions in a role chain +- 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) +- A user who assumes a role **temporarily gives up their own permissions** and takes on the role's permissions + +## Commands and Syntax + +- **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) +- **Console**: Switch roles via the AWS Management Console role-switching interface +- **CLI/API**: Role chaining supported through CLI and API calls + +## Relationships + +- **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) +- **IAM Identity Center**: Preferred for workforce authentication; IAM users/roles used where Identity Center isn't supported +- **STS (Security Token Service)**: Provides the temporary credentials when a role is assumed +- **Identity Federation (SAML 2.0 / OIDC)**: External identities map to IAM roles for AWS access +- **Permissions Boundaries**: Can limit maximum permissions of a role, but **cannot be applied to service-linked roles** +- **Resource-Based Policies**: Alternative to cross-account roles for some services (S3, Glacier, SNS, SQS) +- **IAM Roles Anywhere / ECS Anywhere**: Deliver temporary credentials to workloads running outside AWS + +## Exam-Relevant Points + +- Roles provide **temporary credentials**, not long-term credentials — no passwords or access keys +- **Role chaining limits sessions to 1 hour** — this overrides any configured maximum session duration +- Trust policies **cannot use wildcard (\*) as part of an ARN** in the Principal element +- Service-linked roles are **owned by the service** and permissions **cannot be edited** by IAM administrators +- You must **delete related resources before deleting a service-linked role** +- When assuming a role, a user **temporarily loses their own permissions** +- 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) +- Normal `AssumeRole` supports up to **12 hours** (43200 seconds); role chaining caps at **1 hour** +- 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 +- No roles are created by default when you first create an AWS account + diff --git a/entries/2026/03/08/iam-service-linked-roles.md b/entries/2026/03/08/iam-service-linked-roles.md new file mode 100644 index 0000000000000000000000000000000000000000..f05947daebd37ca4b3eaff6642261878a42e9f01 --- /dev/null +++ b/entries/2026/03/08/iam-service-linked-roles.md @@ -0,0 +1,92 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html +source: sources/iam-service-linked-roles.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:22 + +## Overview + +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. + +## Key Concepts + +- **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. +- Service-linked roles include both a **trust policy** and a **permissions policy**, neither of which can be attached to other IAM entities. +- Related resources **must be deleted before** the service-linked role itself can be deleted — this prevents accidental permission removal. +- Service-linked roles count toward the IAM roles-per-account quota, but **can exceed the limit** (only service-linked roles get this exception). +- **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). +- Tags **cannot be attached** to service-linked roles during creation. +- Role names **cannot be changed** after creation. +- 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. + +## Commands and Syntax + +**Create a service-linked role (CLI):** +```bash +aws iam create-service-linked-role --aws-service-name SERVICE-NAME.amazonaws.com +``` + +**IAM policy to allow creating a specific service-linked role:** +```json +{ + "Effect": "Allow", + "Action": "iam:CreateServiceLinkedRole", + "Resource": "arn:aws:iam::*:role/aws-service-role/SERVICE-NAME.amazonaws.com/SERVICE-LINKED-ROLE-NAME-PREFIX*", + "Condition": {"StringLike": {"iam:AWSServiceName": "SERVICE-NAME.amazonaws.com"}} +} +``` + +**IAM policy to allow creating any service-linked role:** +```json +{ + "Effect": "Allow", + "Action": "iam:CreateServiceLinkedRole", + "Resource": "arn:aws:iam::*:role/aws-service-role/*" +} +``` + +**IAM policy to allow deleting a specific service-linked role:** +```json +{ + "Effect": "Allow", + "Action": [ + "iam:DeleteServiceLinkedRole", + "iam:GetServiceLinkedRoleDeletionStatus" + ], + "Resource": "arn:aws:iam::*:role/aws-service-role/SERVICE-NAME.amazonaws.com/SERVICE-LINKED-ROLE-NAME-PREFIX*" +} +``` + +**Pass an existing role to a service:** +```json +{ + "Effect": "Allow", + "Action": ["iam:PassRole"], + "Resource": "arn:aws:iam::account-id:role/my-role-for-XYZ" +} +``` + +**API call:** `CreateServiceLinkedRole` with service name parameter. + +## Relationships + +- **IAM Roles** — service-linked roles are a subtype of IAM roles with restricted management +- **IAM Policies** — permissions for creating/deleting service-linked roles are controlled via IAM policies; the `iam:AWSServiceName` condition key scopes creation +- **iam:PassRole** — alternative pattern where an existing role is passed to a service instead of creating a service-linked role +- **Service quotas** — service-linked roles count toward (but can exceed) the IAM roles-per-account limit +- **Specific services** (RDS, Lex, etc.) — each service defines its own service-linked role with specific permissions and service principal + +## Exam-Relevant Points + +- Service-linked roles **cannot have their permissions edited** by IAM administrators — they are defined by the service. +- You **must delete dependent resources first** before deleting a service-linked role. +- Service-linked roles are the **only IAM roles that can exceed** the account role limit. +- The **service principal** format (`SERVICE-NAME.amazonaws.com`) is case-sensitive and varies across services — do not guess it. +- **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. +- The `iam:CreateServiceLinkedRole` action with `iam:AWSServiceName` condition key restricts which service-linked roles a principal can create. +- Deleting a service-linked role requires both `iam:DeleteServiceLinkedRole` and `iam:GetServiceLinkedRoleDeletionStatus` permissions. +- Tags **cannot** be attached to service-linked roles at creation time. + diff --git a/entries/2026/03/08/iam-temporary-credentials.md b/entries/2026/03/08/iam-temporary-credentials.md new file mode 100644 index 0000000000000000000000000000000000000000..a6842ca36adb16cda1675874ec73bb50022b157f --- /dev/null +++ b/entries/2026/03/08/iam-temporary-credentials.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html +source: sources/iam-temporary-credentials.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:23 + +## Overview + +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. + +## Key Concepts + +- **Temporary credentials** consist of an access key ID, secret access key, and a **session token** — all three are required for API calls +- Credentials can be configured to last from **a few minutes to several hours**, depending on the API used and role configuration +- Credentials are **not stored with the user** — they are generated dynamically by STS when requested +- After expiration, credentials **cannot be reused**; a new set must be requested +- Temporary credentials work **almost identically** to long-term access keys, with the addition of the session token +- Three key advantages over long-term credentials: + - No need to embed or distribute long-term secrets + - Can grant access without creating an IAM user (federation) + - Auto-expire with no need for rotation or explicit revocation + +## Commands and Syntax + +- **Global STS endpoint:** `https://sts.amazonaws.com` +- **Regional STS endpoints** are available in all supported regions to reduce latency +- Credentials from any region **work globally** +- Key STS API operations (referenced in doc): + - `AssumeRole` — cross-account access, delegation + - `AssumeRoleWithWebIdentity` — OIDC federation + - `AssumeRoleWithSAML` — SAML 2.0 federation +- `SourceIdentity` attribute can be set during STS calls to track the original user through role chains + +## Relationships + +- **IAM Roles** — temporary credentials are the mechanism that makes roles work; assuming a role returns STS credentials +- **Identity Federation (OIDC / SAML)** — external identity providers authenticate users, STS issues temporary credentials +- **Cross-Account Access** — STS enables delegation by issuing credentials scoped to a role in another account +- **EC2 Instance Roles** — instance metadata service delivers STS credentials to applications on EC2, eliminating stored keys +- **Amazon Cognito** — recommended over direct STS OIDC federation for mobile apps; wraps STS with sync and guest access features +- **MFA** — STS can require MFA for sensitive API actions via condition keys in role trust policies +- **IAM Access Analyzer** — evaluates whether principals outside your trust zone can assume your roles + +## Exam-Relevant Points + +- Temporary credentials are **short-term, automatically expire, and do not need explicit revocation** +- STS is a **global service by default** but supports **regional endpoints** — credentials from any region work globally +- Two federation types: **OIDC federation** (web/mobile identity providers) and **SAML 2.0 federation** (enterprise SSO/Active Directory) +- For **mobile apps**, AWS recommends **Amazon Cognito** over direct STS web identity federation +- EC2 instances should use **instance roles** (not embedded access keys) — credentials are delivered via the instance metadata service +- A **custom identity broker** can be built for organizations whose IdP doesn't support SAML 2.0 +- `SourceIdentity` enables tracing the **original caller** through a chain of role assumptions +- Temporary credentials are accepted by **most but not all** AWS services — check the services-that-work-with-IAM reference + diff --git a/entries/2026/03/08/iam-users.md b/entries/2026/03/08/iam-users.md new file mode 100644 index 0000000000000000000000000000000000000000..9e314f337ab0f422f46158b7f4c34e1f1132b645 --- /dev/null +++ b/entries/2026/03/08/iam-users.md @@ -0,0 +1,62 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users.html +source: sources/iam-users.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:23 + +## Overview + +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. + +## Key Concepts + +- An IAM user consists of a friendly name, an ARN, and a unique identifier +- IAM users with administrator permissions are **not** the same as the AWS account root user +- A new IAM user has **no permissions by default** — permissions must be explicitly granted +- Each IAM user is associated with **one and only one** AWS account +- All AWS activity by IAM users is billed to the owning account +- IAM users can represent people or applications (service accounts) +- IAM user names appear in ARNs — avoid personally identifying information in names +- IAM users created via CLI or API have **no credentials by default**; credentials must be explicitly created + +## Credentials Types + +- **Console password** — for interactive sign-in to the AWS Management Console; disabling it does not remove programmatic access or prevent assuming roles +- **Access keys** — for programmatic access (CLI, SDK, API); more secure alternatives should be considered first +- **SSH keys** — OpenSSH public keys for authenticating with CodeCommit +- **Server certificates** — SSL/TLS certificates for AWS services; use ACM instead unless the region doesn't support it + +## Commands and Syntax + +- IAM user ARN format: `arn:aws:iam::account-ID-without-hyphens:user/UserName` +- Console users can authenticate for CLI/SDK via `aws login` (requires `SignInLocalDevelopmentAccess` permissions) +- **Credential report** — can be generated and downloaded listing all IAM users and credential status (password/access key age, MFA devices) +- **Never embed access keys directly in application code** — use SDK credential providers or known locations + +## Relationships + +- **IAM Roles** — preferred over IAM users for temporary credentials and service accounts +- **IAM Policies / Permissions** — attached to users to grant access; new users have none by default +- **Permission Boundaries** — advanced feature to cap the maximum permissions an identity-based policy can grant to a user or role +- **MFA** — best practice is to require MFA for all IAM users +- **Root User** — distinct from any IAM user, even those with administrator permissions +- **IAM Identity Center / Federation** — recommended alternative to IAM users for human access +- **ACM** — preferred over IAM server certificates for SSL/TLS management +- **CodeCommit** — uses IAM SSH keys for authentication + +## Exam-Relevant Points + +- New IAM users have **zero permissions** by default (implicit deny) +- IAM users created via CLI/API have **no credentials** by default +- Each IAM user belongs to **exactly one** AWS account +- An IAM admin user is **not** the root user +- Disabling console password does **not** revoke programmatic access or prevent role assumption +- Best practice: use federation/temporary credentials over IAM users with long-term credentials +- Best practice: enable MFA for all IAM users +- Best practice: never embed access keys in application code +- Best practice: regularly audit for unused passwords and access keys using credential reports +- IAM resources are subject to **quotas** (account-level limits on number and size) + diff --git a/entries/2026/03/08/rds-backups.md b/entries/2026/03/08/rds-backups.md new file mode 100644 index 0000000000000000000000000000000000000000..3073f4afc96f82bb7187f0b537bb2d8dfe7e8100 --- /dev/null +++ b/entries/2026/03/08/rds-backups.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html +source: sources/rds-backups.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:35 + +## Overview +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. + +## Key Concepts +- **Automated backups** create storage volume snapshots of the **entire DB instance**, not individual databases, during a configured backup window. +- Backups are retained according to a user-specified **backup retention period**. +- **Point-in-time recovery (PITR)** allows restoring to any point within the retention period. +- The **first snapshot is a full backup**; subsequent snapshots are **incremental** (only changed data). +- **Multi-volume configurations** are fully supported — snapshots, backups, and PITR cover all storage volumes (primary + additional). +- Automated backups require the DB instance to be in the **`available` state** — they do not occur during states like `storage_full`. +- Automated backups are **blocked** while a DB snapshot copy is running in the same Region for the same database. +- **Manual DB snapshots** can be created at any time and are not automatically deleted. +- Limit of **100 manual snapshots per Region**. +- Backups are stored in **Amazon S3**. + +## Commands and Syntax +No CLI commands are shown on this page. Key operational actions referenced: +- **Creating a DB snapshot** (manual) — see `USER_CreateSnapshot` +- **Copying a DB snapshot** — see `USER_CopySnapshot` (can copy across Regions) +- **Sharing a DB snapshot** — see `USER_ShareSnapshot` (manual snapshots only) + +## Relationships +- **Multi-AZ deployments**: Backup behavior applies to both Single-AZ instances and Multi-AZ DB clusters. +- **Amazon S3**: Underlying storage for all RDS backups. +- **Cross-Region copies**: Copying snapshots to another Region increases backup storage costs in the destination Region. +- **DB instance deletion**: Ties into retention decisions — automated backups can optionally be retained or deleted with the instance; a final snapshot can be created. +- **Snapshot sharing**: Only manual snapshots can be shared (not automated). + +## Exam-Relevant Points +- Automated backups require `available` state — know the failure conditions (`storage_full`, concurrent snapshot copy in same Region). +- First snapshot = full; subsequent = incremental. +- PITR restores to any point within the backup retention period. +- **100 manual snapshots per Region** limit. +- When deleting a DB instance: automated backups are deleted **unless** you explicitly choose to retain them; deleted automated backups **cannot be recovered**. +- Manual snapshots are **never automatically deleted**. +- Backups are stored in **S3** (not EBS). +- You can **copy** both automatic and manual snapshots, but can only **share** manual snapshots. +- Copying a snapshot cross-Region increases backup storage in the destination Region. + diff --git a/entries/2026/03/08/rds-feature-parity-cross-reference-with-postgresql-expert.md b/entries/2026/03/08/rds-feature-parity-cross-reference-with-postgresql-expert.md new file mode 100644 index 0000000000000000000000000000000000000000..82b6c50ee8e82be59e4ec3ee76d58e7012775d90 --- /dev/null +++ b/entries/2026/03/08/rds-feature-parity-cross-reference-with-postgresql-expert.md @@ -0,0 +1,69 @@ +# RDS Feature Parity Cross-Reference with PostgreSQL Expert + +**Date:** 2026-03-08 +**Time:** 17:05 + +## Summary + +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. + +## Well-Covered Areas (Both Experts) + +These areas have strong coverage from both sides — the AWS expert documents what RDS provides, the PostgreSQL expert documents the self-managed equivalent: + +| RDS Feature | AWS Expert Beliefs | PostgreSQL Expert Coverage | +|---|---|---| +| 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 | +| Read replicas | `rds-read-replica-async-replication`, `rds-no-circular-replication`, `rds-chained-replicas-mysql-mariadb-postgres-only` | ~222 streaming/logical replication beliefs | +| Backups / PITR | `rds-automated-backups-snapshot-entire-instance`, `rds-first-snapshot-full-subsequent-incremental`, `rds-backups-stored-in-s3` | ~119 pgBackRest beliefs | +| 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) | +| Connection pooling | `rds-overview` mentions RDS Proxy | Deep PgBouncer coverage | +| SSL/TLS | `rds-ssl-tls-all-major-engines` | ~31 PostgreSQL + PgBouncer TLS beliefs | +| Monitoring | `rds-monitoring` entry covers Performance Insights, CloudWatch, Enhanced Monitoring | ~28 pg_stat_* beliefs | +| 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) | + +## Gap Areas Where AWS Expert Adds Context + +These are gaps identified in the postgresql-expert that our AWS expert beliefs can inform: + +### Encryption at Rest +- **RDS provides:** AES-256 encryption, automatic and transparent (`rds-encryption-at-rest-aes-256`) +- **PostgreSQL gap:** 0 beliefs. No native encryption at rest. +- **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. + +### Storage Autoscaling and IOPS +- **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`). +- **PostgreSQL gap:** ~23 beliefs but mostly tablespace-level. No infrastructure IOPS tuning. +- **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. + +### Automated Patching +- **RDS provides:** Managed minor version patching, maintenance windows, automatic software installation (per responsibility matrix in `rds-overview`). +- **PostgreSQL gap:** No documented minor version patching runbook. +- **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. + +### Monitoring and Observability +- **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`). +- **PostgreSQL gap:** ~3 beliefs on observability stack. Need Prometheus + Grafana + postgres_exporter. +- **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. + +### VPC and Networking +- **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`). +- **PostgreSQL gap:** ~1 belief on load balancing/read routing. +- **Migration implication:** RDS DNS endpoints handle read/write splitting automatically. Self-managed needs HAProxy or Pgpool-II plus DNS management. + +## RDS Features With No Self-Managed Equivalent + +These RDS features have no direct self-managed replacement and represent permanent trade-offs: + +- **One-click scaling:** `rds-instance-class-naming-convention` — change instance class via API. Self-managed requires migration or downtime. +- **Cross-region read replicas:** `rds-cross-region-replication-async-multi-az-sync` — built-in. Self-managed needs Patroni standby clusters + WAN configuration. +- **Snapshot sharing:** `rds-only-manual-snapshots-can-be-shared` — RDS snapshots can be shared across accounts. No pgBackRest equivalent. +- **Reserved Instance pricing:** `rds-reserved-instances-1-or-3-year` — up to 60% discount for commitment. Self-managed has different economics. +- **Data Layer Versioning:** `rds-dlv-fixed-1024gib-3000iops-piops-only` — specialized storage tier. + +## Recommendations + +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 +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 +3. **Build companion experts** for infrastructure (Ansible/Terraform), observability (Prometheus/Grafana), and Linux administration to cover the full operational layer +4. **Cost analysis** would benefit from combining `rds-six-billing-components` with self-managed infrastructure costs — neither expert currently covers TCO comparison diff --git a/entries/2026/03/08/rds-instance-classes.md b/entries/2026/03/08/rds-instance-classes.md new file mode 100644 index 0000000000000000000000000000000000000000..ba5981c844c9c211e6b044b2dc829f8993531a98 --- /dev/null +++ b/entries/2026/03/08/rds-instance-classes.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html +source: sources/rds-instance-classes.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:36 + + + +## Overview +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. + +## Key Concepts +- **DB instance class** determines compute and memory capacity of an RDS DB instance. +- A DB instance class consists of a **type** (e.g., `db.r6g`) and a **size** (e.g., `2xlarge`), combined as `db.r6g.2xlarge`. +- `db.r6g` is a **memory-optimized** class type powered by **AWS Graviton2** processors. +- Instance class choice depends on **processing power and memory requirements**. +- DB instance classes vary by supported DB engines and AWS Regions. +- Oracle RDS supports processor configuration at the instance class level. + +## Commands and Syntax +- **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." +- No specific CLI commands on this page, but the modification workflow applies (e.g., `aws rds modify-db-instance --db-instance-class `). + +## Relationships +- **DB instance class types** — subtopic covering categories (general purpose, memory-optimized, burstable). +- **Supported DB engines** — not all instance classes support all engines (MySQL, PostgreSQL, Oracle, SQL Server, MariaDB). +- **Region support** — instance class availability varies by AWS Region. +- **Hardware specifications** — vCPUs, memory, networking, and storage details per class. +- **RDS for Oracle processor configuration** — Oracle-specific CPU/threading options. +- **DB instance modification** — changing the class is done through the standard modify workflow. + +## Exam-Relevant Points +- Know the **naming convention**: `db..` (e.g., `db.r6g.2xlarge`). +- `db.r6g` uses **AWS Graviton2** processors and is **memory-optimized**. +- Changing a DB instance class requires **modifying the DB instance** (can cause downtime depending on apply timing — immediately vs. next maintenance window). +- Instance class availability is **region-dependent** and **engine-dependent**. +- Understand the distinction between instance class **types** (general purpose, memory-optimized, burstable) and **sizes** within those types. + diff --git a/entries/2026/03/08/rds-monitoring.md b/entries/2026/03/08/rds-monitoring.md new file mode 100644 index 0000000000000000000000000000000000000000..018dcf0e5e91d513ba723988fbd32592d24dd2a5 --- /dev/null +++ b/entries/2026/03/08/rds-monitoring.md @@ -0,0 +1,42 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Monitoring.html +source: sources/rds-monitoring.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:36 + +## Overview +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. + +## Key Concepts +- **Monitoring plan**: A structured approach answering what to monitor, how often, with which tools, who is responsible, and who gets alerted. +- **Performance baseline**: Historical measurements of performance under varying load conditions, used to detect anomalies and trending variances. +- **Baseline metrics to track**: Network throughput, client connections, I/O operations (read/write/metadata), and burst credit balances. +- **Store historical data**: Enables comparison of current vs. past performance and distinguishes normal patterns from anomalies. +- **Performance issues typically stem from**: CPU/RAM consumption, disk space, network traffic, database connections, and IOPS. + +## Commands and Syntax +- **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. +- No CLI commands are directly provided on this page; it references parameter groups via the console/API. + +## Relationships +- **CloudWatch**: Primary metrics monitoring integration (`monitoring-cloudwatch.html`) +- **Performance Insights**: DB load monitoring and combined metrics dashboard (`USER_PerfInsights.html`, `Viewing_Unifiedmetrics.html`) +- **Enhanced Monitoring**: OS-level metrics beyond CloudWatch (`USER_Monitoring.OS.html`) +- **CloudWatch Database Insights**: Dedicated database monitoring view (`USER_DatabaseInsights.html`) +- **DevOps Guru for RDS**: Automated anomaly detection and analysis (`devops-guru-for-rds.html`) +- **Parameter Groups**: Used to tune settings like `User Connections` (`USER_WorkingWithParamGroups.html`) +- **Events, Logs, and Streams**: Complementary monitoring covered separately (`CHAP_Monitor_Logs_Events.html`) +- **Read Replicas / Instance Classes**: Scaling options when performance falls outside baseline + +## Exam-Relevant Points +- Disk space consumption above **85%** warrants investigation — this is a specific threshold to remember. +- The `User Connections` parameter defaults to **0 (unlimited)** and is controlled via **parameter groups**, not instance settings directly. +- **Burst credit balances** should be monitored — relevant to burstable instance classes (e.g., `db.t3`). +- Performance optimization options include changing the **instance class** or adding **read replicas**. +- IOPS performance improves when the **working set fits into memory**, minimizing disk I/O. +- A monitoring plan should be created **before** you start monitoring — not reactively. +- Baselines must be measured under **different load conditions at various times** — not just peak or average. + diff --git a/entries/2026/03/08/rds-multi-az.md b/entries/2026/03/08/rds-multi-az.md new file mode 100644 index 0000000000000000000000000000000000000000..3a3e84c08ed19d139ad179ba1d6901e02650bc1d --- /dev/null +++ b/entries/2026/03/08/rds-multi-az.md @@ -0,0 +1,39 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html +source: sources/rds-multi-az.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:36 + + + +## Overview +This page introduces Amazon RDS Multi-AZ deployments, distinguishing between two deployment types: **Multi-AZ DB instance deployments** (one standby) and **Multi-AZ DB cluster deployments** (two standbys). It explains how to identify each type in the console and links to deeper topics. + +## Key Concepts +- **Multi-AZ DB instance deployment**: One primary + one standby DB instance. Standby provides failover support only — does **not** serve read traffic. +- **Multi-AZ DB cluster deployment**: One primary + two standby DB instances. Standbys provide failover support **and** can serve read traffic. +- Both deployment types provide high availability through automatic failover. +- The key differentiator is whether standbys can handle reads (cluster deployment) or not (instance deployment). + +## Commands and Syntax +- **Console identification**: + - Navigate to **Databases** → select a **DB identifier** + - **Multi-AZ DB instance**: Single row, Role = "Instance" or "Primary", Multi-AZ = "Yes" + - **Multi-AZ DB cluster**: Cluster-level row + 3 instance rows, Role = "Multi-AZ DB cluster" (cluster level) / "Writer instance" or "Reader instance" (instance level), Multi-AZ = "3 Zones" + +## Relationships +- Connects to **storage configuration** (PIOPS/storage types) +- Relates to **DB instance maintenance** and **engine version upgrades** (apply to both deployment types) +- Ties into **resource tagging** and **ARNs** for resource management +- Multi-AZ DB cluster deployments overlap conceptually with **Read Replicas** (standbys serve read traffic), but are a distinct HA feature + +## Exam-Relevant Points +- **Critical distinction**: Multi-AZ DB *instance* standby does NOT serve read traffic; Multi-AZ DB *cluster* standbys DO serve read traffic. +- Multi-AZ DB cluster deployment spans **3 Availability Zones**. +- Multi-AZ DB cluster has exactly **2 standby** (reader) instances. +- Multi-AZ DB instance deployment shows **Multi-AZ = "Yes"**; cluster deployment shows **Multi-AZ = "3 Zones"** — know how to distinguish them in the console. +- Maintenance, upgrades, tagging, and storage topics apply to **both** deployment types. + diff --git a/entries/2026/03/08/rds-overview.md b/entries/2026/03/08/rds-overview.md new file mode 100644 index 0000000000000000000000000000000000000000..282bb74dcdb542e7ea91e2d83d5340ef60c13e0a --- /dev/null +++ b/entries/2026/03/08/rds-overview.md @@ -0,0 +1,71 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html +source: sources/rds-overview.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:37 + + + +## Overview + +Amazon Relational Database Service (Amazon RDS) is a managed web service that simplifies setting up, operating, and scaling relational databases in the AWS Cloud. It handles common administration tasks like backups, patching, failure detection, and recovery, allowing users to focus on application development. RDS supports six database engines and offers flexible compute, storage, and high-availability options. + +## Key Concepts + +- **Managed Service**: AWS handles OS installation/patching, DB software install/patching, backups, scaling, and high availability; customer is responsible for application optimization and query tuning +- **DB Instance**: An isolated database environment in the AWS Cloud; the basic building block of RDS. Can contain one or more user-created databases +- **DB Engines Supported**: IBM Db2, MariaDB, Microsoft SQL Server, MySQL, Oracle Database, PostgreSQL (Aurora is a separate service with its own user guide) +- **DB Instance Classes**: Determine compute and memory capacity + - General purpose: `db.m*` + - Memory optimized: `db.z*`, `db.x*`, `db.r*` + - Compute optimized: `db.c*` + - Burstable performance: `db.t*` +- **DB Instance Storage Types** (backed by Amazon EBS): + - **General Purpose (SSD)**: Cost-effective, suited for dev/test + - **Provisioned IOPS (PIOPS)**: Low latency, consistent throughput, suited for production + - **Magnetic**: Legacy, not recommended for new workloads +- **Multi-AZ Deployments**: Two options: + - **Multi-AZ DB instance**: Synchronous standby replica in a different AZ; standby does NOT serve read traffic + - **Multi-AZ DB cluster**: Writer + two reader instances across three AZs; all three CAN serve read traffic +- **Read Replicas**: Increase read scaling (separate from Multi-AZ standby) +- **Shared Responsibility**: AWS manages infrastructure/platform; customer owns query tuning, schema design, and performance optimization +- **Security**: IAM for access control, VPC for network isolation, security groups to control IP/EC2 access to DB instances +- **DB instances run in VPCs**; typically placed in private subnets + +## Commands and Syntax + +- **Console**: `https://console.aws.amazon.com/rds/` +- **AWS CLI**: `aws rds ` (after installing AWS CLI) +- **API/SDK**: Programmatic access via AWS SDKs (handles auth, retries, error handling) + +## Relationships + +- **Amazon EC2**: RDS eliminates the need to self-manage databases on EC2; application servers on EC2 typically connect to RDS in private subnets +- **Amazon VPC**: RDS instances run inside VPCs; security groups control access +- **Amazon EBS**: Provides the underlying block storage for RDS instances +- **Elastic Load Balancing**: Typical architecture has ELB → EC2 app servers (public subnets) → RDS (private subnets) +- **Amazon Aurora**: A separate, compatible engine with its own documentation (not covered by this guide) +- **IAM**: Controls who can manage and access RDS resources +- **CloudWatch**: Receives RDS metrics automatically every minute; supports alarms +- **Performance Insights**: Assesses DB load, identifies problematic queries +- **Enhanced Monitoring**: Real-time OS-level metrics +- **EventBridge, CloudWatch Logs, DevOps Guru**: Additional integrated monitoring services +- **Regions and AZs**: RDS supports cross-region replication (asynchronous) and Multi-AZ within a region + +## Exam-Relevant Points + +- **Multi-AZ DB instance vs. DB cluster**: Instance deployment has one standby that does NOT serve reads; cluster deployment has two readers that DO serve reads +- **Responsibility split**: Customer handles application optimization and query tuning; AWS handles everything else from scaling down to hardware lifecycle +- **Storage types**: Know when to use General Purpose SSD (dev/test) vs. Provisioned IOPS (production I/O-intensive); Magnetic is legacy only +- **Free Tier eligible engines**: MariaDB, MySQL, PostgreSQL, SQL Server Express Edition on `t3.micro` or `t4g.micro` (t4g.micro not available for SQL Server Express) +- **Free Tier restrictions**: No custom engine options, no reserved instances, Single-AZ only, no snapshot migration, no query editor, no Aurora read replicas +- **Six supported engines**: Db2, MariaDB, SQL Server, MySQL, Oracle, PostgreSQL +- **RDS uses NTP** to synchronize time on DB instances +- **DB parameter groups** control engine-specific behavior +- **Feature support varies** across Regions and engine versions +- **Cross-region replication** is asynchronous; within-region Multi-AZ replication is synchronous +- **Security group pattern**: EC2 app server in one security group → RDS in another security group that references the first as source; clients cannot directly access the DB + diff --git a/entries/2026/03/08/rds-pricing.md b/entries/2026/03/08/rds-pricing.md new file mode 100644 index 0000000000000000000000000000000000000000..7d5219b1165cc2cc0a92efd479cafbd6b7d32bd7 --- /dev/null +++ b/entries/2026/03/08/rds-pricing.md @@ -0,0 +1,39 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/User_DBInstanceBilling.html +source: sources/rds-pricing.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:37 + +## Overview +This page describes the billing model for Amazon RDS DB instances, covering the six cost components that make up an RDS bill and the two purchasing options (On-Demand and Reserved Instances) available to optimize costs. + +## Key Concepts +- **DB instance hours** are billed per second with a **minimum of 10 minutes**, based on the DB instance class (e.g., db.t2.small, db.m4.large). +- **Storage** is billed per GiB per month; scaling mid-month results in prorated charges. +- **I/O requests** are billed per 1 million requests — applies only to **magnetic storage**. +- **Provisioned IOPS** is billed per IOPS per month regardless of actual consumption; applies to **io1 (Provisioned IOPS SSD)** and **gp3 (General Purpose SSD)** storage. EBS provisioned storage is billed per second (min 10 minutes). +- **Backup storage** is billed per GiB per month; increased by longer retention periods or additional snapshots. **Per-second billing does NOT apply** to backup storage (metered in GB-month). +- **Data transfer** is billed per GB for traffic in/out of the DB instance to/from the internet and other AWS Regions. + +## Commands and Syntax +No CLI commands on this page — it is a conceptual/billing reference. + +## Relationships +- **DB instance classes** — determines hourly compute cost (`Concepts.DBInstanceClass`) +- **RDS storage types** — magnetic, gp2, gp3, io1 each have different billing models (`CHAP_Storage`) +- **Backup and snapshots** — retention period and snapshot count drive backup storage costs (`CHAP_CommonTasks.BackupRestore`) +- **On-Demand instances** — pay-as-you-go purchasing (`USER_OnDemandDBInstances`) +- **Reserved Instances** — 1-year or 3-year commitment for discounted pricing (`USER_WorkingWithReservedDBInstances`) + +## Exam-Relevant Points +- RDS compute is billed in **1-second increments** with a **10-minute minimum** — a common trick question topic. +- I/O request charges apply **only to magnetic storage**, not SSD storage types. +- Provisioned IOPS charges are incurred **regardless of actual IOPS consumed**. +- Backup storage is the **exception** to per-second billing — it is metered in **GB-month**. +- Reserved Instances offer discounts for **1-year or 3-year** terms and the benefit applies across multiple instances started/stopped within the same hour. +- Data transfer costs apply for cross-Region and internet traffic — intra-AZ/intra-Region transfer rules differ. +- Six billing components to remember: **compute hours, storage, I/O requests, provisioned IOPS, backup storage, data transfer**. + diff --git a/entries/2026/03/08/rds-read-replicas.md b/entries/2026/03/08/rds-read-replicas.md new file mode 100644 index 0000000000000000000000000000000000000000..0961470727a295de93a9b23f551bbbbbc92fc8f2 --- /dev/null +++ b/entries/2026/03/08/rds-read-replicas.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html +source: sources/rds-read-replicas.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:37 + + + +## Overview + +Amazon RDS read replicas are read-only copies of a primary DB instance that use asynchronous replication to stay current. They enable horizontal scaling of read-heavy workloads, offload reporting queries, provide read availability during primary maintenance, and can serve as disaster recovery targets by being promoted to standalone instances. + +## Key Concepts + +- **Read replica**: A read-only copy of a DB instance created using the engine's built-in replication features +- **Asynchronous replication**: Updates are copied from primary to replica asynchronously (not in real-time; data can be "stale") +- **Synchronous replication**: Used for Multi-AZ standby replicas (not read replicas) — standby replicas cannot serve read traffic +- **No circular replication**: You cannot configure a replica to replicate back to its source +- **Chained replicas**: MariaDB, MySQL, and certain PostgreSQL versions support creating a replica from a replica; Db2, Oracle, and SQL Server do not +- **No autoscaling**: Read replicas must be created and deleted manually; RDS does not auto-scale them +- **Billing**: Read replicas are billed at standard DB instance rates; no data transfer charge for same-Region replication +- **Storage flexibility**: Replicas default to the source's storage type but can use a different type (Provisioned IOPS, General Purpose, Magnetic) depending on source allocation size +- **Storage increase minimum**: Allocated storage increases on a replica must be at least 10% +- **Db2 and Oracle exceptions**: Db2 supports standby-mode replicas; Oracle supports mounted-mode replicas — neither accepts user connections (used for cross-Region DR) + +## Commands and Syntax + +No specific CLI commands on this page, but key operations referenced: + +- **Create read replica** — via Console, CLI (`create-db-instance-read-replica`), or API +- **Promote read replica** — converts a replica to a standalone read/write DB instance +- **Delete read replica** — same mechanism as deleting any DB instance +- **Deleting the source** without deleting same-Region replicas promotes each replica to a standalone instance automatically + +## Relationships + +- **Multi-AZ deployments**: A DB instance can have both a synchronous standby replica (high availability) and asynchronous read replicas simultaneously +- **Cross-Region replication**: RDS automatically sets up secure communication channels and security group entries between Regions; has additional cost considerations +- **Disaster recovery**: Read replicas can be promoted to standalone instances; mounted/standby replicas serve cross-Region DR for Oracle/Db2 +- **Engine-specific behaviors**: Each engine (MariaDB, MySQL, PostgreSQL, Oracle, SQL Server, Db2) has its own replication details and limitations + +## Exam-Relevant Points + +- Replication from primary to read replica is **asynchronous** (standby in Multi-AZ is **synchronous**) +- Standby replicas in Multi-AZ **cannot serve read traffic**; read replicas **can** +- **No circular replication** is supported +- Replica-from-replica is supported for **MariaDB, MySQL, and some PostgreSQL** — not for Db2, Oracle, or SQL Server +- Deleting a source DB instance **automatically promotes** same-Region read replicas to standalone instances +- **No autoscaling** of read replicas — manual creation/deletion only +- Cross-Region replication incurs **data transfer charges**; same-Region does **not** +- Read replicas can have a **different storage type** than the source (with constraints based on allocation size — must be ≥100 GiB for Provisioned IOPS) +- Storage allocation increases on replicas must be **at least 10%** + diff --git a/entries/2026/03/08/rds-security.md b/entries/2026/03/08/rds-security.md new file mode 100644 index 0000000000000000000000000000000000000000..56e60af1e265e4b0dd5f9d2f66915e54ef74efdf --- /dev/null +++ b/entries/2026/03/08/rds-security.md @@ -0,0 +1,51 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.html +source: sources/rds-security.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:38 + +## Overview +This page covers the security model for Amazon RDS, built on the AWS shared responsibility model. It describes the multiple layers of security controls available—network isolation (VPC), identity management (IAM), encryption (at rest and in transit), security groups, and database-engine-level authentication—and links to detailed sub-topics for each area. + +## Key Concepts +- **Shared Responsibility Model**: AWS secures the infrastructure ("security *of* the cloud"); customers secure their configurations, data, and access ("security *in* the cloud"). +- **VPC isolation**: DB instances should run inside an Amazon VPC for maximum network access control. +- **IAM policies**: Control who can manage RDS resources (create, describe, modify, delete DB instances, tag resources, modify security groups). +- **Security groups**: Act as a firewall controlling which IP addresses or EC2 instances can connect to a DB instance. Default stance is deny-all except explicit rules. +- **Encryption in transit**: SSL/TLS connections supported for Db2, MySQL, MariaDB, PostgreSQL, Oracle, and SQL Server engines. +- **Encryption at rest**: Uses AES-256; applies to DB instances and snapshots. +- **Oracle-specific**: Native network encryption and Transparent Data Encryption (TDE) available as additional options. +- **DB-engine authentication**: Native database user management works the same as on-premises. +- **Managed processes excluded**: You do not need to configure security for RDS-managed operations (backups, replication to read replicas, etc.). + +## Commands and Syntax +No CLI commands on this page—it is a navigational overview. Key sub-topic links for operational detail: +- Database authentication: `database-authentication.html` +- Secrets Manager integration: `rds-secrets-manager.html` +- IAM for RDS: `UsingWithRDS.IAM.html` +- SSL/TLS configuration: `UsingWithRDS.SSL.html` +- Encryption at rest: `Overview.Encryption.html` +- Security groups: `Overview.RDSSecurityGroups.html` +- VPC configuration: `USER_VPC.html` +- VPC endpoints (PrivateLink): `vpc-interface-endpoints.html` + +## Relationships +- **IAM** governs management-plane access to RDS resources; **security groups** and **VPC** govern data-plane (network) access. +- **AWS Secrets Manager** integrates with RDS for password rotation and management. +- **AWS PrivateLink** (interface VPC endpoints) keeps RDS API traffic off the public internet. +- **AWS Compliance Programs** validate RDS against third-party audits. +- **CloudWatch / logging & monitoring** complement security by providing audit and detection capabilities. +- **Resilience (disaster recovery)** is a related but distinct pillar covered alongside security. + +## Exam-Relevant Points +- RDS encryption at rest uses **AES-256** and covers both DB instances and snapshots. +- Security groups are the **first line of defense**—new DB instances block all access by default until rules are added. +- **SSL/TLS** is available for all major RDS engines (Db2, MySQL, MariaDB, PostgreSQL, Oracle, SQL Server). +- The shared responsibility model means AWS handles patching of the underlying infrastructure, but **you** are responsible for security group rules, IAM policies, encryption settings, and database user management. +- Oracle has **two additional encryption options** beyond standard RDS encryption: native network encryption and TDE. +- RDS-managed processes (backups, read replica replication) do **not** require customer-configured security. +- DB instances should be deployed in a **VPC** for strongest network isolation—this is a best-practice expectation on exams. + diff --git a/entries/2026/03/08/rds-storage.md b/entries/2026/03/08/rds-storage.md new file mode 100644 index 0000000000000000000000000000000000000000..acf1f6cdc9d6cc58f1834143627c122cb2339e25 --- /dev/null +++ b/entries/2026/03/08/rds-storage.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html +source: sources/rds-storage.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:38 + +## Overview + +This page covers Amazon RDS storage options, including the three storage types (Provisioned IOPS SSD, General Purpose SSD, and Magnetic), their performance characteristics, sizing constraints, and features like Dedicated Log Volumes (DLV), additional storage volumes, and storage monitoring metrics. It provides detailed specifications for each storage type across different database engines (Db2, MariaDB, MySQL, PostgreSQL, Oracle, SQL Server). + +## Key Concepts + +- **Three storage types**: Provisioned IOPS SSD (io1/io2), General Purpose SSD (gp2/gp3), and Magnetic (standard/legacy) +- **All RDS storage uses Amazon EBS volumes** for database and log storage +- **io2 Block Express** (recommended): Up to 256,000 IOPS, sub-millisecond latency, IOPS-to-GiB ratio 0.5–1,000 (Nitro-based instances) +- **io1** (previous gen): Up to 256,000 IOPS, single-digit ms latency, IOPS-to-GiB ratio 0.5–50 +- **gp3** (recommended): Baseline 3,000 IOPS / 125 MiB/s; after striping threshold (400 GiB for most engines, 200 GiB for Oracle): 12,000 IOPS / 500 MiB/s baseline, provisionable up to 64,000 IOPS / 4,000 MiB/s +- **gp2** (previous gen): Baseline 3 IOPS per GiB (min 100 IOPS), burst to 3,000 IOPS for volumes < 1,000 GiB using I/O credit balance +- **Magnetic**: Legacy, max 3 TiB, max 1,000 IOPS, no autoscaling, no elastic volumes +- **Volume striping**: RDS automatically stripes across 4 volumes above threshold (400 GiB for most engines, 200 GiB for Oracle); SQL Server always uses 1 volume +- **Additional storage volumes**: Oracle and SQL Server support up to 3 extra volumes (gp3 or io2), scaling up to 256 TiB total +- **Dedicated Log Volume (DLV)**: Separates transaction logs onto a dedicated 1,024 GiB / 3,000 IOPS volume; PIOPS only (not gp2/gp3) +- **Instance-level IOPS cap**: EBS-optimized instances enforce a maximum IOPS at the instance level regardless of attached volume capacity +- **Db2 does NOT support gp2 or magnetic** storage types +- **Storage autoscaling** ratios apply to maximum storage threshold, same as provisioned ratios + +## Commands and Syntax + +- **CLI/API storage type names**: `io2`, `io1`, `gp3`, `gp2` +- **Oracle additional volume names**: `rdsdbdata2`, `rdsdbdata3`, `rdsdbdata4` +- **SQL Server additional volume names**: `H:`, `I:`, `J:` +- **DLV requires reboot** after modifying the setting +- **Key CloudWatch metrics**: + - `DiskQueueDepth` — I/O requests queued (typical: 0 to hundreds) + - `EBSByteBalance%` — throughput burst credits remaining + - `ReadIOPS` / `WriteIOPS` — I/O operations per second + - `ReadLatency` / `WriteLatency` — average time per I/O operation + - `ReadThroughput` / `WriteThroughput` — bytes per second + +## Relationships + +- **Amazon EBS**: All RDS storage is backed by EBS volumes; EBS-optimized instance limits apply +- **AWS Nitro System**: io2 Block Express volumes on Nitro instances get higher IOPS-to-GiB ratios (up to 1,000 vs 500) and higher throughput +- **Multi-AZ deployments**: Recommended with Provisioned IOPS for production; DLV creates volumes on both primary and secondary +- **Read replicas**: Storage type is independent from primary; DLV propagates to replicas created after enablement +- **Storage autoscaling**: Same IOPS-to-storage ratios apply to the max storage threshold +- **CloudWatch / Enhanced Monitoring**: Used to monitor storage performance metrics +- **EC2 instance classes**: Instance-level IOPS and throughput caps can bottleneck storage performance regardless of EBS provisioning + +## Exam-Relevant Points + +- **Max storage**: 64 TiB for Db2/MariaDB/MySQL/PostgreSQL; 256 TiB for Oracle and SQL Server (with additional volumes) +- **Magnetic max**: 3 TiB, 1,000 IOPS — legacy only, not recommended +- **gp2 formula**: 3 IOPS per GiB, minimum 100 IOPS, burst to 3,000 IOPS (volumes < 1,000 GiB) +- **gp3 baseline**: 3,000 IOPS / 125 MiB/s (single volume), 12,000 IOPS / 500 MiB/s (striped) +- **io2 IOPS-to-GiB ratio**: 0.5–1,000 (Nitro), 0.5–500 (non-Nitro) +- **io1 IOPS-to-GiB ratio**: 0.5–50 (1–50 for SQL Server) +- **DLV fixed size**: 1,024 GiB, 3,000 IOPS; requires PIOPS storage; requires reboot +- **DLV supported engines**: MariaDB 10.6.7+, MySQL 8.0.28+/8.4.3+, PostgreSQL 13.10+/14.7+/15.2+/16.1+ +- **SQL Server differences**: No volume striping, lower max IOPS on gp3 (16,000) and io1 (64,000), smaller max gp3 volume (16,384 GiB) +- **Oracle r5b**: Only instance type supporting max 256,000 IOPS on io1 +- **Volume modification**: During `optimizing` state, performance is at least the lower of source/target specs; transitioning from 1 to 4 volumes doesn't use Elastic Volumes +- **Instance-level IOPS cap overrides volume-level provisioning** — know your instance class limits +- **Provisioned IOPS charges apply whether or not resources are used** + diff --git a/entries/2026/03/08/rds-vpc.md b/entries/2026/03/08/rds-vpc.md new file mode 100644 index 0000000000000000000000000000000000000000..f7cd0e97f7d76fa7acb7aaaaf2a6db7f92a380d6 --- /dev/null +++ b/entries/2026/03/08/rds-vpc.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html +source: sources/rds-vpc.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:38 + + + +## Overview + +This page introduces the integration between Amazon VPC and Amazon RDS, explaining that RDS DB instances are launched into VPCs to provide control over virtual networking—including IP address ranges, subnets, routing, and access control lists—at no additional cost. All accounts have a default VPC, and new DB instances are created there unless specified otherwise. + +## Key Concepts + +- **Amazon VPC** provides an isolated virtual network environment for AWS resources including RDS DB instances. +- You control IP address ranges, subnets, routing tables, and network ACLs within a VPC. +- **No additional cost** to run a DB instance in a VPC. +- Every AWS account has a **default VPC**; all new DB instances use it unless you specify another. +- VPC is effectively mandatory for RDS — the page references moving non-VPC instances *into* a VPC (legacy migration path). + +## Commands and Syntax + +No CLI commands or configuration syntax are provided on this page. It serves as a navigational hub to sub-topics covering: + +- Working with a DB instance in a VPC +- Updating (changing) the VPC for a DB instance +- Access scenarios for DB instances in a VPC +- Creating a VPC for RDS (IPv4-only and dual-stack tutorials) +- Migrating a non-VPC DB instance into a VPC + +## Relationships + +- **Subnets / DB Subnet Groups**: RDS requires a DB subnet group (covered in linked sub-topics) spanning multiple AZs. +- **Security Groups**: VPC security groups control inbound/outbound traffic to DB instances. +- **Network ACLs / Route Tables**: Standard VPC networking constructs apply to RDS. +- **Multi-AZ Deployments**: VPC subnet configuration directly affects Multi-AZ placement. +- **Dual-Stack Mode (IPv4 + IPv6)**: Dedicated tutorial indicates RDS supports IPv6 within VPCs. +- **EC2 / Web Server Access**: Tutorial pairs a web server with a DB instance in the same VPC, a common architecture pattern. + +## Exam-Relevant Points + +- All new RDS DB instances are created in the **default VPC** unless you explicitly choose another VPC. +- Running an RDS instance in a VPC incurs **no extra charge** beyond standard RDS pricing. +- You **can** move a DB instance from one VPC to another (update VPC) and migrate non-VPC instances into a VPC. +- RDS supports **dual-stack mode** (IPv4 and IPv6) within a VPC. +- VPC gives you control over **IP addressing, subnets, routing, and ACLs** for your DB instances. + diff --git a/entries/2026/03/08/route-53-feature-parity-cross-reference.md b/entries/2026/03/08/route-53-feature-parity-cross-reference.md new file mode 100644 index 0000000000000000000000000000000000000000..eff678b5e68b2cbd61da0c4e028fa29f7b8dea09 --- /dev/null +++ b/entries/2026/03/08/route-53-feature-parity-cross-reference.md @@ -0,0 +1,65 @@ +# Route 53 Feature Parity Cross-Reference + +**Date:** 2026-03-08 +**Time:** 18:35 + +## Summary + +Cross-reference of AWS Route 53 features against self-hosted DNS alternatives (BIND, PowerDNS, CoreDNS, Unbound). Maps AWS expert beliefs to replacement requirements. + +## Well Covered by Self-Hosted Alternatives + +| Route 53 Feature | AWS Expert Beliefs | Self-Hosted Equivalent | +|---|---|---| +| Authoritative DNS | `route53-public-vs-private-hosted-zones`, `route53-record-name-must-end-with-zone-name` | BIND, PowerDNS, and CoreDNS are all production-grade authoritative DNS servers. | +| DNS record types | `route53-alias-records-for-aws-resources` | Standard record types (A, AAAA, CNAME, MX, TXT, SRV, etc.) fully supported. Alias records are Route 53-specific but CNAMEs cover most cases. | +| Private DNS | `route53-private-hosted-zone-tied-to-vpc` | CoreDNS, Unbound, or BIND for internal DNS resolution. Kubernetes uses CoreDNS by default. | +| DNS resolution | `route53-dns-resolution-9-steps`, `route53-tld-cache-two-days` | Standard DNS resolution. Unbound is an excellent recursive resolver. | + +## Gaps in Self-Hosted Alternatives + +### Health Check Integration +- **Route 53 provides:** `route53-three-health-check-types`, `route53-health-check-protocols`, `route53-calculated-health-checks`, `route53-health-check-notification-chain` — built-in health checking with automatic DNS failover +- **Self-hosted gap:** Must combine DNS with external health checkers (Consul, Keepalived, or custom scripts). PowerDNS has Lua-based health checks. No single integrated solution. +- **Migration implication:** DNS failover requires building a health check → DNS update pipeline. + +### Routing Policies +- **Route 53 provides:** `route53-eight-routing-policies`, `route53-geolocation-vs-geoproximity-vs-latency`, `route53-weighted-zero-stops-traffic`, `route53-multivalue-returns-up-to-8-records`, `route53-failover-requires-two-records` +- **Self-hosted equivalents:** + - **Weighted:** PowerDNS supports weighted records. BIND can approximate with multiple A records. + - **Geolocation:** PowerDNS GeoIP backend, BIND with GeoIP patches, or MaxMind + custom logic. + - **Failover:** Requires health check integration (see above). + - **Latency-based:** No direct equivalent. Requires latency measurement infrastructure + dynamic DNS updates. + - **IP-based:** `route53-ip-based-routing-cidr-client-mapping` — PowerDNS EDNS Client Subnet support can approximate this. + - **Geoproximity with bias:** No direct equivalent. +- **Migration implication:** Simple weighted and failover routing are achievable. Latency-based and geoproximity require significant infrastructure. + +### Alias Records +- **Route 53 provides:** `route53-alias-records-for-aws-resources` — zone apex support, no charge for alias queries, native AWS integration +- **Self-hosted gap:** CNAME cannot be used at zone apex (RFC restriction). ANAME/ALIAS support varies: PowerDNS supports it, BIND does not natively. This matters for bare domain names. + +### DNS Firewall +- **Route 53 provides:** `route53-dns-firewall-filters-outbound` — filter outbound DNS queries to block malicious domains +- **Self-hosted gap:** RPZ (Response Policy Zones) in BIND or Unbound provide similar functionality but require maintaining blocklists. + +### Cross-Account / Multi-VPC Profiles +- **Route 53 provides:** `route53-profiles-cross-account-multi-vpc` — share DNS configs across accounts and VPCs +- **Self-hosted gap:** DNS zone transfers and shared configurations can approximate this but require more operational overhead. + +### Traffic Flow +- **Route 53 provides:** `route53-traffic-flow-combines-policies` — visual editor for combining routing policies into decision trees +- **Self-hosted gap:** No equivalent GUI. Must manually configure complex routing logic. + +## Route 53 Features With No Self-Managed Equivalent + +- **Domain Registration:** Route 53 is also a domain registrar — self-hosted DNS still needs a registrar +- **100% Availability SLA:** Route 53 has a 100% uptime SLA — self-hosted requires redundant infrastructure +- **EDNS Client Subnet:** `route53-edns-client-subnet-improves-location` — automatic, no configuration needed + +## Recommendations + +1. **PowerDNS is the closest self-hosted replacement** — supports weighted records, GeoIP, ALIAS at apex, Lua scripting for custom logic +2. **CoreDNS for Kubernetes-native environments** — lightweight, plugin-based, integrates with service discovery +3. **Health check integration is the biggest operational gap** — must build a pipeline connecting health checks to DNS updates +4. **Latency-based routing has no practical self-hosted equivalent** without global latency measurement infrastructure +5. **Domain registration remains external** regardless of DNS hosting choice diff --git a/entries/2026/03/08/route53-dns.md b/entries/2026/03/08/route53-dns.md new file mode 100644 index 0000000000000000000000000000000000000000..b15ca4faf853af2f58069773dc5ba6a8791c77f5 --- /dev/null +++ b/entries/2026/03/08/route53-dns.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/welcome-dns-service.html +source: sources/route53-dns.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:39 + +## Overview +This page explains how DNS works at a fundamental level and how Amazon Route 53 fits into that process. It covers IP addressing (IPv4/IPv6), the role of DNS in translating domain names to IP addresses, how to configure Route 53 to route traffic, and the step-by-step resolution flow when a user requests a website. + +## Key Concepts +- **IP addresses** come in two formats: IPv4 (e.g., 192.0.2.44) and IPv6 (e.g., 2001:0db8:85a3:0000:0000:abcd:0001:2345) +- **DNS** translates human-readable domain names into IP addresses +- **Hosted zone** — automatically created by Route 53 when you register a domain; holds all DNS records for that domain +- **Records (resource record sets)** — define how traffic is routed; have three key properties: + - **Name** — domain or subdomain (must end with hosted zone name) + - **Type** — determines resource type (A for IPv4, MX for mail, etc.) + - **Value** — the target (IP address, mail server name, etc.) +- **Alias records** — special Route 53 records that route traffic to AWS resources (S3 buckets, CloudFront distributions, etc.) +- **DNS resolver** — typically managed by the user's ISP; performs recursive lookups +- **TTL (Time to Live)** — controls how long DNS resolvers cache IP addresses +- **TLD name servers** cache duration is typically **two days** + +## Commands and Syntax +No CLI commands on this page. Configuration is described via the Route 53 console workflow: +1. Register a domain name +2. Route 53 auto-creates a public hosted zone +3. Create records in the hosted zone (Name, Type, Value) + +## Relationships +- **Domain Registration** — registering a domain triggers hosted zone creation (`welcome-domain-registration.html`) +- **Public Hosted Zones** — container for DNS records (`AboutHZWorkingWith.html`) +- **Alias vs Non-Alias Records** — choosing record types for AWS resources (`resource-record-sets-choosing-alias-non-alias.html`) +- **Routing to AWS Resources** — S3, CloudFront, EC2 integration (`routing-to-aws-resources.html`) +- **TTL** — controls caching behavior (`route-53-concepts.html`) +- **DNS Configuration** — detailed setup guide (`dns-configuring.html`) + +## Exam-Relevant Points +- Route 53 **automatically creates a public hosted zone** when you register a domain +- The **9-step DNS resolution flow**: User → Browser → DNS Resolver → Root Name Server → TLD Name Server → Route 53 Name Server → back to resolver → browser → web server +- Record names **must end with the hosted zone name** +- **Alias records** are unique to Route 53 and can point to AWS resources (S3, CloudFront, ELB, etc.) — distinct from standard CNAME records +- DNS resolvers cache at two levels: TLD name server results (~2 days) and final IP addresses (controlled by TTL) +- Route 53 is a **DNS service** — it does not host content; it routes requests to where content lives (EC2, S3, etc.) + diff --git a/entries/2026/03/08/route53-health-checks.md b/entries/2026/03/08/route53-health-checks.md new file mode 100644 index 0000000000000000000000000000000000000000..b34d73fa8f47764f23cef38f8c60d5a7ab8eda72 --- /dev/null +++ b/entries/2026/03/08/route53-health-checks.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/welcome-health-checks.html +source: sources/route53-health-checks.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:39 + +## Overview +Amazon Route 53 health checks monitor the availability of resources such as web servers and email servers by periodically sending requests to endpoints. When an endpoint fails to respond beyond a configured threshold, Route 53 marks it unhealthy and can trigger notifications via CloudWatch alarms and SNS, or automatically route DNS traffic away from unhealthy resources. + +## Key Concepts +- **Health check**: A configuration that defines how Route 53 monitors a specific endpoint or resource +- **Request interval**: How frequently Route 53 sends a request to the endpoint +- **Failure threshold**: The number of consecutive failed responses before Route 53 considers an endpoint unhealthy +- **Endpoint**: An IP address or domain name being monitored (e.g., web server, email server) +- **Three health check types**: + - Monitor an endpoint directly (IP/domain) + - Monitor the status of other health checks (calculated health check) + - Monitor the state of a CloudWatch alarm +- **Calculated health checks**: Can aggregate multiple health checks to notify when N-of-M resources are unavailable (e.g., 2 of 5 web servers down) +- **Failure count resets to 0** if the endpoint responds before reaching the failure threshold — no alarm fires + +## Commands and Syntax +No CLI commands on this page. Configuration is done via the Route 53 console or API when creating a health check with these parameters: +- IP address or domain name +- Protocol: **HTTP**, **HTTPS**, or **TCP** +- Request interval +- Failure threshold +- Optional notification configuration (auto-creates CloudWatch alarm → SNS) + +## Relationships +- **CloudWatch**: Route 53 automatically creates CloudWatch alarms for health check notifications; health checks can also monitor CloudWatch alarm state +- **Amazon SNS**: CloudWatch uses SNS to deliver unhealthy endpoint notifications +- **DNS failover**: Health checks associate with DNS records; unhealthy endpoints have traffic routed away automatically +- **Route 53 records**: Each resource record can be paired with a health check to enable failover routing + +## Exam-Relevant Points +- Route 53 supports three protocols for health checks: **HTTP, HTTPS, and TCP** +- The failure count **resets to zero** if the endpoint recovers before reaching the failure threshold +- Notification chain: Route 53 health check → CloudWatch alarm → SNS notification +- You can create **calculated health checks** that monitor other health checks (useful for "N of M" scenarios) +- Health checks can monitor a **CloudWatch alarm** state, enabling health decisions based on any CloudWatch metric +- **DNS failover** requires associating a health check with each resource record — Route 53 routes traffic only to healthy resources +- Health check status is visible in the Route 53 console even without notification configured + diff --git a/entries/2026/03/08/route53-hosted-zones.md b/entries/2026/03/08/route53-hosted-zones.md new file mode 100644 index 0000000000000000000000000000000000000000..ab08c604daa1d2c0a23481be44c717ec4d27908b --- /dev/null +++ b/entries/2026/03/08/route53-hosted-zones.md @@ -0,0 +1,35 @@ +--- +source_url: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-working-with.html +source: sources/route53-hosted-zones.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:39 + +## Overview +This page introduces Amazon Route 53 hosted zones — containers for DNS records that define how traffic is routed for a domain and its subdomains. It distinguishes between public and private hosted zones. + +## Key Concepts +- A **hosted zone** is a container for DNS records associated with a specific domain (e.g., `example.com`) +- The hosted zone and its corresponding domain share the same name +- Records within a hosted zone define routing behavior for the domain and its subdomains +- **Two types of hosted zones:** + - **Public hosted zone** — routes traffic on the public internet + - **Private hosted zone** — routes traffic within an Amazon VPC + +## Commands and Syntax +No commands or configuration syntax described on this page. + +## Relationships +- **Route 53 DNS** — hosted zones are the fundamental organizational unit for Route 53 DNS management +- **Amazon VPC** — private hosted zones are scoped to VPCs for internal DNS resolution +- **DNS Records** — hosted zones contain records (A, CNAME, MX, etc.) that define actual routing behavior +- **Domain Registration** — a hosted zone corresponds to a registered domain name + +## Exam-Relevant Points +- A hosted zone and its domain always share the same name +- Public hosted zones = internet routing; private hosted zones = VPC-internal routing +- Private hosted zones are explicitly tied to Amazon VPC — this is a common exam distinction +- Hosted zones can include subdomains (e.g., `acme.example.com` under `example.com`) + diff --git a/entries/2026/03/08/route53-overview.md b/entries/2026/03/08/route53-overview.md new file mode 100644 index 0000000000000000000000000000000000000000..73642061da374c161cd6eb20c16929004ad1d244 --- /dev/null +++ b/entries/2026/03/08/route53-overview.md @@ -0,0 +1,43 @@ +--- +source_url: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/Welcome.html +source: sources/route53-overview.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:39 + +## Overview +Amazon Route 53 is a highly available and scalable DNS web service that provides three core functions: domain name registration, DNS routing of internet traffic to resources, and health checking of those resources. It also offers additional features including VPC Resolver, DNS Firewall, Traffic Flow for global traffic management, and Route 53 Profiles for multi-VPC/multi-account configuration management. + +## Key Concepts +- **Three core functions**: domain registration, DNS routing, health checking — can be used in any combination +- **Domain registration**: Register domain names (e.g., example.com) directly through Route 53 +- **DNS routing**: Connects browser requests to your website/application by resolving domain and subdomain names +- **Health checking**: Sends automated requests to verify resources are reachable, available, and functional; can trigger notifications and reroute traffic away from unhealthy resources +- **VPC Resolver**: Provides recursive DNS for VPCs in AWS Regions, Outposts racks, and on-premises networks; supports conditional forwarding rules and Resolver endpoints +- **Resolver on Outposts**: Extends DNS resolution between Outpost racks and on-premises data centers via Resolver endpoints +- **Resolver DNS Firewall**: Filters outbound DNS traffic from VPC Resolver using domain lists and firewall rules +- **Traffic Flow**: Global traffic management that routes users based on geoproximity, latency, health, and other factors +- **Route 53 Profiles**: Apply and manage DNS-related Route 53 configurations across multiple VPCs and AWS accounts + +## Commands and Syntax +No CLI commands or configuration syntax provided on this overview page. It serves as an entry point linking to detailed procedures. + +## Relationships +- **Amazon S3**: Can host simple websites with Route 53 domain registration (getting started tutorial) +- **Amazon WorkMail**: Route 53 can route email traffic to WorkMail +- **Amazon VPC**: VPC Resolver provides recursive DNS within VPCs; DNS Firewall protects VPC DNS queries +- **AWS Outposts**: Resolver on Outposts enables DNS resolution between Outpost racks and on-premises infrastructure +- **IAM**: Access control for Route 53 via AWS Identity and Access Management +- **AWS SDKs**: Route 53 can be used programmatically through AWS SDKs + +## Exam-Relevant Points +- Route 53 is a **DNS service** — remember the three functions: register, route, health check +- Health checks can **automatically route traffic away** from unhealthy resources (key for failover scenarios) +- **Traffic Flow** routes based on geoproximity, latency, and health — know the distinction between these routing policies +- **VPC Resolver** handles recursive DNS within VPCs and supports **conditional forwarding** to on-premises DNS +- **DNS Firewall** filters **outbound** DNS traffic (not inbound) within VPC Resolver +- **Route 53 Profiles** enable **cross-account, multi-VPC** DNS configuration management +- The recommended order is: register domain → configure DNS routing → set up health checks + diff --git a/entries/2026/03/08/route53-routing-policies.md b/entries/2026/03/08/route53-routing-policies.md new file mode 100644 index 0000000000000000000000000000000000000000..b4392405bafc4f842f73e87fe40ab249ddcc13b2 --- /dev/null +++ b/entries/2026/03/08/route53-routing-policies.md @@ -0,0 +1,43 @@ +--- +source_url: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html +source: sources/route53-routing-policies.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:40 + +## Overview +Amazon Route 53 offers eight routing policies that determine how DNS queries are answered. Each policy serves a different use case, from simple single-resource routing to complex traffic management based on geography, latency, weight, or health status. + +## Key Concepts +- **Simple routing** — Maps to a single resource; the default/basic policy. +- **Failover routing** — Active-passive failover between a primary and secondary resource. +- **Geolocation routing** — Routes based on the **geographic location of the user** (continent, country, or US state). +- **Geoproximity routing** — Routes based on the **location of your resources**, with optional bias to shift traffic between locations. +- **Latency routing** — Routes to the AWS Region that provides the **lowest latency** for the user. +- **IP-based routing** — Routes based on the **source IP address** of the client (CIDR-based). +- **Multivalue answer routing** — Returns **up to 8 healthy records** selected at random; acts as a simple load balancer at the DNS level. +- **Weighted routing** — Distributes traffic across multiple resources in **specified proportions** (e.g., 70/30 split). +- All policies except IP-based routing can be used in **private hosted zones**. + +## Commands and Syntax +No CLI commands on this page — routing policy is selected when creating a record via the console, CLI (`aws route53 change-resource-record-sets`), or API. The policy is set in the record definition, not as a standalone resource. + +## Relationships +- **Health checks** — Failover, multivalue, weighted, latency, and geolocation routing all integrate with Route 53 health checks to route only to healthy endpoints. +- **EDNS0 (edns-client-subnet)** — Used by geolocation, geoproximity, and latency policies to improve location estimation of users. +- **Traffic Flow** — Route 53's visual policy editor can combine multiple routing policies into complex routing trees. +- **Alias records** — Can be combined with any routing policy to point to AWS resources (ELB, CloudFront, S3, etc.). + +## Exam-Relevant Points +- **Geolocation vs. Geoproximity vs. Latency** — A common exam distinction: + - Geolocation = route by **where the user is** (compliance/content localization use cases). + - Geoproximity = route by **where resources are**, with adjustable bias to shift traffic. + - Latency = route by **measured network latency** to AWS Regions. +- **Multivalue answer is NOT a substitute for ELB** — It provides DNS-level randomization with health checks, returning up to 8 records; it is not a true load balancer. +- **Weighted routing with weight 0** — Stops sending traffic to a resource; if all weights are 0, records are returned equally. +- **Failover routing** — Requires exactly two records (primary + secondary) and a health check on the primary. +- **IP-based routing** — The newest policy; useful when you have specific knowledge of client IP-to-location mappings (e.g., ISP data). +- **Private hosted zone support** — All policies except IP-based routing explicitly support private hosted zones. + diff --git a/entries/2026/03/08/s3-access-control.md b/entries/2026/03/08/s3-access-control.md new file mode 100644 index 0000000000000000000000000000000000000000..10753d9496c678e05a89ab5d1d8c5172f8d8aaa8 --- /dev/null +++ b/entries/2026/03/08/s3-access-control.md @@ -0,0 +1,104 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-overview.html +source: sources/s3-access-control.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:40 + +## Overview + +This page covers the comprehensive access control model for Amazon S3, including the types of S3 resources that can be secured, the identities that can access them, the access management tools available (bucket policies, IAM policies, ACLs, Access Points, Access Grants), and best practices for securing S3 data. It serves as a directory to all S3 access management topics. + +## Key Concepts + +- **All S3 resources are private by default** — only the root user of the creating account and authorized IAM identities can access them +- **S3 resources** include: buckets, objects, access points, Object Lambda access points, Multi-Region access points, Batch Operations jobs, Storage Lens configurations, Storage Lens groups, and Access Grants resources (instance, location, grant) +- **Two bucket types**: General purpose buckets (most use cases, all storage classes except Express One Zone) and Directory buckets (S3 Express One Zone, single-digit ms latency) +- **Prefixes** are strings at the beginning of object key names used for organization; S3 has no actual folder hierarchy in general purpose buckets +- **Tags** are key-value pairs for cost allocation, categorization, and access control on objects, Storage Lens, jobs, and Access Grants +- **Resource owner** is the identity that created the resource; the bucket owner always pays bills and can deny/delete any object regardless of ownership +- **Object Ownership** has three settings: Bucket owner enforced (default, ACLs off), Bucket owner preferred, Object writer +- **ACLs are legacy** — the majority of modern use cases do not require ACLs; keep them turned off +- **Buckets created since April 2023 block all public access by default** +- **Permission delegation**: An account receiving permissions from another account cannot delegate those permissions cross-account to a third account +- **Best practice**: Never use root user credentials; create IAM roles instead. Use administrator roles rather than root. + +## Commands and Syntax + +**Bucket policy (JSON) — grant read access via IAM role:** +```json +{ + "Version": "2012-10-17", + "Statement": [{ + "Sid": "BucketLevelReadPermissions", + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::123456789101:role/s3-role" + }, + "Action": ["s3:GetObject"], + "Resource": ["arn:aws:s3:::amzn-s3-demo-bucket/*"] + }] +} +``` + +**Identity-based IAM policy (JSON) — grant multiple actions:** +```json +{ + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "AssignARoleActions", + "Effect": "Allow", + "Action": [ + "s3:PutObject", "s3:GetObject", "s3:ListBucket", + "s3:DeleteObject", "s3:GetBucketLocation" + ], + "Resource": [ + "arn:aws:s3:::amzn-s3-demo-bucket/*", + "arn:aws:s3:::amzn-s3-demo-bucket" + ] + }, + { + "Sid": "AssignARoleActions2", + "Effect": "Allow", + "Action": "s3:ListAllMyBuckets", + "Resource": "*" + } + ] +} +``` + +**Key ARN patterns:** +- Bucket: `arn:aws:s3:::bucket-name` +- Objects in bucket: `arn:aws:s3:::bucket-name/*` + +## Relationships + +- **IAM** — Identity-based policies, users, groups, and roles are foundational to S3 access control +- **AWS IAM Identity Center** — Corporate directory identities access S3 via Access Grants +- **VPC** — Access Points can be configured to accept requests only from a specific VPC +- **AWS CloudTrail** — Access Grants logs end-user identity and application used for S3 access +- **Lambda** — Object Lambda Access Points transform data on GET/LIST/HEAD via Lambda functions +- **S3 Block Public Access** — Works alongside bucket policies and ACLs as an override layer +- **S3 Versioning / Object Lock** — Complementary data integrity features +- **Server-side / Client-side encryption** — Protects data at rest and in transit +- **Signature Version 4** — Authentication method for S3 requests + +## Exam-Relevant Points + +1. **All S3 resources are private by default** — this is a frequently tested principle +2. **Bucket owner enforced** is the default Object Ownership setting; ACLs are off by default +3. **Buckets created since April 2023 block public access by default** +4. **Bucket policies are resource-based; IAM policies are identity-based** — know the difference +5. **Avoid wildcard (`*`) in the Principal element** of bucket policies +6. **Permission delegation rule**: Accounts receiving cross-account permissions cannot further delegate cross-account +7. **Bucket owner can always delete objects and deny access** regardless of object ownership +8. **Access Points policies are evaluated in conjunction with the underlying bucket policy** +9. **A bucket can have up to 10,000 access points** +10. **Directory buckets** do not support tagging and have prefix limitations; use S3 Express One Zone storage class +11. **S3 Access Grants** support corporate directory identities via IAM Identity Center — know this as the mechanism for granting access to Active Directory users +12. **ACLs are legacy** — recommended to keep off; use policies instead +13. **Two policy evaluation paths**: resource-based policies (bucket policies, ACLs) and identity-based policies (IAM) — S3 evaluates all applicable policies to authorize requests + diff --git a/entries/2026/03/08/s3-buckets.md b/entries/2026/03/08/s3-buckets.md new file mode 100644 index 0000000000000000000000000000000000000000..7cbf1cb44db71d0000cdf6a8b6f036baa0f03ac6 --- /dev/null +++ b/entries/2026/03/08/s3-buckets.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-buckets-s3.html +source: sources/s3-buckets.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:40 + +## Overview +This page introduces Amazon S3 general purpose buckets — the primary containers for storing objects (files and their metadata) in S3. It covers the lifecycle of working with buckets: creating, configuring, accessing, and deleting them, and serves as a hub linking to detailed sub-topics on naming rules, quotas, transfer acceleration, and more. + +## Key Concepts +- A **bucket** is a container for objects in Amazon S3 +- An **object** is a file plus any metadata describing that file +- Basic workflow: create a bucket → upload objects → open/download/move objects → clean up when done +- There are **multiple bucket types** in S3; choose based on application and performance requirements + - **General purpose buckets** — the standard, broadly applicable bucket type (this page's focus) + - **Directory buckets** — used with the S3 Express One Zone storage class for high-performance use cases +- S3 uses a **pay-only-for-what-you-use** pricing model +- AWS Free Tier is available for new S3 customers + +## Commands and Syntax +No specific CLI commands or API calls are provided on this page — it is a navigational overview. Key operations referenced: +- **Create** a bucket +- **Upload** objects to a bucket +- **Open / download / move** objects within buckets +- **Empty** a bucket (remove all objects) +- **Delete** a bucket +- **List** buckets +- **View** bucket properties + +## Relationships +- **S3 Express One Zone / Directory Buckets** — alternative bucket type for high-performance workloads +- **S3 Transfer Acceleration** — feature for faster file transfers into buckets +- **Requester Pays Buckets** — billing model where the requester (not bucket owner) pays for transfers +- **Storage Browser for S3** — UI tool for working with bucket contents +- **Mountpoint for S3** — mount a bucket as a local file system +- **Object organization** — listing and working with objects is covered separately under "Organizing, listing, and working with your objects" + +## Exam-Relevant Points +- Understand the distinction between **general purpose buckets** and **directory buckets** (Express One Zone) +- Know that S3 has **bucket naming rules**, **quotas**, and **restrictions** that constrain bucket creation +- **Transfer Acceleration** uses CloudFront edge locations to speed up uploads — a commonly tested feature +- **Requester Pays** shifts data transfer costs to the requester — important for cross-account or public dataset scenarios +- Buckets must be **emptied before deletion** — you cannot delete a non-empty bucket +- S3 pricing is **pay-per-use** with Free Tier availability + diff --git a/entries/2026/03/08/s3-event-notifications.md b/entries/2026/03/08/s3-event-notifications.md new file mode 100644 index 0000000000000000000000000000000000000000..d82f571b7b8a29a8be52df20c9bc11971b0bf2bd --- /dev/null +++ b/entries/2026/03/08/s3-event-notifications.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonS3/latest/userguide/EventNotifications.html +source: sources/s3-event-notifications.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:41 + +## Overview +Amazon S3 Event Notifications allow you to receive notifications when specific events occur in an S3 bucket. You configure notifications by adding a notification configuration to the bucket's *notification* subresource, specifying which events to publish and which destinations should receive them. Notifications are delivered **at least once** and typically arrive within seconds, though delays of a minute or longer are possible. + +## Key Concepts +- **At-least-once delivery** — notifications are guaranteed to be delivered at least once, not exactly once (duplicates possible) +- **Notification configuration** — stored in the bucket's `notification` subresource; managed via the S3 API +- **Supported event categories:** + - New object created + - Object removal + - Object restore + - Reduced Redundancy Storage (RRS) object lost + - Replication events + - S3 Lifecycle expiration and transition + - S3 Intelligent-Tiering automatic archival + - Object tagging + - Object ACL PUT +- **Supported destinations** (specified by ARN): + - Amazon SNS topics + - Amazon SQS queues (standard only — **FIFO queues are NOT supported**) + - AWS Lambda functions + - Amazon EventBridge +- **FIFO queue workaround** — use EventBridge as an intermediary to route S3 events to an SQS FIFO queue +- **Execution loop warning** — if a notification writes back to the same bucket that triggers it (e.g., Lambda uploads to the triggering bucket), an infinite loop can occur. Mitigate by using two buckets or scoping the trigger to a specific prefix. + +## Commands and Syntax +No CLI commands on this page. Configuration is done via: +- The S3 API (`PutBucketNotificationConfiguration`) +- The notification subresource on the bucket +- ARNs of destination resources in the notification configuration + +## Relationships +- **Amazon SNS** — fan-out pattern; S3 publishes to an SNS topic which can forward to multiple subscribers +- **Amazon SQS** — decoupled processing; consumers poll the queue for S3 event messages +- **AWS Lambda** — serverless event-driven processing triggered directly by S3 events +- **Amazon EventBridge** — advanced routing, filtering, and fan-out; required workaround for FIFO queue destinations +- **S3 Lifecycle** — lifecycle expiration and transition events can trigger notifications +- **S3 Intelligent-Tiering** — archival events are a notification source +- **S3 Replication** — replication status changes can trigger notifications +- **IAM / Resource Policies** — destination resources (SNS, SQS, Lambda) must grant S3 permission to publish/invoke + +## Exam-Relevant Points +- Delivery guarantee is **at least once**, not exactly once — design consumers to be idempotent +- **SQS FIFO queues cannot be direct S3 event notification destinations** — use EventBridge as a bridge +- Four destination types: SNS, SQS (standard), Lambda, EventBridge +- Writing to the same bucket that triggers the notification can create an **infinite loop** — use separate buckets or prefix-scoped triggers +- Notification latency is typically seconds but can exceed one minute +- There is a per-bucket quota on the number of event notification configurations + diff --git a/entries/2026/03/08/s3-feature-parity-cross-reference.md b/entries/2026/03/08/s3-feature-parity-cross-reference.md new file mode 100644 index 0000000000000000000000000000000000000000..bb8667bca12848655166be3191182cd5c93ff515 --- /dev/null +++ b/entries/2026/03/08/s3-feature-parity-cross-reference.md @@ -0,0 +1,68 @@ +# S3 Feature Parity Cross-Reference + +**Date:** 2026-03-08 +**Time:** 18:30 + +## Summary + +Cross-reference of AWS S3 features against self-hosted object storage alternatives (MinIO, Ceph RGW, SeaweedFS). Maps AWS expert beliefs to replacement requirements. + +## Well Covered by Self-Hosted Alternatives + +| S3 Feature | AWS Expert Beliefs | Self-Hosted Equivalent | +|---|---|---| +| Object storage API | `s3-max-object-size-5tb`, `s3-multipart-upload-10000-parts-times-5gib`, `s3-unlimited-objects-per-bucket` | MinIO and Ceph RGW implement the S3 API directly. Full compatibility for GET/PUT/DELETE/LIST. | +| Versioning | `s3-versioning-cannot-revert-to-unversioned`, `s3-delete-creates-delete-marker`, `s3-each-version-full-object-not-diff` | MinIO supports S3-compatible versioning. Ceph RGW supports versioning. | +| Bucket policies | `s3-bucket-policy-size-limit-20kb`, `s3-resources-private-by-default` | MinIO supports IAM-style policies. Ceph RGW supports bucket policies. | +| Encryption at rest | `s3-sse-s3-default-encryption` | MinIO supports SSE-S3, SSE-C, SSE-KMS. Ceph supports encryption at OSD level. | +| Replication | `s3-live-replication-no-preexisting-objects`, `s3-bidirectional-replication-requires-replica-modification-sync` | MinIO supports site-to-site replication. Ceph supports multi-site replication via RGW zones. | +| Lifecycle rules | `s3-lifecycle-rules-apply-retroactively`, `s3-lifecycle-no-retrieval-charges` | MinIO supports ILM (Information Lifecycle Management). Ceph RGW supports lifecycle policies. | +| Event notifications | `s3-event-notification-four-destinations`, `s3-event-notifications-at-least-once-delivery` | MinIO supports bucket notifications to AMQP, Kafka, NATS, Redis, PostgreSQL, MySQL, Webhook, NSQ. | +| Access control | `s3-acls-are-legacy`, `s3-acls-disabled-by-default` | MinIO uses IAM-style access control. Ceph uses S3-compatible ACLs and bucket policies. | +| Strong consistency | `s3-strong-read-after-write-consistency` | MinIO provides strong consistency. Ceph RGW provides read-after-write consistency for new objects. | + +## Gaps in Self-Hosted Alternatives + +### Storage Classes and Tiering +- **S3 provides:** 8+ storage classes (`s3-all-classes-11-nines-except-rrs`), Intelligent-Tiering with 5 automatic tiers (`s3-intelligent-tiering-five-tiers`), Glacier/Deep Archive for archival (`s3-glacier-flexible-deep-archive-require-restore`) +- **Self-hosted gap:** MinIO has tiering to cloud or NAS but no equivalent of Glacier. No automatic intelligent tiering. Must build tiering logic manually or accept single-tier storage. +- **Migration implication:** Teams using Intelligent-Tiering or Glacier will need to rearchitect their storage strategy. + +### Express One Zone +- **S3 provides:** `s3-express-one-zone-10x-faster-50pct-lower-cost` — single-digit millisecond latency for frequently accessed data +- **Self-hosted gap:** No equivalent. Can achieve low latency with local NVMe but without the managed scaling. + +### Transfer Acceleration +- **S3 provides:** `s3-transfer-acceleration-uses-cloudfront-edges` — uses CloudFront edge network for faster uploads +- **Self-hosted gap:** No equivalent without building a CDN edge network. + +### S3 Access Points +- **S3 provides:** `s3-bucket-max-10000-access-points`, `s3-access-points-vpc-restriction` — named network endpoints with distinct policies +- **Self-hosted gap:** MinIO has limited access point support. Ceph RGW does not support access points. + +### Durability Guarantees +- **S3 provides:** `s3-all-classes-11-nines-except-rrs` — 99.999999999% durability +- **Self-hosted gap:** MinIO with erasure coding provides high durability but achieving 11 nines requires careful infrastructure planning. No SLA. + +### Integration with AWS Ecosystem +- **S3 provides:** Native integration with Lambda, SQS, SNS, EventBridge, CloudTrail, Macie, GuardDuty, Access Analyzer (`s3-guardduty-monitors-cloudtrail-data-events`, `s3-macie-discovers-sensitive-data`, `s3-iam-access-analyzer-external-access`) +- **Self-hosted gap:** Must build all integrations manually. Security monitoring, sensitive data detection, and access analysis require separate tooling. + +### Object Lock / WORM +- **S3 provides:** `s3-object-lock-worm-compliance` — SEC 17a-4 compliant immutable storage +- **Self-hosted gap:** MinIO supports Object Lock. Ceph RGW has limited support. Compliance certification is the real gap. + +## S3 Features With No Self-Managed Equivalent + +- **S3 Storage Lens:** `s3-storage-lens-60-plus-metrics` — organization-wide storage analytics +- **S3 Batch Operations:** `s3-batch-operations-billions-single-request` — operate on billions of objects +- **Requester Pays:** `s3-requester-pays-shifts-transfer-cost` — billing model feature +- **S3 Table Buckets:** `s3-table-bucket-limits` — managed Apache Iceberg tables +- **S3 Vector Buckets:** `s3-vector-buckets-for-embeddings` — managed vector storage + +## Recommendations + +1. **MinIO is the closest self-hosted replacement** — full S3 API compatibility, versioning, encryption, replication, lifecycle, event notifications, and object lock +2. **Storage class tiering is the biggest functional gap** — no self-hosted equivalent to Intelligent-Tiering or Glacier +3. **Durability and compliance require infrastructure investment** — erasure coding configs, hardware redundancy, and independent compliance audits +4. **Ecosystem integrations must be rebuilt** — security monitoring, data classification, and access analysis need separate tools diff --git a/entries/2026/03/08/s3-lifecycle.md b/entries/2026/03/08/s3-lifecycle.md new file mode 100644 index 0000000000000000000000000000000000000000..eb4bb221dd9f4692c4a957591549b253f619a548 --- /dev/null +++ b/entries/2026/03/08/s3-lifecycle.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html +source: sources/s3-lifecycle.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:41 + + + +## Overview +S3 Lifecycle is a feature that allows you to define rules on an S3 bucket to automatically transition objects to cheaper storage classes or delete (expire) them after specified time periods. A lifecycle configuration is a set of rules with two action types: transition actions and expiration actions, enabling cost-effective storage management throughout an object's lifetime. + +## Key Concepts +- **S3 Lifecycle configuration** — a set of rules applied to a bucket defining automated actions on objects +- **Transition actions** — move objects to a lower-cost storage class after a specified time (e.g., to S3 Standard-IA after 30 days, to Glacier Flexible Retrieval after 1 year) +- **Expiration actions** — automatically delete objects after a specified time period +- Lifecycle rules apply to **both existing and new objects** — adding a rule retroactively affects objects already in the bucket +- **Billing changes apply immediately** when an object becomes eligible for a lifecycle action, even if S3 hasn't performed the action yet (exception: transitions to S3 Intelligent-Tiering, where billing changes only apply after the actual transition) +- **No data retrieval charges** for lifecycle transitions, but per-request ingestion charges (PUT/COPY) still apply +- Expiration actions may incur costs if objects are in a storage class with a **minimum storage duration** requirement +- **Bucket policies cannot block lifecycle actions** — even a deny-all policy will not prevent lifecycle transitions or deletions (general purpose buckets) + +## Commands and Syntax +No CLI commands on this page. Configuration is done via lifecycle rules set on a bucket (see related topics for configuration details). A typical lifecycle rule chain: +1. Transition to S3 Standard-IA or S3 Intelligent-Tiering (e.g., after 30 days) +2. Transition to S3 Glacier Flexible Retrieval (e.g., after 90 days) +3. Expire/delete (e.g., after retention period) + +## Relationships +- **Storage classes** — lifecycle rules transition between S3 Standard, S3 Standard-IA, S3 One Zone-IA, S3 Intelligent-Tiering, S3 Glacier Flexible Retrieval, and other classes +- **Bucket policies / IAM** — lifecycle actions are NOT governed by bucket policies; they operate independently +- **S3 event notifications** — lifecycle events can trigger notifications +- **Versioning** — lifecycle interacts with versioned buckets (covered in related topics) +- **Replication** — lifecycle has specific interactions with cross-region/same-region replication + +## Exam-Relevant Points +- Lifecycle rules apply retroactively to existing objects, not just newly created ones +- Bucket policies **cannot** prevent lifecycle deletions or transitions +- Billing stops at eligibility time even if S3 hasn't yet performed the action (except for Intelligent-Tiering transitions) +- No data retrieval charges for lifecycle transitions, but ingestion/request charges apply +- Minimum storage duration charges may apply when expiring objects from certain storage classes (e.g., Standard-IA has 30-day minimum, Glacier has 90-day minimum) +- A single lifecycle rule can chain multiple transitions and an expiration to manage an object's complete lifecycle + diff --git a/entries/2026/03/08/s3-objects.md b/entries/2026/03/08/s3-objects.md new file mode 100644 index 0000000000000000000000000000000000000000..69df60dd59163d963f9912d8f15fa288a6cc9585 --- /dev/null +++ b/entries/2026/03/08/s3-objects.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingObjects.html +source: sources/s3-objects.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:41 + +## Overview +This page describes the fundamental structure of Amazon S3 objects — the basic units of storage in S3. It covers the components that make up an object (key, version ID, value, metadata, subresources, access control information, and tags) and explains object subresources as subordinate entities. + +## Key Concepts +- **S3 is an object store** using unique key-values; you can store unlimited objects across one or more buckets +- **Object components**: Key, Version ID, Value, Metadata, Subresources, Access Control Information, Tags +- **Key**: The name assigned to an object; used for retrieval +- **Version ID**: Generated by S3 when an object is added to a versioning-enabled bucket; key + version ID uniquely identify an object within a bucket +- **Value**: The actual content — any sequence of bytes, from 0 bytes to 50 TB (actual max is 53.7 TB / 48.8 TiB due to multipart upload math: 10,000 parts × 5 GiB = 50,000 GiB) +- **Metadata**: Name-value pairs; includes both user-defined metadata and system-assigned metadata +- **Subresources**: Object-specific additional information, always subordinate to an object or bucket (e.g., ACL) +- **Tags**: Key-value pairs for categorization, access control, or cost allocation +- **All S3 resources are private by default** — access must be explicitly granted + +## Commands and Syntax +No CLI commands on this page. Key structural notes: +- Objects are addressed by `bucket + key` (or `bucket + key + version ID` when versioning is enabled) +- Access can be shared via **presigned URLs** +- ACL updates require replacing the entire existing ACL (not partial updates) + +## Relationships +- **S3 Versioning** — version IDs are assigned when versioning is enabled on a bucket +- **Multipart Upload** — determines the actual maximum object size (10,000 parts × 5 GiB) +- **Access Control** — connects to ACLs, bucket policies, IAM policies, and presigned URLs +- **Object Metadata** — further detailed in the UsingMetadata documentation +- **Object Tagging** — used for cost allocation and access control integration + +## Exam-Relevant Points +- Maximum object size is **5 TB** per AWS documentation convention, but the **actual limit is 53.7 TB** (48.8 TiB) based on multipart upload constraints (10,000 parts × 5 GiB) +- A **key + version ID** uniquely identifies an object within a bucket +- S3 resources are **private by default** +- Metadata has two types: **user-defined** and **system-defined** +- ACL replacement is **all-or-nothing** — you cannot partially update an ACL +- S3 supports **resource-based** (ACLs, bucket policies) and **user-based** (IAM) access control +- There is **no limit** on the number of objects you can store in S3 + diff --git a/entries/2026/03/08/s3-overview.md b/entries/2026/03/08/s3-overview.md new file mode 100644 index 0000000000000000000000000000000000000000..eead656518b391c6bea1f5c9c5d0ba838b7bca6f --- /dev/null +++ b/entries/2026/03/08/s3-overview.md @@ -0,0 +1,69 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html +source: sources/s3-overview.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:42 + +## Overview + +Amazon Simple Storage Service (Amazon S3) is an object storage service providing industry-leading scalability, data availability, security, and performance. It stores data as objects within buckets and supports four bucket types (general purpose, directory, table, and vector). S3 offers multiple storage classes, strong read-after-write consistency, extensive access management controls, and integrations with analytics, monitoring, and data processing services. + +## Key Concepts + +- **Object storage model**: Data stored as objects (file + metadata) in buckets, identified by bucket + key + optional version ID +- **Four bucket types**: + - **General purpose buckets** — default, multi-AZ, supports all storage classes except Express One Zone + - **Directory buckets** — single-AZ or DLZ, hierarchical organization, used for low-latency or data-residency; public access permanently disabled + - **Table buckets** — tabular data in Apache Iceberg format, queryable via Athena/Redshift/Spark; limit 10 per account per region, 10,000 tables per bucket + - **Vector buckets** — purpose-built for vector embeddings and similarity search, integrates with Bedrock/OpenSearch +- **Storage classes**: S3 Standard, S3 Express One Zone (10x faster, 50% lower request cost), S3 Standard-IA, S3 One Zone-IA, S3 Intelligent-Tiering (4 auto tiers), S3 Glacier Instant Retrieval, S3 Glacier Flexible Retrieval, S3 Glacier Deep Archive +- **S3 Express One Zone**: Single-digit millisecond latency, uses directory buckets, co-locate with compute in a single AZ +- **Strong read-after-write consistency** for PUT and DELETE in all regions — includes new objects, overwrites, deletes, and metadata/ACL/tag reads +- **Atomic single-key updates**: concurrent GET never returns partial/corrupt data +- **No object locking for concurrent writers**: latest-timestamp PUT wins +- **Bucket policies**: JSON-based, resource-based IAM policies, limited to 20 KB +- **ACLs disabled by default** (via S3 Object Ownership "Bucket owner enforced"); recommended to keep disabled +- **Block Public Access** enabled by default at bucket level +- **Objects never leave their Region** unless explicitly transferred or replicated +- **Bucket names and regions are immutable** after creation + +## Commands and Syntax + +- **Object URL format**: `https://.s3..amazonaws.com/` + - Example: `https://amzn-s3-demo-bucket.s3.us-west-2.amazonaws.com/photos/puppy.jpg` +- **Key operations**: `PutObject`, `GetObject`, `CopyObject`, `DeleteObject`, `HEAD` object +- **Access point operations**: `GetObject`, `PutObject` via named network endpoints +- **Namespaces by bucket type**: `S3` (general purpose), `s3express` (directory), `s3tables` (table) + +## Relationships + +- **IAM** — controls authentication/authorization for S3 resources +- **CloudWatch** — metrics and billing alerts for S3 +- **CloudTrail** — API audit logging for bucket and object operations +- **Lambda** — triggered via S3 event notifications; used with S3 Object Lambda and Batch Operations +- **SNS/SQS** — event notification targets +- **S3 Storage Lens** — org-wide storage analytics (60+ metrics) +- **Athena, Redshift, Spark** — query engines for S3 Table buckets +- **Bedrock, OpenSearch** — integration targets for S3 Vector buckets +- **Trusted Advisor** — best-practice checks including S3 optimization +- **VPC** — access points can be restricted to VPC-only access + +## Exam-Relevant Points + +- S3 provides **strong read-after-write consistency** for all PUT/DELETE operations in all regions — no eventual consistency for these operations +- **S3 Express One Zone**: up to 10x faster than Standard, 50% lower request costs, single AZ, uses directory buckets +- **Directory buckets cannot have public access enabled** (permanently disabled); general purpose buckets have Block Public Access on by default but it can be changed +- **ACLs are disabled by default** (Object Ownership = Bucket owner enforced); AWS recommends keeping them disabled +- **Bucket policies are limited to 20 KB** +- **S3 Intelligent-Tiering** has 4 access tiers (2 low-latency automatic + 2 opt-in archive tiers) +- **S3 Object Lock** provides WORM compliance +- **Concurrent PUT to same key**: latest timestamp wins, no built-in object locking for writers +- **Table buckets**: 10 per account per region, 10,000 tables per bucket, Apache Iceberg format +- **Versioning**: objects existing before versioning is enabled get version ID `null` +- **Bucket name and region cannot be changed** after creation +- **S3 Replication** supports cross-region and same-region replication +- **S3 Batch Operations** can process billions of objects with a single API request + diff --git a/entries/2026/03/08/s3-replication.md b/entries/2026/03/08/s3-replication.md new file mode 100644 index 0000000000000000000000000000000000000000..cb12862831ec6049b232b3dbdfb54f8db230b8eb --- /dev/null +++ b/entries/2026/03/08/s3-replication.md @@ -0,0 +1,60 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html +source: sources/s3-replication.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:42 + +## Overview + +Amazon S3 replication enables automatic, asynchronous copying of objects across S3 buckets, either within the same AWS Region or across different Regions. It supports same-account and cross-account scenarios, single or multiple destinations, and comes in two major forms: live replication (automatic for new/updated objects) and on-demand Batch Replication (for existing objects). Live replication further divides into Cross-Region Replication (CRR) and Same-Region Replication (SRR). + +## Key Concepts + +- **Live replication** — automatically replicates new and updated objects as they are written; does NOT replicate objects that existed before replication was configured +- **On-demand replication (Batch Replication)** — replicates existing objects on demand using S3 Batch Operations +- **Cross-Region Replication (CRR)** — replicates objects between buckets in different AWS Regions +- **Same-Region Replication (SRR)** — replicates objects between buckets in the same AWS Region +- **Two-way (bi-directional) replication** — keeps objects and metadata in sync across two or more buckets; requires replica modification sync enabled +- **S3 Replication Time Control (S3 RTC)** — SLA-backed: replicates 99.99% of new objects within 15 minutes; does NOT apply to Batch Replication +- Replication preserves all metadata including original creation times and version IDs +- Objects can be replicated directly into different storage classes (e.g., Glacier Flexible Retrieval, Glacier Deep Archive) +- **Owner override** — allows changing replica ownership to the destination bucket's AWS account +- Replicas of objects can only be re-replicated using Batch Replication (not live replication) +- Without S3 RTC, standard CRR/SRR replication time is 24–48 hours (not SLA-backed) + +## Commands and Syntax + +No CLI commands or API syntax are provided on this page. Configuration is done via replication rules on S3 buckets (covered in linked setup pages). + +Key configuration decisions: +1. Choose live replication (CRR or SRR) vs. Batch Replication +2. Optionally enable S3 RTC for predictable 15-minute SLA +3. For bi-directional: enable **replica modification sync** on replication rules +4. Optionally configure owner override and storage class overrides in replication rules + +## Relationships + +- **S3 Versioning** — required prerequisite for replication (covered in requirements page) +- **S3 Lifecycle policies** — can be used on destination buckets to transition replicated objects to colder storage classes +- **S3 Batch Operations** — powers Batch Replication jobs; used to track job status +- **S3 Multi-Region Access Points** — integrates with two-way CRR for failover; replication rules configured directly from MRAP +- **Amazon CloudWatch** — monitors replication metrics, especially useful with S3 RTC +- **S3 Storage Classes** — replication can target specific classes (Glacier, Deep Archive, etc.) +- **IAM** — replication requires appropriate IAM roles/permissions (covered in requirements) + +## Exam-Relevant Points + +- Live replication does **not** replicate pre-existing objects — Batch Replication is required for that +- **S3 RTC** provides an SLA: 99.99% of objects replicated within **15 minutes**; S3 RTC does **not** apply to Batch Replication +- CRR use cases: compliance (geographic distance), latency reduction, operational efficiency across Regions +- SRR use cases: log aggregation, prod/test account sync, data sovereignty (must stay in-Region) +- Without S3 RTC, replication timeframe is **24–48 hours** and is **not SLA-backed** +- Batch Replication can retry **FAILED** replications and re-replicate objects that were themselves replicas +- Two-way replication with replica modification sync keeps ACLs, tags, and object locks in sync +- Owner override option restricts access to replicas by changing ownership to the destination account +- Replication can work cross-account (source and destination owned by different AWS accounts) +- S3 RTC is the only option offering a **predictable, SLA-backed** replication window + diff --git a/entries/2026/03/08/s3-security.md b/entries/2026/03/08/s3-security.md new file mode 100644 index 0000000000000000000000000000000000000000..0b3d0f7d246441a352e0d5ed8b7d37793a4bd92b --- /dev/null +++ b/entries/2026/03/08/s3-security.md @@ -0,0 +1,90 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonS3/latest/userguide/security-best-practices.html +source: sources/s3-security.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:43 + +## Overview + +This page covers Amazon S3 security best practices organized into three categories: preventive security controls (access, encryption, network), monitoring and auditing practices (logging, CloudTrail, AWS Config), and managed AWS security services for data protection (GuardDuty, Macie, IAM Access Analyzer, Security Hub). It also notes an important upcoming change: SSE-C will be disabled by default for new and select existing buckets starting April 2026. + +## Key Concepts + +- **S3 Object Ownership / Disable ACLs**: ACLs are disabled by default for new buckets (bucket owner enforced). Access is managed exclusively via IAM policies, bucket policies, VPC endpoint policies, SCPs, and RCPs. Disabling ACLs simplifies permissions management and auditing. +- **S3 Block Public Access**: Centralized controls to prevent public access; can be enforced at the account, bucket, or organization level via AWS Organizations. New accounts automatically inherit org-level settings. +- **SSE-C deprecation (April 2026)**: SSE-C will be disabled by default for all new buckets and existing buckets without SSE-C data. Must explicitly enable via `PutBucketEncryption` API if needed. +- **Unpredictable bucket names**: Append a GUID to bucket names to prevent name-squatting. Avoid deleting buckets — another account could reuse the name. +- **Default bucket quota**: 10,000 buckets per account, reducing the need to delete buckets. +- **Least privilege access**: Grant only required permissions using IAM policies, bucket policies, and permissions boundaries. +- **IAM roles over long-term credentials**: Use IAM roles for EC2 instances, Lambda, and other services — never embed access keys in code. +- **Encryption at rest**: SSE-S3 is the default. Other options: SSE-KMS, DSSE-KMS, SSE-C, client-side encryption. +- **Encryption in transit**: Enforce HTTPS via `aws:SecureTransport` condition in bucket policies. Do NOT pin S3 TLS certificates. +- **S3 Object Lock**: WORM model to prevent accidental or malicious deletion (e.g., protect CloudTrail logs). +- **S3 Versioning**: Keep multiple object variants; enables recovery from unintended deletions. +- **Cross-Region Replication (CRR)**: Async replication across regions for compliance; requires versioning on both source and destination. +- **VPC Endpoints**: Keep S3 traffic off the public internet; control access via bucket policies referencing VPC/endpoint conditions. + +## Commands and Syntax + +**Enforce HTTPS only (bucket policy condition):** +```json +"Condition": { + "Bool": { "aws:SecureTransport": "false" } +} +``` +Use this to deny HTTP requests. + +**AWS Config managed rules for detective controls:** +- `s3-bucket-public-read-prohibited` +- `s3-bucket-public-write-prohibited` +- `s3-bucket-ssl-requests-only` +- `s3-bucket-versioning-enabled` +- `s3-bucket-replication-enabled` +- `s3-bucket-logging-enabled` +- `cloudtrail-s3-dataevents-enabled` + +**APIs for auditing bucket access:** +- `ListBuckets` — enumerate all buckets +- `GetBucketAcl`, `GetBucketPolicy`, `GetBucketWebsite` — check access controls + +**CloudTrail data events to monitor:** +- `PutBucketAcl`, `PutObjectAcl`, `PutBucketPolicy`, `PutBucketWebsite` (management) +- `GetObject`, `DeleteObject`, `PutObject` (object-level) + +**CloudWatch metrics to monitor:** +- `PutRequests`, `GetRequests`, `4xxErrors`, `DeleteRequests` + +## Relationships + +- **IAM** — Bucket policies, IAM user policies, SCPs, RCPs, and permissions boundaries all govern S3 access +- **AWS KMS** — SSE-KMS and DSSE-KMS encryption options integrate with KMS key management +- **VPC** — VPC endpoints provide private connectivity to S3; endpoint policies add another access control layer +- **CloudTrail** — Logs S3 API calls (management and data events) for auditing +- **AWS Config** — Evaluates S3 bucket configurations against compliance rules (general purpose buckets only, not directory buckets) +- **CloudWatch** — Monitors S3 metrics and can trigger alarms on suspicious activity +- **S3 Storage Lens** — Organization-wide analytics for usage, cost optimization, and security posture +- **Amazon GuardDuty** — Detects threats targeting S3 (anomalous API calls, suspicious access patterns) +- **Amazon Macie** — Discovers and protects sensitive data (PII, credentials) stored in S3 +- **IAM Access Analyzer** — Identifies S3 resources shared with external entities; validates policies +- **AWS Security Hub** — Aggregates S3 security findings from multiple services into a single dashboard +- **AWS Organizations** — Enables org-level Block Public Access and centralized policy enforcement + +## Exam-Relevant Points + +1. **ACLs are disabled by default** for new buckets (bucket owner enforced). When disabled, PUT requests with custom ACLs return `400 AccessControlListNotSupported`. +2. **SSE-S3 is the default encryption** — all new objects are automatically encrypted at rest. SSE-KMS and DSSE-KMS are alternatives; SSE-C is being deprecated by default. +3. **Enforce HTTPS** using `aws:SecureTransport` condition in bucket policies; set CloudWatch alarms on HTTP access attempts. +4. **Do NOT pin S3 TLS certificates** — AWS rotates them automatically. +5. **S3 Block Public Access** can be set at bucket, account, or organization level; overrides any permissive ACLs or policies. +6. **CRR requires versioning** enabled on both source and destination buckets. +7. **VPC endpoints** prevent S3 traffic from traversing the public internet and can prevent data exfiltration when the VPC has no internet gateway. +8. **AWS Config does NOT support directory buckets** — managed rules only evaluate general purpose buckets. +9. **IAM roles** (not access keys) should be used for EC2/Lambda access to S3 — roles provide auto-rotating temporary credentials. +10. **S3 Object Lock** provides WORM protection; useful for regulatory compliance and protecting audit logs. +11. **Key AWS Config rules** to know: `s3-bucket-public-read-prohibited`, `s3-bucket-ssl-requests-only`, `s3-bucket-versioning-enabled`, `s3-bucket-logging-enabled`. +12. **GuardDuty S3 protection** monitors CloudTrail S3 data events for threat detection. **Macie** discovers sensitive data. **IAM Access Analyzer** flags external access. **Security Hub** aggregates findings. +13. **Bucket name squatting risk**: don't delete buckets if possible; another account can claim the name. Use GUIDs in bucket names. + diff --git a/entries/2026/03/08/s3-storage-classes.md b/entries/2026/03/08/s3-storage-classes.md new file mode 100644 index 0000000000000000000000000000000000000000..38b9f229cb32abe105b6522b8bf1bd662841dc41 --- /dev/null +++ b/entries/2026/03/08/s3-storage-classes.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html +source: sources/s3-storage-classes.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:43 + +## Overview + +Amazon S3 offers multiple storage classes that let you optimize cost, performance, and availability based on data access patterns. Every object has an associated storage class (defaulting to S3 Standard), and all classes provide 99.999999999% (11 nines) durability except Reduced Redundancy Storage. The key trade-offs are between access latency, retrieval fees, minimum storage duration, and per-GB storage cost. + +## Key Concepts + +- **S3 Standard** (`STANDARD`) — Default class; millisecond access; no retrieval fees; no minimum storage duration; >= 3 AZs +- **S3 Express One Zone** (`EXPRESS_ONEZONE`) — Single-digit millisecond access (up to 10x faster than Standard); 50% lower request costs; single AZ; designed for latency-sensitive workloads +- **S3 Intelligent-Tiering** (`INTELLIGENT_TIERING`) — Automatically moves objects between tiers based on access patterns; no retrieval fees; charges a small monitoring/automation fee per object; objects < 128 KB are not monitored and stay in Frequent Access tier + - 3 automatic tiers: Frequent Access, Infrequent Access (30 days), Archive Instant Access (90 days) + - 2 optional tiers: Archive Access (90+ days, async), Deep Archive Access (180+ days, async) +- **S3 Standard-IA** (`STANDARD_IA`) — Infrequent access; millisecond retrieval; per-GB retrieval fee; 30-day minimum storage; 128 KB minimum billable size; >= 3 AZs +- **S3 One Zone-IA** (`ONEZONE_IA`) — Same as Standard-IA but single AZ; lower cost; not resilient to AZ loss; 99.5% availability (lowest of all classes) +- **S3 Glacier Instant Retrieval** (`GLACIER_IR`) — Archive with millisecond access; 90-day minimum; 128 KB minimum billable; per-GB retrieval fee +- **S3 Glacier Flexible Retrieval** (`GLACIER`) — Archive with minutes-to-hours retrieval; 90-day minimum; must restore before access; 40 KB additional metadata per object +- **S3 Glacier Deep Archive** (`DEEP_ARCHIVE`) — Lowest cost; hours retrieval; 180-day minimum; must restore before access; 40 KB additional metadata per object +- **S3 Outposts** (`OUTPOSTS`) — On-premises storage on AWS Outposts; only SSE-S3 or SSE-C encryption (no SSE-KMS); can only be used with Outposts buckets +- **Reduced Redundancy Storage** (`REDUCED_REDUNDANCY`) — **Not recommended**; only 99.99% durability (vs 11 nines); S3 Standard is more cost-effective + +## Commands and Syntax + +- Set storage class at upload time or via lifecycle rules, copy operations, or API calls +- `RestoreObject` — Required to access objects in Glacier Flexible Retrieval, Glacier Deep Archive, or Intelligent-Tiering archive tiers +- `PutBucketIntelligentTieringConfiguration` — Activate optional archive tiers for Intelligent-Tiering +- Storage class identifiers used in API/CLI: `STANDARD`, `EXPRESS_ONEZONE`, `INTELLIGENT_TIERING`, `STANDARD_IA`, `ONEZONE_IA`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `OUTPOSTS`, `REDUCED_REDUNDANCY` + +## Relationships + +- **S3 Lifecycle Policies** — Transition objects between storage classes automatically over time +- **S3 Analytics — Storage Class Analysis** — Helps optimize between S3 Standard and S3 Standard-IA +- **S3 Cross-Region Replication (CRR)** — One Zone-IA recommended for replica copies of recreatable data +- **AWS Outposts** — S3 Outposts class is exclusive to Outposts buckets +- **Amazon Glacier service** — Glacier storage classes are accessed through S3, not through the separate Glacier service + +## Exam-Relevant Points + +- **All classes except RRS have 11 nines (99.999999999%) durability** — RRS has only 99.99% +- **Only S3 One Zone-IA and S3 Express One Zone use a single AZ** — all others use >= 3 AZs +- **Minimum storage durations**: Standard-IA / One Zone-IA = 30 days; Glacier IR / Glacier Flexible = 90 days; Glacier Deep Archive = 180 days; Standard / Express One Zone / Intelligent-Tiering = none +- **128 KB minimum billable size** applies to Standard-IA, One Zone-IA, and Glacier Instant Retrieval +- **Objects < 128 KB in Intelligent-Tiering** are not auto-tiered; they stay in Frequent Access +- **Intelligent-Tiering has no retrieval fees** — it charges monitoring fees instead +- **Glacier Flexible Retrieval and Deep Archive require restore before access** — they are not real-time +- **S3 Outposts does NOT support SSE-KMS** — only SSE-S3 and SSE-C +- **Reduced Redundancy Storage is deprecated in practice** — AWS recommends S3 Standard instead +- **Availability varies**: Standard 99.99%, Standard-IA/Intelligent-Tiering/Glacier IR 99.9%, One Zone-IA 99.5%, Express One Zone 99.95% +- **Glacier Flexible Retrieval and Deep Archive each add 40 KB metadata** per archived object (32 KB at Glacier rate + 8 KB at Standard rate) + diff --git a/entries/2026/03/08/s3-versioning.md b/entries/2026/03/08/s3-versioning.md new file mode 100644 index 0000000000000000000000000000000000000000..6351463619c884edc64b006e502efb98e474aab5 --- /dev/null +++ b/entries/2026/03/08/s3-versioning.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonS3/latest/userguide/Versioning.html +source: sources/s3-versioning.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:43 + + + +## Overview +S3 Versioning allows you to keep multiple variants of an object in the same bucket, enabling preservation, retrieval, and restoration of every version of every stored object. It protects against accidental deletion (via delete markers rather than permanent removal) and overwrites (by storing each write as a new version). + +## Key Concepts +- **Versioning is disabled by default** and must be explicitly enabled at the bucket level. +- Three bucket states: **Unversioned** (default), **Versioning-enabled**, and **Versioning-suspended**. +- Once enabled, a bucket **can never return to unversioned** — it can only be suspended. +- Versioning applies to **all objects** in the bucket, never selectively. +- Deleting a versioned object inserts a **delete marker** instead of permanently removing it; the delete marker becomes the current version. +- Overwriting creates a **new object version**; previous versions remain restorable. +- Pre-existing objects (before versioning was enabled) have a version ID of **`null`**. +- Each version is the **entire object**, not a diff — storage costs apply per version. +- Simultaneous write requests for the same object are **all stored** (no silent overwrites). +- SOAP API does **not** support S3 Versioning. + +## Commands and Syntax +No specific CLI commands on this page, but related operations are covered in linked topics: +- Enable versioning: see *Enabling versioning on buckets* +- Configure MFA Delete: see *Configuring MFA delete* +- Manage versioned/suspended objects: see linked workflow pages + +## Relationships +- **S3 Lifecycle**: Use with versioning to manage noncurrent version expiration and control storage costs. When enabling versioning on a bucket that already has an expiration lifecycle policy, you **must add a noncurrent expiration configuration** to maintain permanent delete behavior. +- **MFA Delete**: Additional protection layer for versioned buckets. +- **Delete markers**: Central mechanism linking versioning to deletion behavior. +- **Storage costs**: Each version counts as a full object for pricing (ties to S3 pricing/storage classes). + +## Exam-Relevant Points +- A versioning-enabled bucket **cannot revert to unversioned** — only suspended. +- Deleting in a versioned bucket creates a **delete marker**, not a permanent delete. +- Pre-existing objects get version ID **`null`**; they are versioned only on future modifications. +- Each stored version is billed as a **full object** (not incremental/diff). +- Versioning state applies to **all** objects in the bucket — no per-object control. +- When migrating from unversioned to versioned with an existing expiration lifecycle, you **must add noncurrent expiration** rules. +- Suspending versioning does **not** delete existing versions — it only changes future behavior. + diff --git a/entries/2026/03/08/ses-overview.md b/entries/2026/03/08/ses-overview.md new file mode 100644 index 0000000000000000000000000000000000000000..9193ec93cf4b860d2c50d4bc4b31280792857567 --- /dev/null +++ b/entries/2026/03/08/ses-overview.md @@ -0,0 +1,54 @@ +--- +source_url: https://docs.aws.amazon.com/ses/latest/dg/Welcome.html +source: sources/ses-overview.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:44 + + + +## Overview +Amazon Simple Email Service (SES) is a cloud-based email platform that enables sending and receiving email at scale using custom domains and addresses. It supports marketing emails, transactional emails, newsletters, and inbound email processing (autoresponders, unsubscribe systems, support ticket generation), eliminating the need to manage email server infrastructure, network configuration, and IP reputation. + +## Key Concepts +- **Managed email service** — removes need for self-managed email infrastructure (servers, networking, IP reputation) +- **Send and receive** — SES handles both outbound and inbound email +- **Use cases**: marketing emails, transactional emails (order confirmations), newsletters, inbound email processing +- **Pay-per-use pricing** — based on volume of emails sent and received +- **Three sending methods**: AWS SDK, SMTP interface, or direct SES API calls +- **Easy DKIM** — built-in email authentication mechanism, integrates tightly with Route 53 + +## Commands and Syntax +- Sending email can be done via: + - **AWS SDK** (programmatic, any language) + - **SMTP interface** (standard email protocol) + - **SES API** (direct REST calls) +- Easy DKIM setup available through the AWS Management Console + +## Relationships +| Integrated Service | Integration Purpose | +|---|---| +| **Amazon EC2** | Send email from compute instances | +| **Elastic Beanstalk** | Build email-enabled applications | +| **Amazon SNS** | Notifications for bounces, complaints, deliveries; publish received email content | +| **Route 53** | Simplified Easy DKIM DNS setup | +| **IAM** | Control user access to email sending | +| **Amazon S3** | Store received emails | +| **AWS Lambda** | Trigger functions on received emails | +| **AWS KMS** | Encrypt received mail stored in S3 | +| **CloudTrail** | Audit logging of SES API calls | +| **CloudWatch** | Publish email sending events/metrics | +| **Amazon Data Firehose** | Stream sending events to Redshift, OpenSearch, or S3 | + +## Exam-Relevant Points +- SES supports **both sending and receiving** email — not just outbound +- Three sending interfaces: **SDK, SMTP, API** +- **Easy DKIM** authenticates emails; easiest with Route 53 but works with any DNS provider +- Received emails can be stored in **S3** (optionally encrypted with **KMS**) and trigger **Lambda** functions +- **SNS** provides bounce, complaint, and delivery notifications +- **CloudTrail** logs SES API calls; **CloudWatch** and **Firehose** capture sending events +- IAM controls access to email sending capabilities +- Pricing is **volume-based** (pay per email sent/received) + diff --git a/entries/2026/03/08/ses-receiving-email.md b/entries/2026/03/08/ses-receiving-email.md new file mode 100644 index 0000000000000000000000000000000000000000..3ea3eb5bce0b2744043ec22005e22a81f0489284 --- /dev/null +++ b/entries/2026/03/08/ses-receiving-email.md @@ -0,0 +1,38 @@ +--- +source_url: https://docs.aws.amazon.com/ses/latest/dg/receiving-email.html +source: sources/ses-receiving-email.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:44 + + + +## Overview +Amazon SES can be configured to receive email on behalf of one or more domains, handling underlying mail-receiving operations such as communicating with other mail servers, scanning for spam and viruses, blocking mail from untrusted sources (Spamhaus block lists or SES block lists), and accepting mail for recipients in your domain. Processing of received email is controlled through custom instructions defined as receipt rules and IP address filters. + +## Key Concepts +- **SES Email Receiving** — SES acts as an inbound mail handler for your domains, managing server communication, spam/virus scanning, and source trust verification. +- **Receipt Rules** (recipient-based control) — Provide fine-grained control over incoming email; can deliver to S3, publish to SNS, send to WorkMail, or auto-bounce for specific addresses. +- **IP Address Filters** (IP-based control) — Broad-level control that explicitly blocks or allows all messages from specific IP addresses or CIDR ranges. Simple to set up. +- **Block list sources** — SES uses Spamhaus and its own block lists to reject mail from untrusted sources. +- **Regional availability** — Email receiving is only available in specific AWS Regions that support SES inbound endpoints (not all SES regions support receiving). + +## Commands and Syntax +No CLI commands or API syntax provided on this page. Configuration is done through console wizards for receipt rules and IP address filters (see linked walkthroughs). + +## Relationships +- **Amazon S3** — Receipt rules can deliver incoming mail to S3 buckets. +- **Amazon SNS** — Receipt rules can publish received email to SNS topics. +- **Amazon WorkMail** — Receipt rules can forward email to WorkMail. +- **SES Email Sending** — Receiving is a complementary capability to SES's primary sending function. +- **AWS Regions** — Receiving availability depends on regional SES inbound endpoint support. + +## Exam-Relevant Points +- SES email receiving is **not available in all AWS Regions** — only regions with SES inbound endpoints. +- Two control mechanisms: **receipt rules** (fine-grained, recipient-based) vs. **IP address filters** (broad, IP-based). +- Receipt rules can integrate with **S3, SNS, and WorkMail** as delivery targets. +- SES automatically scans for **spam and viruses** and blocks mail from **Spamhaus** and SES block lists. +- IP address filters can **block or allow** traffic from specific IPs or IP ranges. + diff --git a/entries/2026/03/08/ses-sending-email.md b/entries/2026/03/08/ses-sending-email.md new file mode 100644 index 0000000000000000000000000000000000000000..ac4f91dfe307143e95c8ce5e9622c19ebb9db950 --- /dev/null +++ b/entries/2026/03/08/ses-sending-email.md @@ -0,0 +1,36 @@ +--- +source_url: https://docs.aws.amazon.com/ses/latest/dg/send-email.html +source: sources/ses-sending-email.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:44 + +## Overview +This page covers the three methods for sending email with Amazon Simple Email Service (Amazon SES): the SES console, the SMTP interface, and the SES API. It provides guidance on when to use each method and highlights an important behavioral detail about sending to multiple recipients. + +## Key Concepts +- **Three sending methods**: SES console, SMTP interface, and SES API +- **Console** is typically used for sending test emails and managing sending activity +- **SMTP interface** is used for bulk email sending, integrating with SMTP-enabled software/applications, or connecting to existing mail servers +- **SES API** is used when calling SES via raw HTTP requests +- **Atomic send failure**: When sending to multiple recipients (To, CC, BCC), if the call fails, the **entire email is rejected** — no recipients receive it + +## Commands and Syntax +No specific CLI commands or configuration syntax are provided on this page. The page serves as a routing guide to: +- SMTP programmatic sending (via `send-using-smtp-programmatically`) +- API-based sending (via `send-email-api`) + +## Relationships +- **SMTP interface** — connects SES to existing mail servers and SMTP-enabled applications +- **SES API** — raw HTTP request integration for programmatic sending +- **SES Pricing** — cost model for email sending +- Related to SES identity verification, sending limits, and reputation management (not covered here but prerequisite topics) + +## Exam-Relevant Points +- **Best practice**: Send email to **one recipient at a time** to avoid total rejection on failure — this is a key architectural recommendation +- Know the **three sending methods** and when each is appropriate (console = testing, SMTP = bulk/integration, API = raw HTTP) +- Failure behavior is **all-or-nothing** per API call when multiple recipients are specified +- SES supports To, CC, and BCC addressing — all count as recipients for failure semantics + diff --git a/entries/2026/03/08/sqs-dead-letter-queues.md b/entries/2026/03/08/sqs-dead-letter-queues.md new file mode 100644 index 0000000000000000000000000000000000000000..97f127173b276f487f9fa50526b40ecb52dd6577 --- /dev/null +++ b/entries/2026/03/08/sqs-dead-letter-queues.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html +source: sources/sqs-dead-letter-queues.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:44 + +## Overview + +Amazon SQS dead-letter queues (DLQs) are special queues that receive messages which failed processing from source queues. They serve as a debugging mechanism, allowing developers to isolate and analyze unconsumed messages to diagnose application issues, and support redrive to move messages back to the source queue. + +## Key Concepts + +- **Dead-letter queue (DLQ)**: A queue that receives messages that couldn't be successfully processed by consumers of a source queue +- **Redrive policy**: Configures `maxReceiveCount` — the number of times a message can be received before being moved to the DLQ +- **Redrive allow policy**: Controls which source queues can send messages to a given DLQ (allow all, allow specific up to 10 by ARN, or deny all) +- **maxReceiveCount**: Should be set high enough to allow sufficient retries; setting to 1 means a single failure triggers DLQ movement +- **Dead-letter queue redrive**: The ability to move messages back out of a DLQ to the source queue for reprocessing +- Source queue and DLQ should be in the **same AWS account and Region** for optimal performance +- A DLQ must be created as a regular queue first, then configured as a DLQ +- For standard queues with `maxReceiveCount` > 3, messages received 3+ times without deletion are moved to the **back of the queue** + +## Commands and Syntax + +- **Redrive policy** key parameter: `maxReceiveCount` — integer specifying receive attempts before DLQ transfer +- **Redrive allow policy** options: `allowAll` (default), `byQueue` (up to 10 source queue ARNs), `denyAll` +- CloudWatch alarms can be configured to alert on messages arriving in a DLQ + +## Relationships + +- **CloudWatch**: Alarms can monitor DLQs; `ApproximateAgeOfOldestMessage` metric behavior differs between standard and FIFO queues +- **FIFO queues**: DLQs can break message ordering — avoid if strict order matters +- **Standard queues**: Messages moved to back of queue after 3+ receives (separate from DLQ behavior) +- **Message retention**: DLQ retention period interacts with the original queue's retention period + +## Exam-Relevant Points + +- **Retention period difference between Standard and FIFO DLQs**: Standard queues retain the original enqueue timestamp (message expiry based on original send time); FIFO queues reset the enqueue timestamp when moved to DLQ +- **Best practice**: DLQ retention period should be **longer** than the source queue's retention period (to avoid premature deletion) +- **Default redrive allow policy**: All source queues are allowed to use the DLQ +- **Same account and Region**: Best practice for source queue and DLQ co-location +- **FIFO ordering caveat**: Using a DLQ with FIFO queues can break strict message ordering +- **maxReceiveCount** controls when messages move to DLQ — set high for resilience, low values risk premature DLQ transfer +- **byQueue** redrive allow policy supports a maximum of **10 source queue ARNs** + diff --git a/entries/2026/03/08/sqs-feature-parity-cross-reference.md b/entries/2026/03/08/sqs-feature-parity-cross-reference.md new file mode 100644 index 0000000000000000000000000000000000000000..13df4a805aa694cf17062f2480b0e809750ece8a --- /dev/null +++ b/entries/2026/03/08/sqs-feature-parity-cross-reference.md @@ -0,0 +1,57 @@ +# SQS Feature Parity Cross-Reference + +**Date:** 2026-03-08 +**Time:** 18:37 + +## Summary + +Cross-reference of AWS SQS features against self-hosted message queue alternatives (RabbitMQ, Apache Kafka, Redis Streams, NATS). Maps AWS expert beliefs to replacement requirements. + +## Well Covered by Self-Hosted Alternatives + +| SQS Feature | AWS Expert Beliefs | Self-Hosted Equivalent | +|---|---|---| +| Standard queue (at-least-once) | `sqs-standard-at-least-once-delivery`, `sqs-standard-best-effort-ordering`, `sqs-standard-nearly-unlimited-throughput` | RabbitMQ, Kafka, Redis Streams, NATS JetStream all support at-least-once delivery. Kafka and NATS approach SQS throughput. | +| FIFO queue (exactly-once) | `sqs-fifo-ordering-per-message-group-id`, `sqs-fifo-dedup-id-idempotent-retries` | Kafka provides strict ordering per partition (≈ message group). RabbitMQ has single-active-consumer + dedup plugins. | +| Dead letter queues | `sqs-dlq-maxreceivecount-controls-transfer`, `sqs-dlq-supports-redrive-to-source` | RabbitMQ has native DLX (dead letter exchange). Kafka requires custom DLQ logic. | +| Visibility timeout | `sqs-visibility-timeout-hides-during-processing` | RabbitMQ has consumer acknowledgment timeouts. Kafka consumer group offsets provide similar semantics. | +| Message retention | `sqs-default-retention-4-days-max-14-days` | Kafka retains messages for configurable periods (default 7 days, no upper limit). RabbitMQ has TTL per message/queue. | +| Encryption | `sqs-sse-default-sqs-managed-or-kms` | RabbitMQ and Kafka support TLS in transit. At-rest encryption depends on disk encryption (LUKS). | +| Fan-out pattern | `sqs-sns-fanout-pattern` | RabbitMQ exchanges natively support fan-out. Kafka consumer groups provide independent consumption. | + +## Gaps in Self-Hosted Alternatives + +### Fully Managed / Zero Operations +- **SQS provides:** `sqs-scales-transparently-no-provisioning`, `sqs-standard-multi-az-redundancy` — no servers to manage, automatic scaling, multi-AZ redundancy +- **Self-hosted gap:** RabbitMQ and Kafka require cluster management, capacity planning, monitoring, upgrades. Significant operational overhead. +- **Migration implication:** Must staff or automate queue infrastructure management. + +### Message Group Parallel Processing +- **SQS provides:** `sqs-fifo-single-group-id-global-ordering-no-parallelism`, `sqs-fifo-ordering-per-message-group-id` — parallel processing across message groups with strict ordering within each group +- **Self-hosted gap:** Kafka partitions are the closest equivalent but partition count is fixed at creation (SQS message groups are dynamic). RabbitMQ has no native equivalent. + +### Redrive to Source +- **SQS provides:** `sqs-dlq-supports-redrive-to-source` — move DLQ messages back to the original queue +- **Self-hosted gap:** RabbitMQ DLX is one-way. Redrive requires custom tooling or manual republishing. + +### Large Message Support +- **SQS provides:** `sqs-extended-client-library-s3-over-1mib` — transparent S3 offload for messages over 256KB +- **Self-hosted gap:** Must implement large payload offload manually with any self-hosted broker. + +### Delay Queues +- **SQS provides:** `sqs-delay-queues-default-delay` — configurable delay before message becomes visible +- **Self-hosted gap:** RabbitMQ has delayed message exchange plugin. Kafka has no native delay. NATS has no native delay. + +## SQS Features With No Self-Managed Equivalent + +- **Per-message billing:** Pay only for API calls, no idle infrastructure cost +- **Automatic multi-AZ:** `sqs-standard-multi-az-redundancy` — transparent, no configuration +- **Cost allocation tags:** `sqs-cost-allocation-tags-supported` — per-queue cost tracking + +## Recommendations + +1. **RabbitMQ is the closest general-purpose replacement** — DLX, acknowledgments, fan-out, TTL, and broad protocol support +2. **Kafka is better for high-throughput ordered streams** — partitions map to message groups, configurable retention, consumer groups +3. **NATS JetStream for cloud-native / Kubernetes** — lightweight, built-in clustering, exactly-once semantics +4. **Operational overhead is the primary cost** — SQS is zero-ops; any self-hosted broker requires cluster management, monitoring, capacity planning +5. **Dynamic message groups are hard to replicate** — Kafka partitions must be pre-configured; SQS message groups are created on the fly diff --git a/entries/2026/03/08/sqs-fifo-queues.md b/entries/2026/03/08/sqs-fifo-queues.md new file mode 100644 index 0000000000000000000000000000000000000000..cb558931b9fb96bdeba3eef41dc331b98f780037 --- /dev/null +++ b/entries/2026/03/08/sqs-fifo-queues.md @@ -0,0 +1,43 @@ +--- +source_url: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-understanding-logic.html +source: sources/sqs-fifo-queues.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 18:13 + +## Overview +Amazon SQS FIFO (First-In-First-Out) queues guarantee strict message ordering and exactly-once processing using two key mechanisms: message deduplication IDs and message group IDs. Ordering is enforced per message group ID, enabling both strict sequencing within a group and parallel processing across groups. + +## Key Concepts +- **Message Group ID** — required on every message; defines an independent ordered sequence within the queue. Omitting it causes the send to fail. +- **Message Deduplication ID** — unique identifier used to prevent duplicate messages; safe for producer retries without introducing duplicates or breaking order. +- **Per-group ordering** — FIFO guarantees apply *within* a message group ID only. Messages across different group IDs may be delivered out of order relative to each other. +- **Single-group scenario** — using one message group ID for all messages enforces strict global ordering but eliminates parallelism. +- **Visibility timeout blocking** — while a message from a group is in-flight (received but not deleted), no additional messages from that same group are returned until the message is deleted or becomes visible again. +- **Batch retrieval** — SQS tries to return as many messages as possible from the same group ID in one call (up to 10 via `MaxNumberOfMessages`). May mix groups if fewer than 10 are available in a single group. +- **No selective consumption** — consumers cannot request messages from a specific message group ID. + +## Commands and Syntax +- **SendMessage** — must include `MessageGroupId` (required) and `MessageDeduplicationId` (or enable content-based deduplication). Retries with the same dedup ID are safe. +- **ReceiveMessage** — use `MaxNumberOfMessages` (max 10) to control batch size. Use a consistent `ReceiveRequestAttemptId` for safe consumer retries. +- **DeleteMessage** — must be called to unblock the next message in the same group; otherwise the group is blocked until visibility timeout expires. + +## Relationships +- **Standard SQS Queues** — FIFO queues trade throughput for ordering and deduplication guarantees that standard queues lack. +- **Visibility Timeout** — shared concept with standard queues, but in FIFO queues it additionally blocks the entire message group, not just the individual message. +- **Dead-Letter Queues** — FIFO queues can use DLQs, but the DLQ must also be FIFO. +- **SNS FIFO Topics** — can fan out to SQS FIFO queues while preserving ordering. +- **Lambda Event Source Mappings** — can consume from FIFO queues with concurrency scaling per message group ID. + +## Exam-Relevant Points +- A message group ID is **mandatory** for every message sent to a FIFO queue — the send fails without it. +- Ordering is guaranteed **per message group ID**, not across the entire queue. +- To achieve strict global ordering, use a **single message group ID** for all messages. +- To maximize parallel throughput, use **multiple message group IDs** for independent workflows. +- While a message from a group is in-flight, **no other messages from that group** are delivered — this is a blocking behavior unique to FIFO queues. +- Producer retries with the **same deduplication ID** are idempotent — no duplicates, no reordering. +- Consumers **cannot selectively receive** from a specific message group ID. +- Batches may contain messages from **multiple groups** but FIFO order is maintained within each group. + diff --git a/entries/2026/03/08/sqs-overview.md b/entries/2026/03/08/sqs-overview.md new file mode 100644 index 0000000000000000000000000000000000000000..afa0f6e71d5f166d3dcf11474f23a7347b2e232f --- /dev/null +++ b/entries/2026/03/08/sqs-overview.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/welcome.html +source: sources/sqs-overview.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:45 + +## Overview +Amazon Simple Queue Service (Amazon SQS) is a fully managed message queuing service that enables decoupling and scaling of distributed software systems. It provides secure, durable, highly available queues with support for standard (at-least-once delivery) and FIFO (exactly-once processing) queue types, accessible via a generic web services API through any AWS SDK-supported language. + +## Key Concepts +- **Distributed messaging system** has three parts: system components, the queue (distributed across SQS servers), and messages in the queue +- **Producers** send messages to the queue; **consumers** receive and process messages from the queue +- Messages are **redundantly stored** across multiple SQS servers +- **Visibility timeout** — while a message is being processed, it is hidden from other consumers; if not deleted before timeout expires, it becomes visible again +- **Message retention period** — default is 4 days; configurable from 60 seconds to 1,209,600 seconds (14 days) +- Consumers must **explicitly delete** messages after processing to prevent redelivery +- **Standard queues** — at-least-once delivery, best-effort ordering +- **FIFO queues** — exactly-once processing, high-throughput mode available +- **Security** — supports SQS-managed SSE (default) or custom SSE keys via AWS KMS; IAM controls access +- Messages larger than 1 MiB can be stored in **S3 or DynamoDB**, with SQS holding a pointer +- Large messages can alternatively be **split into smaller messages** +- **Delay queues** allow setting a default delay on message delivery +- **Dead-letter queues** available for handling failed messages +- **Cost allocation tags** supported for billing tracking + +## Commands and Syntax +- `SetQueueAttributes` — API action to configure queue attributes such as message retention period + +## Relationships +- **Amazon SNS** — pub/sub topic-based messaging; combine with SQS for **fanout pattern** (SNS pushes to multiple SQS queues) +- **Amazon MQ** — managed message broker for legacy migrations (supports AMQP, MQTT, OpenWire, STOMP, JMS); use when migrating from ActiveMQ or RabbitMQ +- **Amazon S3 / DynamoDB** — extended message storage for payloads >1 MiB +- **AWS KMS** — manages custom encryption keys for SQS SSE +- **AWS IAM** — controls send/receive permissions on queues + +| Capability | SNS | SQS | Amazon MQ | +|---|---|---|---| +| Synchronous | No | No | Yes | +| Asynchronous | Yes | Yes | Yes | +| Queues | No | Yes | Yes | +| Pub/Sub | Yes | No | Yes | +| Message Brokers | No | No | Yes | + +## Exam-Relevant Points +- SQS standard queues guarantee **at-least-once** delivery; FIFO queues guarantee **exactly-once** processing +- Default message retention is **4 days**; max is **14 days** (1,209,600 seconds); min is **60 seconds** +- Messages are **not automatically deleted** after consumption — consumers must delete them +- The **visibility timeout** prevents other consumers from receiving a message while it is being processed +- For messages **>1 MiB**, use the Amazon SQS Extended Client Library with S3 (SQS holds a pointer) +- Use **SQS + SNS fanout** pattern to deliver messages to multiple subscribers +- **SQS and SNS** are recommended for new cloud-native applications; **Amazon MQ** is for migrating legacy broker-based applications +- SQS supports **server-side encryption** via SQS-managed keys (default) or AWS KMS-managed keys +- SQS scales **transparently** — no provisioning or capacity planning required + diff --git a/entries/2026/03/08/sqs-standard-queues.md b/entries/2026/03/08/sqs-standard-queues.md new file mode 100644 index 0000000000000000000000000000000000000000..819f34bb7481e0c3a69dd1657be9d1412fadabf9 --- /dev/null +++ b/entries/2026/03/08/sqs-standard-queues.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/standard-queues.html +source: sources/sqs-standard-queues.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:45 + +## Overview +Amazon SQS standard queues are the default queue type, offering nearly unlimited throughput with at-least-once delivery semantics. Messages are stored redundantly across multiple availability zones for durability, though they may occasionally be delivered more than once or out of order. + +## Key Concepts +- **Default queue type** — Standard is the default when creating an SQS queue +- **Nearly unlimited throughput** — Supports virtually unlimited API calls per second for `SendMessage`, `ReceiveMessage`, and `DeleteMessage` +- **At-least-once delivery** — Messages are guaranteed to be delivered at least once, but duplicates are possible +- **Best-effort ordering** — Messages may arrive out of order; only best-effort FIFO is attempted +- **Multi-AZ redundancy** — Messages are redundantly stored across multiple Availability Zones before acknowledgment, so no single AZ, computer, or network failure causes message loss + +## Commands and Syntax +Key API actions for standard queues: +- `SendMessage` — Enqueue a message (stored redundantly before ACK is returned) +- `ReceiveMessage` — Dequeue/poll for messages +- `DeleteMessage` — Remove a processed message from the queue + +Queues can be created via the SQS console or programmatically (e.g., Java SDK). + +## Relationships +- **vs. FIFO queues** — Standard queues trade strict ordering and exactly-once delivery for higher throughput +- **Availability Zones** — Relies on multi-AZ replication for durability +- **Worker pattern** — Commonly used to fan out work to multiple consumer nodes +- **Decoupling pattern** — Core integration with compute services (EC2, Lambda) to separate producers from consumers + +## Exam-Relevant Points +- Standard queues provide **at-least-once** delivery (not exactly-once — that's FIFO) +- Messages **may be delivered out of order** — applications must be idempotent or tolerate duplicates +- Throughput is **nearly unlimited** (contrast with FIFO queues which have lower throughput limits) +- Messages are stored across **multiple AZs** before send acknowledgment — high durability by default +- Use standard queues when the application **can tolerate duplicates and out-of-order delivery** +- Typical use cases: decoupling workloads, task distribution to workers, batch processing + diff --git a/entries/2026/03/08/vpc-dns.md b/entries/2026/03/08/vpc-dns.md new file mode 100644 index 0000000000000000000000000000000000000000..13b983400ef417cccc5b67e2a8aac066af1b6a99 --- /dev/null +++ b/entries/2026/03/08/vpc-dns.md @@ -0,0 +1,39 @@ +--- +source_url: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html +source: sources/vpc-dns.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:23 + + + +## Overview +This page introduces DNS attributes for Amazon VPCs, explaining how DNS resolution works within VPCs and how Amazon provides DNS services through the Route 53 Resolver. It covers the relationship between public/private IP addresses and DNS hostnames. + +## Key Concepts +- **DNS** resolves human-readable hostnames to IP addresses +- **DNS hostname** uniquely identifies a computer, composed of a host name + domain name +- **Amazon Route 53 Resolver** is the default DNS server provided for every VPC +- **Public IPv4 addresses** enable internet communication; **private IPv4 addresses** enable internal network communication +- You can replace the default Amazon DNS with a custom DNS server by creating custom **DHCP option sets** + +## Commands and Syntax +No specific CLI commands on this page. Key configuration actions referenced: +- View DNS hostnames for EC2 instances +- View and update DNS attributes for a VPC +- Create custom DHCP option sets to use your own DNS server + +## Relationships +- **Route 53 Resolver** — the underlying DNS service for VPCs +- **DHCP option sets** — mechanism to override default DNS settings +- **VPC IP addressing** — DNS maps to both public and private IPv4 addresses +- **EC2 instances** — receive DNS hostnames based on VPC DNS settings + +## Exam-Relevant Points +- Every VPC gets an Amazon-provided DNS server (Route 53 Resolver) by default +- Custom DNS servers require creating new DHCP option sets for the VPC +- DNS hostnames are tied to both public and private IP addresses of instances +- Understanding the difference between `enableDnsSupport` and `enableDnsHostnames` VPC attributes (referenced in linked pages) is critical for exam scenarios involving DNS resolution within VPCs + diff --git a/entries/2026/03/08/vpc-elastic-network-interfaces.md b/entries/2026/03/08/vpc-elastic-network-interfaces.md new file mode 100644 index 0000000000000000000000000000000000000000..ddb2ae598a126b82a59f256d7a2e4b2618d3193e --- /dev/null +++ b/entries/2026/03/08/vpc-elastic-network-interfaces.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html +source: sources/vpc-elastic-network-interfaces.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:24 + +## Overview +Elastic Network Interfaces (ENIs) are logical networking components in a VPC that represent virtual network cards. They can be created, configured, attached to and detached from EC2 instances within the same Availability Zone, carrying their attributes (IP addresses, security groups, MAC address) with them. When moved between instances, network traffic is automatically redirected. + +## Key Concepts +- **Primary network interface**: Every EC2 instance has one; it **cannot be detached** from the instance +- **Secondary network interfaces**: Can be created, attached, detached, and moved between instances; max count varies by instance type +- **ENI attributes**: Primary private IPv4, primary IPv6, secondary private IPv4s, Elastic IP per private IPv4, public IPv4, secondary IPv6s, security groups, MAC address, source/destination check flag, description +- **Primary private IP**: Assigned from subnet's IPv4 range at launch; cannot be reassigned +- **Secondary private IPs**: Can be reassigned between instances +- **Public IPv4**: Released on stop/hibernate/terminate; new one assigned on restart (unless instance has a secondary ENI or a secondary private IP with an EIP) +- **Elastic IP**: Associated with a private IPv4 address on the ENI (one EIP per private IPv4) +- **Source/destination checking**: Enabled by default; **must be disabled** for NAT instances, routers, and firewalls +- **Termination behavior**: Configurable — secondary ENIs can be set to auto-delete or persist on instance termination +- **Requester-managed ENIs**: Created/managed by AWS services (e.g., ELB, RDS, Lambda); users cannot manage them directly +- **Managed ENIs**: Managed by service providers like EKS Auto Mode; identified by `Managed=true` +- **Prefix delegation**: Assigns a CIDR range as a single prefix to an ENI for faster service launches +- **Network cards**: Some large instance types support multiple network cards for >100 Gbps bandwidth; primary ENI must be on card index 0 + +## Commands and Syntax +No CLI commands were included in this page. Key operational notes: +- Create ENIs in the same AZ as the target instance +- ENIs inherit the subnet's public IPv4 addressing attribute at creation time (not updated if subnet setting changes later) +- Enable VPC Flow Logs on an ENI to capture traffic data (viewable in CloudWatch Logs) + +## Relationships +- **Subnets**: ENIs get IP addresses from their subnet's CIDR range; inherit public IPv4 auto-assign setting from subnet +- **Security Groups**: Attached directly to ENIs (not instances), controlling inbound/outbound traffic +- **Elastic IP Addresses**: Associated with private IPv4 addresses on an ENI +- **VPC Flow Logs**: Can be enabled per-ENI for traffic monitoring, stored in CloudWatch Logs +- **EC2 Instances**: ENIs are the mechanism through which instances connect to the VPC network +- **NAT Gateway / NAT Instances**: Require source/destination check disabled on their ENI +- **EFA (Elastic Fabric Adapter)**: Counts as an ENI; one EFA per network card; primary ENI cannot be EFA-only +- **AWS Services (ELB, Lambda, RDS)**: Create requester-managed ENIs automatically + +## Exam-Relevant Points +- **Primary ENI cannot be detached** from an instance +- **Source/destination check must be disabled** for NAT instances, routing appliances, and firewalls +- ENIs can only be attached to instances **in the same Availability Zone** +- Moving an ENI between instances **redirects traffic** to the new instance (useful for failover patterns) +- Public IPv4 is **released** on stop/hibernate/terminate and a **new one** is assigned on restart — use an Elastic IP for a persistent public address +- ENI's public IPv4 setting is determined at creation time from the subnet attribute and **does not change** if the subnet setting is later modified +- Secondary private IPv4 addresses **can be reassigned**; primary private IPv4 **cannot** +- Max number of ENIs and IPs per ENI **varies by instance type** +- Network cards: p5.48xlarge supports **32 network cards** (highest); primary ENI must be on **card index 0** +- Requester-managed ENIs appear in your account but **cannot be managed by you** + diff --git a/entries/2026/03/08/vpc-endpoints.md b/entries/2026/03/08/vpc-endpoints.md new file mode 100644 index 0000000000000000000000000000000000000000..14c31b135b14b5df11e30924e456535e7be803ff --- /dev/null +++ b/entries/2026/03/08/vpc-endpoints.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints.html +source: sources/vpc-endpoints.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:24 + + + +## Overview + +AWS PrivateLink enables clients in a VPC to connect to services and resources in other VPCs using private IP addresses, as if those services were hosted directly in the consumer's VPC. It keeps traffic on the AWS network without traversing the public internet. The architecture involves **providers** (who host services/resources and create endpoint services or resource configurations) and **consumers** (who create VPC endpoints to connect). + +## Key Concepts + +- **Service Provider** — Owner of a service, hosts on EC2, other AWS resources, or on-premises servers +- **Resource Provider** — Owner of a resource (e.g., database, EC2 instance), can host in VPCs or on-premises +- **Endpoint Service** — Created by a provider to make a service available in a Region; requires a load balancer; not available to consumers by default (permissions must be explicitly granted) +- **Service Name** — Unique identifier for an endpoint service; consumers must specify it when creating a VPC endpoint +- **Resource Configuration** — Logical object representing a single resource or group of resources (IP address, domain-name target, or RDS database); shared cross-account via AWS RAM +- **Resource Gateway** — Point of ingress into a provider's VPC for sharing resources +- **VPC Endpoint** — Created by a consumer to connect to an endpoint service, resource, or service network +- **Endpoint Network Interface** — Requester-managed ENI in each specified subnet; serves as the traffic entry point; supports IPv4 and/or IPv6 (IPv6 addresses are unreachable from internet, `denyAllIgwTraffic` enabled) +- **Endpoint Policy** — IAM resource policy attached to a VPC endpoint controlling which principals can use it; default allows all actions by all principals + +## VPC Endpoint Types + +| Type | Purpose | +|------|---------| +| **Interface** | TCP/UDP traffic to endpoint services; resolved via DNS | +| **GatewayLoadBalancer** | Routes traffic via route tables to virtual appliance fleets; scales with demand | +| **Resource** | Direct access to shared resources in another VPC (no load balancer required) | +| **Service network** | Single endpoint to access multiple resources/services on a service network | +| **Gateway** | S3 and DynamoDB only; does **not** use AWS PrivateLink | + +## State Lifecycles + +- **Endpoint service states**: Pending → Available / Failed → Deleting → Deleted +- **VPC endpoint states**: PendingAcceptance → Pending → Available / Rejected / Expired / Failed → Deleting → Deleted +- API returns states in **camelCase** + +## Relationships + +- **VPC Subnets**: Endpoint network interfaces are created per specified subnet +- **Route 53**: Private hosted zones route domain traffic to VPC endpoints; supports split-horizon DNS (same domain resolves privately inside VPC, publicly outside) +- **AWS RAM**: Required for cross-account sharing of resource configurations and service networks +- **Load Balancers**: Endpoint services require a load balancer (NLB for interface endpoints, GWLB for Gateway Load Balancer endpoints); resource endpoints do **not** require one +- **Security Groups**: Can be applied to endpoint network interfaces +- **VPC Peering / Transit Gateway**: PrivateLink is an alternative connectivity model that avoids complex peering topologies + +## Exam-Relevant Points + +- Gateway endpoints (S3, DynamoDB) do **not** use AWS PrivateLink — all other endpoint types do +- Endpoint services are **not publicly available by default** — providers must explicitly grant permissions +- Interface endpoints use **DNS resolution** to direct traffic; Gateway Load Balancer endpoints use **route tables** +- Resource endpoints provide **direct access without a load balancer** +- Cross-account resource sharing requires **AWS RAM** +- Traffic over PrivateLink **stays on the AWS network** and never traverses the public internet +- Split-horizon DNS with Route 53 allows the same domain to resolve to private IPs inside the VPC and public IPs outside +- VPC endpoint policies are **IAM resource policies** (not identity policies) and default to **allow all** +- Endpoint network interface IPv6 addresses have `denyAllIgwTraffic` enabled — they are unreachable from the internet + diff --git a/entries/2026/03/08/vpc-flow-logs.md b/entries/2026/03/08/vpc-flow-logs.md new file mode 100644 index 0000000000000000000000000000000000000000..62e14591f1c2e9b8bceb510f8bfccc0bb150f977 --- /dev/null +++ b/entries/2026/03/08/vpc-flow-logs.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html +source: sources/vpc-flow-logs.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:24 + + + +## Overview + +VPC Flow Logs captures IP traffic metadata for network interfaces within a VPC. Flow log data can be published to CloudWatch Logs, Amazon S3, or Amazon Data Firehose. The feature operates outside the network data path, so enabling it has no impact on network throughput or latency. + +## Key Concepts + +- **Flow Logs** capture information about IP traffic going to and from network interfaces in a VPC +- **Subscriptions** are the configured delivery path and permissions that route flow log data to a destination +- Three supported destinations: **CloudWatch Logs**, **Amazon S3**, **Amazon Data Firehose** +- Flow logs are collected **outside the network traffic path** — no impact on throughput or latency +- Creating or deleting flow logs carries **no risk of impact to network performance** +- Use cases: diagnosing overly restrictive security group rules, monitoring traffic reaching instances, determining traffic direction +- Separate feature exists for **Transit Gateway Flow Logs** (introduced in version 6) + +## Commands and Syntax + +No CLI commands provided on this page. Flow logs are created/managed via the VPC console or AWS CLI (`aws ec2 create-flow-logs`). Key related operations: + +- Query flow logs using **Amazon Athena** (for S3-published logs) +- Publish to CloudWatch Logs, S3, or Data Firehose (each has its own configuration) + +## Relationships + +- **Security Groups / NACLs** — flow logs help diagnose overly restrictive rules +- **CloudWatch Logs** — one of three publish destinations; uses vended log pricing +- **Amazon S3** — publish destination; supports cost allocation tags +- **Amazon Data Firehose** — publish destination for streaming delivery +- **Amazon Athena** — used to query flow logs stored in S3 +- **Transit Gateway** — has its own separate flow logs feature +- **ENIs (Elastic Network Interfaces)** — flow logs attach at the network interface level + +## Exam-Relevant Points + +- Flow logs do **not** affect network performance (zero impact on throughput/latency) +- Three destinations: **CloudWatch Logs, S3, Data Firehose** +- Flow logs capture **metadata** about traffic, not packet contents +- Pricing falls under **vended logs** charges (data ingestion + archival) +- **Cost allocation tags** can be applied to destination resources to track flow log costs +- Flow logs can be created at **VPC, subnet, or network interface** level +- Transit Gateway Flow Logs are a **separate feature** from VPC Flow Logs + diff --git a/entries/2026/03/08/vpc-internet-gateway.md b/entries/2026/03/08/vpc-internet-gateway.md new file mode 100644 index 0000000000000000000000000000000000000000..faa4f0fd46ef3831a0d22a52bc7207aaf219e244 --- /dev/null +++ b/entries/2026/03/08/vpc-internet-gateway.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Internet_Gateway.html +source: sources/vpc-internet-gateway.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:25 + + + +## Overview +An internet gateway (IGW) is a horizontally scaled, redundant, and highly available VPC component that enables communication between resources in a VPC and the internet. It supports both IPv4 and IPv6 traffic, performs NAT for IPv4, and incurs no additional charge itself (only standard EC2 data transfer charges apply). + +## Key Concepts +- **Internet gateway** is horizontally scaled, redundant, and highly available — no single point of failure or bandwidth bottleneck +- A **public subnet** is one whose route table has a route to an internet gateway; a **private subnet** lacks this route +- Instances in a public subnet need a **public IPv4 address or Elastic IP** to communicate over the internet via the IGW +- The IGW performs **one-to-one NAT** for IPv4: translates between the instance's private IP and its public/Elastic IP +- IPv6 addresses are **globally unique and public by default** — no NAT is needed for IPv6 +- The instance itself is only aware of its **private IP address**; NAT is handled transparently by the IGW +- An IGW must be **attached to a VPC** and route tables must be configured to use it +- **No charge** for the internet gateway itself; data transfer charges apply to EC2 instances + +## Commands and Syntax +- **Route table entry for IPv4 internet access:** destination `0.0.0.0/0` → target: internet gateway +- **Route table entry for IPv6 internet access:** destination `::/0` → target: internet gateway +- Routes can be scoped to narrower CIDR ranges instead of the full default route + +## Relationships +- **Route tables**: The IGW is a target in VPC route tables; the presence of a route to an IGW defines whether a subnet is public or private +- **Elastic IP / Public IP**: Required for IPv4 internet communication through the IGW +- **NAT Gateway**: Used for private subnets needing outbound internet access (IGW handles public subnets) +- **Subnets**: Classification as public/private depends entirely on routing to the IGW +- **VPC**: An IGW must be attached to exactly one VPC +- **Security Groups / NACLs**: Control traffic flow to/from instances even when an IGW is present + +## Exam-Relevant Points +- **Default VPC** comes with an IGW and a route table entry for IPv4 (`0.0.0.0/0`) — but **not** for IPv6 (`::/0`) +- **Nondefault VPCs** have neither an IGW nor internet routes by default +- Default subnets auto-assign public IPv4 addresses; nondefault subnets do not +- A public subnet is defined by its **route table having a route to an IGW**, not by having public IPs +- An instance with a public IP in a **private subnet** (no IGW route) **cannot** reach the internet +- IGW performs **NAT for IPv4 only** — IPv6 does not require NAT +- There is **no cost** for the IGW itself +- IGW is **not a bandwidth bottleneck** — it is horizontally scaled + diff --git a/entries/2026/03/08/vpc-nacls.md b/entries/2026/03/08/vpc-nacls.md new file mode 100644 index 0000000000000000000000000000000000000000..430ae93f5141caf17e5cde69331f2a78dfdace6f --- /dev/null +++ b/entries/2026/03/08/vpc-nacls.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html +source: sources/vpc-nacls.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:25 + +## Overview +Network Access Control Lists (NACLs) provide stateless, subnet-level traffic filtering in AWS VPCs. They act as an additional layer of security alongside security groups, evaluating rules in numbered order to allow or deny specific inbound and outbound traffic as it enters and leaves a subnet. + +## Key Concepts +- **Subnet-level filtering**: NACLs operate at the subnet boundary, not within a subnet +- **Stateless**: Unlike security groups, NACLs do not track connection state — return traffic must be explicitly allowed by rules +- **Rule evaluation order**: Rules are evaluated lowest number first (1–32766); first match wins, remaining rules are skipped +- **Rule numbering best practice**: Use increments of 10 or 100 to allow inserting rules later +- **One-to-many association**: A NACL can be associated with multiple subnets, but each subnet has exactly one NACL at a time +- **Default NACL**: Every VPC has a default NACL; subnets not explicitly associated with a custom NACL use the default +- **No additional charge**: NACLs are free to use +- **Each rule** can either ALLOW or DENY traffic (unlike security groups which only allow) + +## Commands and Syntax +No CLI commands provided in this page. Management operations referenced: +- Create a network ACL for a VPC +- Associate/disassociate a NACL with subnets +- Delete a network ACL +- Add inbound and outbound rules (numbered 1–32766) + +## Relationships +- **Security Groups**: NACLs are stateless subnet-level filters; security groups are stateful instance-level filters. NACLs complement security groups as a second defense layer. +- **Subnets**: Every subnet must have exactly one NACL association +- **VPC Router**: Traffic is evaluated by NACLs when entering/leaving a subnet, after the router directs it +- **Route 53 Resolver DNS Firewall**: Required to filter DNS traffic, since NACLs cannot block DNS to the VPC+2 resolver +- **IMDS**: NACLs cannot block instance metadata access; use EC2 instance metadata options instead +- **VPC Peering / VPN / Internet Gateway**: NACLs evaluate traffic from all these ingress sources + +## Exam-Relevant Points +- **Stateless vs stateful**: NACLs are stateless (must allow return traffic explicitly); security groups are stateful (return traffic automatic). This is one of the most frequently tested distinctions. +- **Rule evaluation**: Lowest numbered rule evaluated first; first match applies. This differs from security groups which evaluate all rules collectively. +- **Default behavior**: Subnets auto-associate with the default NACL if no custom NACL is specified +- **Subnet association**: One subnet = one NACL; one NACL = many subnets +- **Cannot filter**: DNS to Route 53 Resolver, DHCP, IMDS, ECS task metadata, Windows license activation, Time Sync Service, default VPC router reserved IPs +- **Explicit deny capability**: NACLs can deny traffic (security groups cannot — they only allow) +- **Quotas exist** on the number of rules per NACL and number of NACLs per VPC + diff --git a/entries/2026/03/08/vpc-nat-gateway.md b/entries/2026/03/08/vpc-nat-gateway.md new file mode 100644 index 0000000000000000000000000000000000000000..7b647092108978daa99a65294ce388fe417ad203 --- /dev/null +++ b/entries/2026/03/08/vpc-nat-gateway.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html +source: sources/vpc-nat-gateway.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:25 + +## Overview +A NAT gateway is a managed Network Address Translation service that enables instances in private subnets to initiate outbound connections to services outside the VPC while preventing external services from initiating inbound connections to those instances. NAT gateways come in two types—public and private—and support both IPv4 and IPv6 (via DNS64/NAT64). + +## Key Concepts +- **NAT gateway** performs source address translation so private subnet instances can reach external networks without being directly reachable +- **Public NAT gateway** (default): enables internet access from private subnets; must be placed in a public subnet; requires an Elastic IP address; routes through an internet gateway +- **Private NAT gateway**: enables connectivity to other VPCs or on-premises networks (via transit gateway or virtual private gateway); cannot have an Elastic IP; traffic routed to an internet gateway is dropped +- **Address translation flow**: both types map instance private IPs → NAT gateway private IP; for public NAT gateways, the internet gateway further maps the NAT gateway private IP → its Elastic IP +- **Connections are one-directional**: must always be initiated from within the VPC containing the NAT gateway +- **IPv6 alternative**: for outbound-only IPv6 internet access, use an egress-only internet gateway instead +- A public NAT gateway only uses its Elastic IP as source when traffic goes through the internet gateway in the same VPC; traffic to transit gateway or virtual private gateway uses the NAT gateway's private IP + +## Commands and Syntax +No CLI commands are included on this overview page. Key operational procedures are covered in the linked "Work with NAT gateways" sub-page. Configuration involves: +1. Create the NAT gateway in the desired subnet (public subnet for public type) +2. For public: allocate and associate an Elastic IP at creation time +3. Update route tables in private subnets to point `0.0.0.0/0` (or specific CIDRs) at the NAT gateway +4. Ensure the public subnet's route table has a route to the internet gateway + +## Relationships +- **Internet gateway**: public NAT gateways route through it for internet access; private NAT gateways cannot use it +- **Transit gateway / Virtual private gateway**: both NAT gateway types can route to these for VPC-to-VPC or VPC-to-on-premises connectivity +- **Elastic IP**: required for public NAT gateways, not allowed on private NAT gateways +- **Private subnets / Route tables**: NAT gateways serve instances in private subnets; route table entries direct traffic to the NAT gateway +- **Egress-only internet gateway**: IPv6 alternative to NAT gateway +- **DNS64/NAT64**: enables IPv6-only instances to communicate with IPv4 services through the NAT gateway +- **Security groups**: NAT gateways do not have security groups (unlike NAT instances) + +## Exam-Relevant Points +- Public NAT gateway **must** be in a public subnet and **must** have an Elastic IP +- Private NAT gateway **cannot** have an Elastic IP; traffic from it to an internet gateway is **dropped** +- NAT gateways only allow connections **initiated from inside** the VPC — no unsolicited inbound +- Public NAT gateway uses EIP as source **only** when routing through the internet gateway in the same VPC; when routing to TGW/VGW, source is the NAT gateway's **private** IP +- For IPv6 outbound-only internet access, use an **egress-only internet gateway**, not a NAT gateway (unless using DNS64/NAT64) +- Both public and private NAT gateways can route to transit gateways and virtual private gateways +- NAT gateways are **managed services** — AWS handles availability and scaling (contrast with self-managed NAT instances) + diff --git a/entries/2026/03/08/vpc-overview.md b/entries/2026/03/08/vpc-overview.md new file mode 100644 index 0000000000000000000000000000000000000000..967e6ae0dbbcaa033c14decb4b463628090547af --- /dev/null +++ b/entries/2026/03/08/vpc-overview.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html +source: sources/vpc-overview.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:26 + + + +## Overview + +Amazon VPC (Virtual Private Cloud) allows you to launch AWS resources in a logically isolated virtual network that you define, closely resembling a traditional on-premises data center network but with AWS's scalable infrastructure. It is a foundational networking service that underpins nearly all AWS resource deployments. + +## Key Concepts + +- **VPC** — A virtual network you define within an AWS Region; resembles a traditional data center network +- **Subnets** — Subdivisions of a VPC's IP range; each subnet resides in a **single Availability Zone** +- **IP Addressing** — Supports both IPv4 and IPv6; you can bring your own public IPs (BYOIP) +- **Route Tables** — Control where network traffic from subnets or gateways is directed +- **Internet Gateway** — Connects a VPC to the public internet +- **VPC Endpoints** — Connect to AWS services privately without internet gateway or NAT +- **Peering Connections** — Route traffic between resources in two VPCs +- **Transit Gateways** — Central hub for routing between multiple VPCs, VPN, and Direct Connect +- **Traffic Mirroring** — Copy network interface traffic to security/monitoring appliances for deep packet inspection +- **VPC Flow Logs** — Capture IP traffic metadata going to/from network interfaces +- **VPN Connections** — Connect VPCs to on-premises networks via AWS Site-to-Site VPN +- **Default VPC** — Every AWS account includes a default VPC in each Region, ready for immediate use +- **Private IPv4 addresses (RFC 1918) are not charged** +- **Public IPv4 addresses are now charged** (post free-tier: 750 hours/month with EC2) + +## Public IPv4 Address Types + +- **Elastic IP (EIP)** — Static public IPv4 you explicitly allocate and associate with resources +- **EC2 public IPv4** — Auto-assigned by Amazon when launching into a default or auto-assign subnet +- **BYOIPv4** — Your own public IPv4 range brought to AWS +- **Service-managed IPv4** — Auto-provisioned by AWS services (RDS, ECS, WorkSpaces, etc.) + +## Commands and Syntax + +VPCs can be managed via: +- **AWS Management Console** (web UI) +- **AWS CLI** (`aws ec2 create-vpc`, etc.) +- **AWS SDKs** (language-specific APIs) +- **Query API** (low-level HTTPS requests against the EC2 API) + +## Relationships + +- **Subnets** → must exist within a VPC and map to a single AZ +- **Internet Gateway** → attached to a VPC to enable internet access +- **NAT Gateway** → enables outbound internet for private subnets (has cost) +- **VPC Endpoints / PrivateLink** → private connectivity to AWS services without traversing the internet +- **Transit Gateway** → connects multiple VPCs, VPNs, and Direct Connect +- **VPC Peering** → direct connection between two VPCs +- **Flow Logs** → can publish to CloudWatch Logs or S3 +- **EC2, RDS, ELB, ECS, EKS** and most AWS compute/database services launch into VPCs + +## Exam-Relevant Points + +- A **subnet cannot span multiple Availability Zones** — it resides in exactly one AZ +- Every AWS account gets a **default VPC per Region** with default subnets already configured +- **VPC itself is free**; charges apply for NAT gateways, traffic mirroring, IPAM, public IPv4 addresses, and Reachability/Network Access Analyzer +- **Public IPv4 addresses are now charged** across all types (EIP, auto-assigned, service-managed, BYOIP) — this is a relatively recent pricing change +- **VPC Endpoints** allow private access to AWS services without internet gateway or NAT — key for security-focused architectures +- **Transit Gateway** acts as a central hub replacing complex peering meshes +- Managed services (RDS, ELB, etc.) use the **default VPC** if no VPC is specified, and their public IPv4 addresses incur charges billed under VPC + diff --git a/entries/2026/03/08/vpc-peering.md b/entries/2026/03/08/vpc-peering.md new file mode 100644 index 0000000000000000000000000000000000000000..8465f3747581b6de4327711e14fe49a3668a3715 --- /dev/null +++ b/entries/2026/03/08/vpc-peering.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html +source: sources/vpc-peering.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:26 + + + +## Overview +VPC peering is a networking connection between two VPCs that enables private IP routing between them without requiring gateways, VPN connections, or separate physical hardware. It works across accounts and across regions, with inter-region traffic encrypted and kept on the AWS backbone. + +## Key Concepts +- A VPC peering connection routes traffic between two VPCs using private IPv4 or IPv6 addresses +- Instances in peered VPCs communicate as if on the same network +- Can peer VPCs within the same account, across accounts, or across regions (inter-region peering) +- Uses existing VPC infrastructure — not a gateway, VPN, or physical hardware +- No single point of failure and no bandwidth bottleneck +- Inter-region traffic is encrypted before leaving AWS facilities +- Traffic never traverses the public internet — stays on the AWS global backbone +- Use cases: cross-account file sharing, shared resource access, geographic data replication + +## Commands and Syntax +No CLI commands or configuration syntax provided in this source document. + +## Relationships +- **VPC**: Peering connects two VPCs; fundamental VPC networking feature +- **EC2 / Lambda**: Resources in peered VPCs can communicate privately +- **VPN / Gateways**: VPC peering is explicitly *not* a gateway or VPN — it's a distinct connection type +- **Transit Gateway**: Alternative for hub-and-spoke connectivity (peering is point-to-point) +- **Route Tables**: Peering requires route table entries to direct traffic to the peering connection +- **Security Groups / NACLs**: Still apply to traffic flowing over peering connections +- **PrivateLink**: Alternative for service-level access rather than full network peering + +## Exam-Relevant Points +- VPC peering is **non-transitive** (not stated here but fundamental — if A peers with B and B peers with C, A cannot reach C through B) +- **No charge** to create a peering connection +- Data transfer **within the same AZ** over peering is **free** (even cross-account) +- Data transfer **across AZs or regions** incurs charges +- Inter-region peering traffic is **encrypted** and stays on the **AWS backbone** (never public internet) +- Peering is **not a gateway, VPN, or physical hardware** +- No single point of failure, no bandwidth bottleneck + diff --git a/entries/2026/03/08/vpc-privatelink.md b/entries/2026/03/08/vpc-privatelink.md new file mode 100644 index 0000000000000000000000000000000000000000..dc75883b542d0c022499324dc545cdada833b220 --- /dev/null +++ b/entries/2026/03/08/vpc-privatelink.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/vpc/latest/privatelink/what-is-privatelink.html +source: sources/vpc-privatelink.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:26 + + + +## Overview +AWS PrivateLink is a highly available, scalable technology that enables private connectivity from a VPC to AWS services, third-party services, and custom resources without traversing the public internet. It eliminates the need for internet gateways, NAT devices, public IP addresses, Direct Connect, or Site-to-Site VPN connections, giving fine-grained control over which endpoints are reachable from private subnets. + +## Key Concepts +- **Private connectivity**: Traffic stays on the AWS network and never crosses the public internet +- **No public infrastructure required**: No internet gateway, NAT device, public IP, Direct Connect, or Site-to-Site VPN needed +- **VPC endpoints**: The consumer-side construct that connects your VPC to a PrivateLink-enabled service +- **VPC endpoint services**: You can create your own endpoint service and share it with other AWS accounts +- **Endpoint types**: + - **Interface VPC endpoints** — connect to AWS services, other AWS accounts' services, or AWS Marketplace partner services + - **Resource VPC endpoints** — connect to specific resources (e.g., a database) + - **Service network VPC endpoints** — connect to a VPC Lattice service network +- **Highly available and scalable** — managed by AWS + +## Commands and Syntax +- **Console**: Amazon VPC console → **Endpoints** or **Endpoint services** +- **CLI**: Commands under `aws ec2` namespace (e.g., `create-vpc-endpoint`, `describe-vpc-endpoints`) +- **CloudFormation resources**: + - `AWS::EC2::VPCEndpoint` + - `AWS::EC2::VPCEndpointConnectionNotification` + - `AWS::EC2::VPCEndpointService` + - `AWS::EC2::VPCEndpointServicePermissions` + - `AWS::ElasticLoadBalancingV2::LoadBalancer` (required for endpoint services) +- Also accessible via AWS SDKs and the EC2 Query API + +## Relationships +- **VPC**: PrivateLink endpoints are deployed within a VPC and associated with private subnets +- **Internet Gateway / NAT Gateway**: PrivateLink is an *alternative* to these for reaching AWS services — they are not required +- **VPC Endpoint types**: Interface endpoints (powered by PrivateLink) vs. gateway endpoints (S3/DynamoDB only, different mechanism) +- **Network Load Balancer / Gateway Load Balancer**: Required on the provider side to back a VPC endpoint service +- **VPC Lattice**: Service network endpoints integrate PrivateLink with VPC Lattice service networks +- **Direct Connect / Site-to-Site VPN**: PrivateLink can replace these for service access use cases +- **Security Groups**: Interface endpoints support security group attachment for access control + +## Exam-Relevant Points +- PrivateLink keeps traffic **private within the AWS network** — key differentiator from public endpoints +- Does **not** require an internet gateway, NAT device, public IP, Direct Connect, or VPN +- Three endpoint types to know: **interface**, **resource**, and **service network** +- You can expose your own services to other AWS accounts via **VPC endpoint services** +- Interface endpoints are powered by **Elastic Network Interfaces (ENIs)** in your subnets +- CloudFormation support includes endpoint, endpoint service, permissions, and connection notifications +- PrivateLink has its own **pricing** (per-hour + per-GB data processed) — it is not free +- Common use case: accessing AWS services (e.g., S3, SQS, KMS) from private subnets without NAT + diff --git a/entries/2026/03/08/vpc-route-tables.md b/entries/2026/03/08/vpc-route-tables.md new file mode 100644 index 0000000000000000000000000000000000000000..b6f21b45fa84c7ebf12ad994d98faab780c6670f --- /dev/null +++ b/entries/2026/03/08/vpc-route-tables.md @@ -0,0 +1,51 @@ +--- +source_url: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html +source: sources/vpc-route-tables.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:26 + + + +## Overview +Route tables act as traffic controllers for VPCs, containing rules (routes) that determine where network traffic from subnets or gateways is directed. Each VPC automatically gets a main route table, and additional route tables can be created for granular control over network paths including public, private, VPN-only, and isolated subnets. + +## Key Concepts +- **Route table**: A set of rules that control traffic direction within a VPC +- **Route**: A single rule specifying a destination (CIDR block or prefix list) and a target +- **Main route table**: Automatically created with every VPC; acts as the default +- **Targets**: Where traffic is sent — internet gateway, NAT gateway, VPC peering connection, VPN connection, etc. +- **Destination**: The CIDR block or prefix list that a route matches against +- Traffic is routed based on **destination IP address** matching +- Route tables can be associated with **subnets** or **gateways** +- You can **replace the main route table** with a custom one +- **Local routes** can have their targets replaced or restored + +## Commands and Syntax +This page is a table-of-contents hub; specific CLI commands would be in sub-pages. Key operations include: +- Create a route table and add routes +- Associate route tables with subnets or gateways +- Replace the main route table +- Replace or restore local route targets + +## Relationships +- **Subnets**: Each subnet is associated with exactly one route table +- **Internet Gateway**: Route target for public internet access (public subnets) +- **NAT Gateway**: Route target for outbound-only internet access (private subnets) +- **VPC Peering**: Route target for cross-VPC communication +- **VPN Connection**: Route target for on-premises connectivity +- **VPC**: Every VPC has at least one (main) route table +- **Security Groups / NACLs**: Complement route tables — routing determines path, SGs/NACLs determine permission +- **Transit Gateway**: Advanced routing target for hub-and-spoke architectures + +## Exam-Relevant Points +- Every VPC automatically gets a **main route table** — subnets not explicitly associated use it +- Each route has a **destination** (where traffic wants to go) and a **target** (where to send it) +- Route tables enable **subnet-level isolation** — public vs private vs VPN-only +- You can **replace** the main route table but cannot delete it while it's the main +- **Gateway route tables** can be associated with internet gateways and virtual private gateways +- Route **priority** determines which route is selected when multiple routes match +- The **local route** (for intra-VPC traffic) is automatically included and cannot be deleted, but its target can be replaced + diff --git a/entries/2026/03/08/vpc-security-groups.md b/entries/2026/03/08/vpc-security-groups.md new file mode 100644 index 0000000000000000000000000000000000000000..386e4e1f8d9cfc3b24e7f931f832985f0a44fe97 --- /dev/null +++ b/entries/2026/03/08/vpc-security-groups.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-security-groups.html +source: sources/vpc-security-groups.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:27 + + + +## Overview +Security groups act as virtual firewalls that control inbound and outbound traffic for AWS resources (primarily EC2 instances) within a VPC. They are stateful, free to use, and operate at the resource level rather than the subnet level. + +## Key Concepts +- A security group controls traffic **to and from** the resources it is associated with +- Every VPC comes with a **default security group**; additional security groups can be created per VPC +- Rules specify **source/destination, port range, and protocol** (inbound rules use source; outbound rules use destination) +- **Stateful**: response traffic to an allowed request is automatically allowed regardless of rules in the other direction +- Security groups can be assigned to resources in the **same VPC** or in **other VPCs in the same Region** (via Security Group VPC Association) +- **Multiple security groups** can be assigned to a single resource +- Security group names must be **unique within a VPC**, are **not case-sensitive**, up to 255 characters, and **cannot start with `sg-`** +- Trailing spaces in names are trimmed +- **No additional charge** for using security groups +- Traffic to/from the following is **not filtered** by security groups: Amazon DNS, DHCP, EC2 instance metadata, ECS task metadata endpoints, Windows license activation, Time Sync Service, default VPC router reserved IPs +- Quotas exist on: security groups per VPC, rules per security group, security groups per network interface + +## Commands and Syntax +No CLI commands on this page, but key procedures referenced: +- **Create a security group** — must provide name and description, must be within a VPC +- **Configure security group rules** — add inbound/outbound rules specifying source/dest, port range, protocol +- **Delete a security group** — cannot delete if currently associated with resources +- **Associate with multiple VPCs** — via Security Group VPC Association feature (same Region) +- **Share with AWS Organizations** — security group sharing feature + +## Relationships +- **VPC**: security groups are scoped to a VPC (one or more per VPC) +- **Subnets/EC2 instances**: security groups are attached at the resource/ENI level, not at the subnet level +- **Network ACLs (NACLs)**: complementary layer — NACLs operate at subnet level and are stateless; security groups operate at resource level and are stateful. Best practice is to use both together. +- **Internet Gateway**: security group rules determine whether traffic from the IGW can reach an instance +- **IAM**: IAM policies should restrict who can create/modify security groups + +## Exam-Relevant Points +- **Stateful** is the single most tested property — return traffic is automatically allowed; contrast with NACLs which are **stateless** +- Security groups have **allow rules only** (no deny rules); NACLs have both allow and deny +- Security groups operate at the **instance/ENI level**, NACLs at the **subnet level** +- Default security group exists automatically with every VPC +- Specifying `0.0.0.0/0` or `::/0` for SSH/RDP is a security anti-pattern frequently tested +- Security groups do **not** filter DNS, DHCP, metadata, or Time Sync traffic +- A security group **rule can reference another security group** as a source/destination (shown in the example where SG1 instances communicate with SG2 instances) +- There is **no cost** for security groups +- Security group names **cannot start with `sg-`** + diff --git a/entries/2026/03/08/vpc-subnets.md b/entries/2026/03/08/vpc-subnets.md new file mode 100644 index 0000000000000000000000000000000000000000..ae77153a6972e42be370f491c4a28cfc6922371f --- /dev/null +++ b/entries/2026/03/08/vpc-subnets.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/vpc/latest/userguide/configure-subnets.html +source: sources/vpc-subnets.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 17:27 + +## Overview + +VPC subnets are ranges of IP addresses within a VPC where AWS resources (such as EC2 instances) are launched. Subnets are scoped to a single Availability Zone and are classified by their routing configuration (public, private, VPN-only, or isolated). They support IPv4-only, IPv6-only, or dual-stack addressing and are secured through security groups and network ACLs. + +## Key Concepts + +- **A subnet must reside entirely within one Availability Zone** — it cannot span zones +- Launching resources across multiple AZs provides fault tolerance against single-AZ failure +- **Subnet IP addressing modes:** + - **IPv4 only** — IPv4 CIDR block, no IPv6 + - **Dual stack** — both IPv4 and IPv6 CIDR blocks (VPC must also be dual stack) + - **IPv6 only** — IPv6 CIDR block, no IPv4; resources get link-local IPv4 addresses from 169.254.0.0/16 for VPC-internal service communication +- **Subnet types are determined by routing, not by an explicit setting:** + - **Public subnet** — has a route to an internet gateway + - **Private subnet** — no direct route to an internet gateway; uses NAT device for internet access + - **VPN-only subnet** — route to Site-to-Site VPN via virtual private gateway, no IGW route + - **Isolated subnet** — no routes outside the VPC; resources only communicate within the VPC +- Every subnet must be associated with a route table; defaults to the VPC's main route table +- Every subnet must be associated with a network ACL; defaults to the VPC's default NACL (allows all traffic) +- **Auto-assign IP settings** control whether new network interfaces automatically get public IPv4 or IPv6 addresses; can be overridden per-instance at launch +- **Resource-based Name (RBN) settings** control EC2 hostname type and DNS record behavior + +## Commands and Syntax + +No CLI commands on this page. Key operational procedures referenced: + +- Create a subnet (specify VPC, AZ, CIDR block) +- Add/remove IPv6 CIDR block from a subnet +- Modify auto-assign IP settings +- Associate subnet with a custom route table or network ACL +- Create subnet CIDR reservations +- Delete a subnet + +## Relationships + +- **Route Tables** — determine subnet type (public/private/VPN-only/isolated) and control outbound traffic +- **Internet Gateway** — required route target for public subnets +- **NAT Gateway/Device** — enables internet access from private subnets +- **Security Groups** — instance-level inbound/outbound traffic filtering +- **Network ACLs** — subnet-level traffic filtering (additional layer beyond security groups) +- **VPC Flow Logs** — can be created at the VPC, subnet, or individual ENI level +- **Availability Zones** — each subnet is bound to exactly one AZ +- **Virtual Private Gateway / Site-to-Site VPN** — route target for VPN-only subnets + +## Exam-Relevant Points + +- **Subnets cannot span Availability Zones** — one subnet = one AZ +- **Subnet type is defined by its route table**, not by a subnet property — a "public subnet" simply has a route to an IGW +- **Default NACL allows all traffic**; custom NACLs deny all by default +- **IPv6-only subnets still get link-local IPv4 addresses** (169.254.0.0/16) for VPC-internal communication +- Every subnet is automatically associated with the **main route table** and the **default NACL** unless explicitly changed +- The auto-assign public IP subnet setting can be **overridden per-instance at launch** +- Private subnets require a **NAT device** (NAT gateway or NAT instance) for outbound internet access +- AWS recommends using **private subnets** with a bastion host or NAT device for security + diff --git a/entries/2026/03/08/vpc-transit-gateway.md b/entries/2026/03/08/vpc-transit-gateway.md new file mode 100644 index 0000000000000000000000000000000000000000..7948f0ed6f25808700534ad4fc0125b5e8fb55ff --- /dev/null +++ b/entries/2026/03/08/vpc-transit-gateway.md @@ -0,0 +1,11 @@ +--- +source_url: https://docs.aws.amazon.com/vpc/latest/tgw/what-is-transit-gateway.html +source: sources/vpc-transit-gateway.md +--- +# Vpc Transit Gateway + +**Date:** 2026-03-08 +**Time:** 17:28 + +The summary has been generated above. It covers the Transit Gateway's hub-and-spoke architecture, attachment types, MTU limits (8500 vs 1500 for VPN), route propagation mechanics (static vs BGP depending on attachment type), encryption control, and pricing model — all key areas for certification exams. + diff --git a/entries/2026/03/08/well-architected-cost-optimization.md b/entries/2026/03/08/well-architected-cost-optimization.md new file mode 100644 index 0000000000000000000000000000000000000000..ba0f017ee89c440a0c239e13788fc25225500079 --- /dev/null +++ b/entries/2026/03/08/well-architected-cost-optimization.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/wellarchitected/latest/cost-optimization-pillar/welcome.html +source: sources/well-architected-cost-optimization.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 18:13 + +The source file is brief. Here are the structured study notes: + +--- + +## Overview + +The AWS Well-Architected Cost Optimization Pillar defines how to build and operate cost-aware workloads that fully utilize resources, meet functional requirements, and achieve outcomes at the lowest possible price point. It covers organizational capability building, workload design, service selection, configuration/operations, and ongoing optimization techniques. + +## Key Concepts + +- **Cost-optimized workload** — one that fully utilizes all resources, achieves outcomes at the lowest price point, and meets functional requirements +- **Five focus areas (best practice categories):** + 1. **Practice Cloud Financial Management** — establish a dedicated FinOps function and culture + 2. **Expenditure and usage awareness** — understand where money is being spent and by whom + 3. **Cost-effective resources** — select the right resource types, sizes, and pricing models + 4. **Manage demand and supply resources** — match provisioned capacity to actual demand + 5. **Optimize over time** — continuously review and adopt new, more cost-effective services and features + +## Commands and Syntax + +No specific CLI commands or configuration syntax are covered in this summary-level document. Relevant AWS tools include: +- **AWS Cost Explorer** — visualize and analyze spending +- **AWS Budgets** — set custom spending alerts +- **AWS Cost and Usage Report (CUR)** — granular billing data +- **AWS Trusted Advisor** — cost optimization checks +- **AWS Compute Optimizer** — right-sizing recommendations + +## Relationships + +- One of the **six pillars** of the AWS Well-Architected Framework (alongside Operational Excellence, Security, Reliability, Performance Efficiency, and Sustainability) +- Closely tied to **Performance Efficiency** — right-sizing affects both cost and performance +- Closely tied to **Reliability** — over-provisioning increases cost but under-provisioning risks availability +- Relates to **AWS pricing models**: On-Demand, Reserved Instances, Savings Plans, Spot Instances +- Connects to **AWS Organizations** for consolidated billing and cross-account cost management + +## Exam-Relevant Points + +- Know all **five focus areas** by name — these map directly to exam questions +- Cost optimization does **not** mean minimizing spend at all costs — it means achieving the best price for the required outcome while meeting functional requirements +- **Cloud Financial Management** is an organizational practice, not just a technical one — it requires culture, processes, and dedicated ownership +- "Optimize over time" reflects AWS's principle that new services and features regularly create opportunities to reduce cost — workloads should be periodically reviewed +- Distinction: **expenditure awareness** (knowing what you spend) vs. **cost-effective resources** (choosing the right pricing/sizing) — both are separate focus areas + diff --git a/entries/2026/03/08/well-architected-overview.md b/entries/2026/03/08/well-architected-overview.md new file mode 100644 index 0000000000000000000000000000000000000000..f9b195842f77c7561f2eac605db9a000a67b1fb5 --- /dev/null +++ b/entries/2026/03/08/well-architected-overview.md @@ -0,0 +1,40 @@ +--- +source_url: https://docs.aws.amazon.com/wellarchitected/latest/framework/welcome.html +source: sources/well-architected-overview.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 16:45 + + + +## Overview +The AWS Well-Architected Framework is a set of architectural best practices for designing and operating workloads in the AWS Cloud. It provides a consistent approach to evaluate architectures against five quality attributes—security, reliability, efficiency, cost-effectiveness, and sustainability—and identify areas for improvement. + +## Key Concepts +- **Purpose**: Helps understand trade-offs of architectural decisions on AWS; not an audit mechanism but a constructive conversation about design choices. +- **Five Pillars** (qualities of well-architected systems): Secure, Reliable, Efficient, Cost-effective, Sustainable. +- **Foundational Questions**: The framework documents questions that assess whether an architecture aligns with cloud best practices. +- **Continuous Evolution**: The framework is refined over time as AWS evolves and learns from customer engagements. +- **Target Audience**: CTOs, architects, developers, and operations team members. + +## Commands and Syntax +No CLI commands or configuration syntax are described in this page. Key resources referenced: +- **AWS Well-Architected Tool (AWS WA Tool)** — a free AWS service for reviewing and measuring architectures against the framework. +- **AWS Well-Architected Labs** — hands-on code and documentation for implementing best practices. +- **AWS Well-Architected Partner Program** — APN Partners who assist with workload reviews. + +## Relationships +- **AWS Well-Architected Tool**: Service that operationalizes the framework for workload reviews. +- **AWS Well-Architected Labs**: Companion hands-on learning resource. +- **Six Pillars (separate whitepapers)**: Each pillar (Operational Excellence, Security, Reliability, Performance Efficiency, Cost Optimization, Sustainability) has its own detailed guidance. +- **AWS Solutions Architecture**: The framework distills lessons from thousands of real customer architecture reviews. + +## Exam-Relevant Points +- The framework covers **six pillars**: Operational Excellence, Security, Reliability, Performance Efficiency, Cost Optimization, and Sustainability (the overview text mentions five qualities but Sustainability was added as the sixth pillar). +- The AWS WA Tool is a **free service** for reviewing workloads against the framework. +- The framework is a **best-practice guide, not an audit mechanism** — it's described as a "constructive conversation." +- Well-architected reviews produce **remediation recommendations** to achieve desired qualities. +- The framework applies to **workloads** — the unit of evaluation is a workload, not an individual service. + diff --git a/entries/2026/03/08/well-architected-performance.md b/entries/2026/03/08/well-architected-performance.md new file mode 100644 index 0000000000000000000000000000000000000000..e6a93082f982513139295aaa11cf7389adcfef8a --- /dev/null +++ b/entries/2026/03/08/well-architected-performance.md @@ -0,0 +1,38 @@ +--- +source_url: https://docs.aws.amazon.com/wellarchitected/latest/performance-efficiency-pillar/welcome.html +source: sources/well-architected-performance.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 18:14 + +The source file matches what was provided. Here's the structured summary: + +## Overview +The Performance Efficiency pillar of the AWS Well-Architected Framework provides best practices for designing, delivering, and maintaining AWS environments that use computing resources efficiently. It is one of the six pillars of the Well-Architected Framework and organizes guidance across five focus areas: architecture selection, compute and hardware, data management, networking and content delivery, and process and culture. + +## Key Concepts +- **Performance Efficiency** is about using computing resources efficiently to meet system requirements, and maintaining that efficiency as demand changes and technologies evolve. +- The pillar defines **five focus areas**: + 1. **Architecture selection** — choosing the right resource types and sizes based on workload requirements + 2. **Compute and hardware** — selecting appropriate compute options (instances, containers, serverless) + 3. **Data management** — choosing optimal data storage and retrieval approaches for the workload + 4. **Networking and content delivery** — optimizing network design and content delivery for performance + 5. **Process and culture** — organizational practices that sustain performance efficiency over time + +## Commands and Syntax +No specific CLI commands or configuration syntax in this page (it is a pillar overview/introduction). + +## Relationships +- One of the **six pillars** of the AWS Well-Architected Framework (alongside Operational Excellence, Security, Reliability, Cost Optimization, and Sustainability) +- Overlaps with **Cost Optimization** — right-sizing resources affects both performance and cost +- Overlaps with **Reliability** — scaling and resource selection impact both availability and performance +- Related AWS services span compute (EC2, Lambda, ECS), storage (S3, EBS, DynamoDB), and networking (CloudFront, Route 53, VPC) + +## Exam-Relevant Points +- Know the **five focus areas** of the Performance Efficiency pillar by name +- Performance Efficiency is about **using resources efficiently to meet requirements** and **adapting as demand and technology change** +- The pillar covers the full lifecycle: **design, delivery, and maintenance** +- Understand that **process and culture** is explicitly called out as a focus area — performance efficiency is not purely technical + diff --git a/entries/2026/03/08/well-architected-reliability.md b/entries/2026/03/08/well-architected-reliability.md new file mode 100644 index 0000000000000000000000000000000000000000..86cbcb6ed7eacdde47f45b866e2a3b8e2bb15262 --- /dev/null +++ b/entries/2026/03/08/well-architected-reliability.md @@ -0,0 +1,38 @@ +# Overview + +**Date:** 2026-03-08 +**Time:** 18:14 + +Now I have the full source. Here's the structured summary: + +--- + +## Overview +The Reliability Pillar of the AWS Well-Architected Framework provides guidance for building systems that perform their intended function correctly and consistently. It addresses challenges common in traditional on-premises environments—single points of failure, lack of automation, and lack of elasticity—by establishing practices around foundations, workload architecture, change management, and failure management. + +## Key Concepts +- **Reliability** requires addressing four key areas: Foundations, Workload Architecture, Change Management, and Failure Management +- Traditional on-premises environments struggle with reliability due to **single points of failure**, **lack of automation**, and **lack of elasticity** +- Well-architected reliable systems have: strong foundations, resilient architecture, consistent change management, and proven failure recovery processes +- **Foundations** — ensuring service quotas and network topology can accommodate the workload +- **Workload Architecture** — structuring distributed systems to prevent and mitigate failures +- **Change Management** — handling changes in demand or requirements gracefully +- **Failure Management** — automatic failure detection and self-healing + +## Commands and Syntax +No specific CLI commands or configuration syntax in this overview document. + +## Relationships +- Part of the **AWS Well-Architected Framework** (alongside Operational Excellence, Security, Performance Efficiency, Cost Optimization, and Sustainability pillars) +- **Foundations** connects to VPC design, service quotas/limits, and network topology +- **Change Management** relates to Auto Scaling, CloudWatch monitoring, and CI/CD practices +- **Failure Management** connects to Multi-AZ deployments, disaster recovery strategies, and backup/restore procedures +- **Workload Architecture** ties into microservices patterns, loose coupling (SQS, EventBridge), and fault-tolerant design + +## Exam-Relevant Points +- Know the **four key areas** of reliability: Foundations, Workload Architecture, Change Management, Failure Management +- Reliability pillar is one of **six pillars** of the Well-Architected Framework +- The three on-premises challenges AWS addresses: single points of failure, lack of automation, lack of elasticity +- Foundations specifically call out **service quotas** and **network topology** as critical concerns +- Failure Management emphasizes **automatic detection** and **self-healing** (not manual intervention) + diff --git a/entries/2026/03/08/well-architected-security.md b/entries/2026/03/08/well-architected-security.md new file mode 100644 index 0000000000000000000000000000000000000000..bd85d084e861148cab6bddab6306ebc33d2bcb54 --- /dev/null +++ b/entries/2026/03/08/well-architected-security.md @@ -0,0 +1,40 @@ +--- +source_url: https://docs.aws.amazon.com/wellarchitected/latest/security-pillar/welcome.html +source: sources/well-architected-security.md +--- +# Overview + +**Date:** 2026-03-08 +**Time:** 18:14 + +## Overview +The Security Pillar is one of the six pillars of the AWS Well-Architected Framework. It provides best practices for designing, delivering, and maintaining secure AWS workloads, covering identity, detection, infrastructure protection, data protection, incident response, and application security. + +## Key Concepts +- **Defense in depth**: Apply security controls at all layers — network edge, VPC, load balancing, compute, OS, application, and code +- **Least privilege**: Grant only the minimum permissions required for each interaction with AWS resources +- **Separation of duties**: Use appropriate authorization boundaries so no single role has unchecked access +- **Eliminate long-term static credentials**: Centralize identity management and use temporary/dynamic credentials instead +- **Classify data by sensitivity level**: Apply encryption, tokenization, and access control based on classification +- **Keep people away from data**: Reduce direct/manual access to minimize mishandling and human error +- **Automate security**: Define and manage security controls as code in version-controlled templates +- **Traceability**: Monitor, alert, and audit in real time; integrate logs/metrics with automated investigation and response + +## Commands and Syntax +No specific CLI commands or configuration syntax in this document — it is a design-principles overview. + +## Relationships +- **IAM**: Identity and access management is both a design principle (strong identity foundation) and one of the seven security areas +- **VPC / Infrastructure Protection**: Network controls (security groups, NACLs, subnets) map to "apply security at all layers" +- **CloudTrail / CloudWatch / Config**: Enable the "maintain traceability" principle +- **KMS / S3 encryption / TLS**: Implement "protect data in transit and at rest" +- **Other WA Pillars**: Security intersects with Reliability (incident response), Operational Excellence (automation), Cost Optimization (right-sizing security controls), and Performance Efficiency (choosing secure and performant architectures) + +## Exam-Relevant Points +- There are **7 design principles** for the Security Pillar — memorize them (identity foundation, traceability, security at all layers, automate, protect data in transit/at rest, keep people away from data, prepare for security events) +- There are **7 areas of cloud security**: security foundations, IAM, detection, infrastructure protection, data protection, incident response, application security +- The pillar emphasizes **eliminating long-term static credentials** in favor of centralized identity and temporary credentials +- **Security at all layers** (defense in depth) is a core principle — expect questions that test whether a solution applies controls at multiple layers +- **Automation** is preferred over manual security processes — security controls should be defined as code in version-controlled templates +- "Keep people away from data" is a distinct principle — questions may test whether a solution minimizes human access to sensitive data + diff --git a/entries/2026/03/11/ARG-latest-userguide-security_logging-monitoringhtml.md b/entries/2026/03/11/ARG-latest-userguide-security_logging-monitoringhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e5ca84760dfa30e67ef045d20febe0e3336ba865 --- /dev/null +++ b/entries/2026/03/11/ARG-latest-userguide-security_logging-monitoringhtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/ARG/latest/userguide/security_logging-monitoring.html +source: sources/ARG-latest-userguide-security_logging-monitoringhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:51 + + + +## Overview +This page describes how AWS Resource Groups and Tag Editor integrate with AWS CloudTrail for logging and monitoring. All Resource Groups API calls are captured as CloudTrail events, enabling auditing of who did what, when, and from where. + +## Key Concepts +- **All** Resource Groups actions are logged by CloudTrail — there is no opt-in required for API-level logging. +- CloudTrail is automatically enabled when you create an AWS account. +- Resource Groups events use `resource-groups.amazonaws.com` as their event source. +- Tag Editor console actions use the internal API endpoint `resource-explorer` as their event source. +- CloudTrail log entries include: identity of the caller, IP address, timestamp, request parameters, and response elements. +- The `userIdentity` element reveals whether a request used root credentials, IAM user credentials, temporary role/federated credentials, or was made by another AWS service. +- CloudTrail log files are **not** ordered — they are not a sequential stack trace. + +## Commands and Syntax +No CLI commands specific to Resource Groups logging. Standard CloudTrail trail setup applies: +1. Create a trail in the CloudTrail console (applies to all regions by default). +2. Configure an S3 bucket for log delivery. +3. Optionally configure SNS notifications and CloudWatch Logs integration. + +Example CloudTrail log entry for `CreateGroup`: +- `eventSource`: `resource-groups.amazonaws.com` +- `eventName`: `CreateGroup` +- Key logged actions include: `CreateGroup`, `GetGroup`, `UpdateGroupQuery` + +## Relationships +- **CloudTrail** — the underlying logging service; Resource Groups is one of many integrated services. +- **Amazon S3** — destination for CloudTrail log file delivery. +- **Amazon SNS** — optional notifications when new log files are delivered. +- **IAM** — `userIdentity` element ties events to IAM principals (users, roles, federated users). +- **Tag Editor** — shares the Resource Groups console but logs under a different event source (`resource-explorer`). + +## Exam-Relevant Points +- Resource Groups events appear under event source `resource-groups.amazonaws.com`; Tag Editor events appear under `resource-explorer` — distinguish between these. +- CloudTrail is enabled by default on all AWS accounts. +- Trails created in the console apply to **all regions** by default. +- CloudTrail log files are unordered. +- The `userIdentity` element is the key to determining **who** made a request and **what type of credentials** were used. + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_ApiGatewayV2html.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_ApiGatewayV2html.md new file mode 100644 index 0000000000000000000000000000000000000000..2747426fa6c5c62cc0062707be22fc2b19b6568e --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_ApiGatewayV2html.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_ApiGatewayV2.html +source: sources/AWSCloudFormation-latest-UserGuide-AWS_ApiGatewayV2html.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:51 + + + +## Overview +This page is the CloudFormation Template Reference for Amazon API Gateway V2, listing all available CloudFormation resource types for provisioning and managing API Gateway V2 resources (HTTP APIs and WebSocket APIs) as infrastructure-as-code. + +## Key Concepts +- **API Gateway V2** is the newer API Gateway service supporting **HTTP APIs** and **WebSocket APIs** (as distinct from REST APIs managed by the original `AWS::ApiGateway::*` resources). +- CloudFormation provides **14 resource types** under the `AWS::ApiGatewayV2::` namespace. +- Key resources map to the API Gateway V2 object model: API → Routes → Integrations → Stages → Deployments. + +## Commands and Syntax +No CLI commands on this page — it is a resource type index. The resource types available are: + +| Resource Type | Purpose | +|---|---| +| `AWS::ApiGatewayV2::Api` | The API itself (HTTP or WebSocket) | +| `AWS::ApiGatewayV2::ApiGatewayManagedOverrides` | Override default settings on API Gateway-managed resources | +| `AWS::ApiGatewayV2::ApiMapping` | Map API to a custom domain name path | +| `AWS::ApiGatewayV2::Authorizer` | JWT or Lambda authorizer | +| `AWS::ApiGatewayV2::Deployment` | Snapshot of the API for a stage | +| `AWS::ApiGatewayV2::DomainName` | Custom domain name | +| `AWS::ApiGatewayV2::Integration` | Backend integration (Lambda, HTTP, etc.) | +| `AWS::ApiGatewayV2::IntegrationResponse` | Transform integration responses | +| `AWS::ApiGatewayV2::Model` | Request/response data model | +| `AWS::ApiGatewayV2::Route` | Route definition (path + method) | +| `AWS::ApiGatewayV2::RouteResponse` | Response for a route (WebSocket) | +| `AWS::ApiGatewayV2::RoutingRule` | Routing rule configuration | +| `AWS::ApiGatewayV2::Stage` | Deployment stage (e.g., prod, dev) | +| `AWS::ApiGatewayV2::VpcLink` | Private integration via VPC link | + +## Relationships +- **V1 vs V2**: `AWS::ApiGateway::*` (V1) handles REST APIs; `AWS::ApiGatewayV2::*` handles HTTP and WebSocket APIs. +- **VpcLink** connects API Gateway to private resources (ALB, NLB, ECS) inside a VPC. +- **DomainName + ApiMapping** work together for custom domain routing. +- **Stage + Deployment** follow the same lifecycle pattern as V1 REST APIs. +- Integrations commonly target **Lambda**, **HTTP endpoints**, or **AWS services**. + +## Exam-Relevant Points +- Know the distinction: **V2 = HTTP APIs + WebSocket APIs**, **V1 = REST APIs**. They use different CloudFormation namespaces. +- HTTP APIs (V2) are lower-cost and lower-latency than REST APIs (V1) but have fewer features. +- `VpcLink` is required for private integrations — connecting API Gateway to resources not publicly accessible. +- `ApiGatewayManagedOverrides` is unique to V2 and allows overriding settings that API Gateway auto-creates (relevant when using quick-create or SAM). +- Stages in V2 support **auto-deploy**, unlike V1 which requires explicit deployments. + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_ApiGatewayhtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_ApiGatewayhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d9961094abef42f06a00632269b0f22e629dab20 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_ApiGatewayhtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_ApiGateway.html +source: sources/AWSCloudFormation-latest-UserGuide-AWS_ApiGatewayhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:52 + + + +## Overview +This page is the CloudFormation Template Reference for Amazon API Gateway (REST API / v1), listing all available CloudFormation resource types that can be used to define and manage API Gateway REST API infrastructure as code. + +## Key Concepts +- **22 resource types** are available for API Gateway v1 (REST APIs) in CloudFormation +- Resources cover the full API lifecycle: API definition, authorization, deployment, staging, documentation, custom domains, and usage management +- **V2 variants exist** for some resources (BasePathMappingV2, DomainNameV2), indicating evolution of the API Gateway service alongside the separate ApiGatewayV2 namespace for HTTP/WebSocket APIs +- This is the REST API (`AWS::ApiGateway::*`) namespace — distinct from `AWS::ApiGatewayV2::*` which covers HTTP APIs and WebSocket APIs + +## Commands and Syntax +No specific template syntax is shown on this index page. Each linked resource type page contains its own property definitions. The general CloudFormation pattern is: +```yaml +Resources: + MyApi: + Type: AWS::ApiGateway::RestApi + Properties: + Name: my-api +``` + +## Relationships +- **CloudFormation** — these are CloudFormation resource type definitions +- **API Gateway V2** — separate `AWS::ApiGatewayV2::*` namespace exists for HTTP APIs and WebSocket APIs +- **IAM** — `AWS::ApiGateway::Authorizer` ties into IAM roles and Cognito +- **VPC** — `AWS::ApiGateway::VpcLink` enables private API integrations with VPC resources (ALB, NLB, ECS) +- **Lambda** — `AWS::ApiGateway::Method` typically integrates with Lambda functions +- **ACM / Route 53** — `AWS::ApiGateway::DomainName` requires SSL certificates and DNS configuration + +## Exam-Relevant Points +- Know the distinction between `AWS::ApiGateway::*` (REST APIs) and `AWS::ApiGatewayV2::*` (HTTP/WebSocket APIs) +- A REST API deployment requires at minimum: **RestApi**, **Resource**, **Method**, **Deployment**, and **Stage** +- **UsagePlan + UsagePlanKey + ApiKey** work together to throttle and meter API consumers +- **VpcLink** is required for private integrations connecting API Gateway to backend services inside a VPC +- **GatewayResponse** customizes error responses (4xx/5xx) returned by API Gateway itself (not the backend) +- **Account** resource configures the IAM role API Gateway uses to write CloudWatch logs (one per region) + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_FIShtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_FIShtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9c6b12e1b8522873c5b06b55f67b2c2df5b0e9e9 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_FIShtml.md @@ -0,0 +1,33 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_FIS.html +source: sources/AWSCloudFormation-latest-UserGuide-AWS_FIShtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:52 + + + +## Overview +This page lists the AWS CloudFormation resource types available for AWS Fault Injection Service (FIS), enabling infrastructure-as-code provisioning of FIS experiments. + +## Key Concepts +- AWS FIS has **two CloudFormation resource types**: + - `AWS::FIS::ExperimentTemplate` — defines a fault injection experiment (actions, targets, stop conditions) + - `AWS::FIS::TargetAccountConfiguration` — configures cross-account targeting for experiments +- FIS resources can be provisioned declaratively via CloudFormation templates + +## Commands and Syntax +No specific syntax shown on this index page — detailed properties are on the linked resource type pages. + +## Relationships +- **CloudFormation** — FIS resources are managed as CloudFormation stack resources +- **FIS** — the chaos engineering service that runs experiments against AWS resources (EC2, ECS, RDS, etc.) +- **Cross-account** — `TargetAccountConfiguration` enables multi-account fault injection scenarios (relevant to AWS Organizations setups) + +## Exam-Relevant Points +- FIS supports CloudFormation for automated, repeatable experiment deployment +- Two resource types: `ExperimentTemplate` (core) and `TargetAccountConfiguration` (multi-account) +- FIS is AWS's managed chaos engineering service for resilience testing + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_SSOhtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_SSOhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9e549e1a449a24797473d555363abdd49c7695bc --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_SSOhtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/AWS_SSO.html +source: sources/AWSCloudFormation-latest-UserGuide-AWS_SSOhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:52 + + + +## Overview + +This page lists the AWS CloudFormation resource types available for AWS IAM Identity Center (formerly AWS SSO). It serves as an index to the six CloudFormation resources that can be used to provision and manage IAM Identity Center configurations as infrastructure-as-code. + +## Key Concepts + +- **AWS IAM Identity Center** is the successor to AWS SSO — CloudFormation still uses the `AWS::SSO::` namespace for its resource types +- Six resource types are available for managing Identity Center via CloudFormation: + - **AWS::SSO::Application** — defines an application integrated with Identity Center + - **AWS::SSO::ApplicationAssignment** — assigns users/groups to an application + - **AWS::SSO::Assignment** — assigns users/groups to AWS accounts with a permission set + - **AWS::SSO::Instance** — represents the Identity Center instance itself + - **AWS::SSO::InstanceAccessControlAttributeConfiguration** — configures ABAC (attribute-based access control) attributes for the instance + - **AWS::SSO::PermissionSet** — defines a set of IAM policies that determine what users/groups can do in assigned accounts + +## Commands and Syntax + +No specific commands or syntax shown — this is an index page. Each resource type links to its own detailed reference with property definitions and examples. + +## Relationships + +- **CloudFormation** — these are CloudFormation resource types for IaC provisioning +- **IAM** — PermissionSets define IAM policies; Identity Center is the centralized access management layer above IAM +- **AWS Organizations** — Identity Center typically operates at the organization level; assignments map users to accounts +- **ABAC** — the InstanceAccessControlAttributeConfiguration resource enables attribute-based access control, connecting identity provider attributes to IAM policy conditions + +## Exam-Relevant Points + +- The CloudFormation namespace remains `AWS::SSO::*` despite the service being renamed to IAM Identity Center +- There are exactly **6** CloudFormation resource types for Identity Center +- **AWS::SSO::Assignment** is for account-level access (user/group → account + permission set), while **AWS::SSO::ApplicationAssignment** is for application-level access +- **AWS::SSO::PermissionSet** is the resource that controls what permissions are granted — it is separate from the assignment that links it to users/accounts +- ABAC configuration is managed through a dedicated resource type (`InstanceAccessControlAttributeConfiguration`), not as a property of the instance itself + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-Welcomehtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-Welcomehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..726ae0348790cbcb8bba4b948a2c5490fa0463dc --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-Welcomehtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html +source: sources/AWSCloudFormation-latest-UserGuide-Welcomehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:52 + + + +## Overview +CloudFormation is an AWS infrastructure-as-code (IaC) service that lets you model, provision, and manage AWS resources using declarative templates. You define resources and their properties in a template, and CloudFormation handles provisioning, configuration, and dependency resolution automatically. + +## Key Concepts +- **Template**: A text file (JSON/YAML) describing all AWS resources and their properties +- **Stack**: A collection of AWS resources created and managed as a single unit from a template +- **Declarative model**: You describe *what* you want, CloudFormation figures out *how* (including dependency ordering) +- **Stack deletion**: Deleting a stack deletes all resources within it +- **Repeatable deployments**: Same template can provision identical infrastructure across multiple regions +- **Change tracking**: Templates are text files, so version control (git) tracks who changed what and when +- **Rollback**: Revert infrastructure changes by deploying a previous template version + +## Commands and Syntax +No specific commands on this page. CloudFormation is accessible via: +- AWS Management Console +- CloudFormation API +- AWS CLI (`aws cloudformation ...`) +- AWS SDKs +- Third-party integrations + +## Relationships +- **EC2 Auto Scaling** — CloudFormation can provision Auto Scaling groups and launch configurations +- **Elastic Load Balancing** — load balancers are commonly defined in templates +- **Amazon RDS** — database instances provisioned as stack resources +- **Multi-region deployments** — templates enable consistent replication across regions +- **Version control systems** — templates integrate with git for change tracking + +## Exam-Relevant Points +- CloudFormation automatically resolves resource dependencies — you don't manually sequence creation +- A **stack** is the unit of management: create, update, or delete resources together +- Templates enable **consistent, repeatable** provisioning across regions +- Deleting a stack deletes **all** resources in that stack (unless deletion policies are set) +- CloudFormation is a **free service** — you pay only for the AWS resources it creates +- Infrastructure changes are tracked via template version control, not console click history +- Rollback is achieved by deploying a previous template version + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-properties-lambda-function-environmenthtm.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-properties-lambda-function-environmenthtm.md new file mode 100644 index 0000000000000000000000000000000000000000..13e5c433fd4ef27ec07216f75a7f78ca228c7fae --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-properties-lambda-function-environmenthtm.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html +source: sources/AWSCloudFormation-latest-UserGuide-aws-properties-lambda-function-environmenthtm.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:52 + + + +## Overview +This page documents the `Environment` property type for `AWS::Lambda::Function` in CloudFormation, which allows you to define key-value environment variables that configure a Lambda function's behavior without modifying its code. + +## Key Concepts +- Environment variables are **key-value string pairs** stored in a function's version-specific configuration +- They allow behavioral changes **without updating code** +- The `Variables` property is **not required** — you can define a Lambda function without environment variables +- Variable keys must match the pattern `[a-zA-Z][a-zA-Z0-9_]+` (start with a letter, followed by alphanumeric or underscore) +- If a value represents a **time or duration**, it must be enclosed in quotes +- Updating environment variables causes **no interruption** to the stack + +## Commands and Syntax + +**YAML:** +```yaml +Environment: + Variables: + databaseName: lambdadb + databaseUser: admin +``` + +**JSON:** +```json +{ + "Variables": { + "databaseName": "lambdadb", + "databaseUser": "admin" + } +} +``` + +## Relationships +- **Parent resource**: `AWS::Lambda::Function` — `Environment` is a property of the Function resource +- **Related**: Lambda function versioning — env vars are part of version-specific configuration +- **Related**: `AWS::Lambda::Function VpcConfig` — another function configuration property +- **Update behavior**: Links to CloudFormation stack update behaviors (no interruption) + +## Exam-Relevant Points +- Environment variable updates cause **no interruption** — the function is updated in place +- Variable keys must **start with a letter** (not a number or underscore) +- Environment variables are **version-specific** — each published version captures its own set +- Values are always **strings** (type: Object of String) +- Time/duration values require **quoting** to avoid YAML parsing issues + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-properties-lambda-function-vpcconfightml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-properties-lambda-function-vpcconfightml.md new file mode 100644 index 0000000000000000000000000000000000000000..af74a307789a7dfa6637f39beae6b1cdcad55961 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-properties-lambda-function-vpcconfightml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html +source: sources/AWSCloudFormation-latest-UserGuide-aws-properties-lambda-function-vpcconfightml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:53 + + + +## Overview +The `AWS::Lambda::Function VpcConfig` property type configures VPC connectivity for a Lambda function by specifying security groups and subnets. When attached, Lambda creates an elastic network interface (ENI) for each security group/subnet combination, restricting the function to access resources only through that VPC. + +## Key Concepts +- **VPC-connected Lambda** creates an ENI for every combination of security group and subnet in the config +- A VPC-connected function can **only access resources and the internet through that VPC** (requires NAT gateway for internet access) +- **Three properties**, all optional: `Ipv6AllowedForDualStack`, `SecurityGroupIds`, `SubnetIds` +- **SecurityGroupIds**: max **5** security groups +- **SubnetIds**: max **16** subnets +- All properties update with **no interruption** +- `Ipv6AllowedForDualStack` enables outbound IPv6 on dual-stack subnets + +## Commands and Syntax +```yaml +VpcConfig: + Ipv6AllowedForDualStack: true + SecurityGroupIds: + - sg-085912345678492fb + SubnetIds: + - subnet-071f712345678e7c8 + - subnet-07fd123456788a036 +``` + +## Relationships +- **Lambda Function** — `VpcConfig` is a sub-property of `AWS::Lambda::Function` +- **VPC / Subnets / Security Groups** — references EC2 networking resources; if defined in the same stack, deletion ordering matters +- **ENIs** — Lambda manages ENIs automatically; CloudFormation needs `ec2:DescribeNetworkInterfaces` to track their cleanup +- **IAM** — the Lambda execution role needs `AWSLambdaVPCAccessExecutionRole` managed policy (or equivalent `ec2:CreateNetworkInterface`, `ec2:DescribeNetworkInterfaces`, `ec2:DeleteNetworkInterface` permissions) +- **CloudFormation stack deletion** — CloudFormation waits for Lambda to delete ENIs before removing VPC resources in the same stack + +## Exam-Relevant Points +- CloudFormation requires **`ec2:DescribeNetworkInterfaces`** permission (from the deploying user/role) to monitor ENI deletion; without it, CloudFormation **does not wait** and VPC resource deletion may fail +- When VPC and Lambda function are in the **same stack**, ENIs must be deleted before VPC resources — this is a common source of stack deletion failures +- Max **5 security groups**, max **16 subnets** +- All VpcConfig property changes cause **no interruption** to the function +- A VPC-connected Lambda **loses direct internet access** — a NAT gateway in a public subnet is required for outbound internet + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-resource-ec2-vpchtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-resource-ec2-vpchtml.md new file mode 100644 index 0000000000000000000000000000000000000000..afc4e0129130b4b861746140394cfbf4f4ef9fae --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-resource-ec2-vpchtml.md @@ -0,0 +1,70 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html +source: sources/AWSCloudFormation-latest-UserGuide-aws-resource-ec2-vpchtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:53 + + + +## Overview +The `AWS::EC2::VPC` CloudFormation resource creates a Virtual Private Cloud (VPC) in AWS. A VPC requires an IPv4 CIDR block, which can be specified directly or allocated from an IPAM pool. IPv6 support is added via a separate `AWS::EC2::VPCCidrBlock` resource. + +## Key Concepts +- **CidrBlock** — IPv4 range in CIDR notation (e.g., `10.0.0.0/16`). AWS canonicalizes the CIDR (e.g., `100.68.0.18/18` becomes `100.68.0.0/18`). Conditionally required — must specify either `CidrBlock` or `Ipv4IpamPoolId`. +- **EnableDnsSupport** — Enables DNS resolution via the Amazon-provided DNS server at `169.254.169.253` or VPC base+2. **Enabled by default**. +- **EnableDnsHostnames** — Gives instances DNS hostnames. **Disabled by default** for non-default VPCs. Requires `EnableDnsSupport` to be enabled first. +- **InstanceTenancy** — Controls hardware isolation: `default` (shared), `dedicated` (dedicated hardware), or `host`. Changing from `dedicated` → `default` requires no replacement; `default` → `dedicated` **requires replacement**. +- **IPAM integration** — `Ipv4IpamPoolId` and `Ipv4NetmaskLength` allow CIDR allocation from an IPAM pool instead of specifying a static CIDR block. +- **IPv6** — Not a direct property of `AWS::EC2::VPC`; must use a separate `AWS::EC2::VPCCidrBlock` resource with `AmazonProvidedIpv6CidrBlock: true`. + +## Commands and Syntax +```yaml +Type: AWS::EC2::VPC +Properties: + CidrBlock: 10.0.0.0/16 + EnableDnsSupport: 'true' + EnableDnsHostnames: 'true' + InstanceTenancy: default + Tags: + - Key: stack + Value: production +``` + +**Adding IPv6:** +```yaml +ipv6CidrBlock: + Type: AWS::EC2::VPCCidrBlock + Properties: + VpcId: !Ref myVPC + AmazonProvidedIpv6CidrBlock: true +``` + +## Return Values +- **`Ref`** → VPC ID +- **`Fn::GetAtt`**: + - `CidrBlock` — primary IPv4 CIDR + - `CidrBlockAssociations` — association IDs of IPv4 CIDRs + - `DefaultNetworkAcl` — default network ACL ID + - `DefaultSecurityGroup` — default security group ID + - `Ipv6CidrBlocks` — IPv6 CIDR blocks + - `VpcId` — VPC ID + +## Relationships +- **AWS::EC2::VPCCidrBlock** — adds secondary IPv4 or IPv6 CIDR blocks +- **AWS::EC2::Subnet** — subnets are created within a VPC +- **AWS::EC2::SecurityGroup** — VPC automatically gets a default security group +- **AWS::EC2::NetworkAcl** — VPC automatically gets a default network ACL +- **IPAM** — VPCs can source CIDRs from IPAM pools for centralized IP management + +## Exam-Relevant Points +- Changing `CidrBlock` or `Ipv4IpamPoolId` requires **replacement** (new VPC created). +- `EnableDnsSupport` is **enabled by default**; `EnableDnsHostnames` is **disabled by default** for non-default VPCs. +- DNS hostnames **require** DNS support to be enabled — you cannot enable hostnames without support. +- `InstanceTenancy` change from `dedicated` → `default` = no replacement; `default` → `dedicated` = **replacement**. +- You must specify **either** `CidrBlock` **or** `Ipv4IpamPoolId` (conditional requirement). +- IPv6 is **not** a property on `AWS::EC2::VPC` — it requires a separate `AWS::EC2::VPCCidrBlock` resource. +- The Amazon DNS server is at `169.254.169.253` or at VPC network range base **plus two**. + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-template-resource-type-refhtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-template-resource-type-refhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..df450bfbf6bc7ee10bf1394ee1f528eefbd5e27b --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-template-resource-type-refhtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html +source: sources/AWSCloudFormation-latest-UserGuide-aws-template-resource-type-refhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:53 + + + +## Overview +This page serves as the master index for all AWS resource and property types supported by AWS CloudFormation. It defines the naming convention for resource type identifiers and provides a comprehensive, alphabetically organized list of links to per-service resource type reference pages. + +## Key Concepts +- **Resource type identifier format**: Always follows `service-provider::service-name::data-type-name` (e.g., `AWS::EC2::Instance`, `AWS::Lambda::Function`) +- This is the **Template Reference Guide**, separate from the CloudFormation User Guide +- Every AWS service that supports CloudFormation has its own reference page listing all resource and property types for that service +- **Shared property types** exist that are reused across multiple services (linked at the bottom) + +## Commands and Syntax +``` +# Resource type identifier pattern: +service-provider::service-name::data-type-name + +# Examples (implied by service listings): +AWS::EC2::* +AWS::Lambda::* +AWS::S3::* +AWS::DynamoDB::* +AWS::IAM::* +``` + +## Relationships +- Links to the **CloudFormation User Guide** for getting started +- Each service entry links to a dedicated page with all resource types for that service +- Key substrate services listed include: EC2, Lambda, S3, DynamoDB, IAM, RDS, ECS, EKS, CloudFront, Route 53, VPC Lattice, CloudWatch, CloudTrail, API Gateway, SNS, SQS, Step Functions, KMS, Secrets Manager, and many more +- Some services have multiple versions listed (e.g., API Gateway / API Gateway V2, WAF / WAF Regional / WAF V2, OpenSearch / legacy Elasticsearch) + +## Exam-Relevant Points +- Resource type identifiers use the **triple-colon format**: `service-provider::service-name::data-type-name` +- Know which AWS service maps to which CloudFormation namespace (e.g., Cloud Map = `AWS::ServiceDiscovery`, IAM Identity Center = `AWS::SSO`, Data Firehose = `AWS::KinesisFirehose`) +- Some service names in CloudFormation differ from their marketing names (e.g., Amazon WorkSpaces Applications = AppStream, Amazon Q Developer in chat = Chatbot) +- **Shared property types** are reusable across services — a distinct concept from service-specific property types +- V2 resource types (API Gateway V2, WAF V2, ELB V2) represent newer API versions and are separate namespaces from their V1 counterparts + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cfn-api-logging-cloudtrailhtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cfn-api-logging-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a412e774120654879c01f0b7da6c5b8ee9339fb4 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cfn-api-logging-cloudtrailhtml.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-api-logging-cloudtrail.html +source: sources/AWSCloudFormation-latest-UserGuide-cfn-api-logging-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:54 + + + +## Overview +This page documents how AWS CloudFormation integrates with AWS CloudTrail to log all API calls made to the CloudFormation service. CloudTrail captures events from the console, CLI, and SDK calls, enabling auditing of who did what, when, and from where against CloudFormation resources. + +## Key Concepts +- **All CloudFormation API actions are logged** by CloudTrail — there are no exceptions or opt-in requirements. +- CloudTrail is **enabled by default** on every AWS account at creation time. +- Without a trail configured, you can still view recent events via **Event history** in the CloudTrail console. +- Creating a **trail** enables continuous delivery of log files to an S3 bucket; by default, trails apply to **all regions**. +- **Only parameter key names are logged** — parameter values are NOT recorded (security measure to protect secrets like passwords). +- Each log entry includes: `userIdentity`, `eventTime`, `eventSource` (`cloudformation.amazonaws.com`), `eventName`, `awsRegion`, `sourceIPAddress`, `userAgent`, `requestParameters`, `responseElements`. +- The `userIdentity` element reveals whether a request was made with root credentials, IAM user credentials, temporary security credentials (role/federated user), or by another AWS service. +- CloudTrail log files are **not ordered** — they don't form a sequential stack trace. + +## Commands and Syntax +No CLI commands specific to this integration. The logging happens automatically. Key logged operations shown in examples: +- `CreateStack` — logs `stackName`, `templateURL`, `tags`, `parameters` (keys only), `disableRollback`; response includes `stackId` ARN +- `UpdateStack` — logs `stackName`, `templateURL`, `parameters` (keys only) +- `ListStacks` — `requestParameters` and `responseElements` are both `null` +- `DescribeStacks` — logs `stackName`; `responseElements` is `null` +- `DeleteStack` — logs `stackName`; `responseElements` is `null` + +## Relationships +- **CloudTrail** — the underlying audit logging service +- **S3** — destination for CloudTrail log file delivery +- **SNS** — can be configured for CloudTrail notifications +- **IAM** — `userIdentity` element ties actions to IAM users, roles, and federated identities +- **CloudFormation API Reference** — all documented API actions map to CloudTrail event names +- **Multi-account/multi-region** — CloudTrail can aggregate logs across accounts and regions + +## Exam-Relevant Points +- CloudTrail logs **all** CloudFormation API calls automatically — no additional configuration required for basic logging. +- **Parameter values are never logged** — only parameter key names appear in CloudTrail entries. This is a critical security detail. +- The `eventSource` for CloudFormation entries is `cloudformation.amazonaws.com`. +- Trails created in the console default to **all regions** (multi-region trail). +- Read-only operations like `ListStacks` and `DescribeStacks` return `null` for `responseElements`. +- Mutating operations like `CreateStack` return the `stackId` ARN in `responseElements`. +- CloudTrail event history is available **without** creating a trail, but only for recent events. + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-limitshtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-limitshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9a548ee1a887a8eb2a6c33e08a3c2113a5a7f867 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-limitshtml.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html +source: sources/AWSCloudFormation-latest-UserGuide-cloudformation-limitshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:54 + + + +## Overview +This page documents the service quotas (limits) for AWS CloudFormation, covering maximum values for templates, stacks, StackSets, and related resources. It also notes regional feature availability restrictions for macros and ECS blue/green deployments. + +## Key Concepts +- **Template size**: 51,200 bytes inline in API requests; up to 1 MB when stored in S3 +- **Resources per template**: 500 maximum — use nested stacks to exceed this +- **Parameters, Outputs, Mappings**: each capped at 200 per template +- **Parameter value size**: 4,096 bytes (use `Fn::Join` to work around) +- **Dynamic references**: 60 per template +- **Stacks per account**: 2,000 (soft limit, can request increase) +- **StackSets per admin account**: 1,000 +- **Stack instances per stack set**: 100,000 +- **StackSets concurrent instance operations per region**: 10,000 +- **Nested stack resource limit**: 2,500 resources per operation (total hierarchy can be larger) +- **Hooks**: 100 per account per region, 100 per resource +- **Private resources**: 50 per account per region +- **Modules**: 100 per account per region +- **Name limits**: resource/parameter/output/mapping names max 255 chars; stack names max 128 chars + +## Commands and Syntax +- **`DescribeAccountLimits` API**: Query current resource limits for concurrent stack operations in a specific region +- **`DeregisterType`**: Remove unused module or private resource versions to free up version quota +- **Workaround for large templates**: Upload to S3 and pass the S3 URL instead of inline body +- **Workaround for 500-resource limit**: Split into nested stacks +- **Workaround for parameter value size**: Use `Fn::Join` to concatenate multiple parameters + +## Relationships +- **Nested Stacks**: Primary workaround for exceeding resource, mapping, and parameter limits +- **Amazon S3**: Used to pass larger templates (up to 1 MB) and large cfn-signal data +- **StackSets**: Separate quota domain with its own limits for stack instances and concurrent operations +- **CloudFormation Registry**: Governs hooks, modules, and private resource type quotas +- **AWS Service Quotas**: Many limits are soft and can be increased via the Service Quotas console +- **Macros/Transforms**: Incompatible with StackSets using service-managed permissions + +## Exam-Relevant Points +- **500 resources per template** is a hard limit — nested stacks are the standard solution +- **Template body max 51,200 bytes inline vs 1 MB via S3** — a frequently tested distinction +- **200 parameters, 200 outputs, 200 mappings** per template +- **2,000 stacks** default per account (requestable increase) +- **Nested stacks can operate on max 2,500 resources per operation**, even if total hierarchy is larger +- **60 dynamic references** per template (SSM Parameter Store, Secrets Manager references) +- **StackSets do NOT support macros/transforms** with service-managed permissions +- **Macros not available** in Asia Pacific (Jakarta) +- **ECS blue/green via CodeDeploy** not available in Africa (Cape Town), Asia Pacific (Osaka), Europe (Milan) +- **128-character limit on stack names** (shorter than the 255-char limit for resources/parameters) + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-overviewhtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-overviewhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b8cfeecf2434b1d4f4ea3a9e54e2f0967a760d79 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-overviewhtml.md @@ -0,0 +1,71 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-overview.html +source: sources/AWSCloudFormation-latest-UserGuide-cloudformation-overviewhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:54 + + + +## Overview + +This page explains the fundamental workflow of AWS CloudFormation — how it uses templates (YAML/JSON blueprints) to provision resources as stacks, and how change sets enable safe updates by previewing modifications before applying them. + +## Key Concepts + +- **Templates**: YAML or JSON text files that describe AWS resources and their properties; act as blueprints for provisioning. Can use any file extension (`.yaml`, `.json`, `.template`, `.txt`). +- **Stacks**: A single manageable unit of related resources, all defined by one template. You create, update, and delete resources by operating on the stack. +- **Change sets**: A preview/summary of proposed changes to a stack. Lets you see impact (e.g., resource replacement) before executing. You can create multiple change sets before choosing one to apply. +- **Parameters**: Input values specified at stack creation time (not template authoring time), enabling template reuse across different contexts. +- **`!Ref` / `Ref`**: Intrinsic function to reference other resources within the same template (e.g., associating an EIP with an EC2 instance). +- CloudFormation makes underlying AWS API calls on your behalf — you need IAM permissions for the resources being provisioned. +- If stack creation fails, CloudFormation **automatically rolls back** by deleting created resources. Same rollback behavior on failed updates. +- Local template files are auto-uploaded to an S3 bucket (one per region) in your account. + +## Commands and Syntax + +**Minimal template structure (YAML):** +```yaml +AWSTemplateFormatVersion: 2010-09-09 +Description: A sample template +Resources: + MyEC2Instance: + Type: 'AWS::EC2::Instance' + Properties: + ImageId: ami-0ff8a91507f77f867 + InstanceType: t2.micro + KeyName: testkey +``` + +**Cross-resource reference:** +```yaml +MyEIP: + Type: 'AWS::EC2::EIP' + Properties: + InstanceId: !Ref MyEC2Instance +``` + +**Stack creation workflow:** Create template → Save locally or to S3 → Create stack specifying template location and parameters. + +**Stack update workflow:** Modify template → Save → Create change set → Review change set → Execute change set. + +## Relationships + +- **IAM**: Required for permissions to create/modify resources via CloudFormation. +- **S3**: Templates stored locally are auto-uploaded to S3; can also manually manage template storage in S3. +- **Infrastructure Composer**: Visual tool for designing and validating CloudFormation templates. +- **EC2, RDS, ELB, Auto Scaling, EIP**: Common resource types provisioned through templates. +- **Change sets** relate to update behaviors — some property changes cause resource replacement (destructive), others are in-place. + +## Exam-Relevant Points + +- Change sets **do not validate** whether an update will succeed (e.g., they don't check account quotas, permissions, or whether a resource supports updates). +- Changing certain resource properties (e.g., RDS database name) causes **replacement** — the old resource is deleted and a new one created, potentially causing data loss. +- CloudFormation **rolls back** on failure for both creation and update operations. +- Templates can be YAML or JSON — both are fully supported. +- Local template files are automatically uploaded to a per-region S3 bucket in your account. +- All resources in a stack are defined by a single template. +- You need IAM permissions corresponding to the resources being provisioned, not just CloudFormation permissions. + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-concurrency-modehtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-concurrency-modehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..797e911e61ac9ff63491a3e5031257d6230e3382 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-concurrency-modehtml.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concurrency-mode.html +source: sources/AWSCloudFormation-latest-UserGuide-concurrency-modehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:55 + + + +## Overview + +This page explains the **Concurrency Mode** parameter for CloudFormation StackSet operations, which controls how deployment concurrency behaves relative to failures. Two modes are available: **Strict Failure Tolerance** (default, reduces concurrency as failures occur) and **Soft Failure Tolerance** (maintains full concurrency regardless of failures). + +## Key Concepts + +- **Concurrency Mode** is a setting within `StackSetOperationPreferences` that governs deployment parallelism behavior during StackSet operations. +- **Strict Failure Tolerance** (default): + - Initial actual concurrency = lower of `MaxConcurrentAccounts` or `FailureTolerance + 1` + - Concurrency **decreases proportionally** with each failure + - Operation fails when failed instances = `FailureTolerance + 1` + - Slower but more conservative +- **Soft Failure Tolerance**: + - Actual concurrency always equals `MaxConcurrentAccounts`, regardless of failures + - Operation fails when failures exceed `FailureTolerance`, but **in-flight operations in the concurrency queue continue** + - Total failures can exceed `FailureTolerance` because queued deployments finish + - Faster but may result in more total failures +- The concurrency queue operates as a **sliding window**, not discrete batches (batches are used only for illustration). + +## Commands and Syntax + +The `ConcurrencyMode` parameter works with these CLI commands: +- `create-stack-instances` +- `delete-stack-instances` +- `detect-stack-set-drift` +- `import-stacks-to-stack-set` +- `update-stack-instances` +- `update-stack-set` + +Values: `STRICT_FAILURE_TOLERANCE` | `SOFT_FAILURE_TOLERANCE` + +```bash +aws cloudformation create-stack-instances \ + --stack-set-name example-stackset \ + --accounts 123456789012 \ + --regions eu-west-1 \ + --operation-preferences ConcurrencyMode=STRICT_FAILURE_TOLERANCE,FailureToleranceCount=10,MaxConcurrentCount=5 +``` + +In the console: set on the **Set deployment options** page when creating or updating a StackSet. + +## Relationships + +- **StackSetOperationPreferences API**: `ConcurrencyMode` is a field within this structure, alongside `FailureToleranceCount`/`Percentage` and `MaxConcurrentCount`/`Percentage`. +- **StackSet operation options**: `MaxConcurrentAccounts` and `FailureTolerance` are defined in StackSet concepts. +- **Troubleshooting**: Common failure reasons (existing resources, service quotas, permissions) are documented separately. +- Applies to both **self-managed** and **service-managed (Organizations)** permission models. + +## Exam-Relevant Points + +- **Default mode is Strict Failure Tolerance** — concurrency drops as failures increase. +- In Strict mode, initial concurrency = `min(MaxConcurrentAccounts, FailureTolerance + 1)` — not simply `MaxConcurrentAccounts`. +- In Soft mode, total failures **can exceed** `FailureTolerance` because queued operations complete. +- Strict mode deploys fewer total instances before stopping (safer); Soft mode deploys more (faster but more failures possible). +- Quantitative example: with 1000 targets, tolerance=100, max concurrent=250 — Strict deploys 305 instances (205 successful) in 5 batches; Soft deploys 500 instances (400 successful) in 2 batches. +- Operation stops at `FailureTolerance + 1` failures (Strict) or when failures exceed tolerance and queue drains (Soft). + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-control-access-with-iamhtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-control-access-with-iamhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..178524162a2ddf015777680a14983e29284ca7c6 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-control-access-with-iamhtml.md @@ -0,0 +1,81 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/control-access-with-iam.html +source: sources/AWSCloudFormation-latest-UserGuide-control-access-with-iamhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:55 + +## Overview +This page covers how to use AWS Identity and Access Management (IAM) to control access to CloudFormation operations and the underlying AWS resources that CloudFormation provisions. It addresses IAM identity-based policies, resource-level permissions, condition keys, IAM capability acknowledgment for templates, EC2 instance credentials, and federated/temporary access via AWS STS. + +## Key Concepts +- **Dual-layer permissions**: Users need both CloudFormation action permissions AND permissions for the underlying AWS services referenced in templates (e.g., `sqs:*` if the template creates SQS queues) +- **Action prefix**: All CloudFormation actions use the `cloudformation:` prefix (e.g., `cloudformation:CreateStack`) +- **Resource-level permissions**: Policies can target specific stacks using ARNs (e.g., `arn:aws:cloudformation:us-east-1:111122223333:stack/MyProductionStack/*`) +- **Wildcard at end of stack ARN**: Required to match both full stack ID and stack name +- **Console-specific permissions**: Console users need extra permissions not required by CLI/API, including `cloudformation:CreateUploadBucket` and S3 permissions for template uploads +- **AWS-specific parameter types**: Console drop-downs require corresponding `ec2:Describe*` permissions (e.g., `ec2:DescribeKeyPairs` for `AWS::EC2::KeyPair::KeyName`) +- **IAM capability acknowledgment**: Templates creating IAM resources require explicit acknowledgment — `CAPABILITY_IAM` or `CAPABILITY_NAMED_IAM` +- **`CAPABILITY_NAMED_IAM`**: Required when templates include **custom names** for IAM resources; custom-named IAM resources are globally unique, so don't reuse the same template across regions +- **Do NOT use `aws:SourceIp` condition**: CloudFormation uses its own IP address to provision resources, not the caller's IP +- **EC2 instance roles**: Preferred over embedding long-term credentials; applications get temporary credentials automatically +- **Federated access**: Use AWS STS to grant temporary credentials; supports SSO via programmatic console URL construction +- **`GetFederationToken` limitation**: Temporary credentials from this API cannot be used to work with IAM + +## Commands and Syntax + +**Specify multiple actions:** +```json +"Action": ["cloudformation:action1", "cloudformation:action2"] +``` + +**Wildcard actions:** +```json +"Action": "cloudformation:Get*" +``` + +**Deny updates/deletes on a specific stack:** +```json +{ + "Version": "2012-10-17", + "Statement": [{ + "Effect": "Deny", + "Action": ["cloudformation:DeleteStack", "cloudformation:UpdateStack"], + "Resource": "arn:aws:cloudformation:us-east-1:111122223333:stack/MyProductionStack/*" + }] +} +``` + +**Allow SAM/Serverless transform:** +```json +"Resource": "arn:aws:cloudformation:us-east-1:aws:transform/Serverless-2016-10-31" +``` + +**CLI capability acknowledgment:** +```bash +aws cloudformation create-stack --capabilities CAPABILITY_IAM +aws cloudformation create-stack --capabilities CAPABILITY_NAMED_IAM +``` + +## Relationships +- **IAM**: Foundation for all CloudFormation access control; policies, roles, condition keys +- **Amazon S3**: Template and stack policy storage; console upload requires S3 permissions +- **Amazon EC2**: Instance roles for applications needing AWS credentials; parameter type drop-downs require EC2 describe permissions +- **AWS STS**: Provides temporary security credentials for federated access +- **AWS SAM (Serverless)**: Requires specific transform ARN permission for change set creation +- **CloudTrail**: Related for auditing CloudFormation API calls (referenced elsewhere) +- **Service Authorization Reference**: Canonical source for CloudFormation actions, resources, and condition keys + +## Exam-Relevant Points +- Users need permissions for **both** CloudFormation actions **and** the underlying service actions in templates +- **`aws:SourceIp` does not work** as a condition key for CloudFormation — it uses its own IP for provisioning +- **`CAPABILITY_IAM`** vs **`CAPABILITY_NAMED_IAM`**: the latter is required when IAM resources have custom names +- **Don't reuse templates with custom-named IAM resources** across multiple stacks/regions — IAM names are globally unique +- CloudFormation condition keys (`TemplateUrl`, `RoleARN`, `StackPolicyUrl`, `ChangeSetName`, `ResourceTypes`, `ImportResourceTypes`) only apply to their corresponding API parameters +- `cloudformation:ResourceTypes` and `cloudformation:ImportResourceTypes` use three-part naming: `organization::service::resource_type` with wildcard support +- Console users need `cloudformation:CreateUploadBucket` plus `s3:PutObject`, `s3:ListBucket`, `s3:GetObject`, `s3:CreateBucket` +- EC2 instance roles are the recommended approach over embedding long-term credentials +- Temporary credentials from `GetFederationToken` **cannot** be used with IAM operations — use role-based temporary credentials instead + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-deployingapplicationshtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-deployingapplicationshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a9e83e3692d6b6118c0c657a60180513c07d8835 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-deployingapplicationshtml.md @@ -0,0 +1,87 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/deploying.applications.html +source: sources/AWSCloudFormation-latest-UserGuide-deployingapplicationshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:56 + + + +## Overview + +This page covers how to use AWS CloudFormation helper scripts (particularly `cfn-init`) to automatically install, configure, and start applications on Amazon EC2 instances during stack creation. It walks through bootstrapping an Apache web server, progressing from a simple example to a complete template with packages, files, commands, services, and security groups. + +## Key Concepts + +- **CloudFormation helper scripts**: Python-based tools (`cfn-init`, `cfn-signal`, `cfn-get-metadata`, `cfn-hup`) built on `cloud-init` for EC2 instance configuration +- **`cfn-init`** reads configuration from the resource's `Metadata` section and applies it systematically — more robust than raw bash in `UserData` +- **`AWS::CloudFormation::Init`** is the required metadata key that `cfn-init` looks for +- **Processing order**: packages → groups → users → sources → files → commands → services (fixed order, regardless of template ordering) +- **Metadata sections**: + - `packages` — install software (e.g., yum, apt) + - `files` — create files with specific content, ownership, permissions + - `commands` — run arbitrary shell commands + - `services` — start/enable services (systemd/sysvinit) +- Bootstrap takes longer than a simple EC2 launch due to software installation +- A page may not load immediately even after `CREATE_COMPLETE` — bootstrap may still be finishing + +## Commands and Syntax + +**UserData calling cfn-init:** +```bash +#!/bin/bash +yum install -y aws-cfn-bootstrap +/opt/aws/bin/cfn-init -v --stack ${AWS::StackName} --resource WebServer --region ${AWS::Region} +``` + +**Metadata structure:** +```yaml +Metadata: + AWS::CloudFormation::Init: + config: + packages: + yum: + httpd: [] + files: + /var/www/html/index.html: + content: | +

Hello

+ commands: + createWelcomeLog: + command: "echo 'cfn-init ran successfully!' > /var/log/welcome.txt" + services: + systemd: + httpd: + enabled: true + ensureRunning: true +``` + +**AMI parameter using SSM Parameter Store:** +```yaml +Type: AWS::SSM::Parameter::Value +Default: '/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2' +``` + +## Relationships + +- **cfn-signal**: Reports bootstrap completion status back to CloudFormation (next-step topic, not covered here) +- **cfn-hup**: Daemon for detecting metadata updates and re-running cfn-init on stack updates +- **Security Groups** (`AWS::EC2::SecurityGroup`): Required to allow HTTP traffic to the bootstrapped web server +- **SSM Parameter Store**: Used to dynamically resolve the latest AMI ID +- **UserData**: The entry point that invokes `cfn-init`; cfn-init replaces ad-hoc bash scripts with declarative metadata +- **CloudFormation stacks**: Bootstrap is part of the stack creation lifecycle; failures appear in the Events tab + +## Exam-Relevant Points + +- `cfn-init` processes metadata sections in a **fixed order**: packages, groups, users, sources, files, commands, services — not the order listed in the template +- The `--resource` flag in `cfn-init` must match the **logical resource name** in the template +- `AWS::CloudFormation::Init` is placed in the `Metadata` section of the resource, **not** in `Properties` +- Helper scripts must be installed first (`yum install -y aws-cfn-bootstrap`) before calling `cfn-init` +- `cfn-init` is **idempotent** and **declarative** — preferred over imperative bash scripts for complex configurations +- Security groups allow all **outbound** traffic by default but must explicitly allow **inbound** traffic +- `AWS::SSM::Parameter::Value` dynamically resolves AMI IDs at stack creation time +- Bootstrap logs can be viewed via EC2 console: Actions → Monitor and troubleshoot → Get system log +- The web server may not respond immediately after `CREATE_COMPLETE` — the bootstrap process can still be running + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-gettingstartedwalkthroughhtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-gettingstartedwalkthroughhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..02793e7204ef142899ec9a3f15cd89bc72204f04 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-gettingstartedwalkthroughhtml.md @@ -0,0 +1,92 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/gettingstarted.walkthrough.html +source: sources/AWSCloudFormation-latest-UserGuide-gettingstartedwalkthroughhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:56 + + + +## Overview + +This page is a hands-on tutorial for creating your first AWS CloudFormation stack using the AWS Management Console. It walks through provisioning an EC2 instance running Apache HTTP Server behind a security group, monitoring stack creation events, testing the deployed web server, troubleshooting common issues (notably missing default VPCs), and cleaning up all resources afterward. + +## Key Concepts + +- **Stack**: A collection of AWS resources created and managed as a single unit from a CloudFormation template +- **Parameters**: Template inputs that allow customization at stack creation time (e.g., AMI ID, instance type, IP range); avoid hardcoding environment-specific values +- **Resources**: The AWS components declared in the template (e.g., `AWS::EC2::Instance`, `AWS::EC2::SecurityGroup`); CloudFormation creates, configures, and manages their lifecycle +- **Outputs**: Values returned after stack creation (e.g., the website URL), useful for cross-stack references or user consumption +- **Logical names**: Identifiers assigned to resources/parameters in the template (e.g., `WebServerSecurityGroup`), used with `!Ref` and `!GetAtt` to create dependencies +- **Intrinsic functions used**: `!Ref` (reference parameters/resources), `!Base64` (encode UserData), `!GetAtt` (get resource attributes like `PublicDnsName`), `!Join` (concatenate strings) +- **`AWS::SSM::Parameter::Value`**: A special parameter type that resolves SSM Parameter Store values at stack creation time +- **Stack lifecycle events**: `CREATE_IN_PROGRESS` → `CREATE_COMPLETE` (success) or `CREATE_FAILED` → automatic rollback and resource deletion +- **Default VPC requirement**: The tutorial template assumes a default VPC exists; without one, stack creation fails with VPC/subnet errors +- **CloudFormation itself is free**; you pay only for the resources it provisions (EC2, S3, etc.) + +## Commands and Syntax + +**Template structure** (YAML): +```yaml +AWSTemplateFormatVersion: 2010-09-09 +Parameters: + LatestAmiId: + Type: AWS::SSM::Parameter::Value + Default: '/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2' + InstanceType: + Type: String + AllowedValues: [t3.micro, t2.micro] + MyIP: + Type: String + AllowedPattern: '^(\d{1,3}\.){3}\d{1,3}\/\d{1,2}$' +Resources: + WebServerSecurityGroup: + Type: AWS::EC2::SecurityGroup + Properties: + SecurityGroupIngress: + - IpProtocol: tcp + FromPort: 80 + ToPort: 80 + CidrIp: !Ref MyIP + WebServer: + Type: AWS::EC2::Instance + Properties: + ImageId: !Ref LatestAmiId + InstanceType: !Ref InstanceType + SecurityGroupIds: + - !Ref WebServerSecurityGroup + UserData: !Base64 | + #!/bin/bash + yum update -y && yum install -y httpd + systemctl start httpd && systemctl enable httpd +Outputs: + WebsiteURL: + Value: !Join ['', ['http://', !GetAtt WebServer.PublicDnsName]] +``` + +**Workaround for no default VPC** — add a `SubnetId` parameter of type `AWS::EC2::Subnet::Id` and reference it in the instance's `SubnetId` property. + +## Relationships + +- **Infrastructure Composer**: Used in-console to upload, edit, and validate templates before stack creation +- **SSM Parameter Store**: Provides dynamic AMI lookup via `AWS::SSM::Parameter::Value` +- **S3**: Stores the template when created through Infrastructure Composer; must be cleaned up separately +- **EC2 & Security Groups**: The actual resources provisioned by this stack +- **VPC**: Default VPC is a prerequisite; connects to VPC/subnet configuration topics +- **Stack events & rollback**: Ties into CloudFormation's error handling and monitoring model +- **cfn-init / helper scripts**: Referenced as a next step for more advanced EC2 bootstrapping + +## Exam-Relevant Points + +- CloudFormation service itself has **no cost**; charges apply only to provisioned resources +- `AWS::SSM::Parameter::Value` resolves SSM parameters **at stack creation time**, not template authoring time +- On `CREATE_FAILED`, CloudFormation **rolls back by default** and deletes created resources +- `!Ref` on a resource returns its **physical ID**; `!GetAtt` retrieves specific attributes (e.g., `PublicDnsName`) +- `AllowedValues` and `AllowedPattern` in Parameters provide **input validation** before resource creation begins +- Stack names **cannot contain spaces** +- Deleting a stack deletes its resources but **does not delete the S3 bucket** storing the template — that requires separate cleanup +- Templates can be written in **YAML or JSON**; both are fully supported +- `UserData` must be **Base64-encoded** (`!Base64`) for EC2 instances + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-infrastructure-composer-for-cloudformationhtm.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-infrastructure-composer-for-cloudformationhtm.md new file mode 100644 index 0000000000000000000000000000000000000000..3aac42414b0fc052f7c941971d399d0193ed5e62 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-infrastructure-composer-for-cloudformationhtm.md @@ -0,0 +1,35 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/infrastructure-composer-for-cloudformation.html +source: sources/AWSCloudFormation-latest-UserGuide-infrastructure-composer-for-cloudformationhtm.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:56 + + + +## Overview +AWS Infrastructure Composer (formerly Application Composer) is a visual tool integrated into the CloudFormation console that lets you drag-and-drop AWS resources onto a canvas to design and edit CloudFormation templates without writing template code directly. + +## Key Concepts +- **Infrastructure Composer** — visual designer for composing AWS applications; formerly called **Application Composer** +- **Cards** — visual representations of AWS resources that you drag, drop, configure, and connect on a canvas +- **CloudFormation console mode** — the version of Infrastructure Composer accessed from the CloudFormation console; replaces the older **CloudFormation Designer** +- Designed to help identify gaps and improvements in templates and application architecture + +## Commands and Syntax +- No CLI commands; accessed via **CloudFormation console → Infrastructure Composer** in the left navigation menu +- Also available in the standalone **Infrastructure Composer console** (`console.aws.amazon.com/composer/home`) and **AWS Toolkit for VS Code** + +## Relationships +- **CloudFormation** — Infrastructure Composer generates and edits CloudFormation templates visually +- **Lambda** — Lambda Function and Lambda Layer cards exist but require code builds/packaging not available in CloudFormation console mode; must use the standalone Infrastructure Composer console or VS Code Toolkit instead +- **Local sync** — not available in CloudFormation console mode; available in standalone console and VS Code Toolkit +- Replaces the deprecated **CloudFormation Designer** + +## Exam-Relevant Points +- Infrastructure Composer in CloudFormation console mode is the **recommended** visual tool for CloudFormation templates (not Designer) +- Lambda-related cards and local sync are **not available** in CloudFormation console mode — they require the standalone Infrastructure Composer console or VS Code Toolkit +- The tool was formerly known as **Application Composer** + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-createhtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-createhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..4ef44eb17a3de023452c2265580502dfc801ed79 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-createhtml.md @@ -0,0 +1,65 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stackinstances-create.html +source: sources/AWSCloudFormation-latest-UserGuide-stackinstances-createhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:56 + + + +## Overview +This page explains how to add stack instances to an existing CloudFormation StackSet, either via the AWS Console or AWS CLI. It covers both self-managed and service-managed permission models, deployment targeting (accounts vs. OUs), region selection, and concurrency/failure tolerance settings. + +## Key Concepts +- **Stack instances** can be added to a StackSet at any time after creation — you're not locked in at StackSet creation time +- **Two permission models** affect how you specify targets: + - **Self-managed permissions**: target specific AWS account IDs + - **Service-managed permissions**: target the entire organization or specific OUs +- **Region ordering**: by default, stacks deploy sequentially across regions (first region completes before moving to the next) +- **Region concurrency**: can be set to **Sequential** (one at a time) or **Parallel** (multiple regions concurrently) +- **Failure tolerance**: max number of account failures allowed per region before the operation stops +- **Maximum concurrent accounts**: how many accounts are processed in parallel +- **Concurrency mode** has two options: + - **Strict failure tolerance**: reduces concurrency when failures occur, staying within failure tolerance + 1 + - **Soft failure tolerance**: maintains the configured concurrency level regardless of failures +- **Idempotent OU targeting**: if you add an OU already targeted by the StackSet, CloudFormation only creates stacks in accounts that don't already have them (e.g., newly added accounts when auto-deploy is disabled) +- **Child OUs**: selecting an OU automatically includes all child OUs + +## Commands and Syntax + +**Add stacks with self-managed permissions:** +```bash +aws cloudformation create-stack-instances --stack-set-name my-stackset \ + --accounts 123456789012 --regions eu-west-1 us-west-2 +``` + +**Add stacks with service-managed permissions:** +```bash +aws cloudformation create-stack-instances --stack-set-name my-stackset \ + --deployment-targets OrganizationalUnitIds=ou-rcuk-r1qi0wl7 --regions eu-west-1 us-west-2 +``` + +**As delegated administrator** — append: +```bash +--call-as DELEGATED_ADMIN +``` + +## Relationships +- **StackSets concepts** (`stacksets-conceptshtml`): foundational definitions of StackSets, stack instances, operations +- **StackSet creation** (`stacksets-getting-startedhtml`): initial StackSet creation workflow +- **Service-managed StackSets** (`stacksets-orgs-associate-stackset-with-org`): deeper coverage of Organizations integration +- **Parameter overrides** (`stackinstances-overridehtml`): overriding template parameters per stack instance +- **Auto-deployment** (`stacksets-orgs-manage-auto-deploymenthtml`): automatic stack creation for new accounts in OUs +- **Concurrency mode** (`concurrency-modehtml`): detailed explanation of strict vs. soft failure tolerance + +## Exam-Relevant Points +- The CLI command is `create-stack-instances` (not `create-stacks` or `add-stacks`) +- Self-managed uses `--accounts`; service-managed uses `--deployment-targets OrganizationalUnitIds=...` +- Delegated administrators must use `--call-as DELEGATED_ADMIN` +- Adding an already-targeted OU does **not** duplicate stacks — it only creates stacks for accounts missing them +- Selecting an OU automatically includes child OUs +- **Strict vs. Soft failure tolerance** is a key distinction: strict reduces concurrency on failure, soft does not +- The StackSet must be managed from the region where it was created + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-deletehtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-deletehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d8e59618e7fc62a2ac27b2f9e901eb744c2df07c --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-deletehtml.md @@ -0,0 +1,71 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stackinstances-delete.html +source: sources/AWSCloudFormation-latest-UserGuide-stackinstances-deletehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:57 + + + +## Overview + +This page describes how to delete stack instances from CloudFormation StackSets using either the AWS Console or AWS CLI. It covers account targeting (self-managed and service-managed permissions), deployment options like concurrency and failure tolerance, and the option to retain or fully delete stacks and their resources. + +## Key Concepts + +- **Deleting stacks from a StackSet** removes provisioned stack instances from target accounts/regions but does not delete the StackSet itself +- **Retain stacks option**: when enabled, stacks and their resources remain in the account but are disassociated from the StackSet; when disabled (`--no-retain-stacks`), stacks and resources are fully deleted +- **Deleting from a top-level OU** removes that OU as a StackSet target +- **Service-managed permissions**: deletion cascades to child OUs — specifying a parent OU deletes stacks from all child OUs too +- **Account filter types** (service-managed only): None, Intersection, Difference, Union — controls which accounts within OUs are affected +- **Concurrency modes**: *Strict failure tolerance* (reduces concurrency on failure) vs *Soft failure tolerance* (maintains concurrency regardless of failures) +- **Region concurrency**: Sequential (one at a time) or Parallel (multiple regions simultaneously) +- `MaxConcurrentCount` must not exceed `FailureToleranceCount` + 1 +- **Delegated administrator** must include `--call-as DELEGATED_ADMIN` + +## Commands and Syntax + +**Delete stacks (self-managed permissions):** +```bash +aws cloudformation delete-stack-instances --stack-set-name my-stackset \ + --accounts account_ID_1 account_ID_2 \ + --regions us-west-2 us-east-1 \ + --no-retain-stacks \ + --operation-preferences MaxConcurrentCount=1,FailureToleranceCount=0 +``` + +**Delete stacks (service-managed/Organizations permissions):** +```bash +aws cloudformation delete-stack-instances --stack-set-name my-stackset \ + --deployment-targets OrganizationalUnitIds=ou-rcuk-1x5jlwo,ou-rcuk-slr5lh0a \ + --regions us-west-2 us-east-1 \ + --no-retain-stacks \ + --operation-preferences MaxConcurrentCount=1,FailureToleranceCount=0 +``` + +**Verify deletion:** +```bash +aws cloudformation describe-stack-set-operation --stack-set-name my-stackset \ + --operation-id ddf16f54-ad62-4d9b-b0ab-3ed8e9example +``` + +## Relationships + +- **StackSets concepts** — this is one operation in the StackSet lifecycle (create → update → delete instances → delete StackSet) +- **AWS Organizations** — service-managed permissions use OUs and organization root for targeting +- **DeleteStackInstances API** — the underlying API call +- **describe-stack-set-operation** — used to verify operation status after deletion +- **Retain stacks** — connects to stack lifecycle management; retained stacks become independent CloudFormation stacks + +## Exam-Relevant Points + +- `--no-retain-stacks` deletes the actual stacks and resources; `--retain-stacks` keeps them but removes them from the StackSet +- Deleting from an OU with service-managed permissions **automatically includes child OUs** +- `MaxConcurrentCount` must be ≤ `FailureToleranceCount + 1` +- Delegated administrators must use `--call-as DELEGATED_ADMIN` +- Deletion stops and won't proceed to remaining Regions once the failure tolerance limit is reached +- Account filter types (Intersection, Difference, Union) allow fine-grained control over which accounts in an OU are targeted +- You must specify both accounts/OUs **and** regions — deletion is scoped to the intersection of both + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-overridehtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-overridehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..595a11e474bf27e90a285af35e15679d0793cdf1 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-overridehtml.md @@ -0,0 +1,61 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stackinstances-override.html +source: sources/AWSCloudFormation-latest-UserGuide-stackinstances-overridehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:57 + + + +## Overview +This page explains how to override CloudFormation StackSet parameter values on individual stack instances by account and Region. Overrides let you customize stack behavior (e.g., dev vs. prod settings) without modifying the StackSet template itself. Overrides persist through StackSet updates — overridden parameters are not reverted during updates unless explicitly reset. + +## Key Concepts +- **Parameter overrides** apply per-account and per-Region to stack instances within a StackSet +- You can only override parameter **values**, not add/delete parameters (that requires a template update) +- Overridden values are **sticky** — StackSet updates do not revert them +- To reset overrides, you must explicitly choose "Set to StackSet value" +- New parameters added to a StackSet template must be deployed to all stacks first before they can be overridden individually +- For service-managed (Organizations) permissions: overrides only apply to accounts **currently** in the target OU — future accounts added to the OU get StackSet defaults, not overridden values + +## Commands and Syntax + +**Override parameters (self-managed permissions):** +```bash +aws cloudformation update-stack-instances --stack-set-name my-stackset \ + --parameter-overrides ParameterKey=Subnets,ParameterValue=subnet-1baa3351\\,subnet-27b86940 \ + --accounts account_id --regions us-east-1 +``` + +**Override parameters (service-managed permissions):** +```bash +aws cloudformation update-stack-instances --stack-set-name my-stackset \ + --parameter-overrides ParameterKey=Subnets,ParameterValue=subnet-1baa3351\\,subnet-27b86940 \ + --deployment-targets OrganizationalUnitIds=ou-rcuk-1x5j1lwo \ + --regions us-east-1 +``` + +**Verify override operation:** +```bash +aws cloudformation describe-stack-set-operation --operation-id operation_ID +``` + +**Delegated administrator:** append `--call-as DELEGATED_ADMIN` to commands. + +## Relationships +- **StackSets** — parent concept; overrides customize individual stack instances within a StackSet +- **Stack instances** (`update-stack-instances`) — the API target for applying overrides +- **AWS Organizations / OUs** — service-managed permissions use OUs as deployment targets +- **Deployment options** — failure tolerance, concurrency mode (strict vs. soft), and Region concurrency (sequential vs. parallel) control how overrides roll out +- Related pages: "Add stacks to StackSets" (setting overrides at creation time) + +## Exam-Relevant Points +- Overrides are set via `update-stack-instances`, **not** `update-stack-set` +- Overridden parameters **survive StackSet updates** — they retain their overridden value +- You **cannot** override a newly added parameter until the StackSet update with that parameter has been deployed to all stacks +- For Organizations-managed StackSets, overrides only affect **current** OU members — new accounts get StackSet defaults +- Two concurrency modes: **Strict failure tolerance** (reduces concurrency on failures) vs. **Soft failure tolerance** (maintains concurrency regardless of failures) +- To revert overrides, explicitly set parameters back to StackSet values; there is no automatic revert + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-account-gatinghtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-account-gatinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..183b933da0742d233a38413dfbca6ed99c1e98eb --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-account-gatinghtml.md @@ -0,0 +1,58 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-account-gating.html +source: sources/AWSCloudFormation-latest-UserGuide-stacksets-account-gatinghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:57 + + + +## Overview +Account gates are an optional CloudFormation StackSets feature that lets you run a prerequisite check (via an AWS Lambda function) on target accounts before StackSets operations proceed. If the Lambda function returns `SUCCEEDED`, operations continue; if it returns `FAILED`, operations halt for that account. This mechanism prevents deployments to accounts that don't meet required conditions. + +## Key Concepts +- **Account gate** — a Lambda-based prerequisite check invoked before StackSets operations begin in a target account +- The Lambda function must return either `SUCCEEDED` or `FAILED` +- If no account gate Lambda is configured, CloudFormation skips the check and proceeds normally +- A failed account gate check counts toward the StackSet operation's **failure tolerance** threshold +- Account gating is **exclusive to StackSets** — not available for other CloudFormation operations +- Common use case: verifying no active/unresolved CloudWatch alarms exist on the target account + +## Commands and Syntax +**Required Lambda function name:** `AWSCloudFormationStackSetAccountGate` (must be exactly this name) + +**Required IAM permissions on the execution role:** +```json +{ + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": ["lambda:InvokeFunction"], + "Resource": "*" + } + ] +} +``` + +**Sample CloudFormation templates:** +- `AccountGateSucceeded.yml` — always returns `SUCCEEDED` +- `AccountGateFailed.yml` — always returns `FAILED` +- Located at: `s3://cloudformation-stackset-sample-templates-us-east-1/` + +## Relationships +- **StackSets operations** — account gates are invoked at the start of stack operations per target account +- **Failure tolerance** — failed gate checks consume failure tolerance quota (see StackSet operation options) +- **AWSCloudFormationStackSetExecutionRole** — must include `lambda:InvokeFunction` permission; without it, the gate check is silently skipped +- **AWS Lambda** — the gate function is a standard Lambda function with a required naming convention +- **Trust policies** — target account must have a trust relationship with the administrator account + +## Exam-Relevant Points +- The Lambda function **must** be named exactly `AWSCloudFormationStackSetAccountGate` +- If the execution role lacks `lambda:InvokeFunction` permission, CloudFormation **skips** the gate (does not fail) +- Failed gate checks count against the **failure tolerance** setting +- Account gating is **StackSets-only** — not available for regular CloudFormation stack operations +- Both the Lambda invoke permission and cross-account trust relationship are required for the feature to work + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-bestpracticeshtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-bestpracticeshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e1b559dc20f13beef50ff14f4c6d8e8a546b4825 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-bestpracticeshtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-bestpractices.html +source: sources/AWSCloudFormation-latest-UserGuide-stacksets-bestpracticeshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:58 + + + +## Overview +This page covers best practices for working with AWS CloudFormation StackSets, organized around three phases: defining templates, creating/adding stacks, and updating stacks. The guidance focuses on avoiding conflicts, controlling rollout speed, and managing risk when deploying infrastructure across multiple accounts and regions. + +## Key Concepts +- **Global resource naming conflicts**: IAM roles and S3 buckets (global resources) can collide when deployed to multiple regions in the same account — names must be unique. +- **Single template, single parameter set**: A StackSet uses one template with one parameter set across all associated accounts; design templates to balance control vs. standardization. +- **Granular templates**: Keep templates focused so you can manage different resource groups independently. +- **Store templates in S3**: Recommended practice for template storage. +- **Deployment options**: `Maximum Concurrent Accounts` and `Failure Tolerance` control rollout speed and risk; `Region Order` sets deployment sequence. +- **One operation at a time**: Only one operation is permitted on a StackSet at a time — plan updates to avoid blocking. + +## Commands and Syntax +No CLI commands on this page. Key deployment parameters: +- **Maximum Concurrent Accounts** — how many accounts are updated simultaneously +- **Failure Tolerance** — how many failures are allowed before the operation stops +- **Region Order** — sequence in which regions are deployed + +Conservative deployment: `MaxConcurrentAccounts=1`, `FailureTolerance=0`, single region first. + +## Relationships +- **CloudFormation best practices** — general CFN best practices apply and are referenced +- **IAM roles / S3 buckets** — global resources requiring special naming consideration in multi-region deployments +- **Stack instances** — each account+region combination creates one stack instance; total instances = accounts × regions +- **StackSet operations** — relates to create, update, and delete StackSet operations (serialized) + +## Exam-Relevant Points +- Global resources (IAM roles, S3 buckets) can cause naming conflicts across regions in the same account — a common exam trap. +- A StackSet has **one template and one parameter set** shared across all accounts/regions. +- Only **one operation at a time** is allowed per StackSet. +- Conservative rollout: `MaxConcurrentAccounts=1`, `FailureTolerance=0`, start with lowest-impact region. +- Test updates on a few accounts first before rolling out to all stack instances. +- Use **multiple StackSets** for more granular update control over individual stacks. +- Total stack instances = number of accounts × number of regions (e.g., 20 accounts × 2 regions = 40 instances). + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-conceptshtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-conceptshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..0370b51698af998b5740ca9b1936591469b7ce5b --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-conceptshtml.md @@ -0,0 +1,71 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html +source: sources/AWSCloudFormation-latest-UserGuide-stacksets-conceptshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:58 + + + +## Overview + +CloudFormation StackSets enable you to deploy, update, and delete stacks across multiple AWS accounts and Regions from a single administrator account using a single template. This page defines the core terminology — administrator/target accounts, permission models, stack instances, operations, operation options, tags, and status codes. + +## Key Concepts + +- **Administrator account**: The AWS account that creates and manages the StackSet. For service-managed permissions, this is the organization's management account or a delegated administrator. +- **Target account**: The account into which stacks are deployed. Requires a trust relationship with the administrator account. +- **StackSet**: A regional resource that serves as a container for stacks deployed across accounts and Regions, all based on the same template (customizable via parameters). +- **Stack instance**: A reference to a stack in a target account/Region. Can exist *without* a stack (e.g., if creation failed). Associates with exactly one StackSet. +- **Self-managed permissions**: You manually create IAM roles to establish trust between administrator and target accounts. Can deploy to any account where you can create IAM roles. +- **Service-managed permissions**: Leverages AWS Organizations; StackSets creates IAM roles automatically. Supports automatic deployments to new accounts added to the organization. +- **Delegated administrator**: A member account registered to administer StackSets on behalf of the organization (alternative to using the management account). +- **A StackSet is a regional resource** — you can only view/modify it from the Region where it was created. +- Template updates always affect **all** stacks in the StackSet; you cannot selectively update only some. +- You can only delete a StackSet when it has **zero** stack instances. +- **Retain Stacks** option: removes stacks from the StackSet but leaves them running independently in their accounts. + +## Commands and Syntax + +No CLI commands on this page, but key API operations referenced: +- `CreateStackSet` / `UpdateStackSet` / `DeleteStackInstances` / `DeleteStackSet` +- To fix an `INOPERABLE` stack instance: call `DeleteStackInstances` with `RetainStacks=true`, then delete the stack manually. + +## Operation Options + +| Option | Description | +|--------|-------------| +| **Maximum concurrent accounts** | Max number/percentage of accounts acted on simultaneously (per Region). Rounds down for percentages. | +| **Concurrency mode** | `Strict Failure Tolerance` limits max concurrent accounts to failure tolerance + 1. | +| **Failure tolerance** | Max number/percentage of failures per Region before the operation stops. Rounds down for percentages. | +| **Region concurrency** | `Sequential` (default, one Region at a time in deployment order) or `Parallel` (all Regions simultaneously). | +| **Retain stacks** | Available on delete; keeps stacks running independently after removal from StackSet. | + +## Status Codes + +**StackSet operation**: `RUNNING`, `SUCCEEDED`, `FAILED`, `QUEUED` (service-managed auto-deployments), `STOPPING`, `STOPPED` + +**Stack instance**: `CURRENT`, `OUTDATED`, `INOPERABLE`, `CANCELLED`, `FAILED`, `FAILED_IMPORT`, `PENDING`, `RUNNING`, `SKIPPED_SUSPENDED_ACCOUNT`, `SUCCEEDED` + +## Relationships + +- **AWS Organizations**: Required for service-managed permissions; enables automatic deployments and delegated administrator. +- **IAM**: Self-managed permissions require manually created IAM roles for cross-account trust. +- **CloudFormation Stacks**: Each stack instance maps to a CloudFormation stack in a target account/Region. +- **Billing/Cost Allocation Tags**: StackSet tags propagate to all stacks and resources; useful for cost tracking. + +## Exam-Relevant Points + +- StackSets is a **regional** resource — must be managed from the Region where created. +- Template changes apply to **all** stacks; no selective updates. +- **Self-managed** = you create IAM roles; **service-managed** = Organizations creates them for you. +- `INOPERABLE` status requires `DeleteStackInstances` with `RetainStacks=true`, then manual stack deletion. +- `OUTDATED` means a create/update operation failed or was stopped before completing. +- Percentage-based settings (failure tolerance, max concurrent) **round down**. +- A StackSet **cannot be deleted** until all stack instances are removed. +- `QUEUED` status only applies to service-managed automatic deployments. +- `SKIPPED_SUSPENDED_ACCOUNT` — operations skip suspended accounts rather than failing. +- Failure tolerance is evaluated **per Region**; exceeding it in any Region sets the overall operation to `FAILED` and cancels remaining Regions. + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-deletehtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-deletehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..35577b6b0ce5f55fa4396cb09770549fa9fe128f --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-deletehtml.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-delete.html +source: sources/AWSCloudFormation-latest-UserGuide-stacksets-deletehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:58 + + + +## Overview +This page covers the process of deleting CloudFormation StackSets, including the prerequisite of removing all stack instances first, deletion via console and CLI, and optional cleanup of associated IAM service roles. + +## Key Concepts +- **Prerequisite**: You must delete all stack instances from a StackSet before you can delete the StackSet itself. +- **Delegated administrator**: When acting as a delegated admin, you must include `--call-as DELEGATED_ADMIN` in CLI commands. +- **Post-deletion status**: Deleted StackSets show a status of `DELETED` in `list-stack-sets` output. +- **Service role cleanup**: IAM roles used by StackSets can optionally be deleted after the StackSet is removed. +- **Self-managed StackSets** use manually created IAM roles. +- **Service-managed StackSets** use auto-created roles with suffixes `CloudFormationStackSetsOrgAdmin` (management account) and `CloudFormationStackSetsOrgMember` (target accounts). + +## Commands and Syntax + +**Delete a StackSet:** +```bash +aws cloudformation delete-stack-set --stack-set-name my-stackset +``` + +**Verify deletion:** +```bash +aws cloudformation list-stack-sets +``` + +**Delete an IAM service role:** +```bash +aws iam delete-role --role-name role-name +``` + +**Delegated admin variant:** +```bash +aws cloudformation delete-stack-set --stack-set-name my-stackset --call-as DELEGATED_ADMIN +``` + +## Relationships +- **Depends on**: Deleting stack instances first (`stackinstances-delete`) +- **Related to**: Self-managed permissions setup (`stacksets-prereqs-self-managed`) +- **Related to**: Service-managed StackSets and Organizations trusted access / service-linked roles +- **Related to**: IAM role lifecycle management (`id_roles_manage_delete`) + +## Exam-Relevant Points +- You **cannot** delete a StackSet that still contains stack instances — all instances must be deleted first. +- Deleted StackSets appear with `DELETED` status in `list-stack-sets` results (they are not immediately purged). +- Service-managed StackSet roles follow a naming convention: `CloudFormationStackSetsOrgAdmin` and `CloudFormationStackSetsOrgMember`. +- Delegated administrators must explicitly pass `--call-as DELEGATED_ADMIN` for StackSet operations. +- Cleaning up IAM roles after StackSet deletion is optional but recommended as a security best practice. + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-drifthtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-drifthtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b7b98ec04bdd68bc2bb8cea399709ec0413581d7 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-drifthtml.md @@ -0,0 +1,73 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-drift.html +source: sources/AWSCloudFormation-latest-UserGuide-stacksets-drifthtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:59 + + + +## Overview +This page covers how to perform drift detection on CloudFormation StackSets to identify stack instances whose actual resource configurations have diverged from their expected template-defined state. It explains the drift detection mechanism, console and CLI procedures, and how to stop a running drift detection operation. + +## Key Concepts +- **Drift** = when a resource's current state differs from its expected state as defined in the stack template and input parameters +- Drift detection on a StackSet performs drift detection on **every stack instance** in the StackSet +- Drift hierarchy: resource drifted → stack drifted → stack instance drifted → StackSet drifted (any single drifted child causes the parent to be marked `DRIFTED`) +- **Unmanaged changes only**: drift detection identifies changes made **outside** CloudFormation; changes made via CloudFormation directly to a stack (not at StackSet level) are **not** considered drift +- Parameter overrides are respected — drift detection evaluates each stack against its own effective parameters +- Only **one** drift detection operation can run on a given StackSet at a time +- Drift results from running detection directly on a stack (not through StackSets) are **not** visible on the StackSets console page +- You cannot view drift details for a stack in a different Region/account than the one you're signed into + +## Commands and Syntax + +**Initiate drift detection:** +```bash +aws cloudformation detect-stack-set-drift --stack-set-name +``` + +**Monitor drift detection progress:** +```bash +aws cloudformation describe-stack-set-operation \ + --stack-set-name --operation-id +``` +Returns `StackSetDriftDetectionDetails` with counts: `DriftedStackInstancesCount`, `InSyncStackInstancesCount`, `InProgressStackInstancesCount`, `FailedStackInstancesCount`, `TotalStackInstancesCount`, and overall `DriftStatus`. + +**Review results after completion:** +```bash +aws cloudformation describe-stack-set --stack-set-name +aws cloudformation list-stack-instances --stack-set-name \ + --filters Name=DRIFT_STATUS,Values=DRIFTED +aws cloudformation describe-stack-instance --stack-set-name \ + --stack-instance-account --stack-instance-region +aws cloudformation list-stack-instance-resource-drifts \ + --stack-set-name --stack-instance-account \ + --stack-instance-region --operation-id \ + --stack-instance-resource-drift-statuses MODIFIED DELETED +``` + +**Stop a drift detection operation:** +```bash +aws cloudformation stop-stack-set-operation \ + --stack-set-name --operation-id +``` + +## Relationships +- **Stack-level drift detection**: StackSet drift detection delegates to individual stack drift detection (`using-cfn-stack-drift`) +- **Parameter overrides**: overridden parameters (`stackinstances-override`) are accounted for during drift evaluation +- **StackSet operations**: drift detection is a StackSet operation, viewable via Operations tab alongside updates, creates, etc. +- **IAM roles**: uses `AWSCloudFormationStackSetAdministrationRole` and `AWSCloudFormationStackSetExecutionRole` + +## Exam-Relevant Points +- Drift detection only catches **out-of-band changes** (outside CloudFormation); direct CloudFormation stack updates are not drift +- Only one drift detection operation per StackSet at a time +- Parameter overrides are respected during drift evaluation +- Drift status values: `DRIFTED`, `IN_SYNC`, `NOT_CHECKED` +- Resource drift statuses include `MODIFIED` and `DELETED` +- `list-stack-instance-resource-drifts` shows property-level differences (`PropertyPath`, `ActualValue`, `ExpectedValue`, `DifferenceType`) +- You can filter `list-stack-instances` by `DRIFT_STATUS` +- Cross-account/cross-region stack drift details cannot be viewed from a different signed-in account/region + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-getting-started-create-self-managed.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-getting-started-create-self-managed.md new file mode 100644 index 0000000000000000000000000000000000000000..fb46b20d3fc6eac866484824559a803c2c250306 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-getting-started-create-self-managed.md @@ -0,0 +1,75 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-getting-started-create-self-managed.html +source: sources/AWSCloudFormation-latest-UserGuide-stacksets-getting-started-create-self-managed.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:59 + + + +## Overview + +This page describes how to create CloudFormation StackSets using **self-managed permissions**, which requires manually setting up IAM service roles to establish trust between the administrator account and target accounts. It covers both the AWS Console and AWS CLI workflows for creating the StackSet container and deploying stack instances across multiple accounts and Regions. + +## Key Concepts + +- **Self-managed permissions** require you to pre-create IAM service roles that establish trust between the administering account and target accounts (unlike service-managed/Organizations-based permissions) +- A StackSet is created in two logical steps: (1) create the StackSet container, (2) deploy stack instances into target accounts/Regions +- **Execution configuration** controls how operations are handled: + - **Active**: non-conflicting operations run concurrently; conflicting ones are queued + - While operations are running/queued, all incoming operations are queued regardless of conflict status +- **Concurrency mode** has two options: + - **Strict failure tolerance**: reduces concurrency when failures occur, staying within FailureToleranceCount + 1 + - **Soft failure tolerance**: maintains specified concurrency level regardless of failures +- **Region concurrency**: Sequential (one at a time) or Parallel (multiple concurrently) +- **MaxConcurrentCount** must not exceed **FailureToleranceCount + 1** +- You can include the administrator account ID as a target if you want stacks deployed there too + +## Commands and Syntax + +```bash +# 1. Create the StackSet container +aws cloudformation create-stack-set \ + --stack-set-name my-stackset \ + --template-url https://s3.region-code.amazonaws.com/amzn-s3-demo-bucket/MyApp.template \ + --parameters ParameterKey=KeyPairName,ParameterValue=TestKey + +# 2. List StackSets to verify creation +aws cloudformation list-stack-sets + +# 3. Deploy stack instances to accounts/Regions +aws cloudformation create-stack-instances \ + --stack-set-name my-stackset \ + --accounts account_ID_1 account_ID_2 \ + --regions us-west-2 us-east-1 \ + --operation-preferences MaxConcurrentCount=1,FailureToleranceCount=0 + +# 4. Check operation status +aws cloudformation describe-stack-set-operation \ + --stack-set-name my-stackset \ + --operation-id operation_ID +``` + +**Operation preferences** support either count-based or percentage-based settings: +- Count: `MaxConcurrentCount`, `FailureToleranceCount` +- Percentage: `MaxConcurrentPercentage`, `FailureTolerancePercentage` + +## Relationships + +- **Prerequisite**: IAM service roles must be created first — see "Grant self-managed permissions" (`stacksets-prereqs-self-managed`) +- **Alternative**: Service-managed (Organizations-based) permissions offer automatic trust without manual IAM role setup +- **IAM capabilities acknowledgment** is required if the template creates IAM resources +- **Tags** applied to StackSet resources integrate with AWS Billing cost allocation tags +- Related APIs: `CreateStackSet`, `CreateStackInstances`, `DescribeStackSetOperation` + +## Exam-Relevant Points + +- Self-managed permissions require **manual IAM role setup** before StackSet creation — this is the key differentiator from service-managed permissions +- The constraint **MaxConcurrentCount ≤ FailureToleranceCount + 1** is a specific rule worth memorizing +- Failure tolerance controls are **per Region** — once the limit is reached in a Region, the operation stops and won't proceed to other Regions +- The StackSet is managed from a specific Region (chosen in the console) but deploys to multiple target Regions +- Two-step process: create StackSet container first, then create stack instances separately +- You cannot change execution settings while operations are running or queued + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-getting-startedhtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-getting-startedhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7d0817b2acbf3287e492c2445528b46d6a145d51 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-getting-startedhtml.md @@ -0,0 +1,66 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-getting-started.html +source: sources/AWSCloudFormation-latest-UserGuide-stacksets-getting-startedhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 21:59 + + + +## Overview + +This tutorial walks through using AWS CloudFormation StackSets via the AWS Management Console to deploy infrastructure across multiple AWS Regions within a single account. It uses a sample template that enables AWS Config, demonstrating how to create, monitor, update, extend, and clean up a StackSet — covering the core multi-region deployment workflow. + +## Key Concepts + +- **StackSets** allow creating, updating, or deleting stacks across multiple accounts and Regions with a single operation +- StackSets itself is free; charges apply only for the AWS resources created (e.g., AWS Config) +- **Self-managed permissions** require two IAM roles: `AWSCloudFormationStackSetAdministrationRole` and `AWSCloudFormationStackSetExecutionRole` +- The Region you manage the StackSet from does **not** affect which Regions you can deploy to +- **Region deployment order** is determined by the order Regions appear in the list (can be reordered) +- **Execution configuration: Active** enables concurrent non-conflicting operations; conflicting ones are queued +- **Maximum concurrent accounts** controls how many accounts are deployed to simultaneously (default: 1) +- **Failure tolerance** of 0 means any single failure stops deployment in the current Region and cancels remaining Regions +- **Region concurrency: Sequential** completes one Region before moving to the next +- **Concurrency mode: Strict failure tolerance** reduces account concurrency when failures occur +- **Retain stacks** option during deletion — if not enabled, stacks and their resources are deleted +- S3 buckets with `DeletionPolicy` attribute survive StackSet deletion and must be manually emptied then deleted +- Tags applied to StackSets propagate to resources created by the stacks + +## Commands and Syntax + +All operations in this tutorial use the **Console**, not CLI. Key procedures: + +1. **Create**: StackSets → Create StackSet → choose permissions model → select sample template → configure parameters → set deployment options (accounts, regions, concurrency) → Submit +2. **Monitor**: StackSet details → Operations tab → check operation status (`RUNNING` → `SUCCEEDED`) +3. **Update**: Actions → Edit StackSet details → modify parameters → re-specify accounts/regions → Submit +4. **Add stacks**: Actions → Add stacks to StackSet → specify new regions → Submit +5. **Delete stacks**: Actions → Delete stacks from StackSet → select all regions → ensure Retain stacks is OFF → Submit +6. **Delete StackSet**: Actions → Delete StackSet (only after all stacks removed) +7. **Clean up S3**: Empty bucket (`permanently delete`) → then Delete bucket + +Sample template URL: `s3://cloudformation-stackset-sample-templates-us-east-1/EnableAWSConfig.yml` + +## Relationships + +- **IAM Roles**: Requires pre-configured self-managed permission roles (see prerequisites for self-managed permissions) +- **AWS Config**: The sample template enables Config with a configuration recorder and delivery channel +- **AWS Organizations**: Alternative permission model (service-managed) for multi-account deployments +- **S3**: Config delivery channel creates S3 buckets with `DeletionPolicy`, requiring separate cleanup +- **Parameter overrides**: Stack instances can have parameter values overridden per account/region +- **CloudFormation Stacks**: Each stack instance in a StackSet is a regular CloudFormation stack in the target account/region + +## Exam-Relevant Points + +- A StackSet can only be deleted **after all stack instances have been removed** +- Two specific IAM roles are required for self-managed StackSets: `AWSCloudFormationStackSetAdministrationRole` (admin) and `AWSCloudFormationStackSetExecutionRole` (execution) +- Failure tolerance of 0 = any failure stops all deployment +- Resources with `DeletionPolicy` survive stack deletion and require manual cleanup +- S3 buckets must be **emptied before they can be deleted** +- Region deployment order is configurable and significant +- The StackSet management Region is independent of deployment target Regions +- Sequential region concurrency = one Region completes before the next begins +- StackSets is free; you pay only for provisioned resources + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-importhtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-importhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ea1965b71553f63bd6dd89aed60616ecbe80d85d --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-importhtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-import.html +source: sources/AWSCloudFormation-latest-UserGuide-stacksets-importhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:00 + + + +## Overview +This page describes the stack import operation in AWS CloudFormation StackSets, which allows migrating existing standalone stacks into new or existing StackSets. Self-managed StackSets can import stacks from the administrator account or target accounts across Regions, while service-managed StackSets can import any stack within the same AWS Organizations as the management account. + +## Key Concepts +- **Stack import** migrates existing stacks into a StackSet in a single operation +- **Self-managed StackSets**: can import from administrator account or different target accounts/Regions +- **Service-managed StackSets**: can import any stack in the same AWS Organizations as the management account +- A stack can only belong to **one StackSet** at a time +- Import supports up to **10 stacks via inline stack IDs** or up to **200 stacks via S3 object** +- The `NoEcho` property is **not supported** — stacks using it cannot be imported into new StackSets +- Custom parameter overrides on stacks are preserved during import +- Stack tags can be applied to the StackSet by specifying them as parameters during import + +## Commands and Syntax +- No specific CLI commands listed on this page; sub-pages cover self-managed and service-managed import procedures +- To update parameters on imported stack instances, you **must** use "Override StackSet parameters" — the "Edit StackSet details" option does not work for imported instances + +## Relationships +- **StackSet parameter overrides**: imported stacks require the override mechanism (`stackinstances-override`) rather than normal StackSet editing +- **CloudFormation quotas**: StackSets quotas and stack instance limits apply during import (`cloudformation-limits`) +- **AWS Organizations**: service-managed imports depend on Organizations membership +- Related sub-topics: self-managed import, service-managed import, reverting imports + +## Exam-Relevant Points +- A stack can belong to **only one StackSet** — this is a hard constraint +- Import limits: **10 inline / 200 via S3** +- `NoEcho` blocks import into **new** StackSets +- Imported stack instance parameters can only be changed via **parameter overrides**, not via editing the StackSet directly +- Self-managed vs. service-managed distinction: self-managed = specific accounts/Regions; service-managed = same AWS Organizations scope + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-associate-stackset-with-orghtm.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-associate-stackset-with-orghtm.md new file mode 100644 index 0000000000000000000000000000000000000000..dd5286d0202536bf9d430cf937e283856ff588df --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-associate-stackset-with-orghtm.md @@ -0,0 +1,102 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-associate-stackset-with-org.html +source: sources/AWSCloudFormation-latest-UserGuide-stacksets-orgs-associate-stackset-with-orghtm.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:00 + + + +## Overview + +This page explains how to create CloudFormation StackSets using **service-managed permissions**, which leverage AWS Organizations to automatically deploy stacks across accounts and Regions without manually creating IAM roles in each target account. It covers considerations, console-based creation, and AWS CLI procedures for deploying to entire organizations, specific OUs, or filtered account sets. + +## Key Concepts + +- **Service-managed permissions** let CloudFormation automatically create the required IAM roles in target accounts (vs. self-managed where you create them yourself) +- Requires **trusted access** with AWS Organizations to be activated +- StackSets can be initiated by the **management account** or **delegated administrator accounts**, but operations are performed by the management account +- CloudFormation **never deploys stacks to the management account** itself, even if it's in the target OU +- Targeting a **parent OU automatically includes child OUs** +- **Account filter types** control which accounts within OUs receive deployments: + - **None** (default) — all accounts in OU + - **Intersection** — only specified accounts within OU + - **Difference** — all accounts except specified ones + - **Union** — OU accounts plus additional specified accounts +- **Automatic deployment** can add/remove stacks when accounts join/leave target OUs +- **Account removal behavior**: retain or delete stack resources when an account leaves +- **Concurrency modes**: Strict failure tolerance (reduces concurrency on failure) vs. Soft failure tolerance (maintains concurrency regardless) +- `MaxConcurrentCount` must not exceed `FailureToleranceCount` + 1 +- **Limitations**: no nested stacks, no macros/transforms with service-managed permissions +- Delegated administrators have **full permissions** to deploy to any account; management account cannot restrict them to specific OUs +- Maximum **10 StackSet dependencies** + +## Commands and Syntax + +**Create StackSet (deploy to org with auto-deployment):** +```bash +aws cloudformation create-stack-set \ + --stack-set-name my-stackset \ + --template-url https://s3.region-code.amazonaws.com/amzn-s3-demo-bucket/MyApp.template \ + --permission-model SERVICE_MANAGED \ + --auto-deployment Enabled=true,RetainStacksOnAccountRemoval=true +``` + +**Create stack instances (org-wide):** +```bash +aws cloudformation create-stack-instances --stack-set-name my-stackset \ + --deployment-targets OrganizationalUnitIds=r-a1b2c3d4e5 \ + --regions us-west-2 us-east-1 \ + --operation-preferences MaxConcurrentCount=1,FailureToleranceCount=0 +``` + +**Create stack instances (specific OUs):** +```bash +aws cloudformation create-stack-instances --stack-set-name my-stackset \ + --deployment-targets OrganizationalUnitIds=ou-rcuk-1x5j1lwo,ou-rcuk-slr5lh0a \ + --regions us-west-2 us-east-1 +``` + +**Filter — intersection (only specific accounts in OU):** +```bash +--deployment-targets OrganizationalUnitIds=OU1,Accounts=A1,A2,AccountFilterType=INTERSECTION +``` + +**Filter — difference (exclude specific accounts):** +```bash +--deployment-targets OrganizationalUnitIds=OU1,Accounts=A1,A2,AccountFilterType=DIFFERENCE +``` + +**Delegated administrator flag:** +```bash +--call-as DELEGATED_ADMIN +``` + +**Verify operations:** +```bash +aws cloudformation list-stack-sets +aws cloudformation describe-stack-set-operation --stack-set-name my-stackset --operation-id operation_ID +``` + +## Relationships + +- **AWS Organizations**: Required foundation — trusted access must be enabled; targets are OUs and org root +- **IAM**: Service-managed permissions auto-create roles; contrasts with self-managed permissions where you create `AWSCloudFormationStackSetAdministrationRole` and `AWSCloudFormationStackSetExecutionRole` manually +- **Delegated administrators**: Organizations feature allowing non-management accounts to manage StackSets +- **Automatic deployment**: Links to account lifecycle events in Organizations +- **Execution configuration (Active mode)**: Concurrent non-conflicting operations for faster deployments + +## Exam-Relevant Points + +- Service-managed StackSets **do not deploy to the management account** — this is a common trick question +- `--permission-model SERVICE_MANAGED` is the CLI flag distinguishing from self-managed +- Delegated admins **cannot be restricted** to specific OUs by the management account +- `MaxConcurrentCount` ≤ `FailureToleranceCount` + 1 +- Service-managed StackSets **do not support nested stacks or macros/transforms** +- Account filter types (INTERSECTION, DIFFERENCE, UNION) and their behaviors +- `--call-as DELEGATED_ADMIN` is required when operating as a delegated administrator +- Automatic deployment settings are **StackSet-level only** — cannot be set per-OU or per-Region +- Use org root ID (e.g., `r-a1b2c3d4e5`) to target entire organization + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-manage-auto-deploymenthtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-manage-auto-deploymenthtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ca0faab4fb693d30cbd8b058c444eab9a80c1aa0 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-manage-auto-deploymenthtml.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-manage-auto-deployment.html +source: sources/AWSCloudFormation-latest-UserGuide-stacksets-orgs-manage-auto-deploymenthtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:00 + + + +## Overview +This page covers CloudFormation StackSets automatic deployment feature for AWS Organizations, which automatically deploys or removes stacks when accounts are added to, removed from, or moved between target organizational units (OUs). This feature only works with service-managed permissions. + +## Key Concepts +- **Automatic deployments** trigger when accounts are added to, removed from, or moved between target OUs +- When an account moves between OUs, CloudFormation deletes the old StackSet's stack and creates the new StackSet's stack automatically +- **Account removal behavior** controls whether stacks are deleted or retained when accounts leave a target OU +- Retained stacks remain in their current state but are no longer part of the StackSet +- Automatic deployments operate at the **StackSet level** — cannot be selectively applied to specific OUs, accounts, or Regions +- **Overridden parameter values** do NOT propagate to newly added accounts — they get StackSet defaults +- Automatic deployments **ignore account-level targeting filters** — new accounts in the org still get deployments +- **Dependency management**: max 10 dependencies per StackSet, max 100 dependencies per account (increasable via Service Quotas) +- Dependencies are removed when StackSets are deleted or Organizations are deactivated +- **Managed execution** is recommended with auto-deployments for concurrent processing across accounts + +## Commands and Syntax +```bash +# Enable automatic deployments with stack retention and dependencies +aws cloudformation update-stack-set --stack-set-name my-stackset \ + --use-previous-template --auto-deployment Enabled=true,RetainStacksOnAccountRemoval=true,DependsOn=ARN1,ARN2 + +# Disable automatic deployments +aws cloudformation update-stack-set --stack-set-name my-stackset \ + --use-previous-template --auto-deployment Enabled=false + +# Verify the update operation +aws cloudformation describe-stack-set-operation --operation-id operation_ID +``` + +## Relationships +- **AWS Organizations**: Automatic deployments depend on Organizations structure (OUs and accounts) +- **Service-managed permissions**: Required for automatic deployments (vs. self-managed) +- **StackSet operations**: Auto-deployments queue create/delete operations like manual ones +- **Managed execution**: Complementary feature that enables concurrent auto-deployment operations +- **Service Quotas**: Dependency limits can be increased through the Service Quotas console + +## Exam-Relevant Points +- Automatic deployments require **service-managed permissions** — not available with self-managed +- New accounts added to OUs get **StackSet default values**, not any overridden parameter values +- Account-level targeting filters are **ignored** by automatic deployments +- Moving an account between OUs triggers both a **delete** (old OU stack) and **create** (new OU stack) +- Dependency limits: **10 per StackSet**, **100 per account** +- Enable **managed execution** alongside auto-deployments for better performance at scale + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-prereqshtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-prereqshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ed2571b8944142ede63c80e1f4ba37b1edd26205 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-prereqshtml.md @@ -0,0 +1,40 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html +source: sources/AWSCloudFormation-latest-UserGuide-stacksets-prereqshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:00 + + + +## Overview +This page covers the prerequisites needed before creating CloudFormation StackSets, which allow you to perform stack operations (create, update, delete) across multiple AWS accounts and Regions in a single operation. The primary prerequisite is establishing the correct permissions model. + +## Key Concepts +- **StackSets** extend regular CloudFormation stacks to work across multiple accounts and Regions simultaneously. +- Two permission models exist for managing StackSets: + - **Self-managed permissions** — you manually create and manage IAM roles in each target account and Region. + - **Service-managed permissions** — AWS automatically handles role creation and permissions (uses AWS Organizations trusted access). +- Permissions must be configured **before** creating your first StackSet. + +## Commands and Syntax +No CLI commands or configuration syntax on this page — it serves as a navigation hub to three sub-topics: +1. Preparing for StackSet operations in opt-in Regions +2. Granting self-managed permissions +3. Activating trusted access with AWS Organizations + +## Relationships +- **CloudFormation Stacks** — StackSets are built on top of regular stacks. +- **IAM Roles** — self-managed StackSets require specific IAM roles (AWSCloudFormationStackSetAdministrationRole, AWSCloudFormationStackSetExecutionRole). +- **AWS Organizations** — service-managed StackSets require Organizations with trusted access enabled. +- **Opt-in Regions** — additional preparation needed for Regions disabled by default. + +## Exam-Relevant Points +- Know the two permission models: **self-managed** vs. **service-managed**. +- Self-managed = you create IAM roles yourself; service-managed = AWS handles roles via Organizations. +- Service-managed permissions require **AWS Organizations trusted access** to be activated. +- StackSets require prerequisite permissions to be in place **before** the first StackSet is created. +- Regions that are disabled by default require additional preparation for StackSet operations. + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-sampletemplateshtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-sampletemplateshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7464dffa21be319c0a0375f757672ee33b2a908b --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-sampletemplateshtml.md @@ -0,0 +1,58 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-sampletemplates.html +source: sources/AWSCloudFormation-latest-UserGuide-stacksets-sampletemplateshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:01 + + + +## Overview +This page provides links to sample CloudFormation templates designed for use with CloudFormation StackSets in enterprise environments. The templates focus on enabling AWS CloudTrail, AWS Config, AWS Config rules, and Amazon Data Lifecycle Manager default policies across multiple accounts or an organization. + +## Key Concepts +- **Sample templates are pre-built** for common enterprise governance tasks: enabling CloudTrail, Config, and compliance rules at scale via StackSets. +- **Security best practice**: When granting AWS Config access to an S3 bucket, restrict the bucket policy using the `AWS:SourceAccount` condition to ensure access is granted only on behalf of expected users. +- **Templates cover two categories**: service enablement (CloudTrail, Config) and compliance rules (checking CloudTrail enabled, root MFA, EIP attachment, EBS encryption). +- **Amazon Data Lifecycle Manager** templates enable default policies for EBS snapshots and EBS-backed AMIs across an organization or specific accounts. +- All sample templates are hosted in a public S3 bucket (`cloudformation-stackset-sample-templates-us-east-1`). + +## Commands and Syntax +No CLI commands on this page. The templates are referenced by S3 URL and would be used when creating a StackSet: + +``` +# Example: creating a StackSet from a sample template +aws cloudformation create-stack-set \ + --stack-set-name EnableCloudTrail \ + --template-url https://s3.amazonaws.com/cloudformation-stackset-sample-templates-us-east-1/EnableAWSCloudtrail.yml +``` + +Available sample templates: +| Template | URL | +|----------|-----| +| Enable CloudTrail | `EnableAWSCloudtrail.yml` | +| Enable Config | `EnableAWSConfig.yml` | +| Enable Config (org central logging) | `EnableAWSConfigForOrganizations.yml` | +| DLM EBS Snapshot Default Policy | `DataLifecycleManagerEBSSnapshotDefaultPolicy.yaml` | +| DLM AMI Default Policy | `DataLifecycleManagerAMIDefaultPolicy.yaml` | +| Config Rule: CloudTrail enabled | `ConfigRuleCloudtrailEnabled.yml` | +| Config Rule: Root MFA enabled | `ConfigRuleRootAccountMFAEnabled.yml` | +| Config Rule: EIPs attached | `ConfigRuleEipAttached.yml` | +| Config Rule: EBS encrypted | `ConfigRuleEncryptedVolumes.yml` | + +## Relationships +- **CloudFormation StackSets** — these templates are designed to be deployed as StackSets across multiple accounts/regions. +- **AWS CloudTrail** — templates enable trail creation and verify trails are active via Config rules. +- **AWS Config** — templates enable Config and deploy managed Config rules for compliance checking. +- **AWS Organizations** — the central logging Config template (`EnableAWSConfigForOrganizations.yml`) is designed for org-wide deployment. +- **Amazon Data Lifecycle Manager** — templates automate backup policies for EBS snapshots and AMIs across accounts. +- **S3 bucket policies** — the `AWS:SourceAccount` condition is critical when Config writes to S3. + +## Exam-Relevant Points +- StackSets sample templates provide **ready-made governance baselines** (CloudTrail, Config, compliance rules) for multi-account deployments. +- Always use `AWS:SourceAccount` in S3 bucket policies when allowing AWS Config access — this is a **security best practice** and a common exam topic around confused deputy prevention. +- Config rules available as sample templates check: **CloudTrail enabled**, **root account MFA enabled**, **EIPs attached**, **EBS volumes encrypted** — all common compliance checks. +- The distinction between **enabling Config** vs. **enabling Config for Organizations** (with central logging) is important for multi-account architecture questions. + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-troubleshootinghtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-troubleshootinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d642e704fcb9b763d48c8efc10a6061cc898e5f2 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-troubleshootinghtml.md @@ -0,0 +1,77 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-troubleshooting.html +source: sources/AWSCloudFormation-latest-UserGuide-stacksets-troubleshootinghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:01 + + + +## Overview + +This page covers common troubleshooting scenarios for AWS CloudFormation StackSets, including diagnosing stack operation failures, retrying failed operations, resolving deletion and import issues, and using the failure count feature to identify and remediate failed stack instances across accounts and regions. + +## Key Concepts + +- **OUTDATED status** — indicates a stack instance failed to create or update and is not in sync with the StackSet template +- **INOPERABLE status** — indicates a failed stack import operation; requires reverting the import before retrying +- **Termination protection** — if enabled on a stack, it will block stack instance deletion; must be disabled first +- **Failure tolerance vs. max concurrency** — max concurrency count can be at most one more than the failure tolerance count; a high failure tolerance can cause operations to return `SUCCEEDED` even when instances failed +- **FailedStackInstancesCount** — field in `StatusDetails` that reports how many stack instances failed during an operation +- **Common failure causes**: insufficient permissions, template errors, non-unique global resources (e.g., S3 buckets), nonexistent target accounts, missing trust relationships, resource limit exhaustion, StackSet stack count limits + +## Commands and Syntax + +**Get failure count for a specific operation:** +```bash +aws cloudformation describe-stack-set-operation --stack-set-name ss1 \ + --operation-id +# Check StatusDetails.FailedStackInstancesCount in output +``` + +**List all operations with failure counts:** +```bash +aws cloudformation list-stack-set-operations --stack-set-name ss1 +``` + +**Filter failed stack instances for a specific operation:** +```bash +aws cloudformation list-stack-set-operation-results --stack-set-name ss1 \ + --operation-id --filters Name=OPERATION_RESULT_STATUS,Values=FAILED +``` + +**List failed instances by detailed status and operation ID:** +```bash +aws cloudformation list-stack-instances --stack-set-name ss1 \ + --filters Name=DETAILED_STATUS,Values=FAILED Name=LAST_OPERATION_ID,Values= +``` + +**Get last operation ID for a specific stack instance:** +```bash +aws cloudformation describe-stack-instance --stack-set-name ss1 \ + --stack-instance-account 123456789012 --stack-instance-region us-east-2 +# Check LastOperationId in output +``` + +**Reverting a failed import:** Delete stack instances with `RetainStacks` enabled, then fix and retry the import. + +## Relationships + +- **StackSets prerequisites** — trust relationships between admin and target accounts (`AWSCloudFormationStackSetAdministrationRole` / `AWSCloudFormationStackSetExecutionRole`) +- **CloudFormation quotas** — stack count limits per StackSet +- **StackSet operation options** — `MaxConcurrentCount` and `FailureToleranceCount` control deployment behavior +- **Stack instance deletion** — relates to termination protection settings on individual stacks +- **Stack import** — relates to importing existing stacks into StackSets + +## Exam-Relevant Points + +- A failed stack instance shows status `OUTDATED`; the underlying stack shows `DELETED` (failed create) or `FAILED` (failed update) +- Missing `AWSCloudFormationStackSetExecutionRole` with trust to `AWSCloudFormationStackSetAdministrationRole` is the most common failure cause for self-managed StackSets +- Max concurrency ≤ failure tolerance + 1; operations can return `SUCCEEDED` despite instance failures if within tolerance +- Termination protection must be disabled before stack instances can be deleted +- To revert a failed import: delete stack instances with `RetainStacks` enabled, then retry +- Use `--filters Name=OPERATION_RESULT_STATUS,Values=FAILED` with `list-stack-set-operation-results` to identify which accounts/regions failed +- `FailedStackInstancesCount` in `StatusDetails` gives the count of failures without needing to enumerate all instances + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-updatehtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-updatehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5b960b4179367daa34aa1ac2a941bd8c8409e8b8 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-updatehtml.md @@ -0,0 +1,78 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-update.html +source: sources/AWSCloudFormation-latest-UserGuide-stacksets-updatehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:01 + + + +## Overview +This page describes how to update an existing CloudFormation StackSet — modifying its template, parameters, tags, or deployment options — using either the AWS Management Console or the AWS CLI. It covers the full update workflow including deployment ordering, concurrency controls, and failure tolerance settings. + +## Key Concepts +- **StackSet updates** can change the template, parameters, tags, permissions, and execution configuration +- Updates are deployed **Region by Region** — CloudFormation completes updates in the first Region before moving to the next (unless parallel Region concurrency is chosen) +- **Execution configuration** cannot be changed while operations are running or queued +- **Concurrency mode** has two options: + - **Strict failure tolerance** — reduces concurrency when failures occur, staying within FailureToleranceCount + 1 + - **Soft failure tolerance** — maintains specified concurrency level regardless of failures +- **Region concurrency** can be **Sequential** (one at a time) or **Parallel** (multiple Regions concurrently) +- **MaxConcurrentCount** must not exceed **FailureToleranceCount + 1** +- Service-managed StackSets support up to **10 dependencies** (dependent StackSet ARNs) +- Templates containing IAM resources require explicit capability acknowledgment +- Delegated administrators must include `--call-as DELEGATED_ADMIN` in CLI commands + +## Commands and Syntax + +**Update a StackSet (self-managed permissions):** +```bash +aws cloudformation update-stack-set --stack-set-name my-stackset \ + --use-previous-template \ + --parameters ParameterKey=MaximumExecutionFrequency,ParameterValue=Twelve_Hours \ + --accounts account_ID_1 account_ID_2 \ + --regions us-west-2 us-east-1 \ + --operation-preferences MaxConcurrentCount=1,FailureToleranceCount=0 +``` + +**Update a StackSet (service-managed permissions):** +```bash +aws cloudformation update-stack-set --stack-set-name my-stackset \ + --use-previous-template \ + --parameters ParameterKey=MaximumExecutionFrequency,ParameterValue=Twelve_Hours \ + --deployment-targets OrganizationalUnitIds=ou-rcuk-1x5j1lwo,ou-rcuk-slr5lh0a \ + --regions us-west-2 us-east-1 \ + --operation-preferences MaxConcurrentCount=1,FailureToleranceCount=0 +``` + +**Verify update status:** +```bash +aws cloudformation describe-stack-set-operation \ + --operation-id operation_ID +``` + +**Key flags:** +- `--use-previous-template` — keep existing template +- `--operation-preferences` — control concurrency and failure tolerance (count-based or percentage-based) +- `--deployment-targets` — target OUs (service-managed only) +- `--accounts` — target accounts (self-managed only) + +## Relationships +- **StackSet creation** — updates build on the initial StackSet configuration +- **Stack instances** — adding/removing accounts and Regions is handled via `stackinstances-create` and `stackinstances-delete`, not through update +- **Parameter overrides** — per-stack parameter overrides are a separate operation (`stackinstances-override`) +- **IAM and permissions** — self-managed vs. service-managed permissions determine how targets are specified (`--accounts` vs `--deployment-targets`) +- **AWS Organizations** — service-managed StackSets can target OUs and support StackSet dependencies and auto-deployment +- **Concurrency mode** — relates to the broader concurrency-mode feature for StackSet operations + +## Exam-Relevant Points +- **MaxConcurrentCount ≤ FailureToleranceCount + 1** — this constraint is a common exam question +- Updates proceed **Region by Region sequentially by default**; parallel is an explicit option +- **Strict vs. Soft failure tolerance** — know the difference: strict reduces concurrency on failure, soft does not +- Delegated administrators require `--call-as DELEGATED_ADMIN` +- Count-based (`MaxConcurrentCount`, `FailureToleranceCount`) and percentage-based (`MaxConcurrentPercentage`, `FailureTolerancePercentage`) settings are mutually exclusive alternatives +- Service-managed StackSets support a **maximum of 10 dependencies** +- `describe-stack-set-operation` is used to verify update results + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackshtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1c33d80079fd56f5e2d7bc9a910f44dfd46cb9b0 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackshtml.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacks.html +source: sources/AWSCloudFormation-latest-UserGuide-stackshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:02 + + + +## Overview +CloudFormation stacks are the fundamental unit of resource management in AWS CloudFormation. A stack groups AWS resources together so they can be created, updated, and deleted as a single unit using a declarative template. This page covers stack lifecycle operations (create, update, delete), update methods (change sets vs. direct updates), rollback behavior, and the interfaces available for managing stacks. + +## Key Concepts +- **Stack**: A collection of AWS resources managed as a single unit — created, updated, and deleted together. +- **Template**: A JSON/YAML document that specifies resources and their configurations; deploying a template creates a stack. +- **Change sets**: JSON-formatted previews of proposed changes to a stack — lets you review before applying. Use when you want to avoid unintentional changes (e.g., verifying a database won't be replaced). +- **Direct update**: Submit changes and CloudFormation deploys them immediately — no preview step. +- **Atomic rollback on create**: If any resource fails to create, CloudFormation rolls back and deletes all resources that were created. +- **Delete retention on failure**: If a resource can't be deleted, remaining resources are retained until the stack can be successfully deleted. +- **Billing**: You are charged for stack resources for the time they were operating, even if you delete the stack immediately. +- **Drift detection**: Detects unmanaged (out-of-band) configuration changes to stack resources. +- **Resource import**: Existing AWS resources can be imported into a CloudFormation stack. +- **Stack refactoring**: Move resources between stacks. +- **Rollback triggers**: Roll back stack operations based on CloudWatch alarm breaches. + +## Commands and Syntax +No specific CLI commands on this page, but it references: +- AWS CLI: `aws cloudformation` command family (see `cloudformation` in AWS CLI Command Reference) +- AWS Tools for PowerShell: CloudFormation cmdlets +- Query API: Low-level HTTPS calls to CloudFormation API actions +- AWS CDK: Define infrastructure in TypeScript, Python, Java, .NET — provisions via CloudFormation + +## Relationships +- **Templates** → define what a stack contains (resources, parameters, outputs) +- **Change sets** → mechanism for safe stack updates +- **Update behaviors** → determines whether resources are updated without interruption, with interruption, or replaced +- **Drift detection** → monitors for out-of-band changes to stack-managed resources +- **StackSets** → extends stacks across multiple accounts/regions +- **AWS CDK** → higher-level abstraction that synthesizes to CloudFormation templates and stacks + +## Exam-Relevant Points +- CloudFormation treats stack resources as a single unit — all must succeed or all roll back on creation. +- **Change sets let you preview changes before applying** — critical for production safety; direct updates deploy immediately. +- Resources are **charged for the time they exist**, even if deleted shortly after creation. +- If a resource fails to delete, **remaining resources are retained** (not force-deleted). +- CloudFormation only updates **changed resources** — it compares submitted changes against current state. +- Updates may cause **no interruption, some interruption, or full replacement** depending on which properties change. +- Drift detection identifies resources modified outside of CloudFormation. +- Existing resources can be **imported** into stacks (not just created by them). + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-template-guidehtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-template-guidehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..eccfad890cbe9db865433f7821566402bc67ff9f --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-template-guidehtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-guide.html +source: sources/AWSCloudFormation-latest-UserGuide-template-guidehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:02 + + + +## Overview +This page covers how to create, store, validate, and use AWS CloudFormation templates — the JSON or YAML documents that define AWS resources for provisioning as stacks. It introduces template creation methods, storage options, validation tools, and key references for writing templates. + +## Key Concepts +- A CloudFormation template defines resources to create, update, or delete as part of a stack +- The only **required** section in a template is the **Resources** section (must declare at least one resource) +- Templates can be written in **JSON** or **YAML** format +- Three creation methods: **Infrastructure Composer** (visual), **text editor** (manual), **IaC generator** (reverse-engineer from existing resources) +- IaC generator works with resource types supported by the **Cloud Control API** in your Region +- Templates can be stored in **S3 buckets** or **Git repositories** (via Git sync) +- Console/CLI `validate-template` only checks **syntax**, not property value correctness +- Sample templates on GitHub pass cfn-lint and CIS Top 20 Guard rules but are **not production-ready** + +## Commands and Syntax +- **Validate template syntax**: `aws cloudformation validate-template` (CLI) or upload via console (auto-validates) +- **cfn-lint**: Validates templates against CloudFormation resource provider schemas (property values + best practices) +- **rain fmt**: Reformats templates (JSON↔YAML), preserves YAML comments, converts to short intrinsic function syntax +- **Common intrinsic functions**: `Ref`, `Sub`, `GetAtt`, `Join` +- **Common resource attributes**: `DependsOn` (ordering), `DeletionPolicy` (deletion behavior) +- Template file extensions: `.json`, `.yaml`, `.txt` + +## Relationships +- **S3**: Templates stored in S3 buckets; console/CLI auto-creates bucket on direct upload +- **Git sync**: Monitors a Git repo/branch for template changes, enabling GitOps-style deployments +- **Cloud Control API**: Powers IaC generator's ability to discover existing resources +- **Infrastructure Composer**: Visual designer that produces CloudFormation templates +- **CloudFormation Linter / Guard**: Validation toolchain for template quality and compliance +- **Stacks**: Templates are the input; stacks are the instantiated output + +## Exam-Relevant Points +- Only the **Resources** section is required in a template +- `validate-template` checks syntax only — use **cfn-lint** for property-level and best-practice validation +- Templates can be sourced from **S3 URLs** or **Git repositories** (Git sync) +- IaC generator creates templates from **existing unmanaged resources** using Cloud Control API +- `DependsOn` controls creation order; `DeletionPolicy` controls what happens when a resource is removed from a stack +- `Ref` returns parameter values or resource physical IDs; `GetAtt` returns specific resource attributes + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-changesetshtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-changesetshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c9ddbce532d29d9d0895fad07c59916313554570 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-changesetshtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html +source: sources/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-changesetshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:02 + + + +## Overview +CloudFormation change sets provide a preview mechanism for stack updates, allowing you to see how proposed changes will impact running resources before applying them. Change sets show which resources will be added, modified, or deleted, including before-and-after comparisons of resource properties and attributes, letting you make informed decisions before executing updates. + +## Key Concepts +- **Change set**: A preview of how proposed changes to a stack will affect running resources — no changes are made until you explicitly execute the change set +- **Non-destructive preview**: CloudFormation compares your stack with submitted changes to generate the change set without modifying the stack +- **Multiple change sets**: You can create as many change sets as needed to evaluate different change scenarios before committing +- **Change set limitations**: Change sets do **not** validate whether an update will succeed (e.g., account quotas, unsupported updates, insufficient permissions) +- **Automatic cleanup**: After executing a change set, CloudFormation removes **all** change sets associated with that stack (they're no longer applicable) +- **Rollback on failure**: If an update fails after execution, CloudFormation attempts to roll back resources to their original state +- **Drift-aware change sets**: A variant that accounts for drift (out-of-band changes) when previewing updates + +## Commands and Syntax +Change sets can be managed via Console, AWS CLI, or CloudFormation API. The four-step workflow: + +1. **Create** — Submit a modified template or modified input parameters; CloudFormation generates a diff +2. **View** — Inspect which resources will be added/modified/deleted, including property-level before/after comparison +3. **(Optional) Create additional** — Compare alternative change scenarios +4. **Execute** — Apply the chosen change set to update the stack + +Change sets can also be **deleted** to prevent accidental execution. + +## Relationships +- **Stack updates**: Change sets are the safe-update mechanism for CloudFormation stacks +- **Nested stacks**: Change sets support nested stacks for multi-stack previews +- **Drift detection**: Drift-aware change sets integrate with CloudFormation drift detection +- **Rollback behavior**: Ties into CloudFormation's automatic rollback on update failure +- **Update behaviors**: Related to resource-level update semantics (replacement vs. no interruption vs. some interruption) + +## Exam-Relevant Points +- Change sets **do not guarantee** a successful update — they only preview changes, not validate permissions, quotas, or resource update support +- After executing one change set, **all** change sets for that stack are deleted automatically +- Change sets show **property-level diffs** (before/after), not just resource-level add/modify/delete +- You can create **multiple change sets** simultaneously to compare different update strategies +- CloudFormation **does not modify the stack** when creating a change set — changes only happen on explicit execution +- Failed updates trigger **automatic rollback** to the original resource state + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-get-templatehtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-get-templatehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b63f9fd48c46947694afad6f9846eead501cc4bf --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-get-templatehtml.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-get-template.html +source: sources/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-get-templatehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:03 + + + +## Overview + +This page explains how to update an existing CloudFormation stack's template, covering both the console-based Infrastructure Composer approach and the AWS CLI approach, along with important considerations about how template changes affect resources. + +## Key Concepts + +- To modify stack resources or properties, you must update the stack's template — either from source control or by retrieving it from CloudFormation +- If you only need to change **parameters or settings** (e.g., SNS topic), you can reuse the existing template without retrieving a copy +- Changing a resource's **logical name** is equivalent to deleting and replacing that resource, which cascades to dependent resources +- Each resource property has an **update behavior** classification: + - **No interruption** — updates without disrupting the resource + - **Some interruptions** — partial disruption during update + - **Replacement** — resource is deleted and recreated +- Resources referenced via `Ref` or `Fn::GetAtt` will also be updated when the referenced resource changes +- You cannot add, modify, or delete a parameter used by a resource that doesn't support updates +- Some properties have constraints (e.g., RDS `AllocatedStorage` can only increase) +- Template validation (`validate-template`) checks syntax only, not property value validity +- CloudFormation may reject changes asynchronously because resources are processed in non-deterministic order by default + +## Commands and Syntax + +**Retrieve existing template:** +```bash +aws cloudformation get-template --stack-name +``` +Note: The output wraps the template in quotes — copy only the content between the outermost braces `{ ... }`. + +**Validate template syntax:** +```bash +aws cloudformation validate-template --template-body file://template.json +``` + +**Additional linting tools:** +- `cfn-lint` — CloudFormation Linter for deeper validation and best practices +- `rain fmt` — CloudFormation Rain formatter + +## Relationships + +- **Infrastructure Composer** — visual canvas for drag-and-drop template editing +- **Update behaviors** — links to the update behavior reference (no interruption, some interruptions, replacement) +- **Ref / Fn::GetAtt** — intrinsic functions that create implicit dependencies between resources, causing cascading updates +- **Change sets** — the next step after modifying a template (preview changes before applying) +- **Resource type reference** — documents per-property update behavior for every AWS resource + +## Exam-Relevant Points + +- Renaming a resource's logical name causes **replacement** (delete + create), and cascades to dependents +- `validate-template` checks **syntax only**, not semantic correctness of property values +- Update behaviors are per-property: know the three categories (No interruption, Some interruptions, Replacement) +- Resources updated via `Ref`/`Fn::GetAtt` dependencies are automatically updated when the referenced resource changes +- You cannot modify parameters tied to resources that don't support updates +- Property constraints (like RDS storage can only increase) cause partial stack update failures if violated + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-update-behaviorshtm.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-update-behaviorshtm.md new file mode 100644 index 0000000000000000000000000000000000000000..e0564f90cfb9b9bb6da29989aeb5b755c1463a4d --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-update-behaviorshtm.md @@ -0,0 +1,42 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html +source: sources/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-update-behaviorshtm.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:03 + + + +## Overview +This page explains how AWS CloudFormation handles resource updates when you modify a stack's template, describing three distinct update behaviors that determine the impact on running resources: no interruption, some interruption, and full replacement. + +## Key Concepts +- **Unchanged resources** continue running without disruption during a stack update +- **Update with No Interruption** — resource is updated in-place, no downtime, physical ID unchanged (e.g., updating CloudTrail trail properties) +- **Update with Some Interruption** — resource experiences partial disruption during reconfiguration (e.g., certain EC2 instance property changes) +- **Replacement** — resource is recreated with a **new physical ID**; CloudFormation creates the new resource first, updates references from dependent resources, then deletes the old one (e.g., changing an EC2 instance's `AvailabilityZone`) +- Adding or removing a property that requires replacement **triggers replacement even if the effective value doesn't change** +- The update behavior is **per-property, per-resource type** — documented in the AWS resource and property types reference +- Nested stacks always get an update initiated to check for changes, but only modified resources within them are actually updated + +## Commands and Syntax +No CLI commands on this page. The key operational guidance is: +- Consult the **AWS resource and property types reference** to determine which update behavior applies to each property before making changes +- Plan replacement operations by: taking snapshots, preparing for application interruption, verifying updated settings, restoring data to the new resource + +## Relationships +- **Change Sets** — use change sets to preview which update behavior will apply before executing +- **Nested Stacks** — updates cascade into nested stacks automatically +- **Resource References** — during replacement, CloudFormation re-points `Ref` and `GetAtt` from dependent resources to the new physical ID +- **RDS, EC2** — frequently cited as resources where certain property changes trigger replacement (e.g., RDS `Port`, EC2 `AvailabilityZone`) + +## Exam-Relevant Points +- Know the three update behaviors and which causes a new physical ID (**only Replacement**) +- Replacement creates the new resource **before** deleting the old one (create-before-delete) +- Simply **adding or removing** a replacement-required property triggers replacement, regardless of value +- The update behavior is **property-specific**, not resource-specific — different properties on the same resource type can have different behaviors +- Nested stack updates are always **initiated** but only **execute** on changed resources +- Changing `AvailabilityZone` on EC2 = replacement; changing `Port` on RDS DBInstance = replacement — classic exam examples + diff --git a/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-what-is-cfnstacksetshtml.md b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-what-is-cfnstacksetshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3b996bba561877d4eae0cbd13e36066068898534 --- /dev/null +++ b/entries/2026/03/11/AWSCloudFormation-latest-UserGuide-what-is-cfnstacksetshtml.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/what-is-cfnstacksets.html +source: sources/AWSCloudFormation-latest-UserGuide-what-is-cfnstacksetshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:03 + + + +## Overview +CloudFormation StackSets extends standard CloudFormation stacks by enabling you to create, update, or delete stacks across multiple AWS accounts and Regions in a single operation. An administrator account defines and manages a CloudFormation template, which is then used to provision stack instances into selected target accounts across specified Regions. + +## Key Concepts +- **StackSet**: A collection of resources defined in a template, deployed across multiple accounts and Regions +- **Administrator account**: The account from which you define, manage, and deploy StackSets +- **Target accounts**: The accounts into which stack instances are provisioned +- **Single operation**: One StackSet operation can affect stacks in many accounts/Regions simultaneously +- **Two permission models**: Self-managed permissions and service-managed permissions (via AWS Organizations) +- **Automatic deployments**: Can be enabled/disabled for StackSets using AWS Organizations +- **Account gates**: Mechanism to prevent failed deployments by checking target account readiness +- **Concurrency mode**: Controls how StackSet operations are executed across accounts/Regions +- **Drift detection**: Ability to detect configuration drift across all stack instances in a StackSet +- **Stack import**: Existing stacks can be imported into a StackSet + +## Commands and Syntax +This is a parent/index page — specific commands are covered in sub-topics. Key operations include: +- Creating StackSets (self-managed or service-managed permissions) +- Updating StackSets +- Adding/deleting stack instances +- Overriding parameters on individual stack instances +- Deleting StackSets +- Performing drift detection +- Importing existing stacks + +## Relationships +- **CloudFormation Stacks**: StackSets build on top of standard stacks, deploying them at scale +- **AWS Organizations**: Enables service-managed permissions and automatic deployments to organizational units +- **IAM**: Self-managed permissions require IAM roles in both administrator and target accounts +- **CloudTrail**: StackSet operations are logged for auditing +- **Drift Detection**: Extends CloudFormation's drift detection to work across StackSet instances + +## Exam-Relevant Points +- StackSets enable **multi-account, multi-Region** deployments from a single operation +- Two permission models: **self-managed** (IAM roles you set up) vs. **service-managed** (AWS Organizations integration) +- Service-managed permissions support **automatic deployments** when new accounts are added to an OU +- **Account gates** can be used to validate target accounts before deployment proceeds +- **Parameter overrides** allow customization of individual stack instances within a StackSet +- Drift detection works across all stack instances in a StackSet +- Existing stacks can be **imported** into a StackSet +- The administrator account manages the template; target accounts receive the stack instances + diff --git a/entries/2026/03/11/AWSEC2-latest-APIReference-API_Operationshtml.md b/entries/2026/03/11/AWSEC2-latest-APIReference-API_Operationshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a4845530cf2ece319d5fdc53a95defc9d9f41347 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-APIReference-API_Operationshtml.md @@ -0,0 +1,80 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Operations.html +source: sources/AWSEC2-latest-APIReference-API_Operationshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:04 + + + +## Overview + +This page is the complete API action index for the Amazon EC2 (Elastic Compute Cloud) API Reference. It lists every available API operation organized alphabetically, covering the full breadth of EC2 resource lifecycle management including instances, VPCs, security groups, volumes, snapshots, networking, transit gateways, VPN, IPAM, and more. + +## Key Concepts + +- **EC2 API is action-based (Query API)**: Each operation is a distinct named action invoked via HTTP query parameters, not RESTful resource paths. +- **Action categories** follow a consistent verb pattern: + - **Accept** — approve pending cross-account or cross-resource associations (peering, endpoint connections, transit gateway attachments) + - **Allocate/Assign** — reserve or assign addresses, hosts, IPs + - **Associate/Attach** — link resources together (EIP to instance, volume to instance, route table to subnet) + - **Authorize/Revoke** — manage security group ingress/egress rules + - **Create/Delete** — full CRUD lifecycle for all resource types + - **Describe** — read-only queries (the largest category) + - **Modify/Update** — change attributes of existing resources + - **Run/Start/Stop/Reboot/Terminate** — instance lifecycle management + - **Import/Export** — VM image and snapshot import/export + - **Enable/Disable** — toggle features (e.g., EBS encryption by default, VPC DNS) +- **Resource scope is massive**: The API covers ~600+ distinct actions across compute, networking, storage, security, and IP management. +- **IPAM (IP Address Manager)** has its own extensive sub-API for IP address planning and allocation across accounts. +- **Transit Gateway** operations are heavily represented, covering routing, peering, multicast, policy tables, and metering. +- **Verified Access** is a zero-trust access framework with its own set of CRUD operations for endpoints, groups, instances, and trust providers. + +## Commands and Syntax + +All actions are invoked via the EC2 Query API: +``` +https://ec2.{region}.amazonaws.com/?Action={ActionName}&{Parameters}&Version=2016-11-15 +``` + +Example using AWS CLI: +```bash +# Describe instances +aws ec2 describe-instances + +# Create a VPC +aws ec2 create-vpc --cidr-block 10.0.0.0/16 + +# Authorize security group ingress +aws ec2 authorize-security-group-ingress --group-id sg-xxx --protocol tcp --port 443 --cidr 0.0.0.0/0 + +# Run instances +aws ec2 run-instances --image-id ami-xxx --instance-type t3.micro --count 1 +``` + +## Relationships + +- **IAM**: All actions map to IAM permission strings (`ec2:ActionName`) for access control. +- **CloudTrail**: EC2 API calls are logged as management events; data events are available for some operations. +- **CloudFormation**: Most EC2 resources have corresponding `AWS::EC2::*` resource types. +- **VPC**: Networking actions (subnets, route tables, security groups, NACLs, endpoints, peering) form the VPC control plane. +- **EBS**: Volume and snapshot actions manage persistent block storage attached to EC2 instances. +- **Auto Scaling / Fleet**: `CreateFleet`, `RunInstances` integrate with capacity management and scaling. +- **AWS Backup**: Snapshot and volume operations tie into backup and disaster recovery workflows. + +## Exam-Relevant Points + +- **Describe calls are read-only** and do not require write permissions — important for least-privilege IAM policies. +- **Security group rules** use `AuthorizeSecurityGroupIngress`/`Egress` to add rules and `RevokeSecurityGroupIngress`/`Egress` to remove them (not Delete). +- **RunInstances** is the single action that launches EC2 instances — it is one of the most permission-sensitive actions. +- **StopInstances vs TerminateInstances**: Stop preserves the instance (EBS-backed only); Terminate destroys it. +- **RebootInstances** does not change the instance ID or public IP (for instances with EIPs). +- **CreateSnapshot** vs **CreateSnapshots**: singular creates one snapshot of one volume; plural creates multi-volume snapshots for consistency. +- **VPC Peering** requires both `CreateVpcPeeringConnection` (requester) and `AcceptVpcPeeringConnection` (accepter) — two-step cross-account process. +- **Transit Gateway** attachments similarly require a create + accept flow for cross-account usage. +- **ModifyInstanceAttribute** can change instance type, security groups, user data (when stopped), and other attributes. +- **EnableEbsEncryptionByDefault** turns on default EBS encryption at the account/region level. +- **IPAM** enables centralized IP address management across AWS Organizations — relevant for multi-account architectures. + diff --git a/entries/2026/03/11/AWSEC2-latest-APIReference-API_RebootInstanceshtml.md b/entries/2026/03/11/AWSEC2-latest-APIReference-API_RebootInstanceshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..04333d521d8cde65b7ce11b71c77eeff076c19e1 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-APIReference-API_RebootInstanceshtml.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RebootInstances.html +source: sources/AWSEC2-latest-APIReference-API_RebootInstanceshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:04 + + + +## Overview +The EC2 `RebootInstances` API action requests an asynchronous reboot of specified instances. It queues the reboot rather than performing it synchronously, performs a hard reboot if the instance doesn't cleanly shut down within a few minutes, and silently ignores requests to reboot terminated instances. + +## Key Concepts +- **Asynchronous operation** — the API only queues a reboot request; it does not wait for completion +- **Hard reboot fallback** — if an instance doesn't cleanly shut down within a few minutes, EC2 forces a hard reboot +- **Ownership validation** — the request succeeds only if instances are valid and belong to the caller +- **Terminated instances ignored** — rebooting terminated instances does not produce an error; requests are silently dropped +- **DryRun support** — allows permission checking without executing the action (`DryRunOperation` on success, `UnauthorizedOperation` on failure) +- **Batch operation** — accepts multiple instance IDs (`InstanceId.N`) in a single call + +## Commands and Syntax +**Query API call:** +``` +https://ec2.amazonaws.com/?Action=RebootInstances +&InstanceId.1=i-1234567890abcdef0 +&InstanceId.2=i-0598c7d356eba48d7 +&AUTHPARAMS +``` + +**Parameters:** +| Parameter | Type | Required | Description | +|-----------|------|----------|-------------| +| `InstanceId.N` | Array of strings | Yes | Instance IDs to reboot | +| `DryRun` | Boolean | No | Permission check without execution | + +**Response:** Returns `requestId` (string) and `return` (boolean — `true` on success). + +## Relationships +- **StopInstances / TerminateInstances** — related lifecycle actions; reboot preserves instance state while stop/terminate do not +- **Instance troubleshooting** — linked to the EC2 User Guide's unreachable instance troubleshooting +- **EC2 common parameters and errors** — shares standard query parameters and error codes with all EC2 API actions +- **CloudTrail** — reboot events are logged as EC2 API calls + +## Exam-Relevant Points +- Reboot is **asynchronous** — the API returning success does not mean the reboot is complete +- Reboot **does not change** the instance ID, public/private IP (for VPC instances), or instance store data (unlike stop/start which loses instance store) +- A reboot **preserves the instance store volumes**, unlike stop which does not +- Requests to reboot **terminated instances are silently ignored** (no error) +- Hard reboot is automatic if clean shutdown fails — no separate API call needed +- `DryRun` is useful for validating IAM permissions before executing + diff --git a/entries/2026/03/11/AWSEC2-latest-APIReference-API_StopInstanceshtml.md b/entries/2026/03/11/AWSEC2-latest-APIReference-API_StopInstanceshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c4a52ae6626649bff3c099d072a755cebdc20a08 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-APIReference-API_StopInstanceshtml.md @@ -0,0 +1,59 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_StopInstances.html +source: sources/AWSEC2-latest-APIReference-API_StopInstanceshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:04 + + + +## Overview +The `StopInstances` API stops one or more Amazon EBS-backed EC2 instances. Stopped instances retain their root and data volumes but do not incur instance usage or data transfer charges—only volume storage charges. The API also supports hibernation (preserving RAM contents) and force-stop for instances stuck in the `stopping` state. Instance store-backed instances cannot be stopped or hibernated. + +## Key Concepts +- **EBS-backed only**: `StopInstances` works exclusively on EBS-backed instances; instance store-backed instances cannot be stopped. +- **Graceful shutdown**: By default, the OS is shut down gracefully (file system caches flushed). `SkipOsShutdown` bypasses this but risks data loss/corruption. +- **Hibernation**: Setting `Hibernate=true` preserves RAM contents to the root EBS volume. Requires pre-enabled hibernation and meeting prerequisites. Falls back to normal shutdown on failure. +- **Force stop**: `Force=true` forcibly stops an instance stuck in `stopping` state. Requires file system check/repair afterward. Not recommended for Windows. +- **Billing**: No instance usage or data transfer charges while stopped. Attached EBS volumes continue to incur charges. Restarting charges a one-minute minimum, then per-second billing. +- **Data retention**: Stopped/hibernated instances retain root and data volumes, unlike terminated instances where volumes are deleted by default. +- **State transition**: Instance moves from `running` (code 16) → `stopping` (code 64) → `stopped` (code 80). + +## Commands and Syntax +**Query API call:** +``` +https://ec2.amazonaws.com/?Action=StopInstances +&InstanceId.1=i-1234567890abcdef0 +&AUTHPARAMS +``` + +**Parameters:** +| Parameter | Type | Required | Description | +|-----------|------|----------|-------------| +| `InstanceId.N` | Array of strings | Yes | Instance IDs to stop | +| `Hibernate` | Boolean | No | Hibernate instead of stop (default: false) | +| `Force` | Boolean | No | Force stop stuck instances (default: false) | +| `SkipOsShutdown` | Boolean | No | Bypass graceful OS shutdown (default: false) | +| `DryRun` | Boolean | No | Permission check without executing | + +**Response elements:** `instancesSet` (array of `InstanceStateChange` with instanceId, currentState, previousState), `requestId`. + +## Relationships +- **StartInstances**: Restarts a stopped instance. +- **TerminateInstances**: Permanently destroys the instance and (by default) its volumes—contrast with stop which preserves volumes. +- **RebootInstances**: Restarts without changing host; does not release the instance. +- **EC2 Instance Lifecycle**: Stop/start may move an instance to a different underlying host. +- **EBS Volumes**: Persist independently of instance stop/start; volume charges continue. +- **Hibernation prerequisites**: Instance must be configured at launch; root volume must be encrypted and large enough for RAM dump. + +## Exam-Relevant Points +- You **cannot** stop instance store-backed instances—only EBS-backed. +- Stopped instances are **not charged** for compute, but **EBS volumes still incur charges**. +- Hibernation **preserves RAM** to the root EBS volume; normal stop does **not** preserve RAM. +- `Force=true` requires subsequent **file system check and repair**. +- A stopped instance may be **migrated to a different host** on restart (unlike reboot, which stays on the same host). +- `DryRun` returns `DryRunOperation` on success, `UnauthorizedOperation` on failure—useful for permission validation without side effects. +- Per-second billing applies with a **one-minute minimum** each time an instance is started. + diff --git a/entries/2026/03/11/AWSEC2-latest-APIReference-API_TerminateInstanceshtml.md b/entries/2026/03/11/AWSEC2-latest-APIReference-API_TerminateInstanceshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c4f4d53c8b5c17c1af129b3735e5bc48b37bcc92 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-APIReference-API_TerminateInstanceshtml.md @@ -0,0 +1,61 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_TerminateInstances.html +source: sources/AWSEC2-latest-APIReference-API_TerminateInstanceshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:04 + + + +## Overview +The `TerminateInstances` API permanently deletes specified EC2 instances. It is idempotent and irreversible—all instance store data is lost, and EBS volumes marked `DeleteOnTermination` are also permanently deleted. The API has nuanced failure behavior around termination protection and Availability Zone grouping. + +## Key Concepts +- **Termination is permanent and irreversible** — no recovery of the instance or its instance store volumes after termination +- **Idempotent** — terminating an already-terminated instance succeeds without error +- **Atomic failure per request** — if a single instance ID is invalid, the entire request fails and no instances are terminated +- **Termination protection interaction** — when protected and unprotected instances span AZs, failure is per-AZ: AZs containing a protected instance fail entirely (even unprotected instances in that AZ are not terminated), while AZs with no protected instances succeed +- **Terminated instances remain visible** for approximately one hour +- **Graceful OS shutdown** is the default; `SkipOsShutdown` bypasses it (risks data integrity) +- **EBS volumes attached at launch** are deleted by default; volumes attached after launch continue running +- **EBS-backed instances** can be stopped, started, and terminated; **instance store-backed instances** can only be terminated +- **Force parameter** — attempts graceful shutdown first, then forcibly shuts down if the timeout is exceeded (skips filesystem cache flushing) + +## Commands and Syntax +**Query API:** +``` +https://ec2.amazonaws.com/?Action=TerminateInstances +&InstanceId.1=i-1234567890abcdef0 +&AUTHPARAMS +``` + +**Parameters:** +| Parameter | Type | Required | Description | +|-----------|------|----------|-------------| +| `InstanceId.N` | Array of strings | Yes | Up to 1000 instance IDs (recommend smaller batches) | +| `DryRun` | Boolean | No | Permission check without executing | +| `Force` | Boolean | No | Forcibly terminate after graceful shutdown timeout | +| `SkipOsShutdown` | Boolean | No | Bypass graceful OS shutdown (default: `false`) | + +**Response** returns `instancesSet` (array of `InstanceStateChange` objects with `currentState` and `previousState`). + +## Relationships +- **EBS volumes** — `DeleteOnTermination` block device mapping controls whether volumes are deleted +- **Termination protection** — must be disabled before an instance can be terminated; affects batch behavior across AZs +- **Instance lifecycle** — termination is one state in the EC2 instance lifecycle (pending → running → shutting-down → terminated) +- **StopInstances** vs **TerminateInstances** — stopping preserves root device and attached volumes; terminating deletes volumes marked `DeleteOnTermination` +- **DryRun pattern** — shared across EC2 API actions for permission validation + +## Exam-Relevant Points +- Termination protection causes **per-AZ partial failure** in batch requests — unprotected instances in the same AZ as a protected instance are NOT terminated +- An invalid instance ID causes the **entire request** to fail (no instances terminated) +- Default behavior **deletes EBS volumes attached at launch** but **preserves volumes attached after launch** +- Instance store volumes are **always lost** on termination (and on stop) +- Instance store-backed instances **cannot be stopped**, only terminated +- `DryRun` returns `DryRunOperation` on success, `UnauthorizedOperation` on failure +- Terminated instances remain visible for ~1 hour +- The operation is **idempotent** +- Max batch size: **1000 instance IDs** + diff --git a/entries/2026/03/11/AWSEC2-latest-APIReference-OperationList-query-vpchtml.md b/entries/2026/03/11/AWSEC2-latest-APIReference-OperationList-query-vpchtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9949353ce8890fc12590bad68ef50b2bba8143a0 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-APIReference-OperationList-query-vpchtml.md @@ -0,0 +1,61 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/OperationList-query-vpc.html +source: sources/AWSEC2-latest-APIReference-OperationList-query-vpchtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:05 + + + +## Overview + +This page is an API reference index for Amazon VPC, listing all available EC2 API actions organized by VPC resource category. It covers 16 resource categories including VPCs, subnets, security groups, route tables, NAT gateways, network ACLs, and more, providing the complete set of CRUD and management operations available for VPC networking infrastructure. + +## Key Concepts + +- **VPC API actions are part of the EC2 API** — there is no separate VPC service endpoint; all calls go through the EC2 API +- **Block Public Access** — dedicated API category for managing VPC-level controls that block internet access, with exclusion mechanisms for specific resources +- **Egress-Only Internet Gateway** — separate resource type from standard Internet Gateway, used for IPv6 outbound-only traffic +- **Managed Prefix Lists** — reusable sets of CIDR blocks that can be referenced in security groups and route tables; support versioning (`RestoreManagedPrefixListVersion`) +- **Route Servers** — enable dynamic routing via BGP with endpoints, peers, and propagation controls +- **Traffic Mirroring** — composed of three resources: filters (with rules), sessions, and targets +- **Subnet CIDR Reservations** — allow reserving IP ranges within subnets for specific purposes +- **Security Group VPC Associations** — security groups can be associated/disassociated across VPCs (`AssociateSecurityGroupVpc`) +- **Stale Security Groups** — API exists to detect security group rules referencing deleted/detached peer VPC groups (`DescribeStaleSecurityGroups`) +- **VPC tenancy** — can be modified after creation (`ModifyVpcTenancy`) +- **Flow Logs** — VPC-level traffic logging with an integration template API for analytics setup + +## Commands and Syntax + +Standard CRUD pattern across all resource types follows the convention: +- `Create` / `Delete` — lifecycle management +- `Describes` — list/filter resources +- `ModifyAttribute` — update configuration +- `Associate` / `Disassociate` — link resources together (e.g., route tables to subnets, DHCP options to VPCs) +- `Authorize` / `Revoke` — security group ingress/egress rules + +## Relationships + +- **EC2 API** — all VPC actions are EC2 actions; IAM policies use `ec2:` action prefix +- **Security Groups** → referenced by EC2 instances, ENIs, Lambda, RDS, and many other services +- **Route Tables** → tied to subnets and gateways (IGW, NAT GW, VPC peering) +- **NAT Gateways** → require subnets and Elastic IPs; referenced in route tables +- **VPC Peering** → connects to route tables and security group cross-references +- **Flow Logs** → delivers to CloudWatch Logs, S3, or Kinesis Data Firehose +- **Network ACLs** → associated with subnets as stateless firewall layer +- **CloudFormation** — most of these resources have corresponding `AWS::EC2::*` resource types + +## Exam-Relevant Points + +- VPC actions use the **EC2 API namespace**, not a separate VPC API — IAM actions are `ec2:CreateVpc`, `ec2:CreateSubnet`, etc. +- **Egress-Only Internet Gateways** are for **IPv6 only** — a common exam distinction from NAT Gateways (IPv4) +- **Security groups are stateful** (Authorize/Revoke ingress/egress); **Network ACLs are stateless** (Create/Replace/Delete entries) +- `DescribeStaleSecurityGroups` is used to find rules that reference security groups in a **deleted or detached peering connection** +- **Block Public Access** is a VPC-level feature with exclusion support — know that it exists as a blanket internet-access control +- `CreateDefaultVpc` and `CreateDefaultSubnet` can **recreate** default VPC resources if deleted +- **Managed Prefix Lists** support versioning and can be restored to previous versions +- NAT Gateways support **assigning/unassigning private addresses** and **associating/disassociating public (EIP) addresses** — relevant for multi-IP NAT configurations +- Route Servers with BGP propagation are a newer feature for **dynamic routing** within VPCs + diff --git a/entries/2026/03/11/AWSEC2-latest-APIReference-using-cloudtrailhtml.md b/entries/2026/03/11/AWSEC2-latest-APIReference-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a28165d345e7c6d986257fecac1a47d9e04c02c2 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-APIReference-using-cloudtrailhtml.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/using-cloudtrail.html +source: sources/AWSEC2-latest-APIReference-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:05 + + + +## Overview +This page explains how Amazon EC2 API calls are logged via AWS CloudTrail, covering management events, log structure, storage options (trails and CloudTrail Lake), and how to audit SSH connections made through EC2 Instance Connect. + +## Key Concepts +- **All EC2 API actions are logged as management events** (control plane operations) by default +- **CloudTrail Event history** provides 90 days of management events at no charge — viewable, searchable, downloadable, and immutable +- **Trails** deliver log files to S3; console-created trails are always multi-Region; CLI can create single-Region trails +- **CloudTrail Lake** stores events in Apache ORC columnar format, enabling SQL-based queries; uses advanced event selectors to filter what's stored +- Each log entry captures: identity (root/IAM/federated/service), IP address, timestamp, request parameters, and response elements +- Identity information distinguishes root credentials, IAM Identity Center users, temporary credentials (roles/federation), and service-to-service calls +- CloudTrail is automatically active on account creation + +## Commands and Syntax +**Auditing EC2 Instance Connect SSH activity:** +1. Open CloudTrail console → Event history +2. Filter by Event source: `ec2-instance-connect.amazonaws.com` +3. Look for `SendSSHPublicKey` API calls + +**Key CloudTrail log fields for EC2 events:** +- `eventSource`: `ec2.amazonaws.com` (EC2 API) or `ec2-instance-connect.amazonaws.com` (Instance Connect) +- `eventName`: the API action (e.g., `TerminateInstances`, `RunInstances`, `SendSSHPublicKey`) +- `requestParameters`: contains instance IDs, and for Instance Connect: `osUser` and `SSHKey.publicKey` +- `userIdentity.type`: `Root`, `IAMUser`, `AssumedRole`, etc. + +## Relationships +- **CloudTrail** → central audit service; EC2 is one of many integrated services +- **S3** → trail log file storage destination; one free copy of management events per trail +- **CloudTrail Lake** → alternative to S3-based trails for SQL querying; costs for ingestion and storage +- **EC2 Instance Connect** → SSH access auditing via `SendSSHPublicKey` events +- **IAM / IAM Identity Center** → identity context in every log entry +- **CloudWatch Logs** → trails can also send events to CloudWatch for real-time monitoring + +## Exam-Relevant Points +- CloudTrail Event history retains **90 days** of management events for free; beyond that requires a trail or Lake event data store +- **All** EC2 API actions are management events — there are no EC2-specific data events +- Console-created trails are **always multi-Region**; single-Region trails require the CLI +- First copy of management events to S3 is free from CloudTrail (S3 storage charges still apply) +- CloudTrail Lake uses **Apache ORC** format and supports **SQL queries** +- To audit EC2 Instance Connect SSH sessions, filter CloudTrail by event source `ec2-instance-connect.amazonaws.com` and event name `SendSSHPublicKey` +- Log entries reveal the **source IP**, **IAM identity**, **instance ID**, and **state transitions** (e.g., running → shutting-down) + diff --git a/entries/2026/03/11/AWSEC2-latest-UserGuide-Instanceshtml.md b/entries/2026/03/11/AWSEC2-latest-UserGuide-Instanceshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a464751a96b07feb1a9e3fa2697a5bf07aeae5d0 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-UserGuide-Instanceshtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Instances.html +source: sources/AWSEC2-latest-UserGuide-Instanceshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:05 + + + +## Overview +Amazon EC2 instances are virtual servers in the AWS cloud that provide full user control from launch to termination. Users select instance types to match compute, memory, storage, and networking needs, with pay-per-use billing that starts/stops based on instance state transitions. + +## Key Concepts +- **EC2 Instance**: A virtual server in AWS; you control it from launch to termination +- **Instance Types**: Various configurations of compute, memory, storage, and network capacity +- **Pay-per-use billing**: Charges begin at `running` state, stop at `stopped` state, and stop at `shutting-down` state on termination +- **Managed Instance**: An instance managed by a service provider (e.g., EKS Auto Mode) where you cannot directly modify settings; identified by `Managed = true` +- **Instance Lifecycle**: Launch → Running → Stop/Start/Terminate, with billing implications at each transition +- **Launch Templates**: Store reusable instance launch parameters +- **Instance Metadata**: Data about your instance accessible from within the instance itself +- **Instance Identity Documents**: Cryptographically signed documents proving instance identity +- **Automatic Instance Recovery**: AWS can automatically recover instances on impaired hardware + +## Commands and Syntax +No specific CLI commands on this page — it serves as an index to subtopics. Key actions referenced: **launch**, **connect**, **stop**, **start**, **terminate**. + +## Relationships +- **EC2 Fleet / Auto Scaling**: Scale capacity based on utilization +- **Spot Instances / Savings Plans**: Cost optimization purchasing options +- **Amazon RDS**: Tutorial for connecting EC2 to RDS databases +- **Amazon EKS Auto Mode**: Manages EC2 instances as managed instances +- **Instance Metadata Service (IMDS)**: Runtime configuration and identity +- **STIG Compliance**: Security hardening for EC2 +- **Nested Virtualization**: Running hypervisors inside EC2 instances + +## Exam-Relevant Points +- Billing starts when instance enters **running** state, not at launch request time +- Billing stops at **stopped** state (for stop) or **shutting-down** state (for terminate) — note the difference +- Stopped instances are **not billed** for compute; billing resumes on restart +- Managed instances (e.g., from EKS Auto Mode) **cannot** be directly modified by the user +- EC2 Fleet and Auto Scaling are the primary tools for dynamic capacity management +- Spot Instances and Savings Plans are the two named cost-reduction mechanisms + diff --git a/entries/2026/03/11/AWSEC2-latest-UserGuide-capacity-blocks-monitorhtml.md b/entries/2026/03/11/AWSEC2-latest-UserGuide-capacity-blocks-monitorhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..57082e57ea00900ca24f8d1c51c7fb343fd28421 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-UserGuide-capacity-blocks-monitorhtml.md @@ -0,0 +1,43 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-blocks-monitor.html +source: sources/AWSEC2-latest-UserGuide-capacity-blocks-monitorhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:06 + + + +## Overview +This page describes how Amazon EC2 Capacity Block reservations emit EventBridge events to notify customers when their reserved capacity is delivered and when it is approaching expiration, enabling automated lifecycle management of GPU/accelerator capacity blocks. + +## Key Concepts +- **Capacity Block Delivered event**: Emitted when a Capacity Block reservation starts and capacity is ready to use +- **Capacity Block Expiration Warning event**: Emitted **40 minutes before** the reservation ends, warning that instances will begin terminating in 10 minutes (i.e., 30 minutes before end) +- **Capacity Reservation Instance Interruption Warning event**: Per-instance event indicating an instance will be terminated, with `instance-action: terminate` and `instance-lifecycle: capacity-block` +- All events use `source: aws.ec2` +- Events reference ODCR (On-Demand Capacity Reservation) IDs and ARNs + +## Commands and Syntax +Three EventBridge event structures: + +| Event | `detail_type` | Key Detail Fields | +|-------|--------------|-------------------| +| Delivered | `Capacity Block Reservation Delivered` | `capacity-reservation-id`, `end-date` | +| Expiration Warning | `Capacity Block Reservation Expiration Warning` | `capacity-reservation-id`, `end-date` | +| Instance Interruption | `EC2 Capacity Reservation Instance Interruption Warning` | `instance-id`, `instance-action`, `instance-termination-time`, `availability-zone-id`, `instance-lifecycle` | + +## Relationships +- **EventBridge**: Events are delivered through Amazon EventBridge; rules can trigger Lambda, SNS, etc. +- **EC2 Capacity Reservations**: Capacity Blocks are a type of On-Demand Capacity Reservation (ODCR) +- **Spot-like interruption pattern**: The instance interruption warning follows a similar pattern to Spot Instance interruption notices, but with `instance-lifecycle: capacity-block` instead of `spot` +- **EC2 instance lifecycle**: Instances are terminated automatically at reservation end + +## Exam-Relevant Points +- Expiration warning arrives **40 minutes** before reservation end; instances begin terminating **30 minutes** before end (10 minutes after warning) +- The `instance-lifecycle` field value is `capacity-block` — distinguishes from spot interruptions +- The `instance-action` is always `terminate` (not stop or hibernate) +- Events use ODCR ARNs as resources for reservation-level events, and Instance ARNs for instance-level interruption events +- You must set up EventBridge rules to act on these events — they are not delivered automatically to SNS or email + diff --git a/entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-hosts-aws-confightml.md b/entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-hosts-aws-confightml.md new file mode 100644 index 0000000000000000000000000000000000000000..7b76ae709fd726ca7369dcf57a0ef67e234cb559 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-hosts-aws-confightml.md @@ -0,0 +1,54 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-aws-config.html +source: sources/AWSEC2-latest-UserGuide-dedicated-hosts-aws-confightml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:06 + + + +## Overview +This page describes how to use AWS Config to track configuration changes for EC2 Dedicated Hosts and their instances, primarily for license reporting purposes (per-socket or per-core software licensing). + +## Key Concepts +- AWS Config records configuration changes for Dedicated Hosts and instances individually, linking them through **relationships** +- Three recording conditions must all be enabled for full functionality: + - **AWS Config recording status** — overall Config recording is on + - **Host recording status** — Dedicated Host configuration is recorded + - **Instance recording status** — Dedicated Instance configuration is recorded +- If any condition is disabled, the Edit Config Recording button icon turns **red**; all enabled = **green** +- AWS Config discovers resources after setup, which may take **several minutes** +- Configuration history captures: number of instances on a host, sockets, cores, and instance AMI IDs + +## Commands and Syntax +List all Dedicated Hosts discovered by Config: +``` +aws configservice list-discovered-resources --resource-type AWS::EC2::Host +``` + +Get configuration history for a specific instance: +``` +aws configservice get-resource-config-history \ + --resource-type AWS::EC2::Instance \ + --resource-id i-1234567890abcdef0 +``` + +API equivalents: `ListDiscoveredResources`, `GetResourceConfigHistory` + +## Relationships +- **AWS Config** — provides the recording and history infrastructure +- **EC2 Dedicated Hosts** — the tracked resource (`AWS::EC2::Host`) +- **EC2 Dedicated Instances** — tracked via `AWS::EC2::Instance` +- **License reporting** — primary use case; socket/core data enables BYOL compliance tracking +- **AMI** — instance AMI IDs are captured for software license correlation + +## Exam-Relevant Points +- AWS Config is the service used for Dedicated Host **license compliance tracking** — not CloudTrail, not CloudWatch +- All three recording conditions (Config recording, host recording, instance recording) must be enabled +- Resource type for Dedicated Hosts in Config is `AWS::EC2::Host` +- Config pairs host and instance data through **relationships**, enabling per-host instance counts +- Config discovery is **not instantaneous** — takes several minutes after setup +- This integration supports **BYOL (Bring Your Own License)** scenarios where software is licensed per-socket or per-core + diff --git a/entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-hosts-overviewhtml.md b/entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-hosts-overviewhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..594a621349404fac6d3e9fd94ba461952d903e2c --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-hosts-overviewhtml.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html +source: sources/AWSEC2-latest-UserGuide-dedicated-hosts-overviewhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:06 + + + +## Overview + +Amazon EC2 Dedicated Hosts are physical servers fully dedicated to a single customer's use, providing visibility and control over instance placement, host affinity, and comprehensive Bring Your Own License (BYOL) support. They differ from Dedicated Instances in billing model (per-host vs per-instance), visibility into hardware (sockets, cores, host ID), and support for targeted placement and cross-account sharing. + +## Key Concepts + +- **Dedicated Host**: A physical server with instance capacity fully dedicated to your use; billed per-host +- **Dedicated Instance**: A physical server dedicated to a single account but billed per-instance, with no visibility into sockets/cores and no host affinity +- **Host Affinity**: Ensures instances consistently deploy to the same physical server over time +- **Auto-placement**: Controls whether instances automatically launch on available Dedicated Hosts +- **BYOL Support**: Use existing per-socket, per-core, or per-VM licenses (Windows Server, SQL Server, SUSE, RHEL, etc.) +- **Cross-account sharing**: Dedicated Host capacity can be shared with other AWS accounts +- **Dedicated Host Reservations**: Up to 70% discount vs On-Demand; requires active allocated hosts; available in 1-year or 3-year terms +- **No performance, security, or physical differences** between Dedicated Instances and Dedicated Hosts — differences are in management and billing + +## Commands and Syntax + +```bash +# List available reservation offerings (1-year term, m4 family) +aws ec2 describe-host-reservation-offerings \ + --filter Name=instance-family,Values=m4 \ + --max-duration 31536000 + +# Purchase a reservation and associate with a host +aws ec2 purchase-host-reservation \ + --offering-id hro-03f707bf363b6b324 \ + --host-id-set h-013abcd2a00cbd123 \ + --tag-specifications 'ResourceType=host-reservation,Tags={Key=purpose,Value=production}' +``` + +## Relationships + +- **Dedicated Instances** — alternative tenancy option with per-instance billing and no placement control +- **Capacity Reservations** — supported for Dedicated Instances but NOT for Dedicated Hosts +- **AWS Config** — can track configuration changes on Dedicated Hosts +- **Auto Scaling** — supported only via launch templates specifying a host resource group +- **Outposts** — Dedicated Hosts can run on AWS Outposts +- **Host Recovery** — automatic instance recovery supported on Dedicated Hosts +- **License Manager** — related service for managing BYOL tracking + +## Exam-Relevant Points + +- Dedicated Hosts support BYOL fully; Dedicated Instances only partially (SQL Server with License Mobility, Windows VDA) +- Dedicated Hosts are billed **per-host**; Dedicated Instances are billed **per-instance** +- **Capacity Reservations are NOT supported** on Dedicated Hosts (only on Dedicated Instances) +- Cannot launch Dedicated Hosts into **placement groups** +- Cannot mix virtualized and `.metal` instance types on the same allocated host +- RHEL/SUSE on Dedicated Hosts requires **your own AMIs** (exception: high-memory `u-*` metal instances) +- **Amazon RDS is not supported** on Dedicated Hosts +- **AWS Free Tier does not apply** to Dedicated Hosts +- Reservation terms: 1-year = 31,536,000 seconds; 3-year = 94,608,000 seconds +- Quotas apply to **running instances only** — pending/stopping/stopped don't count + diff --git a/entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-instancehtml.md b/entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-instancehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..8a5f887abf5c8ea47fa193461f7c577b0bcafaca --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-instancehtml.md @@ -0,0 +1,51 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html +source: sources/AWSEC2-latest-UserGuide-dedicated-instancehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:07 + + + +## Overview + +Amazon EC2 Dedicated Instances run on hardware physically isolated at the host level for a single AWS account, but without visibility or control over instance placement. They differ from Dedicated Hosts in that they offer per-instance billing, no host affinity, no socket/core visibility, and only partial BYOL support, but do support Capacity Reservations. + +## Key Concepts + +- **Default tenancy**: EC2 instances share physical hardware across multiple AWS accounts +- **Dedicated Instances**: Physically isolated at host hardware level from other AWS accounts, but may share hardware with non-dedicated instances from the **same** account +- **No host affinity**: Stopping and starting a Dedicated Instance may place it on a different physical host +- **No placement control**: Cannot target a specific host for launch or run +- **VPC tenancy**: Can be set to `default` or `dedicated`; a `dedicated` VPC forces all instances to run as Dedicated Instances +- **EBS volumes do NOT run on single-tenant hardware** even when attached to a Dedicated Instance +- **Partial BYOL**: Only Microsoft SQL Server (with License Mobility via Software Assurance) and Windows VDA licenses are supported + +## Commands and Syntax + +- **Launch via VPC tenancy**: Create a VPC with tenancy `dedicated` — all instances automatically become Dedicated Instances +- **Launch via instance tenancy**: Create a VPC with tenancy `default`, then set individual instance tenancy to `dedicated` +- **Spot Instances**: Specify tenancy `dedicated` in the Spot Instance request +- **Reserved Instances**: Dedicated Reserved Instances must match `dedicated` tenancy; `default` tenancy RIs do not apply to dedicated instances. Tenancy cannot be modified after purchase, but Convertible RIs can be exchanged. + +## Relationships + +- **Dedicated Hosts**: More control (host affinity, socket/core visibility, full BYOL, per-host billing) but no Capacity Reservation support +- **Auto Scaling**: Supported via launch templates with dedicated tenancy +- **Automatic Recovery**: Supported for hardware failures +- **Burstable Instances (T3)**: Supported in dedicated tenancy; launch in unlimited mode by default. For correlated CPU workloads, M5/M5a recommended over T3 +- **Capacity Reservations**: Supported for Dedicated Instances (not for Dedicated Hosts) +- **EBS**: Volumes are NOT on single-tenant hardware — isolation boundary is compute only + +## Exam-Relevant Points + +- Dedicated Instances isolate at the **account level**, not the instance level — instances from the same account can share the same host +- **EBS is NOT dedicated** even when used with Dedicated Instances +- Key differentiator table: Dedicated Host = per-host billing, host affinity, BYOL, socket visibility; Dedicated Instance = per-instance billing, Capacity Reservations +- Cannot change Reserved Instance tenancy after purchase; must exchange via Convertible RI +- VPC-level `dedicated` tenancy forces all instances in that VPC to be dedicated +- Some instance types and AWS services do not support `dedicated` tenancy VPCs +- Dedicated Instances and Dedicated Hosts have **no performance, security, or physical differences** — only management and billing differences + diff --git a/entries/2026/03/11/AWSEC2-latest-UserGuide-ebs-fishtml.md b/entries/2026/03/11/AWSEC2-latest-UserGuide-ebs-fishtml.md new file mode 100644 index 0000000000000000000000000000000000000000..41597ad136330fa423044d05b6d2753f2320da99 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-UserGuide-ebs-fishtml.md @@ -0,0 +1,44 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-fis.html +source: sources/AWSEC2-latest-UserGuide-ebs-fishtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:07 + + + +## Overview +This page describes how AWS Fault Injection Service (AWS FIS) integrates with Amazon EBS to enable fault injection experiments on EBS volumes. It covers the two available experiment types (pause I/O and latency injection) and the constraints for running these experiments. + +## Key Concepts +- **AWS FIS** is a fully managed service for performing fault injection experiments on AWS workloads +- EBS FIS actions simulate storage faults that cause **I/O interruptions** and **degraded performance** +- Two experiment types available: **Pause I/O** and **Latency injection** +- Purpose is to test monitoring/recovery mechanisms (CloudWatch alarms, failover workflows) and improve application resilience +- Volumes automatically resume original I/O performance after experiment completes based on configured duration + +## Commands and Syntax +No CLI commands or configuration syntax provided on this page — experiments are configured through the AWS FIS console or API. Key operational notes: +- You can **stop a running experiment** before it completes +- You can define a **stop condition** tied to a CloudWatch alarm threshold +- Up to **5 volumes** in the same AZ can be tested simultaneously when specifying volume ARNs in the console + +## Relationships +- **AWS FIS** — parent service providing the fault injection framework +- **Amazon CloudWatch** — used for stop conditions (alarms) and monitoring during experiments +- **EC2 Nitro instances** — required; volumes must be attached to Nitro-based instances +- **EBS volume types** — all types supported (gp2, gp3, io1, io2, st1, sc1, standard) +- **Multi-Attach (io1/io2)** — supported, but affects all attached instances (no per-attachment targeting) +- **Instance store volumes** — explicitly NOT supported (EBS only) + +## Exam-Relevant Points +- FIS EBS experiments require **Nitro-based instances** — non-Nitro instances are not supported +- Both **root and data volumes** are supported; **instance store volumes are not** +- **All EBS volume types** are supported +- FIS is **not available** in Local Zones, Outposts, or Wavelength Zones; volumes created in these locations cannot be used +- Multi-Attach volumes affect **all attached instances** — you cannot target a specific instance-volume attachment +- Maximum of **5 volumes per AZ** can be tested simultaneously (when using volume ARNs in console) +- Stop conditions use **CloudWatch alarms** to automatically halt experiments at defined thresholds + diff --git a/entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-byoiphtml.md b/entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-byoiphtml.md new file mode 100644 index 0000000000000000000000000000000000000000..45855fd9ff206729353d3c95c753a1e734366338 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-byoiphtml.md @@ -0,0 +1,58 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html +source: sources/AWSEC2-latest-UserGuide-ec2-byoiphtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:07 + + + +## Overview + +BYOIP (Bring Your Own IP) allows you to bring publicly routable IPv4 or IPv6 address ranges from your on-premises network into your AWS account for use with Amazon EC2. AWS validates your control over the address range via either an X.509 certificate through RDAP-supporting registries (ARIN, RIPE, APNIC) or via DNS TXT record through Amazon VPC IPAM. Once imported, the range appears as an address pool in your account. + +## Key Concepts + +- **BYOIP** — Migrate your own public IP address ranges to AWS while retaining control and the ability to advertise them on the internet +- **X.509 Self-signed Certificate** — Used to validate control over IP space via RDAP record; only needs to be valid during provisioning +- **ASN (Autonomous System Number)** — Globally unique identifier for a group of IP prefixes with a single routing policy +- **RIR (Regional Internet Registry)** — Organization managing IP address/ASN allocation (ARIN, RIPE, APNIC) +- **RDAP (Registry Data Access Protocol)** — Read-only protocol AWS uses to query RIR records and verify address space control +- **ROA (Route Origin Authorization)** — Object created via RIRs to authenticate IP advertisement in specific autonomous systems +- **LIR (Local Internet Registry)** — ISPs or organizations that allocate IP blocks from an RIR to customers +- **Network Border Group** — Collection of AZs, Local Zones, or Wavelength Zones from which AWS advertises public IPs + +## Commands and Syntax + +- Use `--network-border-group` option when provisioning BYOIPv4 ranges to Local Zones +- Two validation methods: + 1. X.509 certificate added to RIR's RDAP record (can be removed after provisioning) + 2. DNS TXT record via Amazon VPC IPAM (works regardless of RDAP support) + +## Relationships + +- **VPC IPAM** — Alternative onboarding path (DNS TXT validation); required for cross-account sharing via AWS RAM/Organizations +- **AWS Global Accelerator** — Has its own separate BYOIP process +- **Elastic IPs** — EIPs allocated from BYOIP pools; must reside in same network border group as associated resource +- **Local Zones** — BYOIP can be provisioned to specific Local Zone network border groups (IPv4 only) +- **AWS RAM** — Cannot share BYOIP ranges across accounts unless using IPAM integrated with AWS Organizations +- **RADb/IRR** — Do not manually modify; BYOIP updates RADb automatically + +## Exam-Relevant Points + +- Most specific **IPv4** range: **/24**; most specific **IPv6** range: **/48** (public) or **/60** (non-public) +- Limit of **5 BYOIP address ranges per Region** (IPv4 + IPv6 combined); increase via AWS Support only +- Each range can only be brought to **one Region at a time** +- A single ROA/RDAP record can cover multiple smaller CIDRs across multiple Regions +- Available in **all commercial Regions except China** +- **Not supported** in Wavelength Zones or AWS Outposts +- **BYOIPv6 is not supported in Local Zones** +- ROAs are **not required** for non-publicly-advertisable CIDRs, but RDAP records must still be updated +- IP ranges must be registered to a **business or institutional entity**, not an individual +- AWS checks IP reputation and may **reject ranges with poor history** +- Legacy IANA address space still requires a ROA +- All IPs in the range are usable, **including network and broadcast addresses** +- Do not manually change RADb entries — BYOIP handles this automatically; manual changes cause provisioning failure + diff --git a/entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-mac-instanceshtml.md b/entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-mac-instanceshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..84741ae9e0853b34da9cc4b6520bb5578933c97d --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-mac-instanceshtml.md @@ -0,0 +1,76 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-mac-instances.html +source: sources/AWSEC2-latest-UserGuide-ec2-mac-instanceshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:08 + + + +## Overview + +EC2 Mac instances are bare-metal instances running on Apple hardware (Mac mini/Mac Studio) hosted on AWS Dedicated Hosts, designed for developing, building, testing, and signing applications for Apple platforms (iOS, macOS, visionOS, watchOS, tvOS, Safari). They range from Intel-based x86 (`mac1.metal`) to Apple Silicon M4 Pro (`mac-m4pro.metal`). + +## Key Concepts + +- **Instance types**: Seven variants spanning Intel and Apple Silicon generations: + - `mac1.metal` — Intel i7 (Coffee Lake), 6/12 cores, 32 GiB + - `mac2.metal` — M1, 8 CPU / 8 GPU cores, 16 GiB + - `mac2-m1ultra.metal` — M1 Ultra, 20 CPU / 64 GPU cores, 128 GiB + - `mac2-m2.metal` — M2, 8 CPU / 10 GPU cores, 24 GiB + - `mac2-m2pro.metal` — M2 Pro, 12 CPU / 19 GPU cores, 32 GiB + - `mac-m4.metal` — M4, 10 CPU / 10 GPU cores, 24 GiB + - `mac-m4pro.metal` — M4 Pro, 14 CPU / 20 GPU cores, 48 GiB +- **Billing unit is the Dedicated Host**, not the instance — instances on the host incur no additional charge +- **Minimum 24-hour allocation** before a Dedicated Host can be released +- **One Mac instance per Dedicated Host** +- **On-Demand only** — not available as Spot or Reserved Instances; Savings Plans can reduce cost +- **Boot from EBS volumes** — internal SSD is unsupported by AWS; EBS recommended (10,000 IOPS / 400 MiB/s for optimal performance) +- **Do NOT use FileVault** — causes boot failure; use EBS encryption instead +- **Apple Intelligence features are not available** (instances boot from external EBS volumes) +- **Launch time**: 6–20 minutes depending on AMI and configuration +- **EC2 macOS Init**: initialization system at `/usr/local/aws/ec2-macos-init`, managed via launchd +- **EC2 System Monitor for macOS**: sends CPU metrics to CloudWatch every 1 minute (not supported on Apple Silicon) +- **Scrubbing workflow** runs on the Dedicated Host when a Mac instance is stopped or terminated +- **Auto Scaling** is supported for Mac instances +- **EBS hotplug** is supported + +## Commands and Syntax + +**Poll instance readiness after launch:** +```bash +for i in $(seq 1 200); do aws ec2 describe-instance-status --instance-ids=i-1234567890abcdef0 \ + --query='InstanceStatuses[0].InstanceStatus.Status'; sleep 5; done; +``` + +**Enable/disable CloudWatch CPU monitoring:** +```bash +sudo setup-ec2monitoring [enable | disable] +``` + +**Connect via:** SSH or Apple Remote Desktop (ARD) + +## Relationships + +- **Dedicated Hosts** — Mac instances require them; supports Dedicated Host auto recovery and reboot-based host maintenance +- **Amazon EBS** — primary storage mechanism; EBS encryption replaces FileVault; EBS hotplug supported +- **Amazon CloudWatch** — receives CPU metrics via EC2 System Monitor for macOS +- **EC2 Auto Scaling** — supported for Mac instance fleets +- **Savings Plans** — the cost-optimization mechanism (since Reserved Instances and Spot are unavailable) +- **AWS Systems Manager Parameter Store** — can be used to retrieve macOS AMI IDs +- **macOS AMI lifecycle** — AWS provides regularly updated AMIs; subscribe to notifications for updates + +## Exam-Relevant Points + +- Mac instances are **bare metal only** on **Dedicated Hosts** with a **24-hour minimum allocation** +- **One instance per Dedicated Host**; billing is at the host level +- **Not available as Spot or Reserved Instances** — only On-Demand + Savings Plans +- **Never enable FileVault** — use **EBS encryption** instead +- Recommended EBS performance: **10,000 IOPS / 400 MiB/s** +- EC2 System Monitor for macOS sends metrics to CloudWatch but is **not supported on Apple Silicon** +- Instance launch readiness takes **6–20 minutes** +- Internal SSD is **not managed or supported by AWS** +- Dedicated Hosts can be **shared across AWS accounts or organizational units** + diff --git a/entries/2026/03/11/AWSEC2-latest-UserGuide-initiate-a-spot-instance-interruptionhtml.md b/entries/2026/03/11/AWSEC2-latest-UserGuide-initiate-a-spot-instance-interruptionhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b71f75c6b568a209933177ac147a049bdacd363b --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-UserGuide-initiate-a-spot-instance-interruptionhtml.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/initiate-a-spot-instance-interruption.html +source: sources/AWSEC2-latest-UserGuide-initiate-a-spot-instance-interruptionhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:08 + + + +## Overview +This page explains how to manually initiate Spot Instance interruptions through the EC2 console for testing purposes. The feature uses AWS Fault Injection Service (FIS) under the hood to simulate interruptions, giving a 2-minute warning before the instance is actually interrupted — mirroring real Spot interruption behavior. + +## Key Concepts +- **Purpose**: Test how applications handle Spot Instance interruptions before they occur organically +- **Mechanism**: Uses AWS FIS to perform the actual interruption +- **2-minute notice**: EC2 sends an interruption notification, then interrupts the instance after 2 minutes (same as real interruptions) +- **Interruption behaviors**: `terminate`, `stop`, and `hibernate` +- **Hibernate exception**: If interruption behavior is set to `hibernate`, the process begins immediately (no 2-minute delay) +- **Interruption sequence**: Instance receives a rebalance recommendation → Spot interruption notice issued → instance interrupted after 2 minutes +- **Stopped instances**: Instances stopped by FIS remain stopped until manually restarted +- **Regional availability**: Supported in all regions except Jakarta, Osaka, Beijing, Ningxia, and Middle East (UAE) + +## Commands and Syntax +**Console procedures only** (no CLI commands documented on this page): + +- **Single Spot Instance**: Spot Requests → select request → Actions → Initiate interruption → configure IAM role → Initiate interruption +- **Spot Fleet (multiple)**: Spot Requests → select fleet → Actions → Initiate interruption → specify number of instances → configure IAM role → Initiate interruption +- **Advanced experiments**: Spot Requests → Actions → Create advanced experiments → redirects to FIS console + +**Status transitions to verify interruption**: +| Behavior | Spot Request Status | Instance Status | +|---|---|---| +| `terminate` | `instance-terminated-by-experiment` | `Shutting-down` → `Terminated` | +| `stop` | `marked-for-stop-by-experiment` → `instance-stopped-by-experiment` | `Stopping` → `Stopped` | + +## Relationships +- **AWS FIS**: Underlying service that performs the interruption; advanced experiments use the FIS console directly +- **Rebalance Recommendations**: Interruption triggers a rebalance recommendation signal first +- **Spot Instance interruption notices**: Standard 2-minute notice mechanism is used +- **IAM roles**: Requires a service role for FIS to perform the interruption +- **Service Quotas**: Default limit managed through Service Quotas console + +## Exam-Relevant Points +- Default quota: **5 Spot Instances** per experiment per region (adjustable) +- The FIS action name is `aws:ec2:send-spot-instance-interruptions` +- Hibernate behavior starts **immediately**, unlike stop/terminate which wait 2 minutes +- You cannot select multiple Spot Instance requests or multiple Spot Fleet requests simultaneously — only one at a time +- Interrupted instances go through the same status transitions as real interruptions +- Stopped instances must be **manually restarted** — they do not auto-recover + diff --git a/entries/2026/03/11/AWSEC2-latest-UserGuide-network_mtuhtml.md b/entries/2026/03/11/AWSEC2-latest-UserGuide-network_mtuhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..4f394087d7a747e34c5f759559dd250a8513b6f2 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-UserGuide-network_mtuhtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/network_mtu.html +source: sources/AWSEC2-latest-UserGuide-network_mtuhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:08 + + + +## Overview +This page explains the Maximum Transmission Unit (MTU) for EC2 instance network connections, covering standard Ethernet frames (1500 MTU), jumbo frames (9001 MTU), Path MTU Discovery (PMTUD), and troubleshooting considerations for packet size issues. + +## Key Concepts +- **MTU** is the largest permissible packet size (in bytes) that can be passed over a network connection +- **Standard Ethernet v2 frame** supports 1500 MTU — all EC2 instance types support this +- **Jumbo frames** use 9001 MTU, reducing overhead by sending more data per packet +- **MTU limit of 1500 bytes** applies to: internet gateway traffic, VPN connections, and inter-region traffic (unless using a transit gateway) +- **MTU limit of 8500 bytes** applies to: inter-region VPC peering connections +- Packets exceeding the MTU are either **fragmented** or **dropped** (if the `Don't Fragment` flag is set) +- **All current-generation instance types** support jumbo frames; previous-gen support limited to A1, C3, I2, M3, R3 +- **IPv6 does not support fragmentation** in the network — oversized packets are dropped with ICMPv6 Packet Too Big (Type 2) +- **IPv4** fragmentation failures return ICMP `Destination Unreachable: Fragmentation Needed and Don't Fragment was Set` (Type 3, Code 4) +- ICMP traffic can be blocked by **NACLs** even if security groups allow it + +## Commands and Syntax +No CLI commands on this page. MTU configuration is covered in a linked sub-page ("Set the MTU for your Amazon EC2 instances"). Key operational guidance: +- Configure MTU size **per route** to use jumbo frames inside VPC while keeping 1500 for internet-bound traffic +- Use **multiple ENIs** with different MTU sizes and routes as an alternative approach + +## Relationships +- **Placement groups**: Jumbo frames recommended inside cluster placement groups for maximum throughput +- **Direct Connect**: Supports jumbo frames between VPCs and on-premises networks +- **NAT gateways, Transit gateways**: Have their own MTU rules (documented separately) +- **Security groups & NACLs**: Must allow inbound ICMP for PMTUD to function; NACLs can override security group allowances +- **Connection tracking**: Automatically tracked connections (via NAT gateways, load balancers) can receive PMTUD responses without explicit ICMP security group rules +- **Internet gateway**: Forwards packets up to 1500 bytes only +- **Local Zones, Wavelength, Outposts**: Each has specific MTU considerations (linked docs) + +## Exam-Relevant Points +- Internet gateway enforces **1500 MTU** — jumbo frames do not work for internet-bound traffic +- Inter-region traffic is limited to **1500 MTU unless a transit gateway** is used +- Inter-region VPC peering supports up to **8500 MTU** (not full 9001) +- **IPv6 does not support fragmentation** — relies entirely on PMTUD +- PMTUD requires **ICMP to be allowed** — check both security groups AND NACLs +- All **current-gen** instances support jumbo frames; only specific **previous-gen** (A1, C3, I2, M3, R3) do +- Jumbo frames are **recommended in cluster placement groups** for maximum throughput +- If queries to **Amazon Redshift** hang when using jumbo frames, it's a known connectivity issue + diff --git a/entries/2026/03/11/AWSEC2-latest-UserGuide-rebalance-recommendationshtml.md b/entries/2026/03/11/AWSEC2-latest-UserGuide-rebalance-recommendationshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..53b4e854eecba433c4650f732ee62da1285372c8 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-UserGuide-rebalance-recommendationshtml.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/rebalance-recommendations.html +source: sources/AWSEC2-latest-UserGuide-rebalance-recommendationshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:09 + + + +## Overview +EC2 instance rebalance recommendations are proactive signals that notify you when a Spot Instance faces elevated interruption risk. These signals can arrive before the standard two-minute Spot Instance interruption notice, giving you more time to gracefully migrate workloads. The signal is delivered via Amazon EventBridge events and instance metadata (IMDS). + +## Key Concepts +- **Rebalance recommendation** — an early warning signal indicating a Spot Instance is at elevated risk of interruption; arrives *before* (or alongside) the two-minute interruption notice +- Signals are emitted on a **best-effort basis** — not guaranteed to arrive before the two-minute notice +- Only supported for Spot Instances launched **after November 5, 2020 00:00 UTC** +- Two delivery channels: **EventBridge event** and **instance metadata** (`events/recommendations/rebalance`) +- Recommended polling interval for instance metadata: **every 5 seconds** +- If no rebalance signal has been emitted, the metadata path returns **HTTP 404** + +## Commands and Syntax + +**Retrieve rebalance signal via IMDSv2 (Linux):** +```bash +TOKEN=$(curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600") \ + && curl -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/events/recommendations/rebalance +``` + +**Example metadata response:** +```json +{"noticeTime": "2020-10-27T08:22:00Z"} +``` + +**EventBridge event pattern for matching rebalance recommendations:** +```json +{ + "source": ["aws.ec2"], + "detail-type": ["EC2 Instance Rebalance Recommendation"] +} +``` + +**EventBridge event structure:** +- `detail-type`: `"EC2 Instance Rebalance Recommendation"` +- `source`: `"aws.ec2"` +- `detail.instance-id`: the affected instance ID + +## Relationships +- **Spot Instance interruption notices** — rebalance recommendations complement the two-minute interruption notice; they may arrive earlier or simultaneously +- **Amazon EventBridge** — primary event-driven integration point; rules can trigger SNS, Lambda, etc. +- **EC2 Auto Scaling / EC2 Fleet / Spot Fleet** — these services have built-in **Capacity Rebalancing** that automatically launches replacement instances in response to rebalance signals +- **Instance Metadata Service (IMDS)** — alternative polling-based channel (IMDSv1 and IMDSv2 both supported) +- **Amazon SNS** — common target for EventBridge rules to send notifications on rebalance events + +## Exam-Relevant Points +- Rebalance recommendations arrive **before or at the same time as** the two-minute interruption notice — never after (since interruption is the terminal event) +- The signal is **best-effort** — you cannot rely on always receiving it before the two-minute notice +- The EventBridge detail-type is exactly `"EC2 Instance Rebalance Recommendation"` (testable fact) +- Instance metadata path: `events/recommendations/rebalance` — returns 404 if no signal emitted +- Three recommended rebalance actions: graceful shutdown, prevent new work scheduling, proactively launch replacements +- Capacity Rebalancing is the automated feature in Auto Scaling groups, EC2 Fleet, and Spot Fleet that acts on these signals +- Only applies to instances launched after **November 5, 2020** + diff --git a/entries/2026/03/11/AWSEC2-latest-UserGuide-spot-interruptionshtml.md b/entries/2026/03/11/AWSEC2-latest-UserGuide-spot-interruptionshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2913668be61de8b95d642bf33ef895afa3e6a011 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-UserGuide-spot-interruptionshtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html +source: sources/AWSEC2-latest-UserGuide-spot-interruptionshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:09 + + + +## Overview +Spot Instance interruptions occur when Amazon EC2 reclaims Spot Instances that were running on spare capacity. This page covers the reasons EC2 may interrupt Spot Instances, the possible interruption behaviors, and links to subtopics on preparation, notification, and billing. + +## Key Concepts +- **Spot Instances** run on spare EC2 capacity at steep discounts in exchange for the possibility of being reclaimed at any time. +- **Three reasons for interruption:** + - **Capacity** — EC2 needs the capacity back (repurposing, host maintenance, hardware decommission). + - **Price** — The current Spot price exceeds your specified maximum price. Specifying a max price increases interruption frequency compared to not specifying one. + - **Constraints** — Launch group or Availability Zone group constraints can no longer be met, causing all instances in the group to be terminated together. +- **Three interruption behaviors** (specified at Spot request creation): + - **Terminate** — Instance is terminated. + - **Stop** — Instance is stopped (can be restarted later). + - **Hibernate** — Instance state is saved to disk and resumed later. +- Spot availability varies significantly based on unused EC2 capacity and demand fluctuations. + +## Commands and Syntax +No specific CLI commands on this page — it serves as a conceptual overview linking to subtopics for operational procedures (initiate interruption, find interrupted instances, etc.). + +## Relationships +- **Rebalance Recommendations** — EC2 can emit rebalance signals before an actual interruption. +- **Spot Instance Termination Notices** — A 2-minute warning issued via instance metadata before interruption. +- **EC2 Fleet / Auto Scaling** — Capacity diversification strategies to mitigate interruptions. +- **FIS (Fault Injection Service)** — Can simulate Spot interruptions for testing. +- **CloudTrail** — `BidEvictedEvent` can determine whether EC2 terminated a Spot Instance. +- **Billing** — Interrupted instances have specific billing rules (partial-hour charges depend on who initiated the interruption). + +## Exam-Relevant Points +- Know all three interruption reasons: **capacity, price, constraints**. +- Know all three interruption behaviors: **terminate, stop, hibernate** — and that these are set at request time. +- Specifying a maximum price **increases** interruption frequency vs. omitting it. +- Spot Instances with **launch group or AZ group constraints** are terminated as a group. +- A **2-minute interruption notice** is provided via instance metadata (covered in linked subtopic). +- Spot interruptions are **always possible** — applications must be designed for fault tolerance. + diff --git a/entries/2026/03/11/AWSEC2-latest-UserGuide-troubleshooting-launchhtml.md b/entries/2026/03/11/AWSEC2-latest-UserGuide-troubleshooting-launchhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..686d5cbbaa33f4c4039872c0fc7b647e5e898fde --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-UserGuide-troubleshooting-launchhtml.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshooting-launch.html +source: sources/AWSEC2-latest-UserGuide-troubleshooting-launchhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:09 + + + +## Overview + +This page covers common errors encountered when launching Amazon EC2 instances, including their descriptions, root causes, and solutions. It addresses seven distinct failure scenarios ranging from device naming issues and capacity limits to permission errors and metadata service enforcement. + +## Key Concepts + +- **Invalid device name** — Launch fails when a volume's device name conflicts with the AMI, is reserved for root, is duplicated, or uses incorrect format for the OS. +- **InstanceLimitExceeded** — Per-region account limits on number of running instances have been reached; resolved by requesting a service quota increase. +- **InsufficientInstanceCapacity** — AWS lacks On-Demand capacity in the requested AZ; mitigated by waiting, reducing request size, omitting AZ, or trying a different instance type. +- **Unsupported configuration** — Instance type or purchasing option not available in the chosen Region/AZ. +- **Instance terminates immediately** (pending → terminated) — Caused by EBS volume limits exceeded, corrupted snapshots, missing KMS decrypt permissions on encrypted root/snapshot volumes, or missing S3-backed AMI parts. +- **StateReason** — JSON field in `describe-instances` output that reveals why an instance transitioned to terminated state; includes `Message` and `Code` fields. +- **Insufficient permissions** — Launch requires at minimum `ec2:RunInstances` (with wildcard resource) and `iam:PassRole` (scoped to the role ARN). +- **IMDSv2 enforcement** — Account-level `httpTokensEnforced` setting (or Organization declarative policy) blocks launching IMDSv1-enabled instances; must launch with `httpTokens=required` or disable enforcement via `ModifyInstanceMetadataDefaults`. + +## Commands and Syntax + +**Check device names used by an AMI:** +``` +aws ec2 describe-images --image-id ami-0abcdef1234567890 \ + --query 'Images[*].BlockDeviceMappings[].DeviceName' +``` + +**Get termination reason via CLI:** +``` +aws ec2 describe-instances --instance-id i-1234567890abcdef0 +``` +Look for `StateReason.Message` in the response (e.g., `"Client.VolumeLimitExceeded: Volume limit exceeded"`). + +**Windows Update registry fix (user data script):** +``` +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 3 /f +net stop wuauserv +net start wuauserv +``` +Values: 1=Never check, 2=Check only, 3=Download only, 4=Auto-install. + +## Relationships + +- **IAM** — `ec2:RunInstances` and `iam:PassRole` permissions required; authorization failure messages can be decoded for missing permissions. +- **AWS KMS** — Encrypted EBS volumes/snapshots require KMS key access; missing permissions cause immediate termination. +- **EBS** — Volume limits and snapshot integrity directly affect launch success. +- **Service Quotas** — Instance limits are per-region and adjustable via service quota increase requests. +- **CloudTrail** — Can be used to investigate termination reasons via event history. +- **IMDS** — Account-level IMDSv2 enforcement (and Organization declarative policies) gate instance launch behavior. +- **Placement Groups** — Cluster placement groups can trigger `InsufficientInstanceCapacity` errors. + +## Exam-Relevant Points + +- An instance going directly from **pending → terminated** typically indicates EBS volume limits, corrupted snapshots, or missing KMS key permissions — check `StateReason` in the console or CLI. +- `InsufficientInstanceCapacity` is an **AWS-side** capacity issue — not an account limit. Mitigation: try different AZ, smaller batch, or different instance type. +- `InstanceLimitExceeded` is an **account-side** limit — resolved by requesting a service quota increase, not by changing AZ or instance type. +- Launching instances requires both `ec2:RunInstances` (wildcard resource) **and** `iam:PassRole` (scoped to role ARN) — a common exam trap. +- `Client.InternalError: Client error on launch` as a termination reason points to **KMS key permission** issues on encrypted volumes. +- IMDSv2 enforcement at account level uses `ModifyInstanceMetadataDefaults` API — instances must be launched with `httpTokens=required` when enforcement is enabled. +- Windows instances may show 50–99% CPU after launch due to Windows Update checks — configurable via registry and user data scripts. + diff --git a/entries/2026/03/11/AWSEC2-latest-UserGuide-using-spot-instanceshtml.md b/entries/2026/03/11/AWSEC2-latest-UserGuide-using-spot-instanceshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1f6c9f0a54a0d0310eeecc33d2b08fefdaceee90 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-UserGuide-using-spot-instanceshtml.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html +source: sources/AWSEC2-latest-UserGuide-using-spot-instanceshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:10 + + + +## Overview + +EC2 Spot Instances use spare AWS capacity at discounts compared to On-Demand pricing. Prices adjust 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 like batch jobs, data analysis, and background processing. + +## Key Concepts + +- **Spot capacity pool** — Set of unused EC2 instances with the same instance type and Availability Zone +- **Spot price** — Current hourly price, adjusted gradually based on long-term supply/demand (not auction-based) +- **Spot Instance request** — Can be **one-time** or **persistent**; persistent requests are automatically resubmitted after interruption +- **EC2 instance rebalance recommendation** — Early warning signal that a Spot Instance is at elevated risk of interruption (before the 2-minute notice) +- **Spot Instance interruption** — AWS terminates, stops, or hibernates the instance with a **2-minute warning** +- Spot Instances launch only when capacity is available; if unavailable, the request keeps retrying (unlike On-Demand which returns an ICE error) + +## Commands and Syntax + +- **View Spot price history (CLI):** `aws ec2 describe-spot-price-history` +- Spot pricing page updates every **5 minutes** with lowest price per region and instance type +- Price history is available for the **past 3 months** + +## Relationships + +- **Auto Scaling** — ASGs can terminate Spot Instances during scale-in +- **EBS** — EBS-backed Spot Instances can be stopped and started (not just terminated) +- **Spot Fleet** — Manages collections of Spot Instances; savings viewable per fleet +- **Savings Plans** — Do **not** cover Spot Instances; Spot spend does not count toward Compute Savings Plans commitments +- **Rebalance recommendations** — Complements the 2-minute interruption notice for proactive workload migration +- **Purchasing options** — Compared against On-Demand, Reserved Instances, and Savings Plans + +## Exam-Relevant Points + +- Spot Instances provide the **largest discount** of any EC2 purchasing option +- Interruption notice is **2 minutes**; rebalance recommendation comes **before** the interruption notice +- Persistent requests auto-resubmit after interruption; one-time requests do not +- **Billing on interruption** depends on OS and **who** interrupted (you vs. AWS) +- Spot pricing is **not auction-based** — it's set by AWS based on long-term supply/demand +- Savings Plans provide **no additional savings** on Spot and Spot spend **does not apply** to Savings Plans commitments +- AZ codes (e.g., `us-west-2a`) map differently across accounts — price comparisons across accounts need the AZ ID, not the code + diff --git a/entries/2026/03/11/AWSEC2-latest-WindowsGuide-LaunchingAndUsingInstanceshtml.md b/entries/2026/03/11/AWSEC2-latest-WindowsGuide-LaunchingAndUsingInstanceshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a767f99f5e98aec051fc89438cc48063875d51f8 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-WindowsGuide-LaunchingAndUsingInstanceshtml.md @@ -0,0 +1,51 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/LaunchingAndUsingInstances.html +source: sources/AWSEC2-latest-WindowsGuide-LaunchingAndUsingInstanceshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:10 + + + +## Overview +This page covers the fundamentals of launching an Amazon EC2 instance — a virtual server in the AWS Cloud. It explains the relationship between instances and AMIs, Free Tier eligibility, placement options (Availability Zones, Local Zones, Wavelength Zones, Outposts), instance lifecycle states, and the various methods/tools available for launching instances. + +## Key Concepts +- An **instance** is a virtual server; it is launched from an **AMI** (Amazon Machine Image) which provides the OS, application server, and applications. +- **Free Tier** (accounts created before July 15, 2025): `t2.micro` free for 12 months (`t3.micro` where t2.micro unavailable). +- **Free Tier** (accounts created on/after July 15, 2025): `t3.micro`, `t3.small`, `t4g.micro`, `t4g.small`, `c7i-flex.large`, `m7i-flex.large` for 6 months or until credits exhausted. +- Instances are launched into a **subnet** associated with an Availability Zone (default), Local Zone, Wavelength Zone, or Outpost. +- Instance state transitions: `pending` → `running` (booting). Bare metal instances take longer to launch. +- Instances receive both a **public DNS name** (internet-reachable) and a **private DNS name** (VPC-internal). +- Charges accrue while the instance is **running**, even if idle. +- **Terminate** instances when done to avoid unnecessary costs. + +## Commands and Syntax +Multiple launch methods are supported: +- **Console**: Launch instance wizard, launch templates, clone from existing instance, AWS Marketplace AMI +- **AWS CLI**: `aws ec2 run-instances` with a specified AMI; also EC2 Fleet for multi-type/multi-AZ provisioning +- **CloudFormation**: `AWS::EC2::Instance` resource type +- **AWS SDKs**: .NET, C++, Go, Java, JavaScript, PHP, Python, Ruby +- **PowerShell**: AWS Tools for Windows PowerShell + +## Relationships +- **AMIs** → provide the base image for instances +- **Subnets / VPCs** → instances launch into subnets; determine network placement +- **Security Groups** → inbound rules configured at launch for connectivity +- **Instance Profiles (IAM Roles)** → attached at launch for AWS API permissions +- **Launch Templates** → reusable launch configurations +- **EC2 Fleet / Spot Fleet** → capacity provisioning across instance types and purchase options +- **Local Zones / Wavelength Zones / Outposts** → edge and on-premises placement options +- **CloudFormation** → infrastructure-as-code provisioning of instances + +## Exam-Relevant Points +- Free Tier instance types differ based on account creation date (before vs. on/after July 15, 2025). +- Default placement is an **Availability Zone**; Local Zones and Wavelength Zones require opt-in and subnet creation. +- An instance incurs charges while **running**, even if idle — stopping or terminating avoids costs. +- Bare metal instances have longer launch times than virtualized instances. +- Instances get both public and private DNS names; private DNS is for intra-VPC communication. +- Launch templates are the recommended reusable mechanism for specifying launch parameters. +- EC2 Fleet enables provisioning across multiple instance types, AZs, and purchase options (On-Demand, Reserved, Spot). + diff --git a/entries/2026/03/11/AWSEC2-latest-WindowsGuide-conceptshtml.md b/entries/2026/03/11/AWSEC2-latest-WindowsGuide-conceptshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..10c1447cc465cde6ed2013cfc0cb624b3452a427 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-WindowsGuide-conceptshtml.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/concepts.html +source: sources/AWSEC2-latest-WindowsGuide-conceptshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:10 + + + +## Overview +Amazon Elastic Compute Cloud (Amazon EC2) provides on-demand, scalable virtual servers (instances) in the AWS Cloud. It allows users to launch, configure, and manage compute capacity with flexible pricing models, eliminating the need for upfront hardware investment. EC2 is a foundational AWS service that integrates with numerous other services for monitoring, scaling, load balancing, and management. + +## Key Concepts +- **EC2 Instance**: A virtual server in the AWS Cloud; the instance type determines the hardware (CPU, memory, network, storage) available. +- **Amazon Machine Image (AMI)**: Preconfigured template packaging OS and software for launching instances. +- **Instance Types**: Various configurations offering different balances of compute, memory, storage, networking, and graphics hardware. +- **Amazon EBS Volumes**: Persistent block storage that survives instance stop/terminate. +- **Instance Store Volumes**: Ephemeral storage — data is **deleted** when you stop, hibernate, or terminate the instance. +- **Key Pairs**: Asymmetric encryption for secure login; AWS holds the public key, you hold the private key. +- **Security Groups**: Virtual firewall controlling inbound (protocols, ports, source IPs) and outbound (destination IPs) traffic to instances. +- **PCI DSS Compliance**: EC2 is validated as PCI DSS Level 1 compliant for credit card data processing. + +## Commands and Syntax +No specific CLI commands on this page, but access methods include: +- **EC2 Console** — web UI via AWS Management Console +- **AWS CLI** — `aws ec2 ` (reference: `aws cli latest reference ec2`) +- **CloudFormation** — JSON/YAML templates for declarative provisioning +- **AWS SDKs** — language-specific APIs (Python/Boto3, Java, etc.) +- **AWS Tools for PowerShell** — PowerShell cmdlets +- **Query API** — HTTP GET/POST with `Action` parameter + +## Relationships +- **EC2 Auto Scaling** — maintains correct instance count for load +- **Elastic Load Balancing** — distributes traffic across instances +- **Amazon CloudWatch** — monitoring for instances and EBS volumes +- **AWS Backup** — automated backups of instances and EBS +- **Amazon GuardDuty** — threat detection for EC2 +- **EC2 Image Builder** — automated AMI creation pipeline +- **AWS Systems Manager** — operations at scale on EC2 +- **Alternative compute**: Amazon Lightsail (simpler/cheaper), Amazon ECS (containers on EC2), Amazon EKS (Kubernetes on AWS) + +## Exam-Relevant Points +- Instance store data is **lost** on stop, hibernate, or terminate — EBS persists. +- On-Demand billing is **per-second** with a **60-second minimum**. +- **Pricing models** (know all six): On-Demand, Savings Plans, Reserved Instances, Spot Instances, Dedicated Hosts, On-Demand Capacity Reservations. +- Savings Plans and Reserved Instances commit for **1 or 3 years**. +- Dedicated Hosts provide a **physical server** — useful for BYOL (bring your own license) and compliance. +- Spot Instances offer the **largest discount** but can be interrupted. +- Security groups act as a **stateful firewall** at the instance level. +- EC2 is **PCI DSS Level 1** compliant. +- **AWS Trusted Advisor** optimizes cost, security, and performance. +- **AWS Cost Explorer** shows up to 13 months of historical data and 12 months of forecast. + diff --git a/entries/2026/03/11/AWSEC2-latest-WindowsGuide-ec2-security-groupshtml.md b/entries/2026/03/11/AWSEC2-latest-WindowsGuide-ec2-security-groupshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c83c23d26301bfb6f8894905864011db67f09de7 --- /dev/null +++ b/entries/2026/03/11/AWSEC2-latest-WindowsGuide-ec2-security-groupshtml.md @@ -0,0 +1,51 @@ +--- +source_url: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-security-groups.html +source: sources/AWSEC2-latest-WindowsGuide-ec2-security-groupshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:10 + + + +## Overview +This page covers Amazon EC2 security groups, which act as virtual firewalls controlling inbound and outbound traffic for EC2 instances within a VPC. It explains how security groups are configured, associated with instances, and how their stateful nature affects traffic evaluation. + +## Key Concepts +- A **security group** is a virtual firewall for EC2 instances controlling incoming and outgoing traffic +- Instances can be associated with **multiple security groups**, and each security group can be associated with **multiple instances** +- If no security group is specified at launch, the **default security group** for the VPC is used +- Security groups can be **changed after launch** +- Rules can be **modified at any time** — changes are **automatically applied** to all associated instances +- When evaluating traffic, EC2 evaluates **all rules from all security groups** associated with the instance (rules are additive/union) +- **Security groups are stateful**: response traffic to an allowed request is automatically permitted regardless of rules in the other direction +- There is **no additional charge** for using security groups +- Security groups operate under the **shared responsibility model** — AWS provides the tool, customers must configure it +- You can run **your own firewall** on instances in addition to security groups + +## Commands and Syntax +No specific CLI commands on this page. Key operations referenced: +- **Create** a security group +- **Change** security groups associated with an instance +- **Delete** a security group +- **Add/modify rules** (inbound and outbound) on a security group + +## Relationships +- **VPC**: Security groups exist within a VPC and are scoped to it +- **Subnets/Instances**: Security groups are associated with instances within subnets +- **Internet Gateway**: Works alongside security groups to control internet-facing traffic +- **Network ACLs**: Complementary stateless firewall at the subnet level (not covered here but contrasts with stateful security groups) +- **Connection Tracking**: Underlies the stateful behavior of security groups +- **EC2 Security (shared responsibility)**: Security groups are one tool within the broader EC2 security model + +## Exam-Relevant Points +- Security groups are **stateful** (contrast with NACLs which are stateless) +- Default behavior: if no security group specified, the **default VPC security group** is used +- Rules are **allow-only** — there are no deny rules; traffic not explicitly allowed is denied +- All rules across all associated security groups are **evaluated together** (logical OR/union) +- Rule changes take effect **immediately and automatically** on all associated instances +- Security groups operate at the **instance level**, not the subnet level +- **No additional cost** for security groups +- You can associate **multiple security groups per instance** and **multiple instances per security group** (many-to-many) + diff --git a/entries/2026/03/11/AWSSimpleQueueService-latest-SQSDeveloperGuide-sqs-logging-using-cloudtrailhtml.md b/entries/2026/03/11/AWSSimpleQueueService-latest-SQSDeveloperGuide-sqs-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..35ad237b65ac6aeb22274bf5f49808b64acad3c1 --- /dev/null +++ b/entries/2026/03/11/AWSSimpleQueueService-latest-SQSDeveloperGuide-sqs-logging-using-cloudtrailhtml.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-logging-using-cloudtrail.html +source: sources/AWSSimpleQueueService-latest-SQSDeveloperGuide-sqs-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:11 + + + +## Overview +This page describes how to log and monitor Amazon SQS API activity using AWS CloudTrail, covering both data events (data plane operations like sending/receiving messages) and management events (control plane operations like creating/deleting queues). + +## Key Concepts +- **Two event types**: CloudTrail captures SQS activity as either **data events** or **management events** +- **Data events** = data plane operations (e.g., SendMessage, ReceiveMessage); high-volume; **not logged by default**; additional charges apply +- **Management events** = control plane operations (e.g., CreateQueue, DeleteQueue); **logged by default** +- **Advanced event selectors** are required to log SQS data events — use resource type `AWS::SQS::Queue` +- Advanced event selectors support filtering by `eventName` to capture only specific operations +- **Message bodies are hidden** in CloudTrail logs (`"messageBody": "HIDDEN_DUE_TO_SECURITY_REASONS"`) +- `ListQueues` is a special case — its ARN uses a wildcard (`*`) instead of a specific queue name since it doesn't target a specific resource +- Data events do **not** appear in the CloudTrail Event History console + +## Commands and Syntax +**Data events — SQS APIs logged** (resource type `AWS::SQS::Queue`): +`ChangeMessageVisibility`, `ChangeMessageVisibilityBatch`, `DeleteMessage`, `DeleteMessageBatch`, `GetQueueAttributes`, `GetQueueUrl`, `ListDeadLetterSourceQueues`, `ListQueues`, `ListQueueTags`, `ReceiveMessage`, `SendMessage`, `SendMessageBatch` + +**Management events — SQS APIs logged by default**: +`AddPermission`, `CancelMessageMoveTask`, `CreateQueue`, `DeleteQueue`, `ListMessageMoveTasks`, `PurgeQueue`, `RemovePermission`, `SetQueueAttributes`, `StartMessageMoveTask`, `TagQueue`, `UntagQueue` + +## Relationships +- **CloudTrail**: Parent logging service; SQS integrates via data and management event types +- **CloudTrail Advanced Event Selectors**: Required mechanism for enabling SQS data event logging +- **CloudTrail Event History**: Only shows management events, not data events +- **CloudTrail Pricing**: Data events incur additional costs beyond management event logging +- **Dead Letter Queues**: `ListDeadLetterSourceQueues` is a trackable data event +- **Message Move Tasks**: `StartMessageMoveTask`, `CancelMessageMoveTask`, `ListMessageMoveTasks` are management events (DLQ redrive operations) + +## Exam-Relevant Points +- SQS **data events are NOT logged by default** — you must explicitly enable them via advanced event selectors +- SQS **management events ARE logged by default** +- Data events incur **additional CloudTrail charges** +- The resource type for SQS in CloudTrail is `AWS::SQS::Queue` +- Message body content is **never recorded** in CloudTrail (hidden for security) +- `SendMessage` events have `"managementEvent": false` and `"eventCategory": "Data"` — know how to distinguish data vs. management events in log records +- `ListQueues` uses a wildcard ARN since it's not scoped to a specific queue +- `readOnly: false` for `SendMessage` — message-producing operations are classified as write events + diff --git a/entries/2026/03/11/AmazonCloudFront-latest-DeveloperGuide-logging_using_cloudtrailhtml.md b/entries/2026/03/11/AmazonCloudFront-latest-DeveloperGuide-logging_using_cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d259b5c9e43748279daab3aa4259caeb6b34e3e8 --- /dev/null +++ b/entries/2026/03/11/AmazonCloudFront-latest-DeveloperGuide-logging_using_cloudtrailhtml.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/logging_using_cloudtrail.html +source: sources/AmazonCloudFront-latest-DeveloperGuide-logging_using_cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:11 + + + +## Overview +This page describes how Amazon CloudFront integrates with AWS CloudTrail to log API calls. CloudTrail captures both management events (control plane operations like `UpdateDistribution`) and data events (data plane operations on KeyValueStore) for CloudFront. CloudFront is a global service, so its CloudTrail events are recorded in the US East (N. Virginia) region. + +## Key Concepts +- **Management events**: All CloudFront control plane API operations are logged by default as management events (e.g., `UpdateDistribution`, `CreateDistribution`) +- **Data events**: Operations on CloudFront KeyValueStore resources; **not logged by default**, must be explicitly enabled, and incur additional charges +- **KeyValueStore data events**: `DeleteKeys`, `DescribeKeyValueStore`, `GetKey`, `ListKeys`, `PutKeys`, `UpdateKeys` — resource type is `AWS::CloudFront::KeyValueStore` +- **Event history**: Provides 90 days of management events at no charge; viewable, searchable, downloadable, and immutable +- **Trails**: Deliver log files to S3 for retention beyond 90 days; console-created trails are multi-Region by default +- **CloudTrail Lake**: SQL-based querying over events stored in Apache ORC columnar format in event data stores; incurs costs +- **Global service logging**: CloudFront events are always recorded in `us-east-1` regardless of where the action originated +- **eventSource differentiation**: CloudFront API calls use `cloudfront.amazonaws.com`; KeyValueStore API calls use `edgekeyvaluestore.amazonaws.com` +- **Advanced event selectors**: Filter data events on `eventName`, `readOnly`, and `resources.ARN` + +## Commands and Syntax +No CLI commands shown directly, but key configuration points: +- To log KeyValueStore data events, use advanced event selectors with `resources.type` = `AWS::CloudFront::KeyValueStore` +- Trails can be created as single-Region or multi-Region via CLI (console always creates multi-Region) + +## Relationships +- **CloudTrail**: Core dependency — provides the logging infrastructure +- **S3**: Storage destination for trail log files +- **CloudTrail Lake**: Alternative storage/query mechanism using event data stores +- **IAM/STS**: Identity information in every event reveals who made requests (root, IAM user, federated, assumed role) +- **ACM**: Certificates referenced in distribution configs (visible in CloudTrail event payloads) +- **WAF**: Web ACL associations visible in CloudTrail event payloads +- **Lambda@Edge / CloudFront Functions**: Function associations appear in distribution config events + +## Exam-Relevant Points +- CloudFront is a **global service** — CloudTrail logs its events only in **us-east-1** +- Management events are logged **by default**; data events are **not** and cost extra +- CloudTrail Event history retains **90 days** of management events for free +- The only CloudFront resource type supporting data events is **KeyValueStore** +- Console-created trails are always **multi-Region**; CLI can create single-Region trails +- `eventSource` differs between CloudFront API (`cloudfront.amazonaws.com`) and KeyValueStore API (`edgekeyvaluestore.amazonaws.com`) +- One free copy of management events can be delivered to S3 via a trail (S3 storage charges still apply) +- CloudTrail Lake uses **Apache ORC** columnar format for event storage + diff --git a/entries/2026/03/11/AmazonCloudWatch-latest-logs-WhatIsCloudWatchLogshtml.md b/entries/2026/03/11/AmazonCloudWatch-latest-logs-WhatIsCloudWatchLogshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1b09838c6ee4bafcf4ec54e5ee791b8129652fcd --- /dev/null +++ b/entries/2026/03/11/AmazonCloudWatch-latest-logs-WhatIsCloudWatchLogshtml.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html +source: sources/AmazonCloudWatch-latest-logs-WhatIsCloudWatchLogshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:12 + + + +## Overview +Amazon CloudWatch Logs is a centralized log management service that collects, monitors, stores, and analyzes log data from EC2 instances, CloudTrail, Route 53, and other AWS/application sources. It presents logs as a unified, time-ordered stream of events and supports querying, sensitive data masking, metric generation from logs, and two log classes for cost optimization. + +## Key Concepts +- **Log Classes**: Two tiers — *Standard* (full features, higher cost) and *Infrequent Access* (lower ingestion cost, subset of features) +- **CloudWatch Logs Insights**: Purpose-built query language for interactive log search and analysis +- **Field Indexes**: Pre-created indexes on log event fields that reduce query scan volume and speed up results +- **Live Tail**: Real-time streaming view of log events as they are ingested, with filtering and highlighting for incident troubleshooting +- **Data Protection Policies**: Audit and mask sensitive data in logs using configurable data identifiers; masked by default when enabled +- **Log Retention**: Default is indefinite (never expires); configurable from 1 day to 10 years per log group +- **Deletion Protection**: Optional safeguard preventing accidental deletion of log groups/streams; disabled by default, must be explicitly enabled/disabled +- **Log Centralization**: Cross-account and cross-region replication rules to consolidate logs into a central account/region, with optional backup region +- **Encryption**: Log data is encrypted both in transit and at rest +- **Metric Filters**: Generate CloudWatch metrics from log data by matching literal terms or patterns (no code changes required) + +## Commands and Syntax +No CLI commands are detailed on this page. Key operational references: +- CloudWatch Logs agent handles shipping rotated/non-rotated logs from hosts +- Metric filters can match literal terms (e.g., `NullReferenceException`) or positional patterns (e.g., `404` status codes) +- Alarms can be created on CloudTrail API activity captured in CloudWatch Logs + +## Relationships +- **CloudTrail** → Sends API activity logs to CloudWatch Logs; CloudWatch Logs API calls are themselves logged by CloudTrail +- **IAM** → Controls authentication and authorization for CloudWatch Logs resources +- **Kinesis Data Streams** → Real-time log streaming destination from CloudWatch Logs +- **Lambda** → Can be triggered by CloudWatch Logs subscriptions; Lambda's own logs are stored in CloudWatch Logs +- **Route 53** → DNS query logs can be sent to CloudWatch Logs +- **Amazon S3** → CloudTrail delivers log files to S3; CloudWatch Logs can export to S3 +- **Amazon EC2** → CloudWatch Logs agent runs on EC2 instances to ship application/system logs +- **VPC Flow Logs** → Stored in CloudWatch Logs at standard rates + +## Exam-Relevant Points +- Default log retention is **indefinite** — you must explicitly set a retention policy to expire logs +- Two log classes: **Standard** (all features) and **Infrequent Access** (lower cost, fewer features) +- Data protection policies **mask** sensitive data by default when enabled (audit + mask) +- Deletion protection is **not enabled by default** — it's an opt-in safeguard +- Log data is encrypted **in transit and at rest** +- CloudWatch Logs can generate **CloudWatch metrics from log patterns** without code changes (metric filters) +- Field indexes reduce **scan volume** (cost optimization for Logs Insights queries) +- Cross-account/cross-region centralization supports a **backup region** for resiliency +- Free tier is available; VPC flow logs and Lambda logs stored at standard rates + diff --git a/entries/2026/03/11/AmazonCloudWatch-latest-logs-cloudwatch_limits_cwlhtml.md b/entries/2026/03/11/AmazonCloudWatch-latest-logs-cloudwatch_limits_cwlhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..05ee600c40c830df49c8b1470292c589deb550a7 --- /dev/null +++ b/entries/2026/03/11/AmazonCloudWatch-latest-logs-cloudwatch_limits_cwlhtml.md @@ -0,0 +1,78 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/cloudwatch_limits_cwl.html +source: sources/AmazonCloudWatch-latest-logs-cloudwatch_limits_cwlhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:12 + + + +## Overview +This page documents the default service quotas (limits) for Amazon CloudWatch Logs, covering API throttle limits, resource limits, and data size constraints. Most quotas are per-account per-region, and some are adjustable via the Service Quotas console or CLI. + +## Key Concepts +- **Quotas are per-account, per-region** — each AWS account in each region has independent limits +- **Adjustable vs. non-adjustable** — only certain quotas can be increased via Service Quotas; most API throttle limits are fixed +- **Key resource limits:** + - Log groups: 1,000,000 per account/region (adjustable) + - Subscription filters per log group: 2 (not adjustable) + - Metric filters per log group: 100 (not adjustable) + - Resource policies: 10 per account/region (not adjustable) + - Active export tasks: 1 (not adjustable) + - Log anomaly detectors: 500 (adjustable) + - Live Tail concurrent sessions: 15 (adjustable) +- **Key data limits:** + - Event size: 1,024 KB (1 MB) max per log event + - PutLogEvents batch size: 1 MB max + - Free data archiving: 5 GB +- **Key API throttle limits:** + - PutLogEvents: 5,000 TPS (adjustable) — highest throttle limit + - CreateLogStream: 50 TPS (adjustable) + - CreateLogGroup / DeleteLogGroup: 10 TPS (adjustable) + - DescribeLogStreams: 25 TPS (adjustable) + - FilterLogEvents: varies by region (5–25 TPS, not adjustable) + - GetLogEvents: varies by region (10–30 TPS, not adjustable) + - Most other APIs: 5 TPS (not adjustable) +- **Regional variation** — FilterLogEvents and GetLogEvents have different limits in specific regions (e.g., us-east-1 gets 25 TPS for FilterLogEvents) + +## Commands and Syntax +**View default quotas via CLI:** +```bash +aws service-quotas list-aws-default-service-quotas \ + --query 'Quotas[*].{Adjustable:Adjustable,Name:QuotaName,Value:Value,Code:QuotaCode}' \ + --service-code logs \ + --output table +``` + +**Request a quota increase via CLI:** +```bash +aws service-quotas request-service-quota-increase \ + --service-code logs \ + --quota-code \ + --desired-value +``` + +**Console procedure:** Service Quotas console → AWS services → Amazon CloudWatch Logs → select quota → Request quota increase. + +## Relationships +- **Service Quotas** — CloudWatch Logs integrates with Service Quotas for centralized quota management +- **CloudWatch Metrics** — metric filters (limited to 100 per log group) create CloudWatch metrics from log data +- **S3** — export tasks (limited to 1 active) export log data to S3; S3 Table integrations have their own throttle limits +- **KMS** — AssociateKmsKey quota relates to encryption of log groups with customer-managed keys +- **Subscription filters** — the 2-per-log-group limit affects architectures streaming logs to Lambda, Kinesis, or Firehose +- **Live Tail** — limited to 15 concurrent sessions and 10 log groups per session + +## Exam-Relevant Points +- **PutLogEvents batch size is 1 MB** and max event size is **1,024 KB** — critical for sizing log ingestion +- **Only 2 subscription filters per log group** — a common architectural constraint; cannot be increased +- **100 metric filters per log group** — not adjustable +- **1 million log groups per account/region** — adjustable +- **Only 1 active export task** at a time — not adjustable; affects bulk export strategies +- **10 resource policies** per account/region — not adjustable; impacts cross-account log sharing designs +- **PutLogEvents is 5,000 TPS** (adjustable) — the highest default API throttle, reflecting its high-volume nature +- **FilterLogEvents is NOT adjustable** and varies by region — important for log query workload planning +- Adjustable quotas include: log groups, CreateLogGroup/Stream, DeleteLogGroup/Stream, DescribeLogGroups/Streams, PutLogEvents, Live Tail sessions, anomaly detectors +- **Most API throttle limits are 5 TPS and not adjustable** + diff --git a/entries/2026/03/11/AmazonCloudWatch-latest-logs-logging_cw_api_calls_cwlhtml.md b/entries/2026/03/11/AmazonCloudWatch-latest-logs-logging_cw_api_calls_cwlhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c8d55727a23a96730ae74df77f2beeb57188eec0 --- /dev/null +++ b/entries/2026/03/11/AmazonCloudWatch-latest-logs-logging_cw_api_calls_cwlhtml.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/logging_cw_api_calls_cwl.html +source: sources/AmazonCloudWatch-latest-logs-logging_cw_api_calls_cwlhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:12 + + + +## Overview + +Amazon CloudWatch Logs is integrated with AWS CloudTrail to record API calls and console actions as events. CloudTrail captures identity information (who made the request, with what credentials, from what IP), enabling auditing and compliance monitoring of all CloudWatch Logs operations. + +## Key Concepts + +- **CloudTrail integration**: CloudWatch Logs API calls are automatically captured as CloudTrail events, including both console and programmatic (SDK/CLI) calls. +- **Event history**: CloudTrail provides a free, searchable, immutable record of the past **90 days** of management events per Region — no configuration required. +- **Trails**: For retention beyond 90 days, create a trail that delivers log files to an S3 bucket. Console-created trails are multi-Region by default; CLI can create single-Region trails. One free copy of management events per trail to S3 (S3 storage charges still apply). +- **CloudTrail Lake**: SQL-queryable event data store using Apache ORC columnar format. Supports advanced event selectors. Incurs ingestion/storage costs with configurable retention. +- **Identity tracking**: Every event records whether the request used root credentials, IAM user credentials, temporary credentials (assumed role/federated user), IAM Identity Center user, or was made by another AWS service. +- **eventSource**: Standard CloudWatch Logs API calls use `logs.amazonaws.com`; Query Generator console events use `monitoring.amazonaws.com`. + +## Commands and Syntax + +No CLI commands shown, but key CloudTrail event fields for CloudWatch Logs entries: + +| Field | Example Value | +|-------|---------------| +| `eventSource` | `logs.amazonaws.com` (API) or `monitoring.amazonaws.com` (Query Generator) | +| `eventName` | `CreateExportTask`, `GenerateQuery`, etc. | +| `eventType` | `AwsApiCall` | +| `eventCategory` | `Management` | + +**Logged API actions** include (non-exhaustive): `CreateLogGroup`, `DeleteLogGroup`, `CreateLogStream`, `DeleteLogStream`, `PutRetentionPolicy`, `PutSubscriptionFilter`, `PutMetricFilter`, `CreateExportTask`, `AssociateKmsKey`, `PutDataProtectionPolicy`, `PutAccountPolicy`, `StartQuery`, `StopQuery`, `StartLiveTail`, `TagResource`, `PutTransformer`, `CreateLogAnomalyDetector`, `PutIndexPolicy`, and many more (60+ actions total). + +## Relationships + +- **CloudTrail** → provides the audit infrastructure; CloudWatch Logs is one of many AWS services that integrate with it. +- **Amazon S3** → trail destination for log file storage beyond 90 days. +- **CloudTrail Lake** → alternative to S3 trails offering SQL-based querying with ORC columnar storage. +- **IAM** → identity information in each event ties back to IAM users, roles, and federated identities. +- **KMS** → `AssociateKmsKey`/`DisassociateKmsKey` actions link CloudWatch Logs encryption to KMS. +- **CloudWatch Logs Insights / Metric Insights** → Query Generator events logged under `monitoring.amazonaws.com`. + +## Exam-Relevant Points + +- CloudTrail Event history retains **90 days** of management events for free, with no setup required. +- To retain events beyond 90 days, you must create a **trail** (S3) or **CloudTrail Lake event data store**. +- Console-created trails are **multi-Region** by default; CLI-created trails can be single-Region. +- CloudTrail log files are **not ordered** — they are not a sequential stack trace. +- The `eventSource` for standard CloudWatch Logs actions is `logs.amazonaws.com`; Query Generator uses `monitoring.amazonaws.com`. +- CloudWatch Logs records **management events** (not data events like PutLogEvents) in CloudTrail. +- One copy of ongoing management events to S3 is free via trails; S3 storage charges apply separately. +- CloudTrail Lake uses **Apache ORC** format and supports **SQL-based queries** with configurable pricing options. + diff --git a/entries/2026/03/11/AmazonCloudWatch-latest-monitoring-CloudWatch_Dashboardshtml.md b/entries/2026/03/11/AmazonCloudWatch-latest-monitoring-CloudWatch_Dashboardshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..0b3af223172c12a72d761ae3b8013e64b773c426 --- /dev/null +++ b/entries/2026/03/11/AmazonCloudWatch-latest-monitoring-CloudWatch_Dashboardshtml.md @@ -0,0 +1,74 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Dashboards.html +source: sources/AmazonCloudWatch-latest-monitoring-CloudWatch_Dashboardshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:13 + + + +## Overview +Amazon CloudWatch dashboards provide customizable views for monitoring AWS resources and telemetry data in a single unified interface. Dashboards support cross-account and cross-Region visibility, enabling centralized monitoring across multiple AWS accounts and Regions. They can be created via the console, CLI, or the `PutDashboard` API. + +## Key Concepts +- **Automatic dashboards**: Pre-built dashboards provided by CloudWatch out of the box. +- **Custom dashboards**: User-created dashboards with selected metrics, alarms, and widgets. +- **Cross-account cross-Region dashboards**: Dashboards in a monitoring account that aggregate metrics, logs, traces, and alarms from multiple source accounts and Regions. +- **CloudWatch cross-account observability**: The underlying feature that enables cross-account dashboards; requires a monitoring account and one or more source accounts. +- **Monitoring account badge**: A blue "Monitoring account" badge appears at the top right of pages when signed in to a monitoring account with cross-account observability enabled. +- **Dashboard body structure**: JSON-based definition of widgets, metrics, and layout used with the `PutDashboard` API. +- **`accountId` parameter**: Can be set at the widget level (applies to all metrics in widget) or at the individual metric level to specify which account a metric comes from. +- **`region` parameter**: Similarly scoped at widget or metric level; defaults to the currently selected Region. +- **Favorites list**: Dashboards can be added to a favorites list for quick access alongside recently visited dashboards. + +## Commands and Syntax +- **API operation**: `PutDashboard` — creates or modifies a dashboard programmatically. +- **Widget-level accountId/region** (all metrics in widget from one account): + ```json + { + "widgets": [{ + "properties": { + "metrics": [...], + "accountId": "111122223333", + "region": "us-east-1" + } + }] + } + ``` +- **Metric-level accountId/region** (different metrics from different accounts): + ```json + ["AWS/EC2", "CPUUtilization", { + "id": "m2", + "accountId": "5555666677778888", + "region": "us-east-1" + }] + ``` +- **Logs Insights widget**: Uses `type: "log"` with `query`, `accountId`, and `region` properties. +- **Tip**: Create a dashboard in the console first, then use **Actions > View/edit source** to copy the JSON as a template. + +## IAM Permissions Required +| Permission | Grants | +|---|---| +| `cloudwatch:GetDashboard` + `cloudwatch:ListDashboards` | View dashboards | +| `cloudwatch:PutDashboard` | Create or modify dashboards | +| `cloudwatch:DeleteDashboards` | Delete dashboards | +| Managed policies: `AdministratorAccess` or `CloudWatchFullAccess` | Full dashboard access | + +## Relationships +- **CloudWatch cross-account observability**: Prerequisite for cross-account dashboards. +- **CloudWatch Metrics**: Dashboards visualize metrics; supports metric math expressions (`SEARCH`, `SUM(METRICS())`). +- **CloudWatch Alarms**: Alarms can be embedded in dashboards, including alarms that watch metrics in source accounts. +- **CloudWatch Logs Insights**: Log query widgets can query log groups across multiple source accounts. +- **AWS X-Ray**: Trace map nodes from source accounts can be viewed in cross-account dashboards. +- **IAM**: Dashboard access is controlled via IAM policies with specific `cloudwatch:*Dashboard*` permissions. + +## Exam-Relevant Points +- Cross-account dashboards require **CloudWatch cross-account observability** to be configured with monitoring and source accounts. +- The `accountId` parameter can be set at **widget level** or **individual metric level** — metric-level overrides widget-level. +- Default `accountId` is the currently logged-in account; default `region` is the currently selected Region. +- A single CloudWatch Logs Insights query in a monitoring account can query **multiple log groups in multiple source accounts** simultaneously. +- Three specific IAM permissions control dashboard access: `GetDashboard`/`ListDashboards` (view), `PutDashboard` (create/modify), `DeleteDashboards` (delete). +- Dashboards can include **metric math expressions** that combine metrics from different accounts and Regions. + diff --git a/entries/2026/03/11/AmazonCloudWatch-latest-monitoring-Lambda-Insights-metricshtml.md b/entries/2026/03/11/AmazonCloudWatch-latest-monitoring-Lambda-Insights-metricshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2e8b0c6241c54573f849099c7fc54f347967c12c --- /dev/null +++ b/entries/2026/03/11/AmazonCloudWatch-latest-monitoring-Lambda-Insights-metricshtml.md @@ -0,0 +1,38 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Lambda-Insights-metrics.html +source: sources/AmazonCloudWatch-latest-monitoring-Lambda-Insights-metricshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:13 + + + +## Overview +This page serves as a navigational index for Lambda Insights metrics documentation, covering the two categories of metrics collected by Lambda Insights: standard Lambda function metrics and managed instances Lambda function metrics. It notes that some metrics appear as time-series data in CloudWatch Metrics while others are only available through embedded metric format (EMF) log entries queried via CloudWatch Logs Insights. + +## Key Concepts +- **Lambda Insights** collects metrics from Lambda functions where the extension is installed +- **Two metric availability tiers:** + - Time-series aggregated data → available in **CloudWatch Metrics** + - Non-aggregated data → available only in **embedded metric format (EMF) log entries**, queryable via **CloudWatch Logs Insights** +- **Two metric categories:** + - Standard Lambda function metrics + - Managed Instances Lambda function metrics + +## Commands and Syntax +No commands or configuration syntax on this page (index page only). + +## Relationships +- **CloudWatch Metrics** — where aggregated Lambda Insights time-series data surfaces +- **CloudWatch Logs Insights** — required to query non-aggregated EMF log entries +- **Embedded Metric Format (EMF)** — the log format Lambda Insights uses to emit detailed metrics +- **Lambda Extensions** — Lambda Insights is deployed as an extension layer +- Child pages: `Lambda-Insights-metrics-lambda-functions` and `Lambda-Insights-metrics-managed-instances` + +## Exam-Relevant Points +- Not all Lambda Insights metrics appear in CloudWatch Metrics — some require CloudWatch Logs Insights queries against EMF log entries +- Lambda Insights must be explicitly installed (as a layer/extension) on each function to collect metrics +- Distinguish between standard Lambda function metrics and managed instances metrics as separate metric categories + diff --git a/entries/2026/03/11/AmazonCloudWatch-latest-monitoring-logging_cw_api_callshtml.md b/entries/2026/03/11/AmazonCloudWatch-latest-monitoring-logging_cw_api_callshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a8a883d68e9a365e6160aff56dac9f764eaff022 --- /dev/null +++ b/entries/2026/03/11/AmazonCloudWatch-latest-monitoring-logging_cw_api_callshtml.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/logging_cw_api_calls.html +source: sources/AmazonCloudWatch-latest-monitoring-logging_cw_api_callshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:13 + + + +## Overview +This page documents how Amazon CloudWatch and its related services (CloudWatch Synthetics, CloudWatch RUM, Amazon Q Developer operational investigations, Network Flow Monitor, and Internet Monitor) integrate with AWS CloudTrail for API and console activity logging. It covers which API actions are logged, how to enable data event logging, and provides example CloudTrail log entries for various operations. + +## Key Concepts +- **CloudTrail integration**: CloudWatch, Synthetics, RUM, Network Flow Monitor, Internet Monitor, and Q Developer operational investigations all log actions to CloudTrail +- **Management events vs. data events**: Most CloudWatch API calls are management events (logged by default); data plane operations (GetMetricData, PutMetricData, GetMetricWidgetImage, GetMetricStatistics, ListMetrics) are data events (not logged by default, incur additional charges) +- **Event history**: CloudTrail automatically provides 90 days of management event history at no charge; for longer retention, create a trail or CloudTrail Lake event data store +- **Trails**: Deliver log files to S3; console-created trails are multi-Region by default; CLI can create single-Region trails +- **CloudTrail Lake**: SQL-based querying of events stored in Apache ORC columnar format in immutable event data stores; incurs costs for ingestion and storage +- **Identity tracking**: Every log entry identifies whether the request used root credentials, IAM Identity Center user, temporary role/federated credentials, or another AWS service +- **Internal GetMetricData calls**: CloudWatch dashboards and cross-account observability generate internal GetMetricData calls that appear in CloudTrail but don't incur CloudWatch charges (they do count toward CloudTrail event volume) +- **Event sources**: CloudWatch uses `monitoring.amazonaws.com`; CloudWatch Events uses `events.amazonaws.com`; CloudWatch Logs uses `logs.amazonaws.com`; Q Developer investigations uses `aiops.amazonaws.com` + +## Commands and Syntax +No CLI commands are directly shown, but key configuration points include: +- **Enable data events**: Use CloudTrail console, AWS CLI, or API to enable logging for CloudWatch data plane operations (GetMetricData, PutMetricData, etc.) +- **Filter by resource type**: Data events can be filtered by resource type (`AWS::CloudWatch::Metric`) to control costs +- **CloudTrail log entry structure**: Key fields include `eventSource`, `eventName`, `userIdentity`, `requestParameters`, `sourceIPAddress`, `eventCategory` ("Data" vs "Management") + +## Relationships +- **CloudTrail**: Core dependency — provides the audit logging infrastructure +- **Amazon S3**: Storage destination for trail log files +- **CloudTrail Lake**: Alternative storage/query mechanism using SQL and ORC format +- **CloudWatch Logs**: Has its own separate CloudTrail integration (documented separately) +- **IAM**: Identity information in every CloudTrail entry ties back to IAM users, roles, and federated identities +- **Cross-account observability**: Monitoring accounts retrieving data from source accounts generate additional GetMetricData CloudTrail events +- **Related sub-services with their own CloudTrail sections**: Synthetics, RUM, Network Flow Monitor, Internet Monitor, Observability Access Manager, Application Signals, Application Insights + +## Exam-Relevant Points +- CloudTrail is **enabled by default** on all AWS accounts and provides **90 days** of management event history at no charge +- CloudWatch **data plane events** (GetMetricData, PutMetricData, GetMetricWidgetImage, GetMetricStatistics, ListMetrics) are **not logged by default** and require explicit enablement with additional charges +- Console-created trails are **multi-Region by default**; single-Region trails can only be created via CLI +- First copy of management events delivered to S3 via a trail is free; S3 storage charges still apply +- CloudTrail Lake stores events in **Apache ORC** columnar format and supports **SQL-based queries** +- Internal CloudWatch GetMetricData calls (dashboards, cross-account) appear in CloudTrail and **count toward CloudTrail event charges** but **not CloudWatch charges** +- The `eventSource` field distinguishes between services: `monitoring.amazonaws.com` (CloudWatch), `events.amazonaws.com` (EventBridge/CW Events), `logs.amazonaws.com` (CW Logs), `aiops.amazonaws.com` (Q Developer investigations) +- CloudWatch logs ~30 management API actions to CloudTrail including alarm, dashboard, metric stream, insight rule, and anomaly detector operations + diff --git a/entries/2026/03/11/AmazonECR-latest-userguide-logging-using-cloudtrailhtml.md b/entries/2026/03/11/AmazonECR-latest-userguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..cf52dc0fe460428cfbbcbccaa63ab672ab8ae0c3 --- /dev/null +++ b/entries/2026/03/11/AmazonECR-latest-userguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,70 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonECR/latest/userguide/logging-using-cloudtrail.html +source: sources/AmazonECR-latest-userguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:14 + + + +## Overview + +This page documents how Amazon ECR integrates with AWS CloudTrail to log all API actions, encryption-related actions, and lifecycle policy actions. It covers what events are captured, how to view them, and provides detailed CloudTrail log entry examples for common ECR operations including repository creation, image push/pull, lifecycle policy execution, image archival/restore, and referrer listing. + +## Key Concepts + +- **All ECR API calls** are logged by CloudTrail, including console actions, encryption-related actions, and lifecycle policy actions (both successful and unsuccessful) +- **CloudTrail is enabled by default** on every AWS account; recent events are viewable in Event history without creating a trail +- **Trails** enable continuous delivery of CloudTrail events to an S3 bucket; can be single-Region or all-Region +- **Lifecycle policy events** use event name `PolicyExecutionEvent`; dry run previews use `DryRunEvent` +- **Size limitation**: When lifecycle policies expire 10+ images, ECR sends **multiple CloudTrail events** (cannot fit in one); max 100 tags per image in a single event +- **sourceIPAddress** for console-originated actions reports the underlying resource address, not the console web server; for AWS service actions, only the DNS name is shown +- **userIdentity** element reveals whether requests used root credentials, IAM user credentials, temporary role/federated credentials, or were made by another AWS service +- **Image archival**: Uses `UpdateImageStorageClass` with `targetStorageClass` of `ARCHIVE` or `STANDARD`; restore is asynchronous (status goes through `ACTIVATING`) +- **KMS encryption**: Creating a KMS-encrypted repository generates **two** `CreateGrant` CloudTrail entries (via `kms.amazonaws.com` event source, not `ecr.amazonaws.com`) +- **OCI 1.1 referrers**: The `ListImageReferrers` event is emitted when OCI clients query reference artifacts + +## Commands and Syntax + +**API actions logged per common operation:** + +| Operation | CloudTrail Event Names | +|-----------|----------------------| +| Create repo | `GetAuthorizationToken`, `CreateRepository`, `SetRepositoryPolicy` | +| Push image | `InitiateLayerUpload`, `UploadLayerPart`, `CompleteLayerUpload`, `PutImage`, (`MountLayer` if blob mounting) | +| Pull image | `GetDownloadUrlForLayer`, `BatchGetImage` | +| Archive image | `UpdateImageStorageClass` (targetStorageClass: `ARCHIVE`) | +| Restore image | `UpdateImageStorageClass` (targetStorageClass: `STANDARD`) — two events: API call + service completion | +| Lifecycle expiry | `PolicyExecutionEvent` (eventType: `AwsServiceEvent`) | +| Lifecycle dry run | `DryRunEvent` | +| List referrers | `ListImageReferrers` | + +**Key CloudTrail log fields for ECR:** +- `eventSource`: `ecr.amazonaws.com` (or `kms.amazonaws.com` for KMS grants) +- `eventType`: `AwsApiCall` for user-initiated actions, `AwsServiceEvent` for lifecycle policy actions +- `resources[].ARN`: Repository ARN (e.g., `arn:aws:ecr:us-east-2:123456789012:repository/testrepo`) + +## Relationships + +- **CloudTrail**: ECR depends on CloudTrail for audit logging; trails deliver logs to S3 +- **AWS KMS**: ECR repositories with KMS encryption generate `CreateGrant` events with operations `GenerateDataKey` and `Decrypt` +- **S3**: CloudTrail log files are delivered to S3 buckets; lifecycle policy can also reference S3 for exports +- **CloudWatch Logs / SNS**: CloudTrail can forward events to CloudWatch Logs and send SNS notifications +- **IAM**: userIdentity in logs ties back to IAM users, roles, and federated identities +- **ECR Lifecycle Policies**: Execution and failures are recorded as service events with full rule and image details +- **OCI specification**: OCI 1.1 referrer queries generate specific CloudTrail events + +## Exam-Relevant Points + +- CloudTrail is **automatically enabled** on all AWS accounts — no setup required for Event History +- For **ongoing** log delivery, you must **create a trail** and specify an S3 bucket +- Lifecycle policy actions that expire **10+ images** result in **multiple CloudTrail events** due to event size limits +- KMS-encrypted ECR repos produce **two `CreateGrant` log entries** per repository creation +- Lifecycle policy events have eventType `AwsServiceEvent` (not `AwsApiCall`) and event name `PolicyExecutionEvent` +- Image restore from archive is **asynchronous** — initial status is `ACTIVATING`, completion is a separate service event +- The `sourceIPAddress` field shows `AWS Internal` for service-initiated actions, not a real IP +- Lifecycle failure reasons are logged (e.g., `ImageReferencedByManifestList` prevents deletion) +- `DryRunEvent` vs `PolicyExecutionEvent` distinguishes preview from actual lifecycle execution + diff --git a/entries/2026/03/11/AmazonECR-latest-userguide-repository-policieshtml.md b/entries/2026/03/11/AmazonECR-latest-userguide-repository-policieshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a163028d19500b334aee0087e2c1f7e0f8e87ca1 --- /dev/null +++ b/entries/2026/03/11/AmazonECR-latest-userguide-repository-policieshtml.md @@ -0,0 +1,69 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policies.html +source: sources/AmazonECR-latest-userguide-repository-policieshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:14 + +## Overview + +This page explains how Amazon ECR uses resource-based repository policies to control access to private repositories. It compares repository policies with IAM policies and describes how they interact when evaluating permissions. + +## Key Concepts + +- ECR uses **resource-based permissions** to control repository access +- By default, only the AWS account that created a repository has access to it +- **Repository policies** are a subset of IAM policies, scoped specifically to individual ECR repositories +- **IAM policies** can control access to the entire ECR service or specific resources +- **Explicit deny wins**: if either a repository policy or IAM policy denies an action, it is denied regardless of what the other allows +- **Either policy can grant access**: a user only needs to be allowed by *one* of the two policy types (repository policy OR IAM policy), not both +- `ecr:GetAuthorizationToken` must be granted via IAM policy before a user can authenticate to a registry and push/pull images — this cannot be granted via repository policy + +## Commands and Syntax + +**Repository policy example** (resource-based, attached to repo): +```json +{ + "Version": "2012-10-17", + "Statement": [{ + "Sid": "ECRRepositoryPolicy", + "Effect": "Allow", + "Principal": {"AWS": "arn:aws:iam::111122223333:user/username"}, + "Action": ["ecr:DescribeImages", "ecr:DescribeRepositories"], + "Resource": "*" + }] +} +``` + +**IAM policy equivalent** (identity-based, scoped by resource ARN): +```json +{ + "Version": "2012-10-17", + "Statement": [{ + "Sid": "AllowDescribeRepoImage", + "Effect": "Allow", + "Action": ["ecr:DescribeImages", "ecr:DescribeRepositories"], + "Resource": ["arn:aws:ecr:us-east-1:111122223333:repository/repository-name"] + }] +} +``` + +Key difference: repository policies include a `Principal` field; IAM policies use `Resource` ARNs to scope access. + +## Relationships + +- **IAM policies**: repository policies are evaluated alongside IAM identity-based policies; deny in either takes precedence +- **ECR authentication**: `ecr:GetAuthorizationToken` is a prerequisite managed only through IAM policies +- **AWS managed policies**: ECR provides managed IAM policies for common access patterns +- **Cross-account access**: repository policies with cross-account principals enable sharing repositories across AWS accounts + +## Exam-Relevant Points + +- An explicit deny in **either** policy type overrides an allow in the other +- A user needs permission from **only one** policy type (repo policy or IAM policy) for an action to be allowed +- `ecr:GetAuthorizationToken` **must** be in an IAM policy — it cannot be granted by a repository policy alone +- Repository policies use `Principal` to specify who; IAM policies use `Resource` to specify what +- Repository policies are **resource-based** and scoped to individual repositories + diff --git a/entries/2026/03/11/AmazonECR-latest-userguide-set-repository-policyhtml.md b/entries/2026/03/11/AmazonECR-latest-userguide-set-repository-policyhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ccf64111a12393f04c0a76b7bb471f82d4a2b253 --- /dev/null +++ b/entries/2026/03/11/AmazonECR-latest-userguide-set-repository-policyhtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonECR/latest/userguide/set-repository-policy.html +source: sources/AmazonECR-latest-userguide-set-repository-policyhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:14 + + + +## Overview + +This page describes how to configure resource-based access policy statements on private Amazon ECR repositories using the AWS Management Console, controlling who can perform which ECR API operations on a specific repository. + +## Key Concepts + +- ECR repositories support **resource-based policies** with multiple policy statements per repository +- Users must have `ecr:GetAuthorizationToken` permission via IAM policy before they can authenticate to a registry or push/pull images +- Policy statements specify **Effect** (Allow/Deny), **Principal** (who), and **Actions** (which ECR API operations) +- Principal options: all authenticated AWS users (`*`), service principals (e.g., `ecs.amazonaws.com`), specific AWS account IDs, or specific IAM entities (roles/users) +- Cross-account access requires the target account to have the repository's Region enabled +- Complex policies beyond console capabilities require the CLI + +## Commands and Syntax + +- **Console path**: ECR Console → Repositories → select repo → Permissions → Edit → Add statement +- **CLI fallback**: `aws ecr set-repository-policy` for advanced policies not supported in the console +- **Service principal format**: `ecs.amazonaws.com` +- **Account ID format**: `111122223333` (comma-delimited for multiple) + +## Relationships + +- **IAM policies** — users need `ecr:GetAuthorizationToken` via identity-based IAM policy as a prerequisite +- **ECR managed IAM policies** — AWS provides pre-built policies for varying access levels +- **Repository policy examples** — referenced for common patterns +- **ECS integration** — ECS service principal is a common cross-service consumer of ECR images +- **IAM Principal element** — ECR repository policies use standard AWS principal syntax + +## Exam-Relevant Points + +- `ecr:GetAuthorizationToken` is required at the **IAM identity policy level** before any registry interaction — repository policies alone are insufficient +- Repository policies are **resource-based policies**, distinct from IAM identity-based policies +- Cross-account image sharing requires both: a repository policy granting access AND the remote account having the Region enabled +- The `set-repository-policy` CLI command supports more complex policies than the console +- Service principals like `ecs.amazonaws.com` enable AWS services to pull images directly + diff --git a/entries/2026/03/11/AmazonECS-latest-APIReference-API_StopTaskhtml.md b/entries/2026/03/11/AmazonECS-latest-APIReference-API_StopTaskhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..32f36ee7190b17256e368581136ad68e128f33df --- /dev/null +++ b/entries/2026/03/11/AmazonECS-latest-APIReference-API_StopTaskhtml.md @@ -0,0 +1,61 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_StopTask.html +source: sources/AmazonECS-latest-APIReference-API_StopTaskhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:15 + + + +## Overview +The ECS `StopTask` API stops a running task by issuing the equivalent of `docker stop` to its containers. It sends a stop signal (default `SIGTERM`) with a 30-second grace period, after which `SIGKILL` forcibly terminates containers. Any tags associated with the task are deleted upon stopping. + +## Key Concepts +- **Stop signal flow**: `SIGTERM` → 30-second timeout → `SIGKILL` (if container doesn't exit gracefully) +- **STOPSIGNAL**: The stop signal can be customized in the container image via the `STOPSIGNAL` Dockerfile instruction; defaults to `SIGTERM` +- **Graceful shutdown**: If the container handles `SIGTERM` and exits within 30 seconds, no `SIGKILL` is sent +- **Windows containers**: POSIX signals don't work; runtime sends `CTRL_SHUTDOWN_EVENT` instead +- **Configurable timeout**: The 30-second default can be changed via the `ECS_CONTAINER_STOP_TIMEOUT` agent configuration variable +- **Tag deletion**: All tags on the task are deleted when it is stopped +- **Stop code**: Response includes `stopCode: "UserInitiated"` and `stoppedReason` when stopped via this API +- **Cluster default**: If no cluster is specified, the default cluster is assumed + +## Commands and Syntax +**Request parameters:** +| Parameter | Type | Required | Description | +|-----------|------|----------|-------------| +| `task` | String (ARN) | Yes | Full ARN of the task to stop | +| `cluster` | String | No | Cluster short name or ARN (defaults to default cluster) | +| `reason` | String | No | Custom message visible in subsequent `DescribeTasks` calls | + +**AWS CLI equivalent:** +```bash +aws ecs stop-task --task arn:aws:ecs:us-east-1:123456789012:task/MyCluster/36ad4ef... --cluster MyCluster --reason "Deployment rollback" +``` + +**Errors:** +| Error | HTTP Code | Cause | +|-------|-----------|-------| +| `ClientException` | 400 | Permissions or invalid identifier | +| `ClusterNotFoundException` | 400 | Cluster doesn't exist (region-specific) | +| `InvalidParameterException` | 400 | Invalid parameter value | +| `ServerException` | 500 | Server-side issue | + +## Relationships +- **DescribeTasks**: The `reason` parameter from StopTask appears in subsequent DescribeTasks responses +- **ListClusters**: Use to find valid cluster identifiers if `ClusterNotFoundException` occurs +- **ECS Agent Config**: `ECS_CONTAINER_STOP_TIMEOUT` controls the grace period (EC2 launch type only) +- **Docker STOPSIGNAL**: Container image configuration determines which signal is sent +- **Task lifecycle**: Stopped tasks transition through `stoppingAt` → `stoppedAt` timestamps; `desiredStatus` becomes `STOPPED` + +## Exam-Relevant Points +- Default stop timeout is **30 seconds**, configurable via `ECS_CONTAINER_STOP_TIMEOUT` +- Stop signal sequence: **SIGTERM first, then SIGKILL** after timeout — same as `docker stop` +- **Tags are deleted** when a task is stopped +- The `task` parameter (ARN) is the **only required** parameter +- ECS clusters are **Region-specific** — `ClusterNotFoundException` means wrong region or nonexistent cluster +- Windows containers use `CTRL_SHUTDOWN_EVENT`, not POSIX signals +- The `reason` field is **operational metadata** — useful for audit trails and custom schedulers + diff --git a/entries/2026/03/11/AmazonECS-latest-APIReference-API_UpdateContainerInstancesStatehtml.md b/entries/2026/03/11/AmazonECS-latest-APIReference-API_UpdateContainerInstancesStatehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a437306091b963be884ea04d0cfad5ed9191c3c0 --- /dev/null +++ b/entries/2026/03/11/AmazonECS-latest-APIReference-API_UpdateContainerInstancesStatehtml.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateContainerInstancesState.html +source: sources/AmazonECS-latest-APIReference-API_UpdateContainerInstancesStatehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:15 + + + +## Overview +The `UpdateContainerInstancesState` API modifies the status of Amazon ECS container instances, primarily used to set instances to `DRAINING` mode for graceful removal from a cluster (e.g., for maintenance, Docker daemon updates, or scaling down), and back to `ACTIVE` when ready to receive tasks again. + +## Key Concepts +- **DRAINING status**: Prevents new task placement on the instance; ECS starts replacement service tasks on other instances if resources are available +- **State transition rule**: An instance must be in `ACTIVE` state before it can be set to `DRAINING`; instances in `REGISTERING`, `DEREGISTERING`, or `REGISTRATION_FAILED` cannot be updated +- **PENDING tasks**: Stopped immediately when instance enters DRAINING +- **RUNNING service tasks**: Stopped and replaced according to the service's `minimumHealthyPercent` and `maximumPercent` deployment configuration +- **Standalone tasks**: PENDING or RUNNING tasks not belonging to a service are unaffected — they must finish or be stopped manually +- **Draining complete**: When the instance has zero RUNNING tasks (verify with `ListTasks`) +- **Re-activation**: A drained instance can be set back to `ACTIVE` to resume receiving task placements +- **Batch limit**: Up to 10 container instance IDs or ARNs per API call + +## Commands and Syntax +```json +// Request +{ + "cluster": "string", // optional, defaults to "default" cluster + "containerInstances": ["string"], // required, up to 10 IDs or ARNs + "status": "string" // required, valid values: ACTIVE | DRAINING +} +``` + +**AWS CLI equivalent:** +```bash +aws ecs update-container-instances-state \ + --cluster default \ + --container-instances 1c3be8ed-df30-47b4-8f1e-6e68ebd01f34 \ + --status DRAINING +``` + +**Deployment config interaction:** +- `minimumHealthyPercent` < 100%: Scheduler can stop existing tasks before replacements are healthy (e.g., 50% with 4 tasks → stop 2, then start 2) +- `minimumHealthyPercent` = 100%: Replacements must be healthy before draining tasks stop +- `maximumPercent` = 200%: Start all replacement tasks before stopping drained tasks +- `maximumPercent` = 100%: Replacements can't start until draining tasks stop + +## Relationships +- **UpdateService**: Used to modify `minimumHealthyPercent` and `maximumPercent` that govern draining behavior +- **ListTasks**: Used to verify draining is complete (no remaining RUNNING tasks) +- **ListClusters**: Referenced when `ClusterNotFoundException` occurs +- **ECS Service Scheduler**: Orchestrates replacement task placement during draining +- **Load Balancers**: Affect health determination — tasks behind an LB must be both RUNNING and reported healthy by the LB + +## Exam-Relevant Points +- Only `ACTIVE` and `DRAINING` are valid target states for this API; the other values (`REGISTERING`, `DEREGISTERING`, `REGISTRATION_FAILED`) are read-only states +- Instance must already be `ACTIVE` to transition to `DRAINING` +- Standalone (non-service) tasks are **not** drained automatically — only service tasks are replaced +- The `minimumHealthyPercent` / `maximumPercent` interaction controls the speed vs. availability tradeoff during draining +- Maximum of 10 container instances per call +- Cluster parameter is optional and defaults to the default cluster +- Tasks behind a load balancer have a stricter health check (RUNNING + LB healthy) vs. non-LB tasks (RUNNING only) + diff --git a/entries/2026/03/11/AmazonECS-latest-developerguide-ecs-account-settingshtml.md b/entries/2026/03/11/AmazonECS-latest-developerguide-ecs-account-settingshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3b9578197b72e7ce9228c52fe80362db15ee1b6a --- /dev/null +++ b/entries/2026/03/11/AmazonECS-latest-developerguide-ecs-account-settingshtml.md @@ -0,0 +1,87 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html +source: sources/AmazonECS-latest-developerguide-ecs-account-settingshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:16 + +## Overview + +This page covers Amazon ECS account settings, which allow you to opt in or out of specific ECS features on a per-Region basis. Settings can be applied at the account level, or for specific IAM users/roles. The root user or administrator sets defaults; federated users inherit the root user's settings and cannot have individual overrides. + +## Key Concepts + +- **Account settings scope**: Per-Region, per-account. Can be set for individual users/roles or as account-wide defaults. +- **Federated users** always inherit the root user's account setting — no individual override possible. +- **Available settings**: `containerInsights`, `serviceLongArnFormat`, `taskLongArnFormat`, `containerInstanceLongArnFormat`, `tagResourceAuthorization`, `fargateFIPSMode`, `fargateTaskRetirementWaitPeriod`, `fargateEventWindows`, `guardDutyActivate`, `dualStackIPv6`, `awsvpcTrunking`, `defaultLogDriverMode`. +- **ARN format**: New format includes cluster name in the ARN path (e.g., `arn:aws:ecs:region:account:task/cluster-name/task-id`). Opt-in period ended April 1, 2021 — all accounts now use the new format. +- **Resource ID length**: New format is 32 characters (no hyphens), down from 36 characters. +- **Container Insights**: Three values — `disabled` (default), `enabled`, `enhanced`. Enhanced observability (released Dec 2, 2024) is recommended; provides cluster-to-container-level telemetry. +- **FIPS-140 mode**: For Fargate workloads requiring federal compliance (FISMA/FedRAMP). Default `disabled`. Can only be changed via API/CLI. +- **Tagging authorization**: Requires explicit `ecs:TagResource` permission when creating resources with tags. Fully enforced since March 29, 2024 — no longer optional. +- **Fargate task retirement wait period**: Values `0` (immediate), `7` (default), or `14` days. Shorter periods recommended to pick up patches sooner. +- **Fargate event windows**: One-time account enablement; uses EC2 event windows to schedule task retirements. Tags (`aws:ecs:serviceArn`, `aws:ecs:clusterArn`, `aws:ecs:fargateTask`) scope the window. +- **awsvpcTrunking**: Increases ENI density on EC2 container instances (e.g., `c5.large` goes from 2 tasks to 10 tasks) by attaching a trunk ENI. +- **guardDutyActivate**: Read-only in ECS — controlled by GuardDuty/security admin. Type is `aws-managed`. +- **dualStackIPv6**: Enables IPv6 for `awsvpc` tasks in dual-stack VPCs. Default `disabled`. Can only be changed via API/CLI. +- **defaultLogDriverMode**: `non-blocking` (default as of June 25, 2025) or `blocking`. Non-blocking prioritizes task availability over logging completeness. + +## Commands and Syntax + +```bash +# Set account setting for current user +aws ecs put-account-setting --name --value + +# Set account-wide default (requires root/admin) +aws ecs put-account-setting-default --name --value + +# View effective settings +aws ecs list-account-settings --effective-settings + +# Container Insights enhanced (per-user) +aws ecs put-account-setting --name containerInsights --value enhanced + +# Update existing cluster to enhanced Container Insights +aws ecs update-cluster-settings --cluster cluster-name --settings name=containerInsights,value=enhanced + +# Enable FIPS-140 +aws ecs put-account-setting-default --name fargateFIPSMode --value enabled + +# Enable tagging authorization +aws ecs put-account-setting-default --name tagResourceAuthorization --value on --region region + +# Set Fargate task retirement wait (0, 7, or 14 days) +aws ecs put-account-setting-default --name fargateTaskRetirementWaitPeriod --value 14 + +# Enable Fargate event windows +aws ecs put-account-setting-default --name fargateEventWindows --value enabled + +# Set default log driver mode +aws ecs put-account-setting-default --name defaultLogDriverMode --value "blocking" +``` + +## Relationships + +- **CloudWatch Container Insights** — `containerInsights` setting feeds metrics to CloudWatch dashboards +- **IAM** — tagging authorization requires `ecs:TagResource` permission in IAM policies +- **GuardDuty** — `guardDutyActivate` is managed by GuardDuty Runtime Monitoring, not ECS directly +- **EC2 networking** — `awsvpcTrunking` depends on EC2 instance type ENI limits; `dualStackIPv6` requires dual-stack VPC configuration +- **EC2 event windows** — `fargateEventWindows` integrates with the EC2 event windows feature for scheduling maintenance +- **Fargate** — FIPS mode, task retirement, and event windows are Fargate-specific settings +- **VPC** — `awsvpc` network mode is prerequisite for both ENI trunking and dual-stack IPv6 + +## Exam-Relevant Points + +- **`put-account-setting`** applies to the calling user/role; **`put-account-setting-default`** sets account-wide defaults (requires root/admin) +- Federated users **cannot** have individual account settings — they inherit root user settings +- ARN new format opt-in ended **April 1, 2021** — all accounts permanently use new format with cluster name in ARN +- Tagging authorization became **mandatory March 29, 2024** — `ecs:TagResource` permission is required +- `awsvpcTrunking` dramatically increases task density (e.g., c5.large: 2 → 10 tasks) via trunk ENI +- `guardDutyActivate` is **read-only** in ECS — it's an `aws-managed` type setting controlled by GuardDuty +- `fargateFIPSMode` and `dualStackIPv6` can **only** be changed via API/CLI, not the console +- Default log driver mode changed from `blocking` to `non-blocking` on **June 25, 2025** +- Fargate task retirement default wait is **7 days**; options are 0, 7, or 14 days +- Existing resources are **not affected** by ARN/ID format changes — only newly created resources use new format + diff --git a/entries/2026/03/11/AmazonECS-latest-developerguide-fault-injectionhtml.md b/entries/2026/03/11/AmazonECS-latest-developerguide-fault-injectionhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..6d55a1cb11ccf911c12a92511c60a49c2a760b75 --- /dev/null +++ b/entries/2026/03/11/AmazonECS-latest-developerguide-fault-injectionhtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fault-injection.html +source: sources/AmazonECS-latest-developerguide-fault-injectionhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:16 + + + +## Overview +This page describes how to use fault injection with Amazon ECS workloads running on both EC2 and Fargate. Fault injection allows you to test how your application responds to impairment scenarios, helping optimize performance and resiliency. The feature requires explicit opt-in via a task definition parameter and integrates with AWS Fault Injection Service (FIS). + +## Key Concepts +- **Fault injection** lets you simulate failure scenarios against ECS tasks to test application resiliency +- The feature is **opt-in only** — disabled by default (`enableFaultInjection: false`) +- When enabled, the ECS container agent exposes **fault injection endpoints** to tasks +- Works on both **EC2** and **Fargate** launch types +- **Network mode restriction**: only works with `awsvpc` or `host` network modes +- **Not available on Windows** containers +- Custom AMIs (non-ECS-optimized) require manual installation of `tc` and `sch_netem` kernel module + +## Commands and Syntax +Enable fault injection in task definition JSON: +```json +{ + "enableFaultInjection": true +} +``` + +Required dependencies for custom AMIs: +- `tc` (traffic control utility) +- `sch_netem` kernel module (network emulation) + +## Relationships +- **AWS Fault Injection Service (FIS)**: Must also enable testing in FIS; uses `aws:ecs:task` FIS actions +- **ECS Task Definitions**: `enableFaultInjection` is a task definition parameter +- **Network modes**: Depends on `awsvpc` or `host` network mode configuration +- **ECS-optimized AMIs**: Include required dependencies out of the box; custom AMIs need manual setup +- **Chaos engineering**: Part of broader resilience testing strategy alongside FIS experiments + +## Exam-Relevant Points +- Fault injection requires `enableFaultInjection: true` in the task definition — it is **not enabled by default** +- Only `awsvpc` and `host` network modes are supported (not `bridge` or `none`) +- Fault injection is **not available on Windows** +- Works on **both EC2 and Fargate** launch types +- Custom AMIs must have `tc` and `sch_netem` installed manually +- Integration with AWS FIS is required to run the actual fault injection experiments + diff --git a/entries/2026/03/11/AmazonECS-latest-developerguide-logging-using-cloudtrailhtml.md b/entries/2026/03/11/AmazonECS-latest-developerguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7778aaa79b12653700e888ea09fcb599cf1cdf71 --- /dev/null +++ b/entries/2026/03/11/AmazonECS-latest-developerguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/logging-using-cloudtrail.html +source: sources/AmazonECS-latest-developerguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:16 + + + +## Overview +This page explains how Amazon ECS integrates with AWS CloudTrail to log API calls. CloudTrail captures all ECS control plane operations as management events by default, and supports optional data event logging for container instance-level operations. The logged events include caller identity, timestamps, source IPs, and request/response details. + +## Key Concepts +- **CloudTrail integration**: All ECS API calls are captured as CloudTrail events, including calls from the ECS console and programmatic API calls. +- **Identity tracking**: Each log entry identifies whether the request came from root credentials, IAM Identity Center user, temporary role/federated credentials, or another AWS service. +- **Event history**: Automatically available, provides 90 days of management events at no charge — viewable, searchable, downloadable, immutable. +- **Trails**: Deliver log files to S3; console-created trails are multi-Region by default; one free copy of management events to S3 (S3 storage charges still apply). +- **CloudTrail Lake**: SQL-queryable event data stores using Apache ORC columnar format; supports advanced event selectors; incurs separate costs. +- **Management events** (logged by default): Control plane operations like `CreateService`, `RunTask`, `DeleteCluster`. +- **Data events** (NOT logged by default, extra charge): Resource-level operations on `AWS::ECS::ContainerInstance` — specifically `ecs:Poll`, `ecs:StartTelemetrySession` (EC2 and ECS Managed Instances), and `ecs:PutSystemLogEvents` (ECS Managed Instances only). + +## Commands and Syntax +- **Advanced event selectors** for data events can filter on `eventName`, `readOnly`, and `resources.ARN`. +- `resources.type` value for ECS data events: `AWS::ECS::ContainerInstance` +- Example CloudTrail log entry fields: `eventSource: ecs.amazonaws.com`, `eventType: AwsApiCall`, plus `userIdentity`, `requestParameters`, `responseElements`. + +## Relationships +- **CloudTrail**: Core dependency for all ECS audit logging. +- **S3**: Storage target for trail log files. +- **CloudTrail Lake**: Alternative to trails for SQL-based event analysis. +- **IAM / STS**: Identity information in each event ties to IAM users, roles, and federated sessions. +- **CloudWatch Logs**: CloudTrail can also forward events to CloudWatch (referenced via broader CloudTrail docs). +- **ECS API Reference**: Defines the full set of control plane operations logged as management events. + +## Exam-Relevant Points +- CloudTrail logs ECS **management events by default** — no additional configuration needed. +- ECS **data events are NOT logged by default** and cost extra. +- The only ECS resource type supporting data events is `AWS::ECS::ContainerInstance` (not services, tasks, or clusters). +- Data APIs logged: `Poll`, `StartTelemetrySession`, `PutSystemLogEvents` — these are container instance agent operations, not user-facing APIs. +- Event history retains **90 days** of management events for free; beyond that requires a trail or CloudTrail Lake event data store. +- Multi-Region trails are recommended and are the default when created via the console. +- CloudTrail Lake uses **Apache ORC** columnar format and supports **SQL queries**. +- `eventSource` for ECS events is `ecs.amazonaws.com`. + diff --git a/entries/2026/03/11/AmazonElastiCache-latest-dg-LambdaRedishtml.md b/entries/2026/03/11/AmazonElastiCache-latest-dg-LambdaRedishtml.md new file mode 100644 index 0000000000000000000000000000000000000000..4b62c5f93c28f8b82efb18913d70e2450b01ee71 --- /dev/null +++ b/entries/2026/03/11/AmazonElastiCache-latest-dg-LambdaRedishtml.md @@ -0,0 +1,94 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/LambdaRedis.html +source: sources/AmazonElastiCache-latest-dg-LambdaRedishtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:17 + + + +## Overview + +This tutorial walks through configuring an AWS Lambda function to access an ElastiCache serverless cache (Valkey/Redis OSS) within a VPC using IAM authentication. It covers creating the cache, setting up IAM roles and users, writing a Python Lambda function with IAM-based credential generation, deploying and testing the function, and cleaning up resources. + +## Key Concepts + +- **ElastiCache Serverless Cache**: A managed cache that doesn't require capacity planning; created with `create-serverless-cache` using the `valkey` engine +- **IAM Authentication for ElastiCache**: An alternative to password-based auth where IAM policies grant `elasticache:Connect` permission to specific caches and users +- **ElastiCache Users and User Groups**: Access control mechanism — a default user (disabled with `off` access string) and an IAM-enabled user (with `on ~* +@all` full access) are grouped and attached to the cache +- **IAM Auth Token Generation**: Uses SigV4 presigned URLs via `botocore.signers.RequestSigner` to generate short-lived tokens (valid 15 minutes) cached with `cachetools.TTLCache` +- **Lambda VPC Access**: Lambda must be deployed into the same VPC as the ElastiCache cache, requiring subnet IDs and security group IDs at function creation +- **`AWSLambdaVPCAccessExecutionRole`**: AWS managed policy required for Lambda to create ENIs in the VPC (for network access to ElastiCache) +- **Deployment Package**: Lambda dependencies (`redis`, `cachetools`) must be bundled into a zip file alongside the function code + +## Commands and Syntax + +**Create serverless cache:** +```bash +aws elasticache create-serverless-cache \ + --serverless-cache-name cache-01 \ + --description "ElastiCache IAM auth application" \ + --engine valkey +``` + +**Create IAM-enabled ElastiCache user:** +```bash +aws elasticache create-user \ + --user-name iam-user-01 --user-id iam-user-01 \ + --authentication-mode Type=iam --engine redis \ + --access-string "on ~* +@all" +``` + +**Create user group and attach to cache:** +```bash +aws elasticache create-user-group \ + --user-group-id iam-user-group-01 --engine redis \ + --user-ids default-user-disabled iam-user-01 + +aws elasticache modify-serverless-cache \ + --serverless-cache-name cache-01 \ + --user-group-id iam-user-group-01 +``` + +**Deploy Lambda with VPC config:** +```bash +aws lambda create-function \ + --function-name AccessValkey --region us-east-1 \ + --zip-file fileb://my_deployment_package.zip \ + --role arn:aws:iam::123456789012:role/elasticache-iam-auth-app \ + --handler app.lambda_handler --runtime python3.12 --timeout 30 \ + --vpc-config SubnetIds=,SecurityGroupIds= +``` + +**IAM policy for ElastiCache Connect:** +```json +{ + "Effect": "Allow", + "Action": ["elasticache:Connect"], + "Resource": [ + "arn:aws:elasticache:us-east-1:123456789012:serverlesscache:cache-01", + "arn:aws:elasticache:us-east-1:123456789012:user:iam-user-01" + ] +} +``` + +## Relationships + +- **Lambda ↔ VPC**: Lambda must be placed in the same VPC as ElastiCache; requires `AWSLambdaVPCAccessExecutionRole` +- **IAM ↔ ElastiCache**: `elasticache:Connect` action on both the cache and user ARN resources enables IAM auth +- **SigV4 Signing**: Reuses the standard AWS request signing mechanism to generate auth tokens — the presigned URL (with `https://` stripped) serves as the password +- **ElastiCache User Groups**: Bridge between IAM users and cache access control; must include a default user even if disabled +- **CloudWatch Logs**: Lambda execution results are verified via CloudWatch log groups (`/aws/lambda/`) + +## Exam-Relevant Points + +- IAM auth tokens for ElastiCache are **valid for 15 minutes** and should be cached to avoid regeneration overhead +- The `elasticache:Connect` policy must reference **both** the serverless cache ARN **and** the user ARN +- The default user must exist in every user group but can be disabled with access string `"off +get ~keys*"` +- IAM-enabled users use `--authentication-mode Type=iam` (not `Type=password` or `Type=no-password-required`) +- Lambda functions accessing ElastiCache require **VPC configuration** (subnets + security groups) and the **`AWSLambdaVPCAccessExecutionRole`** managed policy +- The presigned URL must have the `https://` prefix **stripped** before being used as the ElastiCache auth token +- For serverless caches, the query parameter `ResourceType=ServerlessCache` must be included in the presigned URL + diff --git a/entries/2026/03/11/AmazonElastiCache-latest-red-ug-logging-using-cloudtrailhtml.md b/entries/2026/03/11/AmazonElastiCache-latest-red-ug-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2ae29a88f77c98be2557fcfe91cd55bd2648120e --- /dev/null +++ b/entries/2026/03/11/AmazonElastiCache-latest-red-ug-logging-using-cloudtrailhtml.md @@ -0,0 +1,58 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/logging-using-cloudtrail.html +source: sources/AmazonElastiCache-latest-red-ug-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:17 + + + +## Overview +Amazon ElastiCache integrates with AWS CloudTrail to log all API calls as events. This enables auditing of who made requests, from what IP, when, and with what parameters. Logs can be viewed in CloudTrail Event History or delivered continuously to an S3 bucket via a trail. + +## Key Concepts +- **All ElastiCache API actions are logged** by CloudTrail — this includes console actions and programmatic API calls +- **CloudTrail is enabled by default** when you create an AWS account; recent events are viewable in Event History without creating a trail +- **Trails** enable continuous delivery of log files to S3; by default a console-created trail covers all regions +- **Describe calls** (`Describe*`) have `responseElements` set to `null` in the log — only mutating actions include response details +- **userIdentity element** reveals whether the request was made with root credentials, IAM user credentials, temporary security credentials (role/federated user), or by another AWS service +- **eventSource** for ElastiCache logs is `elasticache.amazonaws.com` +- Log files are **not ordered** — they are not a sequential stack trace + +## Commands and Syntax +No CLI commands specific to enabling CloudTrail for ElastiCache — it uses the standard CloudTrail integration. Key logged actions include: +- `CreateCacheCluster` — includes `requestParameters` (engine, node type, count, AZ mode) and `responseElements` (status, config) +- `DescribeCacheClusters` — `responseElements` is `null` +- `ModifyCacheCluster` — includes `pendingModifiedValues` in response showing what changes are queued + +Log entry structure: +```json +{ + "eventVersion": "1.01", + "userIdentity": { "type": "IAMUser", "arn": "...", "accountId": "..." }, + "eventTime": "2014-12-01T22:00:35Z", + "eventSource": "elasticache.amazonaws.com", + "eventName": "CreateCacheCluster", + "awsRegion": "us-west-2", + "sourceIPAddress": "192.0.2.01", + "requestParameters": { ... }, + "responseElements": { ... } +} +``` + +## Relationships +- **CloudTrail** — the underlying logging service; ElastiCache is one of many integrated services +- **S3** — destination for continuous log delivery via trails +- **SNS** — can be configured for notifications on CloudTrail log delivery +- **IAM** — userIdentity in logs ties back to IAM users, roles, and federated identities +- **CloudWatch Logs** — CloudTrail can also send events to CloudWatch Logs for monitoring and alerting + +## Exam-Relevant Points +- All ElastiCache API calls are logged by CloudTrail — no additional configuration needed on the ElastiCache side +- `Describe*` calls return `responseElements: null` in CloudTrail logs (read-only operations don't log response data) +- CloudTrail is automatically enabled on account creation — Event History is always available for recent events +- A trail created in the console applies to **all regions** by default +- The `userIdentity` element can distinguish between root, IAM user, assumed role, federated user, and AWS service requests + diff --git a/entries/2026/03/11/AmazonRDS-latest-APIReference-API_FailoverDBClusterhtml.md b/entries/2026/03/11/AmazonRDS-latest-APIReference-API_FailoverDBClusterhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c43414c52937bb2030bc3798271c4b63d467deb8 --- /dev/null +++ b/entries/2026/03/11/AmazonRDS-latest-APIReference-API_FailoverDBClusterhtml.md @@ -0,0 +1,59 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_FailoverDBCluster.html +source: sources/AmazonRDS-latest-APIReference-API_FailoverDBClusterhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:17 + + + +## Overview +The `FailoverDBCluster` API forces a failover for an Amazon RDS DB cluster. For Aurora clusters, it promotes an Aurora Replica to primary (cluster writer). For Multi-AZ DB clusters, it terminates the primary instance, triggering the monitoring system to promote a readable standby. Failover times for Multi-AZ clusters are typically less than 35 seconds. This API is commonly used to simulate primary instance failures for testing. + +## Key Concepts +- **Forced failover** promotes a read-only replica/standby to become the cluster writer (primary instance) +- **Aurora failover**: promotes an Aurora Replica to primary +- **Multi-AZ DB cluster failover**: RDS terminates the primary, internal monitoring detects the failure, then promotes a readable standby +- **Automatic failover** occurs naturally when a primary instance fails — this API lets you trigger it manually for testing +- **Endpoint cleanup**: each instance has its own endpoint address; existing connections must be cleaned up and re-established after failover +- **Failover time**: typically < 35 seconds for Multi-AZ DB clusters + +## Commands and Syntax +**API Call (HTTP)**: +``` +Action=FailoverDBCluster +&DBClusterIdentifier=sample-cluster +&TargetDBInstanceIdentifier=mydbcluster-replica1 (optional) +``` + +**Parameters**: +| Parameter | Required | Description | +|-----------|----------|-------------| +| `DBClusterIdentifier` | Yes | Identifier of the DB cluster (case-insensitive, must exist) | +| `TargetDBInstanceIdentifier` | No | Specific replica/standby to promote. Not supported for RDS MySQL Multi-AZ DB clusters | + +**Errors**: +| Error | HTTP Code | Meaning | +|-------|-----------|---------| +| `DBClusterNotFoundFault` | 404 | Cluster identifier doesn't exist | +| `InvalidDBClusterStateFault` | 400 | Cluster is in a state that doesn't allow this operation | +| `InvalidDBInstanceState` | 400 | Target DB instance is not in a valid state | + +## Relationships +- **Aurora**: relates to Aurora Replicas, cluster endpoints, and Aurora's automatic failover mechanism +- **Multi-AZ DB clusters**: relates to readable standby instances and Multi-AZ deployment architecture +- **Related APIs**: `CreateDBCluster`, `DeleteDBCluster`, `DescribeDBClusters`, `ModifyDBCluster`, `RebootDBCluster`, `StartDBCluster`, `StopDBCluster` +- **Fault Injection / Chaos Testing**: used alongside AWS FIS for resilience testing +- **Connection management**: ties into application-level connection pooling and DNS-based endpoint resolution + +## Exam-Relevant Points +- Failover for Multi-AZ DB clusters takes **typically less than 35 seconds** +- `TargetDBInstanceIdentifier` is **optional** — if omitted, RDS chooses which replica to promote +- `TargetDBInstanceIdentifier` is **not supported for RDS for MySQL Multi-AZ DB clusters** +- The API can be used to **simulate failures for testing** — important for disaster recovery planning +- After failover, applications must **re-establish connections** since endpoint addresses are per-instance +- Aurora clusters fail over to Aurora Replicas; Multi-AZ DB clusters fail over to readable standbys — different mechanisms, same API +- `DBClusterIdentifier` is **case-insensitive** + diff --git a/entries/2026/03/11/AmazonRDS-latest-APIReference-API_RebootDBInstancehtml.md b/entries/2026/03/11/AmazonRDS-latest-APIReference-API_RebootDBInstancehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..67baa6143cbe66020bf93dfc0efd8a3ede7c74f8 --- /dev/null +++ b/entries/2026/03/11/AmazonRDS-latest-APIReference-API_RebootDBInstancehtml.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_RebootDBInstance.html +source: sources/AmazonRDS-latest-APIReference-API_RebootDBInstancehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:18 + + + +## Overview +The `RebootDBInstance` API action restarts the database engine service on an Amazon RDS DB instance. It is typically used to apply pending changes such as DB parameter group modifications. The reboot causes a momentary outage during which the instance status is set to "rebooting." This action does not apply to RDS Custom instances. + +## Key Concepts +- **Purpose**: Reboot is required to apply certain modifications, such as changes to the DB parameter group associated with the instance. +- **Outage**: Rebooting causes a **momentary outage**; the DB instance status transitions to `rebooting`. +- **Multi-AZ failover**: The `ForceFailover` parameter can trigger a Multi-AZ failover during reboot, but only if the instance is configured for Multi-AZ. +- **Multi-AZ DB clusters**: For DB instances that are part of a Multi-AZ DB cluster, use `RebootDBCluster` instead. +- **RDS Custom exclusion**: This operation does **not** apply to RDS Custom instances. + +## Commands and Syntax +**API Request Parameters:** +| Parameter | Type | Required | Description | +|-----------|------|----------|-------------| +| `DBInstanceIdentifier` | String | Yes | Identifier of the DB instance (stored lowercase) | +| `ForceFailover` | Boolean | No | Whether to force a Multi-AZ failover during reboot | + +**CLI equivalent:** +```bash +aws rds reboot-db-instance --db-instance-identifier mysqldb +aws rds reboot-db-instance --db-instance-identifier mysqldb --force-failover +``` + +**Errors:** +| Error | HTTP Code | Cause | +|-------|-----------|-------| +| `DBInstanceNotFound` | 404 | Instance identifier doesn't exist | +| `InvalidDBInstanceState` | 400 | Instance is not in a valid state for reboot | +| `KMSKeyNotAccessibleFault` | 400 | Cannot access the associated AWS KMS key | + +## Relationships +- **DB Parameter Groups**: Reboot is often required after modifying or changing the associated parameter group. +- **Multi-AZ Deployments**: `ForceFailover` leverages Multi-AZ architecture to perform failover during reboot. +- **RebootDBCluster**: Separate operation for Multi-AZ DB clusters. +- **Response type**: Returns a `DBInstance` object — the same type returned by `CreateDBInstance`, `ModifyDBInstance`, `DeleteDBInstance`, and other instance lifecycle operations. + +## Exam-Relevant Points +- A reboot is **required** to apply DB parameter group changes — they do not take effect automatically. +- Rebooting causes a **momentary outage**, not a prolonged one. +- `ForceFailover` can only be used when Multi-AZ is **enabled**; attempting it on a single-AZ instance will fail. +- For Multi-AZ DB **clusters**, you must use `RebootDBCluster`, not `RebootDBInstance`. +- This API does **not** work with **RDS Custom** instances. +- The `DBInstanceIdentifier` is stored as **lowercase**. + diff --git a/entries/2026/03/11/AmazonRDS-latest-AuroraUserGuide-logging-using-cloudtrailhtml.md b/entries/2026/03/11/AmazonRDS-latest-AuroraUserGuide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..38f07001cd391e0757e97311732eafae0203bbb5 --- /dev/null +++ b/entries/2026/03/11/AmazonRDS-latest-AuroraUserGuide-logging-using-cloudtrailhtml.md @@ -0,0 +1,59 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/logging-using-cloudtrail.html +source: sources/AmazonRDS-latest-AuroraUserGuide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:18 + + + +## Overview +This page describes how Amazon Aurora API calls are monitored and logged using AWS CloudTrail. It covers CloudTrail's automatic integration with Aurora, how events are captured and stored, and provides a sample log entry showing the structure of a CloudTrail event for an Aurora/RDS API call. + +## Key Concepts +- **All Aurora actions are logged by CloudTrail** — every API call made by users, roles, or AWS services is captured automatically. +- **CloudTrail is enabled by default** when you create an AWS account. +- An **event** represents a single API request and includes: action name, timestamp, request parameters, source IP, user agent, and identity information. +- **Event history** in the CloudTrail console retains the **last 90 days** of API activity per Region — no trail configuration required. +- A **trail** is needed for an **ongoing, persistent record** beyond 90 days; it delivers log files to an S3 bucket. +- CloudTrail typically delivers log files **within 15 minutes** of activity. +- Trails can apply to **all Regions** (default when created via console) or a **single Region**. +- Aurora's `eventSource` in CloudTrail is **`rds.amazonaws.com`** (Aurora shares the RDS API surface). +- **Sensitive fields are masked** — e.g., `masterUserPassword` appears as `"****"`. +- Log entries are **not ordered** — they do not form a sequential stack trace. + +## Commands and Syntax +No CLI commands are shown directly, but the page references: +- Viewing events via **CloudTrail console → Event history** +- Creating a trail via the CloudTrail console or API +- The **CreateDBInstance** API action as the example event + +Key fields in a CloudTrail log entry: +| Field | Description | +|-------|-------------| +| `eventSource` | `rds.amazonaws.com` | +| `eventName` | The API action (e.g., `CreateDBInstance`) | +| `userIdentity` | Who made the request (IAM user, role, federated, or service) | +| `requestParameters` | Input parameters sent to the API | +| `responseElements` | Output returned by the API | +| `awsRegion` | Region where the call was made | + +## Relationships +- **CloudTrail** → central audit service; Aurora is one of many integrated services +- **Amazon S3** → trail destination for persistent log storage +- **Amazon SNS** → can be configured for CloudTrail notifications +- **Aurora shares the RDS API** → `eventSource` is `rds.amazonaws.com`, not an Aurora-specific endpoint +- **CloudWatch Logs** → Aurora log exports (audit, error, general, slowquery) appear in `requestParameters` +- **IAM** → `userIdentity` element ties events to IAM users, roles, federated identities, or service principals + +## Exam-Relevant Points +- CloudTrail is **enabled by default** on all AWS accounts — no setup required for basic event logging. +- Without a trail, you can only view the **most recent 90 days** in Event history. +- Default trail scope when created via console: **all Regions**. +- Aurora uses `eventSource: rds.amazonaws.com` — do not expect an Aurora-specific event source. +- CloudTrail log delivery latency: typically **within 15 minutes**. +- The `userIdentity` element distinguishes between root credentials, IAM user credentials, temporary security credentials (roles/federation), and AWS service calls. +- Passwords and secrets are **automatically redacted** (`"****"`) in CloudTrail logs. + diff --git a/entries/2026/03/11/AmazonRDS-latest-AuroraUserGuide-zero-etlhtml.md b/entries/2026/03/11/AmazonRDS-latest-AuroraUserGuide-zero-etlhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c0a982524f6b0df9149d58cf459c7db365f2a294 --- /dev/null +++ b/entries/2026/03/11/AmazonRDS-latest-AuroraUserGuide-zero-etlhtml.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/zero-etl.html +source: sources/AmazonRDS-latest-AuroraUserGuide-zero-etlhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:18 + + + +## Overview +Aurora zero-ETL integrations provide a fully managed data pipeline that replicates transactional data from an Aurora DB cluster (MySQL or PostgreSQL) to Amazon Redshift or an Amazon SageMaker AI lakehouse in near real-time, eliminating the need to build and maintain custom ETL pipelines. This enables analytics, ML, and AI workloads directly on transactional data. + +## Key Concepts +- **Integration**: A fully managed pipeline that automatically replicates data and schemas from Aurora to a target warehouse/lakehouse +- **Source DB cluster**: The Aurora cluster (provisioned or Serverless v2) from which data is replicated +- **Target**: Either an Amazon Redshift data warehouse (provisioned cluster or serverless) or an Amazon SageMaker AI lakehouse +- Multiple source DB clusters can write to the same target +- The integration monitors pipeline health and auto-recovers from issues when possible +- Initial data seeding takes 20-25+ minutes depending on source database size + +## Commands and Syntax +No CLI commands shown on this page — creation/management is covered in linked sub-pages (creating, modifying, deleting, filtering, querying). + +## Relationships +- **Aurora** (MySQL or PostgreSQL) as the source database engine +- **Amazon Redshift** (provisioned or serverless) as an analytics target +- **Amazon SageMaker AI lakehouse** as an alternative analytics/ML target +- Connects to **Amazon QuickSight**, **SageMaker**, and other AWS analytics services downstream +- Interacts with **Aurora Global Database** (failover breaks the integration) +- **Blue/green deployments** require deleting integrations before switchover +- **AWS RAM** cross-account clones cannot be integration sources +- Aurora MySQL relies on **binary logging (binlog)** for change capture +- Aurora PostgreSQL requires **data filter patterns** specifying databases to replicate + +## Exam-Relevant Points +- Source and target must be in the **same Region** +- **Quotas**: 100 integrations per account, 50 per target, 5 per source cluster (all per-Region) +- Cannot rename a DB cluster that has existing integrations +- Must delete all integrations before deleting a source DB cluster +- Aurora MySQL: only **InnoDB** storage engine supported; foreign keys with CASCADE/SET NULL/SET DEFAULT actions cause table failure +- Aurora PostgreSQL: **primary keys required** on all filtered tables; must specify at least one data filter; UTF-8 encoding required; two-phase transactions not supported; cannot use Aurora Limitless Database +- System tables, temporary tables, and views are **not replicated** +- DDL changes (e.g., ALTER TABLE) can trigger table resynchronization, making data temporarily unavailable +- Global database failover makes the integration **inactive** — must delete and recreate +- SageMaker lakehouse catalog names limited to **19 characters** +- Cannot create multiple integrations between the same source and target + diff --git a/entries/2026/03/11/AmazonRDS-latest-UserGuide-OracleConceptsLicensinghtml.md b/entries/2026/03/11/AmazonRDS-latest-UserGuide-OracleConceptsLicensinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1d13eeffa13c1ffcf8cea3120de2cb1170913fe6 --- /dev/null +++ b/entries/2026/03/11/AmazonRDS-latest-UserGuide-OracleConceptsLicensinghtml.md @@ -0,0 +1,82 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Oracle.Concepts.Licensing.html +source: sources/AmazonRDS-latest-UserGuide-OracleConceptsLicensinghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:19 + + + +## Overview + +This page covers the two licensing models available for Amazon RDS for Oracle: **License Included (LI)** and **Bring Your Own License (BYOL)**. It explains which Oracle editions each model supports, how to track license usage via AWS License Manager, how to migrate between Oracle editions, and licensing considerations for Multi-AZ deployments. + +## Key Concepts + +- **License Included (LI)**: AWS holds the Oracle license; only supported for **Oracle Database Standard Edition 2 (SE2)** +- **Bring Your Own License (BYOL)**: Use your existing Oracle licenses; supported for **Enterprise Edition (EE)** and **Standard Edition 2 (SE2)** +- You can change the licensing model on an existing DB instance by modifying it (no need to recreate) +- BYOL requires appropriate Oracle Database license **with Software Update License and Support** +- BYOL users must follow Oracle's cloud licensing policies +- **Support routing**: LI → contact AWS Support for both RDS and Oracle issues; BYOL → contact Oracle directly for DB issues, AWS for RDS issues +- License Manager tracks licenses based on **virtual cores (vCPUs)** +- Discovery of Oracle DB instances by License Manager can take **up to 24 hours** +- **Multi-AZ BYOL requires licenses for both primary and standby** DB instances +- Edition migration: SE2 → EE is possible; EE → other editions is **not** possible + +## Commands and Syntax + +**Create a self-managed license configuration (CLI):** +```bash +aws license-manager create-license-configuration --cli-input-json file://rds-oracle-ee.json +``` + +**Sample JSON (`rds-oracle-ee.json`):** +```json +{ + "Name": "rds-oracle-ee", + "Description": "RDS Oracle Enterprise Edition", + "LicenseCountingType": "vCPU", + "LicenseCountHardLimit": false, + "ProductInformationList": [ + { + "ResourceType": "RDS", + "ProductInformationFilterList": [ + { + "ProductInformationFilterName": "Engine Edition", + "ProductInformationFilterValue": ["oracle-ee"], + "ProductInformationFilterComparator": "EQUALS" + } + ] + } + ] +} +``` + +**Edition migration procedure (SE2 → EE):** +1. Create a snapshot of the DB instance +2. Restore snapshot to a new DB instance, selecting the desired edition +3. (Optional) Delete the old DB instance + +## Relationships + +- **AWS License Manager** — integrates with RDS for Oracle to track BYOL license usage by vCPU +- **AWS Organizations** — enables centralized license management across accounts +- **AWS Resource Access Manager (RAM)** — enables cross-account license tracking +- **Multi-AZ deployments** — doubles the licensing requirement under BYOL +- **Oracle features** (Active Data Guard, OLAP, Label Security, SQLT) — each tracked as separate **License Packs** in License Manager +- **DB instance modification** — mechanism for switching between LI and BYOL models + +## Exam-Relevant Points + +- LI is **only** available for SE2 — not for Enterprise Edition +- BYOL supports both EE and SE2 +- Multi-AZ with BYOL requires **two licenses** (primary + standby) +- You **cannot** migrate from EE down to SE2 — only SE2 → EE +- License Manager counts by **vCPU**, not by instance +- Edition migration requires a **snapshot-and-restore** workflow (not in-place) +- `LicenseCountHardLimit: false` means License Manager tracks but does not enforce limits +- Product information filter names: `oracle-ee`, `oracle-se2` for engine editions + diff --git a/entries/2026/03/11/AmazonRDS-latest-UserGuide-db2-licensinghtml.md b/entries/2026/03/11/AmazonRDS-latest-UserGuide-db2-licensinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..beeed9c1058fc0049ee5c62fc0c307f45cb7dff1 --- /dev/null +++ b/entries/2026/03/11/AmazonRDS-latest-UserGuide-db2-licensinghtml.md @@ -0,0 +1,86 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html +source: sources/AmazonRDS-latest-UserGuide-db2-licensinghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:19 + +## Overview +Amazon RDS for Db2 offers two licensing models: Bring Your Own License (BYOL), where customers use existing IBM Db2 licenses, and Db2 license through AWS Marketplace, a pay-as-you-go hourly model. Customers can switch between these models by restoring from a snapshot or automated backup with the desired license type. + +## Key Concepts +- **BYOL model** requires existing IBM Db2 licenses; customer must provide IBM Customer ID and IBM Site ID via a custom DB parameter group before creating instances +- **Supported editions**: Db2 Standard Edition (`db2-se`) and Db2 Advanced Edition (`db2-ae`) +- **Parameter group families**: `db2-se-11.5` (Standard) and `db2-ae-11.5` (Advanced) +- **Multi-AZ standbys are cold** — Db2 is installed but not running, not readable, not serving requests +- **IBM ID parameters** (`rds.ibm_customer_id`, `rds.ibm_site_id`) are dynamic — changes take effect immediately without reboot +- **AWS License Manager integration** tracks BYOL usage by vCPU count; discovery of instances can take up to 24 hours +- **Self-managed license** in License Manager uses product information filters to auto-associate RDS for Db2 resources +- **Marketplace model** uses SaaS usage-based subscriptions; IBM meters usage and it appears on AWS bill under AWS Marketplace +- **Two separate charges** for Marketplace: Db2 license fee (via Marketplace) and Amazon RDS service fee +- **Unverified licenses** (invalid IBM Customer ID/Site ID) may result in instance termination +- **Private offers** available from IBM for negotiated pricing; must be accepted or public hourly rate applies +- **Switching licenses** requires restoring from an automated backup or snapshot — not a live modification + +## Commands and Syntax + +**Create parameter group (CLI):** +```bash +aws rds create-db-parameter-group \ + --db-parameter-group-name \ + --db-parameter-group-family db2-se-11.5 \ + --description "" +``` + +**Modify parameter group with IBM IDs (CLI):** +```bash +aws rds modify-db-parameter-group \ + --db-parameter-group-name \ + --parameters "ParameterName=rds.ibm_customer_id,ParameterValue=,ApplyMethod=immediate" \ + "ParameterName=rds.ibm_site_id,ParameterValue=,ApplyMethod=immediate" +``` + +**Create License Manager self-managed license (CLI):** +```bash +aws license-manager create-license-configuration --cli-input-json file://rds-db2-se.json +``` + +**JSON for self-managed license:** +```json +{ + "Name": "rds-db2-se", + "LicenseCountingType": "vCPU", + "LicenseCountHardLimit": false, + "ProductInformationList": [{ + "ResourceType": "RDS", + "ProductInformationFilterList": [{ + "ProductInformationFilterName": "Engine Edition", + "ProductInformationFilterValue": ["db2-se"], + "ProductInformationFilterComparator": "EQUALS" + }] + }] +} +``` + +## Relationships +- **DB Parameter Groups** — IBM IDs must be set in custom parameter groups before instance creation +- **AWS License Manager** — integrates for BYOL vCPU tracking; works with AWS Organizations for centralized management +- **AWS Marketplace** — handles SaaS subscription billing for pay-as-you-go model +- **CloudFormation / Terraform** — can automate License Manager configuration creation +- **AWS Billing** — Marketplace and RDS charges appear as separate line items +- **Snapshots / Automated Backups** — required mechanism for switching between license types +- **AWS Organizations** — private offers must be subscribed per member account + +## Exam-Relevant Points +- You **must** create a custom parameter group with IBM IDs **before** creating a BYOL RDS for Db2 instance (default parameter groups cannot be modified) +- Multi-AZ standbys for Db2 are **cold standbys** (not running, not readable) +- License Manager tracks by **vCPU** (the only valid `LicenseCountingType`) +- Resource discovery in License Manager takes **up to 24 hours** +- Switching licenses requires **restoring from backup/snapshot** — not an in-place change +- Marketplace subscription and IBM registration are **console-only** tasks (cannot use CLI/API) +- `LicenseCountHardLimit: true` blocks launching new instances when limit exceeded +- Two valid engine edition filter values: `db2-se` and `db2-ae` +- Deleting DB instances is required to stop fees; unsubscribing from Marketplace alone is insufficient if instances still exist + diff --git a/entries/2026/03/11/AmazonRDS-latest-UserGuide-logging-using-cloudtrailhtml.md b/entries/2026/03/11/AmazonRDS-latest-UserGuide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..293bfc7b46e0bcaf252095225add3ae8edec0733 --- /dev/null +++ b/entries/2026/03/11/AmazonRDS-latest-UserGuide-logging-using-cloudtrailhtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/logging-using-cloudtrail.html +source: sources/AmazonRDS-latest-UserGuide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:19 + + + +## Overview +This page explains how Amazon RDS integrates with AWS CloudTrail for auditing and monitoring API activity. All RDS API actions are automatically logged by CloudTrail, providing a record of who made what request, when, and from where. + +## Key Concepts +- **CloudTrail is enabled by default** when you create an AWS account — no setup required for basic event logging +- **All Amazon RDS actions are logged** by CloudTrail (management events) +- **Event History** provides the last **90 days** of recorded API activity per Region, even without a trail configured +- **Events** capture: requested action, date/time, request parameters, source IP, user agent, and caller identity +- **Trails** enable ongoing delivery of events to an S3 bucket; CloudTrail typically delivers logs **within 15 minutes** +- **Trail scope**: all-Regions (default when created via console) or single-Region +- **Log files are not ordered** — they do not form a sequential stack trace +- **Sensitive fields are masked** — e.g., `masterUserPassword` appears as `"****"` in log entries +- The **`userIdentity`** element identifies whether the caller used root credentials, IAM user credentials, temporary role/federated credentials, or was another AWS service + +## Commands and Syntax +No CLI commands on this page, but the key CloudTrail log structure for RDS events: +- **`eventSource`**: `rds.amazonaws.com` +- **`eventName`**: matches the RDS API action (e.g., `CreateDBInstance`) +- **`requestParameters`**: contains the input parameters sent to the API +- **`responseElements`**: contains the API response (resource details, status) +- **`eventType`**: `AwsApiCall` + +## Relationships +- **CloudTrail** → central auditing service; RDS is one of many integrated services +- **S3** → destination for CloudTrail log file delivery when a trail is configured +- **SNS** → can be configured to send notifications when new log files are delivered +- **CloudWatch Logs** → CloudTrail events can be sent to CloudWatch for metric filters and alarms +- **IAM** → the `userIdentity` element ties into IAM users, roles, and federated identities +- **RDS CloudWatch Logs Exports** → the example shows `enableCloudwatchLogsExports` for audit/error/general/slowquery logs (separate from CloudTrail) + +## Exam-Relevant Points +- CloudTrail is **automatically enabled** — no manual activation needed +- Without a trail, you still get **90 days** of event history in the console +- All RDS API calls are logged — this is the mechanism for **auditing RDS administrative actions** +- Default trail scope in console is **all Regions** +- CloudTrail log delivery is **near real-time (~15 minutes)**, not instantaneous +- Passwords and secrets are **masked** in CloudTrail logs +- The `userIdentity` element is critical for determining **who** performed an action (root, IAM user, assumed role, federated user, or AWS service) + diff --git a/entries/2026/03/11/AmazonRDS-latest-UserGuide-rds-lambda-tutorialhtml.md b/entries/2026/03/11/AmazonRDS-latest-UserGuide-rds-lambda-tutorialhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..461c7feb99c84d166b5c1ba24bed76cc929013f4 --- /dev/null +++ b/entries/2026/03/11/AmazonRDS-latest-UserGuide-rds-lambda-tutorialhtml.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-lambda-tutorial.html +source: sources/AmazonRDS-latest-UserGuide-rds-lambda-tutorialhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:20 + + + +## Overview + +This tutorial walks through connecting a Lambda function to an Amazon RDS MySQL database via RDS Proxy. The architecture uses an SQS queue as the event source: messages added to the queue trigger the Lambda function, which writes customer records to a MySQL table. It covers creating the RDS instance, Lambda function, RDS Proxy, execution role, SQS queue, and event source mapping. + +## Key Concepts + +- **RDS Proxy** acts as an intermediary between Lambda and the RDS database, managing connection pooling and improving performance/scalability +- **Database connection reuse**: The DB connection is created outside the Lambda handler (in initialization code) so it persists across invocations +- **Event source mapping**: A Lambda resource that reads from a queue/stream and invokes the function; supports configurable batch sizes +- **Deployment package**: Lambda functions with external dependencies (e.g., PyMySQL) must be packaged as a `.zip` file containing both the code and dependencies +- **Environment variables** store database credentials (`USER_NAME`, `PASSWORD`, `RDS_PROXY_HOST`, `DB_NAME`) — production should use Secrets Manager instead +- **VPC networking**: The Lambda function must be in the same VPC as the RDS instance; if using Secrets Manager from a VPC, a VPC endpoint is required +- **Provisioned concurrency** can pre-initialize database connections for production workloads + +## Commands and Syntax + +**Creating the deployment package:** +```bash +mkdir package +pip install --target package pymysql +cd package +zip -r ../lambda_function.zip . +cd .. +zip lambda_function.zip lambda_function.py +``` + +**Required IAM managed policies for the execution role:** +- `AWSLambdaSQSQueueExecutionRole` — poll SQS messages +- `AWSLambdaVPCAccessExecutionRole` — manage VPC network interfaces + +**SQS message format expected by the function:** +```json +{"CustID": 1054, "Name": "Richard Roe"} +``` + +**Lambda test event structure** mimics the SQS event envelope with `Records[0].body` containing the JSON payload. + +## Relationships + +- **Lambda → RDS Proxy → RDS MySQL**: Lambda connects through RDS Proxy, not directly to the database +- **SQS → Lambda**: Event source mapping triggers Lambda on new messages (batch size = 1 in this tutorial) +- **IAM**: Execution role grants Lambda permissions for VPC access and SQS polling +- **CloudWatch Logs**: Used to monitor/verify function execution and database writes +- **Secrets Manager**: Recommended for production credential management (requires VPC endpoint if Lambda is in VPC) +- **Default VPC**: All resources (RDS, Lambda, Proxy) are deployed in the account's default VPC + +## Exam-Relevant Points + +- Lambda DB connections should be initialized **outside the handler** for connection reuse across invocations +- RDS Proxy is the recommended pattern for Lambda-to-RDS connectivity — it handles connection pooling and prevents connection exhaustion +- Two specific managed policies are needed: `AWSLambdaSQSQueueExecutionRole` and `AWSLambdaVPCAccessExecutionRole` +- Environment variables for credentials are acceptable for tutorials but **Secrets Manager is the production best practice** +- Accessing Secrets Manager from a VPC-attached Lambda requires a **VPC endpoint** +- Event source mappings support **batch size configuration** — setting batch size to 1 means one invocation per message +- Lambda functions accessing RDS must be deployed **in the same VPC** as the database +- The RDS instance must be in **Available** status before creating associated Lambda functions and proxies + diff --git a/entries/2026/03/11/AmazonRDS-latest-UserGuide-zero-etlhtml.md b/entries/2026/03/11/AmazonRDS-latest-UserGuide-zero-etlhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5b9f5eb67ab8b566c3fe3c6ae9c7cea9906695bc --- /dev/null +++ b/entries/2026/03/11/AmazonRDS-latest-UserGuide-zero-etlhtml.md @@ -0,0 +1,60 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/zero-etl.html +source: sources/AmazonRDS-latest-UserGuide-zero-etlhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:20 + + + +## Overview + +Amazon RDS zero-ETL integrations provide a fully managed, near real-time data replication pipeline from RDS databases (MySQL, PostgreSQL, Oracle) to Amazon Redshift or Amazon SageMaker AI lakehouse destinations. This eliminates the need to build and maintain custom ETL pipelines, enabling analytics, ML, and AI workloads directly on transactional data. + +## Key Concepts + +- **Integration**: A fully managed pipeline that replicates transactional data and schemas from an RDS database to a target warehouse or lakehouse automatically +- **Source database**: The RDS DB instance or Multi-AZ DB cluster (MySQL only for clusters) from which data is replicated +- **Target**: Either an Amazon Redshift provisioned cluster, Redshift Serverless workgroup, or SageMaker AI lakehouse (catalogs, databases, tables, views) +- Multiple source databases can write to the same target +- The integration monitors pipeline health and auto-recovers from issues +- Initial data seeding takes 20-25+ minutes depending on source size +- System tables, temporary tables, and views are **not** replicated + +## Commands and Syntax + +No CLI commands are shown on this page — creation, modification, deletion, and monitoring are covered in linked sub-pages. Key operational notes: + +- You must delete all integrations before deleting a source database +- You must delete integrations before blue/green deployment switchover, then recreate after +- You cannot create a second integration while one is actively being created for the same source +- DDL commands (e.g., `ALTER TABLE`) on source tables can trigger table resynchronization + +## Relationships + +- **Amazon Redshift**: Primary analytics target (provisioned or serverless) +- **Amazon SageMaker AI Lakehouse**: Alternative target for ML/AI workloads +- **Blue/Green Deployments**: Incompatible with active zero-ETL integrations during switchover +- **Binary logging (MySQL)**: Zero-ETL relies on binlog; don't use binlog-based data filtering +- **PostgreSQL logical replication**: Underlying mechanism for Postgres sources +- **RDS Read Replicas**: Cannot be used as zero-ETL sources (any engine) +- **CloudTrail**: Logging for integration API calls (separate doc) + +## Exam-Relevant Points + +- **Source and target must be in the same AWS Region** +- **Quotas**: 100 integrations per account per Region, 50 per target, 5 per source instance +- **Supported MySQL sources**: Single-AZ, Multi-AZ instance, or Multi-AZ DB cluster; must use InnoDB; no magnetic storage +- **Supported PostgreSQL versions**: 15.7+, 16.3+, or 17.1+; Multi-AZ DB clusters **not** supported as source +- **Supported Oracle versions**: 19c Enterprise or Standard Edition 2 (July 2019 RU+) +- MySQL foreign keys with `CASCADE`, `SET NULL`, `SET DEFAULT` actions put tables into a failed state +- PostgreSQL unlogged tables and materialized views are not replicated +- PostgreSQL major version upgrades require deleting all integrations first, then recreating +- Data > 64KB and geometry types not supported for PostgreSQL replication +- SageMaker lakehouse catalog names limited to 19 characters +- You **cannot** rename a database or delete it while integrations exist +- Stopping a source DB may leave the last few transactions unreplicated until resumed +- Cannot delete an integration if the source database is stopped + diff --git a/entries/2026/03/11/AmazonS3-latest-userguide-UsingBuckethtml.md b/entries/2026/03/11/AmazonS3-latest-userguide-UsingBuckethtml.md new file mode 100644 index 0000000000000000000000000000000000000000..774407e6e08fe3c818a6a0df8590d3df4d997884 --- /dev/null +++ b/entries/2026/03/11/AmazonS3-latest-userguide-UsingBuckethtml.md @@ -0,0 +1,63 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingBucket.html +source: sources/AmazonS3-latest-userguide-UsingBuckethtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:20 + + + +## Overview + +This page covers Amazon S3 general purpose buckets — the standard bucket type for storing objects. It explains bucket naming uniqueness, region placement, permissions, public access controls, configuration subresources (versioning, lifecycle, replication, etc.), operational best practices, and performance monitoring options. + +## Key Concepts + +- Every S3 object lives inside a bucket; objects are addressed via URL like `https://.s3..amazonaws.com/` +- Bucket names are **globally unique** within a partition (`aws`, `aws-cn`, `aws-us-gov`) +- A bucket name cannot be reused by another account in the same partition until the original bucket is deleted +- Objects never leave their Region unless explicitly transferred +- The AWS account that creates a resource **owns** it — not the IAM user who performed the creation +- **Block Public Access** — all four settings enabled by default on new buckets; recommended to enable account-wide +- Public access is granted via bucket policies, ACLs, or both; Block Public Access overrides these +- For static websites with Block Public Access enabled, use **CloudFront OAC** (adds HTTPS) +- Bucket operations (create/delete/configure) target a centralized global resource space — keep them off the hot path +- General purpose bucket quotas: managed from **US East (N. Virginia)** for commercial Regions, **GovCloud (US-West)** for GovCloud + +## Commands and Syntax + +No CLI commands on this page, but required IAM permissions for listing buckets with public access settings: +``` +s3:GetAccountPublicAccessBlock +s3:GetBucketPublicAccessBlock +s3:GetBucketPolicyStatus +s3:GetBucketLocation +s3:GetBucketAcl +s3:ListAccessPoints +s3:ListAllMyBuckets +``` + +## Relationships + +- **Bucket configuration subresources**: CORS, event notifications, lifecycle, logging, Object Lock, policy/ACL, replication, requestPayment, tagging, Transfer Acceleration, versioning, website +- **IAM**: Bucket ownership model, root user vs IAM user best practices +- **CloudFront**: OAC for secure static website hosting with Block Public Access +- **CloudWatch**: Alarms for storage/replication/request metrics; S3 Storage Lens publishes to CloudWatch dashboards +- **CloudTrail**: API call auditing for S3 +- **S3 Storage Lens**: Organization-wide storage usage and cost optimization +- **Billing**: Tags as cost allocation tags; Requester Pays buckets + +## Exam-Relevant Points + +- Bucket names are globally unique **per partition**, not just per account or per Region +- Objects stay in their Region unless explicitly moved — data residency guarantee +- The **account** owns the bucket, not the IAM user that created it +- All four Block Public Access settings are **enabled by default** on new buckets +- Block Public Access settings **override** bucket policies and ACLs +- Bucket create/delete/configure operations should not be on the application's critical path (centralized global resource) +- For static website hosting with HTTPS, use CloudFront + OAC rather than disabling Block Public Access +- Versioning is recommended as a best practice to protect against accidental deletes/overwrites +- Three AWS partitions: `aws` (standard), `aws-cn` (China), `aws-us-gov` (GovCloud) + diff --git a/entries/2026/03/11/AmazonS3-latest-userguide-cloudtrail-logginghtml.md b/entries/2026/03/11/AmazonS3-latest-userguide-cloudtrail-logginghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..4c05e81bdf12cd96e723fd9fccab50a616588c14 --- /dev/null +++ b/entries/2026/03/11/AmazonS3-latest-userguide-cloudtrail-logginghtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonS3/latest/userguide/cloudtrail-logging.html +source: sources/AmazonS3-latest-userguide-cloudtrail-logginghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:21 + + + +## Overview +This page explains how AWS CloudTrail captures and logs all Amazon S3 API calls as events, including console actions and programmatic API operations. It covers the two storage mechanisms for CloudTrail events (trails and CloudTrail Lake), how CloudTrail integrates with S3 server access logs and CloudWatch Logs, and notes on SOAP API tracking. + +## Key Concepts +- **CloudTrail captures all S3 API calls** — from console, SDKs, and CLI — as events +- Every log entry includes **identity information**: root user, IAM Identity Center user, temporary credentials (role/federated), or AWS service +- **Event history** is automatic, free, and provides **90 days** of management events (viewable, searchable, downloadable, immutable) +- **Trails** deliver log files to an S3 bucket; console-created trails are always **multi-Region**; CLI can create single-Region trails +- **One copy of management events** delivered to S3 via a trail is **free** (S3 storage charges still apply) +- **CloudTrail Lake** converts events to **Apache ORC** (columnar format) for SQL-based querying; events are stored in **event data stores** filtered by advanced event selectors; Lake **incurs costs** for ingestion, storage, and queries +- Log files are **encrypted by default** with S3 server-side encryption (SSE) +- S3 Lifecycle rules can archive or delete log files automatically +- **VPC endpoint limitation**: CloudTrail logs are NOT delivered to requester or bucket owner when a VPC endpoint policy denies the request + +## Commands and Syntax +No specific CLI commands on this page, but references: +- Create trails via AWS CLI for single-Region control (console always creates multi-Region) +- CloudTrail Lake uses **SQL-based queries** against event data stores +- **Advanced event selectors** control which events persist in an event data store + +## Relationships +- **CloudTrail + S3 server access logs**: CloudTrail provides API-level tracking (bucket-level and object-level); server access logs provide request-level detail for object operations — they are complementary +- **CloudTrail + CloudWatch Logs**: S3 bucket-level API activity can be sent to a CloudWatch log stream; enables **CloudWatch alarms** for specific API activity with email notifications +- **SOAP API tracking**: Legacy SOAP calls (HTTPS only) are mapped to CloudTrail event names (e.g., `ListAllMyBuckets` → `ListBuckets`, `SetBucketAccessControlPolicy` → `PutBucketAcl`) +- Related sub-topics: S3 CloudTrail events, log file entry format, enabling event logging, identifying requests via CloudTrail + +## Exam-Relevant Points +- CloudTrail Event history retains **90 days** of management events **at no charge** +- For records beyond 90 days, create a **trail** or **CloudTrail Lake event data store** +- Console-created trails are **always multi-Region**; single-Region trails require the **CLI** +- First copy of management events to S3 via trail is **free**; CloudTrail Lake **always costs** +- CloudTrail Lake stores events in **ORC format** (columnar, optimized for fast retrieval) +- S3 log files are **encrypted with SSE by default** +- CloudTrail does **not** deliver logs for requests denied by **VPC endpoint policies** +- SOAP API is **deprecated over HTTP** but still available over **HTTPS**; newer S3 features are **not supported** for SOAP +- CloudTrail logs identify whether requests used root credentials, IAM Identity Center, temporary credentials, or service-to-service calls + diff --git a/entries/2026/03/11/AmazonS3-latest-userguide-directory-buckets-overviewhtml.md b/entries/2026/03/11/AmazonS3-latest-userguide-directory-buckets-overviewhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2e3661fcf9e2bd918b8bee40acaf683e80b4d41f --- /dev/null +++ b/entries/2026/03/11/AmazonS3-latest-userguide-directory-buckets-overviewhtml.md @@ -0,0 +1,44 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html +source: sources/AmazonS3-latest-userguide-directory-buckets-overviewhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:21 + + + +## Overview +Directory buckets are an Amazon S3 bucket type (used by S3 Express One Zone) that organize data hierarchically into directories rather than using the flat storage structure of general purpose buckets. They are located in specific Availability Zones or Local Zones, offer high throughput (up to 200K read TPS and 100K write TPS), and have strict security defaults with all Block Public Access settings enabled and ACLs disabled. + +## Key Concepts +- **Hierarchical namespace**: Data is organized into directories using `/` as the only supported delimiter, unlike the flat prefix-based structure of general purpose buckets. +- **Automatic directory creation**: Directories are created implicitly from object key paths (e.g., `dir1/dir2/file1.txt` creates `dir1/` and `dir2/`). +- **No prefix limits**: Directory buckets have no prefix limits and individual directories scale horizontally. +- **Unsorted listing results**: `ListObjectsV2` returns unsorted results; use the `prefix` parameter to scope results to a subdirectory. +- **Inactive bucket behavior**: Buckets in Availability Zones with no request activity for 90+ days become inactive and temporarily inaccessible. Access requests reactivate them (typically within minutes), returning HTTP `503` during transition. Does **not** apply to Local Zone buckets. +- **Security defaults (non-modifiable)**: All S3 Block Public Access settings enabled, S3 Object Ownership set to bucket owner enforced, ACLs disabled. +- **Access management**: Use IAM (users, groups, roles) or access points for directory bucket permissions. No default user permissions. + +## Commands and Syntax +- **Bucket naming format**: `bucket-base-name--zone-id--x-s3` (e.g., `bucket-base-name--usw2-az1--x-s3`) +- **Listing with prefix**: Use `prefix=dir1/` parameter in `ListObjectsV2` to scope results to a subdirectory. + +## Relationships +- **S3 Express One Zone**: Directory buckets are the bucket type used by S3 Express One Zone for single-AZ, low-latency storage. +- **General purpose buckets**: Contrasts with flat-structured general purpose buckets; different naming, access, and performance models. +- **IAM**: Access control relies on IAM identity-based policies and Regional endpoint API authorization. +- **Access points**: Can be used with directory buckets to manage shared dataset access at scale. +- **AWS FIS**: Resilience testing supported via S3 Express One Zone FIS integration. + +## Exam-Relevant Points +- **Quota**: 100 directory buckets per account per Region (adjustable via Support). +- **Performance limits**: Up to 200,000 read TPS and 100,000 write TPS per directory bucket. +- **Naming convention**: Must follow `base-name--zone-id--x-s3` format — the zone ID is embedded in the bucket name. +- **90-day inactivity rule**: Buckets become inactive after 90 days without requests; reactivation returns 503 temporarily. Local Zone buckets are exempt. +- **Security is locked down**: Block Public Access always on, ACLs always disabled, Object Ownership always bucket owner enforced — these settings **cannot be changed**. +- **No unlimited buckets**: Unlike general purpose buckets (no hard limit on objects), directory buckets have a per-account creation limit of 100. +- **Only `/` delimiter**: The only supported delimiter is forward slash; this differs from general purpose buckets which support arbitrary delimiters. +- **Unsorted results**: `ListObjectsV2` does not return sorted results in directory buckets (unlike general purpose buckets which return lexicographically sorted results). + diff --git a/entries/2026/03/11/AmazonS3-latest-userguide-example-walkthroughs-managing-accesshtml.md b/entries/2026/03/11/AmazonS3-latest-userguide-example-walkthroughs-managing-accesshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2661ae8225e561d2d7f27c864ec9aae70f4c7253 --- /dev/null +++ b/entries/2026/03/11/AmazonS3-latest-userguide-example-walkthroughs-managing-accesshtml.md @@ -0,0 +1,44 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-walkthroughs-managing-access.html +source: sources/AmazonS3-latest-userguide-example-walkthroughs-managing-accesshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:21 + + + +## Overview +This page introduces a series of walkthrough examples demonstrating how to manage access to Amazon S3 resources using IAM policies, bucket policies, and ACLs. The examples progress from simple same-account permissions to complex cross-account scenarios involving objects owned by different accounts. + +## Key Concepts +- **IAM users have no permissions by default** — permissions must be explicitly granted +- **Bucket owner** — the AWS account that creates the bucket +- **Object owner** — the AWS account that uploads/creates the object (may differ from bucket owner) +- **Bucket owner has no permissions on objects created by other AWS accounts** — bucket policies don't apply to objects owned by other accounts +- **Object ACLs** — when object and bucket owners differ, the object owner must first grant permissions to the bucket owner via an object ACL +- **Cross-account delegation is not supported** for object permissions — IAM roles must be used instead +- **Permission delegation via IAM roles** — a bucket owner can create an IAM role that another account can assume, enabling cross-account access to objects the bucket owner doesn't own + +## Commands and Syntax +- Permissions are tested using **AWS CLI** or **AWS Tools for Windows PowerShell** (no code required) +- Resources are created via the **AWS Management Console** +- An **administrator IAM user** (not root) should be used for all walkthrough tasks +- Sign-in uses the **IAM user sign-in URL** found in the IAM Console + +## Relationships +- **IAM** — user creation, roles, best practices (avoid root credentials) +- **S3 Bucket Policies** — grant access to bucket and objects +- **S3 Object ACLs** — required when object owner ≠ bucket owner +- **Cross-account access** — ties into IAM roles and AssumeRole +- **Permission delegation** — links to S3 access policy language concepts + +## Exam-Relevant Points +- IAM users have **zero permissions by default** +- Bucket policies **do not apply** to objects owned by other AWS accounts +- When object owner ≠ bucket owner, the **object owner must grant permissions via ACL first** +- **Cross-account delegation of object permissions is not supported directly** — use an **IAM role** with AssumeRole instead +- Always use an **administrator IAM user**, not root credentials, for resource management +- Four example patterns: same-account bucket permissions, cross-account bucket permissions, bucket owner delegating permissions on others' objects (same account), and cross-account access to others' objects via IAM roles + diff --git a/entries/2026/03/11/AmazonS3-latest-userguide-replicationhtml.md b/entries/2026/03/11/AmazonS3-latest-userguide-replicationhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..f142766ce6ea49594ad4c7b509e2905ef7795b6d --- /dev/null +++ b/entries/2026/03/11/AmazonS3-latest-userguide-replicationhtml.md @@ -0,0 +1,54 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html +source: sources/AmazonS3-latest-userguide-replicationhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:22 + +## Overview +Amazon S3 replication enables automatic, asynchronous copying of objects across S3 buckets, either within the same Region or across different Regions. It supports same-account and cross-account replication, single or multiple destinations, and comes in two main forms: live replication (automatic for new/updated objects) and on-demand Batch Replication (for existing objects). + +## Key Concepts +- **Live replication** — automatically replicates new and updated objects as they are written; does NOT replicate objects that existed before replication was configured +- **On-demand replication (Batch Replication)** — replicates existing objects on demand via S3 Batch Operations +- **Cross-Region Replication (CRR)** — live replication across buckets in different AWS Regions +- **Same-Region Replication (SRR)** — live replication across buckets in the same AWS Region +- **Two-way (bi-directional) replication** — keeps objects and metadata in sync across buckets in both directions; critical for Multi-Region Access Point failover +- **Replica modification sync** — replicates metadata changes (ACLs, tags, object locks) on replicated objects; must be explicitly enabled +- **S3 Replication Time Control (S3 RTC)** — SLA-backed: replicates 99.99% of new objects within 15 minutes; does NOT apply to Batch Replication +- **Owner override** — allows changing replica ownership to the destination bucket's account +- Replication retains all metadata including original creation times and version IDs +- Objects can be replicated directly into different storage classes (e.g., Glacier Flexible Retrieval, Glacier Deep Archive) + +## Commands and Syntax +No CLI commands shown on this page — it is a conceptual overview. Configuration is done via replication rules on buckets (covered in linked setup pages). + +## Relationships +- **S3 Batch Operations** — Batch Replication jobs are tracked through Batch Operations +- **S3 Lifecycle configurations** — can be used on destination buckets to transition replicated objects to colder storage classes +- **Multi-Region Access Points** — two-way replication rules are configured before MRAP failover controls to keep data synchronized +- **CloudWatch** — S3 replication metrics can be monitored via CloudWatch +- **S3 Versioning** — required for replication (referenced in requirements page) +- **Storage classes** — replication can target any storage class including Glacier tiers + +## Exam-Relevant Points +- Live replication does **not** replicate pre-existing objects — use Batch Replication for that +- S3 RTC provides an SLA-backed 15-minute replication guarantee for 99.99% of objects; standard CRR/SRR replication target is 24–48 hours with no SLA +- S3 RTC does **not** apply to Batch Replication +- CRR use cases: compliance (geographic distance), latency reduction, cross-region compute efficiency +- SRR use cases: log aggregation, prod/test account sync, data sovereignty (must stay in-country) +- Batch Replication can replicate: existing objects, previously failed objects, already-replicated objects, and replicas of replicas +- Replicas of objects (created by replication rules) can **only** be re-replicated using Batch Replication +- Two-way replication with replica modification sync is required before configuring MRAP failover +- Replication works cross-account — owner override option restricts access to replicas +- All three replication types (RTC, CRR, SRR) support cross-account replication + +| Workload | RTC | CRR | SRR | +|----------|-----|-----|-----| +| Cross-account | ✓ | ✓ | ✓ | +| Same-Region 24-48h | ✗ | ✗ | ✓ | +| Cross-Region 24-48h | ✗ | ✓ | ✗ | +| 15-min SLA (99.9%) | ✓ | ✗ | ✗ | + diff --git a/entries/2026/03/11/AmazonS3-latest-userguide-s3-express-Endpointshtml.md b/entries/2026/03/11/AmazonS3-latest-userguide-s3-express-Endpointshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d434b3c8117249ccc9b216baba93017f0d0f9fba --- /dev/null +++ b/entries/2026/03/11/AmazonS3-latest-userguide-s3-express-Endpointshtml.md @@ -0,0 +1,39 @@ +--- +source_url: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Endpoints.html +source: sources/AmazonS3-latest-userguide-s3-express-Endpointshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:22 + + + +## Overview +This page describes the Availability Zone (AZ) and Region support for Amazon S3 Express One Zone storage class, which stores objects in directory buckets within a single AZ for low-latency access. It explains AZ ID mapping across accounts and lists all supported Regions and AZ IDs. + +## Key Concepts +- **S3 Express One Zone** stores data redundantly on multiple devices within a **single** Availability Zone (not across AZs) +- **Directory buckets** are the bucket type used by S3 Express One Zone; you choose both AZ and Region at creation time +- **AZ name mapping is per-account**: `us-east-1a` in one account may be a different physical location than `us-east-1a` in another account +- **AZ IDs** (e.g., `use1-az4`) are consistent identifiers for the same physical AZ across all accounts — use these to coordinate cross-account +- Designed for **99.95% availability** within a single AZ, backed by the S3 SLA +- Data is **not replicated across AZs** — single-AZ design trades durability/availability for latency + +## Commands and Syntax +No CLI commands on this page. Key operational detail: +- When creating a directory bucket, you must specify both the **Region** and **Availability Zone ID** (not AZ name) + +## Relationships +- **S3 Express One Zone → Directory Buckets**: Express One Zone is the storage class; directory buckets are the container type +- **AZ IDs → EC2/Compute placement**: To get low-latency benefit, place compute (EC2, Lambda, etc.) in the same AZ ID as the directory bucket +- **Cross-account coordination**: AZ IDs (not AZ names) must be used when aligning resources across AWS accounts +- **Contrast with S3 Standard**: Standard S3 replicates across ≥3 AZs; Express One Zone uses one AZ for performance + +## Exam-Relevant Points +- S3 Express One Zone availability SLA is **99.95%** (lower than S3 Standard's 99.99% due to single-AZ) +- Always use **AZ IDs** (e.g., `use1-az4`), not AZ names, for cross-account AZ coordination +- Supported in **8 Regions**: us-east-1, us-east-2, us-west-2, ap-south-1, ap-northeast-1, eu-west-1, eu-north-1 (not all Regions) +- The storage class is designed for **low-latency compute-local access** — co-locate compute in the same AZ +- Data redundancy is within a single AZ (multiple devices), **not across AZs** + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-WorkingWithRoleshtml.md b/entries/2026/03/11/IAM-latest-UserGuide-WorkingWithRoleshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e9cd145f423734a107901dd058c69b81727742ae --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-WorkingWithRoleshtml.md @@ -0,0 +1,54 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/WorkingWithRoles.html +source: sources/IAM-latest-UserGuide-WorkingWithRoleshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:22 + +## Overview + +IAM roles are AWS identities with permission policies that, unlike IAM users, are not tied to a specific person and do not have long-term credentials. Instead, roles provide temporary security credentials when assumed, enabling delegation of access to users, applications, or services—including cross-account and federated access scenarios. + +## Key Concepts + +- **IAM Role**: An identity with permissions that is *assumable* by anyone who needs it; provides temporary credentials (not passwords or long-term access keys) +- **Who can assume roles**: IAM users (same or cross-account), other IAM roles, AWS service principals, and external users via SAML 2.0 or OIDC federation +- **Service role**: An IAM role assumed by an AWS service to perform actions on your behalf; IAM admins can create/modify/delete these +- **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 +- **Role chaining**: Assuming a second role from within a first assumed role; **limited to 1-hour sessions** regardless of individual role max session settings +- **Delegation**: Granting access via a role with two policies—a *permissions policy* (what the role can do) and a *trust policy* (who can assume it) +- **Trust policy**: A required resource-based JSON policy attached to the role defining which principals can assume it; **cannot use wildcard (`*`) in the Principal element ARN** +- **External ID**: An additional parameter for secure cross-account role assumption between different organizations (confused deputy mitigation) +- **Permissions boundary**: Limits the maximum permissions an identity-based policy can grant to a role; **cannot be applied to service-linked roles** +- **When to use IAM users instead of roles**: Workloads that can't use roles (e.g., WordPress plugins), third-party clients without IAM Identity Center support, CodeCommit SSH/service-specific credentials, Amazon Keyspaces Cassandra compatibility, and emergency/break-glass access + +## Commands and Syntax + +- **AssumeRole API**: Use `DurationSeconds` parameter (up to 43200 seconds / 12 hours) depending on role's max session duration setting +- **Role chaining constraint**: If assuming via role chaining, `DurationSeconds` > 3600 (1 hour) causes the operation to **fail** +- **Session tags**: Pass via `--tags` when assuming a role; set `TransitiveTagKeys` to propagate tags through role chains + +## Relationships + +- **Trust policies** → connects to IAM JSON policy language and the `Principal` element +- **Cross-account access** → roles are the primary mechanism; alternative is resource-based policies (S3, SNS, SQS, Glacier) +- **Identity federation** → OIDC and SAML 2.0 providers map external identities to IAM roles +- **IAM Identity Center** → preferred over IAM users for workforce authentication; roles used under the hood +- **Service-linked roles** → check "AWS services that work with IAM" reference table for support +- **Confused deputy problem** → mitigated by external ID in trust policies for third-party access +- **Permissions boundaries** → advanced guardrail layered on top of role permissions policies + +## Exam-Relevant Points + +- Roles provide **temporary credentials**, not long-term; this is a core differentiator from IAM users +- **Role chaining sessions are capped at 1 hour**—this overrides individual role max session duration settings +- Trust policies **cannot use wildcard `*` as part of an ARN** in the Principal element +- **Service-linked roles cannot be edited** by IAM administrators and require deletion of related resources first +- Cross-account delegation requires **both** a trust policy on the role (trusting account) **and** a permissions policy on the user (trusted account) +- **Permissions boundaries cannot be applied to service-linked roles** +- IAM users should only be created for specific use cases: workloads that can't use roles, CodeCommit SSH, Amazon Keyspaces, third-party tools without IdC support, and emergency access +- When a user assumes a role, they **temporarily give up their own permissions** and take on the role's permissions +- No roles are created by default when you first create an AWS account; services may auto-create service-linked roles later + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-custom-policy-checkshtml.md b/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-custom-policy-checkshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a503e069c69e46a6780cb66d66a9a6e049dfb3bf --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-custom-policy-checkshtml.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-custom-policy-checks.html +source: sources/IAM-latest-UserGuide-access-analyzer-custom-policy-checkshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:23 + + + +## Overview +IAM Access Analyzer custom policy checks allow you to validate IAM policies against your security standards by checking whether policy changes introduce new access, grant specific unwanted access, or allow public access to resources. Each check incurs a cost per invocation. + +## Key Concepts +- **Custom policy checks** are a paid feature of IAM Access Analyzer — each check has an associated charge +- Three types of checks are available: + - **Check no new access** — compares an updated policy against an existing policy to detect if new permissions are introduced + - **Check access not granted** — verifies that a policy does not grant specific access you want to prohibit + - **Check no public access** — determines whether a resource policy could grant public access to a specified resource type +- Checks can be run interactively in the IAM console JSON policy editor or programmatically via CLI/API +- In the console, new access findings are highlighted directly in the policy validation pane + +## Commands and Syntax +```bash +# Check if an updated policy grants new access compared to existing policy +aws accessanalyzer check-no-new-access + +# Check if specific access is NOT granted by a policy +aws accessanalyzer check-access-not-granted + +# Check if a resource policy allows public access +aws accessanalyzer check-no-public-access +``` + +**API operations:** +- `CheckNoNewAccess` +- `CheckAccessNotGranted` +- `CheckNoPublicAccess` + +## Relationships +- Part of **IAM Access Analyzer** — extends its policy validation capabilities beyond standard grammar/best-practice checks +- Complements **IAM policy validation** (syntax/grammar checks) with semantic security analysis +- Integrates into the **IAM console JSON policy editor** workflow +- Related to **IAM Access Analyzer policy generation** and **findings remediation** as part of the broader least-privilege toolchain +- Can be integrated into **CI/CD pipelines** via CLI/API for automated policy review + +## Exam-Relevant Points +- Custom policy checks are a **paid feature** (unlike standard policy validation, which is free) +- Know the three distinct check types and what each detects: new access, specific access not granted, public access +- These checks are available via **console, CLI, and API** — not just one interface +- The console integration is in the **JSON policy editor** under a "Check for new access" tab +- `check-no-new-access` requires both the new and existing policy for comparison +- `check-no-public-access` requires specifying a **resource type** + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-dashboardhtml.md b/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-dashboardhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..635c83b27ddb02b436c8d47eb66598bc9e74116c --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-dashboardhtml.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-dashboard.html +source: sources/IAM-latest-UserGuide-access-analyzer-dashboardhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:23 + + + +## Overview + +The IAM Access Analyzer findings dashboard provides a visual summary of external, internal, and unused access findings across an AWS environment. It helps identify accounts and resources needing attention by organizing findings by organization, account, and finding type, enabling security teams to prioritize and investigate access issues at scale. + +## Key Concepts + +- **Dashboard types**: Two separate dashboard views — one for external/internal access findings, and one for unused access findings +- **External access findings**: Resources accessible from outside the account or organization, including public access +- **Internal access findings**: Access patterns within the account/organization boundary +- **Unused access findings**: Three categories — unused roles, unused credentials (access keys + passwords), and unused permissions (for both users and roles) +- **Finding statuses**: Active, Archived, and Resolved +- **Zone of trust**: Set to either Organization or Account level; Organization level requires management account or delegated administrator +- **Analyzer selection limits**: Maximum one external access analyzer and one internal access analyzer can be selected simultaneously +- **Auto-population**: Findings are automatically added to the dashboard after analyzer creation +- **Dashboard update delay**: After creating or updating an analyzer, the dashboard takes time to reflect changes (especially for unused access, which depends on number of users/roles) + +## Commands and Syntax + +No CLI commands shown — this is a console-based workflow: + +1. Open IAM console → **Access Analyzer** → **Summary** +2. **Select analyzers** → Choose zone of trust (Organization/Account) +3. Select analyzer(s) from dropdown → **Update** (or **Update summary** for unused access) + +## Relationships + +- **IAM Access Analyzer**: Parent feature; the dashboard is a visualization layer over analyzer findings +- **AWS Organizations**: Organization-level zone of trust enables cross-account visibility; only management account or delegated admin can use this scope +- **IAM policies and roles**: Unused access findings directly relate to IAM principals (users, roles) and their credentials/permissions +- **Resource-based policies**: External/internal access findings relate to resource policies on S3, SQS, KMS, Lambda, etc. +- **Access Analyzer policy generation**: Findings can inform policy right-sizing (related to `access-analyzer-policy-generation`) + +## Exam-Relevant Points + +- The dashboard distinguishes **public access**, **external access** (cross-account/cross-org), and **internal access** as separate finding categories +- Only the **Organizations management account or delegated administrator** can set the zone of trust to Organization +- Unused credentials include **both** unused access keys **and** unused passwords +- Unused permissions findings cover **both** users and roles +- The "Accounts with most findings" section only appears at the **organization level**, not account level +- Findings are added **automatically** — no manual scan trigger needed for the dashboard +- You can select at most **one external + one internal** access analyzer at a time for the dashboard view + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-findings-remediatehtml.md b/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-findings-remediatehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9dee80061dcc5ca43156df96e1efada8feeb282b --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-findings-remediatehtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-findings-remediate.html +source: sources/IAM-latest-UserGuide-access-analyzer-findings-remediatehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:23 + + + +## Overview + +This page describes how to resolve findings generated by IAM Access Analyzer, covering both **resource findings** (external/internal access) and **unused access findings** (unused permissions, roles, access keys, and passwords). It explains the lifecycle of findings from Active to Resolved and provides step-by-step remediation procedures for each finding type. + +## Key Concepts + +- **Resource findings** are resolved by modifying the policy that grants unintended access; Access Analyzer automatically rescans and updates the finding status to **Resolved** +- **Resolved findings** move from the active list to the resolved list and are **deleted after 90 days** +- **Error findings** behave differently — they are removed completely when the underlying issue is fixed, not changed to Resolved +- Modifying a policy that changes the *type* of access (different principal or permission) resolves the original finding but generates a **new Active finding** +- **Unused access findings** have four subtypes: unused permissions, unused roles, unused access keys, and unused passwords +- IAM Access Analyzer can **recommend replacement policies** for unused permission findings (with limitations) +- Policy recommendation is **not supported** for: users in groups, IAM Identity Center roles, or policies using `notAction` +- Unused access analysis is a **paid feature** — charges are based on number of IAM roles and users analyzed per month + +## Commands and Syntax + +No CLI commands on this page. All procedures use the IAM console: + +- **Resolve resource findings**: Modify the policy via the relevant service console (S3, IAM, etc.) +- **Resolve unused permissions**: IAM Console → Unused access → Preview recommended policy → Download JSON → Attach new policy → Remove old policy +- **Resolve unused roles**: IAM Console → Unused access → Delete the IAM role +- **Resolve unused access keys**: IAM Console → Unused access → Deactivate or delete the access key +- **Resolve unused passwords**: IAM Console → Unused access → Delete the password for the IAM user + +## Relationships + +- **IAM Access Analyzer** — parent feature that generates these findings +- **IAM policies** (identity-based and resource-based) — the artifacts you modify to resolve findings +- **S3 bucket policies** — resource findings for S3 are resolved via the S3 console specifically +- **IAM roles trust policies** — role-based resource findings require trust policy modification +- **IAM Identity Center** — excluded from policy recommendations for unused permissions +- **Error findings** — separate category documented at `access-analyzer-error-findings.html` +- **Least privilege principle** — unused access findings directly support least-privilege enforcement + +## Exam-Relevant Points + +- External access analyzer rescans take **up to 30 minutes**; unused/internal access rescans may take **several minutes to hours**, with automatic rescans every **24 hours** +- Resolved findings are **automatically deleted after 90 days** +- Error findings are **removed entirely** (not moved to Resolved) when fixed +- Changing a policy to grant access in a *different way* results in the original finding being Resolved and a **new finding being created** +- Unused access analysis **incurs charges** per IAM role/user analyzed per month +- Policy recommendations don't work for policies with `notAction`, users in groups, or Identity Center roles +- Remediation for unused permissions involves **replacing** existing policies with recommended narrower policies, not just removing them + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-policy-generationhtml.md b/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-policy-generationhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..10b1d50b8fd9ee32038362a8decf1878a1ff9d9e --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-policy-generationhtml.md @@ -0,0 +1,82 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-policy-generation.html +source: sources/IAM-latest-UserGuide-access-analyzer-policy-generationhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:24 + +## Overview +IAM Access Analyzer policy generation creates least-privilege IAM policies by analyzing AWS CloudTrail logs to determine what actions and services an IAM entity (user or role) actually used over a specified time period. This enables administrators to replace overly broad permissions with fine-grained policies that grant only the permissions required for a specific use case. + +## Key Concepts +- **Policy generation process**: Analyzes CloudTrail events for a specified period (up to 90 days), identifies actions/services used by an IAM entity, and produces a policy template +- **Action-level information**: For supported services (e.g., EC2), Access Analyzer identifies specific actions from CloudTrail events +- **Service-level information**: For unsupported services, uses "last accessed" data to identify recently used services; actions must be manually selected +- **Service role requirement**: A service role must be created or selected to grant Access Analyzer access to CloudTrail trail data and service last accessed information +- **Resource ARN placeholders**: Generated policies include placeholder ARNs for actions supporting resource-level permissions; these must be replaced with actual resource ARNs +- **`iam:PassRole` is NOT tracked** by CloudTrail and is never included in generated policies +- **Data events not available**: Action-level activity for data events (e.g., S3 data events) is not identified +- **Denied actions are included**: Policy generation reviews all CloudTrail events, including denied actions +- **Generated policy retention**: Viewable in IAM console for up to 7 days; only one generated policy at a time per console session +- **S3 standard rates apply** for accessing CloudTrail logs during generation +- **AWS Control Tower trails not supported** because logs are in the Log Archive account and S3 bucket permissions are restricted by SCPs + +## Commands and Syntax + +**Service role permissions policy (first-time setup):** +```json +{ + "Version": "2012-10-17", + "Statement": [ + {"Effect": "Allow", "Action": "cloudtrail:GetTrail", "Resource": "*"}, + {"Effect": "Allow", "Action": ["iam:GetServiceLastAccessedDetails", "iam:GenerateServiceLastAccessedDetails"], "Resource": "*"}, + {"Effect": "Allow", "Action": ["s3:GetObject", "s3:ListBucket"], "Resource": ["arn:aws:s3:::BUCKET", "arn:aws:s3:::BUCKET/*"]} + ] +} +``` + +**Service role trust policy:** +```json +{ + "Version": "2012-10-17", + "Statement": [ + {"Effect": "Allow", "Principal": {"Service": "access-analyzer.amazonaws.com"}, "Action": "sts:AssumeRole"} + ] +} +``` + +**Required Access Analyzer actions for users generating policies:** +- `access-analyzer:CancelPolicyGeneration` +- `access-analyzer:GetGeneratedPolicy` +- `access-analyzer:ListPolicyGenerations` +- `access-analyzer:StartPolicyGeneration` + +**Console also requires:** `cloudtrail:ListTrails` + +**Subsequent use requires:** `iam:GetRole` and `iam:PassRole` for the service role + +**Cross-account S3 bucket policy** uses conditions `aws:PrincipalOrgID` and `aws:PrincipalArn` to scope access to the correct organization and service role. + +## Relationships +- **CloudTrail**: Source of access activity data; a trail must be enabled and logging to an S3 bucket +- **IAM Last Accessed**: Supplements CloudTrail data for service-level information when action-level data isn't available +- **S3**: Stores CloudTrail logs; standard S3 rates apply for access during generation +- **AWS Organizations**: Cross-account policy generation leverages org trails and org-level conditions +- **AWS KMS**: If CloudTrail logs are encrypted, KMS key policy must grant Access Analyzer decrypt access +- **S3 Object Ownership**: Bucket owner must own all objects for cross-account policy generation to work (use "Bucket owner enforced" or "Bucket owner preferred") + +## Exam-Relevant Points +- Policy generation analyzes up to **90 days** of CloudTrail activity +- **`iam:PassRole` is never included** in generated policies (not tracked by CloudTrail) +- **Data events are excluded** from action-level analysis +- **Denied actions ARE reviewed** — generated policies may include actions that were attempted but denied +- Generated policies are available for **7 days** in the console +- Only **one generated policy at a time** per IAM console session +- A **service role** with trust to `access-analyzer.amazonaws.com` is required +- Cross-account generation requires both a **role in the source account** and a **bucket policy in the log account** +- For cross-account with S3, **Object Ownership must be set to bucket owner enforced or preferred** +- **AWS Control Tower trails are not supported** for policy generation +- Shorter date ranges = faster policy generation + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-policy-validationhtml.md b/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-policy-validationhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..01d066e3e0a6df9d7d60628b23ff807fddc2ea8e --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-policy-validationhtml.md @@ -0,0 +1,58 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-policy-validation.html +source: sources/IAM-latest-UserGuide-access-analyzer-policy-validationhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:24 + + + +## Overview +This page explains how to use IAM Access Analyzer's policy validation feature to check IAM policies against AWS policy grammar and security best practices. Validation can be performed via the IAM console (JSON policy editor), AWS CLI, or AWS API, and produces categorized findings (security warnings, errors, general warnings, and suggestions) with actionable recommendations. + +## Key Concepts +- **Policy validation** automatically checks IAM policies against policy grammar rules and AWS best practices +- Four finding categories: + - **Security** — overly permissive access that AWS considers a security risk + - **Errors** — issues that prevent the policy from functioning + - **Warnings** — best practice violations that aren't security risks + - **Suggestions** — recommended improvements that don't affect permissions +- Validation works for **managed policies** and **inline user/role policies**, but **not inline group policies** +- **Custom policy checks** ("Check for new access") compare an updated policy against the existing version to detect whether new access is being granted — this is a **paid feature** +- The IAM **Policy Validator** (separate from Access Analyzer) reports additional syntax errors after Access Analyzer validation +- Findings include actionable recommendations with links to the policy check reference + +## Commands and Syntax +**AWS CLI:** +```bash +aws accessanalyzer validate-policy +``` + +**AWS API:** +``` +ValidatePolicy +``` +(via the Access Analyzer API, not the IAM API) + +**Console path:** IAM Console → Policies → Create/Edit → JSON tab → policy validation pane + +## Relationships +- **IAM policy grammar** (`reference_policies_grammar`) — validation checks policies against this grammar +- **IAM best practices** (`best-practices`) — validation checks conformance to these +- **IAM Access Analyzer custom policy checks** (`access-analyzer-custom-policy-checks`) — the "Check for new access" feature extends basic validation with differential analysis +- **Policy check reference** (`access-analyzer-reference-policy-checks`) — full list of checks performed +- **Policy Validator** (`access_policies_policy-validator`) — separate syntax validation that runs after Access Analyzer checks +- **Creating policies** (`access_policies_create-console`) — validation integrates into the policy creation workflow +- **Editing policies** (`access_policies_manage-edit`) — validation integrates into the policy editing workflow + +## Exam-Relevant Points +- IAM Access Analyzer policy validation is **free** for standard checks; **custom policy checks** ("Check for new access") have an associated cost +- Validation does **not** support inline group policies — only managed policies and inline user/role policies +- The `validate-policy` API belongs to the **Access Analyzer** service, not the IAM service +- Four distinct finding severity levels: Security > Errors > Warnings > Suggestions +- Custom policy checks perform **differential analysis** — comparing new vs. existing policy to detect new access grants +- Switching between Visual and JSON editor tabs may cause IAM to **restructure the policy** for visual editor optimization +- Always **test policies** before deploying to production workflows + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-resourceshtml.md b/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-resourceshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3feeee965c9eefc9e68b5041eaf649e3d15de051 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-resourceshtml.md @@ -0,0 +1,75 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-resources.html +source: sources/IAM-latest-UserGuide-access-analyzer-resourceshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:25 + + + +## Overview + +This page documents all AWS resource types that IAM Access Analyzer supports for external and internal access analysis. Access Analyzer examines resource-based policies applied to resources in the enabled Region to identify access granted to external entities (outside your zone of trust) or internal principals (within your organization/account). The page details how each resource type is analyzed, including nuances around policy evaluation timing, encryption impacts on sharing, and specific behavioral notes per service. + +## Key Concepts + +- **External access analyzer**: Identifies resources shared with entities outside your zone of trust (e.g., other AWS accounts, public access) +- **Internal access analyzer**: Identifies which principals within your organization/account can access specific resources +- **Unused access analyzer**: Only supports IAM users and roles (not resource types listed here) +- **Zone of trust**: The boundary (account or organization) that defines what is "internal" vs "external" +- **External access supports 14 resource types**; internal access supports only 6 of those +- IAM Access Analyzer only examines **resource-based policies**, not identity-based policies (with the exception of ECR which also requires identity-based `ecr:GetAuthorizationToken`) +- **Block Public Access** (S3) overrides bucket and access point policies; account-level BPA evaluation occurs only every **6 hours** +- Multi-Region access point changes are also evaluated every **6 hours** +- RCP (resource control policy) changes without a bucket policy change don't trigger rescan — next periodic scan is within **24 hours** +- IAM roles are **global resources** — a finding is generated in each enabled Region +- EBS snapshots and RDS snapshots **do not have resource-based policies** — sharing is controlled via ACLs/permissions attributes +- Encrypted RDS/RDS cluster snapshots **cannot be shared publicly** but can be shared with up to 20 accounts +- Unencrypted RDS snapshots and EBS snapshots **can be made public** +- Cross-account access points are not analyzed (outside analyzer account); a public finding is generated if BPA is not enabled + +## Commands and Syntax + +**Grant IAM Access Analyzer access to a KMS key (to avoid Access Denied findings):** +```json +{ + "Sid": "Allow IAM Access Analyzer access to key metadata", + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::111122223333:role/aws-service-role/access-analyzer.amazonaws.com/AWSServiceRoleForAccessAnalyzer" + }, + "Action": [ + "kms:DescribeKey", + "kms:GetKeyPolicy", + "kms:List*" + ], + "Resource": "*" +} +``` + +## Relationships + +- **S3**: Block Public Access, access points, multi-Region access points, ACLs +- **KMS**: Key policies, key grants, `kms:CallerAccount` condition key, Access Analyzer service-linked role +- **Lambda**: Resource-based policies on functions and layers (not aliases or qualified-ARN versions) +- **RDS**: DB snapshots and cluster snapshots; does NOT monitor direct database access or RAM-shared clusters/clones +- **EFS**: File system policies, VPC mount configuration, AWS Transfer Family cross-account access +- **DynamoDB**: Resource-based policies on tables, indexes, and streams +- **ECR**: Requires both resource-based policy AND identity-based `ecr:GetAuthorizationToken` +- **IAM roles**: Trust policies analyzed; global resource generates findings in every enabled Region + +## Exam-Relevant Points + +- **Internal access analyzers support only 6 resource types**: S3 buckets, S3 directory buckets, RDS DB snapshots, RDS DB cluster snapshots, DynamoDB streams, DynamoDB tables +- **Unused access analyzers only support IAM users and roles** — completely separate from resource type analysis +- Account-level Block Public Access changes take **up to 6 hours** to reflect in findings +- RCP changes without bucket policy changes require **up to 24 hours** (next periodic scan) +- KMS keys generate **Access Denied error findings** if the key policy doesn't allow the Access Analyzer service-linked role to read metadata +- Lambda: findings are generated for **functions and layers only**, not aliases or specific versions via qualified ARN +- EBS snapshots use `CreateVolumePermissions` attribute for sharing (no resource-based policy) +- RDS DB snapshots: only **manual** snapshots can be shared; encrypted ones cannot be public but can share with up to 20 accounts +- IAM Access Analyzer does **not** monitor direct database access or RAM-shared RDS clusters — only snapshot-level sharing +- ECR is unique: external availability requires both a resource-based policy grant AND `ecr:GetAuthorizationToken` via identity-based policy + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisor-example-scenarioshtml.md b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisor-example-scenarioshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..51e7302079f176aac64c2fc6957733ae9f8b5ec6 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisor-example-scenarioshtml.md @@ -0,0 +1,72 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor-example-scenarios.html +source: sources/IAM-latest-UserGuide-access_policies_access-advisor-example-scenarioshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:25 + + + +## Overview + +This page provides practical scenarios demonstrating how to use IAM **last accessed information** to implement least-privilege permissions. It walks through examples of reducing permissions for IAM groups, individual users, organizational units, and policies by analyzing which services and actions have actually been used over time. + +## Key Concepts + +- **Last accessed information** tracks when IAM entities (users, groups, roles) or policies were last used to access specific AWS services +- Recommended to wait a **reporting period** (e.g., 90 days) before using the data to make permission decisions +- Permissions reduction should be done cautiously — a user may receive permissions from multiple sources (direct policies, group memberships) +- Before removing group-level permissions, check whether **other group members** still need access +- Before deleting policies, verify they are not attached to any other IAM identities +- Last accessed information applies to both **IAM entities** and **AWS Organizations entities** (OUs, SCPs) +- The `ServicesLastAccessed` response includes `TotalAuthenticatedEntities`, `LastAuthenticated` timestamp, `ServiceNamespace`, and `LastAuthenticatedEntity` + +## Commands and Syntax + +List customer managed policies attached to identities: +```bash +aws iam list-policies --scope Local --only-attached --policy-usage-filter PermissionsPolicy +``` + +Generate a last-accessed report for a policy: +```bash +aws iam generate-service-last-accessed-details --arn arn:aws:iam::123456789012:policy/ExamplePolicy1 +``` + +Poll for report completion: +```bash +aws iam get-service-last-accessed-details --job-id 98a765b4-3cde-2101-2345-example678f9 +``` + +List policy versions and retrieve a specific version: +```bash +aws iam list-policy-versions --policy-arn arn:aws:iam::123456789012:policy/ExamplePolicy1 +aws iam get-policy-version --policy-arn arn:aws:iam::123456789012:policy/ExamplePolicy1 --version-id v2 +``` + +Update a policy with a new version: +```bash +aws iam create-policy-version --policy-arn arn:aws:iam::123456789012:policy/ExamplePolicy1 --policy-document file://UpdatedPolicy.json --set-as-default +``` + +## Relationships + +- **Least privilege principle** (`best-practices.html#grant-least-privilege`) — last accessed information is the primary mechanism for iterating toward least privilege +- **CloudTrail Event History** — provides action-level detail to complement service-level last accessed data +- **AWS Organizations SCPs** — last accessed information extends to Organizations entities for OU-level permission refinement +- **IAM Access Advisor** (`access_policies_last-accessed.html`) — the underlying feature providing the data +- **Policy management** — ties into editing, detaching, converting inline-to-managed, and deleting policies +- **Permissions boundaries** — last accessed data informs boundary settings for users/roles + +## Exam-Relevant Points + +- The `NotAction` pattern with `"Effect": "Allow"` grants access to **all services except** the listed ones (used for power-user policies that exclude IAM/Organizations) +- `generate-service-last-accessed-details` is an **asynchronous** operation — you must poll with `get-service-last-accessed-details` until `JobStatus` is `COMPLETED` +- When reducing user permissions, you must trace **how** permissions are granted (direct attachment vs. group membership) before removing them +- Removing a policy from a **group** affects all group members — always check other members' usage first +- For Organizations, last accessed information helps refine **SCPs** by identifying services not accessed within a defined period (e.g., 180 days) +- `create-policy-version` with `--set-as-default` updates a managed policy by creating a new version and making it active +- `iam:CreateServiceLinkedRole` is commonly needed by power users but grants ability to create **any** service-linked role — a known risk tradeoff + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisor-view-data-orgshtml.md b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisor-view-data-orgshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..675765294e1e2e92c1ba538324fb41253f303de3 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisor-view-data-orgshtml.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor-view-data-orgs.html +source: sources/IAM-latest-UserGuide-access_policies_access-advisor-view-data-orgshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:25 + + + +## Overview + +This page explains how to view service last accessed information for AWS Organizations entities (root, OUs, accounts) and service control policies (SCPs) using the IAM console, AWS CLI, or AWS API. This data helps refine permissions by showing which services were actually used, by which account, and when. + +## Key Concepts + +- **Service last accessed information** shows the most recent account activity for each service allowed by SCPs applying to an Organizations entity +- Must sign in with **management account credentials** to view organization-wide data +- The **management account is not limited by SCPs** — its report lists all AWS services, not just SCP-allowed ones +- **Entity path** is a text representation of an org entity's position: `o-orgId/r-rootId/ou-ouId/.../accountId/` +- Organization IDs are **globally unique**; OU and root IDs are only unique **within** an organization — always include the org ID when specifying an OU or root +- Reports show: services allowed by applicable SCPs, which account last accessed each service, and when +- Console view is under **Access reports → Organization activity** (for entities) or **Service control policies (SCPs)** (for policies) + +## Commands and Syntax + +**Entity path format:** +``` +o-a1b2c3d4e5/r-f6g7h8i9j0example/ou-ghi0-awsccccc/ou-jkl0-awsddddd/ +o-a1b2c3d4e5/r-f6g7h8i9j0example/ou-abc0-awsaaaaa/111111111111/ +``` + +**CLI workflow (two-step async pattern):** +```bash +# Step 1: Generate report (returns job-id) +aws iam generate-organizations-access-report \ + --entity-path "o-a1b2c3d4e5/r-f6g7h8i9j0example/ou-abc0-awsaaaaa/" \ + [--organization-policy-id p-xxxxxxxx] + +# Step 2: Retrieve report (poll until job-status is complete) +aws iam get-organizations-access-report --job-id +``` + +**API equivalents:** +- `GenerateOrganizationsAccessReport` (with `OrganizationsPolicyId` optional parameter) +- `GetOrganizationsAccessReport` (with `JobId`) + +## Relationships + +- **IAM Access Advisor / Last Accessed Information** — this is the Organizations-level extension of per-principal last accessed data +- **Service Control Policies (SCPs)** — reports are scoped to services allowed by SCPs; used to evaluate SCP effectiveness +- **AWS Organizations** — requires org structure (root, OUs, accounts); SCP editing links back to the Organizations console +- **Least privilege refinement** — primary use case is tightening SCPs by removing unused service permissions + +## Exam-Relevant Points + +- Viewing org-level last accessed info requires **management account credentials** plus both IAM and Organizations permissions, and **SCPs must be enabled** +- The management account is **exempt from SCPs** — its service access report shows all services +- CLI/API reports use an **async job pattern**: generate returns a job ID, then poll for completion +- Entity paths must include the **full hierarchy** from org ID down to the target entity +- The optional policy filter (`organization-policy-id` / `OrganizationsPolicyId`) scopes the report to services allowed by a specific SCP +- Reports show the **total number of accessible services** and the **number not accessed** — useful for identifying over-permissive SCPs + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisorhtml.md b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisorhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..09e53a853894e0e3153b36331da0638777542489 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisorhtml.md @@ -0,0 +1,96 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html +source: sources/IAM-latest-UserGuide-access_policies_access-advisorhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:26 + + + +## Overview + +This page explains how to use IAM last accessed information to identify unused permissions and refine policies toward least privilege. It covers two types of last accessed data (service-level and action-level), how this works for both IAM identities and AWS Organizations entities, required permissions to view the data, tracking periods by region, and troubleshooting empty reports. + +## Key Concepts + +- **Two types of last accessed information**: (1) allowed AWS service information and (2) allowed action information (management actions only — no data plane events) +- **Last accessed data includes all attempts** — both successful and denied API calls, not just successful ones +- **Tracking period**: At least 400 days for service information; action tracking started at different times per service (S3: April 2020, EC2/IAM/Lambda: April 2021, all others: May 2023) +- **Activity appears within 4 hours** in the IAM console +- **`iam:PassRole` is not tracked** and excluded from action last accessed information +- **Report owner restriction**: Only the principal that generated a report can view its details; for temporary credentials, generate and retrieve within the same session +- **IAM policy scope**: Only considers identity-based policies (attached to user/role/group) — excludes resource-based policies, ACLs, SCPs, permissions boundaries, and session policies +- **Organizations policy scope**: Only considers inherited SCPs — excludes identity-based, resource-based, ACLs, permissions boundaries, and session policies +- **Organizations management account** reports list all AWS services (not limited by SCPs); if a policy ID is specified, it's ignored +- **SCPs must be enabled** in the organization root before generating Organizations access data +- **Unused access analyzers** can continuously monitor last accessed information + +## Commands and Syntax + +**IAM policy for viewing IAM last accessed info:** +```json +{ + "Version": "2012-10-17", + "Statement": { + "Effect": "Allow", + "Action": [ + "iam:GenerateServiceLastAccessedDetails", + "iam:Get*", + "iam:List*" + ], + "Resource": "*" + } +} +``` + +**IAM policy for viewing Organizations last accessed info:** +```json +{ + "Version": "2012-10-17", + "Statement": { + "Effect": "Allow", + "Action": [ + "iam:GenerateOrganizationsAccessReport", + "iam:GetOrganizationsAccessReport", + "organizations:Describe*", + "organizations:List*" + ], + "Resource": "*" + } +} +``` + +**Key IAM actions for CLI/API access:** +- `iam:GenerateServiceLastAccessedDetails` +- `iam:GetServiceLastAccessedDetails` +- `iam:GetServiceLastAccessedDetailsWithEntities` +- `iam:ListPoliciesGrantingServiceAccess` +- `iam:GenerateOrganizationsAccessReport` +- `iam:GetOrganizationsAccessReport` + +**Condition key**: `iam:OrganizationsPolicyId` — restricts report generation to a specific SCP. + +## Relationships + +- **IAM Access Analyzer**: Unused access analyzers provide continuous monitoring of last accessed information +- **CloudTrail**: Last accessed data includes denied attempts; CloudTrail is the authoritative source for API call success/failure +- **AWS Organizations / SCPs**: Organizations last accessed info tracks which services are allowed by SCPs and which principals used them +- **Policy evaluation logic**: Understanding which policy types are included/excluded connects to IAM's policy evaluation model +- **Least privilege best practice**: This feature is a primary mechanism for implementing least privilege iteratively + +## Exam-Relevant Points + +- Last accessed data reports **all attempts including denied ones** — not just successful access +- `iam:PassRole` is **not tracked** in last accessed information +- Action last accessed covers **management (control plane) actions only**, not data plane events +- Only **identity-based policies** are reflected in IAM last accessed reports (not resource-based, SCPs, boundaries, etc.) +- Only **SCPs** are reflected in Organizations last accessed reports +- Management account reports are **not limited by SCPs** and list all services +- Must sign in with **management account credentials** to view Organizations last accessed info +- SCPs must be **enabled on the organization root** before data can be generated +- Recent activity takes **up to 4 hours** to appear +- Tracking started **October 1, 2015** in the oldest regions (us-east-1, us-west-1, us-west-2, eu-central-1, eu-west-1, ap-southeast-1/2, ap-northeast-1) +- GovCloud regions started tracking **July 1, 2023** + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-access_policies_createhtml.md b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_createhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..67c120af714b7536d0a25c6316396efe36566c87 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_createhtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_create.html +source: sources/IAM-latest-UserGuide-access_policies_createhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:26 + + + +## Overview +This page covers customer managed policies in IAM — standalone identity-based policies that you create and manage in your own AWS account, which can be attached to users, groups, and roles to define permissions. + +## Key Concepts +- **Customer managed policies** are standalone policies you create and manage in your own AWS account, attachable to multiple identities (users, groups, roles) +- **Identity-based policies** come in three types: AWS managed policies, customer managed policies, and inline policies +- **AWS managed policies** are created/managed by AWS — you can use but not modify them; typically provide broad admin or read-only permissions +- **Inline policies** are embedded directly into a single user, group, or role — cannot be reused across identities +- **Customer managed policies are preferred** over both inline policies and AWS managed policies for security +- **Least privilege principle**: grant only the permissions required for specific job tasks +- **Policy validation**: AWS auto-validates JSON syntax in the console; IAM Access Analyzer provides deeper checks with actionable recommendations +- Policies can be created via Console, CLI, API, or CloudFormation templates + +## Commands and Syntax +No specific commands on this page — it links out to sub-pages for: +- Creating policies via Console (`access_policies_create-console`) +- Creating policies via AWS CLI (`access_policies_create-cli`) +- Creating policies via AWS API (`access_policies_create-api`) + +## Relationships +- **IAM Access Analyzer** — provides policy validation checks and recommendations for least privilege +- **IAM best practices** — least privilege principle drives preference for customer managed over AWS managed policies +- **CloudFormation** — can manage IAM policies as infrastructure-as-code (`AWS_IAM` resource types) +- **IAM identities** — policies attach to users, groups, and roles +- **AWS managed policies** — contrast point; broader permissions, less granular control + +## Exam-Relevant Points +- Customer managed policies are **reusable** across multiple identities; inline policies are **not** +- Customer managed policies are preferred over inline policies for manageability and over AWS managed policies for least privilege +- AWS managed policies cannot be modified by customers +- Inline policies are deleted when the identity they're attached to is deleted +- IAM Access Analyzer can help refine policies toward least privilege +- Three creation methods: Console, CLI, API (plus CloudFormation) + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-access_policies_generate-policyhtml.md b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_generate-policyhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..34260957e360782c0e412de2fb972926544e09f0 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_generate-policyhtml.md @@ -0,0 +1,82 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_generate-policy.html +source: sources/IAM-latest-UserGuide-access_policies_generate-policyhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:26 + +## Overview +IAM Access Analyzer policy generation creates least-privilege IAM policies by analyzing AWS CloudTrail logs to identify which actions and services an IAM entity (user or role) actually used during a specified time period (up to 90 days). This enables administrators to replace overly broad permissions with fine-grained policies that grant only what is needed. + +## Key Concepts +- **Policy generation process**: Analyzes CloudTrail events → generates policy template → review/customize → create and attach managed policy +- **Service role requirement**: A service role must be created or selected to grant IAM Access Analyzer access to CloudTrail data and service last accessed information +- **Two levels of information returned**: + - **Action-level**: For supported services (e.g., EC2), specific actions are identified from CloudTrail events + - **Service-level**: For other services, uses "last accessed" data to identify recently used services; actions must be manually selected +- **Resource ARN placeholders**: Generated policies include placeholder ARNs for actions supporting resource-level permissions; these must be replaced with actual ARNs +- **Time period**: Up to 90 days; shorter periods generate faster +- **Generated policy availability**: Viewable in IAM console for up to 7 days; only one generated policy at a time +- **`iam:PassRole` is NOT tracked** by CloudTrail and is never included in generated policies +- **Data events not included**: S3 data events and similar are not identified at action level +- **Denied actions ARE reviewed**: CloudTrail events for denied actions are also analyzed +- **S3 standard rates apply** for accessing CloudTrail logs during generation +- **AWS Control Tower trails NOT supported**: Because org logs go to a separate Log Archive account with restricted S3 bucket permissions + +## Commands and Syntax + +**Service role permissions policy (for policy generation):** +```json +{ + "Version": "2012-10-17", + "Statement": [ + { "Effect": "Allow", "Action": "cloudtrail:GetTrail", "Resource": "*" }, + { "Effect": "Allow", "Action": ["iam:GetServiceLastAccessedDetails", "iam:GenerateServiceLastAccessedDetails"], "Resource": "*" }, + { "Effect": "Allow", "Action": ["s3:GetObject", "s3:ListBucket"], "Resource": ["arn:aws:s3:::BUCKET", "arn:aws:s3:::BUCKET/*"] } + ] +} +``` + +**Service role trust policy:** +```json +{ + "Version": "2012-10-17", + "Statement": [ + { "Effect": "Allow", "Principal": { "Service": "access-analyzer.amazonaws.com" }, "Action": "sts:AssumeRole" } + ] +} +``` + +**User permissions for subsequent policy generation:** +- `iam:GetRole` and `iam:PassRole` on the service role +- `access-analyzer:CancelPolicyGeneration`, `GetGeneratedPolicy`, `ListPolicyGenerations`, `StartPolicyGeneration` +- `cloudtrail:ListTrails` (console only) + +**Cross-account setup**: When CloudTrail logs are in a different account (e.g., Organizations trail), requires: +1. Service role in source account with access to the bucket in the central account +2. S3 bucket policy in the central account granting access, using `aws:PrincipalOrgID` and `aws:PrincipalArn` conditions +3. KMS key policy update if logs are encrypted + +## Relationships +- **CloudTrail**: Source data — must have a trail enabled and logging to S3 +- **IAM last accessed information**: Used for service-level granularity when action-level data isn't available +- **S3**: Stores CloudTrail logs; standard S3 rates apply for access +- **AWS Organizations**: Cross-account policy generation uses org trails; `aws:PrincipalOrgID` condition key is used in bucket policies +- **AWS KMS**: If CloudTrail logs are encrypted, KMS key policy must grant Access Analyzer decrypt permissions +- **IAM Access Analyzer quotas**: Policy generation has specific quotas documented separately +- **AWS Control Tower**: Explicitly NOT compatible with policy generation + +## Exam-Relevant Points +- Policy generation analyzes up to **90 days** of CloudTrail activity +- `iam:PassRole` is **never included** in generated policies (not tracked by CloudTrail) +- **Data events** (e.g., S3 object-level operations) are not identified at action level +- Generated policies are available for **7 days** in the console; only **one at a time** +- A **service role** with trust to `access-analyzer.amazonaws.com` is required +- The service role needs `cloudtrail:GetTrail`, `iam:GetServiceLastAccessedDetails`, `iam:GenerateServiceLastAccessedDetails`, and S3 read access to the trail bucket +- **Denied actions are included** in the analysis (not filtered out) +- Cross-account generation requires both a role and an S3 bucket policy with org-scoped conditions +- For cross-account S3 buckets, **Object Ownership** must be set to "Bucket owner enforced" or "Bucket owner preferred" +- AWS Control Tower trails are **not supported** for policy generation + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-access_policies_identity-vs-resourcehtml.md b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_identity-vs-resourcehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ec3e436e3120b329536c2437bb451d430583fdbd --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_identity-vs-resourcehtml.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html +source: sources/IAM-latest-UserGuide-access_policies_identity-vs-resourcehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:27 + + + +## Overview + +This page explains the two fundamental types of AWS permissions policies: **identity-based policies** (attached to IAM users, groups, or roles) and **resource-based policies** (attached directly to resources like S3 buckets or DynamoDB tables). It covers how they differ, how they interact during policy evaluation within and across accounts, and clarifies the distinction from resource-level permissions. + +## Key Concepts + +- **Identity-based policies** are attached to IAM users, groups, or roles and define what actions that identity can perform +- **Resource-based policies** are attached directly to a resource and specify who can access it and what they can do +- Identity-based policies can be **managed or inline**; resource-based policies are **inline only** +- **Resource-based policies ≠ resource-level permissions** — resource-level permissions refer to using ARNs to specify individual resources within any policy +- An explicit **Deny always overrides an Allow** regardless of where the Deny appears +- **Same-account evaluation**: identity-based and resource-based policies are evaluated together; if either grants Allow (and nothing Denies), access is permitted +- **Cross-account evaluation**: both the requester's identity-based policy AND the resource's resource-based policy must Allow the action — policies in **both** accounts are required +- Zhang example demonstrates that a principal with **no identity-based policy** can still access resources via resource-based policies alone (within the same account) +- Amazon S3 bucket policies are resource-based policies; S3 also has ACLs as a separate mechanism independent of IAM +- IAM Access Analyzer can identify whether principals outside your zone of trust can assume your roles + +## Commands and Syntax + +No CLI commands on this page. The concepts apply to JSON policy documents attached via: +- `aws iam put-user-policy` / `attach-user-policy` (identity-based) +- `aws s3api put-bucket-policy` (resource-based, S3) +- `aws sqs set-queue-attributes` (resource-based, SQS) +- `aws dynamodb put-resource-policy` (resource-based, DynamoDB) + +## Relationships + +- **Policy evaluation logic** — governs how identity-based and resource-based policies combine (Deny overrides Allow) +- **Cross-account access** — requires policies in both accounts; ties to STS role assumption patterns +- **Managed vs. inline policies** — identity-based policies can be either; resource-based are always inline +- **IAM Access Analyzer** — detects external access granted through resource-based policies +- **Services that support resource-based policies** — not all services do; see the IAM service compatibility matrix +- **S3 ACLs** — a third, separate permission mechanism specific to S3 + +## Exam-Relevant Points + +- **Same account**: an Allow in *either* an identity-based or resource-based policy is sufficient (unless explicitly Denied) +- **Cross account**: Allow must exist in *both* accounts' policies — this is the critical distinction from same-account evaluation +- **Explicit Deny always wins** over any Allow, in any policy type +- Resource-based policies are **always inline**, never managed +- A principal with **no identity-based policy** can still access resources if the resource-based policy grants access (same account only) +- **Resource-based policies vs. resource-level permissions** is a common exam trap — they are different concepts +- S3 has three permission mechanisms: identity-based policies, bucket policies (resource-based), and ACLs + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-access_policies_last-accessedhtml.md b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_last-accessedhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1fa78bd63e5c30ff6d92d1dd1742f58d3552977a --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_last-accessedhtml.md @@ -0,0 +1,94 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_last-accessed.html +source: sources/IAM-latest-UserGuide-access_policies_last-accessedhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:27 + + + +## Overview + +This page explains how to use IAM last accessed information to identify unused permissions and refine IAM policies toward least privilege. It covers two types of last accessed data (service-level and action-level), how this works with both IAM identities and AWS Organizations entities, required permissions to generate and view reports, and regional tracking availability. + +## Key Concepts + +- **Last accessed information** tracks when IAM identities (users, roles, groups) or Organizations entities last attempted to access AWS services/actions — used to identify and remove unused permissions. +- **Two types of information**: service last accessed (which services were accessed) and action last accessed (which specific management actions were used). +- **Action last accessed** only covers **management/control plane actions** — no data plane events are tracked. +- **`iam:PassRole`** is **not tracked** and excluded from action last accessed information. +- **Attempts reported** include both successful and denied API calls — an unexpected entry does not indicate compromise. Use CloudTrail for authoritative access logs. +- **Recent activity** appears in the IAM console within **4 hours**. +- **Tracking period**: service info ≥ 400 days; action tracking started at different dates per service (S3: Apr 2020, EC2/IAM/Lambda: Apr 2021, all others: May 2023). +- **Report owner**: only the principal that generated the report can view its details; for temporary credentials, generate and retrieve within the same session. +- **IAM policy types included**: only identity-based policies (attached to user/role/group). Excluded: resource-based policies, ACLs, SCPs, permissions boundaries, session policies. +- **Organizations policy types included**: only inherited SCPs. All other policy types excluded. +- **Organizations management account** reports list all AWS services (not limited by SCPs); reports for other entities exclude management account activity. +- **Unused access analyzers** (IAM Access Analyzer) can continuously monitor last accessed information. + +## Commands and Syntax + +**IAM last accessed policy (console + programmatic):** +```json +{ + "Version": "2012-10-17", + "Statement": { + "Effect": "Allow", + "Action": [ + "iam:GenerateServiceLastAccessedDetails", + "iam:Get*", + "iam:List*" + ], + "Resource": "*" + } +} +``` + +**Organizations last accessed policy:** +```json +{ + "Version": "2012-10-17", + "Statement": { + "Effect": "Allow", + "Action": [ + "iam:GenerateOrganizationsAccessReport", + "iam:GetOrganizationsAccessReport", + "organizations:Describe*", + "organizations:List*" + ], + "Resource": "*" + } +} +``` + +**Key API actions:** +- `iam:GenerateServiceLastAccessedDetails` — generate IAM report +- `iam:GetServiceLastAccessedDetails` — retrieve IAM report +- `iam:GetServiceLastAccessedDetailsWithEntities` — retrieve with entity details +- `iam:GenerateOrganizationsAccessReport` — generate Organizations report (supports optional policy ID) +- `iam:GetOrganizationsAccessReport` — retrieve Organizations report + +**Condition key:** `iam:OrganizationsPolicyId` — restrict report generation to a specific SCP. + +## Relationships + +- **Least Privilege Best Practice** — last accessed info is the primary mechanism for operationalizing least privilege. +- **IAM Access Analyzer** — unused access findings automate continuous monitoring of last accessed data. +- **CloudTrail** — authoritative source for API call success/denial; last accessed info includes both successful and denied attempts. +- **AWS Organizations / SCPs** — Organizations last accessed data shows which services SCPs allow and which principals used them; SCPs must be enabled on the org root. +- **Policy Evaluation Logic** — understanding which policy types are included/excluded in reports requires knowledge of IAM policy evaluation order. + +## Exam-Relevant Points + +- Last accessed info includes **both successful and denied** API attempts — not just successful ones. +- **`iam:PassRole` is not tracked** in action last accessed information. +- Action last accessed covers **management events only** (no data plane). +- Only **identity-based policies** are reflected in IAM last accessed reports; resource-based policies, permissions boundaries, SCPs, ACLs, and session policies are **excluded**. +- Organizations last accessed data requires signing in with **management account credentials** and **SCPs must be enabled**. +- Activity takes up to **4 hours** to appear in reports. +- Tracking period is **at least 400 days** for service information. +- The condition key `iam:OrganizationsPolicyId` can scope Organizations report generation to a specific policy. +- For temporary/assumed-role credentials, the report must be generated **and retrieved in the same session**. + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-access_policies_manage-edithtml.md b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_manage-edithtml.md new file mode 100644 index 0000000000000000000000000000000000000000..58e7b28bf0181277ee3e3ea01df8e2247c92ccd0 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_manage-edithtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-edit.html +source: sources/IAM-latest-UserGuide-access_policies_manage-edithtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:27 + + + +## Overview +This page covers how to edit IAM policies in AWS, explaining the types of policies (AWS managed, customer managed, and inline), which can be edited, and best practices for policy management including least privilege principles. + +## Key Concepts +- **Identity-based policies** are attached to principals (IAM users, groups, or roles) and define their permissions +- **Three types of identity-based policies**: AWS managed policies, customer managed policies, and inline policies +- **AWS managed policies cannot be edited** — only customer managed and inline policies can be modified +- **Customer managed policies are preferred** over inline policies (reusable across identities) and over AWS managed policies (more granular control) +- **Inline policies** are embedded directly in an identity and cannot be reused on other identities +- IAM resources are subject to **account-level quotas** (number and size limits) +- **Policy validation** is available: IAM checks JSON syntax, IAM Access Analyzer provides deeper policy checks with actionable recommendations +- **Least privilege** is the recommended security approach — grant only permissions required for specific job tasks + +## Commands and Syntax +Policies can be edited via three interfaces: +- **AWS Management Console** — GUI-based editing with automatic JSON syntax validation +- **AWS CLI** — command-line editing +- **AWS API** — programmatic editing +- **CloudFormation templates** — can also add/update IAM policies + +## Relationships +- **IAM Access Analyzer** — provides policy validation and refinement recommendations +- **IAM policy validation** — automatic syntax and security checks during create/edit +- **Managed vs. inline policies** — different lifecycle and reuse characteristics +- **IAM best practices** — least privilege principle governs policy design +- **CloudFormation** — alternative infrastructure-as-code approach to managing IAM policies +- **IAM quotas** — constrain number and size of policies per account + +## Exam-Relevant Points +- **AWS managed policies cannot be edited** — this is a common exam distinction +- **Customer managed > inline > AWS managed** is the general preference ordering for custom permissions +- **Inline policies cannot be reused** across identities — they exist only on the identity where they're created +- **Least privilege** is the recommended approach and a recurring exam theme +- **IAM Access Analyzer** provides policy validation beyond basic JSON syntax checking +- Know that policies are **JSON documents** stored in AWS and attached to principals + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-access_policies_managed-vs-inlinehtml.md b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_managed-vs-inlinehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..93d85b14a23c644ef5ea48ce4aab893f9187fb0c --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-access_policies_managed-vs-inlinehtml.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_managed-vs-inline.html +source: sources/IAM-latest-UserGuide-access_policies_managed-vs-inlinehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:28 + + + +## Overview + +This page explains the three types of IAM identity-based policies: AWS managed policies, customer managed policies, and inline policies. It covers when to use each type, their management characteristics, and how they attach to IAM principals (users, groups, and roles). + +## Key Concepts + +- **AWS managed policies**: Standalone policies created/administered by AWS with their own ARN (e.g., `arn:aws:iam::aws:policy/IAMReadOnlyAccess`). Cannot be modified by customers. AWS updates them automatically when new services launch. +- **Customer managed policies**: Standalone policies you create in your own account. Fully customizable and updatable. Have their own ARN including the policy name. +- **Inline policies**: Embedded directly in a single IAM identity (user, group, or role). Strict one-to-one relationship — deleted when the identity is deleted. Even if two roles have identical inline policies, each has its own independent copy. +- **Standalone policy**: A policy with its own ARN, independent of any identity (both AWS managed and customer managed are standalone). +- AWS managed policy categories: + - **Full access** (e.g., `AmazonDynamoDBFullAccess`, `IAMFullAccess`) + - **Power-user** — full service access but no user/group management (e.g., `AWSCodeCommitPowerUser`) + - **Partial-access** — specific access levels, no permissions management (e.g., `AmazonEC2ReadOnlyAccess`) + - **Job function** — aligned to IT roles, maintained by AWS (e.g., `AdministratorAccess`, `PowerUserAccess`) +- A single managed policy (AWS or customer) can be attached to multiple principals across different accounts. +- Best practice for creating customer managed policies: start by copying an existing AWS managed policy, then customize. + +## Commands and Syntax + +No CLI commands on this page. Key ARN pattern: +``` +arn:aws:iam::aws:policy/ +``` + +## Relationships + +- **Identity-based policies** — all three types are identity-based (attach to users, groups, roles) +- **IAM ARNs** — managed policies have their own ARNs; inline policies do not +- **Job function policies** — a specific subset of AWS managed policies mapped to common IT roles +- **Permissions management** — partial-access policies explicitly exclude this access level +- Related pages: choosing managed vs inline, converting inline to managed, deprecated AWS managed policies + +## Exam-Relevant Points + +- AWS managed policies **cannot** be modified by customers; customer managed and inline policies **can** be modified. +- Inline policies are deleted when the associated identity is deleted; managed policies persist independently. +- `AdministratorAccess` should only be used for account administrators; `PowerUserAccess` gives full access except limited IAM/Organizations access. +- When AWS updates a managed policy, the change applies to **all** principals the policy is attached to. +- A managed policy can be attached to principals in **different AWS accounts**; an inline policy applies to exactly **one** identity. +- AWS recommends managed policies over inline policies in most cases — inline is appropriate only when the policy must apply to exactly one entity. + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-access_policieshtml.md b/entries/2026/03/11/IAM-latest-UserGuide-access_policieshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..66e7194d1491107530d4c94948c0649b302f351f --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-access_policieshtml.md @@ -0,0 +1,90 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html +source: sources/IAM-latest-UserGuide-access_policieshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:28 + +## Overview + +This page covers AWS IAM policies and permissions — the core mechanism for managing access in AWS. It explains the seven policy types (identity-based, resource-based, permissions boundaries, SCPs, RCPs, ACLs, and session policies), JSON policy document structure, the principle of least privilege, and how policies are evaluated when a principal makes a request. + +## Key Concepts + +- **Policy**: An object in AWS that, when associated with an identity or resource, defines permissions. Most are stored as JSON documents. +- **Seven policy types** (most to least frequently used): + 1. **Identity-based policies** — attached to users, groups, or roles; grant permissions to an identity + 2. **Resource-based policies** — inline policies attached to resources (e.g., S3 bucket policies, IAM role trust policies); always inline, never managed + 3. **Permissions boundaries** — managed policy that sets *maximum* permissions an identity-based policy can grant; does not grant permissions itself + 4. **SCPs (Service Control Policies)** — Organizations-level; set maximum permissions for accounts/OUs; limit but do not grant permissions; affect root user + 5. **RCPs (Resource Control Policies)** — Organizations-level; set maximum permissions for *resources* across accounts; affect root user + 6. **ACLs** — cross-account only; the only policy type that does NOT use JSON format (S3, WAF, VPC support them) + 7. **Session policies** — passed when assuming a role or creating federated session; limit but do not grant permissions +- **Managed vs. Inline policies**: + - **AWS managed** — created/managed by AWS + - **Customer managed** — created/managed by you; more precise control + - **Inline** — embedded directly in a single user, group, or role; deleted when identity is deleted +- **Explicit deny always wins** — overrides any allow in any policy type +- **Root user**: Cannot have identity-based policies or permissions boundaries attached; IS affected by SCPs, RCPs, resource-based policies, and ACLs +- **Cross-account access** via resource-based policy requires BOTH a resource-based policy on the resource AND an identity-based policy on the principal (unless they're in the same account) +- **Session policy evaluation**: permissions = intersection of (identity-based policy ∩ session policy). Resource-based policies behave differently depending on whether they reference the entity ARN vs. the session ARN +- **Permissions boundary + resource-based policy**: boundary does NOT limit permissions from resource-based policies that specify the session ARN + +## Commands and Syntax + +**JSON policy document structure elements:** +- `Version` — use `"2012-10-17"` (latest) +- `Statement` — container; multiple statements evaluated with logical OR +- `Sid` — optional statement identifier +- `Effect` — `"Allow"` or `"Deny"` +- `Principal` — required in resource-based policies; who is allowed/denied +- `Action` — list of API actions +- `Resource` — ARN(s) the actions apply to +- `Condition` — optional; circumstances under which policy applies + +**Example identity-based policy:** +```json +{ + "Version": "2012-10-17", + "Statement": { + "Effect": "Allow", + "Action": "s3:ListBucket", + "Resource": "arn:aws:s3:::amzn-s3-demo-bucket" + } +} +``` + +**Example with MFA condition:** +```json +"Condition": {"Bool": {"aws:MultiFactorAuthPresent": "true"}} +``` + +**Session policy APIs:** `AssumeRole`, `AssumeRoleWithSAML`, `AssumeRoleWithWebIdentity` (pass via `Policy` or `PolicyArns` parameters); `GetFederationToken` for federated users. + +## Relationships + +- **IAM Access Analyzer** — validates policies, generates policies from CloudTrail activity, checks for overly permissive access +- **AWS Organizations** — SCPs and RCPs are Organizations-level policies +- **AWS CloudTrail** — used by IAM Access Analyzer for policy generation based on actual access patterns +- **Amazon S3** — primary example of resource-based policies (bucket policies) and ACLs +- **AWS STS** — session policies are passed through STS API operations +- **IAM roles** — unique in being both an identity (identity-based policies) and a resource (trust policy) +- **Policy evaluation logic** — multiple policies/statements combined with logical OR; explicit deny always overrides + +## Exam-Relevant Points + +- **Explicit deny overrides everything** — in any policy type +- **ACLs are the only non-JSON policy type**; they only work cross-account +- **SCPs and RCPs do NOT grant permissions** — they only restrict; you still need identity-based or resource-based policies to grant access +- **Permissions boundaries do NOT limit resource-based policies** that specify the session ARN +- **Root user cannot have identity-based policies or permissions boundaries** but IS affected by SCPs and RCPs +- **Resource-based policies in same account** don't require an additional identity-based policy; cross-account requires both +- **Session policies** are the intersection with identity-based policies (they filter down, never add permissions) +- **Resource-based policy referencing session ARN vs. entity ARN** produces different effective permissions — session ARN bypasses session policy limits +- **Least privilege tools**: access level groupings (List/Read/Write/Permissions management/Tagging), IAM Access Analyzer validation (100+ checks), policy generation from CloudTrail, last accessed information +- **Multiple statements** in a policy are evaluated with logical OR; multiple policies also combined with OR +- **Policy version** should always be `"2012-10-17"` +- **Inline policies are deleted** when the associated identity is deleted; managed policies persist independently + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-best-practiceshtml.md b/entries/2026/03/11/IAM-latest-UserGuide-best-practiceshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..87305e6fe066b05244acc96d5331a86ecdab0650 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-best-practiceshtml.md @@ -0,0 +1,61 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html +source: sources/IAM-latest-UserGuide-best-practiceshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:29 + +## Overview + +This page describes AWS's recommended security best practices for Identity and Access Management (IAM), covering 14 key practices organized around credential management, least-privilege access, monitoring/auditing, and multi-account governance. These practices form the foundation of AWS security posture and are central to the Shared Responsibility Model. + +## Key Concepts + +- **Federation over IAM users**: Human users should access AWS through an identity provider (IdP) using temporary credentials, not long-lived IAM user credentials. AWS IAM Identity Center is the recommended centralized access management solution. +- **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 (X.509 certs), `AssumeRoleWithSAML`, `AssumeRoleWithWebIdentity`, or IoT Core MTLS. +- **MFA required**: Multi-factor authentication should be enforced for IAM users and root users. IAM Identity Center has its own MFA capabilities. +- **Long-term credentials are exceptions**: Access keys should only exist for cases where roles are impossible (WordPress plugins, third-party clients not supporting IAM Identity Center, CodeCommit SSH/Git credentials, Amazon Keyspaces Cassandra compatibility). +- **Root user protection**: Root credentials must be safeguarded; follow root user best practices. +- **Least-privilege permissions**: Grant only permissions required for a task — define actions on specific resources under specific conditions. +- **AWS managed policies as starting point**: Use AWS managed policies initially, then refine to customer managed policies for least privilege. +- **IAM Access Analyzer — policy generation**: Generates fine-grained policies based on actual access activity logged in CloudTrail. +- **IAM Access Analyzer — policy validation**: Provides 100+ policy checks and recommendations to ensure policies are secure and functional. +- **IAM Access Analyzer — public/cross-account access**: Continuously monitors and generates findings for resources that allow public or cross-account access; supports previewing access changes before deployment. +- **Last accessed information**: Use IAM last accessed data to identify and remove unused users, roles, permissions, policies, and credentials. +- **Policy conditions**: Use `Condition` elements to restrict access further (e.g., require TLS, restrict to specific calling services like CloudFormation). +- **Service Control Policies (SCPs)**: Organization-level guardrails controlling what principals *can* do across accounts. Do NOT grant permissions — only restrict. +- **Resource Control Policies (RCPs)**: Organization-level guardrails controlling access to AWS resources across the organization. Also do NOT grant permissions. +- **Permissions boundaries**: Managed policies that set the *maximum* permissions an identity-based policy can grant to an IAM role. Used to delegate permissions management safely (e.g., to developers). Do not grant permissions on their own. + +## Commands and Syntax + +No CLI commands are described directly. Key API/service references: + +- `AssumeRoleWithSAML` — STS API for SAML-based temporary credentials +- `AssumeRoleWithWebIdentity` — STS API for OIDC/JWT-based temporary credentials +- **IAM Roles Anywhere** — uses X.509 certificates from PKI for off-AWS workloads +- **git-remote-codecommit** — utility for CodeCommit access with rotating credentials + +## Relationships + +- **IAM Identity Center**: Centralized federation and access management — the preferred entry point for human users +- **AWS Organizations**: Required for SCPs and RCPs; enables multi-account permissions guardrails +- **CloudTrail**: Feeds access activity data to IAM Access Analyzer for policy generation +- **IAM Access Analyzer**: Three distinct use cases — policy generation (least-privilege), policy validation (correctness), and access analysis (public/cross-account findings) +- **AWS STS**: Underlying service for all temporary credential mechanisms (AssumeRole variants) +- **IAM Roles Anywhere / ECS Anywhere / EKS Hybrid Nodes / SSM Hybrid Activations**: Mechanisms for delivering temporary credentials to workloads running outside AWS +- **Permissions boundaries vs SCPs vs RCPs**: Three different restriction mechanisms at different scopes (entity-level, organization-principal-level, organization-resource-level) — none grant permissions + +## Exam-Relevant Points + +- **SCPs and RCPs do NOT grant permissions** — they only set maximum permission boundaries. Identity-based or resource-based policies are still required to grant access. +- **Permissions boundaries do NOT grant permissions** — they cap what identity-based policies can grant to a role. +- **IAM Access Analyzer has three functions**: policy generation from CloudTrail activity, policy validation (100+ checks), and public/cross-account access findings. +- **Temporary credentials are always preferred** over long-term credentials. Know the specific exceptions: WordPress plugins, third-party clients, CodeCommit, Amazon Keyspaces. +- **IAM Roles Anywhere** is the solution for on-premises workloads needing temporary AWS credentials via X.509 certificates. +- **Federation via IAM Identity Center** is the recommended approach for human access — not IAM users with passwords/access keys. +- **Last accessed information** is the mechanism for auditing and removing unused permissions and credentials. +- **Policy conditions** can enforce requirements like TLS (`aws:SecureTransport`) or restrict actions to specific calling services. + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-cloudtrail-integrationhtml.md b/entries/2026/03/11/IAM-latest-UserGuide-cloudtrail-integrationhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d300a9191479eff6a676396d790b0ca6b6a9eebf --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-cloudtrail-integrationhtml.md @@ -0,0 +1,61 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html +source: sources/IAM-latest-UserGuide-cloudtrail-integrationhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:29 + + + +## Overview +This page documents how IAM and AWS STS API calls are logged by AWS CloudTrail. It covers what gets logged (API calls, sign-in events, federated access), how cross-account role assumptions appear in logs across both accounts, the structure of CloudTrail log entries for IAM/STS events, and the role trust policy behavior that affects logging. + +## Key Concepts +- **CloudTrail is enabled by default** on all AWS accounts — no setup needed for basic event history +- **All IAM and STS actions are logged** by CloudTrail, including console and programmatic API calls +- **Non-authenticated STS requests** for `AssumeRoleWithSAML` and `AssumeRoleWithWebIdentity` are also logged; other non-authenticated requests may not be logged if insufficiently valid +- **Cross-account AssumeRole**: logged in both the caller's account and the target account, but **denied requests are NOT logged in the target account** +- **Sign-in failures with incorrect usernames** are masked as `HIDDEN_DUE_TO_SECURITY_REASONS` to prevent sensitive data leakage (e.g., passwords typed in username field) +- **MFA information** is included in CloudTrail logs — `mfaAuthenticated: true/false` appears in `sessionContext.attributes` +- **Source identity** (`sts:SourceIdentity`) persists through role chaining and cannot be changed once set +- **Session tags** can be passed via STS API calls or SAML/OIDC assertions; transitive tags persist through role chains +- **Read-only classification**: `AssumeRole`, `AssumeRoleWithSAML`, `AssumeRoleWithWebIdentity` are logged as `readOnly: true` but still include full `responseElements` (except `secretAccessKey`) +- `AssumeRoot`, `GetFederationToken`, `GetSessionToken` are logged as `readOnly: false` +- **OIDC provider verification method** is logged in `additionalEventData.identityProviderConnectionVerificationMethod` — value is either `IAMTrustStore` or `Thumbprint` + +## Commands and Syntax +No CLI commands specific to this page, but relevant CloudTrail log fields include: + +- `userIdentity.type` — `IAMUser`, `AssumedRole`, `SAMLUser`, `AWSAccount`, `Root` +- `userIdentity.sessionContext.sessionIssuer` — original role/user that created the session +- `userIdentity.sessionContext.sourceIdentity` — tracks the original human identity through role chains +- `requestParameters.sourceIdentity` — set during AssumeRole calls +- `requestParameters.tags` / `principalTags` — session tags passed in +- `requestParameters.transitiveTagKeys` — tags that persist through role chaining +- `sharedEventID` — links the same cross-account event across both accounts' CloudTrail logs +- `responseElements.credentials.accessKeyId` — temporary credential issued (secretAccessKey excluded) + +## Relationships +- **CloudTrail** — the underlying logging service; IAM/STS events are management events +- **IAM Roles & Role Chaining** — CloudTrail logs each hop in a role chain with the original `sourceIdentity` preserved +- **SAML/OIDC Federation** — federated sign-ins produce STS log entries with identity provider details +- **S3** — CloudTrail delivers log files to S3 buckets for long-term storage +- **CloudWatch Logs** — CloudTrail can send events to CloudWatch for real-time monitoring/alerting +- **SNS** — notifications can be configured for CloudTrail log file delivery +- **Session Tags** — logged in CloudTrail and carry through role chains when marked transitive +- **IAM Condition Keys** — `sts:SourceIdentity` and `sts:RoleSessionName` are enforceable in trust policies and visible in logs + +## Exam-Relevant Points +- **Cross-account AssumeRole denied requests are NOT logged in the target account** — only the source account sees the denial +- **Incorrect username sign-in failures show `HIDDEN_DUE_TO_SECURITY_REASONS`** — not the actual entered text +- **`AssumeRole` is classified as `readOnly: true`** despite generating credentials — but `responseElements` are still included (minus `secretAccessKey`) +- **`GetSessionToken` and `GetFederationToken` are `readOnly: false`** +- **Source identity is immutable once set** — cannot be changed during role chaining; attempts are denied +- **CloudTrail logs for AssumeRole appear in both accounts** with a shared `sharedEventID` +- **User identity type differs by account**: caller's account shows `IAMUser`, target account shows `AWSAccount` with just account number +- **All IAM and STS actions are logged** — there are no unlogged IAM/STS API operations +- **Trails apply to all regions by default** when created via console +- **MFA status is tracked** in `sessionContext.attributes.mfaAuthenticated` for assumed roles + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-enable-virt-mfa-for-roothtml.md b/entries/2026/03/11/IAM-latest-UserGuide-enable-virt-mfa-for-roothtml.md new file mode 100644 index 0000000000000000000000000000000000000000..95c1813ab7084f2bc2dca0ad3e72411fa8e92ea6 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-enable-virt-mfa-for-roothtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/enable-virt-mfa-for-root.html +source: sources/IAM-latest-UserGuide-enable-virt-mfa-for-roothtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:30 + + + +## Overview +This page describes the step-by-step process for enabling a virtual MFA (Multi-Factor Authentication) device on an AWS root user account using the AWS Management Console. It covers the console wizard workflow, QR code configuration, and important caveats around device backup and TOTP synchronization. + +## Key Concepts +- **Virtual MFA device**: A software-based authenticator app (e.g., Google Authenticator, Authy) that generates time-based one-time passwords (TOTP) +- You **must be signed in as root** to configure MFA for the root user — no other principal can do this +- The QR code / secret key is **tied to the specific AWS account** and cannot be used with a different account, but can be reused to configure a new MFA device for the same account +- You can register up to **8 MFA devices** of any combination of supported types per root user or IAM user +- TOTP codes expire after a short period — submitting codes too slowly can cause the device to associate but be **out of sync** +- If you lose all MFA devices and have no backup, you must **contact AWS customer service** to remove MFA protection + +## Commands and Syntax +This is a console-only procedure (no CLI commands). The steps are: + +1. Sign in to AWS Console with root credentials +2. Navigate: **Account name → Security credentials** +3. In **Multi-Factor Authentication (MFA)** section → **Assign MFA device** +4. Enter a **Device name**, select **Authenticator app**, click **Next** +5. Scan QR code with authenticator app (or manually enter the secret key) +6. Enter two consecutive TOTP codes in **MFA code 1** and **MFA code 2** fields +7. Choose **Add MFA** + +## Relationships +- **IAM root user security** — MFA is a critical control for root account protection (ties to IAM best practices: "enable MFA on root") +- **MFA device recovery** — links to `id_credentials_mfa_lost-or-broken` for recovery procedures +- **MFA resync** — links to `id_credentials_mfa_sync` when TOTP drift occurs +- **Console sign-in** — links to `console_sign-in-mfa` for MFA-enabled login flow +- **IAM best practices** — enabling root MFA is consistently listed as a top security recommendation + +## Exam-Relevant Points +- Root user MFA can **only** be configured while signed in as root — this is a common exam question +- Maximum of **8 MFA devices** per user (root or IAM), any combination of supported types +- Two consecutive TOTP codes are required during setup (not just one) — this validates time synchronization +- The secret key is **account-specific** but **reusable** for re-configuring a replacement device on the same account +- If all MFA devices are lost and no backup exists, the only recourse is **contacting AWS Support** — there is no self-service recovery for root MFA +- TOTP codes can cause **out-of-sync** association if submitted too slowly; resync is possible after the fact + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-id_roles_providershtml.md b/entries/2026/03/11/IAM-latest-UserGuide-id_roles_providershtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9deac9e2601249b864ec7ae918e52fa35f123760 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-id_roles_providershtml.md @@ -0,0 +1,60 @@ +--- +source_url: https://docs.aws.amazon.com//IAM/latest/UserGuide/id_roles_providers.html +source: sources/IAM-latest-UserGuide-id_roles_providershtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:30 + + + +## Overview + +This page covers identity federation in AWS — the practice of using external identity providers (IdPs) to grant users and machines access to AWS resources instead of creating individual IAM users. It describes three federation approaches: IAM Identity Center (for multi-account workforce access), IAM federation (for single-account or machine identities), and Amazon Cognito identity pools (for mobile/web app users). + +## Key Concepts + +- **Identity federation** eliminates the need to create individual IAM users by letting external identity systems authenticate users who then receive temporary AWS credentials +- **Identity Provider (IdP)** — an external system (e.g., Active Directory, Okta, Shibboleth) that manages user identities outside AWS +- **SAML 2.0** — Security Assertion Markup Language; an XML-based protocol for exchanging authentication data between an IdP and AWS +- **OIDC** — OpenID Connect; connects non-AWS applications (e.g., GitHub Actions) to AWS resources +- **IAM Identity Center** — the recommended approach for managing human user access across multiple AWS accounts in an Organization +- **IAM federation** — direct SAML 2.0 or OIDC federation for single-account, short-term/small-scale human user deployments or machine identities +- **Amazon Cognito identity pools** — federation for mobile/web app end users; uses `AssumeRoleWithWebIdentity` to acquire temporary IAM credentials +- **Workload identity** — machine identities (EC2 instances, Lambda functions) that need AWS access; use IAM roles with temporary credentials +- **IAM Roles Anywhere** — enables machines running outside AWS to assume IAM roles +- **Federated principal attributes** — user attributes (cost center, title, locale) passed from IdPs to AWS for attribute-based access control (ABAC) +- Long-term credentials (access keys) should **not** be distributed or embedded; federation provides short-term credentials instead + +## Commands and Syntax + +No CLI commands on this page. Key API reference: + +- **`AssumeRoleWithWebIdentity`** — STS API used by Cognito identity pools to acquire temporary session credentials +- Identity provider entity creation in IAM establishes a trust relationship between an AWS account and an external IdP + +## Relationships + +| Related Topic | Connection | +|---|---| +| **IAM Roles** | Federation relies on roles for temporary credential delivery | +| **IAM Identity Center (SSO)** | Preferred federation path for multi-account organizations | +| **Amazon Cognito** | Federation path for consumer-facing app users | +| **AWS STS** | Underlying service that issues temporary credentials for federated sessions | +| **IAM Roles Anywhere** | Extends role-based access to machines outside AWS | +| **AWS Organizations** | Required for IAM Identity Center multi-account federation | +| **ABAC (Attribute-Based Access Control)** | Federated attributes enable fine-grained permission policies | + +## Exam-Relevant Points + +- **IAM Identity Center is the recommended approach** for managing workforce (human) access across multiple accounts — not IAM federation +- **IAM federation** (direct SAML/OIDC in IAM) is appropriate only for **single standalone accounts** or **machine identities** +- **Amazon Cognito identity pools** are the correct choice when mobile/web apps need IAM credentials for end users +- Cognito identity pools use **`AssumeRoleWithWebIdentity`** under the hood +- IAM Identity Center supports **SAML 2.0**, **Managed Active Directory**, and its **own directory** as identity sources +- IAM federation supports passing **user attributes from IdPs** for attribute-based access control +- **IAM Roles Anywhere** is the solution for machines **outside AWS** that need to assume IAM roles +- Federation avoids distributing **long-term security credentials** (access keys) — a security best practice +- Know the decision matrix: Identity Center = multi-account workforce; IAM federation = single account/machines; Cognito = app users + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-id_roleshtml.md b/entries/2026/03/11/IAM-latest-UserGuide-id_roleshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5e1a35f0d394c4374b032cfb55326f817d020caa --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-id_roleshtml.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html +source: sources/IAM-latest-UserGuide-id_roleshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:30 + +## Overview + +IAM roles are AWS identities with permission policies that, unlike IAM users, are not tied to a specific person and do not have long-term credentials. Instead, roles provide temporary security credentials when assumed, enabling delegation of access to users, applications, or services—including cross-account access, federated users, and AWS service operations. + +## Key Concepts + +- **IAM Role**: An identity with permissions that is *assumable* by anyone who needs it; provides temporary credentials (not passwords or access keys) +- **Trust Policy**: A required resource-based JSON policy attached to a role defining *who* (which principals) can assume it +- **Permissions Policy**: An identity-based policy defining *what* the role can do (actions and resources) +- **Service Role**: An IAM role assumed by an AWS service to perform actions on your behalf; IAM admins can create/modify/delete +- **Service-Linked Role**: A special service role owned by the AWS service; IAM admins can view but **not edit** permissions; related resources must be deleted before the role can be deleted +- **Role Chaining**: Using one assumed role to assume a second role; **limits session to 1 hour maximum** regardless of individual role session duration settings +- **Delegation**: Granting access between a trusting account (owns resource) and trusted account (has users) via a role with both a trust policy and permissions policy +- **External ID**: Additional parameter for secure cross-account role assumption between organizations +- **Principals that can assume roles**: IAM users (same or other account), other IAM roles, service principals, SAML 2.0/OIDC federated users +- **Permissions Boundary**: Limits maximum permissions an identity-based policy can grant to a role; **cannot** be applied to service-linked roles +- Trust policies **cannot** use wildcard (`*`) as part of an ARN in the Principal element + +## Commands and Syntax + +- **AssumeRole API**: `DurationSeconds` parameter accepts up to 43200 seconds (12 hours) for direct assumption, but **fails if >3600 seconds (1 hour) when role chaining** +- **Session tags**: Can be set as *transitive* to propagate through all subsequent sessions in a role chain +- **Console**: Switch roles via the AWS Management Console role-switching feature + +## Relationships + +- **IAM Users vs Roles**: Roles preferred; IAM users only for cases where federation is unsupported (WordPress plugins, third-party clients, CodeCommit SSH/service-specific credentials, Amazon Keyspaces, emergency access) +- **STS**: Roles rely on AWS STS for temporary credential issuance +- **Identity Federation**: SAML 2.0 and OIDC providers integrate with roles to grant federated users temporary AWS access +- **Cross-Account Access**: Roles are the primary mechanism; some services (S3, Glacier, SNS, SQS) also support resource-based policies as an alternative +- **IAM Identity Center**: Recommended over IAM users for workforce identity management +- **Service-Linked Roles**: Documented per-service in the "AWS services that work with IAM" reference + +## Exam-Relevant Points + +- **Role chaining limits sessions to 1 hour** — this overrides any configured maximum session duration +- Roles provide **temporary credentials**, not long-term; this is the fundamental difference from IAM users +- **Trust policy wildcards**: Cannot use `*` as part of an ARN in the Principal element +- **Service-linked roles** cannot have their permissions edited by IAM admins and require dependent resource deletion before the role can be deleted +- IAM users should only be created for specific use cases: workloads that can't use roles, third-party clients without IdC support, CodeCommit SSH access, Amazon Keyspaces testing, and **emergency/break-glass access** +- Cross-account delegation requires **both** a trust policy on the role (trusting account) **and** a permissions policy on the user (trusted account) +- When assuming a role, the user **temporarily gives up their own permissions** and takes on the role's permissions +- Normal `AssumeRole` supports up to **12 hours**; role chaining caps at **1 hour** + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-id_root-userhtml.md b/entries/2026/03/11/IAM-latest-UserGuide-id_root-userhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b4822cdcf3b6d2d31b1ac09d51f95aa93e97ce52 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-id_root-userhtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_root-user.html +source: sources/IAM-latest-UserGuide-id_root-userhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:31 + + + +## Overview + +The AWS account root user is the initial identity created with an AWS account, having complete access to all services and resources. AWS strongly recommends against using the root user for everyday tasks, instead reserving it only for the specific tasks that require root-level permissions. Organizations can centrally manage root access for member accounts through AWS Organizations. + +## Key Concepts + +- **Root user** — the identity created when you first set up an AWS account, authenticated with the email address and password used during account creation +- **Principle of least privilege** — root user should only be used for tasks that explicitly require root credentials; daily work should use IAM Identity Center administrative users +- **MFA enforcement** — MFA is enforced for root users by default, but requires customer action to configure during account creation or at sign-in prompt +- **Centralized root access** — AWS Organizations feature that lets management accounts remove root credentials from member accounts and perform privileged tasks centrally +- **Root credential removal** — member account root passwords, access keys, signing certificates, and MFA can all be deleted; new Organizations member accounts have no root credentials by default +- **Account recovery** — management account or delegated administrator can enable password recovery for a member account's root user when needed + +## Commands and Syntax + +No CLI commands on this page. Key procedures referenced: +- **Centralize root access**: Enable through IAM → centralize root access for member accounts in Organizations +- **Perform privileged tasks**: Management account or delegated admin can perform root-required actions on member accounts via `Perform a privileged task` workflow +- **Allow password recovery**: Privileged action performed by Organizations management account to re-enable root sign-in for a member account + +## Relationships + +- **IAM Identity Center** — recommended for creating administrative users for daily tasks instead of root +- **AWS Organizations** — enables centralized root access management across member accounts +- **S3 / SQS** — root or centralized privileged actions can fix misconfigured deny-all policies on buckets/queues +- **AWS KMS** — root user phone number used for key recovery authorization via Support +- **Billing & Cost Management** — some billing tasks (activating IAM billing access, viewing certain tax invoices) require root +- **CloudTrail / EventBridge** — recommended for monitoring root user activity + +## Exam-Relevant Points + +- Root user is the **only** identity that can: change account settings (email, password, access keys) for standalone accounts, close standalone accounts, restore revoked IAM admin permissions, activate IAM billing console access, register as a Reserved Instance Marketplace seller, configure S3 MFA Delete, sign up for GovCloud +- New member accounts created in Organizations **have no root credentials by default** when centralized root access is enabled +- Centralized privileged tasks include: removing root credentials, fixing deny-all S3 bucket policies, fixing deny-all SQS queue policies +- MFA for root is **enforced by default** but requires customer action to actually add the MFA device +- Account name, contact info, alternate contacts, payment currency, and Region settings do **not** require root — only email address, root password, and root access keys do (for standalone accounts) +- Organizations management accounts and delegated admins can close member accounts and update root email without root credentials +- Root user credentials should be deleted after completing any task that temporarily required root access recovery + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-id_usershtml.md b/entries/2026/03/11/IAM-latest-UserGuide-id_usershtml.md new file mode 100644 index 0000000000000000000000000000000000000000..967040a6224956c62a572d422ee27400952e1b02 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-id_usershtml.md @@ -0,0 +1,69 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users.html +source: sources/IAM-latest-UserGuide-id_usershtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:31 + + + +## Overview +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 now recommend using federation with an identity provider and temporary credentials instead of IAM users with long-term credentials, reserving IAM users for specific use cases not supported by federated users. + +## Key Concepts +- **IAM user** — an entity in an AWS account consisting of a name and credentials; represents a person or workload +- **IAM user ≠ root user** — an IAM user with administrator permissions is distinct from the AWS account root user +- **Three identifiers** for each IAM user: + - **Friendly name** — human-readable name (e.g., `Richard`); appears in ARNs, so avoid PII + - **ARN** — globally unique identifier, e.g., `arn:aws:iam::account-ID-without-hyphens:user/Richard` + - **Unique ID** — returned only via API/CLI/PowerShell, not visible in console +- **Default permissions** — a new IAM user has **no permissions** by default; permissions must be explicitly granted +- **One account** — each IAM user belongs to exactly one AWS account; all activity is billed to that account +- **Permissions boundary** — an advanced feature using AWS managed policies to cap the maximum permissions an identity-based policy can grant to a user or role +- **Service accounts** — IAM users can represent applications; never embed access keys in application code; prefer IAM roles with temporary credentials + +## Credential Types +| Credential | Purpose | +|---|---| +| **Console password** | Sign in to AWS Management Console; can also be used for CLI/SDK via `aws login` (requires `SignInLocalDevelopmentAccess` policy) | +| **Access keys** | Programmatic access (CLI, API, SDKs); prefer more secure alternatives | +| **SSH keys** | Authentication with CodeCommit | +| **Server certificates** | SSL/TLS for services in regions where ACM is unavailable; prefer ACM otherwise | + +- A new IAM user created via CLI/API has **no credentials by default**; you must explicitly create them +- Disabling a password prevents console sign-in but does not change permissions or prevent assuming a role + +## Commands and Syntax +- No specific CLI commands detailed, but references: + - Creating IAM users and attaching permissions + - Managing passwords and access keys + - Generating and downloading **credential reports** (lists all IAM users and credential status) + - Finding unused passwords and access keys + +## Relationships +- **Root user** (`id_root-user`) — IAM admin user is not the root user +- **IAM policies** (`access_policies`) — permissions and permissions boundaries +- **MFA** (`id_credentials_mfa`) — best practice to require for all IAM users +- **Access keys** (`id_credentials_access-keys`) — programmatic access management +- **IAM roles** — preferred over IAM users for temporary credentials / service accounts +- **Federation** — recommended over IAM users for human access +- **ACM** — preferred over IAM server certificates for SSL/TLS +- **CodeCommit** — SSH key credential type +- **IAM quotas** (`reference_iam-quotas`) — limits on number/size of IAM resources + +## Exam-Relevant Points +- New IAM users have **zero permissions** by default +- New IAM users created via API/CLI have **no credentials** by default +- IAM users are associated with **exactly one** AWS account +- IAM admin user is **not** the same as the root user +- Best practice: use **federation + temporary credentials** instead of IAM users for human access +- Best practice: enable **MFA for all IAM users** +- Best practice: use **IAM roles** (temporary credentials) instead of long-term access keys for applications +- **Never embed access keys** in application code +- Disabling an IAM user's console password does **not** revoke their ability to assume a role +- **Credential reports** can be generated to audit all IAM users and their credential status +- **Permissions boundaries** limit the maximum permissions that identity-based policies can grant +- Console password credentials can now also authenticate CLI/SDK access via `aws login` + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-intro-structurehtml.md b/entries/2026/03/11/IAM-latest-UserGuide-intro-structurehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c717eb50b29cb714e40551d925ef810c99e6e3e4 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-intro-structurehtml.md @@ -0,0 +1,58 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/intro-structure.html +source: sources/IAM-latest-UserGuide-intro-structurehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:32 + + + +## Overview + +This page explains the end-to-end flow of how IAM works: a principal authenticates with credentials, IAM evaluates authorization policies against the request context, and if approved, the principal can perform actions on AWS resources. It covers the components of a request, authentication methods for different principal types, and the policy evaluation logic that determines whether access is granted or denied. + +## Key Concepts + +- **Principal** — The person or application using an entity (user or role) to send a request; includes associated permission policies. +- **Request context** — AWS gathers actions, resources, principal info, environment data (IP, timestamp, SSL status), and resource data into a request context for evaluation. +- **Authentication** — Verifying identity via credentials before any authorization occurs. +- **Authorization** — Evaluating applicable policies against the request context to allow or deny access. +- **Explicit deny overrides everything** — A deny in any policy trumps all allows. +- **Default deny** — All requests are denied by default unless explicitly allowed (exception: root user credentials for account resources). +- **Explicit allow** — An allow in an identity-based or resource-based policy overrides the default deny. +- **Implicit deny from policy boundaries** — SCPs, RCPs, permissions boundaries, and session policies must all allow the request or it is implicitly denied, even if an identity-based policy allows it. +- **Cross-account access** requires both the remote account's resource-based policy and the requesting entity's identity-based policy to allow the action. + +## Commands and Syntax + +No CLI commands on this page, but the policy evaluation order is critical: + +1. **Default deny** (all requests start denied) +2. **Explicit allow** in identity-based or resource-based policy overrides default deny +3. **SCP / RCP / permissions boundary / session policy** — if any exist, they must all allow; otherwise implicit deny +4. **Explicit deny** in any policy overrides all allows + +## Relationships + +- **IAM Users and Roles** (`id_users`, `id_roles`) — the entities that act as principals +- **Policy types** (`access_policies`) — identity-based, resource-based, SCPs, RCPs, permissions boundaries, session policies +- **Policy evaluation logic** (`reference_policies_evaluation-logic`) — detailed evaluation rules +- **Condition keys and operators** (`reference_policies_elements_condition_operators`) — controlling when policy statements take effect +- **AWS Organizations SCPs/RCPs** — external authorization constraints on IAM +- **MFA** (`id_credentials_mfa`) — recommended for all users +- **AWS STS** — provides temporary credentials and federated access +- **IAM Identity Center** — modern federated and directory-based authentication + +## Exam-Relevant Points + +- **Deny evaluation order**: explicit deny > SCP/RCP/boundary/session implicit deny > explicit allow > default deny. +- **Root user** credentials are always allowed for resources in the account (general rule). +- **Cross-account access** requires policies on both sides (requesting account + resource account). +- **Anonymous access** is only supported by specific services (e.g., S3, STS) — it is the exception. +- **Request components**: actions, resources, principal, environment data, resource data. +- **Four authentication methods**: root user (email+password), federated principal (external IdP), IAM Identity Center directory user, IAM user (account ID + username + password, or access key + secret key). +- **AWS recommends MFA for all users**. +- **Permissions boundaries, SCPs, and session policies** act as guardrails — they cannot grant access, only limit it. All must allow for the request to succeed. + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-introduction_identity-managementhtml.md b/entries/2026/03/11/IAM-latest-UserGuide-introduction_identity-managementhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b3fd33c09b32db06c2e7e91211dbcc08a097a595 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-introduction_identity-managementhtml.md @@ -0,0 +1,58 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_identity-management.html +source: sources/IAM-latest-UserGuide-introduction_identity-managementhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:32 + +## Overview + +This page compares the different identity types in AWS IAM — IAM users, IAM roles, IAM groups, and the root user — and explains how they relate to IAM Identity Center (SSO) users and federated identities. It covers terminology (resource, entity, identity, principal), recommends temporary credentials over long-term ones, and describes the various methods for granting user access to AWS resources. + +## Key Concepts + +- **IAM Resource**: IAM users, groups, roles, permission policies, and identity-provider objects — manageable via the console. +- **IAM Entity**: Resources used for authentication (IAM users and IAM roles only). Can be specified as a Principal in resource-based policies. +- **IAM Identity**: Resources authorized in policies to perform actions — IAM users, groups, and roles. +- **Principal**: Any entity (root user, IAM user, IAM role) that can make requests. Includes human users, workloads, federated principals, and assumed roles. +- **Root user** is a principal but is neither an IAM entity nor an IAM identity. It cannot be restricted by identity or resource-based IAM policies. +- **IAM users** have long-term credentials (passwords, access keys). Primary use case: workloads that cannot use IAM roles. +- **IAM Identity Center users** automatically assume IAM roles on sign-in, receiving temporary credentials. This is the recommended approach for workforce users. +- **Federated principals** (SAML 2.0, OIDC) assume IAM roles to get temporary credentials. +- **Centralized root access**: Organizations feature to remove/prevent long-term root credentials for member accounts at scale. +- Best practice: require all human users and workloads to use **temporary credentials** via IAM roles. + +## Commands and Syntax + +No CLI commands on this page, but key procedural guidance: + +- **IAM Identity Center setup**: Configure identity store or federate with external IdP → users get short-term credentials via AWS access portal. +- **Federation with corporate directory**: SAML 2.0-compatible → configure SSO directly. Non-SAML → build identity broker application. Active Directory → use IAM Identity Center or AWS Directory Service. +- **Internet identity federation** (Login with Amazon, Facebook, Google, OIDC): Use Amazon Cognito as the recommended intermediary. +- **Programmatic access patterns**: + - IAM Identity Center users → use named profiles or environment variables + - IAM users → access key ID + secret access key (prefer temporary via STS) + - Federated principals → call AWS STS API to get session with temporary credentials + +## Relationships + +- **IAM Identity Center** — preferred alternative to IAM users for human access; integrates with external IdPs (Okta, Microsoft Entra, Active Directory). +- **AWS Organizations** — enables centralized root access management for member accounts. +- **AWS STS** — issues temporary security credentials for roles, federated users, and cross-account access. +- **Amazon Cognito** — recommended for web/mobile apps using internet identity federation (OIDC providers). +- **IAM Roles** — the central mechanism connecting all access patterns: cross-account access, federation, Identity Center sign-in. +- **Resource-based policies** — alternative to roles for cross-account access in some services. + +## Exam-Relevant Points + +- **Root user cannot be restricted** by identity-based or resource-based IAM policies — unique among all principal types. +- IAM **groups are identities but not entities and not principals** — they cannot be specified as a Principal in policies. +- IAM users and roles are entities; IAM users, roles, and groups are identities; only users and roles are principals (along with root). +- **IAM Identity Center users assume IAM roles automatically**; IAM users must explicitly switch roles. +- Long-term credentials (IAM users) are recommended **only** when: workloads can't use roles, third-party clients need access keys, service-specific credentials (CodeCommit, Keyspaces), or IAM Identity Center is unavailable. +- **Federation**: SAML 2.0 for corporate directories, OIDC for internet identities, Amazon Cognito recommended for web/mobile apps. +- Cross-account access: **roles are the primary mechanism**, but some services support resource-based policies attached directly to resources. +- Temporary credentials consist of three parts: access key ID, secret access key, and session token (with expiration). + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-introductionhtml.md b/entries/2026/03/11/IAM-latest-UserGuide-introductionhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5c0d06dc29b2bde5be6253ad46a4e785dfa4e2f3 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-introductionhtml.md @@ -0,0 +1,40 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html +source: sources/IAM-latest-UserGuide-introductionhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:32 + + + +## Overview +AWS Identity and Access Management (IAM) is a free web service that controls authentication (who can sign in) and authorization (what permissions they have) for AWS resources. It provides the foundational infrastructure for managing access across all AWS services. + +## Key Concepts +- **IAM** controls both **authentication** (identity verification) and **authorization** (permission grants) +- **Root user** — the initial identity created with an AWS account; has complete access to all services and resources +- **Principals** — entities that can make requests: IAM users, federated users (via AWS STS), IAM roles, or applications +- **Identities** — users set up beyond root: administrators, analysts, developers, etc. +- **Eventually consistent** — IAM replicates data across multiple global data centers; changes (creating/updating users, groups, roles, policies) may not be immediately visible +- **Authorization flow**: sign-in credentials → authenticate as principal → request access → policies evaluated → access granted/denied +- **Cross-account access** — authorization requests can come from principals in trusted external AWS accounts + +## Commands and Syntax +No CLI commands on this page — it is a conceptual overview. + +## Relationships +- **AWS STS** — provides temporary security credentials for federated principals; offered at no additional charge alongside IAM +- **IAM Identity Center** — related identity service, also free +- **IAM Access Analyzer** — external access analysis is free; unused access analysis and custom policy checks incur charges +- **All AWS services** — IAM integrates with virtually every AWS service (see `reference_aws-services-that-work-with-iam`) +- **EC2, S3, and others** — examples of resources principals can act on once authorized + +## Exam-Relevant Points +- IAM, IAM Identity Center, and AWS STS are **free** — you only pay for the AWS resources accessed through them +- **Never use root user for everyday tasks** — strong AWS recommendation +- IAM is **eventually consistent** — do not put IAM changes in critical, high-availability code paths; make them in initialization/setup routines and verify propagation before depending on them +- IAM Access Analyzer: external access analysis = free; unused access analysis and custom policy checks = paid +- Authentication and authorization are **distinct steps**: authenticate first, then authorize per-request against policies + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-reference_aws-services-that-work-with-iamhtml.md b/entries/2026/03/11/IAM-latest-UserGuide-reference_aws-services-that-work-with-iamhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..6cb6189cd28360de3bb8881c4ac5580d04b7489d --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-reference_aws-services-that-work-with-iamhtml.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-services-that-work-with-iam.html +source: sources/IAM-latest-UserGuide-reference_aws-services-that-work-with-iamhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:33 + +## Overview +This page provides a comprehensive reference table of all AWS services and their IAM feature support, including whether each service supports individual actions, resource-level permissions, resource-based policies, attribute-based access control (ABAC via tags), temporary credentials, and service-linked roles. + +## Key Concepts +- **Actions**: Whether a service allows specifying individual actions in IAM policies (vs. requiring `*` wildcard in the `Action` element) +- **Resource-level permissions**: Whether you can use ARNs to target specific resources in policies; "Partial" means only some resource types support ARNs +- **Resource-based policies**: Policies attached directly to a resource containing a `Principal` element to specify who can access it +- **ABAC (Attribute-Based Access Control)**: Tag-based authorization using condition keys `aws:ResourceTag/key-name`, `aws:RequestTag/key-name`, and `aws:TagKeys`; "Yes" = all three keys for all resource types, "Partial" = only some resource types +- **Temporary credentials**: Whether the service works with short-term credentials from IAM Identity Center, role-switching, or AWS STS; "No" means long-term IAM user credentials are required +- **Service-linked roles**: Special service roles that grant a service permission to access resources in other services on your behalf + +## Commands and Syntax +- No CLI commands on this page — it is a reference table +- Key policy elements referenced: + - `Action` element — specify allowed/denied API actions + - `Resource` element — specify target resources via ARN + - `Principal` element — used in resource-based policies + - `Condition` element with tag keys for ABAC: + ```json + "Condition": { + "StringEquals": { + "aws:ResourceTag/Environment": "Production" + } + } + ``` + +## Relationships +- **IAM policy structure**: Connects to policy elements (`Action`, `Resource`, `Condition`, `Principal`) +- **ARNs and identifiers**: Resource-level permissions depend on ARN format per service +- **Identity-based vs. resource-based policies**: Understanding which services support resource-based policies determines cross-account access patterns +- **STS and temporary credentials**: Services that don't support temporary credentials limit use of roles and federation +- **Service-linked roles**: Related to service role creation and delegation patterns +- **ABAC**: Connects to tagging strategies and condition key references + +## Exam-Relevant Points +- **Nearly all AWS services support Actions and Temporary credentials** — exceptions are rare and notable (e.g., Route 53 Domains and Marketplace Commerce Analytics don't support temporary credentials) +- **Resource-based policies are NOT universally supported** — only select services (S3, Lambda, KMS, SNS, SQS, API Gateway, ECR, DynamoDB, Secrets Manager, CloudWatch Logs, etc.) support them +- **"Partial" resource-level permissions** means some actions (typically `List*` actions) cannot target specific resources via ARN +- **ABAC support varies** — "Partial" means tag-based conditions work for some but not all resource types within a service +- **Key services supporting resource-based policies**: S3, Lambda, KMS, SNS, SQS, DynamoDB, ECR, Secrets Manager, API Gateway, EventBridge, CloudWatch Logs, Kinesis Data Streams, OpenSearch Service, AWS Backup +- **IAM itself has "Partial" support** for resource-based policies and temporary credentials — important nuance for exam questions +- **Organizations supports resource-based policies** but does NOT support temporary credentials +- **Service-linked roles** are supported by most major compute/networking services (EC2, ECS, EKS, Lambda [partial], ELB, Auto Scaling) but not by all services +- **DynamoDB supports all six IAM features** (actions, resource-level, resource-based, ABAC, temp creds, SLRs) — making it a fully IAM-integrated service +- **Lambda has "Partial" ABAC and "Partial" service-linked role support** — a common exam distinction + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-reference_aws-signinghtml.md b/entries/2026/03/11/IAM-latest-UserGuide-reference_aws-signinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..29a7eeec628059e5c9bd9bd58e0ae4f863e49289 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-reference_aws-signinghtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html +source: sources/IAM-latest-UserGuide-reference_aws-signinghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:33 + + + +## Overview + +AWS Signature Version 4 (SigV4) is the signing protocol used to authenticate API requests to AWS services. It involves creating a canonical request, calculating a signature using AWS credentials, and attaching it as an Authorization header. An asymmetric variant (SigV4a) extends this to support multi-region signing. SDKs and the CLI handle signing automatically. + +## Key Concepts + +- **SigV4** uses symmetric signing: derives a key scoped to a specific service, region, and date — making each signature region-specific +- **SigV4a** uses asymmetric (ECDSA) signing: derives a public-private keypair from the secret access key, enabling a single signature to be valid across multiple regions +- **String to sign**: constructed from request elements (method, headers, query params) or POST policy +- **Signing key**: produced through a series of chained HMAC calculations (SigV4) or ECDSA key derivation (SigV4a) +- **Verification**: AWS replicates the signing process server-side; matching signatures authenticate the request +- You never send the secret access key itself — only the derived signature +- Temporary security credentials require a session token in addition to access key ID and secret +- Requests must reach AWS within **5 minutes** of the request timestamp (replay protection) +- SigV4 can be expressed as an **HTTP Authorization header** or as **query string parameters** in the URL +- SDKs automatically switch to SigV4a when calling multi-region endpoints (e.g., S3 Multi-Region Access Points) + +## Commands and Syntax + +No CLI commands are described — signing is handled automatically by SDKs/CLI. Manual signing involves three steps: + +1. **Create canonical request** — normalize the HTTP request into a standard form +2. **Calculate signature** — derive a signing key from credentials, then HMAC-sign the string-to-sign +3. **Add Authorization header** — attach the signature to the request + +For SigV4a, the process is similar but produces an ECDSA keypair and uses the private key to sign. + +## Relationships + +- **IAM security credentials** — SigV4 uses access key ID + secret access key (and optionally session token for temporary credentials) +- **S3 Multi-Region Access Points** — primary use case for SigV4a; SDKs auto-switch to asymmetric signing +- **AWS SDKs and CLI** — abstract away the signing process entirely; recommended over manual signing +- **CloudTrail** — signed requests are logged with identity information derived from the signing credentials +- **STS temporary credentials** — require additional session token parameter in signature calculations + +## Exam-Relevant Points + +- SigV4 keys are scoped to **a single service, region, and date** — you must know the destination region +- SigV4a uses **ECDSA** (asymmetric cryptography) and does **not** require region-specific key derivation +- Requests are rejected if they arrive more than **5 minutes** after the timestamp (anti-replay) +- Signing protects three things: **requester identity**, **data integrity in transit**, and **replay prevention** +- SDKs/CLI handle signing automatically — manual signing is only needed for unsupported languages or when you need full control over request construction +- SigV4a is required for **multi-region API requests** and is triggered automatically by SDKs when needed +- AWS verifies SigV4a using only the **public key** — the private key never leaves the client + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_condition-keyshtml.md b/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_condition-keyshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..0160d7dbdf57a61d1a3fc2ead915cc5dd46625e4 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_condition-keyshtml.md @@ -0,0 +1,97 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html +source: sources/IAM-latest-UserGuide-reference_policies_condition-keyshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:34 + +## Overview +AWS global condition context keys are variables available in the `Condition` element of IAM JSON policies that allow you to constrain access based on properties of the request context — including who is making the request (principal), from where (network), against what (resource), and how (request metadata). These keys work across all AWS services, unlike service-specific condition keys which only apply to individual services. + +## Key Concepts +- **Three types of condition keys**: Global (work across all services, `aws:` prefix), cross-service (service-prefixed like `ec2:` but usable across services), and service-specific (only work with one service) +- **Not all keys are in every request context** — availability depends on the request type (e.g., `aws:SourceAccount` only present when an AWS service principal calls your resource) +- **`...IfExists` operators** — use when a condition key might not be present; the condition returns `true` if the key is missing, only evaluating when present +- **`ForAllValues` / `ForAnyValue` set operators** — required for multivalued condition keys; must NOT be used with single-valued keys +- **Sensitive condition keys** — keys like `aws:PrincipalAccount`, `aws:PrincipalOrgID`, `aws:SourceAccount`, `aws:SourceVpc`, `aws:SourceVpce`, `aws:ResourceAccount`, `aws:ResourceOrgID`, `aws:VpceAccount`, `aws:VpceOrgID`, `aws:SourceOrgID` should never use wildcards (security risk) +- **Five categories of condition keys**: Principal properties, role session properties, network properties, resource properties, and request properties +- **`aws:PrincipalArn`** — returns the role ARN (not the assuming user's ARN) for IAM roles; use ARN operators, not string operators +- **`aws:PrincipalOrgID`** — simplifies cross-account access by referencing an entire AWS Organization instead of listing all account IDs +- **`aws:PrincipalOrgPaths`** — multivalued key for matching principals within specific OUs; always include the org ID since OU/root IDs are only unique within an org +- **`aws:PrincipalIsAWSService`** — boolean; `true` when an AWS service principal (e.g., `cloudtrail.amazonaws.com`) makes a direct call; `false` for service roles/SLRs or IAM principal credentials +- **`aws:PrincipalTag/tag-key`** — enables attribute-based access control (ABAC) using tags on IAM principals +- **`aws:username`** — only available for IAM users; NOT available for root user, IAM roles, anonymous requests, or IAM Identity Center credentials + +## Commands and Syntax +**IfExists pattern** (handle missing keys gracefully): +```json +"Condition": { + "IpAddressIfExists": {"aws:SourceIp": ["x.x.x.x/x"]}, + "StringEqualsIfExists": {"aws:SourceVpc": ["vpc-xxx"]} +} +``` + +**Restrict by account**: +```json +"Condition": { + "StringNotEquals": { + "aws:PrincipalAccount": ["123456789012"] + } +} +``` + +**Restrict by organization**: +```json +"Condition": {"StringEquals": {"aws:PrincipalOrgID": "o-xxxxxxxxxxx"}} +``` + +**OU path matching** (direct membership): +```json +"Condition": {"ForAnyValue:StringEquals": { + "aws:PrincipalOrgPaths": ["o-a1b2c3d4e5/r-ab12/ou-ab12-11111111/ou-ab12-22222222/"] +}} +``` + +**OU path matching** (including children — requires `StringLike` + wildcard): +```json +"Condition": {"ForAnyValue:StringLike": { + "aws:PrincipalOrgPaths": ["o-a1b2c3d4e5/r-ab12/ou-ab12-11111111/ou-ab12-22222222/*"] +}} +``` + +**Allow AWS service principals while restricting network**: +```json +"Condition": { + "StringNotEqualsIfExists": {"aws:SourceVpc": "vpc-111bbb22"}, + "BoolIfExists": {"aws:PrincipalIsAWSService": "false"} +} +``` + +**ABAC with principal tags**: +```json +"Condition": {"StringEquals": {"aws:PrincipalTag/department": "hr"}} +``` + +## Relationships +- **IAM Policy Language** — condition keys are used in the `Condition` element of IAM policies (identity-based, resource-based, SCPs) +- **AWS Organizations** — `aws:PrincipalOrgID`, `aws:PrincipalOrgPaths`, `aws:ResourceOrgID`, `aws:SourceOrgID` integrate with Organizations for org-wide policies +- **SCPs** — `aws:PrincipalArn` can specify root user ARN in SCPs to restrict root user actions +- **ABAC** — `aws:PrincipalTag`, `aws:ResourceTag`, `aws:RequestTag` enable tag-based access control +- **VPC Endpoints** — `aws:SourceVpc`, `aws:SourceVpce`, `aws:VpcSourceIp` enforce network perimeter controls +- **Service-linked roles** — `aws:PrincipalIsAWSService` distinguishes direct service principal calls from calls via SLRs +- **CloudTrail** — `aws:SourceArn`, `aws:SourceAccount` used in resource policies to allow service delivery + +## Exam-Relevant Points +- **`aws:PrincipalArn` returns the role ARN, NOT the assumed-role session ARN** — this is a common exam trap +- **`aws:PrincipalOrgID` automatically includes new accounts** added to the organization — no manual policy updates needed +- **`aws:PrincipalIsAWSService` is `false`** when a service uses a service role or SLR — it's only `true` for direct service principal calls +- **Sensitive condition keys must never use wildcards** — `aws:PrincipalAccount`, `aws:SourceVpc`, `aws:SourceVpce`, etc. +- **Use `...IfExists` operators** when condition keys might not be present to avoid unintended policy evaluation failures +- **`ForAnyValue`/`ForAllValues` are only for multivalued keys** — using them with single-valued keys is incorrect +- **`aws:PrincipalOrgPaths` is multivalued**; `aws:PrincipalOrgID` is single-valued — different operators required +- **OU IDs are NOT globally unique** (only unique within an org) — always include the org ID in path conditions +- **`aws:username` is NOT available for IAM roles, root user, or Identity Center** — only for IAM users +- **ARN operators should be used instead of string operators** when comparing ARNs in `aws:PrincipalArn` + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_condition_operatorshtml.md b/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_condition_operatorshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..23240419c8abe60e006d870c6d7bebb5c95a8d5a --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_condition_operatorshtml.md @@ -0,0 +1,113 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html +source: sources/IAM-latest-UserGuide-reference_policies_elements_condition_operatorshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:34 + +## Overview +This page documents the condition operators available for use in the `Condition` element of IAM JSON policies. Condition operators compare condition keys against values in the request context to control access. They are grouped into categories: String, Numeric, Date, Boolean, Binary, IP Address, ARN, IfExists, and Null check — each with specific matching behavior and support for policy variables and wildcards. + +## Key Concepts + +- **Missing key behavior**: If a condition key is **not present** in the request context, the condition evaluates to **false** (no match). Exception: negated operators like `StringNotLike` / `ArnNotLike` evaluate to **true** when the key is absent. The `...IfExists` and `Null` operators have their own key-presence logic. +- **String operators**: `StringEquals`, `StringNotEquals`, `StringEqualsIgnoreCase`, `StringNotEqualsIgnoreCase`, `StringLike` (supports `*` and `?` wildcards), `StringNotLike`. Support policy variables. +- **Numeric operators**: `NumericEquals`, `NumericNotEquals`, `NumericLessThan`, `NumericLessThanEquals`, `NumericGreaterThan`, `NumericGreaterThanEquals`. No policy variables or wildcards. +- **Date operators**: `DateEquals`, `DateNotEquals`, `DateLessThan`, `DateLessThanEquals`, `DateGreaterThan`, `DateGreaterThanEquals`. Use ISO 8601 or epoch time. No policy variables or wildcards. +- **Boolean operator**: `Bool` — matches `true` or `false`. Supports policy variables. +- **Binary operator**: `BinaryEquals` — byte-for-byte comparison using base-64 encoded values. +- **IP Address operators**: `IpAddress`, `NotIpAddress` — compare against IPv4/IPv6 CIDR ranges. Default prefix is `/32` if omitted. +- **ARN operators**: `ArnEquals`/`ArnLike` (behave identically), `ArnNotEquals`/`ArnNotLike` (behave identically). Each colon-delimited ARN component checked separately; wildcards supported. Support policy variables. +- **Set operators for multivalued keys**: `ForAllValues:` (all request values must match at least one policy value) and `ForAnyValue:` (at least one request value must match). Can be combined with String, Bool operators. +- **`...IfExists` modifier**: Evaluates the condition only if the key is present; if absent, the condition evaluates to **true** (passes). +- **`Null` check**: `{"Null": {"key": "true"}}` matches when key is absent; `"false"` matches when key is present. + +## Commands and Syntax + +**Basic condition block structure:** +```json +"Condition": { + "StringEquals": { + "aws:PrincipalTag/job-category": "iamuser-admin" + } +} +``` + +**StringLike with policy variable:** +```json +"Condition": { + "StringLike": { + "s3:prefix": ["home/", "home/${aws:username}/"] + } +} +``` + +**Numeric condition:** +```json +"Condition": {"NumericLessThanEquals": {"s3:max-keys": "10"}} +``` + +**Date condition:** +```json +"Condition": {"DateGreaterThan": {"aws:TokenIssueTime": "2020-01-01T00:00:01Z"}} +``` + +**Boolean condition (deny non-SSL):** +```json +"Condition": {"Bool": {"aws:SecureTransport": "false"}} +``` + +**IP Address with mixed IPv4/IPv6:** +```json +"Condition": {"IpAddress": {"aws:SourceIp": ["203.0.113.0/24", "2001:DB8:1234:5678::/64"]}} +``` + +**ARN condition:** +```json +"Condition": {"ArnEquals": {"aws:SourceArn": "arn:aws:sns:us-east-1:123456789012:TOPIC-ID"}} +``` + +**Set operator with multivalued key:** +```json +"Condition": { + "ForAnyValue:StringEquals": {"aws:TagKeys": "environment"} +} +``` + +**IfExists modifier:** +```json +"Condition": {"StringEqualsIfExists": {"aws:PrincipalTag/role": "admin"}} +``` + +**Null check:** +```json +"Condition": {"Null": {"aws:TokenIssueTime": "true"}} +``` + +## Relationships + +- **Condition element**: Operators are used within the `Condition` block of IAM policy statements +- **Global condition keys** (`aws:SourceIp`, `aws:PrincipalTag`, `aws:SecureTransport`, `aws:TagKeys`, etc.) — determine which operators are valid +- **Service-specific condition keys** (e.g., `s3:prefix`, `s3:max-keys`) — each service defines its own keys +- **Policy variables** (`${aws:username}`) — supported only by String, Boolean, and ARN operators +- **Policy evaluation logic** — conditions interact with Allow/Deny and the overall evaluation chain +- **VPC endpoints** — `aws:SourceIp` is not present when requests go through VPC endpoints +- **Temporary credentials** — `aws:TokenIssueTime` is only present for STS-issued credentials, not long-term access keys +- **Organizations paths** — `aws:ResourceOrgPaths` used with `ForAllValues:StringNotLike` for org-boundary policies + +## Exam-Relevant Points + +- **Missing key = false** for most operators, but **missing key = true** for negated operators (`StringNotLike`, `ArnNotLike`). This is a critical gotcha. +- **`IfExists` returns true when key is absent** — use it to make conditions optional rather than restrictive when the key might not exist. +- **`ArnEquals` and `ArnLike` are identical** in behavior (both support wildcards). Same for `ArnNotEquals`/`ArnNotLike`. +- **`StringLike` requires explicit wildcards** (`*`, `?`) for partial matches — without them it behaves like `StringEquals`. +- **`aws:SourceIp` does not work through VPC endpoints** and does not work when a service calls another service on your behalf (e.g., CloudFormation calling EC2). +- **`ForAllValues:` with an empty/missing key set evaluates to true** — pair with a `Null` check to prevent unintended access. +- **IP addresses default to /32** if no CIDR prefix is specified. +- **Numeric and Date operators do not support policy variables or wildcards.** +- **`Null` condition check**: `"true"` = key must be absent, `"false"` = key must be present. Commonly used to verify temporary credentials. +- **Multiple conditions in a single block are ANDed** — all must be true for the statement to apply. +- **`ForAnyValue:StringEquals` on `aws:TagKeys`** is case-sensitive — `environment` ≠ `Environment`. + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_conditionhtml.md b/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_conditionhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..35a8f19ad538e1bb78cb738695351570d1287c61 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_conditionhtml.md @@ -0,0 +1,74 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition.html +source: sources/IAM-latest-UserGuide-reference_policies_elements_conditionhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:35 + + + +## Overview +This page documents the IAM JSON policy `Condition` element, which allows policy authors to specify conditions under which a policy statement takes effect. Conditions work by comparing context keys from the request (such as source IP, current time, or resource tags) against specified values using condition operators (equals, less than, string matching, etc.). The Condition element is optional and supports complex expressions with multiple operators and multivalued keys. + +## Key Concepts +- **Condition element** is optional in IAM policies; it controls when a policy statement is in effect +- **Condition syntax**: `"Condition": { "{operator}": { "{context-key}": "{value}" }}` +- **Context keys** come in two types: + - **Global** keys prefixed with `aws:` (e.g., `aws:SourceIP`, `aws:CurrentTime`, `aws:username`) + - **Service-specific** keys prefixed with the service name (e.g., `ec2:InstanceType`, `s3:prefix`) +- **Context key names are NOT case-sensitive** — `aws:SourceIP` and `AWS:SourceIp` are equivalent +- **Context key values ARE case-sensitive** depending on the operator — `StringEquals` is case-sensitive; `StringEqualsIgnoreCase` is not +- **Key-value pair context keys** allow partial key names, e.g., `aws:RequestTag/tag-key`, `aws:ResourceTag/tag-key` +- **Tag key matching is case-insensitive** — `ResourceTag/TagKey1` matches both `TagKey1` and `tagkey1`, which can cause unexpected failures if tags differ only by case +- **Request context** is the collection of properties (principal, action, resource, environment) that AWS gathers when a request is made +- A context key **not present** in the request is considered a **mismatch** (does not match the condition) +- Exception: `ForAllValues` qualifier can return true even when a context key is absent — use the **Null condition operator** with `false` to guard against this +- A Condition block can contain **multiple condition operators**, and each operator can contain **multiple context key-value pairs** + +## Commands and Syntax + +**Basic condition:** +```json +"Condition": { "StringEquals": { "aws:username": "john" } } +``` + +**Case-insensitive string match:** +```json +"Condition": { "StringEqualsIgnoreCase": { "aws:username": "john" } } +``` + +**Using policy variables in conditions:** +```json +"Condition": { "StringLike": { "s3:prefix": ["${aws:username}/*"] } } +``` + +**Numeric comparison (MFA age check):** +```json +"Condition": { "NumericLessThanEquals": { "aws:MultiFactorAuthAge": "3600" } } +``` + +**Resource scoped to current user with variable:** +```json +"Resource": "arn:aws:iam::*:user/${aws:username}" +``` + +## Relationships +- **Condition operators** — detailed in the [Condition operators](reference_policies_elements_condition_operators.html) page (StringEquals, NumericLessThan, DateGreaterThan, ArnLike, IpAddress, Null, etc.) +- **Global condition keys** — defined in [AWS global condition context keys](reference_policies_condition-keys.html) (aws:SourceIp, aws:CurrentTime, aws:PrincipalOrgID, aws:RequestTag, aws:ResourceTag, aws:TagKeys, etc.) +- **Policy variables** — can be used inside condition values (e.g., `${aws:username}`) +- **Multivalued context keys** — require set operators (`ForAllValues`, `ForAnyValue`) covered in the multivalued context keys page +- **Request context** — the runtime data against which conditions are evaluated, described in the request structure page +- **IAM policy evaluation logic** — conditions are one factor in the overall Allow/Deny decision + +## Exam-Relevant Points +- Context key **names** are case-insensitive; context key **values** may be case-sensitive depending on the operator +- A missing context key in the request means the condition **does not match** (evaluates as not present), except with `ForAllValues` which can return true for missing keys +- Use the **Null condition operator** (`{"Null": {"key": "false"}}`) to ensure a context key exists before evaluating +- `ResourceTag/tag-key` matching is case-insensitive on the key name — tags differing only by case can cause unexpected policy behavior +- Best practice: enforce consistent tag naming conventions using `aws:TagKeys` +- Multiple condition operators within one Condition block are evaluated with **logical AND** +- Multiple values for a single key within one operator are evaluated with **logical OR** +- The `aws:MultiFactorAuthAge` key is not present when the request uses access keys (no MFA), so conditions on it won't match for programmatic access without MFA + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_principalhtml.md b/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_principalhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e1d4e317481d0651d3d62c19dc55c710dd68db9a --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_principalhtml.md @@ -0,0 +1,119 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html +source: sources/IAM-latest-UserGuide-reference_policies_elements_principalhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:35 + + + +## Overview + +The `Principal` element in AWS IAM JSON policies specifies **who** is allowed or denied access to a resource. It is used exclusively in **resource-based policies** (such as role trust policies, S3 bucket policies, KMS key policies) — never in identity-based policies, where the principal is implicit. It supports a wide range of principal types including AWS accounts, IAM roles, IAM users, federated identities (OIDC/SAML), AWS services, and anonymous/public access. + +## Key Concepts + +- **Principal element** is required in resource-based policies; cannot be used in identity-based policies +- **Principal types**: AWS accounts, IAM roles, role sessions, IAM users, OIDC federated, SAML federated, AWS STS federated users, AWS services, all principals (wildcard) +- **You cannot specify an IAM group as a principal** — groups relate to permissions, not authentication +- **Wildcards cannot match part of a principal name or ARN** — only full wildcard `"*"` is allowed +- **Multiple principals** are specified as an array and evaluated as logical OR (not AND) +- **Principal ID transformation**: When a role or user ARN is saved in a trust policy, IAM converts it to a unique principal ID. If the role/user is deleted and recreated, the old principal ID breaks — you must re-edit the policy +- **`aws:PrincipalArn` condition key** avoids the principal ID transformation problem; permissions persist through delete/recreate cycles +- **Service principals** follow the format `service-name.amazonaws.com` +- **Opt-in Region service principals** use regionalized format `service-name.{region}.amazonaws.com` for cross-region requests; role trust policies should use the non-regionalized form since IAM resources are global +- **Wildcard `"*"` principal with Allow** grants public/anonymous access — strongly discouraged without restrictive `Condition` elements +- `"Principal": "*"` and `"Principal": {"AWS": "*"}` are equivalent for anonymous access +- **IAM Identity Center principals**: Must use AWS account as principal and reference permission set role ARN in condition block + +## Commands and Syntax + +**AWS account principal:** +```json +"Principal": { "AWS": "arn:aws:iam::123456789012:root" } +"Principal": { "AWS": "123456789012" } +``` + +**IAM role principal:** +```json +"Principal": { "AWS": "arn:aws:iam::AWS-account-ID:role/role-name" } +``` + +**Assumed-role session principal:** +```json +"Principal": { "AWS": "arn:aws:sts::AWS-account-ID:assumed-role/role-name/role-session-name" } +``` + +**IAM user principal:** +```json +"Principal": { "AWS": "arn:aws:iam::AWS-account-ID:user/user-name" } +``` + +**OIDC federated (built-in):** +```json +"Principal": { "Federated": "cognito-identity.amazonaws.com" } +"Principal": { "Federated": "accounts.google.com" } +``` + +**OIDC federated (custom, e.g. GitHub Actions):** +```json +"Principal": { "Federated": "arn:aws:iam::AWS-account-ID:oidc-provider/tokens.actions.githubusercontent.com" } +``` + +**SAML federated:** +```json +"Principal": { "Federated": "arn:aws:iam::AWS-account-ID:saml-provider/provider-name" } +``` + +**AWS service principal:** +```json +"Principal": { "Service": ["ecs.amazonaws.com", "elasticloadbalancing.amazonaws.com"] } +``` + +**Regionalized service principal (opt-in regions):** +```json +"Principal": { "Service": "s3.ap-east-1.amazonaws.com" } +``` + +**All principals (public access):** +```json +"Principal": "*" +``` + +**Deny-all-except pattern (preferred over NotPrincipal):** +```json +{ + "Effect": "Deny", + "Principal": "*", + "Action": "s3:*", + "Condition": { "ArnNotEquals": { "aws:PrincipalArn": "arn:aws:iam::444455556666:user/user-name" } } +} +``` + +## Relationships + +- **Resource-based policies** — Principal is a required element (S3 bucket policies, KMS key policies, SQS policies, SNS policies, role trust policies) +- **Identity-based policies** — Principal is implicit (the attached identity); cannot use Principal element +- **IAM Access Analyzer** — detects external principals with access to your roles/resources +- **AWS STS** — `AssumeRole`, `AssumeRoleWithWebIdentity`, `AssumeRoleWithSAML`, `GetFederationToken` each produce different session principal ARN formats +- **Condition keys** — `aws:PrincipalArn`, `aws:PrincipalOrgID`, etc. provide finer control over principal matching +- **Policy evaluation logic** — role session effective permissions are limited by session policies and permissions boundaries +- **NotPrincipal** — the deny-with-condition pattern using `Principal: "*"` is preferred over `NotPrincipal` + +## Exam-Relevant Points + +1. **Principal element is only for resource-based policies** — never identity-based +2. **IAM groups cannot be principals** — a common exam distractor +3. **Delete/recreate breaks trust policies** — IAM converts ARNs to unique principal IDs; if the entity is deleted, the stored ID becomes orphaned +4. **`aws:PrincipalArn` condition key survives delete/recreate** — avoids the principal ID transformation issue +5. **Wildcard `"*"` = public access** with Allow effect; always pair with Condition elements +6. **Opt-in region cross-region requests require regionalized service principals** (`s3.ap-east-1.amazonaws.com`), but role trust policies should use non-regionalized form +7. **Account ARN (`arn:aws:iam::123456789012:root`) does NOT limit to root user** — it delegates to the entire account +8. **OIDC federated principals only work in role trust policies**, not other policy types +9. **User name in ARN is case-sensitive** +10. **`"Principal": "*"` and `"Principal": {"AWS": "*"}` are equivalent** for anonymous access +11. **Cross-account access** with wildcard still requires identity-based permissions in the other account +12. **Service principal format**: `service-name.amazonaws.com` — cannot use `"Service": "*"` + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_evaluation-logichtml.md b/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_evaluation-logichtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1f9d4bbfd972d5eab98f89eca6e1ab90d7cd7a26 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_evaluation-logichtml.md @@ -0,0 +1,44 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html +source: sources/IAM-latest-UserGuide-reference_policies_evaluation-logichtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:35 + + + +## Overview +This page explains how AWS evaluates multiple policy types to determine whether to allow or deny a request. It covers the three-step evaluation process (authentication, request context processing, and policy evaluation) and details how different policy type combinations interact—specifically identity-based policies with resource-based policies, permissions boundaries, and Organizations SCPs/RCPs. + +## Key Concepts +- **Request evaluation is a three-step process**: Authentication → Request context processing → Policy evaluation +- **Authentication** may be skipped for some services (e.g., S3 anonymous access) +- **Identity-based + Resource-based policies (same account)**: resulting permissions are the **union** — allowed by either policy means allowed +- **Identity-based + Permissions boundaries**: resulting permissions are the **intersection** — must be allowed by both +- **Identity-based + SCPs/RCPs**: resulting permissions are the **intersection** — must be allowed by all three policy types +- **Explicit deny always wins**: An explicit deny in any policy type overrides any allow +- Adding a permissions boundary can **reduce** effective permissions; removing one can **increase** them +- SCPs and RCPs only apply to accounts that are members of an AWS Organization + +## Commands and Syntax +- To check organization membership: requires `organizations:DescribeOrganization` permission +- Contact your AWS Organizations administrator to determine if an SCP or RCP is denying a specific request + +## Relationships +- **Permissions boundaries**: see "Evaluating effective permissions with boundaries" for interaction with other policy types +- **AWS Organizations**: SCPs and RCPs are configured at the organization level and affect member accounts +- **Resource-based policies**: when absent, evaluation falls back to identity-based + SCP/RCP intersection +- **S3**: notable exception where anonymous (unauthenticated) requests are possible + +## Exam-Relevant Points +- **Union vs. Intersection** is the critical distinction: + - Identity + Resource-based = **union** (either can grant access) + - Identity + Permissions boundary = **intersection** (both must allow) + - Identity + SCP/RCP = **intersection** (all must allow) +- **Explicit deny overrides allow** in every combination — this is a universal rule +- Permissions boundaries can only **restrict**, never **expand** effective permissions +- SCPs/RCPs require the action to be allowed by **all three** policy types (identity-based, SCP, and RCP) +- The union behavior of resource-based policies within the same account is a frequently tested distinction from cross-account access patterns + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_examples_dynamodb_attributeshtml.md b/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_examples_dynamodb_attributeshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d6ebe5676394ae4b1ec195e787a0074e6e9f07b5 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_examples_dynamodb_attributeshtml.md @@ -0,0 +1,58 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_examples_dynamodb_attributes.html +source: sources/IAM-latest-UserGuide-reference_policies_examples_dynamodb_attributeshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:36 + + + +## Overview +This page demonstrates how to create an IAM identity-based policy that restricts DynamoDB access to specific attributes (columns) within a table, using condition keys to enforce fine-grained attribute-level access control. + +## Key Concepts +- **Fine-grained access control (FGAC)**: DynamoDB supports restricting access not just at the table level, but at the attribute level within items +- **`dynamodb:Attributes` condition key**: Specifies which attributes the principal is allowed to access; uses `ForAllValues:StringEquals` to ensure only listed attributes can be read/written +- **`dynamodb:Select` condition key**: Prevents API actions from returning attributes outside the allowed set (e.g., from index projections); must be set to `SPECIFIC_ATTRIBUTES` +- **`StringEqualsIfExists`**: The Select condition only applies if the `Select` parameter is provided in the API call — if omitted, the condition is not evaluated +- **`ForAllValues:StringEquals`**: A set operator that requires every value in the request's attribute list to be present in the policy's allowed list + +## Commands and Syntax +IAM policy restricting to specific DynamoDB attributes: +```json +{ + "Version": "2012-10-17", + "Statement": [{ + "Effect": "Allow", + "Action": [ + "dynamodb:GetItem", "dynamodb:BatchGetItem", "dynamodb:Query", + "dynamodb:PutItem", "dynamodb:UpdateItem", "dynamodb:DeleteItem", + "dynamodb:BatchWriteItem" + ], + "Resource": ["arn:aws:dynamodb:*:*:table/table-name"], + "Condition": { + "ForAllValues:StringEquals": { + "dynamodb:Attributes": ["column-name-1", "column-name-2", "column-name-3"] + }, + "StringEqualsIfExists": {"dynamodb:Select": "SPECIFIC_ATTRIBUTES"} + } + }] +} +``` + +## Relationships +- **IAM policy authoring**: References `access_policies_create` and `access_policies_manage-edit` for policy lifecycle +- **DynamoDB condition keys**: Links to DynamoDB's FGAC condition key documentation (`specifying-conditions`) +- **IAM condition logic**: Relates to multiple conditions within a `Condition` block (all conditions must be true — logical AND) +- **DynamoDB secondary indexes**: The `dynamodb:Select` condition is relevant when querying indexes that may project additional attributes + +## Exam-Relevant Points +- `ForAllValues:StringEquals` on `dynamodb:Attributes` restricts which attributes can be accessed — this is attribute-level (not item-level) access control +- The `dynamodb:Select` condition with `SPECIFIC_ATTRIBUTES` prevents leaking disallowed attributes through index projections +- `StringEqualsIfExists` means the condition is only enforced when the key is present in the request — important nuance for understanding policy evaluation +- Multiple conditions within a single `Condition` block are ANDed together +- This policy covers both read (`GetItem`, `BatchGetItem`, `Query`) and write (`PutItem`, `UpdateItem`, `DeleteItem`, `BatchWriteItem`) operations — the attribute restriction applies to both directions +- The resource ARN `arn:aws:dynamodb:*:*:table/table-name` uses wildcards for region and account, scoping only by table name + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_grammarhtml.md b/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_grammarhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..f4d95b0b645ac5ac49dcbd8cd952c69d0f889087 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-reference_policies_grammarhtml.md @@ -0,0 +1,85 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_grammar.html +source: sources/IAM-latest-UserGuide-reference_policies_grammarhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:36 + + + +## Overview + +This page defines the formal grammar (BNF-style) for AWS IAM JSON policy documents. It specifies the exact structure, required and optional elements, and string value formats that constitute a valid IAM policy, covering both identity-based and resource-based policies. + +## Key Concepts + +- **Policy structure**: A policy is a JSON object containing an optional `Version`, optional `Id`, and a required `Statement` array +- **Version values**: Only two valid values — `"2008-10-17"` and `"2012-10-17"` (these are policy *language* versions, not policy *document* versions) +- **Effect**: Required in every statement; must be exactly `"Allow"` or `"Deny"` +- **Principal vs NotPrincipal**: Principal map keys are `AWS`, `Federated`, `Service`, or `CanonicalUser` +- **Action vs NotAction**: Format is `service:ActionName`; wildcards (`*`, `?`) allowed +- **Resource vs NotResource**: Typically ARNs; wildcards allowed in the resource portion +- **Condition block**: Nested structure — `Condition → condition_type → condition_key → value_list` +- **Policy size limits**: 2,048 to 10,240 characters depending on the entity it's attached to; whitespace excluded from count +- **Block ordering**: Elements within a policy or statement can appear in any order +- **No duplicate keys**: An element (e.g., `Effect`) must not appear twice in the same statement +- **Incomplete ARNs**: In identity-based policies, missing ARN fields are auto-filled with `*` + +## Commands and Syntax + +**Minimal policy structure:** +```json +{ + "Version": "2012-10-17", + "Statement": [{ + "Effect": "Allow", + "Action": "s3:GetObject", + "Resource": "arn:aws:s3:::amzn-s3-demo-bucket/*" + }] +} +``` + +**Action formats:** +```json +"Action": "ec2:StartInstances" +"Action": ["ec2:StartInstances", "ec2:StopInstances"] +"Action": "cloudformation:*" +"Action": ["s3:Get*", "s3:List*"] +``` + +**Condition block:** +```json +"Condition": { + "StringEquals": { + "aws:ResourceTag/purpose": "test" + } +} +``` + +**Sid constraints:** IAM policies allow only alphanumeric `[A-Za-z0-9]` in Sid; other services may differ. + +## Relationships + +- **Policy validation**: IAM performs JSON syntax validation; IAM Access Analyzer provides semantic policy checks +- **Identity-based policies**: Must NOT include `Principal` or `Id` blocks +- **Resource-based policies** (e.g., S3 bucket policies, role trust policies): MUST include `Principal`; MAY include `Id` +- **Condition operators** reference: `reference_policies_elements_condition_operators` +- **Global condition keys** reference: `reference_policies_condition-keys` +- **Policy versioning** (managed policies): Separate concept from the `Version` element — editing a managed policy creates a new version rather than overwriting +- **ARN format**: Connects to IAM identifiers and resource naming conventions + +## Exam-Relevant Points + +- `Version` element (`"2012-10-17"`) is the **policy language version**, not a document revision — distinct from managed policy versioning +- `Effect` is the only **required** element in a statement (along with `Action` and `Resource`) +- `Principal` is **required** in resource-based/trust policies, **prohibited** in identity-based policies +- `Id` is **allowed** only in resource-based policies +- Policy size limits vary: **2,048 chars** (user inline) to **10,240 chars** (managed policy); whitespace excluded +- `CanonicalUser` in principal map is primarily an **S3-specific** construct +- Specifying an incomplete ARN like `arn:aws:sqs` is equivalent to `arn:aws:sqs:*:*:*` — auto-wildcarded +- Wildcard `*` in `Principal` means **everyone/anonymous** — cannot be used for partial matching +- `Sid` in IAM policies: **alphanumeric only** (`A-Z`, `a-z`, `0-9`) +- Single-value arrays can omit brackets: `"Action": "s3:GetObject"` equals `"Action": ["s3:GetObject"]` + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-roles-managingrole-editing-consolehtml.md b/entries/2026/03/11/IAM-latest-UserGuide-roles-managingrole-editing-consolehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c37e2e57798392cd9124cab3731d9af25707b566 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-roles-managingrole-editing-consolehtml.md @@ -0,0 +1,44 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-managingrole-editing-console.html +source: sources/IAM-latest-UserGuide-roles-managingrole-editing-consolehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:36 + + + +## Overview + +This page covers IAM role management operations — granting permissions to assume roles, viewing role access history, generating least-privilege policies, and links to sub-topics covering trust policies, permissions updates, role deletion, and session revocation. + +## Key Concepts + +- **Before a role can be used**, explicit permissions must be granted to the user/application/service to switch to (assume) that role +- **Switch Role permissions** can be granted via policies attached to IAM groups or users +- **Path + RoleName constraint**: When creating roles programmatically, Path can be up to 512 chars and RoleName up to 64 chars, but if using the Console's "Switch Role" feature, combined Path + RoleName must not exceed 64 characters +- **View role access before modifying**: Always review recent service-level activity (last accessed information) before changing role permissions to avoid breaking active usage +- **Policy generation from access activity**: IAM Access Analyzer can review CloudTrail logs and generate a policy template reflecting actual permissions used within a date range — enabling least-privilege refinement + +## Commands and Syntax + +- **AssumeRole API**: `sts:AssumeRole` — programmatic way to assume a role (via SDK, CLI, or direct API call) +- Role switching available via: AWS Console (Switch Role), AWS CLI, Tools for Windows PowerShell, and AssumeRole API + +## Relationships + +- **IAM Access Analyzer** — generates policies based on CloudTrail access logs +- **CloudTrail** — source of access activity data for policy generation +- **STS (Security Token Service)** — provides the `AssumeRole` API +- **Last accessed information** — used to audit role permissions before modification +- Sub-topics: trust policy updates, permissions updates, role settings, service-linked roles, session revocation, instance profile deletion, pass-role permissions + +## Exam-Relevant Points + +- Path + RoleName ≤ 64 characters for Console Switch Role functionality (common gotcha) +- Always review last accessed information before removing role permissions +- IAM Access Analyzer uses CloudTrail logs to generate least-privilege policy templates +- Roles require explicit permission grants before they can be assumed — they are not usable by default +- Service-linked roles have a separate update workflow from regular roles + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-security-audit-guidehtml.md b/entries/2026/03/11/IAM-latest-UserGuide-security-audit-guidehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..acac85f8595f8a8aad5d4ae663f15d3693b2beef --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-security-audit-guidehtml.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/security-audit-guide.html +source: sources/IAM-latest-UserGuide-security-audit-guidehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:37 + +## Overview +This page provides systematic guidelines for auditing AWS security configurations, covering when to perform audits and how to review IAM users, groups, roles, identity providers, mobile apps, and IAM policies to ensure they follow least-privilege principles and current business needs. + +## Key Concepts +- **Security audits should be periodic** and triggered by organizational changes, service changes, software changes, or suspected unauthorized access +- **Three audit principles**: be thorough, don't assume, keep things simple +- **Credential reports** list all IAM users and the status/last-used dates of their passwords, access keys, and MFA devices — use these to identify stale credentials +- **Root access keys** should be removed if not actively needed; use temporary credentials via federation instead +- **Emergency Access user** should be retained even when cleaning up unused credentials +- **Policy privilege escalation risk**: granting `iam:CreatePolicy`, `iam:AttachRolePolicy`, or similar permissions effectively grants full account access — restrict these to trusted identities +- **User permissions are cumulative** across identity-based policies (user/group/role) AND resource-based policies (S3, SQS, SNS, KMS) +- **AWS Security Hub CSPM** can automate IAM security monitoring against compliance frameworks +- **Amazon Cognito** is recommended for mobile app user identity management instead of embedded access keys + +## Commands and Syntax +- `aws iam list-roles` — list all IAM roles for audit +- `aws iam get-account-authorization-details` — find which AWS managed policies are in use +- **IAM Policy Simulator** — test policies attached to users or groups +- **Credential Report** — downloadable report of all IAM user credential status + +**Dangerous IAM permissions to audit** (effectively grant full account control): +- `iam:PutGroupPolicy`, `iam:PutRolePolicy`, `iam:PutUserPolicy` +- `iam:CreatePolicy`, `iam:CreatePolicyVersion` +- `iam:AttachGroupPolicy`, `iam:AttachRolePolicy`, `iam:AttachUserPolicy` + +## Relationships +- **IAM Identity Center (SSO)**: preferred over IAM users for human access via federation +- **Security Hub CSPM**: automated compliance monitoring for IAM configurations +- **Amazon Cognito**: recommended for mobile app authentication with federated identity +- **SAML/OIDC providers**: identity federation entities that need periodic metadata refresh +- **Resource-based policies** (S3, SQS, SNS, KMS): must be reviewed alongside identity-based policies for complete permission picture +- **`iam:PassRole`**: critical to scope when granting EC2 launch permissions + +## Exam-Relevant Points +- Root access keys should be removed; use federation with temporary credentials instead +- A user's effective permissions combine identity-based AND resource-based policies +- The ability to create and attach IAM policies is equivalent to full account access — these permissions must be tightly controlled +- `iam:PassRole` should explicitly list allowed roles, not use wildcards +- Wildcard `*` in Action/Resource is acceptable for: admin-level policies, grouped similar actions (e.g., `Describe*`), resource path scoping, or services that don't support resource-level permissions +- Credential reports show last-used timestamps for passwords and access keys — key for identifying unused credentials +- Policies should be attached to groups/roles, not individual users +- `GetAccountAuthorizationDetails` API identifies which managed policies are actually in use +- Mobile apps must never embed access keys (even encrypted); use temporary credentials via Cognito or STS + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-security-credshtml.md b/entries/2026/03/11/IAM-latest-UserGuide-security-credshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..89f9194b0ff2abae0a2d6fbf754cfa0124b1f84b --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-security-credshtml.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds.html +source: sources/IAM-latest-UserGuide-security-credshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:37 + + + +## Overview + +This page covers the types of AWS security credentials used for authentication and authorization, the different user types in AWS, and the distinction between long-term and temporary credentials. It provides security best practices for managing credentials across AWS accounts. + +## Key Concepts + +- **Security credentials** authenticate who you are and authorize whether you have permission to access requested resources. +- **Four user types** in AWS: + - **Root user (account owner)** — created with the account, has full access + - **IAM Identity Center users** — managed in AWS IAM Identity Center + - **Federated principals** — external identity provider users granted temporary access + - **IAM users** — individual users created within IAM +- **Long-term credentials** — used by root users, IAM users, and access keys; do not expire +- **Temporary credentials** — used by IAM roles, IAM Identity Center users, and STS federated principals; expire after a defined period +- Temporary credentials are generated dynamically, not stored with the user, and can be renewed if the requester still has permissions +- You **cannot** use IAM policies to deny root user access — only an **Organizations SCP** can limit root user permissions +- **Centralized root access management** in AWS Organizations can remove and prevent long-term root credential recovery across member accounts + +## Commands and Syntax + +No CLI commands on this page. Key procedures referenced: +- Manage access keys, change passwords, enable MFA (links to related pages) +- Centrally manage root access for member accounts via AWS Organizations +- Reset root password requires access to the account's associated email address + +## Relationships + +- **IAM Roles & STS** — temporary credentials are the mechanism underlying roles and identity federation +- **AWS Organizations / SCPs** — the only mechanism to restrict root user permissions +- **IAM Identity Center** — the recommended approach for managing human user access +- **IAM Policies** — control what actions users/roles can perform on which resources +- **MFA** — additional security layer recommended for root and all IAM users +- **Amazon S3** — used as an example of resource-level access control + +## Exam-Relevant Points + +- Root user **cannot** be restricted by IAM policies — only by **SCPs** in AWS Organizations +- Temporary credentials are **strongly recommended** over long-term credentials (IAM users and access keys) +- Temporary credentials can last from **a few minutes to several hours** +- Temporary credentials **cannot be reused** after expiration +- Root user should only be used for **tasks that require root user credentials** — not everyday tasks +- First task after account creation: **grant another user administrative permissions** to minimize root usage +- Lost root password recovery requires access to the **account email address** +- Security credentials are **account-specific** — separate credentials per account +- To revoke permissions, **modify or delete policies** — don't change the identity directly + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-troubleshoothtml.md b/entries/2026/03/11/IAM-latest-UserGuide-troubleshoothtml.md new file mode 100644 index 0000000000000000000000000000000000000000..29e398cf73c8baef4d8ec1bef4b784a74cc4e9fd --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-troubleshoothtml.md @@ -0,0 +1,65 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot.html +source: sources/IAM-latest-UserGuide-troubleshoothtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:37 + + + +## Overview + +This page serves as the central troubleshooting hub for AWS IAM, covering common issues users encounter including sign-in problems, lost access keys, policy variable failures, eventual consistency delays, virtual MFA device errors, and secure IAM user creation workflows. It also links out to specialized troubleshooting pages for access denied errors, root user issues, IAM policies, passkeys/FIDO, roles, EC2/S3 integration, and SAML federation. + +## Key Concepts + +- **Access keys have two parts**: the access key ID (visible in console) and the secret access key (shown only once at creation, cannot be retrieved later) +- **Lost secret access key**: must delete the key pair and create a new one; there is no recovery mechanism +- **Maximum access keys limit**: you must delete an existing pair before creating a new one if at the limit +- **Policy variables require `"Version": "2012-10-17"`** — without this, variables are treated as literal strings, not substituted +- **`Version` policy element vs. policy version**: the element defines the policy language version; a policy version is created when you modify a customer managed policy (IAM keeps multiple versions) +- **Eventual consistency**: IAM uses a distributed model; changes (users, groups, roles, policies, ABAC tags) are not instantly visible across all endpoints due to replication and caching +- **Design recommendation**: do not put IAM changes in critical/high-availability code paths; use separate initialization routines and verify propagation before depending on changes +- **Orphaned virtual MFA devices**: cancelling MFA assignment midway creates an unassigned virtual MFA device that blocks future assignment; must be deleted via CLI/API, not by editing policies + +## Commands and Syntax + +**List virtual MFA devices:** +```bash +aws iam list-virtual-mfa-devices +``` + +**Delete an unassigned virtual MFA device:** +```bash +aws iam delete-virtual-mfa-device --serial-number arn:aws:iam::123456789012:mfa/Diego +``` + +**Secure user creation workflow:** +1. Create user in console with generated password and "must change password" enabled +2. Do NOT add permissions until after first sign-in +3. Send password via secure channel; send sign-in URL and username separately +4. Add permissions only after user confirms successful sign-in +5. Add MFA-required policy for credential self-management + +## Relationships + +- **IAM policies** → policy variables, Version element, managed policy versioning +- **Eventual consistency** → affects DynamoDB, EC2, S3, EMR, Redshift +- **CloudTrail** → primary tool for auditing IAM API calls and troubleshooting access issues +- **IAM Identity Center (SSO)** → recommended alternative to creating IAM users +- **MFA** → virtual MFA device lifecycle, FIDO/passkey troubleshooting (separate page) +- Links to specialized troubleshooting: access denied errors, root user, policies, roles, EC2 integration, S3 integration, SAML federation + +## Exam-Relevant Points + +- Secret access keys **cannot be recovered** — if lost, you must create a new key pair +- Policy variables **only work** with `"Version": "2012-10-17"` — this is a common exam trap +- Policy variable characters are **case-sensitive** +- IAM is **eventually consistent** — changes may not be immediately visible globally +- The `iam:DeleteVirtualMFADevice` error with "explicit deny" is caused by an **orphaned/unassigned MFA device**, not a permissions problem — fix via CLI/API deletion, not policy changes +- AWS recommends **not granting permissions** to new IAM users until after their first sign-in and password change +- AWS recommends **IAM Identity Center** over direct IAM user creation for employee access +- CloudTrail is the primary tool for tracking IAM API activity and troubleshooting + diff --git a/entries/2026/03/11/IAM-latest-UserGuide-what-is-access-analyzerhtml.md b/entries/2026/03/11/IAM-latest-UserGuide-what-is-access-analyzerhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c986a631e57e5ba5111e65fe1402af77cedea190 --- /dev/null +++ b/entries/2026/03/11/IAM-latest-UserGuide-what-is-access-analyzerhtml.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/IAM/latest/UserGuide/what-is-access-analyzer.html +source: sources/IAM-latest-UserGuide-what-is-access-analyzerhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:38 + + + +## Overview + +AWS IAM Access Analyzer is a security tool that provides six core capabilities: identifying resources shared with external entities, analyzing internal access to business-critical resources, detecting unused access (roles, keys, passwords), validating IAM policies against AWS best practices, running custom policy checks against your security standards, and generating least-privilege policies from CloudTrail activity logs. + +## Key Concepts + +- **Zone of trust** — the organization or account boundary you define when creating an analyzer; access from outside this zone generates findings +- **External access analyzer** — uses logic-based reasoning to detect resources shared with external principals (other accounts, federated users, anonymous users, etc.) +- **Internal access analyzer** — identifies which principals *within* your org/account can access specified business-critical resources +- **Unused access analyzer** — continuously monitors IAM roles/users for unused roles, unused access keys, unused passwords, and unused services/actions +- **Findings** — generated when Access Analyzer detects external sharing, internal access, or unused access; organized in a visual summary dashboard +- **Policy validation** — checks policies against IAM grammar and AWS best practices (security warnings, errors, suggestions) +- **Custom policy checks** — validates policies against *your* security standards; can detect if an updated policy grants new access compared to the existing version +- **Policy generation** — analyzes CloudTrail logs over a date range to generate a least-privilege policy based on actual usage +- **Periodic rescan** — new/updated policies analyzed within ~30 minutes; full periodic scan within 24 hours +- **Multi-region access point delay** — findings for S3 multi-region access points can take up to 6 hours +- **Service-linked roles** are excluded from unused access analysis + +## Commands and Syntax + +- **Rescan a resource**: Use `StartResourceScan` API operation or the **Rescan** link in the Findings details page +- Policy validation available via: AWS CLI, AWS API, or JSON policy editor in IAM console +- Custom policy checks via console check for new access vs. existing policy; via CLI/API can check specific critical actions + +## Relationships + +- **CloudTrail** — policy generation relies on CloudTrail log analysis; log delivery issues can delay findings +- **Resource-based policies** — Access Analyzer examines these on supported resource types (S3, IAM roles, KMS, Lambda, SQS, Secrets Manager, SNS, EBS snapshots, RDS snapshots, ECR, EFS, DynamoDB) +- **IAM best practices** — policy validation enforces grammar and best-practice conformance +- **Resource Control Policies (RCPs)** — changes to RCPs can affect finding resolution timing +- **Billing** — charges apply per unused access analyzer (per region), per resource monitored (internal access), and per custom policy check API request + +## Exam-Relevant Points + +- **External access analyzers are regional** — you must create one in *each* Region where you have supported resources +- **Unused access analyzers are NOT regional** — findings don't change based on Region; one analyzer suffices +- **Supported resource types differ by analyzer type**: external access covers 15 resource types (S3, IAM roles, KMS, Lambda, SQS, Secrets Manager, SNS, EBS snapshots, RDS DB/cluster snapshots, ECR, EFS, DynamoDB streams/tables); internal access covers a subset (S3, S3 directory buckets, RDS snapshots, DynamoDB) +- Policy changes are analyzed within **~30 minutes**; periodic full rescan within **24 hours** +- S3 multi-region access point findings can take up to **6 hours** +- An **external entity** includes: another AWS account, root user, IAM user/role, federated user, or anonymous user +- Access Analyzer uses **logic-based reasoning** (automated reasoning / formal methods), not sampling +- **Three pricing dimensions**: unused access (per IAM role/user per analyzer per month), internal access (per resource monitored per month), custom policy checks (per API request) +- Policy generation creates policies from **actual CloudTrail activity**, supporting least-privilege refinement + diff --git a/entries/2026/03/11/Route53-latest-DeveloperGuide-logging-using-cloudtrailhtml.md b/entries/2026/03/11/Route53-latest-DeveloperGuide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3675f188657ba1982e4ce9c13098692586d51ba5 --- /dev/null +++ b/entries/2026/03/11/Route53-latest-DeveloperGuide-logging-using-cloudtrailhtml.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/logging-using-cloudtrail.html +source: sources/Route53-latest-DeveloperGuide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:38 + + + +## Overview + +This page documents how Amazon Route 53 integrates with AWS CloudTrail for API call logging. CloudTrail captures all Route 53 API calls as events — from the console and programmatic access — enabling audit trails that reveal who made requests, from where, and when. Events can be viewed in CloudTrail Event History or delivered continuously to an S3 bucket via a trail. + +## Key Concepts + +- **All Route 53 actions are logged** by CloudTrail — there are no unlogged API calls +- CloudTrail is **enabled by default** when you create an AWS account; recent events are always available in Event History +- A **trail** must be created for ongoing/persistent log delivery to S3; without one, only recent events are viewable +- Trails created in the console **apply to all regions by default** +- Three distinct Route 53 event sources appear in logs: + - `route53.amazonaws.com` — DNS management (hosted zones, records, health checks) + - `route53domains.amazonaws.com` — domain registration + - `route53resolver.amazonaws.com` — Route 53 Resolver endpoints +- The `eventName` field identifies the API action; **domain registration actions use lowercase first letter** in logs (e.g., `updateDomainContact` instead of `UpdateDomainContact`) +- The `userIdentity` element reveals whether the request used root credentials, IAM user, temporary role credentials, federated user, or another AWS service +- `additionalEventData` for domain contact updates notes that **personally-identifying contact information is not logged** +- CloudTrail log files are **not ordered** — they are not a sequential stack trace + +## Commands and Syntax + +No CLI commands are shown directly, but key CloudTrail log structure fields for Route 53 events: + +| Field | Example Value | +|-------|---------------| +| `eventSource` | `route53.amazonaws.com` | +| `eventName` | `ListHostedZones`, `CreateHealthCheck`, `ChangeResourceRecordSets`, `DeleteHostedZone` | +| `awsRegion` | `us-east-1` (DNS), `us-west-2` (domains, resolver) | +| `requestParameters` | Contains action-specific details (hosted zone ID, change batch, health check config) | +| `responseElements` | Contains change status (`PENDING`), resource IDs, locations | + +Key logged actions demonstrated: `ListHostedZones`, `CreateHealthCheck`, `ChangeResourceRecordSets`, `DeleteHostedZone`, `updateDomainContact`, `CreateResolverEndpoint`. + +## Relationships + +- **CloudTrail** — the underlying audit service; Route 53 is one of many integrated services +- **S3** — destination for CloudTrail log file delivery +- **SNS** — can be configured for CloudTrail notifications on new log delivery +- **CloudWatch Logs** — CloudTrail events can be sent here for monitoring/alerting +- **IAM** — the `userIdentity` element ties into IAM users, roles, and federated identities +- **VPC** — Route 53 Resolver endpoints reference VPC subnets and security groups +- **Route 53 Resolver** — separate event source (`route53resolver.amazonaws.com`) for DNS resolution endpoints + +## Exam-Relevant Points + +- **To view Route 53 events in Event History, you must select the US East (N. Virginia) region** in the console — this is a common gotcha +- All Route 53 API actions are logged — no exceptions +- Domain registration events use a **different event source** (`route53domains.amazonaws.com`) than DNS management (`route53.amazonaws.com`) +- Domain registration event names have a **lowercase first letter** in CloudTrail logs (naming inconsistency) +- PII in domain contact updates is **explicitly excluded** from CloudTrail logs +- CloudTrail is enabled by default but a **trail is required for persistent logging** beyond Event History +- `ChangeResourceRecordSets` logs include an `additionalEventData` note: "Do not use to reconstruct hosted zone" — the log is for audit, not zone reconstruction + diff --git a/entries/2026/03/11/access-analyzer-latest-APIReference-API_StartResourceScanhtml.md b/entries/2026/03/11/access-analyzer-latest-APIReference-API_StartResourceScanhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..804568679a90c9c1df356ddd99630a0e859b67b3 --- /dev/null +++ b/entries/2026/03/11/access-analyzer-latest-APIReference-API_StartResourceScanhtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/access-analyzer/latest/APIReference/API_StartResourceScan.html +source: sources/access-analyzer-latest-APIReference-API_StartResourceScanhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:39 + + + +## Overview +The `StartResourceScan` API action in AWS IAM Access Analyzer immediately triggers a scan of policies applied to a specified resource. This action is supported **only for external access analyzers** and is used to on-demand evaluate whether a resource's policies grant access to external principals. + +## Key Concepts +- **On-demand scanning**: Triggers an immediate policy scan rather than waiting for the next automatic scan cycle +- **External access analyzers only**: This API does not work with unused access analyzers or other analyzer types +- **Analyzer ARN required**: Must specify which analyzer to use for the scan (pattern: `[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:analyzer/.{1,255}`) +- **Resource ARN required**: The target resource to scan (standard ARN pattern) +- **Resource owner account (optional)**: The AWS account that owns the resource; for most resources this is the account that created it +- **Empty response on success**: Returns HTTP 200 with no body — results are retrieved separately via findings APIs + +## Commands and Syntax +``` +POST /resource/scan HTTP/1.1 +Content-type: application/json + +{ + "analyzerArn": "arn:aws:access-analyzer:us-east-1:123456789012:analyzer/my-analyzer", + "resourceArn": "arn:aws:s3:::my-bucket", + "resourceOwnerAccount": "123456789012" +} +``` + +**Error codes:** +| Code | Error | Meaning | +|------|-------|---------| +| 400 | ValidationException | Invalid input fields | +| 403 | AccessDeniedException | Insufficient permissions | +| 404 | ResourceNotFoundException | Analyzer or resource not found | +| 429 | ThrottlingException | Rate limit exceeded (includes `retryAfterSeconds`) | +| 500 | InternalServerException | Server error (includes `retryAfterSeconds`) | + +## Relationships +- **IAM Access Analyzer**: This is part of the Access Analyzer API (`accessanalyzer-2019-11-01`) +- **External access findings**: Scan results surface as findings that can be retrieved via `ListFindings` / `GetFinding` +- **Supported resource types**: Works with resources Access Analyzer supports (S3 buckets, IAM roles, KMS keys, Lambda functions, SQS queues, Secrets Manager secrets, SNS topics, EBS snapshots, RDS snapshots, ECR repositories, EFS file systems) +- **CloudTrail**: Access Analyzer API calls are logged in CloudTrail + +## Exam-Relevant Points +- `StartResourceScan` works **only with external access analyzers** — not unused access analyzers +- The `resourceOwnerAccount` parameter is **optional**; the other two parameters are **required** +- The API returns **no body** on success — you must query findings separately to see results +- Throttling (429) and internal server (500) errors include a `retryAfterSeconds` field for backoff guidance +- This enables **on-demand** scanning rather than relying solely on periodic automatic scans + diff --git a/entries/2026/03/11/accounts-latest-reference-manage-acct-closinghtml.md b/entries/2026/03/11/accounts-latest-reference-manage-acct-closinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..13ccdfba52410f97a6353eb319bcf8ab70110659 --- /dev/null +++ b/entries/2026/03/11/accounts-latest-reference-manage-acct-closinghtml.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-closing.html +source: sources/accounts-latest-reference-manage-acct-closinghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:39 + + + +## Overview + +This page covers the process of closing an AWS account, including pre-closure considerations, step-by-step procedures for different account types (standalone, member, management, GovCloud), and what happens during the 90-day post-closure period before permanent deletion. + +## Key Concepts + +- **Post-closure period**: 90-day window after closure during which the account can be reopened; after this, AWS permanently closes the account and deletes content/resources +- **Account closure = termination notice** of the AWS Customer Agreement for that account +- You do **not** need to delete resources before closing, but you should back up anything you want to keep +- You remain responsible for all charges incurred before closure, plus ongoing Reserved Instance and Savings Plans invoices until they expire +- The email address registered at closure **cannot** be reused as the primary email of another AWS account (update it before closing if needed) +- MFA devices are **not** automatically removed on closure; hardware TOTP tokens become permanently locked to the closed account unless deactivated beforehand +- Account closure may take **several hours** to propagate across all Regions and services +- After permanent closure, the **AWS account ID can never be reused** +- CloudTrail trails can persist even after account closure unless explicitly deleted beforehand + +## Commands and Syntax + +**No CLI/API support** for closing standalone or management accounts — console only. + +**Member accounts** can be closed via: +- AWS Organizations console (requires All Features mode) +- AWS CLI/SDKs using the Organizations API (`CloseAccount`) +- Directly from the Account page as root user + +**Standalone/Management account closure procedure**: +1. Sign in as root user (not IAM user/role) +2. Navigate to Account page → Close account +3. Enter account ID to confirm → Close account +4. Receive email confirmation + +**Management account**: Must close all member accounts first (verify all show `Closed` status). + +**GovCloud**: Close the linked standard account before the GovCloud account. + +## Relationships + +- **AWS Organizations**: Member accounts remain in the org during post-closure (count toward quota); management accounts require all members closed first +- **AWS Control Tower**: Must unmanage a member account before closing it +- **Route 53**: Registered domains may be deleted within 30 days or released to registrar after suspension +- **AWS Marketplace**: Subscriptions are not auto-canceled — must terminate instances and cancel manually +- **CloudTrail**: Trails persist after closure as a foundational security service; must be explicitly deleted +- **Billing**: Final invoice arrives the month after closure; Reserved Instances and Savings Plans continue billing until expiration +- **IAM/MFA**: Hardware MFA tokens must be deactivated before closure to be reusable + +## Exam-Relevant Points + +- **90-day post-closure period** — the key number to remember; after 90 days, permanent closure occurs +- **Only root user** can close standalone and management accounts (not IAM users/roles) +- **10% rolling 30-day limit** on closing member accounts in an organization (minimum 10, maximum 1000) +- **Reopening** requires contacting AWS Support and paying outstanding balance within **60 days** of closure +- **Cannot close management account** from the Organizations console — must use the Account page +- Organizations must be in **All Features mode** to close member accounts from the Organizations console +- Closed member accounts still **count toward organization quota** during post-closure unless removed first +- **Account ID is never reused** after permanent closure +- **CloudTrail trails survive** account closure unless explicitly deleted + diff --git a/entries/2026/03/11/accounts-latest-reference-manage-acct-regionshtml.md b/entries/2026/03/11/accounts-latest-reference-manage-acct-regionshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5d9e9eab0926700dfebecc458c112acd00a12e29 --- /dev/null +++ b/entries/2026/03/11/accounts-latest-reference-manage-acct-regionshtml.md @@ -0,0 +1,67 @@ +--- +source_url: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-regions.html +source: sources/accounts-latest-reference-manage-acct-regionshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:39 + + + +## Overview + +This page explains how AWS Regions are categorized as either **default** (enabled automatically, cannot be disabled) or **opt-in** (disabled by default, must be manually enabled). It covers the process for enabling/disabling opt-in Regions for both standalone accounts and AWS Organizations member accounts, including IAM implications, processing times, and request limits. + +## Key Concepts + +- **Default Regions**: Launched before March 20, 2019. Always enabled, cannot be disabled. IAM data available immediately. +- **Opt-in Regions**: Launched after March 20, 2019. Disabled by default; must be explicitly enabled before use. +- **Partitions**: Hard boundaries grouping Regions — `aws` (commercial), `aws-cn` (China), `aws-us-gov` (GovCloud). Each partition has its own IAM instance. +- **IAM propagation**: Enabling an opt-in Region propagates IAM data/credentials to that Region. Disabling deactivates IAM access but **does not delete resources** — charges continue. +- **Region opt statuses**: `ENABLING`, `ENABLED`, `DISABLING`, `DISABLED`. Cannot cancel while in `ENABLING`/`DISABLING` state. +- **Cross-region inference** (Bedrock, Amazon Q): Can use opt-in Regions automatically within a geography even if not explicitly enabled for resources/IAM. +- **STS tokens**: Regional STS endpoints recommended. Global endpoint tokens only valid in enabled/default Regions. +- There are **17 default Regions** and **17 opt-in Regions** (as listed). +- Enabling/disabling a Region is **free** — you only pay for resources created. + +## Commands and Syntax + +```bash +# Enable a Region (standalone) +aws account enable-region --region-name af-south-1 + +# Disable a Region (standalone) +aws account disable-region --region-name af-south-1 + +# Check status +aws account get-region-opt-status --region-name af-south-1 + +# Enable for an organization member account +aws account enable-region --account-id 123456789012 --region-name af-south-1 + +# Check status for org member +aws account get-region-opt-status --account-id 123456789012 --region-name af-south-1 +``` + +**Required IAM permissions**: `account:EnableRegion`, `account:DisableRegion`, `account:GetRegionOptStatus`, `account:ListRegions` + +## Relationships + +- **IAM**: Enabling a Region propagates IAM resources; disabling deactivates IAM access. Use `aws:RequestedRegion` condition key to restrict Region access. +- **AWS Organizations**: Management or delegated admin accounts can enable/disable Regions for member accounts. Requires trusted access for Account Management and all-features mode. +- **AWS STS**: Regional vs. global endpoint behavior tied to which Regions are enabled. +- **EventBridge**: Region opt-status changes emit events for automation. +- **Billing**: Resources in disabled Regions still incur charges. + +## Exam-Relevant Points + +- Default Regions (pre-March 2019) **cannot be disabled**; opt-in Regions (post-March 2019) **must be explicitly enabled**. +- **Disabling a Region does NOT delete resources** — you must remove resources first to stop charges. +- Request limits: **6 concurrent** per standalone account, **50 concurrent** across an organization (note: docs also mention 20 for orgs in one section — `TooManyRequestsException`). +- Enabling can take **minutes to hours**; the operation is **asynchronous**. +- Global STS endpoint tokens are only valid in **enabled/default Regions**; regional STS endpoints are recommended. +- Partitions (`aws`, `aws-cn`, `aws-us-gov`) are **hard IAM boundaries** — credentials don't cross partitions. +- Cross-region inference services can route to opt-in Regions **regardless of opt-in status**. +- Organization prerequisites: all features enabled + trusted access for AWS Account Management. + diff --git a/entries/2026/03/11/accounts-latest-reference-monitoring-cloudtrailhtml.md b/entries/2026/03/11/accounts-latest-reference-monitoring-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..213447af2d848fabafb3871a35f5e6bf6512c958 --- /dev/null +++ b/entries/2026/03/11/accounts-latest-reference-monitoring-cloudtrailhtml.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/accounts/latest/reference/monitoring-cloudtrail.html +source: sources/accounts-latest-reference-monitoring-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:40 + +## Overview +This page describes how AWS Account Management API calls are logged via AWS CloudTrail. All Account Management API operations (e.g., `CreateAccount`, `DeleteAlternateContact`, `PutAlternateContact`) are captured as CloudTrail events, viewable in Event history or delivered to an S3 bucket via a trail. + +## Key Concepts +- **CloudTrail is enabled by default** when an AWS account is created — no setup needed for basic event history. +- **All Account Management API operations** are logged as CloudTrail events. +- A **trail** enables continuous delivery of log files to an S3 bucket; by default it covers all AWS Regions. +- Each log entry records: who made the request, the IP address, the operation called, request parameters, and timestamp. +- **Response values are not logged** — only request parameters appear in the log (e.g., `responseElements: null` for read operations). +- The **`userIdentity` element** distinguishes whether requests were made by root user, IAM user, assumed role, federated user, or another AWS service. +- The **`eventSource`** for Account Management is `account.amazonaws.com`. +- Events are categorized as **management events** (`managementEvent: true`, `eventCategory: "Management"`). +- Read operations (e.g., `GetAlternateContact`) have `readOnly: true`; write operations (e.g., `PutAlternateContact`, `DeleteAlternateContact`) have `readOnly: false`. + +## Commands and Syntax +No CLI commands are shown. The page provides CloudTrail log JSON examples: + +- **GetAlternateContact** — reads alternate contact; `readOnly: true` +- **PutAlternateContact** — sets alternate contact with `name`, `emailAddress`, `title`, `alternateContactType` parameters +- **DeleteAlternateContact** — removes alternate contact by `alternateContactType` (e.g., `OPERATIONS`) + +Alternate contact types referenced: `SECURITY`, `BILLING`, `OPERATIONS`. + +## Relationships +- **CloudTrail** — the underlying logging service; all Account Management events flow through it. +- **S3** — trail log file destination. +- **SNS** — can be configured for CloudTrail notifications. +- **IAM** — identity context (`userIdentity`) ties into IAM roles, users, and federation. +- **AWS Organizations** — `CreateAccount` is an Account Management API that would appear in these logs. +- **Multi-region/multi-account logging** — trails can aggregate logs across regions and accounts. + +## Exam-Relevant Points +- CloudTrail is **automatically enabled** on every AWS account — no manual activation needed. +- Account Management API calls use event source **`account.amazonaws.com`**. +- CloudTrail logs capture **request parameters but not response data** for Account Management. +- Trails created in the console default to **all-region** logging. +- Three alternate contact types exist: **SECURITY, BILLING, OPERATIONS**. +- The `userIdentity` element reveals whether root, IAM user, role, or federated credentials were used. +- Account Management events are classified as **management events**, not data events. + diff --git a/entries/2026/03/11/acm-latest-userguide-cloudtrailhtml.md b/entries/2026/03/11/acm-latest-userguide-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..cde38cd22b679ca9b9ce60d7cae01fd0ffaa3474 --- /dev/null +++ b/entries/2026/03/11/acm-latest-userguide-cloudtrailhtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/acm/latest/userguide/cloudtrail.html +source: sources/acm-latest-userguide-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:40 + + + +## Overview +AWS Certificate Manager (ACM) integrates with AWS CloudTrail to log and audit API actions taken against ACM resources. CloudTrail is enabled by default and captures ACM console and API calls as events, which can be viewed in Event History or delivered continuously to an S3 bucket via a configured trail. + +## Key Concepts +- **CloudTrail is enabled by default** on all AWS accounts — no setup required for basic event visibility +- CloudTrail records ACM events including: who made the request, source IP address, timestamp, and request details +- **Event History** provides access to recent events without configuring a trail +- A **trail** must be configured for continuous, long-term delivery of events to an S3 bucket +- ACM events appear alongside other AWS service events in CloudTrail +- CloudTrail log data can be piped to other AWS services for further analysis and automated response + +## Commands and Syntax +No specific CLI commands or configuration syntax provided on this page. The page serves as an integration overview pointing to sub-topics: +- **ACM API actions supported in CloudTrail logging** — details which ACM API calls are logged +- **Logging API calls for integrated services** — covers CloudTrail logging for services that interact with ACM + +## Relationships +- **CloudTrail** — the underlying audit logging service that captures ACM events +- **Amazon S3** — destination for continuous CloudTrail log delivery when a trail is configured +- **Amazon SNS** — can be configured for CloudTrail event notifications +- **ACM Console / ACM API** — the sources of events that CloudTrail captures +- **Multi-region and multi-account** — CloudTrail supports aggregating ACM logs across regions and accounts + +## Exam-Relevant Points +- CloudTrail is **enabled by default** — you do not need to turn it on to start capturing ACM events +- Without a trail, you can only view **recent events** via Event History (90-day retention) +- Configuring a **trail** is required for persistent, long-term storage of ACM audit logs to S3 +- CloudTrail captures both **console actions and API calls** for ACM +- Each event includes: requester identity, source IP, timestamp, and request parameters + diff --git a/entries/2026/03/11/amazon-mq-latest-developer-guide-security-logging-monitoring-cloudtrailhtml.md b/entries/2026/03/11/amazon-mq-latest-developer-guide-security-logging-monitoring-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1db75f1189134b9b58dfb16729a7e0fe13c2ca41 --- /dev/null +++ b/entries/2026/03/11/amazon-mq-latest-developer-guide-security-logging-monitoring-cloudtrailhtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/security-logging-monitoring-cloudtrail.html +source: sources/amazon-mq-latest-developer-guide-security-logging-monitoring-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:40 + + + +## Overview +This page documents how Amazon MQ integrates with AWS CloudTrail to log API calls related to broker and configuration management. It covers which API actions are logged (with full parameters and responses), which have redacted responses, and which mask sensitive fields like passwords. Notably, CloudTrail does **not** log ActiveMQ data-plane operations (e.g., sending/receiving messages). + +## Key Concepts +- **CloudTrail integration**: Amazon MQ control-plane API calls are automatically recorded as CloudTrail events +- **Data-plane exclusion**: ActiveMQ operations (message send/receive) and the ActiveMQ Web Console are NOT logged by CloudTrail — use CloudWatch Logs via general/audit logging instead +- **Trails**: A trail enables continuous delivery of CloudTrail events to an S3 bucket; without one, only recent events are viewable in the console's event history +- **Trail scope**: By default, a trail created via the console applies to all AWS Regions +- **Response redaction**: GET methods (Describe*, List*) log request parameters but redact responses +- **Sensitive field masking**: `data` and `password` fields are replaced with `***` in CreateBroker, CreateUser, UpdateConfiguration, UpdateUser +- **RebootBroker logging**: Only logged for manual reboots, NOT for automatic maintenance window reboots +- **Event source**: `amazonmq.amazonaws.com` + +## Commands and Syntax +No CLI commands are shown. The example CloudTrail log entry for `CreateBroker` shows: +- `eventSource`: `amazonmq.amazonaws.com` +- `eventName`: `CreateBroker` +- Password fields appear as `"password": "***"` +- Response includes `brokerId` and `brokerArn` + +## Relationships +- **CloudTrail**: Core dependency for audit logging of Amazon MQ control-plane actions +- **CloudWatch Logs**: Required for data-plane/ActiveMQ operation logging (general and audit logs) +- **S3**: Destination for CloudTrail log file delivery via trails +- **SNS**: Can be configured for CloudTrail notifications +- **IAM**: `userIdentity` element identifies whether requests used root, IAM user, role, or federated credentials + +## Exam-Relevant Points +- CloudTrail logs **control-plane** Amazon MQ API calls only — NOT message operations +- For ActiveMQ message-level auditing, configure CloudWatch Logs (general and audit logs) +- GET/Describe/List API responses are **redacted** in CloudTrail logs +- Passwords and configuration data are **masked** (`***`) in create/update operations +- Automatic maintenance reboots do NOT generate RebootBroker CloudTrail events +- CloudTrail is enabled by default on AWS accounts; no trail is needed to view recent events in the console + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchExecuteStatementhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchExecuteStatementhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..0b4863e8c0dd1cc22fa6bad865611efd87eedd06 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchExecuteStatementhtml.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchExecuteStatement.html +source: sources/amazondynamodb-latest-APIReference-API_BatchExecuteStatementhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:40 + + + +## Overview +`BatchExecuteStatement` is a DynamoDB API operation that allows batch reads or writes using PartiQL statements. Each batch can contain 1–25 statements, but all must be the same type (all reads or all writes). Each SELECT statement must specify equality conditions on all key attributes, ensuring at most one item is returned per statement. + +## Key Concepts +- **PartiQL batch operations**: Execute multiple PartiQL statements in a single API call +- **Homogeneous batches only**: A batch must be entirely read statements OR entirely write statements — no mixing +- **SELECT key constraint**: Each read statement must use equality on all key attributes (partition key + sort key if present), returning at most one item +- **HTTP 200 ≠ full success**: A 200 response does not mean all statements succeeded — individual statement errors are in the `Error` field of each `BatchStatementResponse` +- **Batch size limit**: 1–25 statements per batch +- **Response ordering**: Both `ConsumedCapacity` and `Responses` arrays are ordered to match the input statement ordering +- **ReturnConsumedCapacity**: Optional; can be `INDEXES` (per-table and per-index breakdown), `TOTAL` (aggregate only), or `NONE` +- **ReturnValuesOnConditionCheckFailure**: Can be set per statement to return the item that failed a condition check + +## Commands and Syntax +```json +{ + "ReturnConsumedCapacity": "TOTAL", + "Statements": [ + { + "Statement": "SELECT * FROM MyTable WHERE pk = ?", + "Parameters": [{"S": "key1"}], + "ConsistentRead": true + }, + { + "Statement": "SELECT * FROM MyTable WHERE pk = ?", + "Parameters": [{"S": "key2"}], + "ConsistentRead": false + } + ] +} +``` + +## Relationships +- **PartiQL**: This is the batch variant of `ExecuteStatement`; for transactional guarantees use `ExecuteTransaction` instead +- **BatchGetItem / BatchWriteItem**: Classic (non-PartiQL) equivalents for batch reads/writes +- **ConsumedCapacity**: Shared response structure used across DynamoDB read/write APIs +- **Throttling**: Subject to `RequestLimitExceeded` and `ThrottlingException`, tied to account throughput quotas + +## Exam-Relevant Points +- A batch **cannot mix reads and writes** — this is a hard constraint +- **HTTP 200 does not guarantee all statements succeeded** — you must check each `BatchStatementResponse.Error` +- Maximum batch size is **25 statements** +- Each SELECT must specify **equality on all key attributes** (not partial keys, not range conditions) +- `ConsistentRead` is set **per statement**, not per batch +- Throttling errors (HTTP 400) include a `ThrottlingReason` field with the ARN of the impacted resource + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchGetItemhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchGetItemhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d9461e63dfd42d5beb9000dcae19e7d0287ac4b2 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchGetItemhtml.md @@ -0,0 +1,72 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchGetItem.html +source: sources/amazondynamodb-latest-APIReference-API_BatchGetItemhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:41 + + + +## Overview + +`BatchGetItem` is a DynamoDB API operation that retrieves the attributes of one or more items from one or more tables in a single call, identified by primary key. It supports up to 100 items and 16 MB per request, returning unprocessed keys for pagination when limits are exceeded. + +## Key Concepts + +- **Max 100 items** per request; exceeding this throws a `ValidationException` +- **Max 16 MB** response size; partial results returned if exceeded +- **UnprocessedKeys** returned when not all items could be retrieved (due to size limits, throughput exceeded, or >1MB per partition) — use this to retry +- **Exponential backoff** strongly recommended when retrying unprocessed keys to avoid continued throttling +- **Eventually consistent reads** by default; set `ConsistentRead: true` per table for strongly consistent reads +- **Items retrieved in parallel** internally for lower latency — no guaranteed order in response +- **Nonexistent items** are silently omitted from results but still consume minimum read capacity units +- **Duplicate keys** in the same request cause a `ValidationException` +- **ProjectionExpression** controls which attributes are returned; include primary key values to help parse results +- **AttributesToGet** is legacy — use `ProjectionExpression` instead +- **ExpressionAttributeNames** needed for reserved words or special characters in attribute names (use `#` prefix) + +## Commands and Syntax + +**Request structure:** +```json +{ + "RequestItems": { + "TableName": { + "Keys": [ { "PK": {"S": "value"} } ], + "ProjectionExpression": "attr1, attr2", + "ConsistentRead": true, + "ExpressionAttributeNames": { "#P": "Percentile" } + } + }, + "ReturnConsumedCapacity": "TOTAL" // INDEXES | TOTAL | NONE +} +``` + +**Response structure:** `Responses` (map of table→items), `UnprocessedKeys` (same format as `RequestItems` for retry), `ConsumedCapacity` (optional). + +**Retry pattern:** +1. Call `BatchGetItem` +2. Check `UnprocessedKeys` in response +3. If non-empty, feed `UnprocessedKeys` back as `RequestItems` with exponential backoff + +## Relationships + +- **GetItem** — single-item equivalent; `BatchGetItem` is the batch optimization +- **BatchWriteItem** — write-side counterpart for batch puts/deletes +- **Query / Scan** — alternative read patterns when keys aren't known upfront +- **ConsumedCapacity** — shared response structure across read/write APIs +- **Provisioned throughput / On-demand capacity** — directly affects throttling behavior + +## Exam-Relevant Points + +- Hard limit: **100 items**, **16 MB** per `BatchGetItem` call +- Default read consistency is **eventually consistent**; must explicitly opt into strong consistency per table +- Always handle `UnprocessedKeys` with **exponential backoff** — not immediate retry +- `ProvisionedThroughputExceededException` thrown only if **all** tables in the request are throttled; partial success is possible +- Nonexistent items consume **minimum RCU** but don't appear in results +- `ReturnConsumedCapacity` values: `INDEXES`, `TOTAL`, `NONE` +- Can read from **multiple tables** in a single call +- No ordering guarantee on returned items + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchWriteItemhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchWriteItemhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..aa8a5c5512d7daca58c117f5e9220cd800019226 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchWriteItemhtml.md @@ -0,0 +1,70 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html +source: sources/amazondynamodb-latest-APIReference-API_BatchWriteItemhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:41 + + + +## Overview +`BatchWriteItem` is a DynamoDB API operation that performs up to 25 put or delete operations across one or more tables in a single call, transmitting up to 16 MB of data. It provides parallel processing of writes but is not atomic as a whole — individual operations are atomic, but partial failures are possible and must be handled via the `UnprocessedItems` response. + +## Key Concepts +- **Put and Delete only** — `BatchWriteItem` cannot update items. Using it on an existing item overwrites it entirely (like `PutItem`, not `UpdateItem`). +- **Not atomic as a whole** — Individual `PutItem`/`DeleteItem` within the batch are atomic, but the batch itself is not. Some operations can succeed while others fail. +- **UnprocessedItems** — Failed operations are returned in this response field, in the same format as `RequestItems`, so they can be fed directly back into a subsequent `BatchWriteItem` call. +- **Exponential backoff required** — Retrying unprocessed items immediately risks continued throttling; exponential backoff is strongly recommended. +- **No condition expressions** — Unlike individual `PutItem`/`DeleteItem`, you cannot specify conditions on batch requests. +- **No deleted items returned** — The response does not return the content of deleted items. +- **Delete on nonexistent items** — Consumes 1 write capacity unit even if the item doesn't exist. +- **Item collection size limit** — 10 GB per partition key value (tables with LSIs). Exceeding this throws `ItemCollectionSizeLimitExceededException`. + +## Commands and Syntax +**Request structure:** +```json +{ + "RequestItems": { + "TableName": [ + { "PutRequest": { "Item": { "pk": {"S": "val"}, ... } } }, + { "DeleteRequest": { "Key": { "pk": {"S": "val"} } } } + ] + }, + "ReturnConsumedCapacity": "TOTAL | INDEXES | NONE", + "ReturnItemCollectionMetrics": "SIZE | NONE" +} +``` + +**Retry loop pattern:** +``` +loop: + call BatchWriteItem(items) + if UnprocessedItems is not empty: + backoff with exponential delay + items = UnprocessedItems + else: + break +``` + +## Relationships +- **PutItem / DeleteItem** — Individual equivalents; support condition expressions unlike `BatchWriteItem`. +- **UpdateItem** — Must be used separately if you need to update (not overwrite) items. +- **BatchGetItem** — Read-side counterpart for batch operations. +- **Provisioned throughput / On-demand capacity** — Capacity consumption applies per-item regardless of batching. +- **Local Secondary Indexes** — Relevant for `ItemCollectionMetrics` and the 10 GB collection size limit. +- **Global Tables** — `ReplicatedWriteConflictException` can occur when the same item is being modified in another Region. + +## Exam-Relevant Points +- **Max 25 items** per `BatchWriteItem` call, **max 16 MB** total request size, **max 400 KB** per stored item. +- **Cannot update items** — only put (insert/overwrite) and delete. +- **No condition expressions** supported on individual operations within the batch. +- **Partition key limit: 2048 bytes; sort key limit: 1024 bytes.** +- **Cannot perform multiple operations on the same item** in a single batch (e.g., cannot put and delete the same key). +- **Cannot include two puts with identical hash and range keys** in the same batch. +- Entire batch is **rejected** (not partially processed) if: table doesn't exist, key schema mismatch, duplicate keys, >25 items, item >400 KB, request >16 MB, or key length exceeded. +- **Throttling returns items in `UnprocessedItems`** — use exponential backoff to retry. +- **Write capacity consumed is the same** whether operations run in parallel or sequentially. +- `ProvisionedThroughputExceededException` vs `ThrottlingException`: the former is for provisioned capacity tables when all items fail; the latter is for partition-level throttling scenarios. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_CancellationReasonhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_CancellationReasonhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..f78863106638382c4fb7a8e1e76d3eb1734fd1b1 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_CancellationReasonhtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_CancellationReason.html +source: sources/amazondynamodb-latest-APIReference-API_CancellationReasonhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:41 + + + +## Overview +The `CancellationReason` structure in DynamoDB describes why individual items within a `TransactWriteItems` (or `TransactGetItems`) request caused the transaction to be cancelled. It is an ordered list aligned with the original request items, where each entry contains a status code, message, and the offending item. + +## Key Concepts +- **Ordered list**: Each `CancellationReason` entry corresponds positionally to the items in the `TransactWriteItems` request parameter. +- **Null entries for success**: Items that did not cause an error have a `CancellationReason` with `Null` code and `Null` message. +- **Three fields** (all optional): + - `Code` — Status code string for the cancelled item. + - `Item` — The item (as a map of attribute names to `AttributeValue` objects) that caused the cancellation. Key length max: 65,535 characters. + - `Message` — Human-readable cancellation reason description. + +## Commands and Syntax +No CLI commands on this page. The structure appears in the response body of `TransactWriteItems` and `TransactGetItems` when a `TransactionCanceledException` is thrown. + +Example conceptual structure (JSON): +```json +"CancellationReasons": [ + { "Code": "ConditionalCheckFailed", "Message": "The conditional request failed", "Item": { "pk": { "S": "abc" } } }, + { "Code": null, "Message": null } +] +``` + +## Relationships +- **TransactWriteItems / TransactGetItems** — parent operations that return this structure on failure. +- **TransactionCanceledException** — the exception type that carries the `CancellationReasons` list. +- **AttributeValue** — the data type used in the `Item` field. +- **Conditional expressions** — the most common source of `ConditionalCheckFailed` cancellation codes. + +## Exam-Relevant Points +- Cancellation reasons are **positionally ordered** — you match each reason to its corresponding request item by index. +- Items that succeeded within the transaction still show a **Null code/message** entry (not omitted). +- The `Item` field returns the **actual item** that caused the failure, useful for diagnosing condition-check conflicts. +- DynamoDB transactions are **all-or-nothing**: if any item fails, the entire transaction is cancelled and all reasons are reported. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateBackuphtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateBackuphtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7eea533eb0ff6b0400e3fc5add4d97f8206c55c8 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateBackuphtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_CreateBackup.html +source: sources/amazondynamodb-latest-APIReference-API_CreateBackuphtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:42 + + + +## Overview +The `CreateBackup` API creates an on-demand backup of an existing DynamoDB table. Backups are created asynchronously by capturing all changes up to the request time, do not consume provisioned throughput, and become available for restore within minutes. + +## Key Concepts +- **On-demand backups** back up the entire table data — there is no limit to the number that can be taken +- **Asynchronous creation**: a time marker is cataloged at request time; the backup applies all changes up to that point against the last full snapshot +- **No causal consistency**: data committed within ~2 minutes of the request time may or may not be included (guaranteed up to 1 minute before, excluded after 1 minute after) +- **Zero throughput impact**: backups do not consume any provisioned read/write capacity +- **Rate limit**: maximum 50 `CreateBackup` calls per second +- **Backup includes**: table data, GSIs, LSIs, Streams configuration, and provisioned capacity settings + +## Commands and Syntax +**Request** (JSON): +```json +{ + "BackupName": "string", // 3–255 chars, pattern: [a-zA-Z0-9_.-]+ + "TableName": "string" // 1–1024 chars, can be table name or ARN +} +``` +**Response** returns `BackupDetails` with: `BackupArn`, `BackupCreationDateTime`, `BackupExpiryDateTime`, `BackupName`, `BackupSizeBytes`, `BackupStatus`, `BackupType`. + +## Relationships +- **RestoreTableFromBackup / RestoreTableToPointInTime** — consume backups created by this API +- **ContinuousBackups** — must be enabled; otherwise `ContinuousBackupsUnavailableException` is thrown +- **GSIs, LSIs, Streams** — metadata captured in the backup +- **Account-level table operation limits** — shares the 500 simultaneous table operations quota with `CreateTable`, `UpdateTable`, `DeleteTable`, `UpdateTimeToLive`, and restore operations + +## Exam-Relevant Points +- On-demand backups have **no limit** on count and do **not** consume provisioned throughput +- Backup consistency window: guaranteed up to **1 minute before** request, excluded **1 minute after** — no causal consistency +- Rate limit: **50 requests/second** +- Account soft limit: **2,500 tables**; **500 simultaneous** table operations (250 if creating tables with secondary indexes) +- Key errors: `BackupInUseException` (conflicting backup operation), `TableNotFoundException` (wrong table/region), `LimitExceededException` (operation quota), `ContinuousBackupsUnavailableException` (backups not enabled) + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateGlobalTablehtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateGlobalTablehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..316c4e9706a7305529aec4b827ae7dca6608489e --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateGlobalTablehtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_CreateGlobalTable.html +source: sources/amazondynamodb-latest-APIReference-API_CreateGlobalTablehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:42 + + + +## Overview +The `CreateGlobalTable` API creates a global table by establishing replication relationships between two or more DynamoDB tables with the same name across specified AWS Regions. **This documents the legacy version (2017.11.29)** — AWS strongly recommends using Global Tables version 2019.11.21 (Current) instead, which offers greater flexibility, higher efficiency, and lower write capacity consumption. + +## Key Concepts +- Global tables replicate data across multiple AWS Regions for multi-region redundancy and low-latency access +- All replica tables **must** share the same table name, primary key, and have DynamoDB Streams enabled (new and old images) +- Replica tables **must be empty** when added to the global table +- Global/local secondary indexes must have the same name and key schema across all replicas +- AWS strongly recommends enabling auto scaling for write capacity across all replicas and indexes +- If managing capacity manually, provision **equal replicated write capacity units** across all replicas and matching secondary indexes + +## Commands and Syntax +**Request:** +```json +{ + "GlobalTableName": "string", // 3–255 chars, pattern: [a-zA-Z0-9_.-]+ + "ReplicationGroup": [ + { "RegionName": "string" } // Array of Replica objects + ] +} +``` + +**Response:** Returns a `GlobalTableDescription` object containing ARN, name, status, creation time, and per-replica details (region, status, GSI overrides, KMS key, throughput settings, table class). + +## Relationships +- **Global Tables (Current v2019.11.21)** — the recommended replacement for this legacy API +- **DynamoDB Streams** — required prerequisite (new+old images) for global table replication +- **Auto Scaling** — recommended for managing write capacity across replicas +- **GSIs/LSIs** — must be identically defined across all replicas +- Related errors reference table operation limits shared with `CreateTable`, `UpdateTable`, `DeleteTable`, `RestoreTableFromBackup`, etc. + +## Exam-Relevant Points +- This is the **legacy** global tables API (v2017.11.29) — know the distinction from v2019.11.21 +- Replica tables must be **empty** before joining a global table (legacy version only) +- DynamoDB Streams with **both new and old images** is a hard requirement +- Soft account quota: **2,500 tables**; up to **500 simultaneous table operations** (250 when creating tables with secondary indexes) +- Error codes: `GlobalTableAlreadyExistsException` (400), `TableNotFoundException` (400), `LimitExceededException` (400), `InternalServerError` (500) +- Write capacity must be provisioned **equally** across replicas if not using auto scaling + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateTablehtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateTablehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7bb7245e11e0cae423b62f5bbea247e93850b62f --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateTablehtml.md @@ -0,0 +1,87 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_CreateTable.html +source: sources/amazondynamodb-latest-APIReference-API_CreateTablehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:42 + +## Overview +The `CreateTable` API operation creates a new DynamoDB table in your AWS account. Table names must be unique per Region (but can be duplicated across Regions). The operation is asynchronous — it returns immediately with `TableStatus: CREATING`, and the table becomes usable only when status transitions to `ACTIVE`. + +## Key Concepts +- **Asynchronous creation**: Table is not immediately available; must poll with `DescribeTable` until status is `ACTIVE` +- **Primary key types**: Simple (partition key only, `HASH`) or composite (partition key `HASH` + sort key `RANGE`) +- **BillingMode**: `PAY_PER_REQUEST` (on-demand, recommended for most workloads) or `PROVISIONED` (for steady, predictable workloads) +- **Global Secondary Indexes (GSI)**: Max 20 per table; support up to 4 partition keys and 4 sort keys; can have independent throughput settings +- **Local Secondary Indexes (LSI)**: Max 5 per table; must share the same partition key as the table; 10 GB size limit per partition key value +- **Sequential creation constraint**: Only one table with secondary indexes can be in `CREATING` state at a time +- **Projection types**: `KEYS_ONLY`, `INCLUDE` (specify attributes), `ALL`; `NonKeyAttributes` across all secondary indexes must not exceed 100 (for `INCLUDE` type) +- **DeletionProtectionEnabled**: Boolean to prevent accidental table deletion +- **TableClass**: `STANDARD` or `STANDARD_INFREQUENT_ACCESS` +- **ResourcePolicy**: Attach a resource-based policy (max 20 KB) at creation time; application is strongly consistent; requires both `CreateTable` and `PutResourcePolicy` IAM actions +- **SSESpecification**: Server-side encryption settings (can specify KMS key) +- **StreamSpecification**: Enable DynamoDB Streams with view types: `KEYS_ONLY`, `NEW_IMAGE`, `OLD_IMAGE`, `NEW_AND_OLD_IMAGES` +- **WarmThroughput**: Pre-warm read/write capacity for the table and GSIs +- **OnDemandThroughput**: Set max read/write request units for on-demand tables +- **Tags**: Key-value pairs applied at creation time +- **Global table support**: `GlobalTableSourceArn` and `GlobalTableSettingsReplicationMode` for multi-account/same-account global tables + +## Commands and Syntax +``` +POST / HTTP/1.1 +X-Amz-Target: DynamoDB_20120810.CreateTable +Content-Type: application/x-amz-json-1.0 +``` + +**Minimal on-demand table with LSI:** +```json +{ + "TableName": "Thread", + "AttributeDefinitions": [ + {"AttributeName": "ForumName", "AttributeType": "S"}, + {"AttributeName": "Subject", "AttributeType": "S"}, + {"AttributeName": "LastPostDateTime", "AttributeType": "S"} + ], + "KeySchema": [ + {"AttributeName": "ForumName", "KeyType": "HASH"}, + {"AttributeName": "Subject", "KeyType": "RANGE"} + ], + "LocalSecondaryIndexes": [{ + "IndexName": "LastPostIndex", + "KeySchema": [ + {"AttributeName": "ForumName", "KeyType": "HASH"}, + {"AttributeName": "LastPostDateTime", "KeyType": "RANGE"} + ], + "Projection": {"ProjectionType": "KEYS_ONLY"} + }], + "BillingMode": "PAY_PER_REQUEST" +} +``` + +Only `TableName` is strictly required. `KeySchema` and `AttributeDefinitions` are listed as not required in the schema but are needed in practice. + +## Relationships +- **DescribeTable**: Used to poll table status after creation +- **UpdateTable**: Modify settings (billing mode, throughput, indexes) after creation +- **DeleteTable**: Remove a table (blocked if `DeletionProtectionEnabled` is true) +- **DynamoDB Streams**: Enabled via `StreamSpecification`; integrates with Lambda, Kinesis +- **Global Tables**: `GlobalTableSourceArn` links to multi-account replication +- **IAM / Resource-based policies**: `ResourcePolicy` enables cross-account access control +- **KMS**: SSE integration via `SSESpecification` +- **Tagging**: Cost allocation and resource organization + +## Exam-Relevant Points +- Table names are unique **per Region**, not per account globally +- `CreateTable` is **asynchronous** — table must reach `ACTIVE` before read/write +- Only **one table with secondary indexes** can be in `CREATING` state at a time +- Max **20 GSIs**, max **5 LSIs** per table +- LSIs have a **10 GB limit per partition key value**; GSIs do not +- `NonKeyAttributes` total across all secondary indexes must not exceed **100** (only for `INCLUDE` projection) +- Soft account quota: **2,500 tables**; up to **500 simultaneous table operations** (250 if creating tables with secondary indexes) +- `ProvisionedThroughput` is **required** when `BillingMode` is `PROVISIONED`; **must not be specified** for `PAY_PER_REQUEST` +- LSI key schema **must begin with the same partition key** as the table +- Resource-based policy at creation requires **both** `CreateTable` and `PutResourcePolicy` IAM actions +- Errors: `ResourceInUseException` (table already exists), `LimitExceededException` (too many concurrent operations) + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteBackuphtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteBackuphtml.md new file mode 100644 index 0000000000000000000000000000000000000000..da87978f69320a9e281b5c81f6219c20ddc7bb8e --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteBackuphtml.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DeleteBackup.html +source: sources/amazondynamodb-latest-APIReference-API_DeleteBackuphtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:43 + + + +## Overview +The `DeleteBackup` API operation removes an existing on-demand backup of a DynamoDB table. It accepts a backup ARN, deletes the backup, and returns the full backup description including source table details and feature configuration at the time the backup was created. + +## Key Concepts +- **DeleteBackup** is a control plane operation for removing DynamoDB on-demand backups +- Rate limited to **10 calls per second** +- Requires the **BackupArn** (string, 37–1024 characters) as the sole input parameter +- Returns a `BackupDescription` object containing: + - **BackupDetails**: ARN, name, status, type, size, creation/expiry timestamps + - **SourceTableDetails**: original table's name, ARN, ID, key schema, billing mode, throughput settings, item count, and size + - **SourceTableFeatureDetails**: GSIs, LSIs, SSE config, DynamoDB Streams config, and TTL settings at backup time + +## Commands and Syntax +**Request:** +```json +{ + "BackupArn": "arn:aws:dynamodb:us-east-1:123456789012:table/MyTable/backup/01234567890123-abcdefgh" +} +``` + +**AWS CLI equivalent:** +```bash +aws dynamodb delete-backup --backup-arn "arn:aws:dynamodb:..." +``` + +## Relationships +- **CreateBackup / RestoreTableFromBackup**: sibling operations in the on-demand backup lifecycle +- **RestoreTableToPointInTime**: alternative restore path using PITR rather than on-demand backups +- **BackupInUseException**: conflicts with concurrent CreateBackup, DeleteBackup, or restore operations on the same table +- **LimitExceededException**: shared limit of ~500 concurrent table operations (CreateTable, UpdateTable, DeleteTable, UpdateTimeToLive, restore operations) +- Backup metadata captures table features (GSIs, LSIs, SSE, Streams, TTL), linking to those subsystems + +## Exam-Relevant Points +- **Rate limit**: max 10 DeleteBackup calls per second +- **No limit** on the number of daily on-demand backups that can be taken (but there are concurrent operation limits) +- **500 simultaneous table operations** per account (soft limit); drops to 250 when creating tables with secondary indexes +- **Soft account quota of 2,500 tables** +- **50 simultaneous import** table operations per account +- A backup cannot be deleted while another conflicting control plane operation (create/delete/restore) is in progress on the same table — throws `BackupInUseException` +- `BackupNotFoundException` (400) is returned if the ARN doesn't match an existing backup +- The response preserves the full table configuration snapshot (schema, throughput, indexes, encryption, streams, TTL) as it existed when the backup was created + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteItemhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteItemhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..312899e4c190184018693ee629e8e9f926cdd6f8 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteItemhtml.md @@ -0,0 +1,70 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DeleteItem.html +source: sources/amazondynamodb-latest-APIReference-API_DeleteItemhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:43 + + + +## Overview + +The DynamoDB `DeleteItem` API deletes a single item from a table by its primary key. It supports conditional deletes (only delete if conditions are met), returning the deleted item's attributes via `ReturnValues`, and is idempotent when used without conditions—repeated calls on the same key produce no error. + +## Key Concepts + +- **Primary key required**: Must provide all key attributes (partition key, and sort key if composite) +- **Idempotent without conditions**: Deleting a non-existent item without a condition expression is not an error +- **Conditional deletes**: Use `ConditionExpression` to delete only when specific conditions are met; if the condition fails, a `ConditionalCheckFailedException` is thrown +- **ReturnValues**: Set to `ALL_OLD` to get the item's attributes as they were before deletion; only `NONE` and `ALL_OLD` are valid for DeleteItem +- **ReturnValuesOnConditionCheckFailure**: Returns item attributes when a conditional delete fails (`ALL_OLD` or `NONE`) +- **No read capacity consumed** for returning old values—only network/processing overhead +- **TableName** accepts either the table name or its ARN +- **Legacy parameters**: `Expected` and `ConditionalOperator` are deprecated; use `ConditionExpression` instead +- **ExpressionAttributeNames** (`#name`): Substitute reserved words or special characters in expressions +- **ExpressionAttributeValues** (`:value`): Placeholder values used in condition expressions + +## Commands and Syntax + +```json +{ + "TableName": "Thread", + "Key": { + "ForumName": {"S": "Amazon DynamoDB"}, + "Subject": {"S": "How do I update multiple items?"} + }, + "ConditionExpression": "attribute_not_exists(Replies)", + "ReturnValues": "ALL_OLD" +} +``` + +**ConditionExpression functions**: `attribute_exists`, `attribute_not_exists`, `attribute_type`, `contains`, `begins_with`, `size` + +**Comparison operators**: `=`, `<>`, `<`, `>`, `<=`, `>=`, `BETWEEN`, `IN` + +**Logical operators**: `AND`, `OR`, `NOT` + +## Relationships + +- **PutItem / UpdateItem / GetItem**: Sibling single-item operations; DeleteItem is the write-side counterpart to GetItem +- **BatchWriteItem**: Can batch multiple DeleteItem requests (up to 25) but without condition expressions or return values +- **TransactWriteItems**: Supports DeleteItem as a transactional action with conditions +- **ConditionExpression**: Shared expression syntax with PutItem and UpdateItem +- **Local Secondary Indexes**: DeleteItem can trigger `ItemCollectionSizeLimitExceededException` on tables with LSIs (10 GB limit per partition key) +- **Global Tables**: `ReplicatedWriteConflictException` occurs when the same item is being modified in another Region +- **ConsumedCapacity**: Tracked via `ReturnConsumedCapacity` (same pattern as other DynamoDB operations) + +## Exam-Relevant Points + +- DeleteItem is **idempotent** without conditions — deleting a non-existent item succeeds silently +- Only `NONE` and `ALL_OLD` are valid `ReturnValues` for DeleteItem (not `UPDATED_OLD`, `ALL_NEW`, `UPDATED_NEW`) +- Returning old values does **not** consume additional read capacity units +- `ConditionalCheckFailedException` (HTTP 400) is thrown when a condition expression evaluates to false +- `ItemCollectionSizeLimitExceededException` only applies to tables with **local secondary indexes** (10 GB limit) +- `ReplicatedWriteConflictException` is specific to **global tables** with concurrent cross-region writes +- `ProvisionedThroughputExceededException` triggers automatic SDK retries with exponential backoff +- `TransactionConflictException` occurs when a transaction is already in progress on the item +- The `Expected` and `ConditionalOperator` parameters are **legacy**; always prefer `ConditionExpression` + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteResourcePolicyhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteResourcePolicyhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d5ab14f256c8b93e7ff7698f4ea882d7d37d5ef6 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteResourcePolicyhtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DeleteResourcePolicy.html +source: sources/amazondynamodb-latest-APIReference-API_DeleteResourcePolicyhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:43 + + + +## Overview +`DeleteResourcePolicy` is a DynamoDB API operation that removes a resource-based policy from a table or stream. It is idempotent and asynchronous, meaning repeated calls won't error (unless `ExpectedRevisionId` is specified) and the deletion may not take effect immediately. + +## Key Concepts +- **Resource-based policies** can be attached to DynamoDB tables and streams; this API removes them. +- **Idempotent**: Calling multiple times on the same resource doesn't produce an error, unless `ExpectedRevisionId` is provided and doesn't match (returns `PolicyNotFoundException`). +- **Asynchronous**: A `GetResourcePolicy` call immediately after deletion may still return the old policy; wait a few seconds before retrying. +- **Root principal safety net**: The AWS account root principal can always call `DeleteResourcePolicy`, even if the resource-based policy explicitly denies root access — preventing accidental lockout. +- **Cascading to indexes**: Removing a table's policy also removes permissions for that table's indexes, since index permissions are defined within the table's policy. + +## Commands and Syntax +**Request** (JSON): +```json +{ + "ResourceArn": "arn:aws:dynamodb:us-west-2:123456789012:table/Thread", + "ExpectedRevisionId": "optional-revision-id" +} +``` +- `ResourceArn` (required, max 1283 chars): ARN of the table or stream. +- `ExpectedRevisionId` (optional, max 255 chars): Conditional delete — fails with `PolicyNotFoundException` if the current revision doesn't match. + +**Response** (HTTP 200): +```json +{ + "RevisionId": "1683717331354" +} +``` +- `RevisionId`: Empty string if no policy existed on the resource. + +**X-Amz-Target**: `DynamoDB_20120810.DeleteResourcePolicy` + +## Relationships +- **GetResourcePolicy / PutResourcePolicy**: Companion APIs for reading and attaching resource-based policies. +- **DynamoDB resource-based access control**: Part of the broader RBAC model alongside IAM identity-based policies. +- **Table and stream ARNs**: The same ARN format used across DynamoDB APIs. +- **Optimistic locking via RevisionId**: Same pattern used in `PutResourcePolicy` for conditional updates. + +## Exam-Relevant Points +- The operation is **idempotent** — no error on repeated deletes unless `ExpectedRevisionId` is specified. +- The operation is **asynchronous** — eventual consistency applies when reading the policy back. +- **Root principal override**: Root can always delete the policy regardless of explicit denies (lockout prevention). +- Deleting a **table's** policy also removes permissions for its **indexes**. +- `PolicyNotFoundException` is returned when `ExpectedRevisionId` doesn't match or no policy exists (only when that parameter is provided). +- Know the error codes: `InternalServerError` (500), `LimitExceededException` (400), `PolicyNotFoundException` (400), `ResourceInUseException` (400), `ResourceNotFoundException` (400). + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteTablehtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteTablehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c5e9714b22cb272d7a3aa58632ec0d87016bc16b --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteTablehtml.md @@ -0,0 +1,61 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DeleteTable.html +source: sources/amazondynamodb-latest-APIReference-API_DeleteTablehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:44 + + + +## Overview +The `DeleteTable` API operation deletes a DynamoDB table and all of its items. The table must be in `ACTIVE` state to be deleted, after which it transitions to `DELETING` state until removal is complete. The operation also deletes all indexes on the table and disables any associated DynamoDB Streams (which are automatically deleted after 24 hours). + +## Key Concepts +- **State requirements**: Table must be in `ACTIVE` state to delete; `CREATING` or `UPDATING` states return `ResourceInUseException` +- **Idempotent for DELETING**: If the table is already in `DELETING` state, no error is returned +- **Non-existent table**: Returns `ResourceNotFoundException` +- **Eventual consistency of deletion**: DynamoDB may continue to accept read/write operations (`GetItem`, `PutItem`) on a table in `DELETING` state until deletion completes +- **Cascade behavior**: All indexes (GSIs and LSIs) on the table are deleted with it +- **Streams behavior**: Associated stream enters `DISABLED` state and is auto-deleted after 24 hours +- **DeletionProtectionEnabled**: Returned in the response — tables with this enabled would need protection removed before deletion +- **Request parameter**: Only `TableName` is required (also accepts table ARN); min length 1, max length 1024 +- **Response**: Returns full `TableDescription` with `TableStatus: "DELETING"` + +## Commands and Syntax +```bash +# AWS CLI +aws dynamodb delete-table --table-name Reply +``` + +```json +// API Request +POST / HTTP/1.1 +X-Amz-Target: DynamoDB_20120810.DeleteTable +{ "TableName": "Reply" } +``` + +```python +# boto3 +client.delete_table(TableName='Reply') +``` + +## Relationships +- **DescribeTable**: Use to check table status before/after deletion +- **CreateTable / UpdateTable / RestoreTable***: Share the 500 simultaneous table operations limit +- **DynamoDB Streams**: Streams are disabled and auto-deleted 24h after table deletion +- **Global Tables (Replicas)**: Response includes replica information — deleting a global table affects all replicas +- **Backups**: Existing backups are NOT mentioned as being deleted (they persist independently) +- **CloudTrail**: DeleteTable is a control plane operation logged in CloudTrail + +## Exam-Relevant Points +- **Concurrent operations limit**: Up to 500 simultaneous table operations (CreateTable, UpdateTable, DeleteTable, UpdateTimeToLive, RestoreTableFromBackup, RestoreTableToPointInTime) per account; reduced to 250 when creating tables with secondary indexes +- **Soft table quota**: 2,500 tables per account +- **Table must be ACTIVE to delete** — cannot delete a table that is still being created or updated +- **Deleting a table in DELETING state does NOT return an error** (idempotent) +- **Reads/writes may still succeed** briefly on a table in DELETING state +- **All indexes are deleted** with the table — no separate cleanup needed +- **Streams auto-delete after 24 hours** — not immediately +- **TableName parameter accepts ARN** as an alternative to the table name + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeBackuphtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeBackuphtml.md new file mode 100644 index 0000000000000000000000000000000000000000..6145b0a48166eea42970f0982e33dfb5e9faf4d2 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeBackuphtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeBackup.html +source: sources/amazondynamodb-latest-APIReference-API_DescribeBackuphtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:44 + + + +## Overview +`DescribeBackup` is a DynamoDB API action that retrieves detailed metadata about an existing on-demand backup of a table, including backup status, source table configuration, indexes, encryption settings, and streaming/TTL features at the time of backup. + +## Key Concepts +- Returns a `BackupDescription` object containing three sections: **BackupDetails**, **SourceTableDetails**, and **SourceTableFeatureDetails** +- **BackupDetails**: ARN, name, status, type, size, creation/expiry timestamps +- **SourceTableDetails**: original table's name, ARN, ID, key schema, billing mode, provisioned/on-demand throughput, item count, and table size +- **SourceTableFeatureDetails**: GSIs, LSIs, SSE (encryption) config, DynamoDB Streams config, and TTL settings as they were when the backup was created +- Rate limited to **10 calls per second** +- Requires only the `BackupArn` parameter (string, 37–1024 characters) + +## Commands and Syntax +```json +// Request +{ "BackupArn": "arn:aws:dynamodb:us-east-1:123456789012:table/MyTable/backup/01234567890123-abcdef" } +``` + +**Errors:** +- `BackupNotFoundException` (HTTP 400) — invalid or nonexistent ARN +- `InternalServerError` (HTTP 500) + +## Relationships +- Works with **CreateBackup** (creates the backups this API describes) and **DeleteBackup** +- Related to **ListBackups** for enumerating available backups +- Related to **RestoreTableFromBackup** which uses backup ARNs to restore +- Source table feature details mirror structures from **DescribeTable**, **DescribeTimeToLive**, and **DescribeContinuousBackups** +- Backup/restore is separate from **Point-in-Time Recovery (PITR)**, which uses continuous backups + +## Exam-Relevant Points +- On-demand backups capture table data **and** feature configuration (GSIs, LSIs, SSE, Streams, TTL) +- Rate limit: **10 requests/second** for this API +- `BackupType` distinguishes between user-created, system (AWS Backup), and AWS Backup-created backups +- Backup metadata includes `BackupSizeBytes` and `BackupStatus` — useful for monitoring backup completion +- Backups record the billing mode (provisioned vs. on-demand) and throughput settings at backup time — restored tables can differ from the original configuration + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeContinuousBackupshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeContinuousBackupshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d7a87b825c8894d74a2f5694ebfd2689219ad699 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeContinuousBackupshtml.md @@ -0,0 +1,58 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeContinuousBackups.html +source: sources/amazondynamodb-latest-APIReference-API_DescribeContinuousBackupshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:44 + + + +## Overview +The `DescribeContinuousBackups` API checks the status of continuous backups and point-in-time recovery (PITR) on a specified DynamoDB table, returning whether PITR is enabled and the restorable time window. + +## Key Concepts +- **Continuous backups are ENABLED on all DynamoDB tables at creation** — this is automatic and cannot be disabled +- **Point-in-time recovery (PITR)** is a separate setting that must be explicitly enabled; its status is reflected in `PointInTimeRecoveryStatus` +- **`LatestRestorableDateTime`** is typically **5 minutes before the current time** +- **Recovery window**: restore to any point in the **last 35 days** (configurable between **1 and 35 days** via `RecoveryPeriodInDays`) +- **Rate limit**: maximum **10 calls per second** +- The `TableName` parameter accepts either a table name or its **ARN** (min length 1, max length 1024) + +## Commands and Syntax +**Request** (JSON): +```json +{ "TableName": "string" } +``` + +**Response** (JSON): +```json +{ + "ContinuousBackupsDescription": { + "ContinuousBackupsStatus": "string", + "PointInTimeRecoveryDescription": { + "EarliestRestorableDateTime": number, + "LatestRestorableDateTime": number, + "PointInTimeRecoveryStatus": "string", + "RecoveryPeriodInDays": number + } + } +} +``` + +**Errors**: `InternalServerError` (500), `TableNotFoundException` (400) + +## Relationships +- **UpdateContinuousBackups** — used to enable/disable PITR (this API only reads status) +- **RestoreTableToPointInTime** — uses the time window reported by this API to perform restores +- **CreateBackup / RestoreTableFromBackup** — on-demand backup alternatives +- **DescribeTable** — complementary table metadata API + +## Exam-Relevant Points +- Continuous backups are **always enabled** — you cannot turn them off; only PITR is optional +- `LatestRestorableDateTime` lags by ~**5 minutes** — you cannot restore to the exact current moment +- Default and maximum recovery period is **35 days**; minimum is **1 day** +- The API accepts a table **ARN** as an alternative to the table name +- `TableNotFoundException` returns HTTP **400** (client error), not 404 + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeContributorInsightshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeContributorInsightshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..312a17dc36b7ad85d7179760abdd2a5ec641b283 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeContributorInsightshtml.md @@ -0,0 +1,58 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeContributorInsights.html +source: sources/amazondynamodb-latest-APIReference-API_DescribeContributorInsightshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:44 + + + +## Overview +`DescribeContributorInsights` is a DynamoDB API action that returns the current status and configuration of CloudWatch Contributor Insights for a specified table or global secondary index (GSI). It reveals which monitoring mode is active, the associated CloudWatch rules, and any failure details. + +## Key Concepts +- **Contributor Insights** integrates DynamoDB with CloudWatch Contributor Insights to identify the most accessed or throttled keys in a table or GSI. +- **Two monitoring modes**: `ACCESSED_AND_THROTTLED_KEYS` (tracks all access patterns) and `THROTTLED_KEYS` (tracks only throttled requests). +- **Status lifecycle**: `ENABLING` → `ENABLED`, `DISABLING` → `DISABLED`, or `FAILED`. +- **FailureException** reports why Contributor Insights failed to enable, with common causes being CloudWatch rule limits, insufficient IAM permissions, or internal errors. +- A **service-linked role** is required for Contributor Insights; creation can fail due to insufficient permissions. +- There is a **per-account limit** on CloudWatch Contributor Insights rules — exceeding it requires disabling insights on other tables/indexes first. + +## Commands and Syntax +**Request** (JSON): +```json +{ + "TableName": "my-table", // Required — table name or ARN (1–1024 chars) + "IndexName": "my-gsi" // Optional — GSI name (3–255 chars, pattern: [a-zA-Z0-9_.-]+) +} +``` + +**Response** (JSON): +```json +{ + "ContributorInsightsMode": "ACCESSED_AND_THROTTLED_KEYS", + "ContributorInsightsStatus": "ENABLED", + "ContributorInsightsRuleList": ["rule-name"], + "FailureException": { "ExceptionName": "...", "ExceptionDescription": "..." }, + "IndexName": "my-gsi", + "TableName": "my-table", + "LastUpdateDateTime": 1234567890 +} +``` + +## Relationships +- **CloudWatch Contributor Insights**: The underlying monitoring service that DynamoDB leverages for hot-key analysis. +- **UpdateContributorInsights**: Companion API to enable/disable the feature this API describes. +- **ListContributorInsights**: Lists Contributor Insights status across multiple tables. +- **IAM / Service-Linked Roles**: Required permissions for creating CloudWatch rules and the service-linked role. +- **GSI monitoring**: Can be applied per-index, not just per-table. + +## Exam-Relevant Points +- Contributor Insights helps identify **hot partition keys** and **throttled keys** — a key operational tool for diagnosing DynamoDB performance issues. +- The mode `ACCESSED_AND_THROTTLED_KEYS` tracks all access; `THROTTLED_KEYS` is a narrower, lower-cost option. +- The `TableName` parameter accepts either a table name or an **ARN** (max 1024 chars). +- Errors: `ResourceNotFoundException` (400) for missing tables/indexes; `InternalServerError` (500) for server-side failures. +- There is a **per-account CloudWatch rule limit** that can prevent enabling Contributor Insights on additional tables. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeEndpointshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeEndpointshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b01522819f9d48b654017ea0146a6428c7d61f30 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeEndpointshtml.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeEndpoints.html +source: sources/amazondynamodb-latest-APIReference-API_DescribeEndpointshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:45 + + + +## Overview +The `DescribeEndpoints` API returns regional endpoint information for Amazon DynamoDB. It is a simple read-only call with no request parameters that returns a list of endpoints with their addresses and cache durations. + +## Key Concepts +- Returns the **regional DynamoDB endpoint** address for the caller's region +- Each endpoint includes an **Address** (string) and a **CachePeriodInMinutes** (number) indicating how long the client should cache the endpoint +- Used for **endpoint discovery** — allows SDKs to dynamically resolve the correct DynamoDB endpoint rather than hardcoding it +- Related to **internetwork traffic privacy** policies (VPC endpoints, private connectivity) +- Returns an array of `Endpoint` objects; no request parameters required +- No API-specific errors — only common DynamoDB errors apply + +## Commands and Syntax + +**AWS CLI:** +```bash +aws dynamodb describe-endpoints +``` + +**Response format:** +```json +{ + "Endpoints": [ + { + "Address": "dynamodb.us-east-1.amazonaws.com", + "CachePeriodInMinutes": 1440 + } + ] +} +``` + +## Relationships +- **Endpoint discovery**: Some DynamoDB SDKs use this API automatically to resolve endpoints, especially when using DAX or VPC endpoints +- **VPC Endpoints / PrivateLink**: Connects to inter-network traffic privacy — when using interface VPC endpoints, `DescribeEndpoints` returns the private endpoint address +- **IAM permissions**: Requires `dynamodb:DescribeEndpoints` permission; relevant to least-privilege policy design + +## Exam-Relevant Points +- `DescribeEndpoints` takes **no input parameters** — it only returns data based on the region of the request +- The `CachePeriodInMinutes` field tells clients how long to cache the endpoint before re-querying +- This is a **control plane** operation, not a data plane operation +- Useful in architectures using **VPC endpoints** for DynamoDB where endpoint addresses differ from public endpoints + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeExporthtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeExporthtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c6d428e930ceacb742040ec0bbc101a8c14e1a9b --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeExporthtml.md @@ -0,0 +1,51 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeExport.html +source: sources/amazondynamodb-latest-APIReference-API_DescribeExporthtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:45 + + + +## Overview +The `DescribeExport` API retrieves details about an existing DynamoDB table export operation. It returns an `ExportDescription` object containing metadata such as export status, format, S3 destination, billing size, item count, timing, and failure information. + +## Key Concepts +- **ExportArn** — the sole required input parameter; an ARN between 37–1024 characters identifying the export +- **ExportDescription** — response object containing all export metadata: + - **ExportStatus** — current state of the export + - **ExportFormat** — format of the exported data + - **ExportType** — type of export (full vs incremental) + - **BilledSizeBytes / ItemCount** — size and count metrics for the export + - **S3 destination fields** — `S3Bucket`, `S3BucketOwner`, `S3Prefix`, `S3SseAlgorithm`, `S3SseKmsKeyId` + - **IncrementalExportSpecification** — for incremental exports, includes `ExportFromTime`, `ExportToTime`, and `ExportViewType` + - **FailureCode / FailureMessage** — populated when an export fails + - **StartTime / EndTime / ExportTime** — timing metadata + - **TableArn / TableId** — identifies the source table + +## Commands and Syntax +```json +// Request +{ "ExportArn": "arn:aws:dynamodb:us-east-1:123456789012:table/MyTable/export/01234567890123-a1b2c3d4" } + +// Response (key fields) +{ "ExportDescription": { "ExportStatus": "string", "ExportFormat": "string", "S3Bucket": "string", ... } } +``` + +## Relationships +- **ExportTableToPointInTime** — initiates the export that this API describes +- **ListExports** — lists exports that can then be described with this API +- **S3** — exports are written to S3; SSE configuration (AES256 or KMS) is reflected in the response +- **Point-in-Time Recovery (PITR)** — full exports leverage PITR snapshots +- **Incremental Exports** — the `IncrementalExportSpecification` ties to the incremental export feature + +## Exam-Relevant Points +- Only **ExportArn** is required; no table name or other identifier needed +- **ExportNotFoundException** returns HTTP **400** (not 404) +- **LimitExceededException** (HTTP 400) covers multiple quota scenarios: up to 500 simultaneous table operations, 250 with secondary indexes, 50 simultaneous imports, soft limit of 2,500 tables +- **InternalServerError** returns HTTP **500** +- Export metadata includes both **BilledSizeBytes** (what you pay for) and **ItemCount** +- S3 server-side encryption details are captured per-export (`S3SseAlgorithm`, `S3SseKmsKeyId`) + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeGlobalTableSettingshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeGlobalTableSettingshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..64d0840ccca375186cb79a943c5db92f5befa838 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeGlobalTableSettingshtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeGlobalTableSettings.html +source: sources/amazondynamodb-latest-APIReference-API_DescribeGlobalTableSettingshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:45 + + + +## Overview +`DescribeGlobalTableSettings` is a DynamoDB API action that retrieves Region-specific settings for a global table. It applies to the **legacy version (2017.11.29)** of global tables, which AWS recommends avoiding in favor of the current version (2019.11.21). + +## Key Concepts +- **Legacy API**: This operation belongs to Global Tables v2017.11.29 — new implementations should use v2019.11.21 +- **Region-specific settings**: Returns per-replica configuration including provisioned capacity, auto-scaling, billing mode, table class, and GSI settings +- **ReplicaSettings**: An array of `ReplicaSettingsDescription` objects, one per region the global table is replicated to +- **Auto-scaling configuration exposed**: Each replica and its GSIs expose full auto-scaling details — role ARN, min/max units, scaling policies (target tracking only), cooldown periods, and disable flags +- **Table name constraints**: 3–255 characters, pattern `[a-zA-Z0-9_.-]+` + +## Commands and Syntax +**Request** — single required parameter: +```json +{ "GlobalTableName": "my-global-table" } +``` + +**CLI equivalent**: +```bash +aws dynamodb describe-global-table-settings --global-table-name my-global-table +``` + +**Response** includes per-replica: `RegionName`, `ReplicaStatus`, `ReplicaBillingModeSummary`, provisioned read/write capacity units and auto-scaling settings, GSI-level capacity settings, and `ReplicaTableClassSummary`. + +## Relationships +- **DescribeGlobalTable**: Returns structural info (replica list, status); this API adds capacity/scaling detail per replica +- **UpdateGlobalTableSettings**: Companion write API to modify what this API reads +- **Global Tables v2019.11.21**: The recommended replacement; uses `DescribeTable` with replica information embedded rather than separate global table APIs +- **Application Auto Scaling**: The auto-scaling settings surfaced here are managed through Application Auto Scaling with target-tracking policies + +## Exam-Relevant Points +- Two versions of global tables exist: **2017.11.29 (Legacy)** and **2019.11.21 (Current)** — current version consumes less write capacity and should be preferred +- Legacy global tables have a **separate set of APIs** (`DescribeGlobalTable`, `DescribeGlobalTableSettings`, `UpdateGlobalTable`, `UpdateGlobalTableSettings`); current version folds this into standard table APIs +- `GlobalTableNotFoundException` returns **HTTP 400** (client error), not 404 +- Auto-scaling for DynamoDB uses **target tracking** scaling policies exclusively (no step scaling) +- Each replica can have independent read capacity settings; write capacity is managed globally but reported per-replica + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeGlobalTablehtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeGlobalTablehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..fa2f9fbaf388bf41592704dc723a9287c2b209ab --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeGlobalTablehtml.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeGlobalTable.html +source: sources/amazondynamodb-latest-APIReference-API_DescribeGlobalTablehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:45 + + + +## Overview +`DescribeGlobalTable` is a DynamoDB API action that returns information about a specified global table. **Important:** This API is for the **legacy** version (2017.11.29) of global tables. AWS recommends using Global Tables version 2019.11.21 (Current) for new deployments, as it offers greater flexibility, higher efficiency, and lower write capacity consumption. + +## Key Concepts +- **Legacy API** — applies only to Global Tables v2017.11.29; avoid for new tables +- **GlobalTableName** — required parameter; 3–255 characters matching `[a-zA-Z0-9_.-]+` +- **GlobalTableDescription** — response object containing table ARN, name, status, creation time, and replication group details +- **ReplicationGroup** — array of replica descriptors, each including region, status, GSI overrides, throughput overrides, KMS key, table class, and warm throughput settings +- **ReplicaStatus** — tracks the state of each regional replica (with description and percent progress fields) +- **Throughput overrides** — per-replica read capacity (provisioned) or max read request units (on-demand) can differ from the base table +- **WarmThroughput** — per-replica and per-GSI warm throughput settings (read/write units per second and status) + +## Commands and Syntax +**Request:** +```json +{ "GlobalTableName": "my-global-table" } +``` + +**AWS CLI equivalent:** +```bash +aws dynamodb describe-global-table --global-table-name my-global-table +``` + +**Errors:** +| Error | HTTP Code | Meaning | +|-------|-----------|---------| +| `GlobalTableNotFoundException` | 400 | Table does not exist | +| `InternalServerError` | 500 | Server-side failure | + +## Relationships +- **Global Tables v2019.11.21** — the current/recommended version; use `DescribeTable` instead for current-version global tables +- **CreateGlobalTable / UpdateGlobalTable** — companion legacy APIs for managing global tables +- **ReplicationGroup** ties into per-region replica configuration including **KMS encryption**, **GSI overrides**, and **table class** +- **On-demand vs. provisioned capacity modes** affect which throughput override fields are relevant + +## Exam-Relevant Points +- This API is **legacy only** (v2017.11.29) — know the version distinction for exam questions about global tables +- Global Tables v2019.11.21 consumes **less write capacity** and is the recommended version +- The table name constraint is 3–255 characters, alphanumeric plus `_`, `.`, `-` +- Per-replica throughput overrides allow **different read capacity in each region** +- `GlobalTableNotFoundException` returns HTTP **400** (client error), not 404 + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeImporthtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeImporthtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a2a49696c204acf5c642dad9f846bc659b8e4e6c --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeImporthtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeImport.html +source: sources/amazondynamodb-latest-APIReference-API_DescribeImporthtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:46 + + + +## Overview +The `DescribeImport` API retrieves the properties and status of a DynamoDB table import operation. It returns detailed information about the import source (S3), progress, errors, input format, and the table creation parameters used during the import. + +## Key Concepts +- **ImportArn**: The sole required input — an ARN (37–1024 chars) identifying the import operation, not the table itself. +- **ImportTableDescription**: The response object containing all import metadata, including: + - **ImportStatus**: Current state of the import operation + - **ErrorCount / FailureCode / FailureMessage**: Error tracking for the import + - **ProcessedItemCount / ImportedItemCount / ProcessedSizeBytes**: Progress metrics + - **StartTime / EndTime**: Timestamps for the import lifecycle + - **ClientToken**: Idempotency token associated with the import request + - **CloudWatchLogGroupArn**: Where import logs are sent +- **S3BucketSource**: Specifies the S3 bucket, owner account, and key prefix for the source data +- **InputFormat / InputCompressionType**: Format and compression of the source data +- **InputFormatOptions**: Format-specific options (e.g., CSV delimiter and header list) +- **TableCreationParameters**: Full table schema used during import — key schema, attribute definitions, GSIs, billing mode, SSE, throughput settings + +## Commands and Syntax +```json +// Request +{ + "ImportArn": "arn:aws:dynamodb:us-east-1:123456789012:table/MyTable/import/01234567890123" +} +``` + +**CLI equivalent:** +```bash +aws dynamodb describe-import --import-arn "arn:aws:dynamodb:..." +``` + +## Relationships +- **ImportTable**: The API that initiates the import (DescribeImport monitors it) +- **ListImports**: Lists import operations that can then be described +- **S3**: Source data resides in S3; cross-account access supported via `S3BucketOwner` +- **CloudWatch Logs**: Import operations can log to a CloudWatch log group +- **Table creation**: Import can create a new table with full schema (GSIs, SSE, billing mode, throughput) + +## Exam-Relevant Points +- The only error specific to this API is **ImportNotFoundException** (HTTP 400) — all others are common DynamoDB errors +- Import tracks both **ProcessedItemCount** (attempted) and **ImportedItemCount** (succeeded), plus **ErrorCount** +- Import supports **CSV input** with configurable delimiters and headers +- Table creation during import supports **on-demand throughput**, **provisioned throughput**, **warm throughput**, and **SSE** configuration +- The import source is always **S3** — cross-account imports are possible by specifying `S3BucketOwner` +- ImportArn is distinct from TableArn — both are returned in the response + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeKinesisStreamingDestinationhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeKinesisStreamingDestinationhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e00e9f533067142412e9ce29e183f32986ccdabb --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeKinesisStreamingDestinationhtml.md @@ -0,0 +1,62 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeKinesisStreamingDestination.html +source: sources/amazondynamodb-latest-APIReference-API_DescribeKinesisStreamingDestinationhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:46 + +## Overview +The `DescribeKinesisStreamingDestination` API returns the status of Kinesis Data Streams streaming destinations configured for a DynamoDB table. It is a read-only operation that reports on the replication pipeline from DynamoDB to Kinesis. + +## Key Concepts +- **Purpose**: Check the status of Kinesis streaming destinations attached to a DynamoDB table. +- **Input**: Requires only `TableName` (or table ARN), a string of 1–1024 characters. +- **Output**: Returns an array of `KinesisDataStreamDestination` objects, each containing: + - `DestinationStatus` – current status of the streaming link + - `DestinationStatusDescription` – human-readable status detail + - `StreamArn` – ARN of the target Kinesis data stream + - `ApproximateCreationDateTimePrecision` – precision of the creation timestamp on streamed records +- A single table can have **multiple** Kinesis streaming destinations (response is an array). + +## Commands and Syntax +```bash +# AWS CLI +aws dynamodb describe-kinesis-streaming-destination \ + --table-name MyTable +``` + +**Request JSON**: +```json +{ "TableName": "string" } +``` + +**Response JSON**: +```json +{ + "KinesisDataStreamDestinations": [ + { + "ApproximateCreationDateTimePrecision": "string", + "DestinationStatus": "string", + "DestinationStatusDescription": "string", + "StreamArn": "string" + } + ], + "TableName": "string" +} +``` + +## Relationships +- **EnableKinesisStreamingDestination / DisableKinesisStreamingDestination** – companion APIs that start and stop streaming; this API monitors their effect. +- **DynamoDB Streams** – an alternative change-data-capture mechanism; Kinesis streaming is the newer, higher-throughput option. +- **Kinesis Data Streams** – the downstream service that receives the streamed records. +- **UpdateKinesisStreamingDestination** – modifies settings (e.g., creation date precision) on an existing destination. + +## Exam-Relevant Points +- The API is **table-scoped** — you query one table at a time. +- `ResourceNotFoundException` (HTTP 400) is returned if the table doesn't exist or isn't `ACTIVE`. +- `InternalServerError` (HTTP 500) indicates a server-side failure. +- Table name can be supplied as either a plain name or a full ARN. +- The response field is named `KinesisDataStreamDestinations` (plural/array), reflecting that multiple streams can be attached to one table. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeLimitshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeLimitshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1a29e73e01ad17539f5eeee3a22e38122a0a1cd8 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeLimitshtml.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeLimits.html +source: sources/amazondynamodb-latest-APIReference-API_DescribeLimitshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:46 + + + +## Overview +The `DescribeLimits` API returns the current provisioned-capacity quotas for a DynamoDB account in a specific AWS Region, covering both account-level aggregate limits and per-table limits for new tables. It enables proactive capacity monitoring so you can request quota increases before hitting limits. + +## Key Concepts +- **Account-level quotas**: Maximum total read and write capacity units provisionable across *all* DynamoDB tables in a Region. +- **Per-table quotas**: Maximum read and write capacity units for a *new* table (including its GSIs) at creation time. These do not constrain increases to existing tables. +- **Existing tables**: Not subject to per-table quotas when scaling up; only the account-level aggregate quota applies. +- **Quota increases**: Requested via AWS Support Center; not instantaneous, so proactive monitoring is essential. +- **Throttling**: `DescribeLimits` should be called at most once per minute; more frequent calls will be throttled. +- **Default quotas** (from example): 20,000 RCU/WCU account-level; 10,000 RCU/WCU per-table. + +## Commands and Syntax +**API Request** — empty JSON body, target header selects the operation: +``` +X-Amz-Target: DynamoDB_20120810.DescribeLimits +{ } +``` + +**Response fields:** +| Field | Meaning | +|---|---| +| `AccountMaxReadCapacityUnits` | Aggregate RCU limit across all tables in the Region | +| `AccountMaxWriteCapacityUnits` | Aggregate WCU limit across all tables in the Region | +| `TableMaxReadCapacityUnits` | Max RCU for a new table + its GSIs | +| `TableMaxWriteCapacityUnits` | Max WCU for a new table + its GSIs | + +**Programmatic usage pattern:** +1. Call `DescribeLimits` to get quotas. +2. Call `ListTables` → `DescribeTable` for each table. +3. Sum provisioned RCU/WCU across all tables and their GSIs. +4. Compare totals against account quotas. + +## Relationships +- **ListTables / DescribeTable**: Used together with `DescribeLimits` to calculate current utilization vs. quotas. +- **Global Secondary Indexes (GSIs)**: Their provisioned capacity counts toward both per-table and account-level quotas. +- **Service Quotas**: Ties into the broader DynamoDB service quotas documentation and AWS Support Center for increases. +- **Auto Scaling / On-Demand**: Relevant only to provisioned capacity mode; on-demand tables are not constrained by these quotas in the same way. + +## Exam-Relevant Points +- `DescribeLimits` returns **four values**: account-max RCU, account-max WCU, table-max RCU, table-max WCU. +- **Per-table quotas apply only at table creation** — they include the table's own capacity plus all its GSIs. +- **Account-level quotas are aggregate** across all tables and GSIs in the Region. +- **Throttle limit**: Do not call more than once per minute. +- Quota increases require a **support case** and are **not instantaneous**. +- The only possible service-side error is `InternalServerError` (HTTP 500). + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTableReplicaAutoScalinghtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTableReplicaAutoScalinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d54912fedac2795530aafe8349643cb78d2c63ff --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTableReplicaAutoScalinghtml.md @@ -0,0 +1,58 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeTableReplicaAutoScaling.html +source: sources/amazondynamodb-latest-APIReference-API_DescribeTableReplicaAutoScalinghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:47 + + + +## Overview +`DescribeTableReplicaAutoScaling` is a DynamoDB API action that retrieves auto scaling configuration for all replicas of a global table in a single call, returning read/write capacity auto scaling settings for both the table replicas and their global secondary indexes. + +## Key Concepts +- Returns auto scaling settings **across all replicas** of a global table at once +- Covers both **read and write capacity** auto scaling settings per replica +- Includes auto scaling settings for **global secondary indexes (GSIs)** on each replica +- Auto scaling uses **target tracking scaling policies** with configurable scale-in/scale-out cooldowns and target utilization values +- Each auto scaling configuration includes: min units, max units, scaling role ARN, whether auto scaling is disabled, and scaling policies +- Only applies to tables using **provisioned capacity mode** (on-demand tables don't use auto scaling) + +## Commands and Syntax +**Request** — only requires the table name (or ARN): +```json +{ + "TableName": "string" // Required, 1–1024 chars, accepts ARN +} +``` + +**Response structure** (key fields per replica): +- `RegionName` — which region the replica is in +- `ReplicaStatus` — current status of the replica +- `ReplicaProvisionedReadCapacityAutoScalingSettings` — read scaling config +- `ReplicaProvisionedWriteCapacityAutoScalingSettings` — write scaling config +- `GlobalSecondaryIndexes[]` — per-GSI read/write scaling configs + +**Scaling policy fields:** +- `TargetValue` — target utilization percentage +- `ScaleInCooldown` / `ScaleOutCooldown` — seconds between scaling actions +- `DisableScaleIn` — whether scale-in is prevented +- `MinimumUnits` / `MaximumUnits` — capacity bounds + +## Relationships +- **Global Tables** — this API is specifically for multi-region global table replicas +- **Application Auto Scaling** — DynamoDB auto scaling is implemented via Application Auto Scaling with target tracking policies +- **UpdateTableReplicaAutoScaling** — companion API to modify these settings +- **DescribeTable** — returns general table info but not per-replica auto scaling detail +- **Provisioned capacity mode** — auto scaling only relevant when not using on-demand mode + +## Exam-Relevant Points +- The `TableName` parameter accepts either a table name **or an ARN** (max 1024 chars) +- Returns `ResourceNotFoundException` (HTTP 400) if the table doesn't exist or isn't ACTIVE +- Auto scaling uses an **IAM role** (`AutoScalingRoleArn`) to make scaling decisions +- GSI auto scaling is configured **independently** from the base table's auto scaling per replica +- Each replica can have **different** auto scaling settings (different min/max, target values) +- `DisableScaleIn` can be set to `true` to prevent capacity from scaling down — useful for predictable peak workloads + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTablehtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTablehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..06b37df4ded1980755f0d7481473dbf5b7dab3b1 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTablehtml.md @@ -0,0 +1,65 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeTable.html +source: sources/amazondynamodb-latest-APIReference-API_DescribeTablehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:47 + + + +## Overview +The `DescribeTable` API returns metadata about a DynamoDB table, including its current status, creation time, primary key schema, indexes, billing mode, encryption settings, global table replicas, and stream configuration. It accepts a table name or ARN and returns a `TableDescription` object. + +## Key Concepts +- **Eventually consistent metadata**: Calling `DescribeTable` immediately after `CreateTable` may throw `ResourceNotFoundException` because the API uses eventually consistent queries — retry after a few seconds. +- **TableName parameter**: Accepts either the table name or its full ARN. Min length 1, max length 1024. +- **TableStatus**: Indicates the current state of the table (e.g., `ACTIVE`, `CREATING`, `DELETING`). +- **ItemCount and TableSizeBytes**: Approximate values, not updated in real time — updated approximately every 6 hours. +- **BillingModeSummary**: Shows whether the table uses `PROVISIONED` or `PAY_PER_REQUEST` mode and when it was last changed. +- **DeletionProtectionEnabled**: Boolean indicating whether the table has deletion protection turned on. +- **WarmThroughput**: Surfaces warm throughput status and read/write units per second for tables, GSIs, and replicas. +- **GlobalTableWitnesses**: Regions serving as witnesses for global tables, with their status. +- **MultiRegionConsistency**: Indicates the consistency mode for global tables. +- **RestoreSummary**: Present if the table was restored from a backup, showing source ARN and restore status. +- **SSEDescription**: Server-side encryption details including KMS key ARN and SSE type. + +## Commands and Syntax +**HTTP Request:** +``` +POST / HTTP/1.1 +X-Amz-Target: DynamoDB_20120810.DescribeTable +Content-Type: application/x-amz-json-1.0 + +{ + "TableName": "Thread" +} +``` + +**AWS CLI equivalent:** +```bash +aws dynamodb describe-table --table-name Thread +``` + +**Errors:** +- `InternalServerError` (HTTP 500) — server-side failure +- `ResourceNotFoundException` (HTTP 400) — table doesn't exist or isn't `ACTIVE` + +## Relationships +- **CreateTable** — `DescribeTable` may fail immediately after `CreateTable` due to eventual consistency +- **Global Tables / Replicas** — response includes replica status, per-replica throughput overrides, KMS keys, and table class +- **DynamoDB Streams** — `LatestStreamArn` and `LatestStreamLabel` link to the table's stream +- **GSI/LSI** — full index metadata including key schema, projection, throughput, and backfill status +- **Backup/Restore** — `ArchivalSummary` and `RestoreSummary` connect to backup and PITR features +- **Encryption** — `SSEDescription` connects to KMS and encryption-at-rest configuration + +## Exam-Relevant Points +- `DescribeTable` is **eventually consistent** — expect `ResourceNotFoundException` right after table creation. +- `ItemCount` and `TableSizeBytes` are **approximate** (not real-time). +- The API can accept either a **table name or ARN** as the `TableName` parameter. +- GSI response includes a `Backfilling` boolean — important for understanding index build status. +- `NumberOfDecreasesToday` in provisioned throughput tracks how many times throughput was decreased (relevant to the limit of decreases per day). +- `DeletionProtectionEnabled` is a table-level safeguard against accidental deletion. +- Replica details include `ReplicaStatus`, `ReplicaStatusPercentProgress`, and per-replica throughput overrides — key for global table troubleshooting. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTimeToLivehtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTimeToLivehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..87e9e3f479452cedef1eb049aec1724166a1b3ed --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTimeToLivehtml.md @@ -0,0 +1,54 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeTimeToLive.html +source: sources/amazondynamodb-latest-APIReference-API_DescribeTimeToLivehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:47 + + + +## Overview +The `DescribeTimeToLive` API retrieves the Time to Live (TTL) configuration status for a specified DynamoDB table, returning the TTL attribute name and whether TTL is currently enabled. + +## Key Concepts +- **Purpose**: Read-only operation to check TTL status on a DynamoDB table +- **Input**: Requires only `TableName` (or table ARN), minimum 1 / maximum 1024 characters +- **Response**: Returns a `TimeToLiveDescription` object containing: + - `AttributeName` — the attribute used for TTL expiration timestamps + - `TimeToLiveStatus` — current status of TTL (e.g., `ENABLED`, `DISABLED`, `ENABLING`, `DISABLING`) +- **HTTP 200** on success + +## Commands and Syntax + +**Request:** +```json +{ + "TableName": "my-table" +} +``` + +**Response:** +```json +{ + "TimeToLiveDescription": { + "AttributeName": "expirationTime", + "TimeToLiveStatus": "ENABLED" + } +} +``` + +## Relationships +- **UpdateTimeToLive** — the write counterpart that enables/disables TTL +- **TimeToLiveDescription** — shared data type also returned by `DescribeTable` +- **DynamoDB Streams** — TTL deletions can generate stream records for downstream processing +- **Common Errors** — shares the standard DynamoDB error set + +## Exam-Relevant Points +- TTL is a per-table setting; you check it with `DescribeTimeToLive`, not `DescribeTable` (though `DescribeTable` also includes TTL info) +- Table can be referenced by **name or ARN** +- `ResourceNotFoundException` (HTTP 400) is returned if the table doesn't exist or isn't `ACTIVE` +- `InternalServerError` (HTTP 500) indicates a server-side failure +- TTL status has transitional states (`ENABLING`, `DISABLING`), not just on/off + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DisableKinesisStreamingDestinationhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DisableKinesisStreamingDestinationhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3b23169218f0fad3006e84a468f4f74cc84b2244 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_DisableKinesisStreamingDestinationhtml.md @@ -0,0 +1,51 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DisableKinesisStreamingDestination.html +source: sources/amazondynamodb-latest-APIReference-API_DisableKinesisStreamingDestinationhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:48 + + + +## Overview +The `DisableKinesisStreamingDestination` API stops replication from a DynamoDB table to a Kinesis Data Stream without deleting either resource. It is the counterpart to `EnableKinesisStreamingDestination` and is used to manage change-data-capture pipelines between DynamoDB and Kinesis. + +## Key Concepts +- **Purpose**: Stops streaming replication from a DynamoDB table to a Kinesis data stream; neither resource is deleted. +- **Destination Status lifecycle**: `ENABLING | ACTIVE | DISABLING | DISABLED | ENABLE_FAILED | UPDATING` — calling this API transitions the status toward `DISABLING` → `DISABLED`. +- **ApproximateCreationDateTimePrecision**: An optional configuration parameter carried over from the `EnableKinesisStreamingConfiguration` object; controls timestamp precision on streamed records. +- **Idempotency concern**: Calling this on an already-disabled or non-existent streaming destination may raise `ResourceNotFoundException` or `ResourceInUseException`. + +## Commands and Syntax +**Request (JSON)**: +```json +{ + "TableName": "my-table", + "StreamArn": "arn:aws:kinesis:us-east-1:123456789012:stream/my-stream", + "EnableKinesisStreamingConfiguration": { + "ApproximateCreationDateTimePrecision": "MILLISECOND" + } +} +``` +- **TableName** (required): Table name or ARN (1–1024 chars). +- **StreamArn** (required): Kinesis stream ARN (37–1024 chars). +- **EnableKinesisStreamingConfiguration** (optional): Streaming config object. + +**Response** returns `DestinationStatus`, `StreamArn`, `TableName`, and the streaming configuration. + +## Relationships +- **EnableKinesisStreamingDestination**: The inverse operation that starts replication. +- **UpdateKinesisStreamingDestination**: Modifies streaming settings while active. +- **DescribeKinesisStreamingDestination**: Checks the current streaming status. +- **DynamoDB Streams**: An alternative CDC mechanism native to DynamoDB (24-hour retention, different consumer model) vs. Kinesis streaming (longer retention, fan-out, KCL/Flink consumers). +- **Kinesis Data Streams**: The destination resource; must exist and be `ACTIVE`. + +## Exam-Relevant Points +- Disabling streaming does **not** delete the DynamoDB table or the Kinesis stream. +- The `DestinationStatus` field has six possible values — know the lifecycle: `ENABLING → ACTIVE → DISABLING → DISABLED` (plus `ENABLE_FAILED` and `UPDATING`). +- **LimitExceededException** details: soft limit of 2,500 tables per account; up to 500 simultaneous table operations (250 when creating tables with secondary indexes); max 2 concurrent readers per streams shard. +- **ResourceInUseException** occurs when the resource is already being modified — the correct response is to wait and retry. +- Both `TableName` and `StreamArn` are **required** parameters. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_EnableKinesisStreamingDestinationhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_EnableKinesisStreamingDestinationhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ada63b55e667b26585852ea962653e07cd03949c --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_EnableKinesisStreamingDestinationhtml.md @@ -0,0 +1,59 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_EnableKinesisStreamingDestination.html +source: sources/amazondynamodb-latest-APIReference-API_EnableKinesisStreamingDestinationhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:48 + + + +## Overview +The `EnableKinesisStreamingDestination` API starts replication of DynamoDB table data to a specified Amazon Kinesis Data Stream. It is an asynchronous operation—if results aren't immediate, `DescribeKinesisStreamingDestination` should be used to poll until the status becomes `ACTIVE`. + +## Key Concepts +- **Purpose**: Enables change data capture (CDC) from a DynamoDB table into a Kinesis Data Stream. +- **Asynchronous operation**: Returns immediately but streaming may not be active yet; poll with `DescribeKinesisStreamingDestination`. +- **Destination statuses**: `ENABLING | ACTIVE | DISABLING | DISABLED | ENABLE_FAILED | UPDATING` +- **ApproximateCreationDateTimePrecision**: Optional configuration controlling the precision of the timestamp indicating when an item was created/modified, set at enable time. +- **StreamArn constraints**: 37–1024 characters. +- **TableName constraints**: 1–1024 characters on request (accepts ARN or name); 3–255 characters in response (pattern: `[a-zA-Z0-9_.-]+`). + +## Commands and Syntax +**Request (JSON)**: +```json +{ + "TableName": "MyTable", + "StreamArn": "arn:aws:kinesis:us-east-1:123456789012:stream/my-stream", + "EnableKinesisStreamingConfiguration": { + "ApproximateCreationDateTimePrecision": "MILLISECOND" + } +} +``` +- **Required**: `StreamArn`, `TableName` +- **Optional**: `EnableKinesisStreamingConfiguration` + +**AWS CLI equivalent**: +```bash +aws dynamodb enable-kinesis-streaming-destination \ + --table-name MyTable \ + --stream-arn arn:aws:kinesis:us-east-1:123456789012:stream/my-stream +``` + +## Relationships +- **DescribeKinesisStreamingDestination** — poll for streaming status after enabling. +- **DisableKinesisStreamingDestination** — reverse operation to stop streaming. +- **UpdateKinesisStreamingDestination** — modify configuration (e.g., timestamp precision) on an active stream. +- **DynamoDB Streams** — alternative CDC mechanism (native DynamoDB stream vs. Kinesis destination); Kinesis streaming offers higher throughput and Kinesis ecosystem integration. +- **Kinesis Data Streams** — the target service receiving the replicated data. +- Shares the `LimitExceededException` quota with table-level operations (`CreateTable`, `UpdateTable`, etc.) — up to 500 concurrent operations, 2,500 table soft limit. + +## Exam-Relevant Points +- Kinesis streaming destination is **separate from DynamoDB Streams** — both can be active simultaneously on the same table. +- The operation is **asynchronous**; you must poll `DescribeKinesisStreamingDestination` for the `ACTIVE` status. +- `ResourceInUseException` is thrown if the resource is already being modified — retry after the ongoing update completes. +- `LimitExceededException` is shared with table-level control plane operations (500 concurrent limit, reduced for complex secondary index operations). +- The `ApproximateCreationDateTimePrecision` setting is configured **at enable time** via the optional `EnableKinesisStreamingConfiguration`. +- Both table name and table ARN are accepted in the `TableName` parameter. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExecuteStatementhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExecuteStatementhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3a03ae91911b738f1494a7d68475620663d4eb2b --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExecuteStatementhtml.md @@ -0,0 +1,70 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ExecuteStatement.html +source: sources/amazondynamodb-latest-APIReference-API_ExecuteStatementhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:48 + + + +## Overview + +The `ExecuteStatement` API allows you to perform reads (SELECT) and singleton writes on DynamoDB data using PartiQL, a SQL-compatible query language. Results are subject to a 1 MB dataset size limit per response and support pagination via `LastEvaluatedKey` and `NextToken`. + +## Key Concepts + +- **PartiQL interface**: Provides a SQL-like syntax for DynamoDB operations instead of the native JSON-based API (GetItem, Query, etc.) +- **Singleton writes only**: Write operations are limited to single-item operations (INSERT, UPDATE, DELETE for one item at a time) +- **1 MB response limit**: Read results stop at 1 MB of processed data, regardless of the `Limit` parameter +- **Two pagination mechanisms**: `LastEvaluatedKey` (for key-based continuation) and `NextToken` (for payload-limit continuation) — both may appear in responses +- **Empty `LastEvaluatedKey`** is the only reliable indicator that all results have been retrieved; a non-empty value does NOT guarantee more matching data exists +- **ConsistentRead**: Defaults to eventually consistent; set to `true` for strongly consistent reads +- **Statement max length**: 8,192 characters +- **Parameterized statements**: Parameters are passed as an array of `AttributeValue` objects (minimum 1 if provided) +- **ReturnValuesOnConditionCheckFailure**: Can return `ALL_OLD` attributes when a condition check fails, at no additional RCU cost +- **ReturnConsumedCapacity**: Three levels — `INDEXES` (per-index detail), `TOTAL` (aggregate only), `NONE` + +## Commands and Syntax + +**Request structure:** +```json +{ + "Statement": "SELECT * FROM MyTable WHERE pk = ?", + "Parameters": [{"S": "my-key-value"}], + "ConsistentRead": true, + "Limit": 100, + "NextToken": "...", + "ReturnConsumedCapacity": "TOTAL", + "ReturnValuesOnConditionCheckFailure": "ALL_OLD" +} +``` + +**Pagination pattern:** +1. Send initial `ExecuteStatement` request +2. Check response for `LastEvaluatedKey` or `NextToken` +3. If present, include `NextToken` in subsequent request +4. Repeat until `LastEvaluatedKey` is empty + +## Relationships + +- **PartiQL family**: Related to `BatchExecuteStatement` (batch operations) and `ExecuteTransaction` (transactional operations) +- **Classic API equivalents**: Serves as an alternative to `GetItem`, `Query`, `Scan`, `PutItem`, `UpdateItem`, `DeleteItem` +- **Capacity modes**: Interacts with both provisioned and on-demand throughput; throttling errors apply to both +- **Local Secondary Indexes**: `ItemCollectionSizeLimitExceededException` only applies to tables with LSIs (10 GB limit per item collection) +- **Transactions**: Can conflict with ongoing transactions (`TransactionConflictException`) + +## Exam-Relevant Points + +- `ExecuteStatement` supports **reads and singleton writes only** — not batch writes (use `BatchExecuteStatement` for that) +- The **1 MB limit** applies to processed items, not matched items — filtering via WHERE happens after reading +- **Two distinct pagination tokens**: `LastEvaluatedKey` and `NextToken` serve different purposes; both must be handled +- `LastEvaluatedKey` being **empty** is the only way to confirm all data has been read — non-empty does NOT mean more matching data exists +- **Three throttling-related errors**: `ProvisionedThroughputExceededException` (table/index level), `RequestLimitExceeded` (account quota), `ThrottlingException` (general) — all return HTTP 400 +- SDKs **automatically retry** `ProvisionedThroughputExceededException` with exponential backoff +- `DuplicateItemException` is specific to INSERT attempts with an existing primary key +- `ItemCollectionSizeLimitExceededException` only occurs on tables with **local secondary indexes** (10 GB collection limit) +- `ReturnValuesOnConditionCheckFailure` consumes **no additional read capacity** +- Statement maximum length is **8,192 characters** + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExecuteTransactionhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExecuteTransactionhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..22aee7d3e11e75606c587fc122ef64388df93d77 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExecuteTransactionhtml.md @@ -0,0 +1,65 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ExecuteTransaction.html +source: sources/amazondynamodb-latest-APIReference-API_ExecuteTransactionhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:49 + + + +## Overview +`ExecuteTransaction` is a DynamoDB API operation that performs transactional reads or writes using PartiQL statements. A transaction must consist entirely of read statements or entirely of write statements (no mixing), with the exception of the `EXISTS` function which can be used in write transactions for conditional checks similar to `ConditionCheck` in `TransactWriteItems`. + +## Key Concepts +- **PartiQL transactions**: Execute multiple PartiQL statements atomically as a single transaction +- **Homogeneous transactions**: All statements must be either reads OR writes — cannot mix both +- **EXISTS exception**: The `EXISTS` function can be used in write transactions for condition checking +- **Statement limit**: Minimum 1, maximum **100** PartiQL statements per transaction +- **Idempotency**: `ClientRequestToken` (1–36 chars) enables idempotent retries; reusing a token with a different payload throws `IdempotentParameterMismatchException` +- **ConsumedCapacity**: Returned values are ordered according to the ordering of the statements in the request +- **ReturnConsumedCapacity**: Valid values are `INDEXES`, `TOTAL`, or `NONE` +- **ReturnValuesOnConditionCheckFailure**: Can be set per statement to return item attributes when a condition check fails + +## Commands and Syntax +**Request structure:** +```json +{ + "ClientRequestToken": "string", + "ReturnConsumedCapacity": "INDEXES | TOTAL | NONE", + "TransactStatements": [ + { + "Statement": "PartiQL statement string", + "Parameters": [ { "S": "value" } ], + "ReturnValuesOnConditionCheckFailure": "string" + } + ] +} +``` + +**Response structure:** +```json +{ + "ConsumedCapacity": [ { "TableName": "...", "CapacityUnits": number } ], + "Responses": [ { "Item": { "attr": { "S": "value" } } } ] +} +``` + +## Relationships +- **PartiQL sibling APIs**: `ExecuteStatement` (single statement), `BatchExecuteStatement` (batch non-transactional) +- **Classic transaction APIs**: Equivalent to `TransactWriteItems` and `TransactGetItems` but using PartiQL syntax instead of native DynamoDB JSON operations +- **Conflict interactions**: `TransactGetItems` conflicts with concurrent `PutItem`, `UpdateItem`, `DeleteItem`, or `TransactWriteItems`; `TransactWriteItems` conflicts with concurrent `TransactWriteItems` on the same items +- **Capacity management**: Ties into provisioned vs. on-demand throughput; throttling behavior differs between modes + +## Exam-Relevant Points +- **Cannot mix reads and writes** in a single `ExecuteTransaction` call (except `EXISTS` for condition checks) +- **Max 100 statements** per transaction +- **Cross-account/cross-region transactions are not supported** — a table in a different account or region causes cancellation +- **Item size limit**: 400 KB per item; exceeding it during a transaction causes `TransactionCanceledException` +- **TransactionCanceledException** includes ordered `CancellationReasons` matching the statement order; items with no error have code `None` and `null` message +- **TransactionInProgressException** retry guidance: set `clientExecutionTimeout` to allow at least one retry after 5 seconds; use exponential backoff; inline recovery triggers after ~5 seconds from first attempt +- **Idempotency tokens** prevent duplicate execution but reject mismatched payloads with the same token +- **Cancellation reason codes**: `ConditionalCheckFailed`, `ItemCollectionSizeLimitExceeded`, `TransactionConflict`, `ProvisionedThroughputExceeded`, `ThrottlingError`, `ValidationError` +- **On-demand throttling** returns `ThrottlingError` with a message about automatic scaling; provisioned tables return `ProvisionedThroughputExceeded` + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExportTableToPointInTimehtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExportTableToPointInTimehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..91e3b4f73ef4fa95274f1372d4cc7fc9df57e307 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExportTableToPointInTimehtml.md @@ -0,0 +1,61 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ExportTableToPointInTime.html +source: sources/amazondynamodb-latest-APIReference-API_ExportTableToPointInTimehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:49 + + + +## Overview +The `ExportTableToPointInTime` API exports DynamoDB table data to an S3 bucket. It requires Point-in-Time Recovery (PITR) to be enabled on the source table, and can export a snapshot from any point within the PITR window. Supports both full and incremental exports in DYNAMODB_JSON or ION formats. + +## Key Concepts +- **Prerequisite**: Table must have Point-in-Time Recovery (PITR) enabled; otherwise `PointInTimeRecoveryUnavailableException` is thrown +- **Export formats**: `DYNAMODB_JSON` or `ION` +- **Export types**: `FULL_EXPORT` (default) or `INCREMENTAL_EXPORT` +- **Incremental exports** require an `IncrementalExportSpecification` with `ExportFromTime`, `ExportToTime`, and `ExportViewType` +- **ClientToken** provides idempotency — valid for 8 hours after the first completed request; reusing the same token with different parameters within that window raises `ExportConflictException` +- **Cross-account export**: `S3BucketOwner` is required when exporting to a bucket in a different AWS account +- **S3 encryption options**: `AES256` (S3-managed keys) or `KMS` (AWS KMS-managed keys) +- **ExportTime**: Unix epoch timestamp specifying the point-in-time snapshot; must fall within the PITR window + +## Commands and Syntax +**Required parameters**: `S3Bucket`, `TableArn` + +```json +{ + "TableArn": "arn:aws:dynamodb:us-east-1:123456789012:table/MyTable", + "S3Bucket": "my-export-bucket", + "S3Prefix": "exports/mytable/", + "ExportFormat": "DYNAMODB_JSON", + "ExportType": "FULL_EXPORT", + "ExportTime": 1678900000, + "S3SseAlgorithm": "KMS", + "S3SseKmsKeyId": "arn:aws:kms:us-east-1:123456789012:key/my-key-id", + "ClientToken": "unique-idempotency-token" +} +``` + +**Response** includes an `ExportDescription` with status tracking fields: `ExportArn`, `ExportStatus`, `BilledSizeBytes`, `ItemCount`, `StartTime`, `EndTime`, `FailureCode`/`FailureMessage`. + +## Relationships +- **Point-in-Time Recovery**: Must be enabled via `UpdateContinuousBackups` before export +- **S3**: Target destination; requires appropriate bucket policies for cross-account scenarios +- **KMS**: Optional encryption for exported data at rest +- **DynamoDB Streams / Kinesis**: Incremental exports offer an alternative to streams for change tracking +- **Import**: Complements `ImportTable` for table migration workflows +- **Backup/Restore**: Alternative to `CreateBackup`/`RestoreTableFromBackup` for data portability + +## Exam-Relevant Points +- PITR **must** be enabled before calling this API — this is a hard prerequisite +- `ExportTime` must be within the PITR recovery window or `InvalidExportTimeException` is thrown +- ClientToken idempotency lasts **8 hours**; same token + different params = `ExportConflictException` +- Cross-account exports require `S3BucketOwner` (12-digit account ID) +- Two export formats: `DYNAMODB_JSON` and `ION` +- Two export types: `FULL_EXPORT` and `INCREMENTAL_EXPORT` +- Export does **not** consume table read capacity (it works from PITR snapshots) +- Account limit: up to **500 simultaneous table operations** (shared across Create/Update/Delete/Restore), soft limit of **2,500 tables** + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_GetItemhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_GetItemhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..47c53e3a5608aecf39b6e7670333ef9599b34321 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_GetItemhtml.md @@ -0,0 +1,59 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_GetItem.html +source: sources/amazondynamodb-latest-APIReference-API_GetItemhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:49 + + + +## Overview +The `GetItem` API operation retrieves a single item from a DynamoDB table by its primary key. It returns the item's attributes (all or a projected subset) and defaults to eventually consistent reads, with an option for strongly consistent reads via the `ConsistentRead` parameter. If no matching item exists, the response contains no `Item` element. + +## Key Concepts +- **Primary key is required**: You must provide all components — partition key alone for simple keys, partition key + sort key for composite keys. +- **Eventually consistent by default**: Set `ConsistentRead: true` for strongly consistent reads (costs more capacity). +- **Capacity cost**: A strongly consistent read consumes **1 RCU** (for items up to 4 KB); an eventually consistent read consumes **0.5 RCU**. +- **ProjectionExpression**: Specifies which attributes to return; replaces the legacy `AttributesToGet` parameter. +- **ExpressionAttributeNames**: Use `#name` placeholders to handle reserved words or special characters in attribute names. +- **No item = no `Item` field**: The response simply omits the `Item` element rather than returning an error. +- **ReturnConsumedCapacity**: Set to `TOTAL` or `INDEXES` to get capacity consumption metrics; `NONE` (default) omits them. +- **Attribute name max length**: 65,535 characters. +- **TableName**: Accepts either the table name or its ARN (min 1, max 1024 characters). + +## Commands and Syntax +```json +// Minimal GetItem request +{ + "TableName": "Thread", + "Key": { + "ForumName": { "S": "Amazon DynamoDB" }, + "Subject": { "S": "How do I update multiple items?" } + }, + "ProjectionExpression": "LastPostDateTime, Message, Tags", + "ConsistentRead": true, + "ReturnConsumedCapacity": "TOTAL" +} +``` + +**HTTP target header**: `X-Amz-Target: DynamoDB_20120810.GetItem` + +## Relationships +- **BatchGetItem**: Retrieves multiple items across one or more tables in a single call (uses GetItem semantics per item). +- **Query / Scan**: For retrieving multiple items by key condition or full-table sweep. +- **PutItem / UpdateItem / DeleteItem**: Complementary write operations on individual items. +- **ConsumedCapacity**: Shared response structure with other DynamoDB read/write operations. +- **Provisioned throughput / On-demand**: Capacity mode determines how throttling behaves. +- **DAX**: DynamoDB Accelerator caches GetItem results; consistent reads bypass the cache. + +## Exam-Relevant Points +- Eventually consistent reads cost **0.5 RCU** per 4 KB; strongly consistent reads cost **1 RCU** per 4 KB. +- `GetItem` does **not** access secondary indexes — specifying `INDEXES` for `ReturnConsumedCapacity` still only returns table-level capacity. +- A missing item is **not an error** — the HTTP status is still 200, but no `Item` element is returned. +- `ProvisionedThroughputExceededException` (HTTP 400) triggers automatic SDK retries with exponential backoff. +- `ResourceNotFoundException` (HTTP 400) means the table/index doesn't exist or isn't `ACTIVE`. +- `AttributesToGet` is legacy — always prefer `ProjectionExpression`. +- You must supply **all** primary key attributes (partition key + sort key if composite); omitting the sort key is an error. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_GetResourcePolicyhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_GetResourcePolicyhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..18a1c4971ec4ec6e1c7ccc7ebe4cfbcc3b49cfe3 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_GetResourcePolicyhtml.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_GetResourcePolicy.html +source: sources/amazondynamodb-latest-APIReference-API_GetResourcePolicyhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:50 + + + +## Overview +The `GetResourcePolicy` API retrieves the resource-based policy document (in JSON format) attached to a DynamoDB table or stream. It follows an eventually consistent model, meaning results may be stale immediately after policy creation, update, or deletion. + +## Key Concepts +- **Resource-based policies**: JSON policy documents attached directly to DynamoDB tables or streams (as opposed to identity-based IAM policies) +- **Eventually consistent reads**: `GetResourcePolicy` may not immediately reflect changes from `PutResourcePolicy`, `DeleteResourcePolicy`, or `CreateTable` +- **RevisionId**: A unique string identifier for the policy revision; must be compared using string comparison logic +- **Supported resources**: Tables and streams (specified via ARN) + +## Commands and Syntax +**Request** — single required parameter: +```json +{ + "ResourceArn": "arn:aws:dynamodb:us-west-2:123456789012:table/Thread" +} +``` +- `ResourceArn` (string, required): ARN of the table or stream. Min length 1, max 1283. + +**Response**: +```json +{ + "Policy": "", + "RevisionId": "1683717331354" +} +``` + +**X-Amz-Target**: `DynamoDB_20120810.GetResourcePolicy` + +## Relationships +- **PutResourcePolicy / DeleteResourcePolicy**: Write counterparts; `GetResourcePolicy` may lag behind these due to eventual consistency +- **CreateTable**: Can attach a resource-based policy at creation time; policy is guaranteed to apply to all requests for that table +- **DynamoDB Read Consistency model**: The eventual consistency behavior here mirrors DynamoDB's general read consistency concepts +- **IAM resource-based policies**: Part of the broader DynamoDB access control model alongside identity-based policies + +## Exam-Relevant Points +- `GetResourcePolicy` is **eventually consistent** — expect `PolicyNotFoundException` or stale data immediately after writes +- Policies attached via `CreateTable` are always applied to all requests (no eventual consistency delay for authorization) +- Policies attached via `PutResourcePolicy` take time to propagate for authorization, even after `GetResourcePolicy` returns them +- Error codes: `PolicyNotFoundException` (400), `ResourceNotFoundException` (400), `InternalServerError` (500) +- `RevisionId` uses **string comparison**, not numeric + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ImportTablehtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ImportTablehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..54b78468d366b31584ec63a2a864b33def51d298 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ImportTablehtml.md @@ -0,0 +1,61 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ImportTable.html +source: sources/amazondynamodb-latest-APIReference-API_ImportTablehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:50 + + + +## Overview +The `ImportTable` API imports data from an S3 bucket into a new DynamoDB table. It supports CSV, DynamoDB JSON, and ION input formats with optional GZIP or ZSTD compression, and creates the target table as part of the import operation (including key schema, billing mode, GSIs, and encryption settings). + +## Key Concepts +- **Import source**: Data must reside in an S3 bucket; you specify bucket name, optional owner account, and key prefix +- **Supported input formats**: `DYNAMODB_JSON`, `ION`, `CSV` — format is required +- **Compression types**: `GZIP`, `ZSTD`, or `NONE` (optional, defaults to NONE) +- **CSV options**: Configurable delimiter and explicit header list via `InputFormatOptions` +- **Table creation is inline**: The API creates the table — you define `AttributeDefinitions`, `KeySchema`, `BillingMode`, GSIs, SSE, and throughput settings as part of the request +- **Idempotency via ClientToken**: Valid for 8 hours; resubmitting with the same token and parameters is safe. Changed parameters with the same token raises `IdempotentParameterMismatch` +- **Import tracking**: Response includes `ImportArn`, `ImportStatus`, `ImportedItemCount`, `ProcessedItemCount`, `ProcessedSizeBytes`, `ErrorCount`, and CloudWatch log group ARN +- **Concurrency limit**: Up to **50 simultaneous import operations** per account +- **Table operations limit**: Up to 500 simultaneous table operations per account (imports count toward this) +- **Soft table quota**: 2,500 tables per account + +## Commands and Syntax +```bash +# AWS CLI v2 +aws dynamodb import-table \ + --input-format CSV \ + --input-compression-type GZIP \ + --input-format-options '{"Csv":{"Delimiter":",","HeaderList":["id","name","value"]}}' \ + --s3-bucket-source '{"S3Bucket":"my-bucket","S3KeyPrefix":"exports/"}' \ + --table-creation-parameters '{ + "TableName":"MyTable", + "KeySchema":[{"AttributeName":"id","KeyType":"HASH"}], + "AttributeDefinitions":[{"AttributeName":"id","AttributeType":"S"}], + "BillingMode":"PAY_PER_REQUEST" + }' +``` + +## Relationships +- **S3**: Source bucket for import data; cross-account access supported via `S3BucketOwner` +- **ExportTableToPointInTime**: Complementary API that exports DynamoDB data to S3 (round-trip possible using DYNAMODB_JSON format) +- **CreateTable**: ImportTable implicitly creates the table — `TableCreationParameters` mirrors CreateTable parameters +- **CloudWatch Logs**: Import progress and errors are logged to a CloudWatch log group (ARN returned in response) +- **SSE / KMS**: Encryption at rest can be configured during import via `SSESpecification` +- **Global Secondary Indexes**: Can be defined at import time, same as table creation + +## Exam-Relevant Points +- ImportTable **creates a new table** — you cannot import into an existing table +- Maximum **50 concurrent imports** per account +- Input formats: `CSV`, `DYNAMODB_JSON`, `ION` — know all three +- Compression: `GZIP`, `ZSTD`, `NONE` +- ClientToken idempotency window is **8 hours** +- The response tracks both `ProcessedItemCount` and `ImportedItemCount` separately (processed ≠ imported when errors occur) +- `ImportConflictException` occurs when a new import conflicts with a previous import using the same client token +- `LimitExceededException` is thrown when exceeding 50 concurrent imports or 500 concurrent table operations +- `ResourceInUseException` if the target table name already exists + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListBackupshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListBackupshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..93d92caa6bde4f3c997dbd1a168804847ebed108 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListBackupshtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ListBackups.html +source: sources/amazondynamodb-latest-APIReference-API_ListBackupshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:50 + + + +## Overview +The `ListBackups` API lists DynamoDB on-demand backups associated with an AWS account that were **not** made with AWS Backup. It supports filtering by table name, backup type, and time range, returning paginated results (max 1 MB per page, max 100 entries). + +## Key Concepts +- **Scope**: Only lists DynamoDB-native backups; AWS Backup-created backups require the AWS Backup `ListBackupJobs` API instead +- **Backup types**: `USER` (manual on-demand), `SYSTEM` (auto-created by DynamoDB), `AWS_BACKUP`, `ALL` +- **Default backup type**: `USER` if not specified +- **Pagination**: Uses `LastEvaluatedBackupArn` / `ExclusiveStartBackupArn` token pattern; empty `LastEvaluatedBackupArn` confirms no more pages +- **Time range boundaries**: `TimeRangeLowerBound` is **inclusive**, `TimeRangeUpperBound` is **exclusive** (based on original backup request time) +- **Rate limit**: Max 5 calls per second +- **Response object** (`BackupSummary`): Includes BackupArn, BackupName, BackupStatus, BackupType, BackupSizeBytes, BackupCreationDateTime, BackupExpiryDateTime, TableArn, TableId, TableName + +## Commands and Syntax +```json +// Request +{ + "BackupType": "USER | SYSTEM | AWS_BACKUP | ALL", + "ExclusiveStartBackupArn": "arn:aws:dynamodb:...", + "Limit": 100, + "TableName": "MyTable", + "TimeRangeLowerBound": 1609459200, + "TimeRangeUpperBound": 1612137600 +} +``` +All parameters are optional. `TableName` accepts either a table name or table ARN. `Limit` range: 1–100. + +## Relationships +- **AWS Backup**: Complementary service; use `ListBackupJobs` for backups made via AWS Backup +- **BackupSummary**: Response references the `BackupSummary` data type +- **CreateBackup / DeleteBackup / RestoreTableFromBackup**: Related backup lifecycle APIs +- **On-demand backup feature**: This API is part of DynamoDB's native backup and restore capability (distinct from point-in-time recovery) + +## Exam-Relevant Points +- `ListBackups` does **not** include AWS Backup-created backups by default — you must use the AWS Backup API or specify `BackupType: AWS_BACKUP` +- Time range lower bound is inclusive, upper bound is exclusive +- Throttle limit is **5 TPS** +- Pagination completeness: results are fully returned **only** when `LastEvaluatedBackupArn` is empty/absent +- `SYSTEM` backups are automatically created by DynamoDB (distinct from user-initiated on-demand backups) + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListContributorInsightshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListContributorInsightshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..4e70f53c53759a715ca5996eec01ffff3f95b505 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListContributorInsightshtml.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ListContributorInsights.html +source: sources/amazondynamodb-latest-APIReference-API_ListContributorInsightshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:50 + +## Overview +The `ListContributorInsights` API returns a list of `ContributorInsightsSummary` objects for a DynamoDB table and all its global secondary indexes (GSIs). It supports pagination and optional filtering by table name. + +## Key Concepts +- **Contributor Insights** is a DynamoDB feature that identifies the most accessed (hot) keys and items in a table or GSI using CloudWatch Contributor Insights rules. +- This API lists the **status** of Contributor Insights for a table and each of its GSIs — it does not return the actual insights data. +- Each summary includes: `TableName`, `IndexName`, `ContributorInsightsMode`, and `ContributorInsightsStatus`. +- All request parameters are **optional** — calling with no parameters returns insights summaries across all tables. +- `MaxResults` caps at **100** per page; pagination is handled via `NextToken`. + +## Commands and Syntax +```json +// Request +{ + "TableName": "MyTable", // optional, min 1 / max 1024 chars, accepts ARN + "MaxResults": 100, // optional, max 100 + "NextToken": "..." // optional, for pagination +} + +// Response +{ + "ContributorInsightsSummaries": [ + { + "TableName": "MyTable", + "IndexName": "MyGSI", + "ContributorInsightsMode": "ENABLED", + "ContributorInsightsStatus": "ENABLED" + } + ], + "NextToken": "..." +} +``` + +## Relationships +- **DescribeContributorInsights** — retrieves detailed status for a specific table/index (this API lists all). +- **UpdateContributorInsights** — enables or disables Contributor Insights on a table/index. +- **CloudWatch Contributor Insights** — the underlying CloudWatch feature that powers DynamoDB's hot-key detection. +- **Global Secondary Indexes** — each GSI gets its own independent Contributor Insights entry. + +## Exam-Relevant Points +- Contributor Insights covers both the **base table and each GSI independently**. +- `TableName` accepts either a table name or its **ARN**. +- The API returns `ResourceNotFoundException` (HTTP 400) if the table/index doesn't exist or isn't `ACTIVE`. +- Max page size is **100** results. +- This is a **read-only/list** operation — it does not modify Contributor Insights settings. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListExportshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListExportshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..55560fe8975cfd4006539868ab64ca3d71d9cf53 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListExportshtml.md @@ -0,0 +1,62 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ListExports.html +source: sources/amazondynamodb-latest-APIReference-API_ListExportshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:51 + + + +## Overview +The `ListExports` API operation in Amazon DynamoDB retrieves completed table exports from the past 90 days, returned in reverse alphanumeric order by `ExportArn`. It supports pagination and optional filtering by table ARN. + +## Key Concepts +- **90-day window**: Only exports completed within the last 90 days are returned. +- **Ordering**: Results are sorted in reverse alphanumeric order of `ExportArn`. +- **Pagination**: Uses `NextToken` for iterating through results, with a maximum of **25 results per page**. +- **Optional table filter**: The `TableArn` parameter allows scoping results to exports from a specific table. +- **ExportSummary objects**: Each result contains `ExportArn`, `ExportStatus`, and `ExportType`. + +## Commands and Syntax + +**Request:** +```json +{ + "MaxResults": 25, + "NextToken": "string", + "TableArn": "arn:aws:dynamodb:us-east-1:123456789012:table/MyTable" +} +``` + +**Response:** +```json +{ + "ExportSummaries": [ + { + "ExportArn": "string", + "ExportStatus": "string", + "ExportType": "string" + } + ], + "NextToken": "string" +} +``` + +**Pagination pattern:** If `NextToken` is present in the response, pass it back in the next request to retrieve additional pages. + +## Relationships +- **ExportTableToPointInTime** — creates the exports that this API lists. +- **DescribeExport** — retrieves detailed information about a specific export by ARN. +- **S3 Data Export** — exports land in S3; this API tracks their metadata. +- **LimitExceededException** references shared account limits with `CreateTable`, `UpdateTable`, `DeleteTable`, `UpdateTimeToLive`, `RestoreTableFromBackup`, `RestoreTableToPointInTime`, and import operations. + +## Exam-Relevant Points +- Exports are only visible for **90 days** after completion. +- **MaxResults** cap is **25** per page (minimum 1). +- `TableArn` max length is **1024 characters**. +- Soft account quota: **2,500 tables**; up to **500 simultaneous table operations**; up to **50 simultaneous imports**. +- When creating tables with secondary indexes, concurrent operation limit drops to **250**. +- DynamoDB Streams: max **2 processes** reading from the same shard concurrently; exceeding causes throttling. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListGlobalTableshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListGlobalTableshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..fd1ed6f3c9fff6dd3f5212f9257d9b785adca2d4 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListGlobalTableshtml.md @@ -0,0 +1,59 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ListGlobalTables.html +source: sources/amazondynamodb-latest-APIReference-API_ListGlobalTableshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:51 + + + +## Overview +The `ListGlobalTables` API lists all DynamoDB global tables that have a replica in a specified Region. This is a **legacy API** (version 2017.11.29) and should not be used for new global tables — version 2019.11.21 (Current) is preferred. + +## Key Concepts +- Lists global tables filtered by Region +- Returns paginated results (default limit: 100) +- Uses `ExclusiveStartGlobalTableName` / `LastEvaluatedGlobalTableName` for pagination (same pattern as other DynamoDB list operations) +- All parameters are optional +- Response includes table names and their replication groups (list of regions per table) +- Only error specific to this API is `InternalServerError` (500) + +## Commands and Syntax + +**Request (JSON):** +```json +{ + "ExclusiveStartGlobalTableName": "string", // optional, min 3 / max 255 chars + "Limit": number, // optional, min 1, default 100 + "RegionName": "string" // optional, filter by region +} +``` + +**Response (JSON):** +```json +{ + "GlobalTables": [ + { + "GlobalTableName": "string", + "ReplicationGroup": [ { "RegionName": "string" } ] + } + ], + "LastEvaluatedGlobalTableName": "string" // use for next page +} +``` + +## Relationships +- **Global Tables (Legacy v2017.11.29)** — this API only applies to the legacy version +- **Global Tables (Current v2019.11.21)** — preferred version; uses `DescribeTable` / standard table APIs instead +- **CreateGlobalTable / DescribeGlobalTable / UpdateGlobalTable** — companion legacy global table APIs +- Pagination pattern is consistent with `ListTables`, `ListBackups`, etc. + +## Exam-Relevant Points +- This is a **legacy API** — new implementations should use Global Tables v2019.11.21 +- Default page size is **100** if `Limit` is not specified +- Pagination uses exclusive-start-key pattern (not tokens), consistent with other DynamoDB list APIs +- Table name constraints: 3–255 characters, pattern `[a-zA-Z0-9_.-]+` +- The response reveals which regions each global table replicates to + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListImportshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListImportshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b5e2c8367f0230a57c050dde5d37a89dcefe46f4 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListImportshtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ListImports.html +source: sources/amazondynamodb-latest-APIReference-API_ListImportshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:51 + + + +## Overview +The `ListImports` API operation for Amazon DynamoDB retrieves a list of completed import operations from the past 90 days. It supports pagination and optional filtering by target table ARN. + +## Key Concepts +- **90-day window**: Only imports completed within the last 90 days are returned. +- **Pagination**: Results are paginated with a maximum page size of 25 items per request; use `NextToken` to iterate. +- **ImportSummary**: Each result includes import ARN, status, input format, S3 source details, start/end times, target table ARN, and optional CloudWatch log group ARN. +- **All parameters are optional**: `TableArn` filters by destination table; without it, all imports for the account are listed. + +## Commands and Syntax +**Request (JSON)**: +```json +{ + "TableArn": "arn:aws:dynamodb:us-east-1:123456789012:table/MyTable", + "PageSize": 25, + "NextToken": "string" +} +``` + +**Pagination pattern**: If `NextToken` is present in the response, pass it as `NextToken` in the next request to fetch additional pages. + +## Relationships +- **ImportTable**: The operation that creates the imports listed here. +- **DescribeImport**: Retrieves detailed information about a single import by ARN. +- **S3BucketSource**: Imports originate from S3; each summary references the source bucket, owner, and key prefix. +- **CloudWatch Logs**: Imports can optionally log to a CloudWatch log group (referenced via `CloudWatchLogGroupArn`). + +## Exam-Relevant Points +- Completed imports are only retrievable for **90 days**. +- Maximum **page size is 25**; `NextToken` pattern is `([0-9a-f]{16})+` with length 112–1024. +- **LimitExceededException** can occur — key limits to know: + - Up to **50 simultaneous import table operations** per account. + - Up to **500 simultaneous table operations** per account (CreateTable, UpdateTable, DeleteTable, etc.). + - Up to **250 concurrent operations** when creating tables with secondary indexes. + - Soft account quota of **2,500 tables**. + - DynamoDB Streams: max **2 concurrent readers** per shard; GetRecords limit of **1,000** per call. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListTableshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListTableshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3333160d0666ea8b3b0a654902f53678155ed8ae --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListTableshtml.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ListTables.html +source: sources/amazondynamodb-latest-APIReference-API_ListTableshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:51 + + + +## Overview +The `ListTables` API returns an array of DynamoDB table names associated with the current account and endpoint. Results are paginated with a maximum of 100 table names per page, using `ExclusiveStartTableName` and `LastEvaluatedTableName` for cursor-based pagination. + +## Key Concepts +- Returns table names scoped to the **current account and endpoint** (region-specific) +- Maximum **100 table names per page** (default and hard limit) +- Uses **cursor-based pagination** — not offset-based +- Table name constraints: 3–255 characters, pattern `[a-zA-Z0-9_.-]+` +- No required parameters — both `ExclusiveStartTableName` and `Limit` are optional +- Absence of `LastEvaluatedTableName` in the response indicates no more pages + +## Commands and Syntax + +**Request:** +```json +{ + "ExclusiveStartTableName": "string", // optional, resume pagination + "Limit": number // optional, 1–100, default 100 +} +``` + +**Response:** +```json +{ + "LastEvaluatedTableName": "string", // absent if no more results + "TableNames": ["string"] // max 100 entries +} +``` + +**HTTP target header:** `X-Amz-Target: DynamoDB_20120810.ListTables` + +**Pagination loop pattern:** pass `LastEvaluatedTableName` from response as `ExclusiveStartTableName` in next request; stop when `LastEvaluatedTableName` is absent. + +## Relationships +- **DescribeTable** — use table names from `ListTables` to get details +- **CreateTable / DeleteTable** — modify the set of tables returned by this API +- Part of the DynamoDB **control plane** operations (not data plane) +- Only error beyond common errors is `InternalServerError` (500) — this is a simple read-only operation with no resource-specific authorization failures + +## Exam-Relevant Points +- Default and maximum page size is **100** tables +- Results are scoped to **account + endpoint (region)** — not global +- Pagination uses **ExclusiveStartTableName** (not a token) — the cursor is a table name, not an opaque token +- No `LastEvaluatedTableName` in response = final page +- Both parameters are optional; a bare `{}` request returns up to 100 tables + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListTagsOfResourcehtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListTagsOfResourcehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..4f7ff8039a0343acc8b715d1154709b3c221a9c8 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListTagsOfResourcehtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ListTagsOfResource.html +source: sources/amazondynamodb-latest-APIReference-API_ListTagsOfResourcehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:52 + + + +## Overview +The `ListTagsOfResource` API retrieves all tags associated with a specified Amazon DynamoDB resource. It supports pagination and is rate-limited to 10 calls per second per account. + +## Key Concepts +- **Purpose**: Returns all key-value tag pairs on a DynamoDB resource (table, index, etc.) +- **Rate limit**: 10 requests per second, per account +- **ResourceArn**: Required parameter; the ARN of the DynamoDB resource (min length 1, max length 1283) +- **NextToken**: Optional pagination token; copied from a previous response to fetch subsequent pages +- **Tags**: Returned as an array of `Tag` objects, each containing a `Key` and `Value` string + +## Commands and Syntax +**Request (JSON)**: +```json +{ + "ResourceArn": "arn:aws:dynamodb:us-east-1:123456789012:table/MyTable", + "NextToken": "optional-pagination-token" +} +``` + +**Response (JSON)**: +```json +{ + "NextToken": "string-if-more-results", + "Tags": [ + { "Key": "Environment", "Value": "Production" } + ] +} +``` + +**Pagination pattern**: If `NextToken` is present in the response, call `ListTagsOfResource` again with that token to get the next page. + +## Relationships +- **TagResource / UntagResource**: Companion APIs for adding and removing tags +- **Tagging for DynamoDB**: Part of the broader DynamoDB tagging system used for cost allocation, access control (ABAC), and resource organization +- **IAM policies**: Tags can be used in IAM condition keys for attribute-based access control +- **Cost Allocation**: DynamoDB tags integrate with AWS Billing cost allocation tags + +## Exam-Relevant Points +- Rate limit is **10 TPS per account** — important for automation/scripting scenarios +- The API uses **pagination** via `NextToken`, not `Limit`/`Offset` +- **ResourceNotFoundException** (HTTP 400) is returned when the resource doesn't exist or isn't `ACTIVE` +- **InternalServerError** (HTTP 500) indicates a server-side failure +- The `ResourceArn` max length is **1283 characters** +- Tags are returned as an array of `Tag` objects (Key/Value pairs), not a map + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDB_Streamshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDB_Streamshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..02af7d716cb685cf3aef9d9dd9a43935a0d6b459 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDB_Streamshtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Operations_Amazon_DynamoDB_Streams.html +source: sources/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDB_Streamshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:52 + + + +## Overview +This page lists the four API actions available for Amazon DynamoDB Streams, the feature that captures item-level changes in DynamoDB tables as an ordered stream of records. + +## Key Concepts +- DynamoDB Streams has its own dedicated API, separate from the main DynamoDB API +- Only four operations exist in the Streams API: + - **DescribeStream** — returns information about a stream (shards, ARN, status) + - **GetRecords** — retrieves stream records from a shard + - **GetShardIterator** — obtains a shard iterator for reading records from a specific position + - **ListStreams** — lists all streams associated with an account or a specific table + +## Commands and Syntax +No specific CLI syntax on this page, but the corresponding CLI commands follow the pattern: +```bash +aws dynamodbstreams describe-stream --stream-arn +aws dynamodbstreams get-records --shard-iterator +aws dynamodbstreams get-shard-iterator --stream-arn --shard-id --shard-iterator-type +aws dynamodbstreams list-streams +``` + +## Relationships +- **DynamoDB Tables** — streams are enabled per-table and capture changes to items +- **AWS Lambda** — most common consumer of DynamoDB Streams via event source mappings +- **Kinesis Client Library (KCL)** — alternative consumer using the KCL adapter +- **Global Tables** — rely on DynamoDB Streams for cross-region replication +- **DynamoDB Streams endpoint** — uses `streams.dynamodb..amazonaws.com`, distinct from the main DynamoDB endpoint + +## Exam-Relevant Points +- The Streams API is a **separate** API from the core DynamoDB API (different endpoint, different service name `dynamodbstreams`) +- There are exactly **four** Streams API actions +- Reading from streams requires a two-step process: **GetShardIterator** → **GetRecords** +- Stream records are organized into **shards**, similar to Kinesis +- DynamoDB Streams records are retained for **24 hours** +- Stream records are ordered by item key within a shard + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDBhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDBhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..af067bdbba5433ea311d0cce81c58faaaed4b131 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDBhtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Operations_Amazon_DynamoDB.html +source: sources/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDBhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:52 + + + +## Overview +This page lists all API actions available in the Amazon DynamoDB service API. It serves as a reference index of the complete DynamoDB control plane and data plane operations. + +## Key Concepts +- **Data plane operations (CRUD):** `GetItem`, `PutItem`, `UpdateItem`, `DeleteItem`, `Query`, `Scan` +- **Batch operations:** `BatchGetItem`, `BatchWriteItem`, `BatchExecuteStatement` +- **Transaction operations:** `TransactGetItems`, `TransactWriteItems`, `ExecuteStatement`, `ExecuteTransaction` +- **Table management:** `CreateTable`, `DeleteTable`, `DescribeTable`, `UpdateTable`, `ListTables` +- **Backup & restore:** `CreateBackup`, `DeleteBackup`, `DescribeBackup`, `ListBackups`, `RestoreTableFromBackup`, `RestoreTableToPointInTime` +- **Continuous backups (PITR):** `DescribeContinuousBackups`, `UpdateContinuousBackups` +- **Global tables:** `CreateGlobalTable`, `DescribeGlobalTable`, `UpdateGlobalTable`, `ListGlobalTables`, `DescribeGlobalTableSettings`, `UpdateGlobalTableSettings` +- **Auto scaling for replicas:** `DescribeTableReplicaAutoScaling`, `UpdateTableReplicaAutoScaling` +- **Export/Import:** `ExportTableToPointInTime`, `DescribeExport`, `ListExports`, `ImportTable`, `DescribeImport`, `ListImports` +- **Kinesis streaming:** `EnableKinesisStreamingDestination`, `DisableKinesisStreamingDestination`, `DescribeKinesisStreamingDestination`, `UpdateKinesisStreamingDestination` +- **Resource-based policies:** `GetResourcePolicy`, `PutResourcePolicy`, `DeleteResourcePolicy` +- **TTL:** `DescribeTimeToLive`, `UpdateTimeToLive` +- **Tagging:** `TagResource`, `UntagResource`, `ListTagsOfResource` +- **Contributor Insights:** `DescribeContributorInsights`, `UpdateContributorInsights`, `ListContributorInsights` +- **Other:** `DescribeEndpoints`, `DescribeLimits` + +## Commands and Syntax +These are HTTP/JSON API actions invoked via the `X-Amz-Target` header (e.g., `DynamoDB_20120810.GetItem`). They are typically called through the AWS SDK or CLI rather than raw HTTP. CLI equivalents follow the pattern: +```bash +aws dynamodb get-item --table-name MyTable --key '{"id":{"S":"123"}}' +aws dynamodb list-tables +aws dynamodb create-backup --table-name MyTable --backup-name MyBackup +``` + +## Relationships +- **DynamoDB Streams** has a separate set of API actions (`DescribeStream`, `GetRecords`, `GetShardIterator`, `ListStreams`) not listed here. +- **Kinesis streaming** APIs connect DynamoDB change data capture to Amazon Kinesis Data Streams. +- **Export** sends data to S3; **Import** reads from S3 — connecting DynamoDB to the broader data lake ecosystem. +- **Resource-based policies** integrate with IAM for cross-account access control. +- **Global tables** rely on replication across regions, connecting to auto scaling and capacity management. + +## Exam-Relevant Points +- Know the distinction between **data plane** (Get/Put/Update/Delete/Query/Scan) and **control plane** (Create/Describe/Update/DeleteTable) operations. +- `BatchWriteItem` supports puts and deletes (not updates); `BatchGetItem` supports gets only. +- **Transactions** (`TransactGetItems`, `TransactWriteItems`) provide ACID guarantees across up to 100 items. +- `ExportTableToPointInTime` exports to S3 without consuming read capacity (uses PITR snapshots). +- `ImportTable` creates a new table from S3 data — it does not import into an existing table. +- DynamoDB Streams API is a **separate** API from the main DynamoDB API. +- `DescribeLimits` returns account-level provisioned capacity limits, not per-table limits. +- `ExecuteStatement` and `BatchExecuteStatement` use **PartiQL** syntax, an alternative to the native DynamoDB JSON API. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_PutItemhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_PutItemhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9154281db1ee31866328179ecc21aabc86e21ff1 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_PutItemhtml.md @@ -0,0 +1,74 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html +source: sources/amazondynamodb-latest-APIReference-API_PutItemhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:52 + + + +## Overview + +`PutItem` is a DynamoDB API operation that creates a new item or completely replaces an existing item with the same primary key in a specified table. It supports conditional writes via `ConditionExpression` to prevent unintended overwrites, and can return the previous item's attributes using `ReturnValues`. + +## Key Concepts + +- **Full replacement semantics**: PutItem replaces the *entire* item if a matching primary key exists — it does not merge attributes; non-specified attributes on the old item are lost +- **Only primary key attributes are required** in the `Item` map; all other attributes are optional +- **Empty String and Binary values are allowed**, but key attributes (for tables or indexes) must have length > 0 +- **Set type attributes cannot be empty** — empty sets are rejected with `ValidationException` +- **Conditional puts**: Use `ConditionExpression` with `attribute_not_exists(pk)` to insert only if the item doesn't already exist +- **ReturnValues**: Only `NONE` (default) and `ALL_OLD` are valid for PutItem — `ALL_OLD` returns the previous item if one was overwritten +- **ReturnValuesOnConditionCheckFailure**: Returns the existing item (`ALL_OLD`) when a condition check fails — no additional RCU cost +- **No additional RCU cost** for requesting return values; only a slightly larger response +- **Returned values are strongly consistent** +- **TableName** accepts either the table name or its ARN +- **Attribute name max length**: 65535 characters + +## Commands and Syntax + +**Conditional put (prevent overwrite):** +```json +{ + "TableName": "Thread", + "Item": { + "ForumName": {"S": "Amazon DynamoDB"}, + "Subject": {"S": "How do I update multiple items?"}, + "Message": {"S": "..."} + }, + "ConditionExpression": "attribute_not_exists(ForumName)", + "ExpressionAttributeValues": {} +} +``` + +**Expression attribute names** (for reserved words): use `#` prefix — e.g., `{"#P": "Percentile"}` + +**Expression attribute values**: use `:` prefix — e.g., `{":avail": {"S": "Available"}}` + +**ReturnConsumedCapacity** options: `INDEXES` | `TOTAL` | `NONE` + +## Relationships + +- **GetItem / UpdateItem / DeleteItem**: Sibling single-item operations; UpdateItem does partial updates vs PutItem's full replacement +- **BatchWriteItem**: Can batch up to 25 PutItem/DeleteItem operations +- **TransactWriteItems**: Supports PutItem within ACID transactions; `TransactionConflictException` occurs if items conflict +- **Global Tables**: `ReplicatedWriteConflictException` when concurrent writes from different regions conflict +- **Local Secondary Indexes**: `ItemCollectionSizeLimitExceededException` if item collection exceeds 10 GB (only applies to tables with LSIs) +- **ConditionExpression**: Shared expression syntax with UpdateItem and DeleteItem +- **Provisioned throughput / On-demand**: PutItem consumes write capacity units; throttled via `ProvisionedThroughputExceededException` + +## Exam-Relevant Points + +- **PutItem fully replaces** an existing item — it does NOT merge/update individual attributes (use UpdateItem for that) +- **Prevent overwrites** with `ConditionExpression: "attribute_not_exists()"` +- **Detect overwrites** with `ReturnValues: "ALL_OLD"` — if `Attributes` is in the response, an item was overwritten +- **Only `NONE` and `ALL_OLD`** are valid ReturnValues for PutItem (not UPDATED_OLD/ALL_NEW/UPDATED_NEW) +- **Item collection size limit is 10 GB** — only enforced on tables with local secondary indexes +- **`Expected` and `ConditionalOperator` are legacy** — always use `ConditionExpression` instead +- **SDKs automatically retry** `ProvisionedThroughputExceededException` with exponential backoff +- **`RequestLimitExceeded`** means account-level throughput quota exceeded — requires Support ticket to increase +- **`ReplicatedWriteConflictException`** is specific to global tables with concurrent cross-region writes +- Write capacity consumed is based on item size (1 WCU = 1 KB for standard writes, 2 WCUs per KB for transactional writes) + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_PutResourcePolicyhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_PutResourcePolicyhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..184ebed7f97be6fed3c4932781136dc5e921dfd0 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_PutResourcePolicyhtml.md @@ -0,0 +1,58 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutResourcePolicy.html +source: sources/amazondynamodb-latest-APIReference-API_PutResourcePolicyhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:53 + + + +## Overview +`PutResourcePolicy` is a DynamoDB API operation that attaches a resource-based policy document to a DynamoDB table or stream. The operation is eventually consistent and idempotent, meaning repeated calls with the same policy return the same revision ID. It supports optimistic concurrency control via `ExpectedRevisionId`. + +## Key Concepts +- **Resource-based policies**: JSON policy documents (IAM-style) attached directly to DynamoDB tables or streams, enabling cross-account access and fine-grained authorization. +- **Eventually consistent**: Policy changes are asynchronous — a `GetResourcePolicy` call immediately after `PutResourcePolicy` may return stale data or `PolicyNotFoundException`. +- **Idempotent**: Calling multiple times with the same policy on the same resource yields the same `RevisionId`. +- **RevisionId**: A unique string identifier for the current version of the policy; used for optimistic locking via `ExpectedRevisionId`. +- **Policy size limit**: Maximum 20 KB, whitespace included. +- **Index permissions**: Controlled via the base table's policy; you can include both table and index ARNs in a single `Statement`, or use separate statements. +- **Global table SLR restriction**: If the policy denies the DynamoDB service-linked role's replication action, adding/deleting replicas will fail. + +## Commands and Syntax +**Request** (JSON via `DynamoDB_20120810.PutResourcePolicy`): +```json +{ + "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":{\"Effect\":\"Allow\",\"Principal\":{\"AWS\":[\"arn:aws:iam::111122223333:root\"]},\"Action\":[\"dynamodb:GetItem\"],\"Resource\":\"arn:aws:dynamodb:us-west-2:123456789012:table/Thread\"}}", + "ResourceArn": "arn:aws:dynamodb:us-west-2:123456789012:table/Thread", + "ExpectedRevisionId": "1683717331354", + "ConfirmRemoveSelfResourceAccess": false +} +``` + +**Response**: +```json +{ "RevisionId": "1683717331354" } +``` + +**Optimistic locking**: Set `ExpectedRevisionId` to the current revision to prevent concurrent overwrites. Use `"NO_POLICY"` to conditionally attach only when no policy exists. + +## Relationships +- **GetResourcePolicy / DeleteResourcePolicy**: Companion read/delete operations for resource-based policies. +- **IAM identity-based policies**: Resource-based policies work alongside identity-based policies; both are evaluated per IAM policy evaluation logic. +- **Global Tables**: Policies must not deny the DynamoDB SLR replication actions, or replica management fails. +- **DynamoDB Streams**: Policies can be attached to streams (not just tables), controlling stream-level access. +- **Cross-account access**: Primary use case — granting another AWS account access to a table without assuming roles. + +## Exam-Relevant Points +- Policy application is **eventually consistent** — not immediate. +- Maximum policy size is **20 KB including whitespace**. +- `ExpectedRevisionId` enables **optimistic concurrency control**; use `"NO_POLICY"` to guard against races when creating the first policy. +- `ConfirmRemoveSelfResourceAccess` is a safety flag to prevent accidentally locking yourself out. +- Index permissions are controlled through the **base table's policy**, not separately. +- Denying the DynamoDB **service-linked role** in a resource-based policy breaks **global table replica operations**. +- `PolicyNotFoundException` is returned both when no policy exists and when `ExpectedRevisionId` doesn't match. +- Resources you can attach policies to: **tables and streams**. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_Queryhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_Queryhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7503ec95cb3ddcde975b24989630c9a6f6d75cb9 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_Queryhtml.md @@ -0,0 +1,81 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html +source: sources/amazondynamodb-latest-APIReference-API_Queryhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:53 + + + +## Overview + +The DynamoDB `Query` API retrieves items from a table or index by specifying a partition key value, with optional sort key conditions and filter expressions. It returns up to 1 MB of data per call, supports pagination, and results are always sorted by sort key value. + +## Key Concepts + +- **Partition key is required**: Must provide an equality condition on exactly one partition key value +- **Sort key is optional**: Can use comparison operators (`=`, `<`, `<=`, `>`, `>=`, `BETWEEN`, `begins_with`) to narrow results +- **KeyConditionExpression**: The modern parameter for specifying key conditions (replaces legacy `KeyConditions`) +- **FilterExpression**: Applied *after* query reads data but *before* returning results — does **not** reduce read capacity consumed +- **FilterExpression cannot contain key attributes** — keys must go in `KeyConditionExpression` +- **RCU consumption is based on item size**, not the amount of data returned after filtering or projection +- **1 MB page limit**: A single Query reads up to 1 MB, then returns `LastEvaluatedKey` for pagination +- **Limit parameter**: Caps the number of items *evaluated* (not matched), stops and returns `LastEvaluatedKey` +- **ScanIndexForward**: `true` (default) = ascending sort key order; `false` = descending +- **ConsistentRead**: Supported on tables and LSIs (strongly consistent); **not supported on GSIs** (eventually consistent only — throws `ValidationException`) +- **Empty result sets still consume minimum RCUs** for that read type +- **A query can return empty Items with a non-empty `LastEvaluatedKey`** when all items on a page are filtered out +- **Count vs ScannedCount**: `Count` = items returned after filter; `ScannedCount` = items read before filter. High `ScannedCount` with low `Count` = inefficient query +- **Select values**: `ALL_ATTRIBUTES`, `ALL_PROJECTED_ATTRIBUTES` (index only), `COUNT`, `SPECIFIC_ATTRIBUTES` +- **Cannot combine `Select` and `ProjectionExpression`** unless Select is `SPECIFIC_ATTRIBUTES` +- **GSI queries can only request projected attributes**; LSI queries can fetch non-projected attributes from the base table (at extra cost) + +## Commands and Syntax + +**KeyConditionExpression patterns:** +``` +pk = :pkval +pk = :pkval AND sk = :skval +pk = :pkval AND sk BETWEEN :lo AND :hi +pk = :pkval AND begins_with(sk, :prefix) +``` + +**ExpressionAttributeNames** — use `#name` to escape reserved words: +```json +{"#S": "Size"} +``` + +**ExpressionAttributeValues** — use `:val` placeholders: +```json +{":pkval": {"S": "user123"}, ":skval": {"N": "100"}} +``` + +**Pagination loop** — continue when `LastEvaluatedKey` is present: +``` +ExclusiveStartKey = previous response's LastEvaluatedKey +``` + +**ReturnConsumedCapacity**: `INDEXES` | `TOTAL` | `NONE` + +## Relationships + +- **Scan**: Full-table alternative; Query is always preferred when partition key is known +- **GSI / LSI**: Query works on both; GSI = eventually consistent only, LSI = can be strongly consistent +- **ProjectionExpression**: Controls which attributes are returned (like SQL SELECT columns) +- **BatchGetItem / GetItem**: For single-item lookups by full primary key; Query is for multiple items sharing a partition key +- **Pagination**: Works with `LastEvaluatedKey` / `ExclusiveStartKey` pattern (same as Scan) + +## Exam-Relevant Points + +- **FilterExpression does NOT save RCUs** — capacity is consumed based on items read, not items returned +- **GSIs do not support strongly consistent reads** — setting `ConsistentRead=true` on a GSI query causes `ValidationException` +- **Querying a GSI can only return projected attributes**; querying an LSI can fetch from the parent table at additional cost +- **`begins_with` cannot be used on Number sort keys** +- **`ScanIndexForward=false`** reverses sort order (descending) +- **1 MB limit per query call** — must paginate via `LastEvaluatedKey` +- **Limit controls items evaluated, not items returned** — with filters, you may get fewer results than `Limit` +- **High ScannedCount with low Count** indicates an inefficient query (poor key design or over-reliance on filters) +- **ProvisionedThroughputExceededException**: SDKs auto-retry with exponential backoff; reduce request frequency if persistent + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_RestoreTableFromBackuphtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_RestoreTableFromBackuphtml.md new file mode 100644 index 0000000000000000000000000000000000000000..504f046fd3ad52e714621836263f8f7ea2fef42b --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_RestoreTableFromBackuphtml.md @@ -0,0 +1,69 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_RestoreTableFromBackup.html +source: sources/amazondynamodb-latest-APIReference-API_RestoreTableFromBackuphtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:54 + + + +## Overview + +`RestoreTableFromBackup` is a DynamoDB API operation that creates a new table from an existing on-demand backup. It restores table data but requires manual reconfiguration of several table settings that are not preserved in the backup. The operation is subject to concurrency limits and rate throttling. + +## Key Concepts + +- **Creates a new table** from a backup — does not restore in-place; requires a new `TargetTableName` +- **Up to 50 concurrent restores** per account (any restore type) +- **Rate limit**: max 10 calls per second +- **Settings NOT restored** (must be manually reconfigured): + - Auto scaling policies + - IAM policies + - CloudWatch metrics and alarms + - Tags + - Stream settings + - Time to Live (TTL) settings +- **Override options at restore time**: billing mode, GSIs, LSIs, provisioned throughput, on-demand throughput, and SSE (encryption) settings +- You can **exclude indexes** during restore by omitting them from the override arrays +- **Required parameters**: `BackupArn` and `TargetTableName` only + +## Commands and Syntax + +**Minimal restore request:** +```json +{ + "BackupArn": "arn:aws:dynamodb:us-east-1:123456789012:table/MyTable/backup/01234567890123", + "TargetTableName": "MyRestoredTable" +} +``` + +**Restore with overrides (e.g., switch to on-demand billing):** +```json +{ + "BackupArn": "arn:aws:dynamodb:...", + "TargetTableName": "MyRestoredTable", + "BillingModeOverride": "PAY_PER_REQUEST" +} +``` + +## Relationships + +- **Backup/Restore lifecycle**: Pairs with `CreateBackup`, `DeleteBackup`, `DescribeBackup`, `ListBackups` +- **Point-in-time recovery**: Parallel restore path via `RestoreTableToPointInTime` +- **Table operations quota**: Shares the 500 concurrent table operations limit with `CreateTable`, `UpdateTable`, `DeleteTable`, `UpdateTimeToLive` +- **Encryption**: SSE override connects to KMS key management +- **Global tables**: Response includes replica and global table metadata + +## Exam-Relevant Points + +- Restores create a **new table** — you cannot overwrite an existing table (`TableAlreadyExistsException` if name conflicts) +- **Six settings require manual reconfiguration** after restore (auto scaling, IAM, CloudWatch, tags, streams, TTL) +- **50 concurrent restores** per account; **10 TPS** API rate limit +- **500 simultaneous table operations** soft limit per account (250 if creating tables with secondary indexes) +- **2,500 tables** soft account quota +- You can change billing mode, throughput, indexes, and encryption at restore time via override parameters +- `BackupInUseException` occurs if another backup operation is already in progress on the table +- `LimitExceededException` covers multiple quota scenarios (table ops, import ops, stream reader limits) + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_RestoreTableToPointInTimehtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_RestoreTableToPointInTimehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..6bb0c75754bdfaf6c274f3d10be80e20308b70dd --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_RestoreTableToPointInTimehtml.md @@ -0,0 +1,71 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_RestoreTableToPointInTime.html +source: sources/amazondynamodb-latest-APIReference-API_RestoreTableToPointInTimehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:54 + + + +## Overview + +The `RestoreTableToPointInTime` API restores a DynamoDB table to a specific point in time, creating a new table with data as it existed at that moment. Restores can target any point within the last 35 days (configurable between 1–35 days), and up to 50 concurrent restores are allowed per account. PITR must be enabled on the source table before this API can be used. + +## Key Concepts + +- **Restores to a new table** — data is restored to a separate table specified by `TargetTableName`; it does not overwrite the source +- **Recovery window**: any point between `EarliestRestorableDateTime` and `LatestRestorableDateTime` (up to 35 days back) +- **`LatestRestorableDateTime`** is typically ~5 minutes before the current time +- **Concurrency limit**: 50 concurrent restores (any type) per account +- **Automatically restored** from the source table's *current* settings (not the point-in-time settings): + - Global secondary indexes (GSIs) + - Local secondary indexes (LSIs) + - Provisioned read/write capacity + - Encryption settings +- **Must be manually reconfigured** on the restored table: + - Auto scaling policies + - IAM policies + - CloudWatch metrics and alarms + - Tags + - Stream settings + - TTL settings + - Point in time recovery settings (PITR itself) +- Override parameters let you change billing mode, GSIs, LSIs, throughput, and encryption on the restored table + +## Commands and Syntax + +**Required parameter**: `TargetTableName` (3–255 chars, pattern `[a-zA-Z0-9_.-]+`) + +**Source identification** (one required): `SourceTableName` (by name) or `SourceTableArn` (by ARN) + +**Time selection**: Either set `RestoreDateTime` (timestamp) or `UseLatestRestorableTime: true` + +**Optional overrides**: +- `BillingModeOverride`: `PROVISIONED` | `PAY_PER_REQUEST` +- `GlobalSecondaryIndexOverride`: modify or exclude GSIs +- `LocalSecondaryIndexOverride`: modify or exclude LSIs +- `ProvisionedThroughputOverride` / `OnDemandThroughputOverride`: change capacity +- `SSESpecificationOverride`: change encryption (KMS key, SSE type) + +## Relationships + +- **Depends on**: Point in Time Recovery (PITR) being enabled — raises `PointInTimeRecoveryUnavailableException` otherwise +- **Related API**: `RestoreTableFromBackup` (restores from on-demand backups rather than continuous PITR) +- **Related API**: `UpdateContinuousBackups` (enables/disables PITR) +- **Counts toward**: the 500 simultaneous table operation limit (shared with `CreateTable`, `UpdateTable`, `DeleteTable`, `UpdateTimeToLive`, `RestoreTableFromBackup`) +- **Restored table includes** `RestoreSummary` in its `TableDescription` with source ARN and restore timestamp + +## Exam-Relevant Points + +- PITR restores always create a **new table** — you cannot restore in-place +- Restored settings come from the **current** source table config, not the point-in-time config +- **Auto scaling, IAM, CloudWatch, tags, streams, TTL, and PITR itself** are NOT automatically restored — must be manually set up +- Maximum retention: **35 days**; `LatestRestorableDateTime` is ~**5 minutes** before current time +- Up to **50 concurrent restores** per account +- Up to **500 simultaneous table operations** per account (soft limit); soft table quota of **2,500 tables** +- `PointInTimeRecoveryUnavailableException` (400) means PITR was not enabled on the source +- `TableAlreadyExistsException` (400) means the target table name is already taken +- You can override GSIs/LSIs at restore time to **exclude indexes** you no longer need + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_Scanhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_Scanhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..df44feb114074cf560eb51761bc2dca842e7bb54 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_Scanhtml.md @@ -0,0 +1,69 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html +source: sources/amazondynamodb-latest-APIReference-API_Scanhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:54 + + + +## Overview +The DynamoDB `Scan` API operation reads every item in a table or secondary index, optionally applying a `FilterExpression` to narrow results returned to the caller. Results are paginated at a 1 MB limit per request, and parallel scan is supported for performance on large datasets. + +## Key Concepts +- **Full table read**: Scan accesses every item in the table/index — it is not key-targeted like Query +- **1 MB page limit**: Each Scan request reads up to 1 MB of data before returning; use `LastEvaluatedKey` to paginate +- **FilterExpression is post-read**: Filtering happens after items are read, so it does **not** reduce consumed read capacity units — only reduces data returned to the caller +- **Count vs ScannedCount**: `ScannedCount` = items evaluated, `Count` = items remaining after filter. High ScannedCount with low Count indicates an inefficient scan +- **Eventually consistent by default**: Set `ConsistentRead = true` for strongly consistent reads (item-level only) +- **No snapshot isolation**: Even with `ConsistentRead = true`, a scan does not guarantee a consistent snapshot across the entire table +- **ConsistentRead not supported on GSIs**: Setting it to true on a global secondary index throws `ValidationException` +- **Parallel Scan**: Use `Segment` (0-based) and `TotalSegments` (1–1,000,000) to divide work across application threads +- **Limit parameter**: Caps items *evaluated*, not items *returned* — fewer matching items may come back than `Limit` +- **Select values**: `ALL_ATTRIBUTES`, `ALL_PROJECTED_ATTRIBUTES`, `COUNT`, `SPECIFIC_ATTRIBUTES` +- **Legacy parameters**: `AttributesToGet` → use `ProjectionExpression`; `ScanFilter`/`ConditionalOperator` → use `FilterExpression` +- **TableName accepts ARN** in addition to table name + +## Commands and Syntax +```json +// Minimal scan +{ "TableName": "Reply", "ReturnConsumedCapacity": "TOTAL" } + +// Scan with filter +{ + "TableName": "Reply", + "FilterExpression": "ProductStatus IN (:avail, :back)", + "ExpressionAttributeValues": { + ":avail": {"S": "Available"}, + ":back": {"S": "Backordered"} + } +} + +// Parallel scan (worker 0 of 4) +{ + "TableName": "Reply", + "Segment": 0, + "TotalSegments": 4 +} +``` + +**Pagination pattern**: When `LastEvaluatedKey` is present in the response, pass it as `ExclusiveStartKey` in the next request. Scan is complete only when `LastEvaluatedKey` is absent/empty. + +## Relationships +- **Query vs Scan**: Query targets a specific partition key; Scan reads the entire table — prefer Query for efficiency +- **Secondary Indexes**: Scan can target LSIs and GSIs via `IndexName`; GSI scans cannot fetch non-projected attributes +- **Capacity consumption**: Works with both provisioned and on-demand modes; `ReturnConsumedCapacity` reports usage +- **Throttling**: Subject to `ProvisionedThroughputExceededException`, `RequestLimitExceeded`, and `ThrottlingException` — SDKs auto-retry with exponential backoff + +## Exam-Relevant Points +- FilterExpression does **not** reduce RCU consumption — items are read first, then filtered +- Scan defaults to eventually consistent reads; ConsistentRead=true is **not supported on GSIs** +- A scan with ConsistentRead=true still does **not** provide snapshot isolation +- `LastEvaluatedKey` being non-empty does **not** guarantee more matching items exist — only an empty `LastEvaluatedKey` confirms you've reached the end +- Parallel scan requires both `Segment` and `TotalSegments`; each segment's pagination must use the same segment ID +- `Limit` controls items *evaluated*, not items *matched* — critical distinction +- High `ScannedCount` with low `Count` = inefficient scan (poor filter selectivity) +- `SELECT COUNT` still consumes the same RCUs as reading the items + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_TagResourcehtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_TagResourcehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..6395b83d47df61db44a59734ebae5067aa294dbd --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_TagResourcehtml.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TagResource.html +source: sources/amazondynamodb-latest-APIReference-API_TagResourcehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:55 + + + +## Overview +The `TagResource` API associates user-defined tags with an Amazon DynamoDB resource (identified by ARN) for cost allocation tracking in the Billing and Cost Management console. It is an asynchronous, eventually consistent operation with a rate limit of 5 calls per second per account. + +## Key Concepts +- **Tags** are key-value pairs attached to DynamoDB resources for cost allocation and organization. +- **Eventually consistent**: Both `TagResource`/`UntagResource` and `ListTagsOfResource` are eventually consistent — tag changes may not be immediately visible. +- **Rate limit**: 5 calls per second per account. +- **Asynchronous**: A successful call returns HTTP 200 with an empty body, but the tag may not yet appear in subsequent list queries. +- **ResourceArn**: Required; identifies the target resource (min length 1, max length 1283). +- **Tags**: Required; array of `Tag` objects, each with `Key` and `Value` strings. + +## Commands and Syntax +**Request (JSON):** +```json +{ + "ResourceArn": "arn:aws:dynamodb:us-east-1:123456789012:table/MyTable", + "Tags": [ + { "Key": "Environment", "Value": "Production" }, + { "Key": "Project", "Value": "Alpha" } + ] +} +``` + +**AWS CLI equivalent:** +```bash +aws dynamodb tag-resource \ + --resource-arn arn:aws:dynamodb:us-east-1:123456789012:table/MyTable \ + --tags Key=Environment,Value=Production Key=Project,Value=Alpha +``` + +## Relationships +- **ListTagsOfResource** — reads tags (eventually consistent with TagResource). +- **UntagResource** — removes tags; also eventually consistent. +- **Cost Allocation** — tags flow into AWS Billing and Cost Management for tracking. +- **LimitExceededException** — shared across table operations (CreateTable, UpdateTable, DeleteTable, etc.); soft limit of 2,500 tables, 500 concurrent table operations. + +## Exam-Relevant Points +- TagResource is **asynchronous and eventually consistent** — a common exam trap involving read-after-write scenarios. +- Rate limit: **5 calls/sec/account**. +- Errors to know: `InternalServerError` (500), `LimitExceededException` (400), `ResourceInUseException` (400), `ResourceNotFoundException` (400). +- Soft account quota: **2,500 tables**, **500 concurrent table operations** (250 when creating tables with secondary indexes). +- DynamoDB Streams shard limit: **max 2 concurrent readers** per shard before throttling. +- Tags are used for **cost allocation tracking**, not access control (unlike IAM tags/ABAC). + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_TransactGetItemshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_TransactGetItemshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1004ff4eee447685db2547a047804971cf537e4b --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_TransactGetItemshtml.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactGetItems.html +source: sources/amazondynamodb-latest-APIReference-API_TransactGetItemshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:55 + + + +## Overview + +`TransactGetItems` is a DynamoDB API that performs synchronous, atomic reads of multiple items across one or more tables (but not indexes) within a single AWS account and Region. It supports up to 100 items per request with a 4 MB aggregate size limit, and the entire request fails if any item cannot be retrieved due to conflicts, capacity issues, or validation errors. + +## Key Concepts + +- **Atomic read**: All items are read together as a single transaction — either all succeed or all fail +- **Synchronous operation**: Returns results directly (not eventually consistent like some DynamoDB operations) +- **Limit of 100 items** per request, across one or more tables +- **4 MB aggregate size limit** for all items in the transaction +- **Single account and Region** — cannot span accounts or Regions +- **Cannot read from indexes** (GSI or LSI) — only base tables +- **Conflict detection**: Fails with `TransactionCanceledException` if a concurrent `PutItem`, `UpdateItem`, `DeleteItem`, or `TransactWriteItems` is modifying an item being read +- **CancellationReasons** are returned in order matching the requested items; items with no error have code `None` and message `null` +- **ReturnConsumedCapacity**: Can be `TOTAL`, `INDEXES`, or `NONE` +- **Responses array**: Ordered to match the input `TransactItems` array; null if item couldn't be retrieved, empty map if item has no projected attributes + +## Commands and Syntax + +**Request structure:** +```json +{ + "ReturnConsumedCapacity": "TOTAL | INDEXES | NONE", + "TransactItems": [ + { + "Get": { + "TableName": "string", + "Key": { "pk": { "S": "value" } }, + "ProjectionExpression": "attr1, attr2", + "ExpressionAttributeNames": { "#n": "name" } + } + } + ] +} +``` + +Each `Get` requires `TableName` and `Key`; `ProjectionExpression` and `ExpressionAttributeNames` are optional. + +## Relationships + +- **TransactWriteItems**: The write counterpart; concurrent `TransactWriteItems` on the same items causes `TransactionCanceledException` +- **BatchGetItem**: Non-transactional batch read — higher throughput but no atomicity guarantees +- **GetItem**: Single-item read — simpler when only one item is needed +- **Provisioned capacity / On-Demand**: Throttling behavior differs — provisioned tables get `ProvisionedThroughputExceeded`, on-demand tables get `ThrottlingError` during auto-scaling +- **Error handling**: Uses standard DynamoDB retry with exponential backoff for throttling errors + +## Exam-Relevant Points + +- **100-item limit** and **4 MB aggregate size limit** per transaction +- **Cannot read from indexes** — only base tables +- **Single account and Region** scope +- Conflicts with concurrent write operations cause `TransactionCanceledException` (not a retry — it's a hard failure for that request) +- SDKs automatically retry `ProvisionedThroughputExceededException` with exponential backoff +- `TransactionCanceledException` includes ordered `CancellationReasons` with specific codes: `TransactionConflict`, `ProvisionedThroughputExceeded`, `ThrottlingError`, `ValidationError` +- This is a **read-only** transaction API — no conditions, no writes +- Responses maintain the same order as the input `TransactItems` array + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_TransactWriteItemshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_TransactWriteItemshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..efafab744ce79687ee8e57639c28822ba6eefc44 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_TransactWriteItemshtml.md @@ -0,0 +1,61 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html +source: sources/amazondynamodb-latest-APIReference-API_TransactWriteItemshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:55 + + + +## Overview +`TransactWriteItems` is a DynamoDB API operation that performs synchronous, atomic write transactions containing up to 100 actions (Put, Update, Delete, ConditionCheck) across multiple tables within the same AWS account and Region. The entire transaction either fully succeeds or fully fails, with a maximum aggregate item size of 4 MB. + +## Key Concepts +- **Atomicity**: All actions succeed or all fail — no partial completion +- **Four action types**: `Put` (write new item), `Update` (modify existing), `Delete` (remove item), `ConditionCheck` (validate without modifying) +- **Scope constraints**: Items can span different tables but must be in the same account and Region; no two actions can target the same item +- **Size limits**: Aggregate transaction size ≤ 4 MB; individual items ≤ 400 KB +- **Action limit**: 1–100 `TransactWriteItem` objects per request +- **Idempotency**: `ClientRequestToken` makes calls idempotent for 10 minutes; reusing a token with different parameters raises `IdempotentParameterMismatch` +- **Condition expressions**: Each action (including ConditionCheck) supports optional condition expressions that must be satisfied +- **`ReturnValuesOnConditionCheckFailure`**: Each action can request the item's attributes back if its condition fails + +## Commands and Syntax +**Request structure** (key parameters): +```json +{ + "ClientRequestToken": "string", // optional, idempotency token (1-36 chars) + "ReturnConsumedCapacity": "INDEXES|TOTAL|NONE", + "ReturnItemCollectionMetrics": "SIZE|NONE", + "TransactItems": [ + { "Put": { "TableName": "...", "Item": {...}, "ConditionExpression": "..." } }, + { "Update": { "TableName": "...", "Key": {...}, "UpdateExpression": "...", "ConditionExpression": "..." } }, + { "Delete": { "TableName": "...", "Key": {...}, "ConditionExpression": "..." } }, + { "ConditionCheck": { "TableName": "...", "Key": {...}, "ConditionExpression": "..." } } + ] +} +``` + +**Response** returns `ConsumedCapacity` (array, ordered by TransactItems) and `ItemCollectionMetrics` (per-table). + +## Relationships +- **TransactGetItems**: Read-side counterpart for atomic read transactions +- **PutItem / UpdateItem / DeleteItem**: The individual non-transactional equivalents of Put, Update, Delete actions +- **Condition Expressions**: Shared expression syntax with standard DynamoDB operations +- **Provisioned Capacity / On-Demand**: Throttling behavior differs — provisioned tables return `ProvisionedThroughputExceeded`, on-demand tables return `ThrottlingError` during auto-scaling +- **LSI / GSI**: Index size limits and GSI throughput can cause transaction cancellation +- **BatchWriteItem**: Non-atomic bulk writes (contrast with atomic TransactWriteItems) + +## Exam-Relevant Points +- **Max 100 actions** per transaction; **max 4 MB** aggregate size; **max 400 KB** per item +- **No two actions can target the same item** within a single transaction +- **Same account and Region only** — cross-account/cross-Region transactions are not supported +- **Idempotency token valid for 10 minutes**; subsequent calls with same token but different params raise `IdempotentParameterMismatch` +- **TransactionCanceledException** includes ordered `CancellationReasons` with specific codes: `ConditionalCheckFailed`, `TransactionConflict`, `ProvisionedThroughputExceeded`, `ThrottlingError`, `ValidationError`, `ItemCollectionSizeLimitExceeded` +- **TransactionInProgressException** retry guidance: set `clientExecutionTimeout` to allow retry after 5 seconds; use exponential backoff +- **Concurrent conflicts**: An ongoing `TransactWriteItems` on the same item causes `TransactionConflict`; a `TransactGetItems` conflicts with concurrent writes to the same items +- **ConditionCheck** does not modify data — it only validates a condition on an item as part of the transaction +- Transactions consume **both read and write capacity** (reads for condition checks, writes for mutations) + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UntagResourcehtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UntagResourcehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7527170234e6fd1c6517056117d70f9b66b3a647 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UntagResourcehtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UntagResource.html +source: sources/amazondynamodb-latest-APIReference-API_UntagResourcehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:56 + + + +## Overview +The `UntagResource` API removes tag associations from an Amazon DynamoDB resource. It is an asynchronous, eventually consistent operation with a rate limit of 5 calls per second per account. + +## Key Concepts +- **Eventually consistent**: Tag changes via `UntagResource` (and `TagResource`) are not immediately reflected; `ListTagsOfResource` may return stale data for a few seconds after modification. +- **Rate limit**: Up to 5 calls per second, per account. +- **Idempotent target**: Requires the resource ARN and a list of tag keys to remove. +- **Empty HTTP body on success**: Returns HTTP 200 with no response payload. + +## Commands and Syntax +**Request JSON:** +```json +{ + "ResourceArn": "string", // Required, 1–1283 chars, must be a valid ARN + "TagKeys": [ "string" ] // Required, each key 1–128 chars +} +``` + +## Relationships +- **TagResource / ListTagsOfResource**: Complementary APIs for adding and listing tags; all three share the eventually consistent behavior. +- **DynamoDB Tagging**: Part of the broader DynamoDB resource tagging system used for cost allocation, access control (via tag-based IAM policies), and resource organization. +- **LimitExceededException**: Shared error with other control-plane operations (`CreateTable`, `UpdateTable`, `DeleteTable`, etc.) subject to the ~500 concurrent table operations limit. + +## Exam-Relevant Points +- Tagging operations are **eventually consistent** — `ListTagsOfResource` may not immediately reflect changes. +- `UntagResource` is throttled at **5 requests/second/account**. +- The resource is identified by **ARN**, not table name. +- Possible errors: `InternalServerError` (500), `LimitExceededException` (400), `ResourceInUseException` (400), `ResourceNotFoundException` (400). +- Soft account quota of **2,500 tables**; up to **500 concurrent table operations**; up to **250 concurrent operations** when creating tables with secondary indexes. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateContinuousBackupshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateContinuousBackupshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..cf30ca46084d02f44b4f8acd09feba906d720c82 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateContinuousBackupshtml.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateContinuousBackups.html +source: sources/amazondynamodb-latest-APIReference-API_UpdateContinuousBackupshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:56 + + + +## Overview +The `UpdateContinuousBackups` API enables or disables point-in-time recovery (PITR) for a DynamoDB table. Continuous backups are enabled on all tables at creation, but PITR must be explicitly enabled via this call. Once enabled, data can be restored to any point within a configurable recovery window. + +## Key Concepts +- **Continuous backups** are automatically `ENABLED` on all DynamoDB tables at creation time +- **Point-in-time recovery (PITR)** must be explicitly enabled via this API — it is not on by default +- Recovery window is bounded by `EarliestRestorableDateTime` and `LatestRestorableDateTime` +- `LatestRestorableDateTime` is typically **5 minutes before the current time** +- `RecoveryPeriodInDays` is configurable between **1 and 35 days** (max 35 days of recovery) +- The `TableName` parameter accepts either the table name or its **ARN** +- TableName max length: **1024 characters** + +## Commands and Syntax +**Request:** +```json +{ + "PointInTimeRecoverySpecification": { + "PointInTimeRecoveryEnabled": true, + "RecoveryPeriodInDays": 35 + }, + "TableName": "my-table" +} +``` + +**Response (HTTP 200):** +```json +{ + "ContinuousBackupsDescription": { + "ContinuousBackupsStatus": "ENABLED", + "PointInTimeRecoveryDescription": { + "EarliestRestorableDateTime": 1234567890, + "LatestRestorableDateTime": 1234567890, + "PointInTimeRecoveryStatus": "ENABLED", + "RecoveryPeriodInDays": 35 + } + } +} +``` + +## Relationships +- **RestoreTableToPointInTime** — uses the recovery window established by this API +- **DescribeContinuousBackups** — read-only companion to check current PITR status +- **CreateTable** — continuous backups auto-enabled at creation, but PITR is not +- **Backup/Restore** — PITR is complementary to on-demand backups (`CreateBackup`) + +## Exam-Relevant Points +- Continuous backups ≠ PITR: backups are always on, but PITR must be explicitly enabled +- Maximum recovery window is **35 days**, minimum is **1 day** +- `LatestRestorableDateTime` lags by ~**5 minutes** +- Three possible errors: `ContinuousBackupsUnavailableException` (400), `InternalServerError` (500), `TableNotFoundException` (400) +- `ContinuousBackupsUnavailableException` means backups have not yet been enabled for the table +- Both `PointInTimeRecoverySpecification` and `TableName` are **required** parameters + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateContributorInsightshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateContributorInsightshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..218101053fac99986064f83aef34547b3cc7338e --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateContributorInsightshtml.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateContributorInsights.html +source: sources/amazondynamodb-latest-APIReference-API_UpdateContributorInsightshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:56 + + + +## Overview +The `UpdateContributorInsights` API enables or disables CloudWatch Contributor Insights for a specific DynamoDB table or global secondary index. Contributor Insights surfaces frequently accessed and frequently throttled partition/sort keys in plaintext, which has a security implication: it should not be enabled on tables where KMS encryption of key data is required. + +## Key Concepts +- **Contributor Insights** displays the most frequently accessed and throttled partition keys (and sort keys) for a DynamoDB table or GSI +- **Security caveat**: Key data is shown in plaintext — do not enable if KMS encryption of partition/sort key data is required +- **Two modes**: `ACCESSED_AND_THROTTLED_KEYS` (track all access + throttles) or `THROTTLED_KEYS` (throttled events only) +- **Status lifecycle**: `ENABLING → ENABLED`, `DISABLING → DISABLED`, or `FAILED` +- Can be applied to a **table** or a specific **global secondary index** + +## Commands and Syntax +**Request** (required fields: `ContributorInsightsAction`, `TableName`): +```json +{ + "ContributorInsightsAction": "ENABLE", + "ContributorInsightsMode": "ACCESSED_AND_THROTTLED_KEYS", + "IndexName": "my-gsi-name", + "TableName": "my-table" +} +``` +- `TableName` accepts a name or ARN (1–1024 chars) +- `IndexName` is optional (3–255 chars, pattern `[a-zA-Z0-9_.-]+`) +- `ContributorInsightsMode` defaults if omitted; only relevant when enabling + +**Errors**: `InternalServerError` (500), `ResourceNotFoundException` (400 — table/index doesn't exist or isn't ACTIVE) + +## Relationships +- **CloudWatch Contributor Insights**: The underlying monitoring feature this API configures +- **DescribeContributorInsights / ListContributorInsights**: Companion read APIs for checking current status +- **Global Secondary Indexes**: Can target a specific GSI via `IndexName` +- **AWS KMS**: Security tension — enabling Contributor Insights exposes key values that KMS encryption is meant to protect +- **DynamoDB throttling**: Contributor Insights is a primary tool for diagnosing hot partition keys + +## Exam-Relevant Points +- Enabling Contributor Insights **exposes partition and sort key values in plaintext** — incompatible with strict KMS encryption requirements +- Two tracking modes exist: all access vs. throttled-only (`ACCESSED_AND_THROTTLED_KEYS` | `THROTTLED_KEYS`) +- The action values are `ENABLE` / `DISABLE` (not the status values) +- Status has five possible values including transitional states (`ENABLING`, `DISABLING`) and `FAILED` +- Can target either a table or a specific GSI, not both implicitly — you must call separately per index +- `ResourceNotFoundException` returns HTTP 400 (not 404) + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateGlobalTableSettingshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateGlobalTableSettingshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..8829d0844cfd8e38533a03fa18e8d3d299b9fa9f --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateGlobalTableSettingshtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateGlobalTableSettings.html +source: sources/amazondynamodb-latest-APIReference-API_UpdateGlobalTableSettingshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:56 + + + +## Overview +The `UpdateGlobalTableSettings` API modifies settings for a DynamoDB global table using the **legacy version 2017.11.29**. It allows updating billing mode, provisioned capacity, auto-scaling settings, and replica-level configurations including table class and GSI settings. AWS strongly recommends using Global Tables version 2019.11.21 (Current) instead. + +## Key Concepts +- **Legacy API** — This is for Global Tables version 2017.11.29; new global tables should use version 2019.11.21 +- **Billing modes** — `PROVISIONED` (default, for predictable workloads) or `PAY_PER_REQUEST` (on-demand, for unpredictable workloads) +- **Write capacity is set globally** — `GlobalTableProvisionedWriteCapacityUnits` applies across all replicas +- **Read capacity is set per-replica** — Each replica can have its own `ReplicaProvisionedReadCapacityUnits` +- **Auto-scaling uses target tracking** — Configurable with scale-in/out cooldowns, target value, min/max units, and optional scale-in disable +- **GSI settings can be updated globally** (write capacity) and per-replica (read capacity) +- **ReplicaTableClass** — Can be updated per replica (e.g., STANDARD vs STANDARD_INFREQUENT_ACCESS) +- **Max 20 GSI settings updates** per call; **max 50 replica settings updates** per call + +## Commands and Syntax +```bash +aws dynamodb update-global-table-settings \ + --global-table-name "MyGlobalTable" \ + --global-table-billing-mode "PAY_PER_REQUEST" +``` + +Required parameter: `GlobalTableName` (3–255 chars, pattern `[a-zA-Z0-9_.-]+`) + +## Relationships +- **Global Tables** — Parent concept; this API manages settings for existing global tables +- **Auto Scaling** — Target tracking scaling policies integrate with Application Auto Scaling +- **GSIs** — Global secondary index capacity is managed through nested settings objects +- **Capacity Modes** — Ties into DynamoDB provisioned vs. on-demand capacity model +- **UpdateGlobalTable** — Separate API for adding/removing replicas (vs. updating settings) +- **DescribeGlobalTableSettings** — Read counterpart to this write API + +## Exam-Relevant Points +- This API is **legacy (2017.11.29)** — always prefer version 2019.11.21 for new tables +- **Write capacity is replicated globally; read capacity is configured per-replica** — this asymmetry is a key design distinction +- Default billing mode is `PROVISIONED` if not specified +- `GlobalTableNotFoundException` (400), `ReplicaNotFoundException` (400), and `InternalServerError` (500) are possible errors +- Account limit: soft quota of **2,500 tables** and up to **500 simultaneous table operations** +- The `LimitExceededException` error covers multiple unrelated limits (table ops, stream readers, import operations) — understand which scenario triggers it +- `ResourceInUseException` occurs when trying to update a resource that's already being updated — retry after the ongoing operation completes + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateGlobalTablehtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateGlobalTablehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c2b0fc8664d8806951e92695c42f82344538b75a --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateGlobalTablehtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateGlobalTable.html +source: sources/amazondynamodb-latest-APIReference-API_UpdateGlobalTablehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:57 + + + +## Overview +The `UpdateGlobalTable` API adds or removes replicas from an existing DynamoDB global table. **This is a legacy API (version 2017.11.29)** — new global tables should use version 2019.11.21, which uses `UpdateTable` instead. Replicas being added must be empty, share the same name, key schema, DynamoDB Streams configuration, and provisioned/maximum write capacity units as the global table. + +## Key Concepts +- **Legacy API only** — applies to global tables version 2017.11.29; version 2019.11.21 (Current) uses `UpdateTable` instead +- Replicas added must be **empty** and match the global table's name, key schema, Streams enablement, and write capacity settings +- If GSIs exist, they must share the **same name, key schema, and write capacity** across all replicas +- AWS recommends issuing **separate requests** for adding vs. removing replicas (not combined) +- Returns a `GlobalTableDescription` with replication group details, statuses, and throughput info + +## Commands and Syntax +**Request:** +```json +{ + "GlobalTableName": "string", + "ReplicaUpdates": [ + { + "Create": { "RegionName": "string" }, + "Delete": { "RegionName": "string" } + } + ] +} +``` +- `GlobalTableName` (required): 3–255 chars, pattern `[a-zA-Z0-9_.-]+` +- `ReplicaUpdates` (required): array of `ReplicaUpdate` objects, each with a `Create` or `Delete` action specifying a region + +## Relationships +- **Superseded by**: `UpdateTable` for version 2019.11.21 global tables +- **Related APIs**: `CreateGlobalTable`, `DescribeGlobalTable`, `ListGlobalTables` +- **Depends on**: DynamoDB Streams must be enabled on the table +- **GSI alignment**: global secondary indexes must match across replicas (name, keys, capacity) + +## Exam-Relevant Points +- This API is **legacy (2017.11.29)** — know the distinction between legacy and current (2019.11.21) global tables +- Current version uses `UpdateTable` to manage replicas, not `UpdateGlobalTable` +- Legacy version consumes **more write capacity** than the current version +- Replica prerequisites: empty table, same name, same key schema, Streams enabled, same write capacity +- Key errors: `ReplicaAlreadyExistsException` (adding duplicate), `ReplicaNotFoundException` (removing non-existent), `GlobalTableNotFoundException`, `TableNotFoundException` + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateItemhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateItemhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..37933d360fed50451e491d88b52e4da3ed833322 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateItemhtml.md @@ -0,0 +1,87 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html +source: sources/amazondynamodb-latest-APIReference-API_UpdateItemhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:57 + + + +## Overview + +The DynamoDB `UpdateItem` API edits an existing item's attributes or creates a new item if it doesn't exist (upsert behavior). It supports setting, removing, adding, and deleting attribute values, conditional updates via expressions, and returning old or new attribute values in the same operation. + +## Key Concepts + +- **Upsert behavior**: UpdateItem creates the item if the primary key doesn't exist; otherwise it modifies the existing item +- **UpdateExpression actions** (4 types): + - `SET` — add/replace attributes; supports arithmetic (`myNum + :val`), `if_not_exists(path, operand)`, and `list_append(operand, operand)` + - `REMOVE` — delete attributes from an item + - `ADD` — increment numbers (initializes to 0 if absent) or add elements to sets; only supports Number and Set types + - `DELETE` — remove elements from a set; only supports Set types +- **ConditionExpression**: optional condition that must be true for the update to proceed; supports `attribute_exists`, `attribute_not_exists`, `attribute_type`, `contains`, `begins_with`, `size`, comparison operators, and logical operators +- **ExpressionAttributeNames** (`#name`): substitute reserved words or special characters in expressions +- **ExpressionAttributeValues** (`:value`): placeholder values used in expressions +- **ReturnValues options**: `NONE` (default), `ALL_OLD`, `UPDATED_OLD`, `ALL_NEW`, `UPDATED_NEW` — returned values are strongly consistent with no additional RCU cost +- **ReturnValuesOnConditionCheckFailure**: returns `ALL_OLD` attributes when a condition check fails +- **Required parameters**: `Key` (full primary key) and `TableName` (name or ARN) +- **Legacy parameters** (avoid): `AttributeUpdates`, `Expected`, `ConditionalOperator` — use expressions instead +- **Atomic counters**: use `SET counter = counter + :val` for thread-safe increments without conditions + +## Commands and Syntax + +**Conditional update with ReturnValues:** +```json +{ + "TableName": "Thread", + "Key": { + "ForumName": {"S": "Amazon DynamoDB"}, + "Subject": {"S": "Maximum number of items?"} + }, + "UpdateExpression": "set LastPostedBy = :val1", + "ConditionExpression": "LastPostedBy = :val2", + "ExpressionAttributeValues": { + ":val1": {"S": "alice@example.com"}, + ":val2": {"S": "fred@example.com"} + }, + "ReturnValues": "ALL_NEW" +} +``` + +**Atomic counter (increment):** +```json +{ + "UpdateExpression": "set Replies = Replies + :num", + "ExpressionAttributeValues": {":num": {"N": "1"}}, + "ReturnValues": "NONE" +} +``` + +**Multiple actions in one expression:** +``` +SET a=:value1, b=:value2 DELETE :value3, :value4, :value5 +``` + +## Relationships + +- **PutItem/DeleteItem/GetItem**: sibling single-item operations; UpdateItem is unique in supporting partial attribute modifications +- **TransactWriteItems**: can include UpdateItem as a transactional action; `TransactionConflictException` occurs on conflicts +- **Global Tables**: `ReplicatedWriteConflictException` when concurrent cross-region writes conflict +- **Local Secondary Indexes**: `ItemCollectionSizeLimitExceededException` enforces 10 GB limit per partition key collection +- **ConsumedCapacity**: reports WCU consumption across table and indexes +- **ConditionExpression**: shared expression grammar with other DynamoDB operations + +## Exam-Relevant Points + +- UpdateItem performs an **upsert** — creates the item if it doesn't exist +- `ADD` on a non-existent numeric attribute initializes it to **0** then adds the value +- `ADD` and `DELETE` actions only work with **Number and Set** types respectively +- ReturnValues does **not consume additional read capacity units**; returned values are **strongly consistent** +- `ItemCollectionSizeLimitExceededException` only applies to tables with **local secondary indexes** (10 GB limit) +- `ProvisionedThroughputExceededException` and `ThrottlingException` — SDKs **automatically retry** with exponential backoff +- `ConditionalCheckFailedException` (HTTP 400) is thrown when a ConditionExpression evaluates to false +- `AttributeUpdates`, `Expected`, and `ConditionalOperator` are **legacy parameters** — always use expression-based alternatives +- `if_not_exists()` prevents overwriting existing attributes; `list_append()` appends to lists — both are **SET-only** functions + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateKinesisStreamingDestinationhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateKinesisStreamingDestinationhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..013b9d47604945ba29adabbc076dc7f4635ce078 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateKinesisStreamingDestinationhtml.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateKinesisStreamingDestination.html +source: sources/amazondynamodb-latest-APIReference-API_UpdateKinesisStreamingDestinationhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:57 + + + +## Overview +The `UpdateKinesisStreamingDestination` API updates the configuration of an existing Kinesis Data Streams streaming destination for a DynamoDB table. Its primary use case is modifying the `ApproximateCreationDateTimePrecision` setting on records streamed from DynamoDB to Kinesis. + +## Key Concepts +- Updates an **already-configured** Kinesis streaming destination on a DynamoDB table (does not create or delete one) +- The only configurable property is `ApproximateCreationDateTimePrecision`, which controls the timestamp granularity on streamed records (e.g., `MILLISECOND`) +- `StreamArn` and `TableName` are **required**; `UpdateKinesisStreamingConfiguration` is optional +- `TableName` accepts either the table name or the table's ARN +- Destination status values: `ENABLING`, `ACTIVE`, `DISABLING`, `DISABLED`, `ENABLE_FAILED`, `UPDATING` +- During an update, the destination status transitions to `UPDATING` + +## Commands and Syntax +**HTTP API call:** +``` +X-Amz-Target: DynamoDB_20120810.UpdateKinesisStreamingDestination +``` + +**Request body:** +```json +{ + "StreamArn": "arn:aws:kinesis:us-east-1:123456789012:stream/example_stream", + "TableName": "example_table", + "UpdateKinesisStreamingConfiguration": { + "ApproximateCreationDateTimePrecision": "MILLISECOND" + } +} +``` + +**AWS CLI equivalent:** `aws dynamodb update-kinesis-streaming-destination` + +## Relationships +- **EnableKinesisStreamingDestination / DisableKinesisStreamingDestination** — companion APIs that create or remove the streaming link; this API only modifies an existing one +- **DynamoDB Streams** — alternative change-data-capture mechanism (24-hour retention, pull-based); Kinesis streaming is the push-based alternative with longer retention and broader consumer ecosystem +- **Kinesis Data Streams** — the destination service receiving the change records +- **DynamoDB table operations quota** — shares the 500 simultaneous table operations limit with `CreateTable`, `UpdateTable`, `DeleteTable`, `UpdateTimeToLive`, and restore operations + +## Exam-Relevant Points +- The `ApproximateCreationDateTimePrecision` setting controls whether timestamps on Kinesis records are at **second** or **millisecond** granularity +- `ResourceNotFoundException` (400) is returned if the table/index doesn't exist or isn't `ACTIVE` +- `ResourceInUseException` (400) is returned if another update is already in progress — you must wait and retry +- `LimitExceededException` (400) is thrown when the 500 simultaneous table operations limit is hit +- The soft account quota is **2,500 tables**; up to **250 concurrent create-with-secondary-index** operations; up to **50 concurrent imports** +- StreamArn length: 37–1024 characters; TableName length: 1–1024 (request) / 3–255 (response, pattern `[a-zA-Z0-9_.-]+`) + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTableReplicaAutoScalinghtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTableReplicaAutoScalinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d5185a166dbfe1b5f60ff27d273da865bb231f5e --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTableReplicaAutoScalinghtml.md @@ -0,0 +1,59 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTableReplicaAutoScaling.html +source: sources/amazondynamodb-latest-APIReference-API_UpdateTableReplicaAutoScalinghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:58 + + + +## Overview +`UpdateTableReplicaAutoScaling` is a DynamoDB API action that updates auto scaling settings on global tables in a single call. It allows configuring target tracking scaling policies for both the base table's write capacity and per-replica read capacity, as well as for global secondary indexes on replicas. + +## Key Concepts +- **Scope**: Operates on **global tables** only — updates auto scaling across all replicas at once +- **Write capacity auto scaling**: Configured at the table level via `ProvisionedWriteCapacityAutoScalingUpdate` (applies globally, not per-replica) +- **Read capacity auto scaling**: Configured per-replica via `ReplicaUpdates`, each identified by `RegionName` +- **GSI auto scaling**: Can be updated at two levels — global GSI write scaling (`GlobalSecondaryIndexUpdates`) and per-replica GSI read scaling (`ReplicaGlobalSecondaryIndexUpdates`) +- **Scaling policy type**: Uses **target tracking** scaling policies exclusively, with configurable `TargetValue`, `ScaleInCooldown`, `ScaleOutCooldown`, and `DisableScaleIn` +- **Auto scaling role**: Each scaling configuration references an `AutoScalingRoleArn` that Application Auto Scaling assumes +- **Min/Max units**: Every auto scaling configuration requires `MinimumUnits` and `MaximumUnits` boundaries +- **TableName**: Required parameter; accepts table name or ARN (max 1024 chars) + +## Commands and Syntax +```bash +aws dynamodb update-table-replica-auto-scaling \ + --table-name "MyGlobalTable" \ + --replica-updates '[{ + "RegionName": "us-west-2", + "ReplicaProvisionedReadCapacityAutoScalingUpdate": { + "MinimumUnits": 5, + "MaximumUnits": 100, + "AutoScalingDisabled": false, + "ScalingPolicyUpdate": { + "TargetTrackingScalingPolicyConfiguration": { + "TargetValue": 70.0 + } + } + } + }]' +``` + +## Relationships +- **Global Tables**: This API is only meaningful for tables with replicas (DynamoDB Global Tables) +- **Application Auto Scaling**: DynamoDB auto scaling is implemented via Application Auto Scaling under the hood; the `AutoScalingRoleArn` is a service-linked or custom role for that service +- **DescribeTableReplicaAutoScaling**: Read counterpart to inspect current auto scaling settings +- **UpdateTable**: Separate API for changing table structure; this API is specifically for auto scaling configuration +- **Provisioned capacity mode**: Auto scaling only applies to tables in provisioned mode, not on-demand + +## Exam-Relevant Points +- Write capacity auto scaling is set **globally** (table-level), while read capacity auto scaling is set **per-replica** — reflects DynamoDB global tables' replication model where writes replicate but reads are local +- Only **target tracking** scaling policies are supported (not step scaling or scheduled) +- `DisableScaleIn: true` prevents auto scaling from reducing capacity — useful for workloads with predictable peaks +- Account limit: up to **500 simultaneous table operations** (CreateTable, UpdateTable, DeleteTable, etc.); **250** if creating tables with secondary indexes +- Soft account quota of **2,500 tables** +- Errors to know: `ResourceInUseException` (concurrent update conflict), `ResourceNotFoundException` (table doesn't exist or not ACTIVE), `LimitExceededException` (too many concurrent operations) +- Returns `TableAutoScalingDescription` with per-replica status including `ReplicaStatus` and index-level scaling settings + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTablehtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTablehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e6b2498627493ef7d073b17c666978bdba475817 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTablehtml.md @@ -0,0 +1,71 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html +source: sources/amazondynamodb-latest-APIReference-API_UpdateTablehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:58 + + + +## Overview +`UpdateTable` is an asynchronous DynamoDB API operation that modifies a table's provisioned throughput, global secondary indexes (GSIs), DynamoDB Streams settings, billing mode, encryption, replication (global tables), table class, deletion protection, and warm throughput. Only one major structural change (throughput modification, GSI creation, or GSI deletion) can be performed per call, and the table transitions from `ACTIVE` to `UPDATING` during execution, blocking further `UpdateTable` requests until complete. + +## Key Concepts +- **Asynchronous operation**: Table status changes `ACTIVE` → `UPDATING` → `ACTIVE`; no concurrent `UpdateTable` calls allowed during update +- **One structural change at a time**: You can modify throughput, OR create one GSI, OR delete one GSI per call (but after a new GSI begins backfilling, other operations can proceed) +- **BillingMode switching**: Switch between `PROVISIONED` and `PAY_PER_REQUEST`; when switching to provisioned, initial capacity values are estimated from the past 30 minutes of consumption +- **DeletionProtectionEnabled**: Can be toggled on/off to prevent accidental table deletion +- **TableClass**: Switch between `STANDARD` and `STANDARD_INFREQUENT_ACCESS` +- **MultiRegionConsistency**: Set to `EVENTUAL` (default, MREC) or `STRONG` (MRSC) — only valid when first creating replicas via `ReplicaUpdates` +- **GlobalTableWitnessUpdates**: Witnesses are cost-effective alternatives to full replicas in MRSC global tables; they maintain replicated change data but do not support read/write operations +- **WarmThroughput**: Pre-warms read/write capacity (measured in units per second) at the table and GSI level +- **OnDemandThroughput**: Sets max read/write request units for on-demand tables +- **SSESpecification**: Update server-side encryption settings (KMS key, SSE type) +- **StreamSpecification**: Enable/disable DynamoDB Streams; cannot enable on a table that already has a stream or disable on one without +- **ReplicaUpdates**: Create, update, or delete global table replicas with per-replica overrides for throughput, KMS keys, table class, and GSI settings +- **Only `TableName` is required**; all other parameters are optional + +## Commands and Syntax +``` +aws dynamodb update-table \ + --table-name Thread \ + --provisioned-throughput ReadCapacityUnits=10,WriteCapacityUnits=10 +``` + +**GSI operations** (one per call): +```json +"GlobalSecondaryIndexUpdates": [ + { "Create": { "IndexName": "...", "KeySchema": [...], "Projection": {...}, "ProvisionedThroughput": {...} } }, + { "Update": { "IndexName": "...", "ProvisionedThroughput": {...} } }, + { "Delete": { "IndexName": "..." } } +] +``` + +**Add a global table replica:** +```json +"ReplicaUpdates": [ + { "Create": { "RegionName": "eu-west-1", "KMSMasterKeyId": "...", "TableClassOverride": "STANDARD" } } +] +``` + +## Relationships +- **CreateTable / DeleteTable**: Sibling control-plane operations; share the 500 concurrent operations limit +- **Global Secondary Indexes (GSI)**: GSI lifecycle managed here; online index creation triggers backfilling +- **DynamoDB Streams**: Stream configuration toggled here; connects to Lambda triggers and KCL consumers +- **Global Tables (v2)**: Replica management via `ReplicaUpdates`; MRSC consistency via `MultiRegionConsistency` and witnesses +- **AWS KMS**: Encryption key management via `SSESpecification` and per-replica `KMSMasterKeyId` +- **Auto Scaling**: Throughput changes here interact with Application Auto Scaling policies + +## Exam-Relevant Points +- **Only one GSI create or delete per `UpdateTable` call** — throughput updates on existing GSIs can be batched +- **Table is blocked from further `UpdateTable` calls while in `UPDATING` state** +- **Concurrent operations limit**: Up to 500 simultaneous table operations per account (250 when creating tables with secondary indexes) +- **Soft limit of 2,500 tables per account** +- **Switching billing mode to provisioned** auto-estimates initial capacity from the last 30 minutes +- **Streams validation**: Enabling a stream on a table that already has one throws `ValidationException` +- **Error codes**: `ResourceInUseException` (409-style conflict), `ResourceNotFoundException` (table doesn't exist or not ACTIVE), `LimitExceededException` (quota exceeded) +- **MRSC global tables** support witnesses as a cheaper alternative to full replicas (no read/write, only change data replication) +- **`DeletionProtectionEnabled`** is a table-level toggle set via this API + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTimeToLivehtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTimeToLivehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..8bb0058efd6686a2b22f1a6894cd901c3e261c23 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTimeToLivehtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTimeToLive.html +source: sources/amazondynamodb-latest-APIReference-API_UpdateTimeToLivehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:59 + + + +## Overview +The `UpdateTimeToLive` API enables or disables Time to Live (TTL) on a DynamoDB table. TTL automatically deletes items whose epoch-time TTL attribute is older than the current time, freeing throughput for other operations on a best-effort basis. + +## Key Concepts +- **TTL mechanism**: Compares current epoch time (seconds since 1970-01-01 00:00:00 UTC) against a user-specified attribute; items with a value less than current time are marked expired and eventually deleted. +- **Deletion is best-effort**: Expired items are typically deleted within **two days** of expiration — not immediately. Until deleted, expired items still appear in reads, queries, and scans. +- **Index cleanup**: When expired items are deleted, they are removed from LSIs and GSIs immediately, following the same eventually consistent behavior as a standard delete. +- **One-hour propagation window**: After a successful call, the change can take up to one hour to fully process. Additional `UpdateTimeToLive` calls on the same table during that hour raise a `ValidationException`. +- **Table identifier**: Accepts either the table name or its ARN (max 1024 characters). + +## Commands and Syntax +**Request** (JSON): +```json +{ + "TableName": "my-table", + "TimeToLiveSpecification": { + "AttributeName": "expiresAt", + "Enabled": true + } +} +``` +**Response**: Returns the current `TimeToLiveSpecification` (same shape) with HTTP 200 on success. + +## Relationships +- **Table operations quota**: `UpdateTimeToLive` shares the 500-concurrent-table-operations limit with `CreateTable`, `UpdateTable`, `DeleteTable`, `RestoreTableFromBackup`, and `RestoreTableToPointInTime`. +- **DynamoDB Streams**: TTL deletions can be captured via Streams (covered in TTL Streams documentation). +- **Secondary indexes**: TTL deletions cascade to GSIs and LSIs. +- **DescribeTimeToLive**: Companion read API to check current TTL configuration. + +## Exam-Relevant Points +- Expired items can remain visible for **up to 48 hours** — TTL deletion is not instantaneous. +- Only **one** `UpdateTimeToLive` call per table per hour is allowed; additional calls produce `ValidationException`. +- TTL does **not** consume write throughput for the delete operations (best-effort, background process). +- The TTL attribute must store values in **epoch second** format (not milliseconds). +- Concurrent table operation limit is **500** (reduced to 250 when creating tables with secondary indexes). +- Soft account quota: **2,500 tables**. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_DescribeStreamhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_DescribeStreamhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5db54e1a0b5a8a2abd856368eb72775d99130702 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_DescribeStreamhtml.md @@ -0,0 +1,59 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_DescribeStream.html +source: sources/amazondynamodb-latest-APIReference-API_streams_DescribeStreamhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:59 + + + +## Overview + +`DescribeStream` is a DynamoDB Streams API operation that returns metadata about a stream, including its current status, ARN, associated DynamoDB table, shard composition, and the sequence number ranges of stream records within each shard. It is rate-limited to 10 calls per second. + +## Key Concepts + +- **Stream ARN** — uniquely identifies a DynamoDB stream; required parameter for every call. +- **Shard lifecycle** — a shard with only a `StartingSequenceNumber` is **open** (still receiving records); a shard with both `StartingSequenceNumber` and `EndingSequenceNumber` is **closed**. +- **ParentShardId** — shards form a lineage; child shards reference their parent, enabling ordered traversal of the shard tree. +- **StreamStatus** — indicates the current state of the stream (e.g., `ENABLED`). +- **StreamViewType** — controls what data is captured in stream records (e.g., `NEW_AND_OLD_IMAGES`). +- **Pagination** — use `LastEvaluatedShardId` from the response as `ExclusiveStartShardId` in subsequent calls to paginate through shards (max 100 per call via `Limit`). +- **ShardFilter** — optional filter to narrow results (e.g., `CHILD_SHARDS` of a specific shard). + +## Commands and Syntax + +**Request (POST to DynamoDB Streams endpoint):** +```json +{ + "StreamArn": "arn:aws:dynamodb:us-west-2:111122223333:table/Forum/stream/2015-05-20T20:51:10.252", + "ExclusiveStartShardId": "shardId-...", + "Limit": 100, + "ShardFilter": { + "Type": "CHILD_SHARDS", + "ShardId": "shardId-00000001741631711871-1f6a72cf" + } +} +``` +**Target header:** `X-Amz-Target: DynamoDBStreams_20120810.DescribeStream` + +**Response** returns a `StreamDescription` object containing `StreamArn`, `StreamLabel`, `StreamStatus`, `StreamViewType`, `TableName`, `KeySchema`, `Shards[]`, and optionally `LastEvaluatedShardId`. + +## Relationships + +- **DynamoDB Tables** — every stream is associated with exactly one table; the response includes `TableName` and `KeySchema`. +- **GetRecords / GetShardIterator** — after discovering shards via `DescribeStream`, you use `GetShardIterator` then `GetRecords` to consume records from individual shards. +- **ListStreams** — used to discover stream ARNs before calling `DescribeStream`. +- **Lambda triggers / KCL** — higher-level consumers use `DescribeStream` internally to discover and process shards. + +## Exam-Relevant Points + +- Rate limit: **10 calls per second** for `DescribeStream`. +- Maximum shards returned per call: **100** (use pagination via `ExclusiveStartShardId`/`LastEvaluatedShardId`). +- Open vs. closed shard detection: presence of `EndingSequenceNumber` means closed. +- Only two errors: **InternalServerError** (500) and **ResourceNotFoundException** (400). +- `StreamArn` is the only **required** parameter; min length 37, max length 1024. +- This is a **DynamoDB Streams** API (service model `streams-dynamodb-2012-08-10`), separate from the main DynamoDB API. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_GetRecordshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_GetRecordshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..0ccbea7e0ee350f091fc7aa975cd8e2f4b815bc7 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_GetRecordshtml.md @@ -0,0 +1,54 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_GetRecords.html +source: sources/amazondynamodb-latest-APIReference-API_streams_GetRecordshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:59 + + + +## Overview +The `GetRecords` API retrieves stream records sequentially from a specific shard in a DynamoDB Stream. It requires a shard iterator (obtained from `GetShardIterator`) and returns up to 1 MB of data or 1,000 records per call, whichever limit is reached first. Multiple calls may be needed to reach a portion of the shard containing records. + +## Key Concepts +- **Shard Iterator**: A position marker specifying where to start reading in a shard; obtained from `GetShardIterator` and expires after **15 minutes**. +- **Sequential Reading**: Records are read in order from the position indicated by the shard iterator. +- **Data Retention**: Stream records are retained for **24 hours** only; accessing trimmed data raises `TrimmedDataAccessException`. +- **Concurrency Limit**: More than **2 processes** reading from the same shard simultaneously may cause throttling (`LimitExceededException`). +- **Record Structure**: Each record contains `eventName` (INSERT, MODIFY, REMOVE), `eventSource` (aws:dynamodb), `awsRegion`, `dynamodb` payload (Keys, NewImage, OldImage depending on StreamViewType), `eventID`, `eventVersion`, and optional `userIdentity`. +- **NextShardIterator**: Returned for pagination; `null` means the shard is closed and no more data will be returned. +- **StreamViewType**: Determines what data appears in records (e.g., KEYS_ONLY, NEW_IMAGE, OLD_IMAGE, NEW_AND_OLD_IMAGES). + +## Commands and Syntax +**Request:** +```json +{ + "ShardIterator": "string", // Required, 1–2048 chars + "Limit": number // Optional, min 1, max 1000 +} +``` + +**HTTP Target:** `DynamoDBStreams_20120810.GetRecords` + +**Response includes:** +- `NextShardIterator` — use for next `GetRecords` call +- `Records[]` — array of stream records with `dynamodb.Keys`, `dynamodb.NewImage`, `dynamodb.OldImage`, `dynamodb.SequenceNumber`, `dynamodb.SizeBytes`, `dynamodb.StreamViewType` + +## Relationships +- **GetShardIterator** → provides the `ShardIterator` input required by this API +- **DescribeStream** → used upstream to discover shards before iterating +- **DynamoDB Streams** → this is part of the Streams-specific API (service endpoint: `streams.dynamodb..amazonaws.com`) +- **Lambda Triggers** → Lambda uses this API internally when processing DynamoDB Stream events +- **Kinesis Client Library (KCL)** → KCL adapter uses GetRecords for stream consumption + +## Exam-Relevant Points +- **Max 1 MB or 1,000 records** per GetRecords call (whichever comes first) +- **Shard iterator expires after 15 minutes** — must be refreshed via GetShardIterator +- **24-hour data retention** — records older than 24 hours are trimmed +- **Max 2 concurrent readers per shard** — exceeding this causes throttling +- **Empty results are normal** — may require multiple calls before reaching records in the shard +- **NextShardIterator = null** indicates a closed shard (parent shard after a split/merge) +- `TrimmedDataAccessException` means you're trying to read data that has aged past the 24-hour retention window + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_GetShardIteratorhtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_GetShardIteratorhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..50b9658445155fafcd1e1daa1e2cee90702b954a --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_GetShardIteratorhtml.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_GetShardIterator.html +source: sources/amazondynamodb-latest-APIReference-API_streams_GetShardIteratorhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 22:59 + + + +## Overview +The `GetShardIterator` API is part of DynamoDB Streams. It returns a shard iterator—a cursor that specifies a position within a shard from which to begin reading stream records. The returned iterator is then passed to `GetRecords` to retrieve the actual change data capture records. Shard iterators expire after 15 minutes. + +## Key Concepts +- **Shard Iterator**: A token representing a position in a shard; used with `GetRecords` to read stream records sequentially. +- **15-minute expiry**: A shard iterator becomes invalid 15 minutes after it is returned. +- **24-hour data retention**: DynamoDB Streams retains records for 24 hours; older records are trimmed. +- **ShardIteratorType** (four modes): + - `TRIM_HORIZON` — Start at the oldest untrimmed record in the shard. + - `LATEST` — Start just after the most recent record (read only new data). + - `AT_SEQUENCE_NUMBER` — Start exactly at a specific sequence number. + - `AFTER_SEQUENCE_NUMBER` — Start immediately after a specific sequence number. +- **SequenceNumber** is only required when using `AT_SEQUENCE_NUMBER` or `AFTER_SEQUENCE_NUMBER`. + +## Commands and Syntax +**Request** (POST to `DynamoDBStreams_20120810.GetShardIterator`): +```json +{ + "StreamArn": "arn:aws:dynamodb:us-west-2:111122223333:table/Forum/stream/2015-05-20T20:51:10.252", + "ShardId": "00000001414576573621-f55eea83", + "ShardIteratorType": "TRIM_HORIZON" +} +``` + +**Required parameters**: `ShardId`, `ShardIteratorType`, `StreamArn` +**Optional parameter**: `SequenceNumber` (needed for `AT_SEQUENCE_NUMBER` / `AFTER_SEQUENCE_NUMBER`) + +**Response**: Returns a `ShardIterator` string (up to 2048 characters). + +## Relationships +- **GetRecords**: Consumes the shard iterator returned by this API to fetch actual stream records. +- **DescribeStream / ListStreams**: Used upstream to discover available streams and shards before calling `GetShardIterator`. +- **DynamoDB Streams**: The parent feature; streams are enabled per-table and capture item-level changes. +- **Kinesis Client Library (KCL) Adapter**: Can abstract away direct `GetShardIterator`/`GetRecords` calls. +- **Lambda DynamoDB triggers**: Use streams internally but manage iterators automatically. + +## Exam-Relevant Points +- Shard iterators expire after **15 minutes** — applications must handle re-acquisition. +- DynamoDB Streams data retention is **24 hours** — requesting data older than this throws `TrimmedDataAccessException`. +- `TRIM_HORIZON` reads from the oldest available record; `LATEST` reads only new records — know when to use each. +- `TrimmedDataAccessException` can occur even with a valid iterator if the pointed-to record ages past 24 hours before `GetRecords` is called. +- `ResourceNotFoundException` (HTTP 400) indicates the stream/table doesn't exist or isn't `ACTIVE`. +- The API target header is `DynamoDBStreams_20120810.GetShardIterator` — DynamoDB Streams has its own API endpoint, separate from the main DynamoDB API. + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_ListStreamshtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_ListStreamshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2f4b1813de4da793092c7b59a416cd4113aba802 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_ListStreamshtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_ListStreams.html +source: sources/amazondynamodb-latest-APIReference-API_streams_ListStreamshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:00 + + + +## Overview +`ListStreams` is a DynamoDB Streams API operation that returns stream ARNs associated with the current account and endpoint, optionally filtered by table name. It supports pagination for iterating through large result sets. + +## Key Concepts +- Returns an array of **Stream** objects, each containing `StreamArn`, `StreamLabel`, and `TableName` +- Rate limited to **5 calls per second** +- Results can be filtered to a single table via `TableName` parameter +- Upper limit of **100 streams** per response (`Limit` parameter) +- Uses **pagination** via `ExclusiveStartStreamArn` / `LastEvaluatedStreamArn` pattern (same as DynamoDB table scans) +- `LastEvaluatedStreamArn` being empty is the **only** reliable indicator that all results have been retrieved — a non-empty value does not guarantee more data exists + +## Commands and Syntax +**Request (POST to DynamoDB Streams endpoint):** +```json +{ + "ExclusiveStartStreamArn": "string", // optional, for pagination + "Limit": number, // optional, max 100 + "TableName": "string" // optional, 3-255 chars, pattern [a-zA-Z0-9_.-]+ +} +``` +**Target header:** `X-Amz-Target: DynamoDBStreams_20120810.ListStreams` + +## Relationships +- Part of the **DynamoDB Streams** API (separate service endpoint from DynamoDB) +- Returns **Stream** objects that feed into `DescribeStream` and `GetShardIterator` → `GetRecords` workflow +- Stream ARNs follow the format: `arn:aws:dynamodb:::table//stream/` +- Streams are tied to DynamoDB tables; a table can have multiple historical streams (each with a unique timestamp label) + +## Exam-Relevant Points +- **Rate limit: 5 TPS** — distinct from DynamoDB table API limits +- **Pagination behavior**: must check for empty `LastEvaluatedStreamArn`, not list size +- **Max 100 results** per call +- All parameters are **optional** — calling with an empty body `{}` returns all streams for the account +- Errors: `InternalServerError` (500), `ResourceNotFoundException` (400, when filtering by nonexistent table) +- Uses the **DynamoDB Streams** service endpoint, not the main DynamoDB endpoint (`DynamoDBStreams_20120810`) + diff --git a/entries/2026/03/11/amazondynamodb-latest-APIReference-Welcomehtml.md b/entries/2026/03/11/amazondynamodb-latest-APIReference-Welcomehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..04458ce8d5a0801badc8ec9e1196ec3ea4ed0d4f --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-APIReference-Welcomehtml.md @@ -0,0 +1,34 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/Welcome.html +source: sources/amazondynamodb-latest-APIReference-Welcomehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:00 + + + +## Overview +This page introduces the Amazon DynamoDB API Reference, which documents the low-level API for managing tables, indexes, CRUD operations on data, and processing DynamoDB Streams records. + +## Key Concepts +- DynamoDB exposes a **low-level API** for direct HTTP-based interaction with the service +- The API covers four areas: **table/index management**, **data CRUD**, and **stream record processing** +- AWS recommends using **SDKs rather than calling the low-level API directly** — SDKs handle authentication, serialization, and connection management +- Each API action links to equivalent **CLI commands** and **language-specific SDK methods** + +## Commands and Syntax +No specific commands on this page — it serves as an entry point to the API Reference documentation. + +## Relationships +- **DynamoDB Developer Guide** — contains the SDK overview and higher-level guidance +- **AWS SDKs** — the recommended abstraction layer over this low-level API +- **DynamoDB Streams** — stream record processing is part of this same API surface +- **AWS CLI** — each API action maps to a CLI command + +## Exam-Relevant Points +- DynamoDB has a distinct low-level REST/HTTP API; SDKs are wrappers around it +- The API is split into **table/index management**, **data operations**, and **streams** — these are separate categories of API actions +- SDKs handle **authentication, serialization, and connection management** automatically + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-AccessingDynamoDBhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-AccessingDynamoDBhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..63fbbf4c0ba1fc84d7af2e5217155de912170957 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-AccessingDynamoDBhtml.md @@ -0,0 +1,77 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AccessingDynamoDB.html +source: sources/amazondynamodb-latest-developerguide-AccessingDynamoDBhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:00 + + + +## Overview +This page describes the four primary methods for accessing Amazon DynamoDB: the AWS Management Console, the AWS CLI, the AWS SDKs (API), and the NoSQL Workbench GUI tool. It also covers IP address ranges for DynamoDB and dual-stack (IPv4/IPv6) endpoint conventions. + +## Key Concepts +- **Four access methods**: Console, AWS CLI, AWS SDKs, and NoSQL Workbench +- **AWS CLI** requires an access key ID and secret access key before use +- **AWS SDKs** available for Java, JavaScript, .NET, Node.js, PHP, Python, Ruby, C++, Go, Android, and iOS +- **NoSQL Workbench** is a cross-platform GUI for data modeling, visualization, and query development; includes optional DynamoDB Local bundled installation +- **NoSQL Workbench limitation**: does not support AWS logins with two-factor authentication (2FA) +- **DynamoDB Local** can be used with the CLI by specifying `--endpoint-url http://localhost:8000`; this parameter is required on every command (no default endpoint override) +- **IP address ranges**: published in `ip-ranges.json`; filter by `"service": "DYNAMODB"`; ranges do **not** apply to DynamoDB Streams or DAX +- **Dual-stack endpoints** support both IPv4 and IPv6; IAM policies using IP address filtering must be updated to include IPv6 ranges or access will break + +## Commands and Syntax +**Create a table:** +```bash +aws dynamodb create-table \ + --table-name Music \ + --attribute-definitions \ + AttributeName=Artist,AttributeType=S \ + AttributeName=SongTitle,AttributeType=S \ + --key-schema AttributeName=Artist,KeyType=HASH AttributeName=SongTitle,KeyType=RANGE \ + --billing-mode PAY_PER_REQUEST \ + --table-class STANDARD +``` + +**Put items (JSON inline):** +```bash +aws dynamodb put-item --table-name Music \ + --item '{"Artist": {"S": "No One You Know"}, "SongTitle": {"S": "Call Me Today"}, "AlbumTitle": {"S": "Somewhat Famous"}}' \ + --return-consumed-capacity TOTAL +``` + +**Query using a JSON file:** +```bash +aws dynamodb query --table-name Music --key-conditions file://key-conditions.json +``` + +**Use DynamoDB Local:** +```bash +aws dynamodb list-tables --endpoint-url http://localhost:8000 +``` + +**Dual-stack endpoint patterns:** +- `dynamodb..api.aws` +- `.ddb..api.aws` +- `streams-dynamodb..api.aws` +- `dax..api.aws` +- `dynamodb-fips..api.aws` + +## Relationships +- **IAM**: Access keys required for CLI/SDK; IPv6 dual-stack requires updating IAM IP-filtering policies with IPv6 ranges +- **DynamoDB Local**: Development/testing tool, accessible via CLI with `--endpoint-url`; bundled with NoSQL Workbench +- **DynamoDB Streams & DAX**: Have separate endpoints; IP address ranges from `ip-ranges.json` do not cover them +- **Programming with SDKs**: Leads to the broader Programming with DynamoDB topic +- **NoSQL Workbench**: Connects to data modeling, operation building, and query development workflows + +## Exam-Relevant Points +- DynamoDB Local requires `--endpoint-url` on **every** CLI command — there is no way to set it as default +- IP address ranges in `ip-ranges.json` apply to DynamoDB tables/indexes only — **not** to Streams or DAX +- Dual-stack endpoints use the `api.aws` domain suffix (not `amazonaws.com`) +- Switching to IPv6/dual-stack requires updating IAM policies that filter by IP address to include IPv6 ranges, otherwise access will be denied +- NoSQL Workbench does **not** support 2FA-enabled AWS logins +- `HASH` = partition key, `RANGE` = sort key in `--key-schema` +- `--billing-mode PAY_PER_REQUEST` = on-demand capacity mode + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-AutoScalinghtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-AutoScalinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a18565ea92f00e5a30303a159e1f81291769ba4b --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-AutoScalinghtml.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AutoScaling.html +source: sources/amazondynamodb-latest-developerguide-AutoScalinghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:01 + +## Overview +DynamoDB auto scaling uses AWS Application Auto Scaling to dynamically adjust provisioned throughput capacity (read and write) on tables and global secondary indexes (GSIs) in response to actual traffic patterns. It uses a target tracking algorithm that compares consumed capacity against a configured target utilization percentage, triggering CloudWatch alarms to scale capacity up or down automatically. + +## Key Concepts +- **Auto scaling** dynamically adjusts provisioned throughput so you don't need to manually intervene for cyclical or unpredictable workloads +- **Scaling policy** specifies: target table/GSI, capacity type (read/write), min and max provisioned capacity, and target utilization percentage +- **Target utilization** is the ratio of consumed to provisioned capacity units (expressed as a percentage); valid range is **20% to 90%** +- **Target tracking algorithm** keeps actual utilization at or near the chosen target over the long term +- **Scale-up trigger**: consumed capacity breaches target utilization for **2 consecutive one-minute data points** +- **Scale-down trigger**: **15 consecutive data points** fall below target utilization +- After triggering, `UpdateTable` API is called; takes **several minutes** to update capacity — requests exceeding previous capacity are **throttled** during this period +- Short-duration spikes are handled by **burst capacity**, not auto scaling +- CloudWatch alarms may have a **short delay of up to a few minutes** before triggering +- Each scaling policy creates **a pair of CloudWatch alarms** (upper and lower bounds); a full scaling event creates **8 alarms total** (4 for read, 4 for write) +- AWS Config records **8 configuration items** per scaling event +- Auto scaling is **enabled by default** when creating tables via the AWS Management Console +- Deleting a table or global table replica does **NOT** automatically delete associated scalable targets, scaling policies, or CloudWatch alarms +- Creating a GSI on an existing table does **NOT** auto-enable scaling on the GSI — you must manage capacity manually until the GSI backfill completes and reaches active status + +## Commands and Syntax +- **Console**: Enable via "Apply same settings to global secondary indexes" checkbox +- **API**: Auto scaling ultimately invokes `UpdateTable` to change provisioned throughput +- **Scheduled scaling**: Supported via Application Auto Scaling scheduled actions + +## Relationships +- **Application Auto Scaling** — the underlying AWS service that performs the scaling +- **CloudWatch** — publishes consumed capacity metrics; triggers alarms that invoke scaling +- **Amazon SNS** — optional notifications when alarms fire +- **AWS Config** — records configuration items for each scaling event (cost implication) +- **Burst capacity** — complements auto scaling for short spikes +- **GSIs** — have independent provisioned throughput; should have auto scaling applied uniformly with the base table +- **Provisioned capacity mode** — auto scaling only applies in provisioned mode (not on-demand) + +## Exam-Relevant Points +- Target utilization range: **20–90%** +- Scale-up requires **2 consecutive** breached data points; scale-down requires **15 consecutive** data points below target +- You **cannot** adjust the number of data points required to trigger the alarm +- Deleting a table does **not** clean up auto scaling resources (scalable targets, policies, alarms) +- New GSIs on existing tables require **manual capacity management** until backfill completes +- Auto scaling is **enabled by default** in the Console but not via CLI/SDK +- During scaling, requests exceeding the **previous** provisioned capacity are throttled +- Manual provisioned throughput changes do **not** affect existing auto scaling CloudWatch alarms +- Each scaling event produces **8 CloudWatch alarms** and **8 AWS Config configuration items** + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-Backup-and-Restorehtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-Backup-and-Restorehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9aa394a18a3f48c6a4c344871e332818ed5fd48a --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-Backup-and-Restorehtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Backup-and-Restore.html +source: sources/amazondynamodb-latest-developerguide-Backup-and-Restorehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:01 + + + +## Overview +DynamoDB provides two backup mechanisms for data protection: **on-demand backups** (full table snapshots) and **point-in-time recovery (PITR)** (continuous backups with per-second granularity up to 35 days). Both operate without impacting production performance. On-demand backups can be managed through DynamoDB natively or through AWS Backup. All backups are automatically encrypted. + +## Key Concepts +- **On-demand backups**: Full table snapshots created manually or via API; charged by size and duration; restore to exact state when backup was created +- **Point-in-time recovery (PITR)**: Continuous, fully managed backups; up to 35 days of recovery points at per-second granularity; charged by table size for duration PITR is enabled +- **PITR recovery window**: Configurable between 1–35 days; can restore from 5 minutes before current time back to the configured period +- **Restore creates a new table** — both on-demand and PITR restores produce a new DynamoDB table, not an in-place restore +- **No performance impact**: Neither backup type affects table performance or API latencies +- **Two management options for on-demand backups**: DynamoDB native or AWS Backup +- **Tags are NOT preserved** on restored tables — must be re-added manually +- **ABAC not supported** for DynamoDB-native backups; use AWS Backup if ABAC is needed +- DynamoDB maintains **incremental backups** internally for PITR + +## Commands and Syntax +- Backups can be created/restored via: AWS Management Console, AWS CLI, or DynamoDB API +- On-demand backup: single API call to create or restore +- PITR: must be **explicitly enabled** on the table before continuous backups begin + +## Relationships +- **AWS Backup**: Alternative management plane for on-demand backups; adds tagging/ABAC support +- **IAM / ABAC**: Tag-based access control requires AWS Backup rather than native DynamoDB backups +- **Billing**: Separate billing model for on-demand vs PITR (see backup-restore-billing) +- **Global Tables**: Backup/restore interactions with multi-region replication +- **Disaster Recovery**: Primary DR mechanism for DynamoDB data + +## Exam-Relevant Points +- PITR supports recovery to **any second** within the last **1–35 days** (configurable), starting from **5 minutes before current time** +- Restores always create a **new table** — never overwrite the original +- Tags are **not preserved** on restored tables +- ABAC is **not supported** with DynamoDB-native backups — use **AWS Backup** instead +- Backups have **zero impact** on production performance and availability +- All backups are **automatically encrypted** +- PITR must be **explicitly enabled** — it is not on by default +- On-demand backups can be managed by either DynamoDB or AWS Backup + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-BestPractices_BulkDataOperationshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-BestPractices_BulkDataOperationshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..f12df22ad0308d41540e5b9a178b8ab012de75dd --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-BestPractices_BulkDataOperationshtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/BestPractices_BulkDataOperations.html +source: sources/amazondynamodb-latest-developerguide-BestPractices_BulkDataOperationshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:01 + + + +## Overview + +This page covers best practices for performing bulk data operations in DynamoDB, focusing on the capabilities and limitations of batch APIs and alternatives for large-scale updates. + +## Key Concepts + +- **`BatchWriteItem`** supports up to **25** `PutItem` and `DeleteItem` requests in a single call +- **`BatchWriteItem` does NOT support `UpdateItem`** — this is a key limitation +- **`TransactWriteItems`** supports batch sizes up to **100** items +- For bulk updates beyond these limits, use external services: + - AWS Glue + - Amazon EMR + - AWS Step Functions + - Custom scripts / DynamoDB-shell + +## Commands and Syntax + +No specific command syntax provided on this page — it serves as an index to sub-topics: +- **Conditional batch update** — patterns for conditional bulk updates +- **Efficient bulk operations** — optimizing throughput for bulk operations + +## Relationships + +- Connects to **DynamoDB API operations**: `BatchWriteItem`, `TransactWriteItems`, `PutItem`, `DeleteItem`, `UpdateItem` +- Connects to **AWS Glue / EMR / Step Functions** as orchestration layers for large-scale data operations +- Related to **capacity mode** and **throughput management** (bulk operations can cause throttling) +- Related to **DynamoDB Transactions** (`TransactWriteItems` as a higher-limit batch alternative) + +## Exam-Relevant Points + +- `BatchWriteItem` limit is **25 items** per call — frequently tested +- `BatchWriteItem` supports **PutItem and DeleteItem only** — no UpdateItem +- `TransactWriteItems` supports up to **100 items** per transaction +- Know when to use DynamoDB-native batch APIs vs. external services (Glue, EMR, Step Functions) for bulk operations +- `BatchWriteItem` is **not transactional** (partial failures possible); `TransactWriteItems` **is transactional** (all-or-nothing) + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-BestPractices_ImplementingVersionControlhtm.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-BestPractices_ImplementingVersionControlhtm.md new file mode 100644 index 0000000000000000000000000000000000000000..e114afd44f85785c5c88511412d76456f0234740 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-BestPractices_ImplementingVersionControlhtm.md @@ -0,0 +1,40 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/BestPractices_ImplementingVersionControl.html +source: sources/amazondynamodb-latest-developerguide-BestPractices_ImplementingVersionControlhtm.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:01 + + + +## Overview +This page covers strategies for handling concurrent updates in Amazon DynamoDB. It explains why concurrency control is needed in distributed systems (to prevent lost updates, inconsistent data, and race conditions), and describes three approaches: optimistic locking with version attributes, pessimistic locking via DynamoDB transactions, and pessimistic locking via a dedicated lock client. + +## Key Concepts +- **Individual write operations** (e.g., `UpdateItem`) are atomic and always operate on the most recent item version — locking is only needed for **read-modify-write cycles**. +- **Optimistic locking** assumes conflicts are rare; it uses a version attribute combined with conditional writes to detect conflicts at write time. On conflict, the write fails and the application retries. +- **Pessimistic locking (transactions)** uses `TransactWriteItems` for multi-item atomicity with all-or-nothing semantics. Suited for moderate contention. +- **Pessimistic locking (lock client)** uses a dedicated lock table with lease and heartbeat mechanisms. Suited for long-running workflows and distributed coordination, with automatic lock expiry for process failure handling. +- **Global tables caveat**: Global tables use "last writer wins" reconciliation. Optimistic locking with version numbers **does not work across Regions** because a write in one Region can overwrite a concurrent write in another without a version check. + +## Commands and Syntax +- **Optimistic locking pattern**: Add a version attribute to the item; use conditional expressions on `UpdateItem` to check the version matches before writing, then increment it. +- **Transactions**: Use `TransactWriteItems` to group multiple writes (and condition checks) into a single atomic operation. +- **Lock client**: Create a dedicated lock table; acquire locks with a lease duration and heartbeat; release locks after the critical section completes. + +## Relationships +- **Conditional writes** — optimistic locking relies on DynamoDB's conditional expression feature. +- **DynamoDB Transactions** (`TransactWriteItems`, `TransactGetItems`) — the transactional pessimistic locking approach builds on the transactions API. +- **Global Tables** — concurrency control behavior differs significantly with global tables due to last-writer-wins replication; application-level conflict handling is required. +- **Single-item atomicity** — understanding that individual writes are already atomic is foundational context for knowing when locking is actually needed. + +## Exam-Relevant Points +- Individual DynamoDB write operations are **atomic** — concurrency control is only needed for read-modify-write cycles. +- Optimistic locking uses a **version attribute + conditional writes**; best for low contention scenarios. +- `TransactWriteItems` provides **multi-item atomic writes** with all-or-nothing semantics. +- The lock client pattern uses a **dedicated lock table with lease and heartbeat** for long-running distributed coordination. +- **Global tables use "last writer wins"** — optimistic locking with version numbers does **not** work across Regions. +- Know the decision criteria: optimistic locking for infrequent conflicts/single items, transactions for multi-item atomicity, lock client for long-running workflows with expensive retries. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-CapacityUnitCalculationshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-CapacityUnitCalculationshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..35e922a8ca84ebda04f90a458e68156cdb0b658b --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-CapacityUnitCalculationshtml.md @@ -0,0 +1,51 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/CapacityUnitCalculations.html +source: sources/amazondynamodb-latest-developerguide-CapacityUnitCalculationshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:02 + + + +## Overview + +This page describes how DynamoDB calculates item sizes based on attribute names, values, data types, and overhead. Since DynamoDB tables are schemaless (except for the primary key), items can vary widely, and understanding size calculations is critical for capacity planning, cost optimization, and staying within the 400 KB item size limit. + +## Key Concepts + +- **Item size** = sum of all attribute name lengths + all attribute value lengths + applicable overhead +- **Strings**: UTF-8 encoded bytes of attribute name + UTF-8 encoded bytes of value +- **Numbers**: Variable length, up to 38 significant digits; leading/trailing zeroes trimmed; ~1 byte per 2 significant digits + 1 byte + attribute name bytes +- **Binary**: Must be base64-encoded for transmission, but size uses **raw byte length** (not base64 length) +- **Null/Boolean**: Attribute name bytes + 1 byte +- **List/Map**: Attribute name bytes + sum of nested element sizes + **3 bytes overhead** (even if empty) +- **Each element** inside a List or Map adds **1 byte** of overhead +- Shorter attribute names reduce both storage costs and RCU/WCU consumption +- **Per-item storage overhead**: 100 bytes for indexing (all items) +- **Additional overhead** for enabled features: + - Global tables: +48 bytes (system-created attributes) + - Transactions, Kinesis DCS: additional overhead (unspecified exact amount) + +## Commands and Syntax + +No CLI commands or API calls on this page — it is a reference for size calculation rules. + +## Relationships + +- **Capacity planning**: Item size directly affects RCU/WCU consumption (reads/writes are metered in 4 KB / 1 KB units) +- **Item size limit**: DynamoDB enforces a 400 KB max item size — these rules determine how that's measured +- **Global tables**: Adds 48 bytes per item, relevant to storage cost estimates +- **GSI/LSI**: Projected attributes are copied to indexes, so item size rules apply to index entries too +- **Best practices**: Ties to guidance on short attribute names, large-item patterns, and using S3 for oversized data + +## Exam-Relevant Points + +- Binary attribute size uses **raw bytes**, not base64-encoded length +- Every item has **100 bytes** of indexing overhead for billing +- Global tables add **48 bytes** per item +- List/Map overhead is **3 bytes** + **1 byte per element** inside +- Numbers store at ~**1 byte per 2 significant digits** (max 38 digits) +- **Shorter attribute names** reduce both storage and throughput costs — a practical optimization often tested + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXBurstablehtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXBurstablehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..53f4666af940fe9afb219370ef6fcb4dda7d2593 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXBurstablehtml.md @@ -0,0 +1,43 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.Burstable.html +source: sources/amazondynamodb-latest-developerguide-DAXBurstablehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:02 + + + +## Overview + +This page explains DAX (DynamoDB Accelerator) burstable performance instances (T2 and T3 families), how CPU credits govern their burst behavior, and the key differences between T2 standard mode and T3 unlimited mode. + +## Key Concepts + +- **Fixed vs. burstable instances**: DAX offers fixed performance (R4, R5, R7) and burstable performance (T2, T3) instance types +- **CPU credits**: Accumulated continuously based on instance size; one credit = one full CPU core for one minute +- **Baseline performance**: The guaranteed level of CPU a burstable instance provides; bursting occurs above this level +- **T2 standard mode**: When credits are exhausted, CPU is gradually lowered to baseline — no additional charges but performance is capped +- **T3 unlimited mode**: Can burst beyond baseline even with zero credit balance, but incurs additional charges for sustained above-baseline usage +- **Credit accumulation example**: `dax.t3.small` earns 24 CPU credits/hour, baseline = 20% of a CPU core, max credit balance = 576 credits +- **Cost model**: T3 hourly price covers all bursts if average CPU stays at or below baseline over 24 hours; surplus usage billed per vCPU-hour (e.g., 9.6 cents/vCPU-hour) + +## Commands and Syntax + +No CLI commands or configuration syntax on this page. Instance type is selected when creating a DAX cluster (e.g., `dax.t3.small`). + +## Relationships + +- **DynamoDB / DAX**: Burstable instances are a DAX cluster node sizing option +- **EC2 burstable concepts**: T2/T3 burst mechanics (standard vs. unlimited mode) are inherited from EC2 — same credit system +- **DAX cluster sizing**: Connects to DAX sizing guide and capacity planning +- **DynamoDB pricing**: Burst overage charges are part of DynamoDB on-demand pricing + +## Exam-Relevant Points + +- T2 uses **standard mode** (capped at baseline when credits exhausted); T3 uses **unlimited mode** (can burst beyond baseline at extra cost) +- T2 is recommended for **dev/test** workloads; use **fixed performance instances** (R-series) for consistently high CPU needs +- T3 bursting is free if average CPU stays at or below baseline over a **24-hour window** +- Know the credit math: `dax.t3.small` baseline = 20% CPU, earns 24 credits/hour, max balance 576 credits + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXEncryptionAtResthtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXEncryptionAtResthtml.md new file mode 100644 index 0000000000000000000000000000000000000000..484bc8a8ea63e42377bfc213d582166756b87ff2 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXEncryptionAtResthtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAXEncryptionAtRest.html +source: sources/amazondynamodb-latest-developerguide-DAXEncryptionAtResthtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:02 + + + +## Overview +This page covers DAX (DynamoDB Accelerator) encryption at rest, which encrypts data persisted to disk using AES-256 encryption. It integrates with AWS KMS using a service default managed key and cannot be enabled/disabled after cluster creation. + +## Key Concepts +- DAX encryption at rest uses **AES-256** encryption for data written to disk +- Data is written to disk when **propagating changes from primary node to read replicas** +- Integrates with **AWS KMS** using a single service default key (AWS managed key) +- If no service default key exists, KMS **automatically creates** one when the first encrypted cluster is created +- Decryption is **transparent** with minimal performance impact — no application changes needed +- **Customer-specified KMS keys are not supported** — only the AWS managed key +- DAX only uses the KMS key **at cluster launch**, not for every operation +- If KMS access is revoked, DAX **can still access data until the cluster is shut down** +- Encryption at rest is available at **no additional cost** (standard KMS key usage charges apply) + +## Commands and Syntax +No CLI/API commands shown. Console procedure: +1. Open DynamoDB console → DAX → Clusters → Create cluster +2. Set cluster name, node type, and size (e.g., 3 nodes) +3. Under **Encryption**, ensure **Enable encryption** is selected +4. Configure IAM role, subnet group, security groups → Launch cluster +5. Verify encryption status shows **ENABLED** in cluster details + +## Relationships +- **AWS KMS**: Manages the encryption key; DAX uses the AWS managed service default key +- **DynamoDB**: DAX is an in-memory cache for DynamoDB; encryption at rest protects the disk-persisted portion +- **DAX node types**: Encryption support varies by node type family (R4/R5/R7, T2, T3 supported; R3 **not supported**) + +## Exam-Relevant Points +- **Cannot enable/disable encryption after cluster creation** — must re-create the cluster +- **`dax.r3.*` node types do NOT support encryption at rest** +- **Customer-managed KMS keys are NOT supported** — only AWS managed keys +- DAX uses the KMS key **only at cluster launch**, not per-operation +- Revoking KMS access does **not** immediately cut off DAX — data remains accessible until cluster shutdown +- Encryption at rest covers data propagated from **primary node to read replicas** on disk +- No application code changes required to use encryption + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXEncryptionInTransithtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXEncryptionInTransithtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3e4c1ea783c6829db371d9ef982c27f985af4d13 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXEncryptionInTransithtml.md @@ -0,0 +1,43 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAXEncryptionInTransit.html +source: sources/amazondynamodb-latest-developerguide-DAXEncryptionInTransithtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:02 + + + +## Overview +DAX encryption in transit provides TLS-based encryption for data moving between applications and DAX clusters within a VPC, adding transport-level security on top of the existing VPC network isolation. + +## Key Concepts +- **Encryption in transit** encrypts all requests/responses between application and DAX cluster using TLS +- **Cluster x509 certificate** authenticates the DAX cluster identity when DAX clients establish connections +- Traffic between app and DAX always stays within the VPC regardless of encryption-in-transit setting, routed through Elastic Network Interfaces with private IPs +- VPC serves as the trust boundary — security groups, NACLs, and VPC flow logs provide baseline security +- Clusters with encryption in transit **do not support unencrypted traffic** — no mixed-mode risk +- Encryption in transit is separate from **encryption at rest** (selected independently at cluster creation) +- Requires a recent version of a DAX client library + +## Commands and Syntax +- No specific CLI commands listed; encryption in transit is enabled at cluster creation via: + - AWS Management Console + - AWS CLI + - AWS SDKs + - CloudFormation + +## Relationships +- **DAX encryption at rest** — complementary feature, also selected at cluster creation time +- **DAX clients** — must use a recent version that supports TLS connections +- **VPC networking** — DAX nodes attach via ENIs with private IPs; security groups and NACLs still apply +- **CloudFormation** — supports creating DAX clusters with encryption in transit + +## Exam-Relevant Points +- **Cannot be enabled on an existing cluster** — must create a new cluster, migrate traffic, then delete the old one +- Encryption in transit is an **all-or-nothing** setting: once enabled, unencrypted traffic is rejected +- DAX traffic never leaves the VPC even without encryption in transit +- TLS + x509 certificate verification provides both confidentiality and cluster authentication +- Encryption in transit and encryption at rest are **independent options**, both configured at cluster creation + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXMonitoringhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXMonitoringhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c219a090fe68d8a1da7bc9a69975dbf4cf9d040f --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXMonitoringhtml.md @@ -0,0 +1,36 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.Monitoring.html +source: sources/amazondynamodb-latest-developerguide-DAXMonitoringhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:02 + + + +## Overview +This page introduces monitoring for DynamoDB Accelerator (DAX), emphasizing that monitoring is essential for maintaining reliability, availability, and performance of DAX clusters and broader AWS solutions. It serves as a hub page linking to specific monitoring tools and approaches. + +## Key Concepts +- Monitoring DAX is critical for debugging multi-point failures across AWS solutions +- A monitoring plan should be created before starting, addressing: goals, resources, frequency, tools, responsible parties, and escalation contacts +- Three main monitoring approaches exist for DAX: automated/manual tools, CloudWatch metrics, and CloudTrail logging + +## Commands and Syntax +No specific commands on this page — it is a navigation/overview page linking to: +- `dax-monitoring-automated-manual.html` — monitoring tools overview +- `dax-monitoring-cloudwatch.html` — CloudWatch integration +- `dax-logging-using-cloudtrail.html` — CloudTrail logging for DAX API operations + +## Relationships +- **CloudWatch**: Used for real-time metric monitoring of DAX cluster performance +- **CloudTrail**: Captures DAX API calls for audit and compliance +- **DynamoDB**: DAX is an in-memory caching layer for DynamoDB; monitoring both is necessary for full observability +- **General AWS monitoring pattern**: Follows the same monitoring framework as other AWS services (CloudWatch metrics + CloudTrail logs) + +## Exam-Relevant Points +- DAX monitoring uses the same two pillars as most AWS services: **CloudWatch** (metrics/alarms) and **CloudTrail** (API logging/auditing) +- A monitoring plan should be established **before** deploying monitoring — know your goals, resources, frequency, tools, and escalation path +- Collecting monitoring data from **all parts** of your AWS solution is recommended to debug multi-point failures + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXaccess-controlhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXaccess-controlhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7ac49f6e35760701c5e3fd3f8ba6093c3d72e1e8 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXaccess-controlhtml.md @@ -0,0 +1,86 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.access-control.html +source: sources/amazondynamodb-latest-developerguide-DAXaccess-controlhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:03 + + + +## Overview + +This page explains how access control works for DynamoDB Accelerator (DAX), emphasizing that DAX and DynamoDB have **separate security models** despite working together. DAX does not enforce user-level permissions on DynamoDB data — users inherit the DAX cluster's IAM service role permissions, which can subvert existing DynamoDB access policies. The page walks through IAM policy configurations for various access scenarios. + +## Key Concepts + +- **DAX and DynamoDB have independent access control mechanisms**, both using IAM but with different security models. +- **DAX does not enforce user-level separation** — all users of a DAX cluster inherit the cluster's IAM service role permissions. +- **DAX can subvert DynamoDB IAM policies**: a user without direct DynamoDB table access can still access that table through DAX if the cluster's service role allows it. +- **Two policies govern DAX access**: + - **User access policy** — controls which users/roles can access the DAX cluster (`dax:*` actions on `arn:aws:dax:...` resources). + - **DAX service role policy** — controls which DynamoDB actions the DAX cluster can perform on behalf of users (`dynamodb:*` actions on `arn:aws:dynamodb:...` resources). +- **Trust relationship**: The DAX service role must trust `dax.amazonaws.com` via `sts:AssumeRole`. +- **Isolation strategy**: Create separate DAX clusters scoped to specific tables if you need user-level data separation. +- DAX supports mechanisms to prevent the **confused deputy problem** during cross-service access. +- `dynamodb:DescribeTable` is required in the service role for DAX to maintain table metadata. + +## Commands and Syntax + +**DAX-specific IAM actions** (correspond to DynamoDB API counterparts): +- `dax:GetItem`, `dax:BatchGetItem`, `dax:Query`, `dax:Scan` +- `dax:PutItem`, `dax:UpdateItem`, `dax:DeleteItem`, `dax:BatchWriteItem` +- `dax:ConditionCheckItem` + +**DAX cluster ARN format**: `arn:aws:dax:::cache/` + +**Trust relationship for DAX service role**: +```json +{ + "Version": "2012-10-17", + "Statement": [{ + "Effect": "Allow", + "Principal": { "Service": "dax.amazonaws.com" }, + "Action": "sts:AssumeRole" + }] +} +``` + +**Service role policy example** (DynamoDB actions the cluster can perform): +```json +{ + "Version": "2012-10-17", + "Statement": [{ + "Effect": "Allow", + "Action": [ + "dynamodb:DescribeTable", + "dynamodb:PutItem", "dynamodb:GetItem", + "dynamodb:UpdateItem", "dynamodb:DeleteItem", + "dynamodb:Query", "dynamodb:Scan", + "dynamodb:BatchGetItem", "dynamodb:BatchWriteItem", + "dynamodb:ConditionCheckItem" + ], + "Resource": ["arn:aws:dynamodb:us-west-2:123456789012:table/Books"] + }] +} +``` + +## Relationships + +- **IAM** — Both user access policies and DAX service roles are managed through IAM. +- **DynamoDB security model** — DAX access control is layered on top of (and can bypass) DynamoDB's own IAM policies. +- **STS AssumeRole** — DAX clusters assume their service role to make DynamoDB API calls. +- **Confused deputy problem** — References IAM documentation on cross-service security. +- **DAX cluster configuration** — Access control is configured at cluster creation time when associating the service role. + +## Exam-Relevant Points + +- **Critical**: DAX does **not** enforce user-level permissions. Users inherit the DAX cluster's service role permissions — this can **subvert** existing DynamoDB IAM policies. +- The effective permissions for a user accessing DynamoDB through DAX are determined by the **intersection** of: (1) the user's `dax:*` permissions on the cluster, and (2) the cluster service role's `dynamodb:*` permissions on tables. +- A user with **only** `dax:*` permissions (no `dynamodb:*` permissions) can still access DynamoDB tables through DAX if the cluster's service role allows it. +- To isolate access, create **multiple DAX clusters** with different service roles scoped to specific tables. +- DAX actions use the `dax:` prefix (not `dynamodb:`); the resource ARN uses `arn:aws:dax:...:cache/`. +- `dynamodb:DescribeTable` must be included in the DAX service role for metadata maintenance. +- The `dax:EnclosingOperation` condition key is available for fine-grained access control. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXclienthtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXclienthtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7a423a25ca66a8cc7481d6c071b85c081306ca14 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXclienthtml.md @@ -0,0 +1,36 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.client.html +source: sources/amazondynamodb-latest-developerguide-DAXclienthtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:03 + + + +## Overview +This page introduces the DAX (DynamoDB Accelerator) client SDK, which applications use to interact with DAX clusters. The client is designed as a drop-in replacement for the standard DynamoDB client, requiring only minimal code changes to existing applications. + +## Key Concepts +- DAX clients are available for multiple programming languages +- The DAX client is designed for **minimal disruption** to existing DynamoDB applications — only a few simple code modifications are needed +- DAX clients are distributed via a dedicated S3-hosted site (dax-sdk.s3-website-us-west-2.amazonaws.com), not standard SDK package managers +- To use DAX, you typically launch an EC2 instance **in the same VPC** as the DAX cluster + +## Commands and Syntax +- No specific commands on this page — it serves as a navigation hub pointing to: + - Tutorial for running a sample DAX application + - Guide for modifying an existing DynamoDB application to use DAX + +## Relationships +- **DAX cluster setup** — the client connects to a previously provisioned DAX cluster +- **EC2** — sample apps run on EC2 instances within the same VPC as the DAX cluster +- **VPC** — DAX operates within a VPC; the client must have network access to the cluster endpoint +- **DynamoDB SDK** — the DAX client wraps/replaces the standard DynamoDB client with the same API surface + +## Exam-Relevant Points +- DAX client requires **only minimal code changes** — swap the DynamoDB client for the DAX client; the API calls remain the same +- The DAX client and DAX cluster must be in the **same VPC** (DAX is not accessible over the public internet) +- DAX SDKs are hosted separately from the standard AWS SDKs + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcluster-managementhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcluster-managementhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..851817d786120dae7e6021590dca789ed5483dec --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcluster-managementhtml.md @@ -0,0 +1,74 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.cluster-management.html +source: sources/amazondynamodb-latest-developerguide-DAXcluster-managementhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:03 + + + +## Overview +This page covers the operational management of Amazon DynamoDB Accelerator (DAX) clusters, including IAM permissions, horizontal and vertical scaling, TTL configuration, tagging, CloudTrail integration, and cluster deletion. + +## Key Concepts +- **DAX management APIs cannot be scoped to specific resources** — the IAM `Resource` element must be `"*"` for management actions (e.g., `DescribeClusters`, `CreateCluster`). Data plane APIs (e.g., `GetItem`, `Query`) *can* be scoped to specific cluster ARNs. +- **Horizontal scaling**: Add/remove read replicas (up to 10 per cluster) while the cluster is running. New nodes sync cache from a peer node; pre-scale before traffic peaks. +- **Vertical scaling**: Cannot change node types on a running cluster — must create a new cluster with the desired node type. All nodes in a cluster must be the same type. +- **Two caches with separate TTLs**: Item cache (`GetItem`/`BatchGetItem`) and Query cache (`Query`/`Scan`), both default to 5 minutes. +- TTL is configured via **parameter groups**. Parameters: `record-ttl-millis` (item cache) and `query-ttl-millis` (query cache), values in milliseconds. +- Modifying a parameter group on a running cluster only affects **newly written items** — existing cached items retain their original TTL. +- The default parameter group (`default.dax.1.0`) cannot be modified. +- Maintenance windows can be chosen or randomly assigned from an 8-hour regional block. +- Notifications for maintenance events use **Amazon SNS**. + +## Commands and Syntax +```bash +# Horizontal scaling +aws dax increase-replication-factor --cluster-name MyNewCluster --new-replication-factor 5 +aws dax decrease-replication-factor --cluster-name MyNewCluster --new-replication-factor 3 + +# Custom TTL via parameter groups +aws dax create-parameter-group --parameter-group-name custom-ttl +aws dax update-parameter-group --parameter-group-name custom-ttl \ + --parameter-name-values "ParameterName=record-ttl-millis,ParameterValue=600000" +aws dax update-parameter-group --parameter-group-name custom-ttl \ + --parameter-name-values "ParameterName=query-ttl-millis,ParameterValue=180000" +aws dax describe-parameters --parameter-group-name custom-ttl \ + --query "Parameters[*].[ParameterName,Description,ParameterValue]" + +# Create cluster with custom parameter group +aws dax create-cluster --cluster-name MyNewCluster --node-type dax.r3.large \ + --replication-factor 3 --iam-role-arn arn:aws:iam::123456789012:role/DAXServiceRole \ + --parameter-group custom-ttl + +# Tagging +aws dax tag-resource --resource-name arn:aws:dax:us-west-2:123456789012:cache/MyDAXCluster \ + --tags="Key=ClusterUsage,Value=prod" +aws dax list-tags --resource-name arn:aws:dax:us-west-2:123456789012:cache/MyDAXCluster +aws dax untag-resource --resource-name arn:aws:dax:us-west-2:123456789012:cache/MyDAXCluster \ + --tag-keys ClusterUsage + +# Delete cluster +aws dax delete-cluster --cluster-name mydaxcluster +``` + +## Relationships +- **IAM**: Management vs. data plane permission scoping is a key distinction; relates to DAX access control and cluster creation IAM topics. +- **DynamoDB**: DAX caches DynamoDB reads; item cache maps to `GetItem`/`BatchGetItem`, query cache maps to `Query`/`Scan`. +- **CloudTrail**: Audits all cluster-level changes (nodes, subnet groups, parameter groups). +- **Amazon SNS**: Used for maintenance event notifications. +- **CloudFormation**: Can be used to create DAX clusters with specific node types. +- **DAX sizing guide**: Informs both horizontal and vertical scaling decisions. + +## Exam-Relevant Points +- DAX management API actions **cannot** be scoped to a specific cluster ARN — `Resource` must be `"*"`. Data plane actions **can** be scoped. +- A best-practice IAM policy should have **two separate statements**: one for data plane (scoped to cluster ARN) and one for management (Resource `"*"`). +- Max **10 read replicas** per DAX cluster. `--new-replication-factor` specifies **total nodes** (primary + replicas). +- Vertical scaling requires **creating a new cluster** — you cannot change node types in-place. +- Default TTL is **5 minutes** for both item and query caches. +- TTL parameters are in **milliseconds** (`record-ttl-millis`, `query-ttl-millis`). +- Parameter group changes on a running cluster apply only to **new cache entries**, not existing ones. +- Cluster status transitions: `available` → `modifying` → `available` during scaling operations. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptsclusterhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptsclusterhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1681aefcd05cce54095d99879b928bd2132c03b3 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptsclusterhtml.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.concepts.cluster.html +source: sources/amazondynamodb-latest-developerguide-DAXconceptsclusterhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:04 + + + +## Overview +This page describes the infrastructure components that make up an Amazon DynamoDB Accelerator (DAX) cluster, including nodes, clusters, endpoints, networking constructs (VPC, subnets, security groups), parameter groups, events, and maintenance windows. + +## Key Concepts +- **Node**: Smallest building block; each runs DAX software and holds one replica of cached data. All nodes in a cluster must be the same node type. +- **Cluster**: Logical grouping of 1–11 nodes (1 primary + up to 10 read replicas). Primary handles reads, writes to DynamoDB, and cache eviction. Read replicas handle reads and eviction only — they do **not** write to DynamoDB. +- **Replication**: Primary propagates changes to all read replicas via replication logs; logs are deleted after all replicas confirm. +- **Scaling**: Add more nodes (read throughput) or use a larger node type (requires creating a new cluster). +- **High availability**: On primary failure, DAX auto-fails over to a read replica. Deploy nodes across **separate AZs** for fault tolerance. +- **Production minimum**: 3 nodes in 3 different AZs. 1–2 node clusters are **not fault-tolerant** (dev/test only). +- **Table limit**: Max **500 DynamoDB tables** per DAX cluster; exceeding this degrades availability and performance. +- **Region-scoped**: A DAX cluster can only interact with DynamoDB tables in the **same Region**. +- **Runs inside a VPC**; access restricted to EC2 instances within that VPC. +- **Security group port**: TCP **8111** (ingress rule required). +- **Parameter groups**: Named sets of runtime settings (e.g., TTL policy) applied uniformly to all nodes in a cluster. +- **Subnet groups**: Collection of (typically private) subnets designated for DAX nodes; must be specified at cluster creation. + +## Commands and Syntax +- **Cluster ARN format**: `arn:aws:dax:region:accountID:cache/clusterName` +- **Cluster endpoint (unencrypted)**: `dax://my-cluster.l6fzcv.dax-clusters.us-east-1.amazonaws.com` +- **Cluster endpoint (encryption in transit)**: `daxs://my-encrypted-cluster.l6fzcv.dax-clusters.us-east-1.amazonaws.com` +- **Node endpoint example**: `myDAXcluster-a.2cmrwl.clustercfg.dax.use1.cache.amazonaws.com:8111` +- **Events API**: `DescribeEvents` action; can also push notifications to an SNS topic. + +## Relationships +- **DynamoDB**: DAX sits in front of DynamoDB as a read/write-through cache; region must match. +- **VPC / Security Groups / Subnets**: DAX requires VPC deployment; networking constructs control access. +- **IAM**: Cluster ARN is used in IAM policies to define DAX API permissions (see DAX access control). +- **Parameter groups**: Analogous to RDS/ElastiCache parameter groups for tuning behavior. +- **SNS**: Event notifications can be forwarded to SNS topics. +- **EC2**: Only EC2 instances (or resources) within the VPC can access DAX nodes. + +## Exam-Relevant Points +- Max **11 nodes** per cluster (1 primary + 10 replicas). +- Max **500 tables** per cluster. +- Production best practice: **≥3 nodes across 3 AZs**. +- DAX is **VPC-only**; uses port **8111**. +- `dax://` vs `daxs://` scheme indicates encryption-in-transit status. +- Always use the **cluster endpoint** (not node endpoints) so the app auto-discovers node changes. +- Changing node type requires **creating a new cluster** — you cannot resize in place. +- Read replicas do **not** write to DynamoDB; only the primary does. +- Automatic failover promotes a read replica to primary on failure. +- Maintenance window: default 60 minutes, randomly assigned from an 8-hour regional block if not specified; can be set up to 24 hours. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3fb39bca9bc51315efb450501e7b1f01848c5c57 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptshtml.md @@ -0,0 +1,59 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.concepts.html +source: sources/amazondynamodb-latest-developerguide-DAXconceptshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:04 + + + +## Overview + +This page explains how Amazon DynamoDB Accelerator (DAX) operates within an Amazon VPC, detailing its request processing model, caching architecture (item cache and query cache), and how it interacts with DynamoDB for read and write operations. + +## Key Concepts + +- **DAX runs exclusively within a VPC** — you control access via VPC security groups, subnets, and routing tables +- **Cluster architecture**: one primary node + optional read replicas; the DAX client handles load balancing and routing via the cluster endpoint +- **Eventually consistent reads** are served from cache; **strongly consistent reads** always pass through to DynamoDB and are never cached +- **Write-through model**: writes go to DynamoDB first, then to DAX; operation succeeds only if both succeed +- **Item cache**: stores results from `GetItem`/`BatchGetItem`, keyed by primary key values +- **Query cache**: stores result sets from `Query`/`Scan`, keyed by parameter values +- **TTL defaults to 5 minutes** for the item cache; configurable at cluster creation time +- **LRU eviction** is always enabled and not user-configurable for both caches +- **Item cache TTL=0**: items only refreshed via LRU eviction or write-through operations +- **Query cache TTL=0**: query responses are not cached at all +- **Rate limiting**: DAX returns `ThrottlingException` when request volume exceeds node capacity; monitor via `ThrottledRequestCount` CloudWatch metric +- **Table management operations** (`CreateTable`, `UpdateTable`, etc.) are not supported through DAX — must go directly to DynamoDB + +## Commands and Syntax + +No CLI commands on this page. Key API categorization: + +**Read operations (cacheable):** `GetItem`, `BatchGetItem`, `Query`, `Scan` + +**Write-through operations:** `PutItem`, `UpdateItem`, `DeleteItem`, `BatchWriteItem` + +**Not supported by DAX:** `CreateTable`, `UpdateTable`, and other table management APIs + +## Relationships + +- **VPC networking** — DAX requires VPC; uses security groups for access control +- **DynamoDB consistency models** — strongly consistent reads bypass DAX entirely; eventually consistent reads use cache +- **CloudWatch** — `ThrottledRequestCount` metric for monitoring rate limiting +- **DAX cluster management** — TTL settings, scaling decisions when throttling occurs +- **DynamoDB Transactions** — separate handling documented in transactional APIs reference + +## Exam-Relevant Points + +- DAX only caches **eventually consistent** reads; strongly consistent reads are **never cached** and always go to DynamoDB +- Writes are **write-through** (DynamoDB first, then DAX) — not write-behind/write-back +- Item cache TTL=0 means items stay until LRU eviction or write-through; query cache TTL=0 means **no caching at all** (different behavior) +- DAX **cannot** perform table management operations — application must call DynamoDB directly +- DAX must run **inside a VPC** — there is no public endpoint option +- Default item cache TTL is **5 minutes** +- When throttled, DAX returns `ThrottlingException` — the solution is to **scale up the cluster** +- AWS accounts created after December 4, 2013 have a default VPC ready for DAX use + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconsistencyhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconsistencyhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2768bcd590e24ef3ae0ae35471b9eba6a96ecaba --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconsistencyhtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.consistency.html +source: sources/amazondynamodb-latest-developerguide-DAXconsistencyhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:05 + +## Overview +This page explains how Amazon DynamoDB Accelerator (DAX) interacts with DynamoDB's consistency models. Because DAX operates as a separate write-through cache layer, applications must understand how data consistency works between DAX's two independent caches (item cache and query cache), among DAX cluster nodes, and between DAX and the underlying DynamoDB tables—especially when some clients bypass DAX entirely. + +## Key Concepts +- **DAX has two independent caches**: the **item cache** (for `GetItem`/`BatchGetItem`) and the **query cache** (for `Query`/`Scan`). They do not affect each other. +- **Write-through cache**: DAX writes to DynamoDB first, then updates its item cache only on success. Failed DynamoDB writes are never cached. +- **Eventually consistent replication**: Updates replicate across DAX cluster nodes in typically less than one second, but two clients may briefly see different values from different nodes. +- **Negative caching**: When an item or query result doesn't exist in DynamoDB, DAX caches the empty result. This persists until TTL expires, LRU evicts it, or the item is modified via DAX. +- **Query cache is never invalidated by item writes**: A `PutItem`/`UpdateItem` does not invalidate or update cached `Query`/`Scan` results. Only TTL expiration refreshes them. +- **Bypassing DAX causes inconsistency**: If a client writes directly to DynamoDB (not through DAX), the DAX cache is unaware and serves stale data until TTL expiry or eviction. +- **Strongly consistent reads pass through to DynamoDB**: Setting `ConsistentRead=true` causes DAX to forward the request to DynamoDB and return results **without caching them**. +- **`TransactGetItems` are not cached**: Handled the same way as strongly consistent reads—passed through to DynamoDB, results not cached. +- **`TransactWriteItems` handling differs**: DAX forwards the transaction to DynamoDB, returns success, then asynchronously issues `TransactGetItems` for each item to populate the item cache with serializable isolation. +- **Write-around strategy**: For bulk/write-heavy workloads, writing directly to DynamoDB reduces latency and avoids polluting the cache with rarely-read data, but sacrifices cache consistency. + +## Commands and Syntax +- **Read operations via DAX client**: `GetItem`, `BatchGetItem`, `Query`, `Scan` — default to eventually consistent reads from cache. +- **Write operations via DAX client**: `PutItem`, `UpdateItem`, `DeleteItem`, `BatchWriteItem`, `TransactWriteItems` — write-through to DynamoDB then update item cache. +- **Strongly consistent read**: Set `ConsistentRead` parameter to `true` — bypasses DAX cache entirely. +- **Cache control**: Governed by **TTL** settings and **LRU** eviction; no explicit cache invalidation API is described. + +## Relationships +- **DAX architecture** (`DAX.concepts.html`): Explains how item cache and query cache work internally. +- **DynamoDB transactions** (`transaction-apis.html`): Serializable isolation guarantees referenced for `TransactWriteItems` cache behavior. +- **DynamoDB consistency model**: DAX's eventually consistent behavior mirrors DynamoDB's own eventual consistency across storage locations. +- **DAX cluster sizing/HA**: Multi-node, multi-AZ deployment recommended (minimum 3 nodes) for high availability. + +## Exam-Relevant Points +- **DAX does NOT cache strongly consistent reads or `TransactGetItems`** — these always go to DynamoDB. +- **Item cache and query cache are completely independent** — writing an item does not invalidate query cache results containing that item. +- **You cannot warm the item cache with a `Scan`** — Scan results go only to the query cache. +- **Write-through order**: DynamoDB write succeeds first → then DAX caches → then returns success. Failed writes are never cached. +- **Bypassing DAX for writes** creates stale reads until TTL expiry — there is no automatic cache invalidation from DynamoDB-side writes. +- **Minimum 3 nodes across multiple AZs** is the recommended HA configuration. +- **Write-around is preferred for bulk loads** to avoid LRU churn and reduced read-cache effectiveness. +- **`TransactWriteItems` uses background `TransactGetItems`** to populate item cache, ensuring serializable isolation. +- **Negative cache entries** behave like regular cache entries (subject to TTL and LRU), preventing repeated misses from hitting DynamoDB. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcreate-clusterhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcreate-clusterhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..cde0fc15579a57742c465a21a87aa44a91c85d68 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcreate-clusterhtml.md @@ -0,0 +1,42 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.create-cluster.html +source: sources/amazondynamodb-latest-developerguide-DAXcreate-clusterhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:05 + + + +## Overview +This page covers the initial setup process for creating an Amazon DynamoDB Accelerator (DAX) cluster within a default VPC environment. It focuses on the prerequisite IAM service role configuration needed before cluster creation, and links to separate guides for CLI and console-based cluster creation. + +## Key Concepts +- **DAX cluster** runs inside an Amazon VPC and is accessed from EC2 instances in the same VPC +- **IAM service role** is required before creating a DAX cluster — it authorizes DAX to access DynamoDB tables on your behalf +- The **console** automatically detects and creates a DAX service role if none exists; the **CLI** requires you to create the service role beforehand +- The four IAM permissions needed to create the service role are: `iam:CreateRole`, `iam:CreatePolicy`, `iam:AttachRolePolicy`, `iam:PassRole` +- These four permissions are **intentionally excluded** from AWS managed DynamoDB policies to prevent **privilege escalation** — a user could otherwise create an admin policy and attach it to an existing role +- `AdministratorAccess` managed policy includes all permissions needed for both cluster and service role creation + +## Commands and Syntax +No specific CLI commands on this page — it references sub-pages: +- CLI cluster creation: `DAX.create-cluster.cli.html` +- Console cluster creation: `DAX.create-cluster.console.html` + +## Relationships +- **IAM** — service role creation and permission management are prerequisites +- **VPC** — DAX clusters live inside a VPC; EC2 instances must be in the same VPC to access DAX +- **DynamoDB** — DAX acts as a caching proxy; the service role grants DAX access to DynamoDB tables +- **DAX client SDK** — after cluster creation, applications use the DAX client (`DAX.client.html`) rather than the standard DynamoDB client +- **DAX access control** (`DAX.access-control.html`) — covers the full IAM policy requirements for DAX administration +- **IPv6 support** — DAX clusters can be configured for IPv6 (`DAX.create-cluster.DAX_and_IPV6.html`) + +## Exam-Relevant Points +- DAX requires an **IAM service role** to access DynamoDB — it cannot function without one +- DAX clusters are **VPC-bound** — accessible only from EC2 instances in the same VPC +- `iam:PassRole` is required in addition to role/policy creation permissions — a common exam topic +- The four IAM permissions (`CreateRole`, `CreatePolicy`, `AttachRolePolicy`, `PassRole`) are excluded from managed DynamoDB policies **by design** due to privilege escalation risk +- Console auto-creates the service role; CLI does **not** — you must create it manually first + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcross-account-accesshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcross-account-accesshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3c9fadc757ca1167b3b2812cee127bf060ea1d91 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcross-account-accesshtml.md @@ -0,0 +1,74 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.cross-account-access.html +source: sources/amazondynamodb-latest-developerguide-DAXcross-account-accesshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:05 + + + +## Overview + +This page describes how to configure cross-account access to a DynamoDB Accelerator (DAX) cluster, where the DAX cluster runs in one AWS account (account A) and is accessed from an EC2 instance in another AWS account (account B). The solution combines IAM role assumption via STS with VPC peering to enable network connectivity and authenticated access across account boundaries. + +## Key Concepts + +- **DAX cannot access a DynamoDB table in a different account** — the cross-account pattern only applies to clients accessing a DAX cluster, not DAX accessing DynamoDB cross-account. +- Cross-account DAX access requires two coordinated configurations: **IAM role chaining** (for authentication/authorization) and **VPC peering** (for network connectivity). +- **Account B's EC2 instance** uses an instance profile role (`AssumeDaxRole`) that is permitted to assume a role in account A (`DaxCrossAccountRole`). +- **Account A's `DaxCrossAccountRole`** trusts account B's `AssumeDaxRole` and grants specific DAX data-plane actions (`dax:GetItem`, `dax:PutItem`, `dax:Query`, etc.). +- STS temporary credentials are used throughout — some SDK clients handle credential refresh automatically, others require manual refresh logic. +- VPC CIDRs must be **non-overlapping** for peering to work. +- DAX cluster security group must allow **inbound TCP on port 8111** from the account B EC2 security group. + +## Commands and Syntax + +**IAM Setup (Account B):** +```bash +aws iam create-role --role-name AssumeDaxRole --assume-role-policy-document file://AssumeDaxRoleTrust.json +aws iam put-role-policy --role-name AssumeDaxRole --policy-name AssumeDaxRolePolicy --policy-document file://AssumeDaxRolePolicy.json +aws iam create-instance-profile --instance-profile-name AssumeDaxInstanceProfile +aws iam add-role-to-instance-profile --instance-profile-name AssumeDaxInstanceProfile --role-name AssumeDaxRole +``` + +**IAM Setup (Account A):** +```bash +aws iam create-role --role-name DaxCrossAccountRole --assume-role-policy-document file://DaxCrossAccountRoleTrust.json +aws iam put-role-policy --role-name DaxCrossAccountRole --policy-name DaxCrossAccountPolicy --policy-document file://DaxCrossAccountPolicy.json +``` + +**VPC Discovery and Peering:** +```bash +aws dax describe-clusters --cluster-name cluster-name --query 'Clusters[0].SubnetGroup' +aws dax describe-subnet-groups --subnet-group-name subnet-group --query 'SubnetGroups[0].VpcId' +aws ec2 describe-vpcs --vpc vpc-id --query 'Vpcs[0].CidrBlock' +aws ec2 create-route --route-table-id rtb-xxx --destination-cidr x.x.x.x/x --vpc-peering-connection-id pcx-xxx +``` + +**Security Group Update (Account A, port 8111):** +```bash +aws ec2 authorize-security-group-ingress --group-id sg-accountA --protocol tcp --port 8111 --source-group sg-accountB --group-owner accountB-id +``` + +## Relationships + +- **IAM STS AssumeRole** — core mechanism for cross-account credential delegation +- **VPC Peering** — required for network-layer connectivity; routes must be added in both accounts +- **EC2 Instance Profiles** — bootstrap the credential chain on account B's instance +- **DAX Security Groups** — must explicitly allow cross-account security group references (port 8111) +- **DynamoDB** — DAX is a caching layer; notably, DAX itself cannot access DynamoDB cross-account +- **SDK-specific credential providers** — Java (`STSAssumeRoleSessionCredentialsProvider`), .NET (`AmazonSecurityTokenServiceClient`), Go (`stscreds.AssumeRoleProvider`), Python (`boto3 sts.assume_role`), Node.js (`AWS.STS().assumeRole`) + +## Exam-Relevant Points + +- **DAX cannot access DynamoDB cross-account** — only clients can access DAX cross-account. +- **DAX port is 8111** (TCP) — must be opened in security groups. +- Cross-account access requires **both** IAM role chaining **and** VPC peering — neither alone is sufficient. +- VPC peering requires **non-overlapping CIDRs** and route table entries in **both** VPCs. +- The credential chain is: EC2 instance profile → STS AssumeRole → DAX data-plane actions. +- DAX IAM actions are data-plane specific: `dax:GetItem`, `dax:BatchGetItem`, `dax:Query`, `dax:Scan`, `dax:PutItem`, `dax:UpdateItem`, `dax:DeleteItem`, `dax:BatchWriteItem`, `dax:ConditionCheckItem`. +- STS credentials are **temporary** and require refresh handling in application code. +- Cross-account security group references require specifying `--group-owner` with the source account ID. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..af80641550a11b6cff842da402e982f1bdefe7a6 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXhtml.md @@ -0,0 +1,63 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.html +source: sources/amazondynamodb-latest-developerguide-DAXhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:06 + + + +## Overview + +DynamoDB Accelerator (DAX) is a fully managed, DynamoDB-compatible in-memory caching service that reduces read latency from single-digit milliseconds to microseconds. It serves three core purposes: dramatically faster eventually consistent reads, reduced operational complexity via API compatibility with DynamoDB, and cost savings by offloading read capacity from the underlying table. + +## Key Concepts + +- **DAX delivers microsecond latency** for eventually consistent reads (vs. single-digit milliseconds for standard DynamoDB) +- **API-compatible with DynamoDB** — requires only minimal application changes to integrate +- **Multi-AZ DAX clusters** can serve millions of requests per second +- **Eventually consistent reads only** — DAX does NOT support strongly consistent reads +- **Encryption at rest** — data persisted to disk during replication from primary to read replicas is encrypted +- **Encryption in transit** — TLS between application and cluster; connections authenticated via x509 certificate +- **VPC-only** — DAX is only available on the EC2-VPC platform (not Classic) +- **Supported languages**: Go, Java, Node.js, Python, .NET (AWS-provided DAX clients required) +- **Attribute name metadata is retained indefinitely** in the cluster, even after items expire or are evicted — unbounded unique top-level attribute names (timestamps, UUIDs, session IDs used as keys) can cause memory exhaustion +- The DAX cluster service role policy must allow `dynamodb:DescribeTable` +- DAX performs best when **cache hit rates exceed 90%** + +## Commands and Syntax + +No CLI commands on this page. Key operational note: + +- Problematic pattern (unique attribute **names**): + ```json + { "Id": 123, "2017-10-24T01:02:03+00:00": "created" } + ``` +- Safe pattern (unique attribute **values**): + ```json + { "Id": 123, "CreationDate": "2017-10-24T01:02:03+00:00" } + ``` + +## Relationships + +- **DynamoDB tables** — DAX sits in front of tables as a read-through/write-through cache +- **VPC** — DAX clusters must run inside a VPC +- **IAM** — requires a service-linked role; cluster role needs `dynamodb:DescribeTable` +- **Encryption** — integrates with KMS (at rest) and TLS (in transit) +- **CloudWatch** — DAX monitoring via CloudWatch metrics +- **Cross-account access** — DAX supports access from other AWS accounts +- **Auto Scaling** — DAX can reduce the need to overprovision read capacity units on the base table + +## Exam-Relevant Points + +- DAX only supports **eventually consistent** reads — if the question requires strongly consistent reads, DAX is not the answer +- DAX reduces latency from **milliseconds to microseconds** (order of magnitude improvement) +- DAX is **VPC-only** — no public endpoint +- Best for **read-heavy, hot-key, or bursty** workloads with high cache hit rates (>90%) +- **Not ideal for write-intensive** workloads — writes cause replication overhead across DAX nodes +- **Attribute name metadata leak**: using unbounded unique values as top-level attribute *names* (not values) causes memory exhaustion — this is a common trap question +- DAX requires **AWS-provided DAX clients** (not the standard DynamoDB SDK client) +- DAX supports **server-side encryption** both at rest and in transit + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXsizing-guidehtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXsizing-guidehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..873abfada4501316633cfce9efdd76c8292de6e1 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-DAXsizing-guidehtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.sizing-guide.html +source: sources/amazondynamodb-latest-developerguide-DAXsizing-guidehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:06 + + + +## Overview +This page provides guidance for selecting the appropriate DAX cluster size and node type. It covers a three-step process: estimating traffic, load testing with that traffic profile, and ongoing production monitoring to ensure the cluster remains correctly scaled. + +## Key Concepts +- **Three factors characterize DAX workload**: cache hit rate, read capacity units (RCUs) per second, and write capacity units (WCUs) per second +- **Typical cache hit rates** for DAX applications are **85–95%** +- Cache hit rate = `ItemCacheHits / (ItemCacheHits + ItemCacheMisses)` +- DynamoDB's `ConsumedReadCapacityUnits` metric only reflects **cache misses** when DAX is in front — divide by miss rate (1 - hit rate) to get true DAX read throughput +- Query/Scan operations have separate cache metrics: `QueryCacheHits/Misses`, `ScanCacheHits/Misses` +- **Fault-tolerant cluster** requires at least **3 nodes across 3 AZs** +- **T2 node types** (`dax.t2.small`, `dax.t2.medium`) use burstable CPU — performance degrades when CPU credits are exhausted, making them unreliable for sustained load testing +- Exceeding EC2 baseline network bandwidth indicates the cluster cannot sustain the workload + +## Commands and Syntax +No CLI commands on this page. Key procedures: +1. **Estimate traffic** — use CloudWatch metrics `ConsumedReadCapacityUnits` (Sum / seconds) and `ConsumedWriteCapacityUnits` +2. **Load test** — start with `dax.r4.large` node type, 2-node cluster (simulates 1 AZ failure in a 3-node cluster) +3. **Scale decision** — high CPU on primary / high eviction / high cache memory → vertical scale (larger node type); high hit rate + read-heavy → horizontal scale (add nodes) + +## Relationships +- **CloudWatch monitoring** (`DAX.Monitoring`) — required during load test and production +- **Provisioned capacity mode** — RCU/WCU concepts from DynamoDB capacity planning +- **DAX cluster management / scaling** — covers vertical scaling (node type changes) and horizontal scaling (adding read replicas) +- **EC2 burstable instances** — T2 behavior directly affects DAX T2 node performance +- **DynamoDB tables** — DAX sits in front; table-level CloudWatch metrics feed into DAX sizing estimates + +## Exam-Relevant Points +- A fault-tolerant DAX cluster needs **minimum 3 nodes across 3 AZs** +- Load testing should start with **2 nodes** to simulate AZ failure, using **`dax.r4.large`** as the baseline node type +- T2 nodes are **not suitable for sustained workloads** due to CPU credit depletion +- When DynamoDB `ConsumedReadCapacityUnits` is measured with DAX in front, it only counts **cache misses** — must adjust by dividing by (1 - hit rate) to estimate total DAX read load +- **Vertical scaling** (bigger nodes) addresses high CPU, high eviction, high memory; **horizontal scaling** (more nodes) addresses read-heavy workloads with high cache hit rates +- Monitor **network bandwidth** — exceeding EC2 baseline bandwidth means the cluster needs scaling + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-DynamoDBLocalhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-DynamoDBLocalhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..67a492e0667d8759dc30f73582507dec7c0940d3 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-DynamoDBLocalhtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html +source: sources/amazondynamodb-latest-developerguide-DynamoDBLocalhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:06 + + + +## Overview +DynamoDB Local is a downloadable version of Amazon DynamoDB that runs as a self-contained database on your computer, enabling development and testing without connecting to the DynamoDB web service. It saves costs on throughput, data storage, and data transfer, and works offline. + +## Key Concepts +- **Self-contained local database** — no internet connection or AWS account required during development +- **Drop-in replacement** — when deploying to production, you simply remove the local endpoint and point to the DynamoDB web service +- **Cost savings** — eliminates throughput, data storage, and data transfer fees during development +- **Three distribution methods**: downloadable JAR (requires JRE), Apache Maven dependency, or Docker image +- **Requires JRE** for the direct download option + +## Commands and Syntax +No specific commands on this page — it serves as a landing page linking to: +- Deployment instructions (`DynamoDBLocal.DownloadingAndRunning.html`) +- Usage notes (`DynamoDBLocal.UsageNotes.html`) +- Release history (`DynamoDBLocalHistory.html`) +- Telemetry information (`DynamoDBLocalTelemetry.html`) + +## Relationships +- **DynamoDB web service** — the production counterpart; local version mirrors its API for dev/test +- **Application deployment workflow** — local development → remove local endpoint → production DynamoDB +- **Docker / Maven ecosystems** — alternative packaging for containerized or Java-based dev workflows +- **Setting up DynamoDB (web service)** — the parallel setup path for direct cloud usage + +## Exam-Relevant Points +- DynamoDB Local is for **development and testing only**, not production use +- The migration path to production requires only changing the **endpoint configuration** +- DynamoDB Local requires a **JRE** (for the JAR download) or **Docker** +- It does **not** incur any AWS charges since it runs entirely locally +- Available as a download, Maven dependency, or Docker image + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-EncryptionAtResthtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-EncryptionAtResthtml.md new file mode 100644 index 0000000000000000000000000000000000000000..f80d167e643c551bc4962c112ebaf4947261d6b8 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-EncryptionAtResthtml.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/EncryptionAtRest.html +source: sources/amazondynamodb-latest-developerguide-EncryptionAtResthtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:06 + + + +## Overview +DynamoDB encryption at rest automatically encrypts all user data stored in DynamoDB using keys managed through AWS KMS. It covers tables, primary keys, secondary indexes, streams, global tables, backups, and DAX clusters on durable media, requiring no application code changes. + +## Key Concepts +- **All data encrypted by default** — every DynamoDB table is encrypted at rest; this is not optional. +- **Three KMS key types available:** + - **AWS owned key** — default, managed by DynamoDB, no additional charge. + - **AWS managed key** — stored in your account, managed by KMS, KMS charges apply. + - **Customer managed key (CMK)** — full user control over creation, ownership, and management; KMS charges apply. +- **Key switching** — you can switch between key types at any time on an existing table. +- **Transparent decryption** — no code changes needed; queries work seamlessly with same single-digit ms latency. +- **DAX exception** — DAX clusters with encryption at rest always use an AWS managed key (not AWS owned or customer managed). +- **Sort key metadata exception** — some sort keys marking range boundaries are stored in plaintext in table metadata. +- **Scope of encryption** — covers primary key, LSIs, GSIs, streams, global tables, backups, and DAX cluster data. + +## Commands and Syntax +- Encryption key is specified at table creation or changed on an existing table via: + - AWS Management Console + - AWS CLI + - DynamoDB API +- Detailed procedures in `encryption.tutorial.html` (Managing encrypted tables). + +## Relationships +- **AWS KMS** — provides key storage and management for all three key types. +- **DAX** — has its own encryption-at-rest behavior (AWS managed key only). +- **DynamoDB Streams / Global Tables / Backups** — all covered by the same encryption-at-rest feature. +- **AWS Database Encryption SDK** — separate client-side encryption option for field-level encryption in database applications. +- **Compliance** — supports regulatory requirements for data-at-rest encryption. + +## Exam-Relevant Points +- Encryption at rest is **always on** — you cannot disable it; you only choose the key type. +- **AWS owned key = free; AWS managed and customer managed keys = KMS charges apply.** +- **DAX clusters always use AWS managed key** for encryption at rest (not configurable to customer managed). +- **Sort key range boundaries stored in plaintext** in table metadata — a notable security caveat. +- You can **switch key types at any time** without downtime or code changes. +- Available in **all AWS Regions** including China and GovCloud. +- Encryption is **transparent** — no performance impact, no application changes required. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-GSIOnlineOpshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-GSIOnlineOpshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7a75b0c90057e993e49cfb5b3a2a92a0a32dcd95 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-GSIOnlineOpshtml.md @@ -0,0 +1,61 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.OnlineOps.html +source: sources/amazondynamodb-latest-developerguide-GSIOnlineOpshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:07 + + + +## Overview + +This page covers the lifecycle management of Global Secondary Indexes (GSIs) in DynamoDB — creating GSIs with new or existing tables, describing their status, adding GSIs to existing tables (including the two-phase build process), deleting GSIs, and modifying GSIs during creation. + +## Key Concepts + +- **Default quota**: Up to **20 GSIs per table** +- **Key attributes**: Index partition key (required) and sort key (optional); neither must match the base table's key attributes +- **Key attribute types**: Must be scalar — `String`, `Number`, or `Binary` only (no documents or sets) +- **Projected attributes**: Can be any data type including scalars, documents, and sets +- **Capacity mode**: GSIs inherit read/write capacity mode from the base table +- **Provisioned throughput**: Each GSI has its own independent `ReadCapacityUnits` and `WriteCapacityUnits` (when using provisioned mode) +- **Projection types**: `KEYS_ONLY`, `INCLUDE` (specific non-key attributes), `ALL` +- **IndexStatus values**: `CREATING`, `ACTIVE`, `UPDATING`, `DELETING` +- **One GSI per UpdateTable**: You can only add or delete one GSI per `UpdateTable` operation +- **Index key violations**: Items with mismatched data types, oversized attributes, or empty String/Binary values are silently excluded from the index (not present when ACTIVE) + +## Commands and Syntax + +- **CreateTable** with `GlobalSecondaryIndexes` parameter — create table with GSIs +- **DescribeTable** — view GSI status (`IndexStatus`, `Backfilling` attributes) +- **UpdateTable** with `GlobalSecondaryIndexUpdates` parameter — add or delete a GSI on an existing table + +## Relationships + +- **Provisioned throughput**: Links to GSI throughput considerations (`GSI.html#GSI.ThroughputConsiderations`) +- **Capacity mode switching**: Links to `bp-switching-capacity-modes.html` +- **Violation detection**: Links to `GSI.OnlineOps.ViolationDetection.html` for resolving index key violations post-backfill +- **CloudWatch metrics**: `OnlineIndexPercentageProgress`, `WriteThrottleEvents`, `ThrottledRequests` for monitoring GSI creation +- **CloudWatch Contributor Insights**: Recommended for understanding traffic distribution before adding indexes +- **Auto Scaling**: GSI creation does **not** use Application Auto Scaling; increasing MIN capacity won't speed up creation + +## Exam-Relevant Points + +- **20 GSIs per table** (default quota) +- **One GSI add/delete per UpdateTable call** +- GSI keys must be **scalar types only** (`String`, `Number`, `Binary`) +- GSIs have **independent provisioned throughput** from the base table +- **Two-phase build process**: (1) Resource Allocation → (2) Backfilling + - During **resource allocation**: cannot delete index, cannot delete parent table, cannot modify index throughput + - During **backfilling**: can delete the index being created, cannot delete parent table, can modify throughput of table and other indexes +- **No read charges** for base table reads during GSI backfill (uses internal system capacity) +- **No charges** for deleting a GSI +- Table remains **available for reads/writes** while a GSI is being built +- GSI is **not queryable** until status is `ACTIVE` +- Deleting a table via `DeleteTable` **automatically deletes all its GSIs** +- Index key violations don't block GSI creation — violating items are simply omitted from the index +- For **very large tables**, you may need to contact AWS Support to allowlist before creating/updating a GSI +- `Backfilling` attribute in `DescribeTable` only appears for GSIs added via `UpdateTable`, **not** for GSIs created with `CreateTable` + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-GSIhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-GSIhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..6854f7024b18804a67c1366f467890c0382cb6c4 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-GSIhtml.md @@ -0,0 +1,88 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.html +source: sources/amazondynamodb-latest-developerguide-GSIhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:07 + +## Overview +Global Secondary Indexes (GSIs) in DynamoDB allow querying on non-key attributes by creating secondary indexes with a different primary key schema than the base table. GSIs contain a selection of attributes from the base table organized by a different partition key and optional sort key, enabling efficient queries that would otherwise require expensive full table scans. + +## Key Concepts +- A GSI has its own partition key and optional sort key, which can differ entirely from the base table's key schema +- Index key attributes must be top-level `String`, `Number`, or `Binary` types — other scalar, document, and set types are not allowed +- GSI key values do **not** need to be unique (unlike base table keys) +- GSIs only track items where the index key attributes actually exist — items missing the GSI key attributes are not propagated to the index (sparse index behavior) +- Base table primary key attributes are **always** projected into the index automatically +- GSI queries **cannot** fetch attributes from the base table — only projected attributes are available +- GSIs are updated **asynchronously** using an eventually consistent model +- GSIs inherit the read/write capacity mode and table class from the base table +- Data type mismatches between items and index key schema cause `ValidationException` + +## Projection Types +- **KEYS_ONLY** — only table and index key attributes; smallest index size +- **INCLUDE** — keys plus specified non-key attributes +- **ALL** — all attributes from the base table; largest index, doubles storage cost + +## Multi-Attribute Keys +- Partition keys can be composed from up to **4 attributes**; sort keys from up to **4 attributes** (max 8 total) +- Eliminates need for manually concatenated synthetic keys (e.g., `TOURNAMENT#WINTER2024#REGION#NA-EAST`) +- Query rules: all partition key attributes require equality conditions; sort key attributes queried left-to-right (no skipping); inequality conditions must be last +- Each attribute in a multi-attribute key can have its own data type (S, N, B) +- Design guidance: order attributes most general → most specific + +## Commands and Syntax +```json +// Query a GSI +{ + "TableName": "GameScores", + "IndexName": "GameTitleIndex", + "KeyConditionExpression": "GameTitle = :v_title", + "ExpressionAttributeValues": { + ":v_title": {"S": "Meteor Blasters"} + }, + "ProjectionExpression": "UserId, TopScore", + "ScanIndexForward": false +} +``` +- **Query** and **Scan** are supported on GSIs +- **GetItem** and **BatchGetItem** are **not** supported on GSIs +- Use `DescribeTable` to view GSI provisioned throughput settings + +## Throughput Considerations +- GSIs have **separate** provisioned throughput from the base table +- GSI queries consume RCUs from the **index**, not the base table +- Table writes that affect a GSI consume WCUs from the **index**, not the base table +- **Important**: GSI provisioned write capacity should be ≥ base table write capacity to avoid throttling +- GSI reads are always **eventually consistent** — each read consumes **0.5 RCU** (up to 8 KB per RCU) +- Write cost scenarios: new indexed item = 1 write; key change = 2 writes (delete old + put new); indexed attribute deleted = 1 write; only projected attributes change = 1 write; item not in index before or after = 0 writes +- WCU calculation based on 1 KB item size granularity + +## Storage Considerations +- Storage charged for both base table and GSI +- Index item size = base table PK size + index key size + projected attributes size + **100 bytes overhead** +- Items missing GSI key attributes are not stored in the index + +## Relationships +- **Base tables**: GSIs extend query flexibility beyond the table's primary key +- **Local Secondary Indexes (LSIs)**: GSIs differ in that they can have a completely different partition key, not just a different sort key +- **Provisioned capacity mode**: GSI throughput settings are managed independently +- **Table classes**: GSIs always match the base table's class (Standard or Standard-IA) +- **Scan/Query operations**: GSIs support both but not GetItem/BatchGetItem +- **Throttling**: insufficient GSI write capacity throttles base table writes + +## Exam-Relevant Points +- GSI keys do **not** need to be unique; base table keys do +- GSIs support only **eventually consistent** reads (no strongly consistent) +- GSIs consume **0.5 RCU per 4 KB** (eventually consistent only) +- **GetItem/BatchGetItem cannot be used** on GSIs +- Items without the GSI key attributes are **not propagated** to the index (sparse index) +- Changing an indexed key attribute costs **2 WCUs** (delete + put) +- GSI write capacity should be **≥ base table** write capacity to prevent throttling +- Each index item has **100 bytes of overhead** +- Multi-attribute keys: up to **4 partition key + 4 sort key attributes** (8 total) +- Query max result size is **1 MB** +- Projection type tradeoffs: KEYS_ONLY = cheapest writes/storage; ALL = most flexible but doubles storage + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-GettingStartedDynamoDBhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-GettingStartedDynamoDBhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3b5189e91e7f7e04a041f1139cf6ea6a2709aacb --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-GettingStartedDynamoDBhtml.md @@ -0,0 +1,36 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GettingStartedDynamoDB.html +source: sources/amazondynamodb-latest-developerguide-GettingStartedDynamoDBhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:07 + + + +## Overview +This page serves as the entry point for new DynamoDB users, outlining the step-by-step tutorial for creating, reading, writing, updating, and querying DynamoDB tables. It covers prerequisites, access methods, and links to each tutorial step. + +## Key Concepts +- DynamoDB is available via the **AWS Free Tier** — tutorial exercises incur no cost if free tier limits aren't exceeded +- **DynamoDB Local** is a downloadable version for local development/testing without an AWS account +- The getting-started workflow follows six steps: Create table → Write data → Read data → Update data → Query data → (Optional) Delete table +- **Console-to-Code** can generate infrastructure code from DynamoDB console actions +- No AWS access key is needed if interacting only through the AWS Management Console + +## Commands and Syntax +No specific commands on this page — it is a navigation/overview page pointing to individual tutorial steps (Steps 1–6) where actual CLI and SDK commands are demonstrated. + +## Relationships +- **Prerequisites**: Links to [Accessing DynamoDB](./AccessingDynamoDB.html) (access methods) and [Setting up DynamoDB](./SettingUp.html) +- **Foundational concepts**: References [What is Amazon DynamoDB?](./Introduction.html) and [Core components](./HowItWorks.CoreComponents.html) +- **Local development**: References [DynamoDB Local](./DynamoDBLocal.html) as an alternative to the web service +- **Next steps**: Links to [Continue learning about DynamoDB](./getting-started-NextSteps.html) for post-tutorial progression + +## Exam-Relevant Points +- DynamoDB is included in the **AWS Free Tier** (25 GB storage, 25 WCU/RCU provisioned capacity) +- **DynamoDB Local** enables offline development without AWS credentials or network access +- AWS Management Console access does **not** require an access key; programmatic access (CLI/SDK) does +- CLI command syntax differs between **Linux/macOS** and **Windows CMD** terminals + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-GlobalTableshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-GlobalTableshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..be08f5a42c35f82dbef14e42e1a1f5c52402683e --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-GlobalTableshtml.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html +source: sources/amazondynamodb-latest-developerguide-GlobalTableshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:08 + + + +## Overview + +DynamoDB Global Tables provide fully managed, multi-Region, multi-active replication that enables low-latency local reads and writes for globally distributed applications. Any replica can serve both reads and writes, supporting high availability and business continuity with near-zero RPO through Region-level failover. + +## Key Concepts + +- **Multi-active replication**: Every replica can accept both reads and writes (not primary/secondary) +- **Two consistency modes** (set at creation, immutable afterward): + - **MREC** (Multi-Region Eventual Consistency) — the default + - **MRSC** (Multi-Region Strong Consistency) +- **Two account models**: + - **Same-account**: All replicas in one AWS account; supports both current and legacy versions + - **Multi-account**: Replicas span multiple AWS accounts; current version only (2019.11.21) +- **MRSC only supports same-account** configurations +- Conflict resolution uses **last-writer-wins** +- No application code changes required — uses standard DynamoDB read/write APIs +- Available in all Regions where DynamoDB is available +- No upfront costs; pay only for provisioned/used resources + +## Commands and Syntax + +No specific CLI commands on this page — configuration is done via the AWS Management Console or standard DynamoDB APIs. Subtopics cover operational details. + +## Relationships + +- **DynamoDB core**: Global tables build on standard DynamoDB tables and APIs +- **IAM / KMS**: Same-account has single boundary; multi-account has separate IAM, KMS, billing, and CloudTrail per account +- **Disaster Recovery**: Enables low/zero RPO by shifting traffic across Regions +- **Billing**: Dedicated billing model for global tables (covered in subtopic) +- **Versioning**: Two versions exist — 2019.11.21 (Current) and 2017.11.29 (Legacy, same-account only) + +## Exam-Relevant Points + +- Default consistency mode is **MREC**; you **cannot change** consistency mode after creation +- **MRSC is restricted to same-account** global tables +- A global table **cannot mix consistency modes** across replicas +- Multi-account global tables require version **2019.11.21** (current) +- Multi-account model: each account **owns its local replica**; same-account model: single account owns all replicas +- Both models support: multi-Region writes, async replication, last-writer-wins, same billing model +- Key differentiator for multi-account: **separate security boundaries** (IAM, KMS, CloudTrail, billing per account) + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksCoreComponentshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksCoreComponentshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..052a94afa2163372df4365b5c8686db17109fcb4 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksCoreComponentshtml.md @@ -0,0 +1,66 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.CoreComponents.html +source: sources/amazondynamodb-latest-developerguide-HowItWorksCoreComponentshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:08 + + + +## Overview + +This page covers the fundamental building blocks of Amazon DynamoDB: tables, items, attributes, primary keys, secondary indexes, and DynamoDB Streams. It explains how data is organized, identified, queried, and how change events can be captured. + +## Key Concepts + +- **Tables** — Collections of data items; analogous to tables in relational databases. +- **Items** — Groups of attributes uniquely identifiable within a table; analogous to rows/records. No limit on number of items per table. +- **Attributes** — Fundamental data elements within an item; analogous to columns/fields. Can be scalar or nested (up to 32 levels deep). +- **Schemaless** — Beyond the primary key, items in a table can have different attributes and data types; no schema definition required beforehand. +- **Partition key (hash attribute)** — Simple primary key using one attribute. Value is hashed to determine physical storage partition. Must be unique per item. +- **Composite primary key (partition key + sort key)** — Two-attribute key. Multiple items can share a partition key but must have different sort key values. Items with the same partition key are stored together, sorted by sort key. +- **Primary key data types** — Only string, number, or binary allowed for key attributes. +- **Global Secondary Index (GSI)** — Index with a partition key and sort key that can differ from the base table's. Keys don't need to be unique. Default quota: **20 per table**. +- **Local Secondary Index (LSI)** — Index sharing the base table's partition key but with a different sort key. Quota: **5 per table**. +- **Attribute projection** — When creating an index, you choose which attributes are copied from the base table. At minimum, key attributes are projected. +- **DynamoDB Streams** — Optional feature capturing data modification events (inserts, updates, deletes) in near-real time, in order. Stream records live for **24 hours**. +- **Stream record contents** — For inserts: full new item image. For updates: before and after images of modified attributes. For deletes: full item image before deletion. Also includes table name, timestamp, and metadata. +- **Triggers** — DynamoDB Streams + Lambda integration to run code automatically on data change events. + +## Commands and Syntax + +No CLI commands on this page. Key structural patterns: + +- **Simple primary key table** — e.g., `People` table with `PersonID` as sole key attribute. +- **Composite primary key table** — e.g., `Music` table with `Artist` (partition key) + `SongTitle` (sort key). +- **Querying with composite key** — Provide partition key only to get all items for that key; add sort key or sort key range to narrow results. +- **Secondary index creation** — Define partition key and sort key for the index (e.g., `GenreAlbumTitle` index with `Genre` as partition key, `AlbumTitle` as sort key). + +## Relationships + +- **Quotas** → `ServiceQuotas` page for DynamoDB limits +- **Tables operations** → `WorkingWithTables` for CRUD on tables and data +- **Secondary indexes** → `SecondaryIndexes` page for GSI/LSI details +- **DynamoDB Streams** → `Streams` page for change data capture details +- **Lambda triggers** — Streams integrate with AWS Lambda for event-driven processing +- **Amazon SES** — Example downstream service invoked via Lambda triggers +- **Kinesis** — Streams enable materialized views via Kinesis integration +- **Cross-region replication** — Enabled by DynamoDB Streams (relates to Global Tables) + +## Exam-Relevant Points + +- Two primary key types: **partition key only** vs. **partition key + sort key**. Know when each is used. +- Primary key attributes are restricted to **string, number, or binary** — no other data types allowed. +- GSI quota: **20 per table** (default). LSI quota: **5 per table**. +- GSI can have different partition key and sort key from base table; LSI must share the same partition key. +- DynamoDB is **schemaless** beyond the primary key — items can have different attributes. +- Nested attributes supported up to **32 levels deep**. +- **No limit** on number of items in a table. +- Stream records are retained for **24 hours**. +- Streams capture: new image (insert), before+after images (update), old image (delete). +- Indexes are **maintained automatically** by DynamoDB when base table data changes. +- Partition key value is **hashed** to determine storage partition — critical for understanding hot partition issues. +- Items with the same partition key in a composite key table are **stored together, sorted by sort key**. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksNamingRulesDataTypeshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksNamingRulesDataTypeshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..86c6ad5f593dbaece0d4b8aec9ab859db449cf92 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksNamingRulesDataTypeshtml.md @@ -0,0 +1,81 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html +source: sources/amazondynamodb-latest-developerguide-HowItWorksNamingRulesDataTypeshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:09 + + + +## Overview + +This page documents DynamoDB's naming rules for tables, indexes, and attributes, the supported data types (scalar, document, and set types), and the low-level API data type descriptors used to identify each type. + +## Key Concepts + +- **Naming rules**: All names are UTF-8 encoded and case-sensitive +- **Table/index names**: 3–255 characters; allowed chars: `a-z`, `A-Z`, `0-9`, `_`, `-`, `.` +- **Attribute names**: Min 1 character, max 64 KB (best practice: keep short to reduce RCU consumption). Secondary index key names and projected attribute names limited to 255 characters. +- **Reserved words**: `#` and `:` have special meaning; use expression attribute names as placeholders +- **DynamoDB is schemaless** — only primary key attributes require type definitions at table creation +- **Primary key attributes** must be String, Number, or Binary type +- **Three data type categories**: + - **Scalar**: Number, String, Binary, Boolean, Null + - **Document**: List, Map (nestable up to 32 levels deep) + - **Set**: String Set, Number Set, Binary Set +- **Item size limit**: 400 KB (applies to all values within an item) +- **Number precision**: Up to 38 digits; range 1E-130 to ~1E+125 (positive/negative); transmitted as strings over the network +- **String comparison**: Uses raw UTF-8 byte values (so `"a"` > `"A"`) +- **Partition key max**: 2048 bytes; **Sort key max**: 1024 bytes +- **Binary values** must be base64-encoded before sending to DynamoDB +- **No native date/time type** — use epoch time (Number) or ISO 8601 (String) +- **Sets**: All elements must be same type, each value must be unique, order not preserved, empty sets not allowed +- **Empty values**: Empty strings/binary allowed as non-key attribute values and within lists/maps; empty lists/maps allowed; empty sets not allowed + +## Commands and Syntax + +**Data type descriptors** (used in low-level API calls): + +| Descriptor | Type | +|---|---| +| `S` | String | +| `N` | Number | +| `B` | Binary | +| `BOOL` | Boolean | +| `NULL` | Null | +| `M` | Map | +| `L` | List | +| `SS` | String Set | +| `NS` | Number Set | +| `BS` | Binary Set | + +**Example values**: +- List: `["Cookies", "Coffee", 3.14159]` +- Map: `{ Day: "Monday", UnreadEmails: 42 }` +- String Set: `["Black", "Green", "Red"]` +- Date as ISO 8601 string: `"2015-12-21T17:42:34Z"` +- Date as epoch number: `1437136300` + +## Relationships + +- **Primary keys & indexes**: Only S, N, B types allowed for key attributes — directly impacts table and GSI/LSI design +- **Expressions**: Reserved words and special characters (`#`, `:`) require expression attribute names/values +- **Item size limits**: 400 KB limit ties into capacity planning and data modeling +- **DynamoDB Streams / Lambda**: Data type descriptors appear in stream records +- **Query/Filter expressions**: Understanding types is essential for condition expressions and comparison behavior + +## Exam-Relevant Points + +- Primary key attributes **must** be String, Number, or Binary — no other types allowed +- Partition key max **2048 bytes**, sort key max **1024 bytes** +- Numbers have **38 digits of precision** — use strings for greater precision +- Document types nest up to **32 levels deep** +- Sets must contain **unique values of the same type**; **empty sets are not allowed** +- DynamoDB has **no native date type** — use epoch (Number) or ISO 8601 (String) +- Attribute names count toward **storage and throughput metering** — keep them short +- String sorting uses **UTF-8 byte ordering**, not linguistic ordering +- Binary data must be **base64-encoded** before sending to DynamoDB +- DynamoDB is **schemaless** — only key attributes are defined at table creation + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksReadConsistencyhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksReadConsistencyhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..f3cead46914c88a79981bf4d71e9695de5cd89e2 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksReadConsistencyhtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadConsistency.html +source: sources/amazondynamodb-latest-developerguide-HowItWorksReadConsistencyhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:09 + + + +## Overview +This page explains DynamoDB's read consistency models — eventually consistent and strongly consistent reads — covering where each applies (tables, LSIs, GSIs, streams), their cost differences, and how global tables handle consistency across regions. + +## Key Concepts +- **Read-committed isolation**: DynamoDB guarantees reads always return committed values; you never see data from a write that didn't succeed +- **Eventually consistent reads** (default): May not reflect a recently completed write; repeating the read after a short time returns current data +- **Strongly consistent reads**: Set `ConsistentRead` to `true` to get the most up-to-date data reflecting all prior successful writes +- **Eventually consistent reads cost half** of strongly consistent reads +- **GSIs and DynamoDB Streams are always eventually consistent** — strongly consistent reads are NOT supported on them +- **Strongly consistent reads are supported on**: tables and local secondary indexes (LSIs) only +- **Write durability**: An HTTP 200 response means the write is durably persisted +- **Global tables**: Changes replicate across regions typically within one second, using eventual consistency + +## Commands and Syntax +- Set `ConsistentRead` parameter to `true` on `GetItem`, `Query`, or `Scan` operations to request strongly consistent reads +- Default behavior (no parameter or `ConsistentRead: false`) uses eventually consistent reads + +## Relationships +- **Tables & LSIs**: Support both consistency models +- **GSIs**: Eventually consistent only — critical design consideration when choosing index type +- **DynamoDB Streams**: Eventually consistent only +- **Global Tables**: Multi-region replication is eventually consistent (typically sub-second) +- **Pricing**: Directly tied to consistency choice — strongly consistent reads consume twice the read capacity units +- **Transactions** (`TransactGetItems`): Provide serializable isolation, a level beyond what's covered here + +## Exam-Relevant Points +- GSIs do **not** support strongly consistent reads — this is a very common exam question +- Eventually consistent reads are **half the cost** (half the RCUs) of strongly consistent reads +- The default read consistency is **eventually consistent** +- Strongly consistent reads work on **tables and LSIs only** +- DynamoDB Streams reads are **always** eventually consistent +- Global table replication is **eventually consistent**, typically within **one second** +- DynamoDB provides **read-committed isolation** — reads never return uncommitted data + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksTableClasseshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksTableClasseshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..35cd7815bbced24786b896dcd752bfd3d27f0870 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksTableClasseshtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.TableClasses.html +source: sources/amazondynamodb-latest-developerguide-HowItWorksTableClasseshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:09 + + + +## Overview + +DynamoDB offers two table classes to optimize costs: **DynamoDB Standard** (default, recommended for most workloads) and **DynamoDB Standard-Infrequent Access (Standard-IA)** (optimized for storage-dominant costs with infrequently accessed data). Table class affects pricing for storage and read/write requests, and can be changed at any time. + +## Key Concepts + +- **Two table classes**: Standard (default) and Standard-IA +- Standard-IA is for tables where **storage is the dominant cost** — e.g., application logs, old social media posts, e-commerce order history, past gaming achievements +- Every table is associated with a table class; **Standard is the default** +- **Secondary indexes inherit the table class** of their parent table — you cannot set a different class per index +- Each class has **different pricing** for data storage and read/write requests +- Standard-IA has **lower storage costs but higher read/write costs** compared to Standard +- Table class choice is **not permanent** — it can be changed via Console, CLI, or SDK +- **CloudFormation supports** managing table class for both single-Region and global tables + +## Commands and Syntax + +No specific CLI commands shown on this page, but table class can be managed via: +- AWS Management Console +- AWS CLI (e.g., `aws dynamodb update-table --table-class ...`) +- AWS SDK +- AWS CloudFormation + +## Relationships + +- **Pricing**: Table class directly affects DynamoDB cost structure (storage vs. throughput tradeoffs) +- **Secondary Indexes (GSI/LSI)**: Inherit table class from parent table +- **Global Tables**: CloudFormation supports table class management for global tables +- **Capacity Modes**: Table class is orthogonal to capacity mode (on-demand vs. provisioned) — both dimensions affect cost +- **Cost Optimization Best Practices**: Choosing the right table class is part of DynamoDB cost optimization strategy + +## Exam-Relevant Points + +- Standard-IA is for **infrequently accessed data where storage dominates cost** — know the use case examples +- **Secondary indexes always use the same table class** as the parent table (no per-index override) +- Table class **can be changed** after table creation — it is not a permanent decision +- **Standard is the default** table class if none is specified +- Standard-IA trades **cheaper storage for more expensive read/write requests** + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-Introductionhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-Introductionhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..00562db6bfd4a2b89555b857428dd21637e5af04 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-Introductionhtml.md @@ -0,0 +1,73 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Introduction.html +source: sources/amazondynamodb-latest-developerguide-Introductionhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:09 + + + +## Overview + +Amazon DynamoDB is a serverless, fully managed, distributed NoSQL database service that delivers consistent single-digit millisecond performance at any scale. Launched in 2012, it supports both key-value and document data models, automatically replicates data across three Availability Zones, and is designed for operational workloads requiring high availability (99.99% SLA, or 99.999% with global tables). + +## Key Concepts + +- **Serverless**: No server provisioning, patching, or maintenance; no versions or maintenance windows; scales to zero with no cold starts +- **NoSQL**: Purpose-built for performance/scalability; supports key-value and document models; no JOIN operations (denormalize instead) +- **Fully managed**: Handles setup, configuration, HA, hardware provisioning, security, backups, monitoring +- **Performance**: Single-digit millisecond latency at any scale (100 to 100M+ users) +- **Capacity modes**: On-demand (pay-per-request, auto-scales) and provisioned (pre-allocated capacity) +- **Global tables**: Multi-active replication across chosen AWS Regions; no primary table concept; 99.999% availability SLA +- **ACID transactions**: Native server-side support for coordinated all-or-nothing changes across multiple items/tables +- **Change data capture (CDC)**: Two streaming models — DynamoDB Streams and Kinesis Data Streams for DynamoDB +- **Secondary indexes**: Global and local secondary indexes for alternate key access patterns +- **DAX**: In-memory caching layer delivering microsecond response times (up to 10x improvement) +- **Encryption at rest**: Default (AWS-owned key), AWS managed key, or customer managed key (KMS); client-side encryption via AWS Database Encryption SDK +- **Security**: IAM-based access control (no DB usernames/passwords); fine-grained attribute-level authorization; resource-based policies with IAM Access Analyzer and Block Public Access +- **Resilience**: Auto-replicates across 3 AZs; continuous backups with PITR (1–35 days); on-demand backups for long-term retention; AWS Backup integration +- **Free tier**: 25 GB storage + 25 WCU/25 RCU (≈200M requests/month), always free +- **Compliance**: HIPAA, PCI DSS, GDPR + +## Commands and Syntax + +No specific CLI commands on this page. Access methods listed: +- **AWS Management Console** — `console.aws.amazon.com/dynamodb` +- **AWS CLI** — `aws dynamodb` commands +- **NoSQL Workbench** — visual GUI tool +- **DynamoDB APIs** — programmatic access via SDKs + +## Relationships + +- **IAM** — All authentication/authorization; fine-grained access control; resource-based policies +- **KMS** — Encryption key management for encryption at rest +- **Lambda** — Triggers from DynamoDB Streams for event-driven architectures +- **S3** — Import/export data (full and incremental exports) +- **Kinesis Data Streams** — Alternative CDC streaming model +- **DAX** — In-memory caching layer purpose-built for DynamoDB +- **CloudFormation** — Infrastructure as code provisioning +- **CloudWatch** — Monitoring and metrics +- **Auto Scaling** — Automatic capacity management (provisioned mode) +- **AWS Backup** — Managed backup scheduling, cross-account/cross-region copy, cold storage lifecycle +- **AWS FIS** — Fault injection experiments (e.g., pausing global table replication) +- **Amazon Redshift / OpenSearch** — Zero-ETL integrations for analytics and search +- **AppSync** — GraphQL API integration +- **API Gateway** — REST API integration + +## Exam-Relevant Points + +- DynamoDB replicates across **3 AZs** by default → 99.99% SLA; global tables → **99.999% SLA** +- **No JOIN operations** — denormalize data instead +- Two capacity modes: **on-demand** (pay-per-request, auto-scale) vs **provisioned** (pre-allocated WCU/RCU) +- On-demand mode scales to zero with **no cold starts** +- Global tables are **multi-active** (not active-passive) — no primary table, no failover delay +- PITR recovery window: **1 to 35 days**, per-second granularity, no impact on table performance +- DAX provides **microsecond** latency (up to 10x improvement over base DynamoDB) +- Encryption at rest is **enabled by default** using AWS-owned keys at no extra charge +- Two CDC options: **DynamoDB Streams** and **Kinesis Data Streams** +- Free tier: **25 GB** storage + **25 RCU/25 WCU** (always free, not 12-month) +- Supports both **key-value** and **document** data models +- Provides **ACID transaction** support across multiple items and tables + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-LSIhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-LSIhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2e0254bb1071e06b4cab5fc8a296f4751136b2c4 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-LSIhtml.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LSI.html +source: sources/amazondynamodb-latest-developerguide-LSIhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:10 + +## Overview +Local secondary indexes (LSIs) in Amazon DynamoDB provide an alternate sort key for a given partition key value, enabling efficient queries on non-key attributes without scanning the entire table. LSIs share the same partition key as the base table but use a different sort key, and they automatically stay synchronized with the base table. + +## Key Concepts +- **LSI definition**: An alternate sort key for data with the same partition key; enables `Query` and `Scan` against a different dimension +- **Limit**: Up to **5 LSIs per table**; must be created at table creation time (cannot be added later) +- **Partition key must match** the base table; sort key must be exactly one scalar attribute (`String`, `Number`, or `Binary`) +- **Base table sort key is automatically projected** into the LSI as a non-key attribute +- **10 GB item collection size limit** per partition key value (includes base table items + all LSI items for that partition key) +- **Projection types**: + - `KEYS_ONLY` — only table and index key attributes (smallest index) + - `INCLUDE` — keys plus specified non-key attributes + - `ALL` — all attributes from source table (largest index, doubles storage) +- **Fetches**: When querying attributes not projected into the LSI, DynamoDB automatically fetches them from the base table at higher latency and cost (reads entire base table item, not just requested attributes) +- **No one-to-one requirement** between base table items and LSI items; if an item lacks the indexed attribute, no LSI entry is written +- **Item collections**: All items sharing a partition key value across the table and all its LSIs + +## Commands and Syntax +- **Create LSI**: Use `LocalSecondaryIndexes` parameter in `CreateTable` (cannot add after creation) +- **Query an LSI**: +```json +{ + "TableName": "Thread", + "IndexName": "LastPostIndex", + "ConsistentRead": false, + "ProjectionExpression": "Subject, LastPostDateTime, Replies, Tags", + "KeyConditionExpression": "ForumName = :v_forum and LastPostDateTime between :v_start and :v_end", + "ExpressionAttributeValues": { + ":v_start": {"S": "2015-08-31T00:00:00.000Z"}, + ":v_end": {"S": "2015-11-31T00:00:00.000Z"}, + ":v_forum": {"S": "EC2"} + } +} +``` +- **Supported read operations**: `Query`, `Scan` (NOT `GetItem` or `BatchGetItem`) +- **Consistency**: Supports both eventually consistent and strongly consistent reads via `ConsistentRead` parameter +- **Item collection metrics**: Set `ReturnItemCollectionMetrics` to `SIZE` on write operations (`PutItem`, `UpdateItem`, `DeleteItem`, `BatchWriteItem`, `TransactWriteItems`) + +## Relationships +- **Base table**: LSIs are tightly coupled — created/deleted with the table, share partition key and provisioned throughput +- **Global secondary indexes (GSIs)**: Unlike LSIs, GSIs can have a different partition key; GSIs don't have the 10 GB item collection limit +- **Provisioned throughput**: LSI reads/writes consume the table's provisioned capacity units; fetches add extra RCU cost +- **Write costs**: Each LSI adds write overhead — 1 write for new index entries, 2 writes for key changes (delete old + insert new), 1 write for deletions +- **Storage**: Charged separately; each index item = base table PK size + index key size + projected attributes + 100 bytes overhead + +## Exam-Relevant Points +- LSIs **must be created at table creation time** — cannot be added or removed later +- Maximum **5 LSIs per table** +- **10 GB per partition key value** limit applies only to tables with LSIs (not GSIs, not tables without LSIs) +- LSIs share the **same partition key** as the base table; only the sort key differs +- Sort key attribute must be scalar (`String`, `Number`, `Binary`) — no document/set types +- `GetItem` and `BatchGetItem` **cannot** be used on LSIs +- LSIs support **strongly consistent reads** (unlike GSIs which only support eventually consistent) +- Fetching non-projected attributes reads the **entire base table item** (not just the needed attributes), increasing RCU consumption +- Query result max is 1 MB; when fetches occur, the calculation sums index item sizes (rounded to 4 KB) + each base table item size (individually rounded to 4 KB) +- Strongly consistent read = 1 RCU; eventually consistent = 0.5 RCU +- Write cost: updating an indexed key value costs **2 writes** to the index (delete + put) +- If `ItemCollectionSizeLimitExceededException` is returned, you must reduce item collection size before further writes with that partition key + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-OpenSearchIngestionForDynamoDBhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-OpenSearchIngestionForDynamoDBhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7ed2fd3379dbcb939f9186ba58a28a1818cbf380 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-OpenSearchIngestionForDynamoDBhtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/OpenSearchIngestionForDynamoDB.html +source: sources/amazondynamodb-latest-developerguide-OpenSearchIngestionForDynamoDBhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:10 + + + +## Overview +DynamoDB offers a zero-ETL integration with Amazon OpenSearch Service via the DynamoDB plugin for OpenSearch Ingestion, providing a fully managed, no-code pipeline to ingest DynamoDB table data into OpenSearch Service indexes in near real time. + +## Key Concepts +- **Zero-ETL**: No custom extract-transform-load code needed; uses a managed OpenSearch Ingestion pipeline +- **Two-phase sync**: Initial snapshot via DynamoDB Export to S3, then ongoing replication via DynamoDB Streams +- **Streams requirement**: DynamoDB Streams must be enabled with **new & old images** option selected +- **PITR requirement**: Point-in-time recovery must be enabled (required for the S3 export) +- **No table throughput impact**: The plugin does not consume read/write capacity from your table +- **Throughput baseline**: ~1 MB/s (≈1000 WCU) per OpenSearch Compute Unit (OCU) for simple pipelines +- **Dead-letter queue (DLQ)**: Captures events that cause unrecoverable errors +- **Auto-resume**: Pipeline resumes from where it left off after interruptions +- **24-hour interruption limit**: Outages >24 hours can cause lost updates, requiring a fresh index rebuild +- **Flexible pipeline modes**: Snapshot-only (exclude streams settings), streams-only (exclude export settings), or both +- **Processor plugins**: Events can be transformed in-flight — drop attributes, create composite attributes, route to different indexes + +## Commands and Syntax +- No CLI commands documented on this page; configuration is done through the AWS Console or OpenSearch Ingestion pipeline YAML +- **Console workflow**: DynamoDB Console → Integrations → Select table → Create → follows OpenSearch Ingestion blueprint automatically + +## Relationships +- **DynamoDB Export to S3**: Used for the initial snapshot load +- **DynamoDB Streams**: Used for ongoing change replication +- **Point-in-time recovery (PITR)**: Must be enabled as a prerequisite +- **OpenSearch Ingestion**: The managed pipeline service that orchestrates the integration +- **Amazon OpenSearch Service**: The destination for indexed data +- **Stream consumer limits**: Shares parallel consumer limits with other DynamoDB Streams integrations (Lambda triggers, KCL, etc.) + +## Exam-Relevant Points +- PITR and DynamoDB Streams (new & old images) are **both required** for full zero-ETL integration +- The integration does **not** consume table read/write throughput +- Interruptions >24 hours require a fresh index rebuild to fix data gaps +- You can run snapshot-only or streams-only pipelines by selectively excluding configuration +- Throughput estimate: 1 OCU ≈ 1 MB/s ≈ 1000 WCU + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-Point-in-time-recoveryhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-Point-in-time-recoveryhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..50ad4546e4bb7ea01fcfc0079c55f8b8cf646516 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-Point-in-time-recoveryhtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Point-in-time-recovery.html +source: sources/amazondynamodb-latest-developerguide-Point-in-time-recoveryhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:10 + + + +## Overview +DynamoDB Point-in-Time Recovery (PITR) provides fully managed, automatic continuous backups with per-second granularity for up to 35 days. It eliminates the need to create, maintain, or schedule on-demand backups, allowing restoration of table data to any second within the recovery window. + +## Key Concepts +- **PITR** is fully managed by DynamoDB — no manual backup scheduling required +- Provides **per-second granularity** recovery points +- Default recovery window is **35 days**, configurable via `RecoveryPeriodinDays` (1–35 days) +- Shortening `RecoveryPeriodinDays` does **not** reduce pricing — pricing is based on table + LSI size +- Disabling and re-enabling PITR **resets the recovery start time** — only `LatestRestorableDateTime` is available immediately after re-enable +- Restores create an **independent table** (not part of any global table) +- Supports **cross-Region restores** between commercial, China, and GovCloud regions +- Cross-region restore costs: data transfer out of source region + new table in destination region +- All PITR actions are logged via **AWS CloudTrail** + +## Commands and Syntax +- `RecoveryPeriodinDays` — parameter to configure the continuous backup retention window (1–35 days) +- `LatestRestorableDateTime` — the most recent point to which a table can be restored +- Enable/disable PITR per table (and per local replica for global tables) + +## Relationships +- **On-Demand Backups** — PITR is complementary; on-demand backups are user-initiated snapshots while PITR is continuous +- **Global Tables** — PITR is enabled per replica; restored tables are independent but can be used to create a new global table (version 2019.11.21+) +- **CloudTrail** — logs all PITR console and API actions +- **Cross-Region Restores** — ties into data transfer pricing and multi-region DR strategies +- **LSIs** — included in PITR pricing calculation alongside table size + +## Exam-Relevant Points +- PITR retention is **up to 35 days**, configurable down to 1 day +- Shortening retention does **not** save money (pricing is size-based, not duration-based) +- Disabling then re-enabling PITR **loses the previous recovery window** +- Restored tables are **standalone** — not automatically part of a global table +- Cross-region restore is supported but incurs **data transfer charges** +- Granularity is **per second**, not per minute or per hour + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-PointInTimeRecovery_Howitworkshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-PointInTimeRecovery_Howitworkshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a2643ca59b1ab910317c4adfdcf85d1c2f494376 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-PointInTimeRecovery_Howitworkshtml.md @@ -0,0 +1,78 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/PointInTimeRecovery_Howitworks.html +source: sources/amazondynamodb-latest-developerguide-PointInTimeRecovery_Howitworkshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:11 + + + +## Overview + +This page covers how to enable and configure DynamoDB Point-in-Time Recovery (PITR), which provides continuous automatic backups of table data. It describes enabling PITR via console, CLI, CloudFormation, and API, configuring the recovery period (1–35 days), editing PITR settings, and the behavior when deleting a PITR-enabled table. + +## Key Concepts + +- **PITR** provides continuous backups; must be explicitly enabled and explicitly turned off +- Restores always go to a **new table** — never overwrites the existing table +- **Recovery window**: configurable between **1 and 35 days** (`RecoveryPeriodInDays`) +- `LatestRestorableDateTime` is typically **5 minutes before current time** +- `EarliestRestorableDateTime` marks the oldest recoverable point +- **Billing**: based on table size (data + LSIs); **changing the recovery window does NOT change the price** — cost is the same whether you set 1 day or 35 days +- **Increasing** the recovery period: `EarliestRestorePoint` does not change immediately — the window grows over time +- **Decreasing** the recovery period: `EarliestRestorePoint` **immediately** shrinks and older backups become unrecoverable +- **System backup on delete**: when a PITR-enabled table is deleted, DynamoDB creates a system backup (named `$DeletedTableBackup`) retained for **35 days at no extra cost** — this is a single snapshot, not continuous recovery + +## Commands and Syntax + +**AWS CLI — enable PITR:** +```bash +aws dynamodb update-continuous-backups \ + --table-name Music \ + --point-in-time-recovery-specification PointInTimeRecoveryEnabled=true,RecoveryPeriodInDays=35 +``` + +**CloudFormation:** +```yaml +PointInTimeRecoverySpecification: + PointInTimeRecoveryEnabled: true + RecoveryPeriodInDays: 35 +``` + +**Python (boto3):** +```python +dynamodb = boto3.client('dynamodb') +dynamodb.update_continuous_backups( + TableName='MyTable', + PointInTimeRecoverySpecification={ + 'PointInTimeRecoveryEnabled': True, + 'RecoveryPeriodInDays': 35 + } +) +``` + +**API operation:** `UpdateContinuousBackups` with `PointInTimeRecoverySpecification` + +**Response fields:** `ContinuousBackupsStatus`, `PointInTimeRecoveryStatus`, `EarliestRestorableDateTime`, `LatestRestorableDateTime`, `RecoveryPeriodInDays` + +## Relationships + +- **Restoring from PITR** — covered in the companion page on restoring a table to a point in time +- **On-demand backups** — separate mechanism from PITR; PITR is continuous while on-demand is snapshot-based +- **Global tables** — PITR can be enabled per-replica +- **CloudFormation** — `AWS::DynamoDB::Table` resource supports `PointInTimeRecoverySpecification` +- **Billing** — PITR cost is additive to base table storage costs +- **LSIs** — included in PITR size calculation (GSIs are not mentioned) + +## Exam-Relevant Points + +- PITR always restores to a **new table** — never in-place +- Recovery period is **1–35 days**; changing it does **not** affect pricing +- `LatestRestorableDateTime` ≈ current time **minus 5 minutes** +- **Decreasing** recovery period immediately loses older backup data; **increasing** does not instantly extend the earliest restore point +- Deleting a PITR-enabled table auto-creates a **system backup** retained for **35 days at no cost**, but it is a single snapshot (not continuous) +- System backup naming convention: `$DeletedTableBackup` +- PITR billing includes **table data + LSIs** (not GSIs) + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-Programminghtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-Programminghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..be7435963fb42dcaa43e1e389d1ffb5e14e711ca --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-Programminghtml.md @@ -0,0 +1,35 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.html +source: sources/amazondynamodb-latest-developerguide-Programminghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:11 + + + +## Overview +This is a landing/index page for the DynamoDB SDK programming section. It lists subtopics covering SDK support, language-specific guides (Python/Boto3, JavaScript, Java 2.x), error handling, and general SDK usage. + +## Key Concepts +- DynamoDB is accessed programmatically through AWS SDKs +- Supported languages highlighted: Python (Boto3), JavaScript, Java 2.x +- In December 2017, DynamoDB endpoints began migrating to Amazon Trust Services (ATS) certificates for SSL/TLS +- SSL/TLS certificate issues may arise if clients don't trust ATS certificates + +## Commands and Syntax +None — this is an index page pointing to language-specific guides. + +## Relationships +- **Python/Boto3**: Primary SDK for Python developers (`programming-with-python`) +- **JavaScript SDK**: For Node.js/browser applications (`programming-with-javascript`) +- **Java 2.x SDK**: For Java applications (`ProgrammingWithJava`) +- **Error handling**: Cross-cutting concern for all SDK usage (`Programming.Errors`) +- **ATS certificates**: Relates to connectivity/troubleshooting (`ats-certs`) + +## Exam-Relevant Points +- DynamoDB supports multiple AWS SDKs (Python, JavaScript, Java, and others) +- ATS certificate migration happened in December 2017 — legacy clients may need certificate store updates +- Error handling is a distinct topic with its own patterns in DynamoDB SDK usage + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-QueryFilterExpressionhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-QueryFilterExpressionhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c9f2b67ecbe87b25e13d2ca0af13c1dbf0ddffec --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-QueryFilterExpressionhtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.FilterExpression.html +source: sources/amazondynamodb-latest-developerguide-QueryFilterExpressionhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:11 + + + +## Overview +This page explains filter expressions for the DynamoDB `Query` operation, which allow post-query refinement of results. Critically, filter expressions are applied **after** the query completes and consumes read capacity, meaning they do not reduce the cost or data scanned—only what is returned to the caller. + +## Key Concepts +- A **filter expression** determines which items from `Query` results are returned; non-matching items are discarded +- Filter expressions are applied **after** the query finishes but **before** results are returned to the client +- A `Query` **consumes the same read capacity** regardless of whether a filter expression is present +- The **1 MB limit** applies **before** the filter expression is evaluated +- Filter expressions **cannot contain partition key or sort key attributes** — those must be in the key condition expression +- Filter expressions support all key condition operators **plus**: `<>` (not-equals), `OR`, `CONTAINS`, `IN`, `BEGINS_WITH`, `BETWEEN`, `EXISTS`, and `SIZE` +- Reserved words (e.g., `Views`) must use expression attribute name placeholders (e.g., `#v`) + +## Commands and Syntax +```bash +aws dynamodb query \ + --table-name Thread \ + --key-condition-expression "ForumName = :fn and Subject begins_with :sub" \ + --filter-expression "#v >= :num" \ + --expression-attribute-names '{"#v": "Views"}' \ + --expression-attribute-values file://values.json +``` + +`values.json`: +```json +{ + ":fn":{"S":"Amazon DynamoDB"}, + ":sub":{"S":"DynamoDB Thread 1"}, + ":num":{"N":"3"} +} +``` + +## Relationships +- **Key condition expressions** — filter expressions complement these; key conditions select items by partition/sort key, filters refine the rest +- **Expression attribute names** — required when filter expressions reference DynamoDB reserved words +- **Expression operators and functions** — filter expressions share syntax with condition expressions +- **Read capacity** — understanding that filters don't reduce RCU consumption connects to capacity planning and cost optimization +- **Query pagination** — the 1 MB pre-filter limit means filtered queries may return fewer items than expected per page, requiring additional pagination + +## Exam-Relevant Points +- **Filter expressions do NOT reduce read capacity consumption** — this is the most commonly tested misconception +- The **1 MB query limit applies before filtering**, so a query with a filter may return significantly fewer than 1 MB of results +- **Partition key and sort key cannot appear in filter expressions** — they belong in the key condition expression only +- Filter expressions are a poor substitute for proper data modeling; if you're discarding most items via filter, redesign your keys/indexes +- Filter expressions support operators that key condition expressions do not (e.g., `<>`, `OR`, `CONTAINS`) + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-QueryKeyConditionExpressionshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-QueryKeyConditionExpressionshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..81eea939128368ff79d0c0f82153fb357842ffd1 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-QueryKeyConditionExpressionshtml.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.KeyConditionExpressions.html +source: sources/amazondynamodb-latest-developerguide-QueryKeyConditionExpressionshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:11 + + + +## Overview +This page explains how to construct key condition expressions for DynamoDB `Query` operations, which determine which items are read from a table or index based on partition key and optional sort key conditions. + +## Key Concepts +- **Key condition expression**: A string that specifies search criteria for a `Query` operation, targeting partition and sort key attributes. +- Partition key must always be specified as an **equality condition** (`=`). You cannot use non-key attributes in key condition expressions. +- Sort key conditions are **optional** and support: `=`, `<`, `<=`, `>`, `>=`, `BETWEEN ... AND ...`, and `begins_with()`. +- Items with the same partition key are stored **sorted by sort key value**. Query returns them in this sorted order. +- Sort order is **ascending by default**; set `ScanIndexForward = false` to reverse it. +- Numeric sort keys return in numeric order; all others return in **UTF-8 byte order**. +- A single `Query` returns **max 1 MB** of data, applied **before** `FilterExpression` or `ProjectionExpression`. Use `LastEvaluatedKey` to paginate. +- A `Query` always returns a result set (empty if no matches). +- Attribute names in expressions must start with `a-z`/`A-Z`, contain only alphanumerics after that, and **not be reserved words** — otherwise use expression attribute name placeholders (`#name`). + +## Commands and Syntax +```bash +# Query by partition key only +aws dynamodb query \ + --table-name Thread \ + --key-condition-expression "ForumName = :name" \ + --expression-attribute-values '{":name":{"S":"Amazon DynamoDB"}}' + +# Query by partition key + sort key equality +aws dynamodb query \ + --table-name Thread \ + --key-condition-expression "ForumName = :name and Subject = :sub" \ + --expression-attribute-values file://values.json + +# Query with begins_with on sort key +aws dynamodb query \ + --table-name Reply \ + --key-condition-expression "Id = :id and begins_with(ReplyDateTime, :dt)" \ + --expression-attribute-values file://values.json +``` + +Expression attribute values can be inline JSON or loaded from a file with `file://`. + +## Relationships +- **FilterExpression**: Applied *after* key condition and 1 MB limit — does not reduce data read, only data returned. +- **ProjectionExpression**: Controls which attributes are returned, also applied after the 1 MB read. +- **Expression attribute names/values**: Placeholder mechanisms (`#name`, `:value`) used in all expression types. +- **Pagination** (`LastEvaluatedKey`): Required when results exceed 1 MB. +- **Secondary indexes**: Key condition expressions work identically on GSIs and LSIs. +- **Scan vs Query**: Scan reads entire table; Query uses key conditions for efficient reads. + +## Exam-Relevant Points +- The **1 MB limit applies before** filter and projection expressions — a common trick question. +- Partition key condition **must be equality only** (`=`); range operators are only for the sort key. +- `begins_with` is available for sort keys but **not** `contains` — `contains` is only for filter expressions. +- `ScanIndexForward = false` reverses sort order (descending) — the parameter name is counterintuitive. +- Non-key attributes **cannot** appear in `KeyConditionExpression`; they go in `FilterExpression`. +- Query **always returns a result set**, even if empty (never returns null). + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-QueryOtherhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-QueryOtherhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ddba16915a289fa4cc8527293fea10fcbae7927b --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-QueryOtherhtml.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.Other.html +source: sources/amazondynamodb-latest-developerguide-QueryOtherhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:12 + + + +## Overview + +This page covers additional operational aspects of DynamoDB's `Query` API beyond basic usage: limiting result set size, understanding item count metrics (`ScannedCount` vs `Count`), how read capacity units (RCUs) are consumed by queries, and controlling read consistency. + +## Key Concepts + +- **`Limit` parameter** controls the maximum number of items *read* (not returned) — filter expressions are applied *after* the limit, so fewer items may be returned than the limit value. +- **`ScannedCount`** = items matching the key condition (before filter); **`Count`** = items remaining after filter. They are equal when no filter is used. +- Query results are **paginated at 1 MB** — `ScannedCount` and `Count` in a single response are partial; you must aggregate across pages. +- **RCU consumption** is based on items read and their size, **not** on data returned — projection expressions and filter expressions do not reduce RCU cost. +- RCU source depends on what you query: **table** → table's RCUs; **GSI** → index's RCUs; **LSI** → base table's RCUs. +- One RCU = one strongly consistent read/sec (or two eventually consistent reads/sec) for items up to 4 KB. +- Empty or sparse tables may incur additional RCUs beyond the data queried. +- Queries are **eventually consistent by default**. + +## Commands and Syntax + +- **Limit results:** Set `Limit` parameter (e.g., `Limit=6`) in the Query request. +- **Get consumed capacity:** Set `ReturnConsumedCapacity` to: + - `NONE` (default) — no capacity data + - `TOTAL` — aggregate RCUs consumed + - `INDEXES` — RCUs per table and index accessed +- **Strongly consistent read:** Set `ConsistentRead=true` in the Query request. + +## Relationships + +- **Pagination** — ties to `Query.Pagination` (multiple Query calls needed for results >1 MB). +- **Read consistency** — ties to `HowItWorks.ReadConsistency` (eventually vs strongly consistent). +- **Filter expressions** — interact with `Limit` and `ScannedCount`/`Count`; filters don't reduce RCUs. +- **Capacity planning** — GSI has its own provisioned capacity; LSI shares with the base table. +- **Projection expressions** — do not affect RCU consumption. + +## Exam-Relevant Points + +- **Filters do not reduce RCUs** — DynamoDB reads items first, then filters; you pay for all items read. +- **`Limit` caps items read, not items returned** — a query with `Limit=6` and a filter may return fewer than 6 items. +- **LSI queries consume base table capacity; GSI queries consume index capacity** — critical for capacity planning. +- **1 MB page size limit** applies to Query results; must paginate for larger result sets. +- **`ConsistentRead=true`** enables strongly consistent reads (doubles RCU cost vs eventually consistent). +- **`ReturnConsumedCapacity=INDEXES`** gives per-index capacity breakdown — useful for debugging hot partitions. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-QueryPaginationhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-QueryPaginationhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3fa1206707751b8db019359a135807302411a7a1 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-QueryPaginationhtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.Pagination.html +source: sources/amazondynamodb-latest-developerguide-QueryPaginationhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:12 + + + +## Overview +This page explains how DynamoDB paginates `Query` operation results, returning data in pages of up to 1 MB each, and how to iterate through all pages using `LastEvaluatedKey` and `ExclusiveStartKey`. + +## Key Concepts +- **Query results are paginated** in pages of **1 MB or less** +- **`LastEvaluatedKey`** — returned in the response when more pages exist; contains the key of the last item evaluated +- **`ExclusiveStartKey`** — request parameter that tells DynamoDB where to resume; set to the previous response's `LastEvaluatedKey` +- **End of results** — indicated by the **absence** of `LastEvaluatedKey` in the response (empty/null) +- A non-empty `LastEvaluatedKey` does **not necessarily** mean more data exists — the only definitive signal that you've reached the end is when it is empty +- The **`Limit` parameter** restricts the number of items per page (distinct from the 1 MB size limit) +- AWS SDKs provide higher-level abstractions (e.g., iterators) that handle pagination automatically + +## Commands and Syntax +**CLI paginated query example:** +```bash +aws dynamodb query --table-name Movies \ + --projection-expression "title" \ + --key-condition-expression "#y = :yyyy" \ + --expression-attribute-names '{"#y":"year"}' \ + --expression-attribute-values '{":yyyy":{"N":"1993"}}' \ + --page-size 5 \ + --debug +``` +- `--page-size` limits items per page (CLI-level control) +- `--debug` shows raw request/response bodies including `LastEvaluatedKey` + +**Pagination algorithm:** +1. Execute `Query` +2. Check response for `LastEvaluatedKey` +3. If present → issue new `Query` with `ExclusiveStartKey` set to that value +4. If absent → all results retrieved + +## Relationships +- **Query operations** — pagination is a core mechanic of the Query API +- **Scan operations** — use the same `LastEvaluatedKey`/`ExclusiveStartKey` pagination pattern +- **`Limit` parameter** — works alongside the 1 MB page size to control result set size +- **AWS SDKs** — abstract pagination via iterators and paginators (boto3 paginators, Java iterators, etc.) + +## Exam-Relevant Points +- The **1 MB page size limit** is a hard limit per Query response +- `LastEvaluatedKey` being **empty/absent** is the **only** reliable way to know you've reached the end of results +- `LastEvaluatedKey` non-empty does **not guarantee** additional data — it just means you need to check +- To paginate: pass `LastEvaluatedKey` from the response as `ExclusiveStartKey` in the next request +- `Limit` controls **item count** per page; the 1 MB constraint is separate and applies regardless + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-Queryhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-Queryhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b519cc812e20ea84ad8febd5507334ad6bec07ca --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-Queryhtml.md @@ -0,0 +1,40 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.html +source: sources/amazondynamodb-latest-developerguide-Queryhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:12 + + + +## Overview +The Query API operation in Amazon DynamoDB retrieves items from a table based on primary key values, requiring a partition key value and optionally accepting a sort key with a comparison operator to refine results. + +## Key Concepts +- **Query** requires the partition key attribute name and a single value for that attribute +- Returns **all items** matching the specified partition key value +- Sort key is **optional** — can be used with a comparison operator to narrow results +- Query operates on a **single partition key value** (unlike Scan, which reads the entire table) + +## Commands and Syntax +- API operation: `Query` +- Required parameter: partition key attribute + value +- Optional parameter: sort key attribute + comparison operator +- See `API_Query.html` in the API Reference for full request syntax and response parameters + +## Relationships +- **Key Condition Expressions**: Define which items to return based on partition key and sort key conditions +- **Filter Expressions**: Applied after Query retrieves items, further narrowing results (but does not reduce consumed capacity) +- **Pagination**: Query results may be paginated; applications must handle multi-page responses +- Contrast with **Scan**: Query is targeted (single partition key), Scan reads every item in the table +- Related to **secondary indexes** (GSI/LSI): Query can also be run against indexes, not just base tables + +## Exam-Relevant Points +- Query **always requires a partition key value** — you cannot Query without one +- Filter expressions are applied **after** the read, so they do **not** reduce read capacity consumption +- Query is significantly more efficient than Scan for targeted lookups +- Results are automatically sorted by sort key value (ascending by default, reversible with `ScanIndexForward=false`) +- Query can be used on both tables and secondary indexes + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-RedshiftforDynamoDB-zero-etlhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-RedshiftforDynamoDB-zero-etlhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d51c44a2bb1ca23aad1546e0fac29cc2b3fe7e1e --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-RedshiftforDynamoDB-zero-etlhtml.md @@ -0,0 +1,60 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/RedshiftforDynamoDB-zero-etl.html +source: sources/amazondynamodb-latest-developerguide-RedshiftforDynamoDB-zero-etlhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:13 + + + +## Overview + +DynamoDB zero-ETL integration with Amazon Redshift is a fully-managed feature that automatically replicates DynamoDB table data into an Amazon Redshift database, enabling SQL-based analytics without building custom ETL pipelines. After an initial full export, incremental updates replicate every 15–30 minutes using DynamoDB incremental exports, with no performance impact on the source DynamoDB table. + +## Key Concepts + +- **Zero-ETL**: Eliminates the need to build, maintain, or manage extract-transform-load pipelines between DynamoDB and Redshift +- **Initial replication**: Full table export to populate the Redshift database; duration depends on table size +- **Incremental sync**: Updates replicate every **15–30 minutes** via DynamoDB incremental exports +- **No performance impact**: Analytics queries in Redshift do not affect DynamoDB table performance +- **Resource-based policy required**: A policy must be attached directly to the DynamoDB table granting `redshift.amazonaws.com` the actions `ExportTableToPointInTime`, `DescribeTable`, and `DescribeExport` +- **Same-account shortcut**: "Fix it for me" option auto-applies required resource policies when source and target are in the same account +- **Cross-account**: Requires manual resource policy configuration on both the DynamoDB table and the Redshift namespace + +## Commands and Syntax + +**Resource-based policy on DynamoDB table (cross-account)**: +- Required actions: `dynamodb:ExportTableToPointInTime`, `dynamodb:DescribeTable`, `dynamodb:DescribeExport` +- Principal: `redshift.amazonaws.com` +- Conditions: `aws:SourceAccount` and `aws:SourceArn` scoped to the Redshift account/integration ARN + +**Identity-based policy for integration creator**: +- DynamoDB actions: `ListTables`, `GetResourcePolicy`, `PutResourcePolicy`, `UpdateContinuousBackups` +- Redshift actions: `CreateIntegration`, `ModifyIntegration`, `DeleteIntegration`, `DescribeIntegrations`, `CreateInboundIntegration` + +**Identity-based policy for Redshift namespace administrator**: +- Redshift actions: `PutResourcePolicy`, `DeleteResourcePolicy`, `GetResourcePolicy`, `DescribeInboundIntegrations` + +**KMS key policy (if table uses customer-managed KMS)**: +- Action: `kms:Decrypt` for principal `redshift.amazonaws.com`, conditioned on source account and integration ARN + +## Relationships + +- **Point-in-Time Recovery (PITR)**: Must be enabled on the source DynamoDB table — this is a hard prerequisite +- **DynamoDB resource-based policies**: Integration relies on the resource-based policy feature for cross-service authorization +- **DynamoDB incremental exports**: The underlying mechanism for ongoing replication +- **AWS KMS**: Encryption key policy configuration needed when tables use customer-managed keys +- **Amazon Redshift / Redshift Serverless**: Target can be either a provisioned cluster or serverless namespace (ARN prefix differs) + +## Exam-Relevant Points + +- PITR **must be enabled** on the source table — without it, the integration cannot be created +- Source and target must be in the **same AWS Region** +- Incremental replication interval is **15–30 minutes** (not real-time) +- Source table encryption must use **Amazon-owned key** or **customer-managed KMS key** — **AWS managed key is not supported** +- The integration uses **resource-based policies** (not just IAM identity policies) on the DynamoDB table +- Cross-account integrations require **manual** resource policy setup; same-account can use "Fix it for me" +- Analytics queries run in Redshift and do **not consume DynamoDB read capacity** + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataExportOutputhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataExportOutputhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..dc13a0a3c5aaa2c74c59db4061a8c1f4917982d0 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataExportOutputhtml.md @@ -0,0 +1,76 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataExport.Output.html +source: sources/amazondynamodb-latest-developerguide-S3DataExportOutputhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:13 + + + +## Overview + +This page describes the output format of DynamoDB table exports to Amazon S3, covering both **full exports** and **incremental exports**. It details the manifest files (summary and files manifests), data file formats (DynamoDB JSON and Amazon Ion), and the directory structure in S3. For incremental exports, it explains how insert, update, and delete operations are represented using new/old image view types. + +## Key Concepts + +- **Export output location**: Files are saved under `export-prefix/AWSDynamoDB/ExportId/` in the specified S3 bucket +- **ExportId**: Unique service-generated token preventing overwrites when multiple exports share the same bucket and prefix +- **Manifest files**: Two manifest files plus their checksums are created per export: + - `manifest-summary.json` — metadata about the export job (ARN, times, item count, format, export type) + - `manifest-files.json` — JSON Lines format listing each data file with item count, md5 checksum, etag, and S3 key +- **`_started` file**: Empty file created to verify bucket write permissions; safe to delete +- **Data partitioning**: At least 1 file per DynamoDB partition (empty partitions get empty files); items in each file belong to one partition's hashed keyspace +- **Two export formats**: DynamoDB JSON and Amazon Ion; both are compressed (`.json.gz`) and use newline-delimited items +- **Full vs. incremental export directory structure**: + - Full: data files live under `ExportId/data/` + - Incremental: data files live in a shared `AWSDynamoDB/data/` folder; manifest files remain under each ExportId +- **DynamoDB JSON format**: Standard marshalled JSON with type descriptors (`"S"`, `"N"`, `"BOOL"`, `"SS"`, etc.), JSON Lines delimited +- **Amazon Ion format**: Superset of JSON; each line starts with `$ion_1_0` version marker; DynamoDB sets use Ion type annotations (`$dynamodb_SS`, `$dynamodb_NS`, `$dynamodb_BS`) +- **DynamoDB-to-Ion type mapping**: S→string, BOOL→bool, N→decimal, B→blob, Sets→annotated list, List→list, Map→struct +- **Incremental export view types**: + - **New images only**: Insert = Keys + NewImage; Update = Keys + NewImage; Delete = Keys only + - **New and old images**: Insert = Keys + NewImage; Update = Keys + NewImage + OldImage; Delete = Keys + OldImage + - Insert followed by delete within the same window produces **no output** +- **WriteTimestampMicros**: Metadata timestamp based on internal system clock (may differ from application clock) +- **Incremental manifest-summary.json** includes additional fields: `exportFromTime`, `exportToTime`, `outputView`, `exportType: "INCREMENTAL_EXPORT"` + +## Commands and Syntax + +No CLI commands on this page — it documents output format only. Requesting exports is covered in the linked [export request](./S3DataExport_Requesting.html) page. + +**S3 path structure (full export)**: +``` +bucket/prefix/AWSDynamoDB/ExportId/manifest-summary.json +bucket/prefix/AWSDynamoDB/ExportId/manifest-files.json +bucket/prefix/AWSDynamoDB/ExportId/data/*.json.gz +``` + +**S3 path structure (incremental export)**: +``` +bucket/prefix/AWSDynamoDB/ExportId/manifest-*.json (per export) +bucket/prefix/AWSDynamoDB/data/*.json.gz (shared across exports) +``` + +## Relationships + +- **Export requesting**: Complements the [S3DataExport_Requesting](./S3DataExport_Requesting.html) page which covers how to initiate exports +- **S3**: Export destination; requires write permissions (validated by `_started` file) +- **S3 SSE**: Exports support AES256 and KMS encryption (`s3SseAlgorithm`, `s3SseKmsKeyId`) +- **Athena / AWS Glue**: Can automatically parse the DynamoDB JSON (JSON Lines) export format +- **DynamoDB Streams**: Incremental exports provide similar change-tracking (insert/update/delete) but as a batch S3-based alternative +- **Point-in-time recovery (PITR)**: Must be enabled for exports; `exportTime` reflects the PITR snapshot time + +## Exam-Relevant Points + +- Exports support **two formats**: DynamoDB JSON and Amazon Ion — know the difference +- Data files are **gzip-compressed** regardless of format +- Incremental exports store data in a **shared `data/` folder** (not under ExportId), unlike full exports +- An item **inserted and deleted within the same incremental window** produces no output +- **Old images** are only available with the "New and old images" view type; "New images only" omits OldImage on updates and deletes +- The `manifest-files.json` uses **JSON Lines** format (not standard JSON array) +- Each data file contains items from a **single partition's hashed keyspace** +- The `WriteTimestampMicros` uses an **internal system clock**, not the application clock +- Ion uses type annotations like `$dynamodb_SS` to represent DynamoDB set types + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataExport_Requestinghtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataExport_Requestinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..72c4ea5780566c1d45be5d10e392988e6691aaa7 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataExport_Requestinghtml.md @@ -0,0 +1,91 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataExport_Requesting.html +source: sources/amazondynamodb-latest-developerguide-S3DataExport_Requestinghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:14 + + + +## Overview +This page covers how to export DynamoDB table data to Amazon S3 buckets for analytics and querying with services like Athena, Glue, SageMaker, EMR, and Lake Formation. It details two export types (full and incremental), prerequisites including PITR and IAM permissions, and provides step-by-step instructions via Console, CLI, and SDKs. + +## Key Concepts +- **Full export**: Exports a complete table snapshot from any point within the PITR window +- **Incremental export**: Exports only changes (inserts, updates, deletes) between two specified times within the PITR window; output is compacted to show only the final state of each item (no duplicates) +- **PITR requirement**: Point-in-time recovery must be enabled on the table; exports can only target times within the configured `RecoveryPeriodInDays` +- **Export formats**: DynamoDB JSON or Amazon Ion +- **Encryption**: Default is SSE-S3 (AES256); optionally use AWS KMS, but the KMS key must be in the same Region as the destination S3 bucket +- **Requester pays buckets are NOT supported** +- **Transactional consistency**: Exports are NOT transactionally consistent — transactions can be torn across exports. However, exports are eventually consistent; contiguous exports will capture all changes without duplicates +- **Export metadata retention**: Export task metadata is retained for 90 days; S3 objects persist according to bucket policies — DynamoDB never deletes exported objects +- **Export statuses**: PENDING → COMPLETED or FAILED (with `failure_message` and `failure_reason`) +- **Incremental export constraints**: Minimum duration 15 minutes, maximum 24 hours; start time is inclusive, end time is exclusive +- **Export view types** (incremental only): "New and old images" (default) or "New images only" +- **Cross-account exports**: Require `--s3-bucket-owner` flag and a bucket policy granting the exporter's principal write access + +## Commands and Syntax + +**Enable PITR (prerequisite):** +```bash +aws dynamodb update-continuous-backups \ + --table-name MusicCollection \ + --point-in-time-recovery-specification PointInTimeRecoveryEnabled=True +``` + +**Full export:** +```bash +aws dynamodb export-table-to-point-in-time \ + --table-arn arn:aws:dynamodb:us-west-2:111122223333:table/MusicCollection \ + --s3-bucket ddb-export-musiccollection-9012345678 \ + --s3-prefix 2020-Nov \ + --export-format DYNAMODB_JSON \ + --export-time 1604632434 \ + --s3-bucket-owner 9012345678 \ + --s3-sse-algorithm AES256 +``` + +**Incremental export:** +```bash +aws dynamodb export-table-to-point-in-time \ + --table-arn arn:aws:dynamodb:REGION:ACCOUNT:table/TABLENAME \ + --s3-bucket BUCKET --s3-prefix PREFIX \ + --incremental-export-specification ExportFromTime=1693569600,ExportToTime=1693656000,ExportViewType=NEW_AND_OLD_IMAGES \ + --export-type INCREMENTAL_EXPORT +``` + +**List past exports:** +```bash +aws dynamodb list-exports \ + --table-arn arn:aws:dynamodb:us-east-1:111122223333:table/ProductCatalog +``` + +**Describe a specific export:** +```bash +aws dynamodb describe-export \ + --export-arn arn:aws:dynamodb:us-east-1:111122223333:table/ProductCatalog/export/01695353076000-a1b2c3d4 +``` + +**Required IAM permissions:** `dynamodb:ExportTableToPointInTime`, `s3:AbortMultipartUpload`, `s3:PutObject`, `s3:PutObjectAcl` + +## Relationships +- **PITR**: Hard dependency — exports require PITR to be enabled and operate within the PITR recovery window +- **S3**: Destination for all exports; cross-account requires bucket policies +- **KMS**: Optional encryption for source table or destination bucket; key must be in same Region as S3 bucket +- **Analytics services**: Exported data is consumed by Athena, Glue, SageMaker, EMR, Lake Formation +- **DynamoDB Streams**: Incremental exports provide a complementary mechanism to Streams for change capture, but are batch-oriented rather than real-time +- **Export output format**: Connects to the S3DataExport.Output topic for understanding the exported file structure + +## Exam-Relevant Points +- PITR **must** be enabled before requesting any export; without it, `PointInTimeRecoveryUnavailableException` is thrown +- Exports are **not transactionally consistent** but are **eventually consistent** across contiguous exports +- Incremental export period: **minimum 15 minutes, maximum 24 hours** +- KMS key for export encryption must be in the **same Region as the destination S3 bucket** +- Export metadata expires after **90 days**, but S3 objects are never deleted by DynamoDB +- Requester pays S3 buckets are **not supported** +- Revoking S3 permissions during an in-progress export results in **partial files** +- Cross-account exports require both the `--s3-bucket-owner` CLI flag and a bucket policy on the target bucket +- The API action is `ExportTableToPointInTime` for both full and incremental exports (differentiated by `--export-type`) + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportBestPracticeshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportBestPracticeshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..242e8538baa29f6b4bfba6b146fcb26e83ddb08d --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportBestPracticeshtml.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.BestPractices.html +source: sources/amazondynamodb-latest-developerguide-S3DataImportBestPracticeshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:14 + + + +## Overview + +This page covers best practices for optimizing the import of data from Amazon S3 into DynamoDB tables, addressing object sizing, data ordering, compression, and indexing strategies to ensure successful and performant imports. + +## Key Concepts + +- **50,000 S3 object limit** — Each import job supports a maximum of 50,000 S3 objects; consolidate smaller files if needed. +- **Parallel import** — S3 objects are imported in parallel, so mid-sized objects are ideal (not too many small, not too few large). +- **Item packing guideline** — For items under 1 KB, target ~4,000,000 items per S3 object; scale down proportionally for larger items. +- **Rolling hot partition** — Occurs when sorted data causes sequential writes to hit one partition at a time, degrading performance. Randomize item order to avoid this. +- **Regional size limits** — Total S3 object size limit is **15 TB** in us-east-1, us-west-2, and eu-west-1; **1 TB** in all other regions (based on raw S3 object size, not uncompressed). +- **Compression** — Compressing data reduces raw S3 object size, helping fit within regional limits. +- **Small item penalty** — Items below 200 bytes average size may cause slower imports. +- **Immutability during import** — Modifying S3 objects during import causes failure with error `ObjectModifiedInS3DuringImport`. +- **GSI deferral trade-off** — Importing without GSIs can be faster, especially for low-cardinality partition keys. However, creating GSIs during import incurs **no write charges**, whereas adding them after import does. + +## Commands and Syntax + +No CLI commands on this page. Key error code to know: +- Error code: `ObjectModifiedInS3DuringImport` — triggered when source S3 object is modified mid-import. + +## Relationships + +- **S3 Import process** — References the import request workflow (`S3DataImport.Requesting`) +- **Partition key design** — Links to best practices for distributing write activity during data upload (`bp-partition-key-data-upload`) +- **Global Secondary Indexes (GSIs)** — Import behavior interacts with GSI creation timing and cost +- **DynamoDB provisioning/capacity** — Hot partitions relate to throughput distribution and capacity mode + +## Exam-Relevant Points + +- Max **50,000 S3 objects** per import job +- Regional total size limits: **15 TB** (us-east-1, us-west-2, eu-west-1) vs **1 TB** (all others) +- Sorted data causes **rolling hot partitions** — randomize to fix +- Creating a GSI **during** import has **no write charges**; creating one **after** import does incur write charges +- S3 objects must **not be modified** during an active import +- Compression reduces raw object size against the regional limit +- Optimal packing: ~4M items per object for sub-1KB items + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportFormathtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportFormathtml.md new file mode 100644 index 0000000000000000000000000000000000000000..667398553504412f2d9f12563888536fd89656ee --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportFormathtml.md @@ -0,0 +1,67 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Format.html +source: sources/amazondynamodb-latest-developerguide-S3DataImportFormathtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:14 + + + +## Overview +This page documents the three data formats supported by DynamoDB's S3 import feature: CSV, DynamoDB JSON, and Amazon Ion. It covers syntax rules, escaping conventions, type mapping, and delimiter requirements for each format. + +## Key Concepts +- **Three supported import formats**: CSV, DynamoDB JSON, and Amazon Ion +- **CSV limitations**: All columns other than hash/range keys and secondary index keys are imported as DynamoDB **strings** — no automatic type inference for numbers, booleans, etc. +- **CSV headers**: First line is treated as header by default; custom headers can be defined explicitly (must match column count), in which case the first line is imported as data +- **CSV double-quote escaping**: Double quotes must be escaped by doubling them (`""`) or the import fails +- **CSV heterogeneous items**: A single CSV file can hold multiple item types; empty columns are **omitted** from the item (not stored as empty strings) +- **DynamoDB JSON**: Uses standard marshalled JSON format (`{"Item": {"attr": {"S": "value"}}}`); newlines delimit items; newlines must not appear within an item object +- **DynamoDB JSON from exports**: Point-in-time export output is directly compatible as an import source +- **Amazon Ion**: A richly-typed, self-describing format; each line starts with an Ion version marker (`$ion_1_0`) +- **Ion type annotations**: Use `$dynamodb_SS`, `$dynamodb_NS`, `$dynamodb_BS` annotations on Ion lists to import as DynamoDB Sets + +## Commands and Syntax +**CSV escaping example:** +``` +"""123""","Women's Full ""Length"" Dress" +``` + +**DynamoDB JSON format (one item per line):** +``` +{"Item": {"Id": {"N": "103"}, "Title": {"S": "Book 103 Title"}, "InPublication": {"BOOL": false}}} +``` + +**Ion format with type annotations:** +``` +$ion_1_0 +{Item:{Authors:$dynamodb_SS::["Author1","Author2"], Id:103., PageCount:6d2, Title:"Book 103 Title"}} +``` + +**Ion to DynamoDB type mapping:** +| Ion Type | DynamoDB Type | +|----------|--------------| +| string | String (S) | +| bool | Boolean (BOOL) | +| decimal | Number (N) | +| blob | Binary (B) | +| list (with `$dynamodb_SS/NS/BS`) | Set (SS, NS, BS) | +| list | List (L) | +| struct | Map (M) | + +## Relationships +- **S3 Import feature**: These formats are inputs to the DynamoDB ImportTable API/operation +- **Point-in-time export**: DynamoDB JSON exports can be directly re-imported (round-trip compatibility) +- **Single-table design**: CSV heterogeneous item support aligns with DynamoDB single-table design patterns (composite keys like `USER#1`, `ORDER#2024-01-15`) +- **Data types**: Connects to DynamoDB data type system (S, N, B, BOOL, SS, NS, BS, L, M) + +## Exam-Relevant Points +- CSV imports store non-key attributes as **strings only** — if you need typed data (numbers, booleans, sets), use DynamoDB JSON or Ion format +- Empty CSV columns are **omitted**, not stored as empty strings — this preserves DynamoDB's schemaless model +- DynamoDB JSON items must be separated by newlines; newlines **cannot** appear within an item +- Point-in-time recovery exports are directly usable as import sources (DynamoDB JSON format) +- Ion uses type annotations (`$dynamodb_SS::`) to distinguish Sets from Lists — without annotations, Ion lists become DynamoDB Lists +- When choosing an import format: CSV is simplest but least expressive; DynamoDB JSON preserves full type fidelity; Ion offers rich typing with annotation support + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportHowItWorkshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportHowItWorkshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..07e12b266ba4fc43857419b41383119a69e8b9b3 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportHowItWorkshtml.md @@ -0,0 +1,51 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.HowItWorks.html +source: sources/amazondynamodb-latest-developerguide-S3DataImportHowItWorkshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:14 + + + +## Overview +DynamoDB's S3 import feature allows bulk loading data from Amazon S3 into a **new** DynamoDB table. It supports CSV, DynamoDB JSON, and Amazon Ion formats, with optional ZSTD or GZIP compression. Importantly, imports do not consume write capacity on the target table. + +## Key Concepts +- Import **always creates a new table** — importing into existing tables is not supported +- Supported formats: **CSV, DynamoDB JSON, Amazon Ion** +- Supported compression: **ZSTD, GZIP**, or uncompressed +- Source can be a single S3 object or multiple objects sharing the same prefix +- **Does not consume write capacity** on the new table — no need to provision extra capacity +- Pricing is based on **uncompressed size** of source data processed, including items that fail to load +- Cross-account imports are supported with proper S3 bucket permissions +- Cross-region imports are supported (source bucket and target table can be in different regions) +- Secondary indexes can be created with the table at import time +- Global table replicas can be added **after** import completes +- Duplicate primary keys cause overwrites — only the last item per key survives, and processed item count will differ from final table item count +- Import speed depends on: data size, format, compression, key distribution uniformity, and number of S3 objects +- **Skewed key distributions** (e.g., all data in one partition key value) significantly slow imports +- All import actions are logged in **AWS CloudTrail** + +## Commands and Syntax +No specific CLI commands on this page — see sub-topics for requesting imports. The process is available via console and API. + +## Relationships +- **Amazon S3**: Source data store; cross-account and cross-region access supported +- **Secondary Indexes (GSI/LSI)**: Can be defined at table creation during import +- **Global Tables**: Replicas can be added post-import +- **AWS CloudTrail**: Logs all import operations +- **DynamoDB Pricing**: Import has its own pricing model (uncompressed data size) +- Related sub-topics: requesting imports, format specifications, validation/quotas, best practices + +## Exam-Relevant Points +- Import creates a **new table only** — cannot import into an existing table +- **No write capacity consumed** during import (key cost optimization fact) +- Billing is on **uncompressed** source data size, even if data is compressed in S3 +- **Failed items are still billed** as part of the import +- Uniform key distribution imports faster than skewed distribution +- Duplicate keys result in **last-write-wins** overwrites, not errors +- Three supported formats: CSV, DynamoDB JSON, Amazon Ion +- Two supported compression types: ZSTD, GZIP + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportRequestinghtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportRequestinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..04d2d3e0d4af83cc33a3c2034f0308965b7e8a2c --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportRequestinghtml.md @@ -0,0 +1,76 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3DataImport.Requesting.html +source: sources/amazondynamodb-latest-developerguide-S3DataImportRequestinghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:15 + + + +## Overview + +This page covers how to import data from Amazon S3 into a **new** DynamoDB table using the console, CLI, CloudFormation, or API. It details the required IAM permissions, supported file formats (DynamoDB JSON, Amazon Ion, CSV), compression options, and how to monitor past imports. + +## Key Concepts + +- **Import creates a new table** — you cannot import into an existing table; the operation provisions a new one. +- **Source is always S3** — data must reside in an S3 bucket; the bucket can be in a different region or account. +- **Do not modify S3 objects during import** — changes can cause failure or cancellation. +- **Supported formats**: DynamoDB JSON, Amazon Ion, CSV. +- **CSV options**: customizable header (case-sensitive, must contain table keys) and delimiter (matches `[,;:|\t ]`). +- **Compression**: None, GZIP, or ZSTD. +- **Import metadata retained 90 days** — after that, `list-imports` no longer shows the task, but the table and S3 objects persist. +- **Primary Key and Sort Key must match attributes in the file** (case-sensitive) or import fails. +- **SSE-C encrypted S3 objects are not supported** — SSE-KMS is supported if the caller has decrypt permissions on the KMS key. +- **Cross-account imports** require the `S3BucketOwner` parameter set to the source account ID, plus an S3 bucket policy granting access. + +## Commands and Syntax + +**Import a CSV from S3:** +```bash +aws dynamodb import-table \ + --s3-bucket-source S3Bucket=bucket,S3KeyPrefix=prefix \ + --input-format CSV \ + --table-creation-parameters '{"TableName":"target-table","KeySchema":[{"AttributeName":"hk","KeyType":"HASH"}],"AttributeDefinitions":[{"AttributeName":"hk","AttributeType":"S"}],"BillingMode":"PAY_PER_REQUEST"}' \ + --input-format-options '{"Csv": {"HeaderList": ["hk", "title", "artist", "year_of_release"], "Delimiter": ";"}}' +``` + +**List past imports:** +```bash +aws dynamodb list-imports +``` + +**Describe a specific import:** +```bash +aws dynamodb describe-import \ + --import-arn arn:aws:dynamodb:us-east-1:123456789012:table/ProductCatalog/import/01234567890123-a1b2c3d4 +``` + +**Required IAM actions:** +- `dynamodb:ImportTable`, `dynamodb:DescribeImport` (scoped to table ARN) +- `dynamodb:ListImports` (resource `*`) +- `s3:GetObject`, `s3:ListBucket` (on source bucket and objects) +- CloudWatch Logs: `logs:CreateLogGroup`, `logs:CreateLogStream`, `logs:DescribeLogGroups`, `logs:DescribeLogStreams`, `logs:PutLogEvents`, `logs:PutRetentionPolicy` (on `aws-dynamodb/*` log group) + +## Relationships + +- **S3 Export → S3 Import**: When importing from a prior DynamoDB export, point to the `data/` subfolder (`s3://bucket/prefix/AWSDynamoDB//data/`), not the export prefix itself. +- **AWS KMS**: If table uses customer-managed encryption or S3 objects use SSE-KMS, the caller needs KMS decrypt permissions. KMS key must be in the same region as the destination S3 bucket. +- **CloudWatch Logs**: Import publishes debugging information to CloudWatch Logs; permissions are required upfront. +- **CloudFormation**: Imports can be initiated via `AWS::DynamoDB::Table` resource. +- **IAM**: Cross-account imports require both IAM identity policies and S3 bucket policies. + +## Exam-Relevant Points + +- Import always creates a **new** table (cannot import into an existing table). +- Table status is **"Creating"** during import and **not accessible** until status becomes **"Active"**. +- Import metadata is available for **90 days** via `list-imports`. +- **SSE-C is not supported**; SSE-KMS and SSE-S3 are supported. +- Cross-account: set the `S3BucketOwner` parameter to the bucket owner's account ID. +- CSV headers are **case-sensitive** and must include the table's key attributes. +- KMS key must be in the **same region** as the destination S3 bucket. +- Three compression options: **None, GZIP, ZSTD**. +- Three format options: **DynamoDB JSON, Amazon Ion, CSV**. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportValidationhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportValidationhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..56ffc6535bd291ed853b568b8d925d520710f5ba --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportValidationhtml.md @@ -0,0 +1,69 @@ +# Overview + +**Date:** 2026-03-11 +**Time:** 23:15 + + + +## Overview + +This page covers the quotas, validation rules, and troubleshooting procedures for DynamoDB's Import from Amazon S3 feature. It details concurrent import limits, the three categories of import errors (API validation, data validation, configuration), how to validate source S3 objects before import, and common failure scenarios with their fixes. + +## Key Concepts + +- **Import quotas**: Up to 50 concurrent import jobs per account in all regions; total source size limit is **15 TB** in us-east-1, us-west-2, eu-west-1, and **1 TB** in all other regions +- **Per-job object limit**: Each import job supports up to **50,000 S3 objects** +- **Duplicate key behavior**: If multiple items share the same key, they overwrite each other in **random order** — only one remains; duplicates are **not counted as errors** and not logged to CloudWatch +- **Three error categories**: + - **API validation errors** — permissions issues, missing/invalid parameters on the `ImportTable` request + - **Data validation errors** — unparsable objects, wrong format (e.g., specifying DYNAMODB_JSON but data isn't), schema/key mismatches; import skips failed items and continues + - **Configuration errors** — workflow-level permission failures (S3 access, CloudWatch Logs, KMS keys); checked after request acceptance +- **Failed import with data validation**: Status set to `FAILED` with `FailureCode: ItemValidationError`; table is created but may be empty or partially filled +- **Failed import before data processing** (e.g., bucket doesn't exist): Table is **not created** +- **S3 object file extensions are irrelevant** — the `InputFormat` parameter in the API call takes precedence + +## Commands and Syntax + +**Describe an import job:** +```bash +aws dynamodb describe-import --import-arn arn:aws:dynamodb:us-east-1:ACCOUNT:table/target-table/import/IMPORT_ID +``` + +**Start an import:** +```bash +aws dynamodb import-table \ + --s3-bucket-source S3Bucket=my-import-source,S3KeyPrefix=import-test.csv \ + --input-format CSV \ + --table-creation-parameters '{"TableName":"target-table","KeySchema":[{"AttributeName":"pk","KeyType":"HASH"}],"AttributeDefinitions":[{"AttributeName":"pk","AttributeType":"S"}],"BillingMode":"PAY_PER_REQUEST"}' +``` + +**Retrieve error logs:** +```bash +aws logs get-log-events \ + --log-group-name /aws-dynamodb/imports \ + --log-stream-name IMPORT_ID/error +``` + +**Log stream naming**: `/aws-dynamodb/imports` log group, stream name is `/error` + +## Relationships + +- **S3** — source bucket for import data; permissions and bucket existence are validated +- **CloudWatch Logs** — error details emitted to `/aws-dynamodb/imports` log group; requires permissions +- **AWS KMS** — permissions needed if S3 objects are encrypted +- **CloudTrail** — configuration error failure messages may include request IDs for CloudTrail investigation +- **DynamoDB table creation** — import creates the target table; if table already exists, import fails with `ResourceInUseException` +- **Service Quotas** — import limits tie into broader DynamoDB service quotas + +## Exam-Relevant Points + +- The 15 TB total import size limit only applies to **three regions** (us-east-1, us-west-2, eu-west-1); all others are 1 TB +- Duplicate keys are silently overwritten in **random order** — not errors, not logged +- All S3 objects under a prefix must share the **same format and compression type** +- File extensions (.csv, .json, .gz) are **ignored** — the API parameter controls format interpretation +- A sort key is **optional** for imports, but the primary key is required in every item +- `ResourceInUseException` means the target table already exists — you must use a different name +- When an import fails before data processing begins, **no table is created**; when it fails after processing starts, a **partially-filled table may remain** +- Supported formats: DYNAMODB_JSON, DYNAMODB_ION, CSV +- Supported compression: GZIP, ZSTD, NONE + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-SecondaryIndexeshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-SecondaryIndexeshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b09f86eaaf5626473e6a9b1558cbc72c6684898b --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-SecondaryIndexeshtml.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/SecondaryIndexes.html +source: sources/amazondynamodb-latest-developerguide-SecondaryIndexeshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:16 + + + +## Overview +This page explains DynamoDB secondary indexes — alternate data structures that allow querying table data using attributes other than the primary key. DynamoDB supports two types: Global Secondary Indexes (GSIs) and Local Secondary Indexes (LSIs), each with distinct characteristics around key schema, consistency, throughput, and lifecycle management. + +## Key Concepts +- A **secondary index** contains a subset of attributes from a table plus an alternate key, enabling `Query` and `Scan` operations on non-primary-key attributes +- Every secondary index is associated with exactly one **base table** and is automatically maintained by DynamoDB when items change +- **Global Secondary Index (GSI)**: partition key and optional sort key can differ from base table; queries span all partitions; stored in its own partition space; scales independently +- **Local Secondary Index (LSI)**: same partition key as base table, different sort key; scoped to a single partition key value; stored with the base table +- **Projected attributes**: attributes copied from the base table into the index; table primary key attributes are always projected automatically +- Index key attributes must be top-level scalar types: `String`, `Number`, or `Binary` — documents and sets are not allowed +- Indexes inherit the base table's **table class** and **capacity mode** +- Index storage size and item counts (via `DescribeTable`) refresh approximately every **6 hours**, not in real time +- Deleting a table deletes all its associated indexes +- Cross-account access for secondary index **scan** operations is **not supported** with resource-based policies + +## Commands and Syntax +- **Create indexes**: defined at table creation time (both GSI and LSI) or added later (GSI only) +- **Query/Scan an index**: specify both the base table name and the index name, plus desired attributes and any filter/condition expressions +- **DescribeTable**: returns name, storage size, and item counts for all secondary indexes on a table +- **Sequential table creation**: when creating multiple tables with secondary indexes, create them one at a time (wait for `ACTIVE` status) or DynamoDB returns `LimitExceededException` + +## Relationships +- **GSI details**: [Using Global Secondary Indexes](./GSI.html) — covers GSI-specific behavior, online operations (add/delete GSIs on existing tables) +- **LSI details**: [Local Secondary Indexes](./LSI.html) — covers LSI-specific constraints and strong consistency support +- **Capacity modes**: indexes use the same capacity mode as the base table ([capacity-mode](./capacity-mode.html)) +- **Table classes**: indexes use the same table class ([HowItWorks.TableClasses](./HowItWorks.TableClasses.html)) +- **Best practices**: [bp-indexes](./bp-indexes.html) +- **Quotas**: [ServiceQuotas](./ServiceQuotas.html) +- **Resource-based policies**: [access-control-resource-based](./access-control-resource-based.html) + +## Exam-Relevant Points + +| Topic | GSI | LSI | +|-------|-----|-----| +| **Default quota** | Up to **20** per table | Up to **5** per table | +| **Key schema** | Simple or composite; any scalar attributes | Must be composite; partition key = base table's partition key | +| **Size limit** | No size restrictions | **10 GB** per partition key value | +| **Lifecycle** | Can be added/removed after table creation | Must be created with the table; **cannot be added or removed later** | +| **Read consistency** | **Eventual consistency only** | Eventual **or strong** consistency | +| **Throughput** | Has **own** independent provisioned throughput | Consumes throughput from the **base table** | +| **Attribute fetching** | Can only return projected attributes; **no table fetches** | Can request non-projected attributes; DynamoDB **auto-fetches** from table | +| **Query scope** | Across all partitions (global) | Single partition key value (local) | + +- GSI writes consume capacity from the **index**, not the base table; LSI writes consume from the **base table** +- A GSI associated with **global tables** consumes **write capacity units**; an LSI with global tables consumes **replicated write capacity units** + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-ServiceQuotashtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-ServiceQuotashtml.md new file mode 100644 index 0000000000000000000000000000000000000000..516f94e44938f6415cde9089094e082a364ad5ff --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-ServiceQuotashtml.md @@ -0,0 +1,65 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ServiceQuotas.html +source: sources/amazondynamodb-latest-developerguide-ServiceQuotashtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:16 + + + +## Overview + +This page documents the default quotas (formerly called limits) for Amazon DynamoDB, applied on a per-Region basis. It covers throughput limits for both provisioned and on-demand capacity modes, table limits, secondary index limits, streaming limits, and quotas for import/export, backup/restore, and Contributor Insights. Most quotas are adjustable via service quota increase requests. + +## Key Concepts + +- **All size measurements use binary units**: 1 KB = 1024 bytes, 1 MB = 1024 KB, etc. +- **All capacity/request unit quotas are measured per second** +- **Account-level throughput quotas** (provisioned mode only): 80,000 RCU and 80,000 WCU across all tables and GSIs in a Region +- **Table-level throughput quotas**: 40,000 RCU/RRU and 40,000 WCU/WRU per table (applies to both provisioned and on-demand) +- **On-demand mode has no account-level throughput quota** — only per-table limits apply +- **Default quotas are not hard maximums** — they can be increased via service quota requests +- **Table size is unlimited** — no practical limit on items or bytes +- **Maximum tables per account per Region**: 2,500 (can increase to 10,000; beyond that, use multiple accounts) +- **Provisioned capacity decrease limit**: 4 available at start of day (UTC), +1 per hour, max 4 banked at any time — up to 27 decreases per day. Table and GSI decrease limits are decoupled but a single request touching both must satisfy both limits. +- **Reserved capacity quota**: 1,000,000 active provisioned capacity units (combined RCU + WCU) per account +- **Secondary indexes**: max 5 LSIs per table, default 20 GSIs per table +- **Projected attributes**: max 100 across all secondary indexes (only for `INCLUDE` projection type; same attribute in two indexes counts twice) +- **DynamoDB Streams**: max 2 simultaneous readers per shard (1 for global tables); 40,000 WCU per table with Streams enabled (provisioned mode) +- **S3 Import**: 50 concurrent jobs, 50,000 S3 objects per job; 15 TB total in us-east-1/us-west-2/eu-west-1, 1 TB elsewhere +- **S3 Export** (full or incremental): 300 concurrent jobs or 100 TB total; incremental window: 15 min to 24 hours +- **Backup/restore**: 50 concurrent restores / 50 TB (DynamoDB native); 50 concurrent / 25 TB (AWS Backup) +- **Global tables**: 400 MRSC tables; 10 TB backfill per account/Region/day for new replicas + +## Commands and Syntax + +- **Increase throughput**: `UpdateTable` operation (or Console) — can increase table and GSI throughput in a single call; takes effect after operation completes +- **Decrease throughput**: `UpdateTable` — subject to daily decrease quota (up to 27/day) +- **Request quota increase**: Via AWS Service Quotas console or AWS Support + +## Relationships + +- **Capacity modes** (`capacity-mode`): Quotas differ between provisioned and on-demand +- **Global tables** (`GlobalTables`): Have separate throughput quotas (MREC vs MRSC); replica creation requires global table quota ≥ per-table quota +- **Secondary indexes** (`GSI`, `LSI`): Subject to both count and projected-attribute quotas +- **DynamoDB Streams** (`Streams`): Imposes write capacity limits on provisioned tables +- **S3 Import/Export**: Separate concurrency and size quotas +- **AWS Backup**: Different restore quotas than native DynamoDB backup +- **CloudWatch Contributor Insights**: Subject to CloudWatch service quotas +- **Reserved Capacity**: Tied to provisioned mode billing optimization + +## Exam-Relevant Points + +- On-demand mode has **no account-level quota** — only per-table (40,000 RRU/WRU default) +- Provisioned capacity decreases are limited to **27 per day** (4 initial + 23 hourly), and table/GSI limits are **decoupled** +- Table size is **unlimited**; table count defaults to **2,500** per account per Region (max 10,000, then use multiple accounts) +- **5 LSIs** (hard limit, set at table creation) vs **20 GSIs** (default, adjustable) per table +- Projected attribute limit of **100** applies only to `INCLUDE` projections, not `KEYS_ONLY` or `ALL` +- DynamoDB Streams: **2 concurrent readers** per shard (1 for global tables) +- Global table replica backfill: **10 TB per account per Region per day** +- S3 import capacity varies by Region (15 TB in 3 major Regions, 1 TB elsewhere) +- Incremental export window: **minimum 15 minutes, maximum 24 hours** +- Reserved capacity quota: **1,000,000 combined RCU+WCU** per account + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-SettingUpDynamoWebServicehtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-SettingUpDynamoWebServicehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..aa4bcc2deace6315c49d7074def8e0b41029e022 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-SettingUpDynamoWebServicehtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/SettingUp.DynamoWebService.html +source: sources/amazondynamodb-latest-developerguide-SettingUpDynamoWebServicehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:16 + + + +## Overview +This page covers the initial setup steps required to use Amazon DynamoDB as a web service, including creating an AWS account, obtaining programmatic access credentials, configuring those credentials locally, and integrating DynamoDB with other AWS services. + +## Key Concepts +- **Three setup steps**: Sign up for AWS, get an access key (for programmatic access), configure credentials locally. +- **Console-only users** do not need an AWS access key — they can skip credential setup entirely. +- **AWS account root user** is created automatically at sign-up; it has full access to all services and resources. +- **Security best practice**: Assign administrative access to a non-root user; use root only for tasks that specifically require it. +- **Programmatic access** is required for AWS CLI, AWS SDKs, and AWS API usage — not needed for console-only interaction. +- **Temporary credentials are recommended** over long-term access keys for all user types (IAM users, workforce identity/IAM Identity Center users). +- **Long-term IAM credentials are explicitly "not recommended"** by AWS. + +## Commands and Syntax +- `aws configure` — automatically creates the credentials file with access key ID and secret access key. +- Credentials can also be set via: + - Manually creating the credentials file + - Environment variables +- No DynamoDB-specific commands on this page; setup is general AWS credential configuration. + +## Relationships +- **IAM** — root user, IAM users, and IAM Identity Center users are the access paths to DynamoDB. +- **AWS CLI** — primary programmatic interface; configured via `aws configure`. +- **AWS CloudFormation** — can provision DynamoDB tables as infrastructure-as-code. +- **AWS Backup** — integrates with DynamoDB for backup/restore. +- **AWS Lambda** — common event-driven integration pattern with DynamoDB (Streams → Lambda). +- **IAM Identity Center** — recommended path for workforce identity and temporary credentials. + +## Exam-Relevant Points +- Root user should **not** be used for day-to-day operations — only for tasks that require root access. +- **Temporary credentials are the recommended approach** for programmatic access; long-term access keys are discouraged. +- Console access does **not** require an access key. +- Three credential configuration methods: credentials file, `aws configure`, environment variables. +- DynamoDB integrates natively with CloudFormation, Lambda, AWS Backup, and IAM. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-SettingUphtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-SettingUphtml.md new file mode 100644 index 0000000000000000000000000000000000000000..815c00767afad0022be0ed99b0503ed6f8c08247 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-SettingUphtml.md @@ -0,0 +1,34 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/SettingUp.html +source: sources/amazondynamodb-latest-developerguide-SettingUphtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:17 + + + +## Overview +This page serves as a navigation hub for setting up DynamoDB, covering two deployment options: the DynamoDB web service (AWS-hosted) and DynamoDB Local (a downloadable version for local development and testing). + +## Key Concepts +- **DynamoDB Web Service**: The fully managed, cloud-hosted version running on AWS infrastructure. +- **DynamoDB Local**: A downloadable version that runs on your local computer, enabling offline development and testing without connecting to the AWS DynamoDB service. +- DynamoDB Local lets you write and test application code locally before deploying against the production web service. + +## Commands and Syntax +No commands on this page — it links to sub-pages for each setup path: +- `Setting up DynamoDB (web service)` — AWS account, IAM, credentials setup +- `Setting up DynamoDB local (downloadable version)` — local installation and configuration + +## Relationships +- **DynamoDB Local** → useful for local dev/test before deploying to the **DynamoDB web service** +- Connects to **IAM** (credentials/permissions needed for web service access) +- Connects to **AWS SDK configuration** (both versions are accessed via the same SDK APIs) + +## Exam-Relevant Points +- DynamoDB Local is for **development and testing only** — not a production deployment option. +- DynamoDB Local allows you to develop **without incurring any AWS charges** and without network connectivity. +- Both versions use the same application code/API — you can switch between local and web service by changing the endpoint configuration. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsApacheFlinkxmlhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsApacheFlinkxmlhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..6a524eba4990e9d5c2b57f2450bcb8ec2154bd73 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsApacheFlinkxmlhtml.md @@ -0,0 +1,38 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/StreamsApacheFlink.xml.html +source: sources/amazondynamodb-latest-developerguide-StreamsApacheFlinkxmlhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:17 + + + +## Overview +This page describes how to consume DynamoDB Streams records using Apache Flink, specifically through Amazon Managed Service for Apache Flink. It covers the integration between DynamoDB Streams and Apache Flink for real-time stream processing. + +## Key Concepts +- **DynamoDB Streams records can be consumed by Apache Flink** as a streaming data source +- **Amazon Managed Service for Apache Flink** is the AWS-managed offering for running Apache Flink workloads +- **Apache Flink** is an open-source stream processing framework for real-time data +- A dedicated **DynamoDB Streams connector for Apache Flink** exists to simplify integration +- Four common use cases: streaming ETL, event-driven applications, real-time analytics, interactive querying of data streams +- Additional use cases: log analytics, clickstream analytics, IoT, ad tech, gaming + +## Commands and Syntax +No commands or configuration syntax provided on this page. The external connector documentation is at the Apache Flink project site. + +## Relationships +- **DynamoDB Streams** → provides the change data capture (CDC) feed that Flink consumes +- **Amazon Managed Service for Apache Flink** → the managed runtime for Flink applications +- Alternative to **DynamoDB Streams with Lambda** or **DynamoDB Streams with KCL** for consuming stream records +- Related to **Kinesis Data Streams for DynamoDB** as another streaming integration path +- Integrates with other AWS services downstream via Flink's connector ecosystem + +## Exam-Relevant Points +- DynamoDB Streams can be consumed by Apache Flink — not just Lambda or KCL +- Amazon Managed Service for Apache Flink is the correct service name (formerly Kinesis Data Analytics for Apache Flink) +- The DynamoDB Streams connector is the specific component enabling this integration +- Key differentiator: use Flink over Lambda when you need complex stream processing (windowing, joins, stateful transformations) rather than simple per-record processing + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsKCLAdapterhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsKCLAdapterhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..f1072ba163458b2e47ab4da487b5f9694a82103a --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsKCLAdapterhtml.md @@ -0,0 +1,44 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.KCLAdapter.html +source: sources/amazondynamodb-latest-developerguide-StreamsKCLAdapterhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:17 + + + +## Overview +This page describes how to consume and process DynamoDB Streams records using the DynamoDB Streams Kinesis Adapter, which bridges DynamoDB Streams with the Kinesis Client Library (KCL). The adapter implements the Kinesis Data Streams interface, allowing developers to use KCL's abstractions (workers, record processors, checkpointing) to process DynamoDB stream records without writing low-level polling code. + +## Key Concepts +- **DynamoDB Streams Kinesis Adapter** — a library that implements the Kinesis Data Streams interface, redirecting KCL API calls to the DynamoDB Streams endpoint +- **KCL (Kinesis Client Library)** — provides abstractions (workers, record processors, checkpointing, shard balancing) over raw stream consumption +- DynamoDB Streams API is intentionally similar to Kinesis Data Streams API but **not 100% identical** — both have `ListStreams`, `DescribeStream`, `GetShards`, `GetShardIterator` +- **Worker** — the KCL runtime unit; requires stream descriptor, AWS credentials, and a record processor class +- Worker responsibilities: connect to stream, enumerate shards (including child shards of closed parents), coordinate shard assignments across workers, instantiate record processors, pull/push records, checkpoint, and rebalance on scaling events +- **Catch-up mode** — automatic GetRecords call rate scaling when processing lag exceeds a threshold (default 1 minute); scales by configurable multiplier (default 3x); enabled via `catchupEnabled` (default false) + +## Commands and Syntax +- No CLI commands; this is a Java library integration +- Install via the [GitHub repository](https://github.com/awslabs/dynamodb-streams-kinesis-adapter) +- Key configuration parameter: `catchupEnabled` (boolean, default false) — enables automatic call rate scaling during high throughput +- Recommended: **KCL version 3.x** with **AWS SDK for Java v2.x** +- KCL 1.x reaches end-of-support **January 30, 2026** + +## Relationships +- **DynamoDB Streams** → provides the raw change data capture stream +- **Kinesis Data Streams** → the adapter makes DynamoDB Streams consumable through Kinesis interfaces +- **KCL** → the consumer framework that the adapter plugs into +- **AWS Lambda** → alternative consumer for DynamoDB Streams (via triggers), covered separately +- **Shards** → shared concept between DynamoDB Streams and Kinesis; shards split and have parent-child relationships + +## Exam-Relevant Points +- The **recommended** way to consume DynamoDB Streams is via the Kinesis Adapter + KCL (not raw API calls) +- DynamoDB Streams API is **similar but not identical** to Kinesis Data Streams API +- KCL handles shard enumeration, load balancing across workers, and checkpointing automatically +- Catch-up mode default threshold is **1 minute** of lag, default scaling factor is **3x**, and it is **disabled by default** +- KCL 3.x with SDK v2.x is the current recommendation; KCL 1.x EOL is January 30, 2026 +- The adapter redirects KCL calls to the **DynamoDB Streams endpoint** transparently + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaBestPracticesWithDynamoDBhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaBestPracticesWithDynamoDBhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..242fed97255b469ce347781906f0c37836e77ec1 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaBestPracticesWithDynamoDBhtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.Lambda.BestPracticesWithDynamoDB.html +source: sources/amazondynamodb-latest-developerguide-StreamsLambdaBestPracticesWithDynamoDBhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:17 + + + +## Overview +This page covers best practices for using AWS Lambda functions as consumers of DynamoDB Streams, focusing on container reuse, initialization code placement, and idempotency requirements. + +## Key Concepts +- Lambda functions run in isolated **containers** (execution environments) +- The **handler** contains main business logic and runs once per invocation +- **Initialization code** runs once after container creation but before the first handler invocation — ideal for SDK clients and service connections +- AWS Lambda **may reuse containers** across invocations, but this is not guaranteed and not controllable +- DynamoDB Streams + Lambda does **not guarantee exactly-once delivery** — duplicates are possible +- Lambda function code must be **idempotent** to handle duplicate stream records safely + +## Commands and Syntax +No specific commands — this is a best-practices guide. Key architectural pattern: + +```javascript +// INITIALIZATION CODE (runs once per container) +const sns = new AWS.SNS(); // Reused across invocations + +// HANDLER (runs per invocation) +exports.handler = async (event) => { + // Process DynamoDB stream records here +}; +``` + +## Relationships +- **DynamoDB Streams** → triggers Lambda functions via event source mapping +- **Lambda container lifecycle** → affects connection management and resource initialization +- **Amazon SNS** → common downstream target from stream-triggered Lambda functions +- Related to Lambda best practices generally (connection pooling managed by Lambda runtime) + +## Exam-Relevant Points +- Instantiate AWS service clients **outside the handler** (in initialization code) to enable connection reuse +- Lambda manages connection pooling automatically — no need to implement it yourself +- DynamoDB Streams + Lambda can produce **duplicate records** — design for idempotency +- Container reuse is opportunistic and **not guaranteed** +- Initialization code runs only once per container lifetime, not once per invocation + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaTutorial2html.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaTutorial2html.md new file mode 100644 index 0000000000000000000000000000000000000000..e60be5c4b8044fa4e2646c9d67731939fcc94bc6 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaTutorial2html.md @@ -0,0 +1,88 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.Lambda.Tutorial2.html +source: sources/amazondynamodb-latest-developerguide-StreamsLambdaTutorial2html.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:18 + + + +## Overview + +This tutorial demonstrates how to use Lambda event filtering with DynamoDB Streams to selectively process only matching stream events. It covers filter expression syntax (FilterCriteria), comparison operators, and provides complete deployment examples using both CloudFormation and CDK (Python). + +## Key Concepts + +- **Lambda event filtering** allows you to define filter expressions that control which DynamoDB Stream events invoke your Lambda function, reducing unnecessary invocations +- **FilterCriteria** has three components: **metadata properties** (top-level event fields like `eventName`, `dynamodb`), **data properties** (nested under `NewImage` or `OldImage`), and **filter patterns** (the matching rules) +- Up to **5 filters** can be configured per DynamoDB Stream event source mapping +- Multiple filters are evaluated as **logical OR** — if any filter matches, the event is delivered +- Conditions **within** a single filter pattern are evaluated as **logical AND** +- When using batching windows, filters are applied to each new event before adding it to the current batch +- **Numeric comparisons don't work** for DynamoDB filter events because DynamoDB stores numbers as strings (e.g., `"quantity": {"N": "50"}`) + +## Commands and Syntax + +**Filter operators:** + +| Operator | Syntax | +|----------|--------| +| Equals | `{"state": {"S": ["FL"]}}` | +| Or (values) | `{"state": {"S": ["FL", "CA"]}}` | +| And (fields) | `{"state": {"S": ["FL"]}, "category": {"S": ["CHOCOLATE"]}}` | +| Not | `{"state": {"S": [{"anything-but": ["FL"]}]}}` | +| Exists | `{"homemade": {"S": [{"exists": true}]}}` | +| Not exists | `{"homemade": {"S": [{"exists": false}]}}` | +| Prefix | `{"PK": {"S": [{"prefix": "COMPANY"}]}}` | +| Null | `{"product_type": {"S": null}}` | +| Empty | `{"product_name": {"S": [""]}}` | + +**CloudFormation filter syntax:** +```yaml +FilterCriteria: + Filters: + - Pattern: '{"dynamodb": {"NewImage": {"state": {"S": ["FL"]}}}}' +``` + +**CDK filter syntax (Python):** +```python +event_subscription.add_property_override( + property_path="FilterCriteria", + value={"Filters": [{"Pattern": json.dumps( + {"dynamodb": {"NewImage": {"state": {"S": ["FL"]}}}} + )}]} +) +``` + +**CDK project setup:** +```bash +mkdir ddb_filters && cd ddb_filters +cdk init app --language python +source .venv/bin/activate +python -m pip install -r requirements.txt +cdk deploy +cdk destroy # cleanup +``` + +## Relationships + +- **DynamoDB Streams** — the event source being filtered +- **Lambda Event Source Mapping** (`AWS::Lambda::EventSourceMapping`) — where FilterCriteria is configured +- **CloudWatch Logs** — destination for Lambda function output; used to verify which events pass filters +- **IAM** — Lambda execution role needs `dynamodb:DescribeStream`, `GetRecords`, `GetShardIterator`, `ListStreams` permissions on the stream ARN +- **CloudFormation / CDK** — IaC approaches for deploying the filtered stream trigger +- Relates to Lambda event filtering docs (applies to other sources like SQS, Kinesis too) + +## Exam-Relevant Points + +- Maximum of **5 filters** per event source mapping +- Multiple filter patterns = **OR** logic; multiple conditions within one pattern = **AND** logic +- **Numeric comparison operators do NOT work** with DynamoDB stream events because numbers are stored as strings — this is a common gotcha +- Filter patterns must reference the correct DynamoDB attribute type wrapper (`{"S": ...}`, `{"N": ...}`) matching the DynamoDB data model +- Filters go on the **Event Source Mapping**, not on the Lambda function or the DynamoDB table +- `StreamViewType: NEW_AND_OLD_IMAGES` is required to filter on `NewImage` or `OldImage` data properties +- Lambda needs stream-specific IAM permissions (`dynamodb:DescribeStream`, `dynamodb:GetRecords`, `dynamodb:GetShardIterator`, `dynamodb:ListStreams`) +- `StartingPosition: LATEST` means only new events after mapping creation are processed + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaTutorialhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaTutorialhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9d9fd1ac84c79ff77f29c7ac5997a5c1c61f279d --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaTutorialhtml.md @@ -0,0 +1,80 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.Lambda.Tutorial.html +source: sources/amazondynamodb-latest-developerguide-StreamsLambdaTutorialhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:18 + + + +## Overview + +This tutorial walks through building an event-driven pipeline using DynamoDB Streams and AWS Lambda. A DynamoDB table (`BarkTable`) captures new items, which trigger a Lambda function (`publishNewBark`) via DynamoDB Streams. The Lambda function reads the stream record and publishes a notification to an Amazon SNS topic, which delivers email to subscribers. + +## Key Concepts + +- **DynamoDB Streams** capture item-level changes (INSERT, MODIFY, REMOVE) in a DynamoDB table as stream records +- **StreamViewType `NEW_AND_OLD_IMAGES`** captures both the new and old item images in stream records +- **Event source mapping** connects a DynamoDB stream to a Lambda function, creating a "trigger" +- **Lambda execution role** requires permissions for: CloudWatch Logs, DynamoDB Streams read operations, and SNS publish +- The Lambda function filters by `record.eventName == 'INSERT'` — it ignores updates and deletes +- **`TRIM_HORIZON`** starting position means Lambda processes all records from the beginning of the stream +- **`--batch-size 1`** means Lambda is invoked with one stream record at a time + +## Commands and Syntax + +**Create table with stream enabled:** +```bash +aws dynamodb create-table \ + --table-name BarkTable \ + --attribute-definitions AttributeName=Username,AttributeType=S AttributeName=Timestamp,AttributeType=S \ + --key-schema AttributeName=Username,KeyType=HASH AttributeName=Timestamp,KeyType=RANGE \ + --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 \ + --stream-specification StreamEnabled=true,StreamViewType=NEW_AND_OLD_IMAGES +``` + +**Create IAM role with trust policy for Lambda:** +```bash +aws iam create-role --role-name WooferLambdaRole \ + --path "/service-role/" \ + --assume-role-policy-document file://trust-relationship.json +``` + +**Required DynamoDB Streams permissions:** +`dynamodb:DescribeStream`, `dynamodb:GetRecords`, `dynamodb:GetShardIterator`, `dynamodb:ListStreams` + +**Create event source mapping (trigger):** +```bash +aws lambda create-event-source-mapping \ + --function-name publishNewBark \ + --event-source streamARN \ + --batch-size 1 \ + --starting-position TRIM_HORIZON +``` + +**Test Lambda with simulated stream payload:** +```bash +aws lambda invoke --function-name publishNewBark --payload file://payload.json --cli-binary-format raw-in-base64-out output.txt +``` + +## Relationships + +- **DynamoDB Streams → Lambda**: Event source mapping creates the trigger; Lambda polls the stream +- **Lambda → SNS**: Lambda publishes messages to an SNS topic for fan-out notification +- **IAM**: Lambda execution role must have scoped permissions for all three services (CloudWatch Logs, DynamoDB Streams, SNS) +- **CloudWatch Logs**: Lambda automatically writes diagnostics to `/aws/lambda/` log group +- **Stream record structure**: `record.dynamodb.NewImage` contains the DynamoDB item in marshalled attribute format (e.g., `Username.S`) + +## Exam-Relevant Points + +- DynamoDB Streams requires explicit enabling via `--stream-specification StreamEnabled=true,StreamViewType=...` +- The four `StreamViewType` options: `KEYS_ONLY`, `NEW_IMAGE`, `OLD_IMAGE`, `NEW_AND_OLD_IMAGES` +- Lambda needs four specific DynamoDB Streams permissions — not regular DynamoDB table permissions +- `TRIM_HORIZON` processes from the oldest available record; `LATEST` processes only new records +- Lambda **polls** the stream (it is not pushed to) — the event source mapping manages polling +- The trust relationship must allow `lambda.amazonaws.com` to `sts:AssumeRole` +- Stream records are scoped to `table/BarkTable/stream/*` in IAM policy — best practice for least privilege +- `--batch-size` controls how many records Lambda receives per invocation (1–10,000; default 100) + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdahtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdahtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d911a3786946dba49a205a91769de3a30614e254 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdahtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.Lambda.html +source: sources/amazondynamodb-latest-developerguide-StreamsLambdahtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:18 + + + +## Overview +DynamoDB Streams integrates with AWS Lambda to create triggers—code that automatically responds to data modification events in DynamoDB tables. Lambda polls the stream and synchronously invokes your function when new records appear. + +## Key Concepts +- **Triggers**: Lambda functions that automatically execute in response to DynamoDB Stream events (inserts, updates, deletes) +- Stream ARN is associated with a Lambda function to establish the trigger +- Lambda polls the stream **4 times per second** for new records +- Lambda is invoked **synchronously** when new stream records are available +- **Max 2 Lambda functions** per stream — subscribing more causes read throttling +- On error, Lambda **retries the batch** until success or data expiration +- Retry options: smaller batch size, retry limits, discard old records +- Cross-account triggers are supported via resource-based policies on the stream + +## Commands and Syntax +No specific CLI commands on this page — it references two tutorials: +- Tutorial #1: Using filters to process **all** events (CLI-based) +- Tutorial #2: Using filters to process **some** events + +## Relationships +- **DynamoDB Streams** → provides the event source +- **AWS Lambda** → polls and processes stream records +- **Event filtering** → Lambda can filter which stream records to process +- **Cross-account access** → resource-based policies on streams grant Lambda read access across accounts +- **Step Functions** → recommended for complex/long-running post-processing instead of synchronous Lambda +- **S3** → common destination for audit trails from stream records + +## Exam-Relevant Points +- Lambda polls DynamoDB Streams **4 times per second** +- **Maximum 2 Lambda functions** per stream before read throttling occurs +- Lambda invocation is **synchronous** +- On failure, Lambda **retries the entire batch** (configurable: smaller batches, retry limits, discard old records) +- Best practice: keep Lambda functions **short-lived**; use **Step Functions** for complex workflows on high-velocity streams +- Cross-account Lambda triggers require a **resource-based policy** on the DynamoDB stream + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLowLevelWalkthroughhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLowLevelWalkthroughhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2a0f1aad12f199e054948f67c1f3d887834b8520 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLowLevelWalkthroughhtml.md @@ -0,0 +1,82 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.LowLevel.Walkthrough.html +source: sources/amazondynamodb-latest-developerguide-StreamsLowLevelWalkthroughhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:18 + + + +## Overview +This page demonstrates how to consume DynamoDB Streams using the low-level Java API (AWS SDK v2). It walks through a complete lifecycle: creating a stream-enabled table, writing/updating/deleting items, then reading stream records by iterating over shards. AWS recommends using the Kinesis Client Library (KCL) adapter instead of this low-level approach for production use. + +## Key Concepts +- **DynamoDB Streams low-level API** uses `DynamoDbStreamsClient` (separate from `DynamoDbClient`) to read change records +- **Stream ARN** is obtained from `TableDescription.latestStreamArn()` after enabling streams on a table +- **Shards** are the units of stream data; `DescribeStream` returns shard IDs paginated via `lastEvaluatedShardId` +- **Shard iterators** are obtained via `GetShardIterator` and used with `GetRecords` to read stream records +- **TRIM_HORIZON** iterator type reads from the beginning of the shard +- A shard iterator becomes `null` when the shard is sealed (READ_ONLY), meaning you must fetch **child shards** to continue +- **ShardFilter** with `CHILD_SHARDS` type allows targeted fetching of child shards rather than re-listing all shards +- **StreamViewType `NEW_AND_OLD_IMAGES`** captures both pre- and post-modification item images +- Each write operation (put, update, delete) generates a separate stream record with Keys, NewImage, and/or OldImage + +## Commands and Syntax +**Enable streams on table creation:** +```java +StreamSpecification streamSpec = StreamSpecification.builder() + .streamEnabled(true) + .streamViewType("NEW_AND_OLD_IMAGES") + .build(); +``` + +**Describe stream (paginated):** +```java +DescribeStreamRequest req = DescribeStreamRequest.builder() + .streamArn(streamArn) + .exclusiveStartShardId(lastEvaluatedShardId) + .build(); +``` + +**Get shard iterator:** +```java +GetShardIteratorRequest req = GetShardIteratorRequest.builder() + .streamArn(streamArn) + .shardId(shardId) + .shardIteratorType(ShardIteratorType.TRIM_HORIZON) + .build(); +``` + +**Read records:** +```java +GetRecordsRequest req = GetRecordsRequest.builder() + .shardIterator(currentShardIter) + .build(); +``` + +**Fetch child shards after shard sealed:** +```java +ShardFilter filter = ShardFilter.builder() + .type(ShardFilterType.CHILD_SHARDS) + .shardId(parentShardId) + .build(); +``` + +## Relationships +- **KCL Adapter** (recommended alternative) handles shard management, checkpointing, and failover automatically +- **DynamoDB table operations** (PutItem, UpdateItem, DeleteItem) generate the stream records consumed here +- **Stream view types** (KEYS_ONLY, NEW_IMAGE, OLD_IMAGE, NEW_AND_OLD_IMAGES) determine what data appears in records +- **Kinesis Data Streams** shares conceptual model (shards, iterators, records) with DynamoDB Streams +- **Lambda triggers** offer another consumption model without manual shard iteration + +## Exam-Relevant Points +- The low-level API requires manual shard discovery, iterator management, and child shard traversal — KCL is preferred for production +- `DescribeStream` is paginated; use `lastEvaluatedShardId` to iterate through all shards +- A `null` shard iterator means the shard is sealed/READ_ONLY — process child shards to continue +- `ShardFilterType.CHILD_SHARDS` enables efficient traversal without re-listing all shards +- `DynamoDbStreamsClient` is a separate client from `DynamoDbClient` — streams have their own endpoint +- Stream records include `ApproximateCreationDateTime`, `Keys`, `NewImage`, `OldImage`, `SequenceNumber`, `SizeBytes`, and `StreamViewType` +- Tables use `BillingMode.PAY_PER_REQUEST` (on-demand) in this example — no capacity planning needed + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-Streamshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-Streamshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e398761c694597bd651b0fb8d93ffef3217d3a5e --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-Streamshtml.md @@ -0,0 +1,81 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html +source: sources/amazondynamodb-latest-developerguide-Streamshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:19 + + + +## Overview + +DynamoDB Streams provides change data capture (CDC) by recording a time-ordered sequence of item-level modifications in a DynamoDB table. Stream records are stored for up to 24 hours and allow applications to see items as they appeared before and after modification, enabling near-real-time reactive architectures. + +## Key Concepts + +- **Stream record**: Contains information about a single item modification (create, update, delete), identified by the item's primary key attributes +- **Exactly-once appearance**: Each stream record appears exactly once in the stream +- **Ordered per item**: Stream records for a given item appear in the same sequence as the actual modifications +- **Shards**: Containers that group multiple stream records; created/deleted automatically, can split under high write load +- **Shard lineage**: Parent shards must be processed before child shards to preserve ordering +- **24-hour retention**: Stream data is retained for exactly 24 hours, then automatically deleted — no manual deletion mechanism exists +- **StreamViewType** (immutable once set): + - `KEYS_ONLY` — Only key attributes + - `NEW_IMAGE` — Entire item after modification + - `OLD_IMAGE` — Entire item before modification + - `NEW_AND_OLD_IMAGES` — Both before and after images +- **No-op writes are skipped**: PutItem/UpdateItem that doesn't change data produces no stream record +- **Reader limit**: No more than 2 concurrent readers per shard (throttling occurs beyond this) +- **Encryption at rest** applies to stream data +- **Separate endpoints**: DynamoDB and DynamoDB Streams use different endpoints in the same Region +- **Dual-stack endpoints**: `streams-dynamodb..api.aws` (IPv4+IPv6) alongside legacy IPv4-only `streams.dynamodb..amazonaws.com` +- **No performance impact** on the table when enabling a stream +- **Unique stream ARN** format: `arn:aws:dynamodb:::table//stream/` +- Disabling and re-enabling a stream creates a **new stream** with a different descriptor + +## Commands and Syntax + +**Enable stream via API** — use `CreateTable` or `UpdateTable` with `StreamSpecification`: +```json +{ + "StreamEnabled": true, + "StreamViewType": "NEW_AND_OLD_IMAGES" +} +``` + +**Get latest stream ARN** — issue `DescribeTable`, read `LatestStreamArn` from the response. + +**DynamoDB Streams API operations**: +- `ListStreams` — list stream descriptors (optionally filtered by table name) +- `DescribeStream` — stream metadata, shard composition, status; supports `ShardFilter` to find child shards +- `GetShardIterator` — get iterator at oldest, newest, or specific point in a shard +- `GetRecords` — retrieve stream records using a shard iterator + +**Shard discovery patterns**: +1. Poll with `DescribeStream` to scan full stream topology +2. Use `ShardFilter` parameter to discover child shards of a specific parent (more efficient) + +## Relationships + +- **Lambda triggers**: DynamoDB Streams integrates with AWS Lambda for serverless event processing (`Streams.Lambda`) +- **Kinesis Client Library (KCL)**: The DynamoDB Streams Kinesis Adapter enables KCL-based processing with automatic shard management +- **Apache Flink**: Streams can be consumed by Flink for complex event processing +- **TTL deletes**: Items removed by Time to Live generate stream records (covered in `time-to-live-ttl-streams`) +- **Encryption at rest**: Stream data inherits DynamoDB table encryption settings +- **Global Tables**: Streams underpin cross-region replication +- **Kinesis Data Streams for DynamoDB**: Alternative CDC mechanism with longer retention and more throughput + +## Exam-Relevant Points + +- Stream records are retained for **24 hours only** — no configurable retention, no manual deletion +- **StreamViewType cannot be changed** after stream creation; must disable and create a new stream +- **Maximum 2 concurrent readers per shard** — exceeding this causes throttling +- Operations that don't change data produce **no stream record** +- Disabling and re-enabling a stream creates a **completely new stream** (different ARN) +- Parent shards **must** be processed before child shards for correct ordering +- DynamoDB and DynamoDB Streams require **separate SDK clients** connecting to **separate endpoints** +- Enabling a stream has **no performance impact** on the table +- Each stream record appears **exactly once** in the stream + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-TroubleshootingThrottlinghtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-TroubleshootingThrottlinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ff44795ae25fa42d3e7177ed6f0f025eef7247d2 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-TroubleshootingThrottlinghtml.md @@ -0,0 +1,44 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TroubleshootingThrottling.html +source: sources/amazondynamodb-latest-developerguide-TroubleshootingThrottlinghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:19 + + + +## Overview +This page covers DynamoDB throttling — why it occurs, the four primary scenarios that trigger it, and how to diagnose and resolve throttling issues. Throttling serves two purposes: maintaining service performance and controlling costs. + +## Key Concepts +- **Throttling** returns specific exceptions with details about why the request was throttled and which resource was impacted +- **Four throttling scenarios:** + 1. **Key range throughput exceeded** (both modes) — consumption on specific partitions exceeds internal partition-level throughput limits (hot partition problem) + 2. **Provisioned throughput exceeded** (provisioned mode) — consumption exceeds configured RCUs/WCUs on a table or GSI + 3. **Account-level service quotas exceeded** (on-demand mode) — table/GSI exceeds per-table account-level service quotas for read/write throughput in the Region; these quotas can be increased + 4. **On-demand maximum throughput exceeded** (on-demand mode) — consumption exceeds user-configured maximum throughput limits set for cost control +- Each throttling reason maps to specific **CloudWatch metrics** for monitoring frequency and patterns +- Scenarios 1-2 are performance safeguards; scenario 4 is explicitly a cost control mechanism; scenario 3 is a backstop safeguard + +## Commands and Syntax +No CLI commands on this page — it is a conceptual overview pointing to sub-pages for diagnostics and resolution. + +## Relationships +- **Partition key design** (`bp-partition-key-design`) — hot partitions cause scenario 1 +- **Provisioned capacity mode** (`provisioned-capacity-mode`) — relates to scenario 2 +- **Service quotas** (`ServiceQuotas`) — per-table account-level limits for scenario 3 +- **On-demand max throughput** (`on-demand-capacity-mode-max-throughput`) — configurable cost caps for scenario 4 +- **GSI write throttling** (`gsi-throttling`) — GSI back-pressure can throttle base table writes +- **CloudWatch metrics** (`TroubleshootingThrottling-cloudwatch`) — detection and analysis +- **Diagnostic workflow** (`throttling-diagnosing-workflow`) — structured identification of throttling type + +## Exam-Relevant Points +- Know the **four distinct throttling scenarios** and which capacity mode each applies to (key range = both; provisioned throughput = provisioned only; account quotas and max throughput = on-demand only) +- **Hot partitions** cause throttling in both provisioned and on-demand modes — good partition key design is the fix +- On-demand mode is **not immune to throttling** — it has both account-level quotas and configurable max throughput limits +- Account-level service quotas in on-demand mode **can be increased** via service quota requests +- GSI throttling can **back-pressure the base table**, causing writes to the base table to be throttled even if the base table has capacity +- Each throttling type has corresponding **CloudWatch metrics** for monitoring + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-V2globaltables_HowItWorkshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-V2globaltables_HowItWorkshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..53ea2b98df1d6b5dc0f35e211e7d475b3c0234a5 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-V2globaltables_HowItWorkshtml.md @@ -0,0 +1,65 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_HowItWorks.html +source: sources/amazondynamodb-latest-developerguide-V2globaltables_HowItWorkshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:20 + +## Overview + +This page covers how DynamoDB global tables work, including the two consistency modes (MREC and MRSC), replication behavior, monitoring, fault injection testing, and settings synchronization across replicas. Global tables replicate table data across AWS Regions for high availability and disaster recovery. + +## Key Concepts + +- **Global table**: A DynamoDB table replicated across multiple AWS Regions; each Region has one replica sharing the same name, key schema, and item data +- **Replica table**: A DynamoDB table functioning as part of a global table +- **Witness**: An MRSC component that holds data but does not support read/write operations; managed by DynamoDB and invisible in your account +- **Two versions**: Version 2019.11.21 (Current) and Version 2017.11.29 (Legacy) — always use Current +- **SLA**: Global tables offer 99.999% availability vs 99.99% for single-Region tables +- **Consistency modes** (set at creation, cannot be changed after): + - **MREC** (default): Async replication, typically < 1 second; "last writer wins" conflict resolution; RPO > 0 + - **MRSC**: Sync replication; strongly consistent reads across Regions; RPO = 0 +- **MRSC constraints**: Exactly 3 Regions (3 replicas, or 2 replicas + 1 witness); table must be empty at creation; no TTL; no LSIs; no transactions; limited to specific Region sets (US, EU, AP — cannot span sets) +- **MREC conflict resolution**: Last internal timestamp wins, per-item basis +- **`ReplicatedWriteConflictException`**: MRSC error when same item modified in multiple Regions simultaneously (retryable) +- **DAX and global tables**: Writes bypass DAX cache; cache becomes stale until TTL expires +- **Streams**: Enabled by default on MREC replicas (used for replication); not enabled by default on MRSC replicas. MRSC stream records are identical across replicas; MREC stream records may differ +- **Transactions**: MREC — atomic only within the invoking Region, not replicated as a unit. MRSC — transactions not supported at all + +## Commands and Syntax + +- Use `DescribeTable` API to determine if/where a MRSC witness is configured +- Use `ProvisionedThroughputOverride` parameter to independently configure read capacity per replica +- Use `TransactWriteItems` / `TransactGetItems` — MREC only, local atomicity +- CloudWatch metric `ReplicationLatency` — monitors MREC replication delay (not available for MRSC) +- CloudWatch metric `FaultInjectionServiceInducedErrors` — monitors FIS experiment errors + +## Relationships + +- **DynamoDB Streams**: MREC replication mechanism; can filter by Region attribute for Lambda event processing +- **AWS FIS**: Fault injection testing to simulate Region isolation (pause replication) +- **DAX**: Cache staleness concern with global tables +- **CloudWatch**: Monitoring via `ReplicationLatency` and Contributor Insights +- **Auto Scaling**: Write auto scaling synchronized across replicas; read auto scaling overridable per replica +- **TTL**: Supported in MREC only; deletes replicate across Regions consuming write capacity +- **GSIs**: Definition and write capacity synchronized; read capacity overridable. LSIs not supported in MRSC +- **Point-in-time Recovery, Tags, Deletion Protection, Resource Policies**: Never synchronized between replicas + +## Exam-Relevant Points + +- **MREC is the default** consistency mode; cannot change mode after creation +- **99.999% SLA** for global tables vs 99.99% for single-Region +- **MRSC requires exactly 3 Regions** from the same Region set; table must be empty at creation +- **MRSC does not support**: TTL, LSIs, transactions, `ReplicationLatency` metric +- **MREC conflict resolution**: last writer wins (by internal timestamp, per-item) +- **Strongly consistent reads in MREC**: Only guaranteed current if item was last updated in the same Region +- **Settings that never sync**: Deletion protection, PITR, Tags, Resource Policies, Kinesis Data Streams +- **Overridable settings reset** when any other replica modifies the base value +- **TTL deletes are free** in the origin Region but charged as replicated writes in other Regions +- **Transactions in MREC** are only atomic within the Region — partial results may be visible in other Regions during replication +- **Cannot delete source table** for 24 hours after creating a new replica +- **Disabling a Region** permanently converts replicas to single-Region tables after 20 hours +- **DAX caches go stale** with global tables — writes bypass DAX + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-V2globaltables_versionshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-V2globaltables_versionshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ddc92669c2aab5b19bd436e077c257ace6390a8a --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-V2globaltables_versionshtml.md @@ -0,0 +1,82 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_versions.html +source: sources/amazondynamodb-latest-developerguide-V2globaltables_versionshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:20 + + + +## Overview + +This page documents the two versions of DynamoDB global tables — version 2019.11.21 (Current) and version 2017.11.29 (Legacy) — covering how to identify which version a table uses, the behavioral differences between them, and how to upgrade from Legacy to Current. + +## Key Concepts + +- **Two versions exist**: 2019.11.21 (Current, recommended) and 2017.11.29 (Legacy) +- Current version is cheaper (lower rWRU consumption), available in all regions, and easier to manage +- Legacy version is limited to 11 AWS Regions +- Current version uses standard `UpdateTable`/`DescribeTable` APIs; Legacy uses dedicated global table APIs (`CreateGlobalTable`, `DescribeGlobalTable`, etc.) +- Current version produces **1 Streams record per write**; Legacy produces **2 Streams records per write** +- Current version synchronizes TTL, auto scaling, GSI, and encryption settings across replicas; Legacy does **not** +- Current version replicates TTL deletes; Legacy does **not** +- Legacy populates `aws:rep:deleting`, `aws:rep:updateregion`, `aws:rep:updatetime` attributes; Current does not +- Legacy publishes `PendingReplicationCount` metric; Current does not (only `ReplicationLatency`) + +## Commands and Syntax + +**Identify Current (2019.11.21) replica** — look for `GlobalTableVersion` in output: +```bash +aws dynamodb describe-table --table-name users --region us-east-2 +# Output includes: "GlobalTableVersion": "2019.11.21" +``` + +**Identify Legacy (2017.11.29) replica** — successful response confirms Legacy; `GlobalTableNotFoundException` means not Legacy: +```bash +aws dynamodb describe-global-table --table-name users --region us-east-2 +``` + +**IAM policy for upgrade** — requires `dynamodb:UpdateGlobalTableversion` in all replica regions: +```json +{ + "Version": "2012-10-17", + "Statement": [{ + "Effect": "Allow", + "Action": "dynamodb:UpdateGlobalTableversion", + "Resource": "*" + }] +} +``` + +**rWRU cost comparison (1KB item, 2 regions):** + +| Operation | Legacy | Current | Savings | +|-----------|--------|---------|---------| +| PutItem | 4 rWRUs | 2 rWRUs | 50% | +| UpdateItem | 3 rWRUs | 2 rWRUs | 33% | +| DeleteItem | 3 rWRUs | 2 rWRUs | 33% | + +## Relationships + +- **DynamoDB Streams**: Version affects number of stream records and replication attributes included +- **Auto Scaling**: Current syncs settings across replicas; Legacy requires manual management per replica +- **GSIs**: Current syncs GSI settings; Legacy does not +- **TTL**: Current replicates TTL deletes and syncs TTL settings; Legacy does neither +- **Encryption at rest**: Current syncs encryption settings; Legacy does not +- **CloudWatch metrics**: Both publish `ReplicationLatency`; only Legacy publishes `PendingReplicationCount` +- **Capacity modes**: AWS recommends switching to on-demand during upgrade since auto scaling won't adjust + +## Exam-Relevant Points + +- Current version uses `UpdateTable` to add replicas to an **existing table with data**; Legacy requires **empty tables** and `CreateGlobalTable` +- Current version consumes **1 rWRU per write** in both source and destination; Legacy consumes **2 rWRUs** for PutItem in each region +- Legacy produces **2 Streams records per write**; Current produces **1** +- Upgrade is online — reads and writes continue during upgrade +- Upgrade requires `dynamodb:UpdateGlobalTableversion` permission in **all replica regions** +- During upgrade, table status changes from `ACTIVE` → `UPDATING` → `ACTIVE` +- AWS recommends **on-demand capacity mode** during upgrade because auto scaling won't adjust +- `ReplicationLatency` metric may spike or stop reporting during upgrade +- The `describe-global-table` command only works for Legacy tables (returns `GlobalTableNotFoundException` for Current) + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-WorkbenchDocumentHistoryhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-WorkbenchDocumentHistoryhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..4fcedcc61e85dd29e011e704e11c834b72f1a13e --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-WorkbenchDocumentHistoryhtml.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkbenchDocumentHistory.html +source: sources/amazondynamodb-latest-developerguide-WorkbenchDocumentHistoryhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:20 + + + +## Overview + +This page documents the release history of NoSQL Workbench, a client tool for Amazon DynamoDB that provides data modeling, visualization, and query building capabilities. It tracks versions from the initial preview (0.2.1, September 2019) through GA (1.0.0, March 2020) to the latest release (3.20.0, February 2026). + +## Key Concepts + +- **NoSQL Workbench** is a desktop client tool for designing, creating, querying, and managing DynamoDB tables +- Three core components: **Data Modeler**, **Visualizer**, and **Operation Builder** +- Supports connecting to both **DynamoDB web service** and **DynamoDB local** +- As of v3.13.5, default table capacity mode changed from **provisioned** to **on-demand** +- Supports **PartiQL** statements (since v2.2.0) +- Can import/export data models in **CloudFormation format** (since v3.0.0) +- Supports **CSV import/export** for sample data and query results (since v3.2.0) +- Native support for **Apple silicon** Macs (since v3.10.0) +- Can **clone tables** between DynamoDB local and web service accounts (since v3.12.0) +- v3.20.0 introduced a redesigned **Data Modeler** with **access pattern** support + +## Commands and Syntax + +No CLI commands — NoSQL Workbench is a GUI desktop application. Key operations available through the UI: + +- **Data Modeler**: Design tables, define access patterns, generate sample data +- **Visualizer**: Commit data models to DynamoDB (local or web service), import CSV data +- **Operation Builder**: Build and save queries, view consumed RCU/WCU, export results to CSV, execute PartiQL statements, perform control plane operations + +## Relationships + +- **DynamoDB local**: Bundled installation option since v3.4.0; supports configurable port since v3.11.0 +- **CloudFormation**: Import/export data models as CloudFormation templates +- **IAM**: Supports IAM roles and temporary security credentials for connections +- **Capacity modes**: Reflects the broader DynamoDB shift toward on-demand as the default + +## Exam-Relevant Points + +- NoSQL Workbench is available on **Windows, macOS (including Apple silicon), and Linux** +- Default capacity mode for new tables in Workbench is **on-demand** (not provisioned) +- The tool supports **PartiQL** for querying DynamoDB +- You can clone tables between DynamoDB local and the web service for development workflows +- Data models can be imported/exported as **CloudFormation JSON** +- The Operation Builder shows **consumed capacity** (RCU/WCU) after operations + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithItemCollectionshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithItemCollectionshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..03f4292f1c78c55b2801ad4d61b7db3017902169 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithItemCollectionshtml.md @@ -0,0 +1,43 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItemCollections.html +source: sources/amazondynamodb-latest-developerguide-WorkingWithItemCollectionshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:21 + + + +## Overview +This page explains item collections in DynamoDB — groups of items sharing the same partition key value. Item collections are the primary mechanism for modeling one-to-many relationships and exist only on tables or indexes with composite primary keys (partition key + sort key). + +## Key Concepts +- An **item collection** is a group of items that share the same partition key value +- Item collections are the **primary mechanism for one-to-many relationships** in DynamoDB +- They require a **composite primary key** (partition key + sort key) — they cannot exist on tables with only a partition key +- Item collections can exist on **base tables** or **secondary indexes** +- Items within a collection can have **different attributes** — DynamoDB's schemaless nature means each item only needs the key attributes +- Sort keys can use **concatenated/hierarchical values** (e.g., `inventory::armor`, `inventory::weapon`) to group and organize data within a collection +- Different item collections can have **different numbers of items** — one user may have 3 items, another may have 2 + +## Commands and Syntax +- Use the **Query** operation to interact with item collections: + - Retrieve **all items** for a partition key value + - Retrieve **a single item** by specifying both partition key and sort key + - Retrieve **a subset of items** by filtering on sort key prefix/range (e.g., all `inventory::*` items for a user) + +## Relationships +- **Composite Primary Keys**: Item collections depend on composite keys (partition key + sort key) — see `HowItWorks.CoreComponents` +- **Local Secondary Indexes (LSI)**: Item collections interact specifically with LSIs, which have their own item collection size limits — see `LSI.ItemCollections` +- **Query Operation**: The primary API for reading item collections efficiently +- **Data Modeling / Access Patterns**: Item collection design is driven by access pattern analysis (what data is needed, when, how frequently, at what cost) + +## Exam-Relevant Points +- Item collections **only exist on tables/indexes with composite primary keys** — not simple (partition-key-only) tables +- Item collections are the **primary way to model one-to-many relationships** in DynamoDB +- Sort key design using **concatenated prefixes** (e.g., `inventory::weapon`) is a key data modeling pattern for organizing related data +- Items in a collection **do not need to have the same attributes** (schema-per-item flexibility) +- The **Query** operation is used to efficiently retrieve items from a collection (not Scan) +- Data modeling decisions for item collections should be driven by **access patterns**: what data is needed, when, how often, and at what cost + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithTablesBasicshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithTablesBasicshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..30f3961e1e1fe7bf8e826c07be116b39f7f127ec --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithTablesBasicshtml.md @@ -0,0 +1,89 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html +source: sources/amazondynamodb-latest-developerguide-WorkingWithTablesBasicshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:21 + + + +## Overview +This page covers the fundamental CRUD-style management operations for DynamoDB tables: creating, describing, updating, deleting, listing, and checking provisioned throughput quotas. It includes CLI examples for each operation and covers both on-demand and provisioned capacity modes, table classes, and deletion protection. + +## Key Concepts +- **Table names** must be unique per AWS account and Region — you can have identically named tables in different Regions, but they are entirely separate +- **Primary key** is required at creation: either a partition key alone (`HASH`) or partition key + sort key (`HASH` + `RANGE`) +- **Billing modes**: `PAY_PER_REQUEST` (on-demand) or provisioned with explicit `ReadCapacityUnits`/`WriteCapacityUnits` +- **Table classes**: `STANDARD` (default) and `STANDARD_INFREQUENT_ACCESS` +- **Table statuses**: `CREATING` → `ACTIVE` → `UPDATING` (during changes) → `DELETING` (on delete) +- **DescribeTable** on an on-demand table shows RCU/WCU as **0** +- **DescribeTable** is eventually consistent — may throw `ResourceNotFoundException` immediately after `CreateTable` +- **Per-item storage overhead**: 100 bytes per item for billing (not reflected in DescribeTable or capacity calculations) +- **Deletion protection**: off by default for all tables (including global replicas and restored tables); when enabled, no one can delete the table regardless of IAM permissions +- **Account deletion** overrides deletion protection — all data removed within 90 days +- **Loss of CMK access** causes DynamoDB to archive the table (backup + delete original) even with deletion protection +- **UpdateTable** keeps the table fully available (`UPDATING` status does not block reads/writes) +- **DeleteTable** is unrecoverable + +## Commands and Syntax + +```bash +# Create on-demand table +aws dynamodb create-table \ + --table-name Music \ + --attribute-definitions AttributeName=Artist,AttributeType=S AttributeName=SongTitle,AttributeType=S \ + --key-schema AttributeName=Artist,KeyType=HASH AttributeName=SongTitle,KeyType=RANGE \ + --billing-mode PAY_PER_REQUEST + +# Create provisioned table +aws dynamodb create-table ... \ + --provisioned-throughput ReadCapacityUnits=10,WriteCapacityUnits=5 + +# Create with infrequent access table class +aws dynamodb create-table ... \ + --table-class STANDARD_INFREQUENT_ACCESS + +# Describe table +aws dynamodb describe-table --table-name Music + +# Update provisioned throughput +aws dynamodb update-table --table-name Music \ + --provisioned-throughput ReadCapacityUnits=20,WriteCapacityUnits=10 + +# Switch to on-demand +aws dynamodb update-table --table-name Music \ + --billing-mode PAY_PER_REQUEST + +# Delete table +aws dynamodb delete-table --table-name Music + +# List tables +aws dynamodb list-tables + +# Describe account throughput quotas +aws dynamodb describe-limits +``` + +## Relationships +- **Naming rules**: links to `HowItWorks.NamingRulesDataTypes` +- **Primary key design**: links to `HowItWorks.CoreComponents` (partition key / sort key) +- **Provisioned capacity mode**: links to `provisioned-capacity-mode` and `AutoScaling` +- **Global Secondary Indexes**: managed via `UpdateTable` (links to GSI docs) +- **DynamoDB Streams**: enabled/disabled via `UpdateTable` (links to Streams docs) +- **Throughput quotas**: links to `ServiceQuotas` for default limits and increase requests +- **Table classes**: connects to cost optimization strategies (Standard vs Standard-IA) +- **Deletion protection**: supported by Console, API, CLI/SDK, and CloudFormation + +## Exam-Relevant Points +- On-demand tables report RCU/WCU as **0** in `DescribeTable` — this is expected, not an error +- Table names are unique per **account + Region** combination +- `DescribeTable` is **eventually consistent** — may fail immediately after creation +- Storage billing includes a **100-byte per-item overhead** not visible in DescribeTable +- Deletion protection is **off by default** on all tables including restored ones and global replicas +- Tables remain **fully available** during `UpdateTable` operations +- `DeleteTable` is **irreversible** +- `UpdateTable` can change: throughput, billing mode, GSIs, and Streams +- `DescribeLimits` returns account-level throughput **quotas**, not current usage + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithTableshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithTableshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7b170aeff104bcaec40c2e0572c3c9f75a754481 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithTableshtml.md @@ -0,0 +1,36 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html +source: sources/amazondynamodb-latest-developerguide-WorkingWithTableshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:21 + + + +## Overview +This is a hub/index page for working with DynamoDB tables and data, covering table CRUD operations, throughput capacity management (auto scaling and provisioned), table class selection, and resource tagging. + +## Key Concepts +- Tables can be managed via AWS CLI, AWS SDKs, or the AWS Management Console +- Throughput capacity can be managed via DynamoDB auto scaling or manually provisioned throughput +- Table class selection affects cost and performance characteristics +- DynamoDB resources support tagging for organization and cost allocation + +## Commands and Syntax +No specific commands on this page — it serves as a navigation hub to subtopics. + +## Relationships +- **Basic table operations** → `WorkingWithTables.Basics` (create, update, delete tables) +- **Table classes** → `WorkingWithTables.tableclasses` (Standard vs Standard-IA) +- **Tagging** → `Tagging` (resource tags and labels) +- **Console access** → `AccessingDynamoDB` (Management Console alternative) +- **Capacity modes** → connects to auto scaling and provisioned throughput topics + +## Exam-Relevant Points +- Two ways to manage throughput: auto scaling vs manually provisioned +- Table class selection is a distinct consideration from capacity mode +- All three interfaces (Console, CLI, SDK) support the same table operations +- Resource tagging is available for DynamoDB tables + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-access-control-resource-basedhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-access-control-resource-basedhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a6a96f9cbbba5d2b46d95b7dbf26c00d3ddec17a --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-access-control-resource-basedhtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html +source: sources/amazondynamodb-latest-developerguide-access-control-resource-basedhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:21 + + + +## Overview +DynamoDB supports resource-based policies that can be attached to tables, indexes, and streams to define access permissions at the resource level. These policies specify which IAM principals can perform specific actions on DynamoDB resources, simplifying access control — particularly for cross-account access scenarios. Policies are capped at 20 KB per resource. + +## Key Concepts +- **Resource-based policies** can be attached to three DynamoDB resource types: tables, indexes, and streams +- A policy attached to a table **also covers its indexes** +- Policies specify IAM **principals** and the **actions** they are allowed to perform +- Maximum policy size is **20 KB** per resource +- Primary benefit: **simplifying cross-account access** without needing IAM roles/assume-role patterns +- Integrates with **IAM Access Analyzer** (external access analysis) to identify cross-account access and refine toward least privilege +- **Block Public Access (BPA)** prevents public access to tables, indexes, and streams — automatically enforced during policy creation and modification workflows + +## Commands and Syntax +No specific CLI commands or syntax are provided on this overview page. Sub-topics cover: +- Creating a table with a resource-based policy attached at creation time +- Attaching/removing policies to existing tables and streams +- Cross-account access configuration +- BPA configuration + +## Relationships +- **IAM identity-based policies**: Resource-based policies work alongside (and are evaluated with) identity-based policies during authorization +- **IAM Access Analyzer**: Reports on external/cross-account access granted by resource-based policies +- **Block Public Access (BPA)**: A guardrail layer that prevents overly permissive resource-based policies +- **Cross-account access**: Resource-based policies are the preferred mechanism for granting access to principals in other AWS accounts +- **DynamoDB Streams**: Streams have their own resource-based policy attachment workflow, separate from tables + +## Exam-Relevant Points +- Resource-based policies apply to **tables, indexes, and streams** — know all three resource types +- **20 KB maximum** policy size per resource +- Table policies **implicitly cover indexes** on that table +- Resource-based policies are the **simplest way to grant cross-account access** to DynamoDB (no assume-role required) +- **BPA is automatically enabled** during resource-based policy creation/modification — not optional +- IAM Access Analyzer integration helps enforce **least privilege** +- Authorization evaluates **both** identity-based and resource-based policies together + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-backup-restore-billinghtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-backup-restore-billinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5e7c492624c3f9b8d01c312497651a97a0c7113c --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-backup-restore-billinghtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/backup-restore-billing.html +source: sources/amazondynamodb-latest-developerguide-backup-restore-billinghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:22 + + + +## Overview + +This page explains how DynamoDB billing works for on-demand backups, focusing on why the `TimedBackupStorage-ByteHrs` metric appears to spike on the 1st of each month and how charges are prorated when backups are deleted mid-month. + +## Key Concepts + +- **On-demand backups are billed monthly** — charges are calculated based on storage size and duration retained. +- **Billing on creation day**: When a backup is created mid-month, a single charge covers the remaining days of that month. +- **Billing on the 1st**: All backups carried into a new month have a full month's charge applied on the 1st day. +- **Prorated adjustment on deletion**: If a backup is deleted before month-end, the charge applied (either on the 1st or creation day) is adjusted down to reflect only the days the backup actually existed. +- **Apparent spike on the 1st is by design**: The `DynamoDB (Region)-TimedBackupStorage-ByteHrs` metric looks abnormally high on the 1st because it front-loads a full month of assumed usage for all existing backups. This charge shrinks throughout the month as backups expire or are deleted. +- **DynamoDB monitors backup size continuously** throughout the month to determine final charges. + +## Commands and Syntax + +No CLI commands or API calls are described on this page. Billing is observed through: +- **AWS Cost Explorer** — view the `TimedBackupStorage-ByteHrs` usage metric +- **DynamoDB Pricing Page** — reference for per-GB-month backup storage rates + +## Relationships + +- **On-demand backups** (`CreateBackup` / `DeleteBackup` APIs) — the backup operations that generate these charges +- **Point-in-time recovery (PITR)** — a separate continuous backup mechanism also mentioned as a DynamoDB backup option (billed differently) +- **Backup retention policies** — automated expiration of backups drives the daily charge adjustments described here +- **AWS Cost Explorer** — the observability tool where these billing patterns surface +- **DynamoDB table storage** — backup size is derived from table size at time of backup + +## Exam-Relevant Points + +- On-demand backup charges are applied on the **day of creation** (prorated for remaining month) and then on the **1st of each subsequent month** (full month assumed). +- Charges are **adjusted retroactively** when backups are deleted — the initial full-month charge on the 1st is reduced to actual usage days. +- A large billing spike on the 1st of the month for `TimedBackupStorage-ByteHrs` is **normal behavior**, not an error — it reflects pre-applied charges for all carried-over backups. +- Backup storage is billed as the **sum of all on-demand backups** across all DynamoDB tables, measured continuously. +- With a 30-day retention policy and steady backup creation rate, the month-end total will converge to the same cost as previous months despite the initial spike. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-backuprestore_HowItWorksAWShtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-backuprestore_HowItWorksAWShtml.md new file mode 100644 index 0000000000000000000000000000000000000000..8e3a58b01dee55c4151662a898201f0e957bafcb --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-backuprestore_HowItWorksAWShtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/backuprestore_HowItWorksAWS.html +source: sources/amazondynamodb-latest-developerguide-backuprestore_HowItWorksAWShtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:22 + + + +## Overview +This page describes how AWS Backup integrates with Amazon DynamoDB to provide enhanced, centralized backup capabilities beyond DynamoDB's native on-demand backup feature. AWS Backup adds scheduling, cross-account/cross-Region copying, cold storage tiering, independent encryption, audit capabilities, and WORM protection for DynamoDB backups. + +## Key Concepts +- **Opt-in required**: AWS Backup must be explicitly opted into per account and per Region +- **Native integration**: DynamoDB is natively integrated with AWS Backup; existing DynamoDB backups remain unchanged +- **Scheduled backups**: Backup plans enable regularly scheduled automatic backups of DynamoDB tables +- **Cross-account and cross-Region copying**: Backups can be automatically copied to vaults in different Regions or accounts for data protection +- **Cold storage tiering**: Lifecycle rules can transition or delete backups to reduce costs +- **Independent encryption**: Backups stored in AWS Backup vaults can use a KMS key independent from the DynamoDB table encryption key +- **AWS Backup Audit Manager**: Provides compliance auditing of backup policies and automated daily/on-demand reporting +- **WORM model (Vault Lock)**: Write-once-read-many protection prevents inadvertent or malicious deletion, recovery period changes, or lifecycle modifications +- **Tagging**: Automatic tagging of backups for billing and cost allocation + +## Commands and Syntax +No specific CLI commands on this page. Management can be done via: +- DynamoDB console, API, or AWS CLI to enable automatic backups +- AWS Backup console for centralized backup policy management + +## Relationships +- **AWS Backup**: Parent service providing the centralized backup framework +- **AWS KMS**: Provides independent encryption keys for backup vault encryption +- **AWS Backup Vault Lock**: Enables WORM compliance for backup immutability +- **AWS Backup Audit Manager**: Governance and compliance reporting layer +- **DynamoDB on-demand backups**: Coexists — native DynamoDB backups continue to work alongside AWS Backup-managed backups +- **Cross-Region / Cross-Account**: Ties into disaster recovery and multi-account architecture strategies + +## Exam-Relevant Points +- AWS Backup requires **explicit opt-in per account and per Region** +- AWS Backup enables **cross-account and cross-Region** backup copying for DynamoDB — native DynamoDB backups do not +- Backups in AWS Backup vaults use a **KMS key independent from the table's encryption key** +- **Vault Lock** provides WORM immutability — protects against both accidental and malicious deletion +- **Cold storage tiering** via lifecycle rules is an AWS Backup feature, not a native DynamoDB backup feature +- Existing DynamoDB on-demand backups are **not affected** by enabling AWS Backup +- **Scheduled backups** of DynamoDB tables require AWS Backup (not available natively) + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-backuprestore_HowItWorkshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-backuprestore_HowItWorkshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b91bc3de87235536074dfde86ac44b6091e909dc --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-backuprestore_HowItWorkshtml.md @@ -0,0 +1,36 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/backuprestore_HowItWorks.html +source: sources/amazondynamodb-latest-developerguide-backuprestore_HowItWorkshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:22 + + + +## Overview +DynamoDB provides standalone on-demand backup and restore capabilities that operate independently of AWS Backup, enabling full table backups for long-term retention, archival, and regulatory compliance with zero impact on table performance or availability. + +## Key Concepts +- **On-demand backup** creates full backups of DynamoDB tables +- Backups are **independent of AWS Backup** — can be used standalone +- **Zero impact** on table performance or availability during backup/restore +- Use cases: long-term retention, archival, regulatory compliance +- Can be triggered via Console (single click), CLI, or DynamoDB API + +## Commands and Syntax +- Console: single-click backup/restore +- CLI/API: single API call (e.g., `CreateBackup`, `RestoreTableFromBackup`) + +## Relationships +- **AWS Backup**: separate service that also supports DynamoDB but is not required +- **Point-in-Time Recovery (PITR)**: complementary feature for continuous backups (not covered here) +- Related procedures: `Backup.Tutorial` (creating backups), `Restore.Tutorial` (restoring from backups) + +## Exam-Relevant Points +- On-demand backups have **zero performance/availability impact** on the source table +- On-demand backup is **independent** of AWS Backup — they are separate features +- Backups are full table backups (not incremental) +- Three interfaces: Console, CLI, API + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-best-practiceshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-best-practiceshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..da2fe37cef01429cb26be3f242771956cdecfe47 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-best-practiceshtml.md @@ -0,0 +1,44 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/best-practices.html +source: sources/amazondynamodb-latest-developerguide-best-practiceshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:22 + + + +## Overview +This is the top-level index page for DynamoDB best practices, serving as a navigation hub to specific best-practice guides covering NoSQL design, partition keys, sort keys, secondary indexes, query/scan patterns, global tables, DAX integration, and cost optimization. + +## Key Concepts +- DynamoDB best practices are organized around **maximizing performance** and **minimizing throughput costs** +- Topics span the full lifecycle: data modeling (NoSQL design, partition keys, sort keys), indexing, querying, table design, global replication, and billing +- Special guidance exists for common patterns: time-series data, many-to-many relationships (adjacency lists), large items (S3 offloading), and bulk operations +- Concurrency handling and version control are called out as distinct best-practice areas +- Control plane operations (table creation/modification) have their own best practices, separate from data plane + +## Commands and Syntax +No commands on this page — it is a topic index linking to sub-pages. + +## Relationships +- **NoSQL Design** (`bp-general-nosql-design`) — foundational; should be read first +- **Partition Keys** (`bp-partition-key-design`) and **Sort Keys** (`bp-sort-keys`) — core data modeling decisions +- **Secondary Indexes** (`bp-indexes`) — GSI/LSI design patterns +- **Query/Scan** (`bp-query-scan`) — access pattern optimization +- **Large Items → S3** (`bp-use-s3-too`) — connects DynamoDB to S3 architecture +- **Global Tables** (`bp-global-table-design`) — multi-region replication +- **DAX** (`dax-prescriptive-guidance`) — caching layer integration +- **PrivateLink** (`privatelink-interface-endpoints`) — VPC connectivity +- **Well-Architected Lens** (`bp-wal`) — ties into AWS Well-Architected Framework + +## Exam-Relevant Points +- Know that DynamoDB best practices prioritize **even partition key distribution** and **efficient access patterns** +- Understand the recommendation to **offload large items to S3** (DynamoDB item limit is 400 KB) +- **Adjacency list pattern** is the recommended approach for many-to-many relationships +- **Time-series data** requires special table design to avoid hot partitions +- **Control plane** vs **data plane** best practices are distinct concerns (rate limits differ) +- **DAX integration** has specific prescriptive guidance — it's not a drop-in for all workloads +- Bulk operations and concurrent update handling are separate best-practice domains + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-adjacency-graphshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-adjacency-graphshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e2e4d6c205a9f677731fa4628db65fa996b30893 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-adjacency-graphshtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-adjacency-graphs.html +source: sources/amazondynamodb-latest-developerguide-bp-adjacency-graphshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:23 + + + +## Overview + +This page covers design patterns for modeling many-to-many relationships and graph data structures in DynamoDB, focusing on two patterns: adjacency lists and materialized graphs. It also discusses when DynamoDB is appropriate for graph workloads versus when to use a dedicated graph database like Amazon Neptune. + +## Key Concepts + +- **Adjacency list pattern**: Top-level entities (nodes) use the partition key; relationships (edges) are items within that partition, with the sort key set to the target entity ID +- **Minimal data duplication**: The adjacency list pattern avoids duplicating data while enabling efficient queries for related entities +- **GSI on sort key**: Creating a GSI on the table's sort key enables reverse lookups (e.g., finding all invoices containing a given bill) +- **Materialized graph pattern**: Edge items contain `Target` and `Type` attributes, combined into a composite key "TypeTarget" for identification across primary table and GSIs +- **GSI overloading**: A single GSI on a `Data` attribute can index multiple attribute types (Dates, Names, Places, Skills) — one GSI indexing four different attributes +- **Intelligent sharding**: Distribute items with large aggregations (e.g., birthdate, skill) across multiple logical partitions on GSIs to avoid hot partitions +- **Near-real-time consistency**: Use DynamoDB Streams + Lambda for edge update processing; use scheduled EMR jobs for validation/aggregation +- **Neptune recommendation**: For real-time multi-hop queries, complex edge traversals, or second/third-level relationship aggregations, use Amazon Neptune instead of DynamoDB + +## Commands and Syntax + +No CLI commands. The patterns are schema-level designs: + +- **Adjacency list schema**: PK = `InvoiceID` or `BillID`, SK = related entity ID. Bill partitions store bill attributes; invoice partitions store invoice attributes plus one item per associated bill. +- **Materialized graph schema**: PK = node ID, SK = `TypeTarget` composite. First GSI on `Data` attribute (overloaded). Second GSI on `TypeTarget`. + +## Relationships + +- **GSI overloading** (referenced from earlier best practices sections) +- **DynamoDB Streams + Lambda** for near-real-time graph consistency +- **Amazon EMR** for batch aggregation of graph data +- **Amazon Neptune** as the recommended alternative for complex real-time graph queries +- Connects to partition key design, sort key design, and secondary index best practices + +## Exam-Relevant Points + +- Adjacency lists model many-to-many relationships by using PK for entities and SK for edges to related entities +- A GSI on the sort key enables reverse lookups in an adjacency list pattern +- GSI overloading allows a single GSI to index multiple different attribute types +- DynamoDB is suitable for real-time graph workflows with neighbor state queries and edge aggregations, but **not** for complex multi-hop traversals — use Neptune for those +- For non-real-time graph use cases, scheduled EMR jobs can aggregate edge data +- DynamoDB Streams + Lambda provides near-real-time edge update processing as a middle ground between batch and fully real-time approaches + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-control-planehtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-control-planehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ceca13906292f228bfc8d8bb6b44f1ed0728f92a --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-control-planehtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-control-plane.html +source: sources/amazondynamodb-latest-developerguide-bp-control-planehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:23 + + + +## Overview + +This page describes best practices for managing DynamoDB control plane operations, which handle table and index management (as opposed to data plane operations for reading/writing items). It highlights an upcoming throttle limit of 2,500 requests per second and provides guidance on avoiding excessive control plane usage. + +## Key Concepts + +- **Control plane vs. data plane**: Control plane operations manage tables and dependent objects (indexes, etc.); data plane operations read/write data. +- **Throttle limit**: DynamoDB enforces a control plane throttle limit of **2,500 requests per second**, with retry option. +- Control plane calls (e.g., `DescribeTable`) may be used in business logic to retrieve metadata like `ProvisionedThroughput`. + +## Commands and Syntax + +No specific CLI commands provided. The key API references are: +- `DescribeTable` — returns table metadata including `ProvisionedThroughput` +- Control plane API group documented at `HowItWorks.API.ControlPlane` + +## Relationships + +- **DynamoDB API model**: Control plane is one half of the DynamoDB API (the other being data plane). +- **Provisioned throughput / capacity modes**: Control plane calls return capacity configuration that feeds into scaling decisions. +- **Retry and backoff patterns**: Standard AWS retry-with-exponential-backoff applies to throttled control plane requests. + +## Exam-Relevant Points + +- Control plane throttle limit is **2,500 requests/second**. +- **Do not** mix control plane and data plane calls in the same code path. +- **Cache** control plane results rather than polling repeatedly at short intervals. +- **Use a single client** to invoke and track changes to a particular resource. +- Always implement **retry with backoff** for throttled control plane requests. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-cost-optimizationhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-cost-optimizationhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3a222a65c68ca14cd438db40c674bdf7e81358de --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-cost-optimizationhtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-cost-optimization.html +source: sources/amazondynamodb-latest-developerguide-bp-cost-optimizationhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:23 + + + +## Overview + +This page serves as a table of contents for DynamoDB cost optimization strategies, directing users to evaluate and iteratively optimize costs across eight dimensions of their existing DynamoDB tables. + +## Key Concepts + +- Cost optimization should be approached **iteratively** — evaluate multiple strategies and apply the ones that fit your workload +- Eight cost optimization dimensions: + - **Table-level cost analysis** — understand where costs originate per table + - **Capacity mode** — choose between on-demand and provisioned + - **Auto scaling settings** — tune scaling policies for provisioned tables + - **Table class selection** — Standard vs. Standard-IA for infrequent access patterns + - **Unused resources** — identify and remove idle tables, indexes, backups + - **Usage patterns** — optimize read/write patterns (e.g., batch operations, query vs. scan) + - **Streams usage** — evaluate DynamoDB Streams cost impact + - **Right-sized provisioning** — match provisioned capacity to actual demand + +## Commands and Syntax + +No commands on this page — it is a navigation hub to sub-pages. + +## Relationships + +- **Capacity mode** ties to provisioned vs. on-demand throughput pricing +- **Auto scaling** and **right-sized provisioning** are complementary — auto scaling automates what right-sizing targets manually +- **Table class** connects to access frequency patterns (Standard-IA for tables with infrequent reads) +- **Usage patterns** connects to best practices for queries, scans, and batch operations +- **Streams usage** connects to DynamoDB Streams and event-driven architectures (Lambda triggers, KDS) + +## Exam-Relevant Points + +- Know all eight cost optimization levers — exam questions often ask "which action reduces DynamoDB costs" for a given scenario +- **Table class** (Standard vs. Standard-IA) is a common exam topic: Standard-IA lowers storage costs but has higher read/write costs +- **Capacity mode selection** (on-demand vs. provisioned) is frequently tested — on-demand suits unpredictable traffic, provisioned with auto scaling suits steady workloads +- Unused GSIs and idle tables are common cost waste scenarios tested in exam questions +- Right-sized provisioning prevents over-provisioning, which is a key cost optimization strategy for provisioned mode tables + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-general-nosql-designhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-general-nosql-designhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1507ca876fc4df29eb9c2afea680cbe606cfedd4 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-general-nosql-designhtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-general-nosql-design.html +source: sources/amazondynamodb-latest-developerguide-bp-general-nosql-designhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:23 + + + +## Overview + +This page covers the fundamental principles of NoSQL data modeling for Amazon DynamoDB, contrasting it with relational database design. It emphasizes that DynamoDB schema design must be driven by known access patterns rather than normalized data models, and introduces key design strategies for performance and scalability. + +## Key Concepts + +- **RDBMS vs NoSQL tradeoff**: RDBMS offers flexible querying but expensive/poorly-scaling queries; DynamoDB offers efficient querying but only for a limited number of pre-planned access patterns. +- **Schema design is access-pattern-driven**: You must know your query patterns *before* designing your DynamoDB schema — the opposite of RDBMS where you normalize first and optimize later. +- **Fewer tables is better**: Maintain as few tables as possible — improves scalability, simplifies permissions, reduces overhead and backup costs. Single-table design with inverted indexes is preferred. +- **Three properties to understand before designing**: + - **Data size** — how much data is stored/requested at once; informs partitioning strategy + - **Data shape** — data should be stored in the shape it will be queried (no reshape at query time) + - **Data velocity** — peak query loads determine how to partition for optimal I/O capacity +- **Four general design principles**: + - **Keep related data together** (locality of reference) — most important performance factor + - **Use sort order** — group related items via key design so they sort together + - **Distribute queries** — spread traffic evenly across partitions to avoid hot spots + - **Use global secondary indexes (GSIs)** — enable alternative query patterns cheaply +- **Exception to single-table**: High-volume time series data or datasets with very different access patterns may warrant separate tables. + +## Commands and Syntax + +No CLI commands or API syntax on this page. References **NoSQL Workbench** as the visual tool for data modeling, visualization, sample data generation, and query development (available for Windows, macOS, Linux). + +## Relationships + +- Prerequisite for: [Modeling relational data in DynamoDB](bp-modeling-nosql), [partition key design](bp-partition-key-design), [sort key design](bp-sort-keys), [GSI design](bp-indexes), [single-table design patterns](bp-adjacency-graphs) +- Related tools: [NoSQL Workbench](workbench) for visual modeling +- Connects to: capacity modes (provisioned vs on-demand), partitioning internals, query/scan operations + +## Exam-Relevant Points + +- DynamoDB schema design **must start from access patterns**, not from a normalized entity model. +- Single-table design is the recommended default; fewer tables = better scalability and lower cost. +- **Locality of reference** (keeping related data together) is the single most important performance principle. +- Hot partitions are a key anti-pattern — design keys to **distribute queries evenly**. +- GSIs provide alternative query capabilities without affecting main table performance. +- Data should be **pre-shaped** to match query output — DynamoDB does not reshape data at query time like RDBMS. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-global-table-designhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-global-table-designhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d1f7fbda9cf260aca0c6e834268e4a69018f8ccc --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-global-table-designhtml.md @@ -0,0 +1,89 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-global-table-design.html +source: sources/amazondynamodb-latest-developerguide-bp-global-table-designhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:24 + + + +## Overview + +DynamoDB global tables provide a fully managed, multi-Region, multi-active database that automatically replicates data across chosen AWS Regions. The feature supports two consistency modes—multi-Region eventual consistency (MREC) and multi-Region strong consistency (MRSC, introduced June 2025)—and requires no application code changes since it uses existing DynamoDB APIs. This guide covers design facts, consistency modes, write models, routing strategies, evacuation processes, and capacity planning. + +## Key Concepts + +- **Two versions exist**: current V2 (2019.11.21) and legacy V1 (2017.11.29); this guide covers V2 only +- **Availability**: single-Region DynamoDB = 99.99% SLA; global tables = 99.999% SLA +- **No global endpoint**: all requests go to a Regional endpoint accessing the local replica +- **Best practice**: applications should only access the local DynamoDB endpoint, never cross-Region calls +- **Active-active replication**: every Region's replica has equal standing for reads and writes (both MREC and MRSC) +- **Items replicated individually**: items updated in a single transaction may not replicate together + +### MREC (Multi-Region Eventual Consistency) +- Default mode if none specified at creation +- Replication usually within ~1 second; nearby Regions faster +- **Last writer wins** conflict resolution based on write timestamp (conflicts not logged in CloudWatch or CloudTrail) +- Local Region accepts writes even if remote replica is offline; retries until replication succeeds +- `ReplicationLatency` CloudWatch metric tracks lag per Region pair (no SLA on this) +- Can add/remove Regions (including original) at any time +- RPO measured in seconds (equal to replication delay) + +### MRSC (Multi-Region Strong Consistency) +- Writes are **synchronously** replicated to at least one other Region before returning success +- Strongly consistent reads on any replica return the latest version +- `ReplicatedWriteConflictException` raised when concurrent writes to same item in different Regions (retryable) +- **Must deploy in exactly 3 Regions**: 3 replicas, or 2 replicas + 1 witness +- Witness: participates in quorum but holds no queryable data, no storage/write costs +- **RPO of zero** (no data loss on Region failure) +- Higher write and strongly consistent read latencies due to cross-Region communication +- Eventually consistent reads have no extra latency +- **Not supported**: transaction APIs, TTL, local secondary indexes (LSIs) +- Cannot change consistency mode after creation; cannot mix modes within a table +- Available only within defined Region sets (US, EU, AP); cannot span sets +- Quorum requires at least 2 Regions available; if only 1 remains, only eventually consistent reads work + +### Use Cases (MREC) +- Lower-latency reads (data closer to users) +- Lower-latency writes (write to nearest Region) +- Seamless Region migration (add new, delete old) + +### Use Cases (Both) +- Disaster recovery and increased resiliency +- Region evacuation for degraded performance or outages + +## Commands and Syntax + +- No special APIs required—global tables use standard DynamoDB APIs +- Use `DescribeTable` API to determine if an MRSC global table has a witness and its Region +- Monitor replication with CloudWatch `ReplicationLatency` metric (stored in source Region) +- MRSC latency testing: open-source [tester tool](https://github.com/awslabs/amazon-dynamodb-tools/tree/main/tester) + +## Relationships + +- **Route 53 / Global Accelerator**: used for request routing strategies to direct traffic to appropriate Regions +- **Amazon Application Recovery Controller (ARC)**: readiness checks for evacuation processes +- **CloudWatch**: `ReplicationLatency` monitoring, Contributor Insights (MRSC reports per-Region only) +- **CloudTrail**: write conflicts in MREC are NOT logged +- **AWS Multi-Region Fundamentals**: global tables fit within broader multi-Region architecture patterns +- **DynamoDB transactions**: supported with MREC but NOT with MRSC +- **DynamoDB Streams / TTL / LSI**: TTL and LSI not supported with MRSC + +## Exam-Relevant Points + +- Global tables increase SLA from 99.99% to 99.999% +- MREC is the **default** consistency mode; mode **cannot be changed** after creation +- MREC uses **last writer wins** (timestamp-based); conflicts are silent (no CloudTrail/CloudWatch logging) +- MRSC requires **exactly 3 Regions** from the **same Region set**; cannot span US/EU/AP +- MRSC witness: no read/write capability, no storage/write costs, doesn't appear in your account +- MRSC does **not** support transactions, TTL, or LSIs +- MRSC RPO = zero; MREC RPO = replication delay (typically seconds) +- `ReplicatedWriteConflictException` is specific to MRSC and is retryable +- Eventually consistent reads work with no extra latency in MRSC; strongly consistent reads add cross-Region latency +- If only one MRSC Region remains available, only eventually consistent reads are served +- Items replicate individually—transaction atomicity does not extend across replication +- No global endpoint exists; always use Regional endpoints +- When a Region recovers, replication catches up automatically with no manual action required + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-indexeshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-indexeshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..8f3dbfb1655cb8e4e5cd1ab999a54e9291fcfb70 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-indexeshtml.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-indexes.html +source: sources/amazondynamodb-latest-developerguide-bp-indexeshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:24 + + + +## Overview + +This page covers best practices for designing and using secondary indexes (both Global Secondary Indexes and Local Secondary Indexes) in DynamoDB. It addresses efficient index usage, projection strategies, sparse indexes, GSI overloading, write sharding, and materialized aggregation queries — all aimed at optimizing cost and performance. + +## Key Concepts + +- **Secondary indexes are powerful but costly** — overusing them or designing them inefficiently adds cost and reduces performance +- **Sparse indexes** — indexes where only items with the index key attributes appear; useful for querying subsets of data efficiently +- **GSI overloading** — using a single GSI to support multiple query patterns by storing different entity types with the same index key attribute names but different meanings +- **GSI write sharding** — distributing writes across multiple GSI partitions to avoid hot partitions and enable selective table queries +- **Materialized aggregation queries** — pre-computing aggregations using DynamoDB Streams + Lambda, then storing results in a GSI for fast retrieval +- **Projection selection** — choosing which attributes to project into an index affects storage cost, write cost, and whether fetches back to the base table are needed +- **Item-collection size limits** — Local Secondary Indexes contribute to the 10 GB item-collection size limit per partition key value +- **Eventually consistent replicas** — GSIs can serve as read-only eventually consistent replicas of the base table + +## Commands and Syntax + +No specific CLI commands on this page — it is a best-practices guide. Key design patterns: + +- **Sparse index**: Only include the index key attribute on items you want indexed; items without the attribute are omitted from the index +- **Write sharding pattern**: Add a synthetic shard attribute (e.g., `ShardId = hash(PK) mod N`) as the GSI partition key to distribute load +- **Aggregation pipeline**: DynamoDB Streams → Lambda function → write aggregated results back to the table with a GSI-projected attribute + +## Relationships + +- **DynamoDB Streams + Lambda** — used for the materialized aggregation pattern +- **GSI vs LSI** — GSIs are more flexible (different partition key), LSIs share the base table's partition key and have collection size limits +- **Capacity modes** — index writes consume WCUs (provisioned) or write request units (on-demand), so index count directly impacts cost +- **Single-table design** — GSI overloading is a core technique in single-table design patterns +- **Partition key design** — write sharding on GSIs relates to broader partition key best practices + +## Exam-Relevant Points + +- **LSIs have a 10 GB item-collection size limit** per partition key value; GSIs do not +- **Sparse indexes** only contain items that have the index key attributes — this is by design and useful for filtering +- **GSI overloading** allows a single index to serve multiple access patterns, reducing the total number of indexes needed (max 20 GSIs per table) +- **Projecting only needed attributes** reduces index storage and write costs; projecting ALL attributes doubles storage but avoids fetches +- **Fetches** (reads back to the base table for non-projected attributes) are expensive and should be avoided for frequent queries +- **GSIs are eventually consistent only** — they cannot support strongly consistent reads +- **Write sharding** uses a synthetic partition key to spread load across GSI partitions, enabling parallel query execution across shards +- **Materialized aggregations** trade write-time compute (via Streams + Lambda) for fast read-time queries on pre-computed results + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-migrating-table-between-accountshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-migrating-table-between-accountshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..bb775ac7483a97fe76f70b22a73cc834056d0afc --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-migrating-table-between-accountshtml.md @@ -0,0 +1,39 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-migrating-table-between-accounts.html +source: sources/amazondynamodb-latest-developerguide-bp-migrating-table-between-accountshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:24 + + + +## Overview +This page covers two methods for migrating DynamoDB tables between AWS accounts: AWS Backup cross-account backup/restore, and DynamoDB Export/Import via S3. Common use cases include multi-account strategies, backup strategies, testing, debugging, compliance, and copying tables across production/staging/test/dev environments. + +## Key Concepts +- **Two migration methods exist:** AWS Backup cross-account, and S3 export/import +- **AWS Backup method** requires both accounts to be in the same AWS Organization +- **S3 export/import method** works across accounts that are NOT in the same Organization +- **Import from S3 does not support tables with Local Secondary Indexes (LSIs)** — this is a key limitation +- **Import from S3 does support Global Secondary Indexes (GSIs)** +- AWS Backup is a fully managed service for centralized backup management across multiple AWS services + +## Commands and Syntax +No specific CLI commands on this page — it serves as an overview linking to detailed sub-pages for each method. + +## Relationships +- **AWS Backup** — cross-account backup/restore feature +- **S3 Export/Import** — DynamoDB's native export-to-S3 and import-from-S3 features +- **AWS Organizations** — determines which migration method is available +- **Secondary Indexes** — LSI limitation on import is critical; GSIs are supported +- **Multi-account strategy** — ties into AWS account governance and environment separation patterns + +## Exam-Relevant Points +- **S3 import does NOT support LSIs, but DOES support GSIs** — likely tested as a trick question +- **AWS Backup cross-account requires same AWS Organization** — key constraint to remember +- **S3 export/import is the alternative when accounts are NOT in the same Organization** +- Know which method to recommend based on whether accounts share an Organization +- Both methods support full table migration, but the choice depends on organizational structure + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-modeling-nosqlhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-modeling-nosqlhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d8f1b71c843778f6360c1784e3714ad8f2f215db --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-modeling-nosqlhtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-modeling-nosql.html +source: sources/amazondynamodb-latest-developerguide-bp-modeling-nosqlhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:25 + + + +## Overview + +This page describes the essential first steps for modeling relational data in DynamoDB, emphasizing that NoSQL schema design requires identifying all access patterns **before** designing the table structure — a fundamentally different approach from RDBMS normalized modeling. + +## Key Concepts + +- **Access-pattern-first design**: You must know all questions your schema needs to answer before you start designing. Unlike RDBMS, you cannot normalize first and extend later. +- **Access pattern discovery**: For new apps, derive patterns from user stories; for existing apps, analyze query logs. +- **Three design approaches**: + - **Single Table Design** — composite sort keys, overloaded GSIs, adjacency list patterns; multiple entity types in one table. Best when entities have high access correlation and similar operational characteristics. + - **Multi-Table Design** — separate tables for entities with independent operational needs, low access correlation, and different access patterns. Provides clear operational boundaries. + - **Aggregate Design** — embed related data accessed together (e.g., Order + OrderItems) or use item collections for relationships (e.g., Product + Inventory). +- **Goal**: Structure data so any access pattern can be served by a **single query** on a table or index. + +## Commands and Syntax + +- No CLI commands on this page. +- References **NoSQL Workbench** for visualizing partition key design (`workbench.Modeler`). + +## Relationships + +- Connects to **NoSQL Workbench** for visual modeling. +- Foundational to all subsequent DynamoDB schema design topics: GSI overloading, adjacency lists, composite sort keys, denormalization. +- Relates to **best practices for partition key design**, **sort key design**, and **GSI design**. +- Upstream of single-table vs. multi-table design decision patterns. + +## Exam-Relevant Points + +- DynamoDB schema design **starts with access patterns**, not entity relationships — this is the most commonly tested distinction from RDBMS design. +- You should be able to serve each access pattern with a **single query** (no joins, no multi-step lookups). +- Know when to choose single-table vs. multi-table: high access correlation → single table; independent operational requirements → multi-table. +- Aggregate design embeds data that is **always accessed together**; item collections model identifying relationships. +- For existing migrations, **query log analysis** is the recommended method to discover access patterns. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-partition-key-designhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-partition-key-designhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e1fe523dbbfa5af0bb9016dfb6c6346540289897 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-partition-key-designhtml.md @@ -0,0 +1,43 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-partition-key-design.html +source: sources/amazondynamodb-latest-developerguide-bp-partition-key-designhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:25 + + + +## Overview +This page covers best practices for designing effective partition keys in DynamoDB, focusing on achieving uniform workload distribution across partitions to maximize throughput and avoid hot partitions. + +## Key Concepts +- **Primary key types**: Simple (partition key only) or composite (partition key + sort key) +- **Design goal**: Uniform activity across all partition keys in tables and secondary indexes +- **Per-partition throughput limits**: + - **3,000 RCUs** (read capacity units) per second per partition + - **1,000 WCUs** (write capacity units) per second per partition +- **Read unit definition**: 1 strongly consistent read/sec OR 2 eventually consistent reads/sec, for items up to **4 KB** +- **Write unit definition**: 1 write/sec for items up to **1 KB** +- **Item size affects throughput**: A 20 KB item consumes 5 RCUs per strongly consistent read, reducing effective reads per partition to 600/sec +- **Adaptive capacity** applies to both on-demand and provisioned capacity modes +- **Total table throughput** is constrained by provisioned throughput (provisioned mode) or table-level throughput limit (on-demand mode) + +## Commands and Syntax +No commands or API calls on this page — it is a conceptual best-practices guide pointing to sub-topics. + +## Relationships +- **Partition key design patterns**: Links to sub-topics on uniform load distribution, write sharding, and efficient data upload +- **Capacity modes**: Connects to provisioned vs. on-demand capacity mode decisions +- **Secondary indexes**: Partition key design applies equally to GSIs and LSIs +- **Service Quotas**: Per-partition limits interact with account-level and table-level quotas + +## Exam-Relevant Points +- **3,000 RCU / 1,000 WCU per partition** — a frequently tested limit +- Know the math: a 20 KB item = ceil(20/4) = **5 RCUs** per strongly consistent read +- Eventually consistent reads are **half the cost** of strongly consistent reads +- Write unit size is **1 KB** (not 4 KB like reads) — a common trick question +- Uniform partition key access is the **single most important DynamoDB design principle** +- Adaptive capacity helps mitigate hot partitions but does **not eliminate** the need for good key design + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-query-scanhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-query-scanhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..81effa70e99e1daf94aa4cd1059978396a4ae098 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-query-scanhtml.md @@ -0,0 +1,44 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-query-scan.html +source: sources/amazondynamodb-latest-developerguide-bp-query-scanhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:25 + +## Overview +This page covers best practices for using `Query` and `Scan` operations in DynamoDB, focusing on minimizing performance impact, avoiding throughput spikes, and leveraging parallel scans effectively. + +## Key Concepts +- **Scan is inherently inefficient**: it always reads the entire table or secondary index, then filters out unwanted results — you pay for reading everything, not just what matches +- **Query is always preferred over Scan** for performance; also consider `GetItem` and `BatchGetItem` for direct lookups +- A single Scan can consume significant read capacity: 1 MB page / 4 KB items / 2 (eventually consistent) = **128 read operations per page**; strongly consistent doubles this to **256** +- Scans cause **hot partitions** because they read sequentially adjacent items, concentrating all capacity consumption on one partition +- `ProvisionedThroughputExceeded` exceptions result when scans starve other requests of capacity +- **Four throughput usage patterns** (best to worst): even distribution → burst requests → few random large requests → large scan operations + +## Commands and Syntax +- **Reduce page size**: use the `Limit` parameter on Scan/Query to set a smaller page size (e.g., 40 items of 4 KB each = 20 eventually consistent reads per request) +- **Parallel Scan parameters**: + - `TotalSegments`: set between 1 and 1,000,000; recommended starting ratio is **1 segment per 2 GB of data** (e.g., 30 GB table → `TotalSegments = 15`) + - Multiple worker threads each scan a different segment concurrently +- **Retry with exponential backoff** when receiving `ProvisionedThroughputExceeded` +- **`UpdateTable`** to increase provisioned throughput for temporary spikes + +## Relationships +- **Capacity model**: ties directly to provisioned throughput (RCUs/WCUs) and on-demand capacity modes +- **Secondary indexes (GSI)**: a GSI can sometimes replace a Scan by enabling a Query on a different access pattern +- **Partition key design**: poor key design compounds Scan hot-partition problems +- **Error handling**: links to DynamoDB error retries and exponential backoff patterns +- **Table design**: relates to single-table design, item collections, and access pattern modeling + +## Exam-Relevant Points +- A 1 MB eventually consistent Scan of 4 KB items consumes **128 RCUs**; strongly consistent consumes **256 RCUs** +- **Always prefer Query over Scan** — this is a recurring exam theme +- Parallel scan is appropriate when table is **≥ 20 GB**, read throughput is underutilized, and sequential scan is too slow +- `TotalSegments` starting guideline: **1 segment per 2 GB** +- Techniques to reduce Scan impact: **reduce page size** (Limit parameter), **isolate scans** to shadow/non-critical tables +- Scans cause hot partitions because they read contiguous items from the same partition +- Use **exponential backoff** for throttled requests + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-relational-modelinghtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-relational-modelinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e375071d71f8a571a99bad72a6e617a13873db67 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-relational-modelinghtml.md @@ -0,0 +1,58 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-relational-modeling.html +source: sources/amazondynamodb-latest-developerguide-bp-relational-modelinghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:25 + + + +## Overview + +This page explains best practices for modeling relational data in DynamoDB, contrasting traditional RDBMS normalized data models with DynamoDB's denormalized approach. It covers why DynamoDB eliminates JOIN operations, how its transaction model avoids RDBMS scaling bottlenecks, and why these design choices enable consistent single-digit millisecond performance at any scale. + +## Key Concepts + +- **Normalization vs. Denormalization**: RDBMS normalizes data to reduce duplication and support referential integrity; DynamoDB encourages denormalization to eliminate JOINs and answer queries in a single request. +- **JOIN elimination**: The core principle of NoSQL data modeling — store data so that JOINs are unnecessary, reducing runtime query complexity. +- **Constant runtime complexity**: DynamoDB operations have constant complexity regardless of data size (for common access patterns), unlike SQL JOINs whose complexity grows with table size and number of joins. +- **Performance bottlenecks in RDBMS**: CPU time and network latency are typically more constrained than disk storage — normalization saves disk but costs CPU/network. +- **DynamoDB was built to support Amazon.com** — designed from the ground up for consistent performance at scale. +- **RDBMS scaling problems**: Expensive joins, multiple writes across normalized tables, and ACID transaction overhead. +- **DynamoDB scaling advantages**: Schema flexibility for hierarchical data in single items, composite keys for co-locating related items, bounded single-operation transactions. + +## Commands and Syntax + +- **Typical RDBMS query** (what DynamoDB avoids): + ```sql + SELECT * FROM Orders + INNER JOIN Order_Items ON Orders.Order_ID = Order_Items.Order_ID + INNER JOIN Products ON Products.Product_ID = Order_Items.Product_ID + INNER JOIN Inventories ON Products.Product_ID = Inventories.Product_ID + ORDER BY Quantity_on_Hand DESC + ``` +- **Typical DynamoDB query pattern** (simplified): + ```sql + SELECT * FROM Table_X WHERE Attribute_Y = "somevalue" + ``` +- **Transaction APIs**: `TransactWriteItems` and `TransactGetItems` — no begin/end semantics, **100-item limit** per transaction. + +## Relationships + +- **DynamoDB Transactions**: Links to [Working with transactions](./transactions.html) for details on `TransactWriteItems`/`TransactGetItems`. +- **NoSQL data modeling**: This is a prerequisite page for [First steps for modeling relational data](./bp-modeling-nosql.html) and [Example of modeling relational data](./bp-modeling-nosql-B.html). +- **Composite key design / single-table design**: Related to partition key best practices and GSI design patterns. +- **Schema flexibility**: Connects to DynamoDB's support for complex/nested attribute types (maps, lists). + +## Exam-Relevant Points + +- DynamoDB eliminates JOINs through **denormalization** — this is the fundamental NoSQL modeling principle. +- DynamoDB provides **single-digit millisecond performance at any scale** due to constant runtime complexity. +- DynamoDB transactions are limited to **100 items** per transaction call. +- DynamoDB transactions use **two API operations**: `TransactWriteItems` and `TransactGetItems` — they have **no begin/end semantics** (unlike RDBMS transactions). +- RDBMS performance degrades at scale due to: expensive joins, multi-table normalized writes, and ACID transaction overhead. +- DynamoDB scales well due to: schema flexibility (hierarchical data in single items), composite keys (co-located related items), and bounded single-operation transactions. +- **Denormalization trade-off**: DynamoDB may store duplicate data, but gains constant-time query performance — the bottleneck shifts from disk to CPU/network. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-sort-keyshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-sort-keyshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..885a63d7f2af988c6714e802522432e005fe76d0 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-sort-keyshtml.md @@ -0,0 +1,54 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-sort-keys.html +source: sources/amazondynamodb-latest-developerguide-bp-sort-keyshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:26 + + + +## Overview + +This page describes best practices for designing sort keys in DynamoDB tables to efficiently organize, query, and retrieve related data. It covers two main patterns: using composite sort keys for hierarchical data and using sort key prefixes for version control. + +## Key Concepts + +- Sort keys gather related information together for efficient querying using range operators (`begins_with`, `between`, `>`, `<`) +- **Composite sort keys** define hierarchical (one-to-many) relationships using a delimiter-separated structure (e.g., `[country]#[region]#[state]#[county]#[city]#[neighborhood]`) +- Hierarchical sort keys allow range queries at any level of aggregation +- **Version control pattern**: maintain two copies of each item — a `v0_` prefix copy (always the latest) and a versioned copy (`v1_`, `v2_`, etc.) for history +- The `v0_` item is overwritten with each new revision's contents, making latest-version retrieval a simple prefix query +- Full revision history is retrieved by querying all items under the partition key and filtering out `v0_` + +## Commands and Syntax + +**Hierarchical sort key structure:** +``` +[country]#[region]#[state]#[county]#[city]#[neighborhood] +``` + +**Version control sort key pattern:** +- Latest version: sort key = `v0_Audit` +- Historical versions: sort key = `v1_Audit`, `v2_Audit`, etc. +- Query latest: use `begins_with(SK, "v0_")` +- Query history: query all items under the partition key, optionally filter out `v0_` + +## Relationships + +- **Partition keys**: sort keys work alongside partition keys to form composite primary keys +- **Query API**: sort key design directly impacts which queries are efficient (`Query` with key conditions) +- **Secondary indexes**: sort key design patterns apply equally to LSIs and GSIs +- **Single-table design**: composite sort keys are a core technique in DynamoDB single-table modeling +- **Data modeling best practices**: connects to partition key design, adjacency list patterns, and hierarchical data patterns + +## Exam-Relevant Points + +- Sort keys enable **range queries** — know the supported operators: `begins_with`, `between`, `>`, `<`, `=` +- The `#` delimiter in composite sort keys enables querying at any level of a hierarchy +- The **version control pattern** uses `v0_` as a "current version" pointer — this is a well-known DynamoDB design pattern +- Two copies are created for each item revision: one with `v0_` (latest) and one with the actual version number (history) +- This pattern supports audit/compliance requirements without requiring a separate "latest" lookup mechanism +- Sort keys define the **physical ordering** of items within a partition, making range queries on sort key very efficient + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-switching-capacity-modeshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-switching-capacity-modeshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..885c115e67bcc63b3e0d174c560325559cae30d1 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-switching-capacity-modeshtml.md @@ -0,0 +1,44 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-switching-capacity-modes.html +source: sources/amazondynamodb-latest-developerguide-bp-switching-capacity-modeshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:26 + + + +## Overview +This page covers the considerations and behavior when switching DynamoDB tables between on-demand and provisioned capacity modes, including throughput guarantees during transitions, auto scaling behavior, and best practices for each direction of switch. + +## Key Concepts +- You can switch from **provisioned → on-demand** up to **4 times per 24-hour rolling window** +- You can switch from **on-demand → provisioned** at **any time** (no limit) +- During the switch, the table continues to deliver throughput consistent with previous capacity settings +- The switching process takes **several minutes** as DynamoDB restructures partitions +- **Initial on-demand throughput floor**: tables below 4,000 WCU / 12,000 RCU are scaled up to at least those minimums when first switched to on-demand +- DynamoDB remembers the **historical peak** — even if you reduced provisioned capacity before switching, the previous peak is used (e.g., previously 10,000 WCU but currently 10 WCU → on-demand sustains 10,000 WCU) +- On-demand tables can optionally have **maximum throughput caps** configured to bound costs + +## Commands and Syntax +- **Bulk edit via console**: Tables page → select tables → Actions → "Update to on-demand capacity mode" +- **CloudWatch metrics to review before switching to provisioned**: `ConsumedWriteCapacityUnits` and `ConsumedReadCapacityUnits` +- No specific CLI commands documented on this page; switching is done via `update-table` with `--billing-mode` + +## Relationships +- **On-demand capacity mode** — pay-per-request pricing model +- **Provisioned capacity mode** — pre-set RCU/WCU with optional auto scaling +- **Auto scaling**: Console deletes auto scaling settings when switching to on-demand; CLI/SDK preserves them +- **Global tables**: When switching to provisioned, use the **maximum consumption across all regional replicas** to set throughput +- **CloudWatch**: Essential for determining correct provisioned settings based on historical consumption +- **Maximum throughput for on-demand**: Related feature for cost bounding + +## Exam-Relevant Points +- **4 switches per 24 hours** from provisioned → on-demand (hard limit); unlimited switches from on-demand → provisioned +- Default on-demand floor: **4,000 WCU / 12,000 RCU** for tables that never exceeded those values +- Previous peak provisioned capacity is preserved and used as the on-demand baseline, regardless of current provisioned settings +- Auto scaling behavior differs by tool: **console deletes** settings, **CLI/SDK preserves** them +- Recommended auto scaling defaults when switching to provisioned: **70% target utilization**, **5 units minimum**, **Region maximum** for max +- For global tables switching to provisioned: base settings on the **maximum** consumption across **all replicas** + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-table-designhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-table-designhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2ea522c73aa364d903a07625319fb0bf91ae15a7 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-table-designhtml.md @@ -0,0 +1,37 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-table-design.html +source: sources/amazondynamodb-latest-developerguide-bp-table-designhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:26 + + + +## Overview +This page covers best practices for DynamoDB table design, emphasizing the general recommendation to minimize the number of tables (ideally using a single-table design) and providing guidance for scenarios where multiple tables are necessary. + +## Key Concepts +- **Single-table design is preferred**: DynamoDB best practices recommend keeping the number of tables to a minimum, with single-table design as the default recommendation. +- **Table limit per account**: There is a hard cap of 10,000 tables per account that cannot be increased. +- **Multi-account distribution**: If an application requires more than 10,000 tables, they must be distributed across multiple AWS accounts. +- **Control plane limits**: Concurrent control plane operations (create, update, delete table) have limits that can impact table management at scale. +- **Multi-tenant design validation**: AWS recommends working with AWS Solution Architects to validate design patterns for multi-tenant architectures. + +## Commands and Syntax +No specific commands or syntax are described on this page. + +## Relationships +- **Service Quotas**: Directly references the DynamoDB service, account, and table quotas documentation for table limit details. +- **Single-table design**: Connects to broader DynamoDB data modeling best practices (partition key design, sort key design, GSI overloading). +- **Multi-tenant architecture**: Relates to patterns like table-per-tenant vs. shared-table with tenant isolation via partition keys. +- **Control plane operations**: Relates to DynamoDB API operations for table lifecycle management (CreateTable, UpdateTable, DeleteTable). + +## Exam-Relevant Points +- The per-account table limit is **10,000 tables** and **cannot be increased** — this is a hard limit. +- The recommended approach is to use a **single table** (or minimal number of tables) rather than many tables. +- To exceed the 10,000 table limit, you must **distribute tables across multiple AWS accounts**. +- **Control plane operations** have concurrency limits that are separate from data plane throughput limits. +- Multi-tenant designs should be validated with AWS Solution Architects, implying there is no single correct pattern — it depends on the use case. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-time-serieshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-time-serieshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9771e47a50a8e84c6bbe1a45e48d56bf7b0c09b8 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-time-serieshtml.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-time-series.html +source: sources/amazondynamodb-latest-developerguide-bp-time-serieshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:27 + + + +## Overview + +This page describes DynamoDB best practices for handling time series data — high-volume, time-ordered event streams where recent data is accessed frequently and older data rarely. The recommended pattern breaks from the general "single table" guidance by using **one table per time period**. + +## Key Concepts + +- **Time series data** warrants an exception to DynamoDB's general "minimize number of tables" recommendation +- The core access pattern: writes target the current period; reads are heavily skewed toward recent data +- **Table-per-period pattern**: create a separate table for each time period (e.g., day, week, month) +- Build the current date/time into the **primary key** to naturally partition time series events +- **Prebuild** the next period's table before the current period ends, then redirect traffic +- Table names can encode the period they cover for easy identification +- **Scale down provisioned capacity** on older tables: reduce write capacity to ~1 WCU once writes stop; reduce read capacity as the table ages +- Older tables can be **archived or deleted** when no longer needed +- Consider **write sharding** to distribute traffic evenly across logical partition keys during high-volume writes + +## Commands and Syntax + +No specific CLI commands are provided. The pattern is architectural: + +1. Create table for period N+1 (with full read/write capacity and indexes) +2. At period boundary, redirect writes to new table +3. Reduce old table's write capacity (e.g., to 1 WCU) +4. Progressively reduce read capacity on aging tables +5. Archive/delete tables that are no longer needed + +## Relationships + +- **Partition key design** — write sharding (`bp-partition-key-sharding`) helps distribute hot writes within a period table +- **Provisioned capacity mode** — the pattern relies on adjusting provisioned throughput over time (not applicable in the same way with on-demand mode) +- **Table management** — lifecycle of tables (create, update capacity, delete) via DynamoDB control plane +- **Cost optimization** — directly related to DynamoDB billing best practices by right-sizing capacity over time + +## Exam-Relevant Points + +- Time series data is a **known exception** to the "use as few tables as possible" best practice +- The pattern is **one table per application per period** — not one table for all time series data +- You must **prebuild** the next period's table before the current period ends +- After a table stops receiving writes, reduce write capacity to a minimal value (e.g., 1 WCU) to save costs +- Write sharding can be combined with this pattern to handle high-volume ingestion +- This pattern optimizes both **cost** (scaled-down old tables) and **performance** (dedicated capacity for current table) + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-understanding-billinghtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-understanding-billinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..bd63d03094505f09e6370e2c38475c32ddbd632e --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-understanding-billinghtml.md @@ -0,0 +1,65 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-understanding-billing.html +source: sources/amazondynamodb-latest-developerguide-bp-understanding-billinghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:27 + + + +## Overview + +This page documents the `UsageType` billing codes found in AWS Cost and Usage Reports (CUR) for DynamoDB and its related services (AWSBackup, AmazonCloudWatch, AmazonDAX). It explains how to read CUR line items, decode region prefixes, and understand charges across seven billing categories: throughput capacity, streams, storage, backup/restore, data transfer, CloudWatch Contributor Insights, and DAX. + +## Key Concepts + +- **CUR (Cost and Usage Reports)** can be exported to S3 as CSV, broken down by hour/day/month, optionally by resource ID. +- **UsageType format**: `REG-UsageType` where `REG` is an optional billing region code. Absent prefix = `us-east-1`. +- **ProductCode for DynamoDB**: `AmazonDynamoDB`. Some related charges appear under `AWSBackup`, `AmazonCloudWatch`, or `AmazonDAX`. +- **Provisioned capacity** is billed per RCU-hour / WCU-hour; **on-demand** is billed per read/write request unit (RRU/WRU). +- **Reserved capacity** covers provisioned mode only, standard table class only, single-region. Available in 1-year and 3-year terms (same SKUs). Includes upfront + monthly charges. +- **Standard-IA table class** has separate UsageTypes (prefixed `IA-`), applying to both provisioned and on-demand modes. +- **Global tables** use replicated write units (rWCU for provisioned, rWRU for on-demand). GSI writes on global tables use standard WCU/WRU. Adding a replica incurs restore charges + data transfer out. +- **Storage** is calculated hourly, priced monthly (GB-month). CUR values are higher than `DescribeTable` because they include per-item storage overhead. +- **DynamoDB Streams**: `GetRecords` calls billed as stream read requests. Lambda triggers and global table replication reads are **free**. +- **Kinesis CDC**: 1 change data capture unit per write (up to 1 KB); larger items cost more. +- **Data transfer**: inbound is free; same-region inter-service is free; cross-region is charged on both sides. +- **PITR storage** is billed continuously while enabled; on-demand backup storage is adjusted monthly. +- **DAX** is billed per node-hour (partial hours billed as full). Charges appear under `AmazonDAX`, not `AmazonDynamoDB`. +- **CloudWatch Contributor Insights** charges per event processed and per managed rule. A table with a sort key generates 2 events per read/write. Charges under `AmazonCloudWatch`. + +## Commands and Syntax + +- **Generate CUR**: Configure via AWS Billing Console → Cost and Usage Reports → create report with desired granularity (hour/day/month) and optional resource ID breakdown. +- **CUR key attributes**: + - `lineitem/ProductCode` — `AmazonDynamoDB`, `AWSBackup`, `AmazonCloudWatch`, or `AmazonDAX` + - `lineitem/UsageType` — e.g., `USW2-ReadRequestUnits`, `EU-WriteCapacityUnit-Hrs` + - `lineitem/Operation` — contextual operation name + - `lineitem/UnblendedCost` — actual cost + +## Relationships + +- **AWS Cost and Usage Reports (CUR)** — the reporting mechanism; CUR data dictionary defines field names +- **AWS Backup** — separate product code for managed DynamoDB backups (warm/cold storage, cross-region copy, restore) +- **CloudWatch Contributor Insights** — diagnostic tool for hot keys/throttled keys, billed under CloudWatch +- **DAX** — caching layer billed under AmazonDAX product code +- **Kinesis Data Streams** — alternative streaming option with CDC-unit billing +- **DynamoDB Global Tables** — replicated write units and restore charges for replica creation +- **S3** — destination for exports, source for imports; export/import size billed under DynamoDB +- **Table classes** (Standard vs Standard-IA) — affect UsageType codes and pricing across all categories + +## Exam-Relevant Points + +- Absent region prefix in UsageType means **us-east-1**. +- Reserved capacity applies **only** to provisioned mode, standard table class, single-region. +- Global table writes use **rWCU/rWRU**, but GSI writes on global tables use **standard WCU/WRU**. +- DynamoDB Streams reads invoked by **Lambda triggers** or **global table replication** are not charged. +- Storage in CUR is **higher** than `DescribeTable` due to per-item overhead inclusion. +- DAX, CloudWatch Contributor Insights, and AWS Backup charges appear under **different ProductCodes**, not `AmazonDynamoDB`. +- Cross-region data transfer is charged **on both sides**. +- Inbound data transfer and same-region inter-service transfer are **free**. +- DAX partial node-hours are billed as **full hours**. +- PITR storage is billed **continuously** while enabled, not just when restores occur. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-use-s3-toohtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-use-s3-toohtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5c79bbffb7ac2f48e7f9e84bc77e3940ed5050f2 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-use-s3-toohtml.md @@ -0,0 +1,39 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-use-s3-too.html +source: sources/amazondynamodb-latest-developerguide-bp-use-s3-toohtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:27 + + + +## Overview +This page covers strategies for handling items that approach or exceed DynamoDB's 400 KB item size limit, including compression, vertical partitioning, and offloading large attributes to Amazon S3. + +## Key Concepts +- **400 KB item size limit** — hard limit per item in DynamoDB; writes exceeding it fail with `ValidationException` +- **`ReturnConsumedCapacity`** — use this parameter on writes to monitor item sizes approaching the limit before they cause failures +- **Compression** — algorithms like GZIP or LZO can shrink large attributes; compressed data is stored as a `Binary` attribute type; trade-off is that compressed values cannot be used for filtering +- **Vertical partitioning** — split a large item into multiple smaller items sharing the same partition key, differentiated by sort key, forming an item collection +- **S3 offloading** — store large data (e.g., images) as S3 objects and keep the S3 object identifier in the DynamoDB item; optionally store the DynamoDB primary key as S3 object metadata for back-linking + +## Commands and Syntax +No specific CLI commands; the key API parameter is: +- `ReturnConsumedCapacity` — set on write operations (PutItem, UpdateItem, etc.) to track consumed capacity and infer item sizes + +## Relationships +- **Item collections** — vertical partitioning creates item collections (items sharing a partition key) +- **Amazon S3** — used as overflow storage; no cross-service transaction support with DynamoDB +- **Binary attribute type** — used for storing compressed data +- **Sort keys** — essential for vertical partitioning to distinguish sub-items + +## Exam-Relevant Points +- DynamoDB item size limit is **400 KB**; exceeding it causes a `ValidationException` +- Three strategies for large items: **compress**, **vertical partition** (sort key), **offload to S3** +- Compressed attributes are stored as **Binary** type and **cannot be filtered** +- DynamoDB does **not support transactions spanning S3 and DynamoDB** — applications must handle orphaned S3 objects +- Use `ReturnConsumedCapacity` to proactively monitor item sizes +- Vertical partitioning groups related sub-items under the same partition key using different sort keys + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-walhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-walhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9f2ac77cd660f89b76eb15a083e1e887c5a88884 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-bp-walhtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-wal.html +source: sources/amazondynamodb-latest-developerguide-bp-walhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:28 + + + +## Overview +The DynamoDB Well-Architected Lens is a specialized extension of the AWS Well-Architected Framework that provides design principles, best practices, and a structured review process specifically for DynamoDB workloads. It covers all six Well-Architected pillars applied to DynamoDB and produces actionable recommendations for workload optimization. + +## Key Concepts +- **Well-Architected Lens**: Domain-specific extension of the AWS Well-Architected Framework; the DynamoDB lens focuses exclusively on DynamoDB workload design +- **Review process**: Can be performed with an AWS Solutions Architect or as self-service; can focus on all six pillars or prioritize specific ones +- **Six pillars applied to DynamoDB**: + - **Performance efficiency** — data modeling, partition/sort key selection, secondary indexes, throughput mode, SDK tuning, caching + - **Cost optimization** — capacity mode and table class selection, autoscaling, efficient querying, reserved capacity, minimizing item size, TTL for aged-out data deletion (at no cost) + - **Operational excellence** — CloudWatch and AWS Config monitoring, alerting/remediation on threshold breaches, infrastructure as code, resource tagging + - **Reliability** — backup strategy aligned to RPO/RTO, global tables for multi-region/DR, retry with exponential backoff via AWS SDK, CloudWatch monitoring + - **Security** — HTTPS for data in transit, encryption key selection for data at rest, IAM roles/policies for fine-grained access, CloudTrail auditing of control and data plane + - **Sustainability** — remove unused resources, avoid over-provisioning (on-demand or provisioned+autoscaling), efficient querying, data compression, TTL + +## Commands and Syntax +No CLI commands described. The review is conducted through the AWS Well-Architected Tool console or via the [DynamoDB Well-Architected Lens GitHub page](https://github.com/aws-samples/custom-lens-wa-hub/tree/main/DynamoDB). + +## Relationships +- **AWS Well-Architected Framework** — parent framework; the DynamoDB lens is one of many technology-specific lenses +- **CloudWatch & AWS Config** — operational excellence and reliability monitoring +- **CloudTrail** — security auditing of DynamoDB control plane and data plane operations +- **Global Tables** — reliability pillar for multi-region and DR +- **DynamoDB TTL** — referenced in cost optimization and sustainability pillars +- **IAM** — security pillar for authentication and fine-grained access control +- **DynamoDB Autoscaling** — referenced across cost optimization, sustainability, and performance pillars + +## Exam-Relevant Points +- The DynamoDB Well-Architected Lens covers **all six** AWS Well-Architected pillars (including sustainability) +- **TTL deletes aged-out data at no cost** — important for both cost optimization and sustainability +- For **reliability**: choose backup strategy based on RPO/RTO; use global tables for low-RTO cross-region DR; implement exponential backoff retries +- For **cost optimization**: choose between on-demand and provisioned+autoscaling capacity modes; use reserved capacity for discounts; minimize item size +- For **security**: DynamoDB supports encryption at rest (with key type selection) and in transit (HTTPS); CloudTrail can audit both control plane and data plane operations +- For **performance efficiency**: data modeling, partition key design, and secondary index design are the primary levers +- The review produces **actionable recommendations** as a direct outcome + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-capacity-modehtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-capacity-modehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b93557797f8462c43c22d7b534c038cb2884f930 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-capacity-modehtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/capacity-mode.html +source: sources/amazondynamodb-latest-developerguide-capacity-modehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:28 + + + +## Overview +This page covers DynamoDB's two throughput capacity modes — **on-demand** and **provisioned** — which determine how table capacity is managed and how you are billed for read/write operations. + +## Key Concepts +- **On-demand mode**: Serverless, auto-scaling, pay-per-request pricing. No capacity planning needed. Scales from zero to millions of requests/sec. +- **Provisioned mode**: You specify required reads/writes per second. Billed hourly for provisioned capacity regardless of actual usage. +- On-demand is the **default and recommended** mode for most workloads. +- Provisioned is suited for **steady, predictable workloads** where capacity can be reliably forecasted. +- Related sub-topics: warm throughput, burst/adaptive capacity, and considerations when switching between modes. + +## Commands and Syntax +No CLI commands or API syntax on this page (it is a conceptual overview linking to detailed sub-pages). + +## Relationships +- **On-demand capacity mode** — detailed in `on-demand-capacity-mode.html` +- **Provisioned capacity mode** — detailed in `provisioned-capacity-mode.html` +- **Warm throughput** — pre-warming behavior for new/updated tables +- **Burst and adaptive capacity** — how DynamoDB handles short spikes beyond provisioned capacity +- **Switching capacity modes** — constraints and best practices when changing modes (`bp-switching-capacity-modes.html`) +- Connects to **Auto Scaling** (provisioned mode can use auto-scaling policies) +- Connects to **billing/cost optimization** best practices + +## Exam-Relevant Points +- On-demand is the **default** throughput mode. +- On-demand = pay-per-request; provisioned = pay for provisioned capacity per hour. +- On-demand requires **no capacity planning**; provisioned requires specifying RCUs/WCUs. +- Choose provisioned for **predictable, steady workloads** to achieve cost predictability. +- Choose on-demand for **unpredictable or spiky workloads**. +- You can switch between modes (with constraints covered in the switching-modes sub-page). + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-console-to-codehtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-console-to-codehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7c4c70a39d7efdd85ac2212f05d6aae9b5db7a3b --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-console-to-codehtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/console-to-code.html +source: sources/amazondynamodb-latest-developerguide-console-to-codehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:28 + + + +## Overview +Console-to-Code is an Amazon Q Developer feature that captures manual DynamoDB table creation steps in the AWS Console and uses generative AI to convert them into infrastructure-as-code templates (CDK or CloudFormation), enabling reproducible, version-controlled database resource management. + +## Key Concepts +- Captures DynamoDB table configurations including partition keys, sort keys, provisioned throughput, and secondary indexes +- Uses generative AI to transform console actions into IaC templates +- Supported output formats: AWS CDK (TypeScript, Python, Java) and CloudFormation (YAML, JSON) +- Available in all commercial AWS Regions +- Bridges the gap between console-based prototyping and code-based infrastructure management + +## Commands and Syntax +No CLI commands — this is a console-based workflow: +1. Open DynamoDB console and create/configure resources +2. Console-to-Code records actions as you perform them +3. Generate code in preferred format (CDK or CloudFormation) +4. Copy/download and customize the generated code + +## Relationships +- **Amazon Q Developer**: Console-to-Code is a feature within Amazon Q Developer +- **AWS CDK**: One of the output targets for generated code +- **CloudFormation**: Another output target for generated code +- **DynamoDB features covered**: Tables, GSIs, LSIs, auto-scaling policies, backup configurations, DynamoDB Streams + +## Exam-Relevant Points +- Console-to-Code converts manual console actions into CDK or CloudFormation — know which output formats are supported +- It records actions during console usage, then generates code (not the other way around) +- Available in **all commercial AWS Regions** +- Supports three CDK languages: TypeScript, Python, Java +- Key use case: standardizing infrastructure and reducing manual configuration errors + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-dax-prescriptive-guidancehtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-dax-prescriptive-guidancehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..471ed57d3597035c645d17d46fcfb94efcaaf885 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-dax-prescriptive-guidancehtml.md @@ -0,0 +1,42 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/dax-prescriptive-guidance.html +source: sources/amazondynamodb-latest-developerguide-dax-prescriptive-guidancehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:28 + + + +## Overview +This page introduces the DAX (DynamoDB Accelerator) prescriptive guidance, a comprehensive guide for integrating DAX caching with DynamoDB applications. DAX is a DynamoDB-compatible, in-memory caching service that delivers microsecond response times for read-heavy workloads. + +## Key Concepts +- **DAX** is a fully managed, DynamoDB-compatible caching layer providing in-memory performance +- Achieves **microsecond response times** for frequently accessed data +- Primarily targets **read-heavy applications** with demanding performance requirements +- DAX is organized around **clusters** as the core deployment unit +- This is a prescriptive (best-practices) guide, not a reference guide + +## Commands and Syntax +No commands or configuration syntax on this page — it serves as a table of contents for the prescriptive guidance series. + +## Relationships +- **Parent topic**: [DAX overview](./DAX.html) +- **Sub-topics** covered in the guide: + - Evaluating DAX suitability for use cases + - Configuring the DAX client + - Configuring the DAX cluster + - Sizing the DAX cluster + - Deploying a cluster + - Managing cluster operations + - Monitoring DAX +- **Related**: [DAX cluster concepts](./DAX.concepts.cluster.html) + +## Exam-Relevant Points +- DAX provides **microsecond** read latency (not millisecond — that's standard DynamoDB) +- DAX is **DynamoDB-compatible** — applications use a DAX client that is a drop-in replacement for the DynamoDB client +- DAX is best suited for **read-heavy** workloads; it is not a general-purpose cache for write-heavy patterns +- Understanding **when DAX is appropriate vs. not** is a key decision point (covered in the suitability evaluation sub-topic) + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-dynamodb-resources-first-time-usershtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-dynamodb-resources-first-time-usershtml.md new file mode 100644 index 0000000000000000000000000000000000000000..0539b167228f04863ccc2328422618e868ea71a2 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-dynamodb-resources-first-time-usershtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/dynamodb-resources-first-time-users.html +source: sources/amazondynamodb-latest-developerguide-dynamodb-resources-first-time-usershtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:28 + + + +## Overview + +This is a landing/orientation page for new DynamoDB users, pointing them to recommended learning resources, best practices, CLI documentation, and programming SDKs. It contains no technical depth itself — it's a curated index of starting points. + +## Key Concepts + +- DynamoDB offers free digital training courses and a structured "basics course" for fundamentals +- **NoSQL Workbench** is the unified visual tool for data modeling, visualization, and query development +- Two key follow-up topics for beginners: **throughput capacity modes** and **design best practices** +- **On-demand mode** is the default and recommended throughput option for most workloads +- AWS provides SDKs for Java, .NET, PHP, Ruby, and other languages that handle request formatting, response parsing, retry logic, and error handling +- You can interact with DynamoDB directly via the low-level API if you prefer not to use SDKs + +## Commands and Syntax + +No commands on this page. It references: +- AWS CLI for DynamoDB documentation (separate reference) +- DynamoDB API Reference (direct HTTP API) + +## Relationships + +- Links to **capacity modes** (`capacity-mode.html`) — on-demand vs. provisioned +- Links to **best practices** (`best-practices.html`) — design and architecture guidance +- References **NoSQL Workbench** — the visual modeling tool +- References **AWS Well-Architected Lens for DynamoDB** — architectural best practices +- References **migration guides** for moving existing databases to DynamoDB + +## Exam-Relevant Points + +- **On-demand mode is the default and recommended** throughput option for most DynamoDB workloads +- AWS SDKs provide built-in **retry logic and error handling** for DynamoDB +- NoSQL Workbench supports **data modeling, visualization, and query development** +- The DynamoDB API can be used directly without SDKs (requires manual request signing/authentication) + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionhowitworkshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionhowitworkshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a78cd1611121dc98c5356dbb79617d67413a783e --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionhowitworkshtml.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/encryption.howitworks.html +source: sources/amazondynamodb-latest-developerguide-encryptionhowitworkshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:29 + + + +## Overview + +DynamoDB encryption at rest uses AES-256 encryption integrated with AWS KMS to protect data in underlying storage. It supports three types of encryption keys — AWS owned keys, AWS managed keys, and customer managed keys — each offering different levels of control, visibility, and cost. + +## Key Concepts + +- **AES-256** encryption standard is used for all DynamoDB encryption at rest +- **Envelope encryption** with a key hierarchy is used; the KMS key encrypts the root key of this hierarchy +- **Three key types available:** + - **AWS owned keys** — managed entirely by AWS, shared across accounts, no cost, no visibility/audit capability, rotated yearly (~365 days) + - **AWS managed keys** (`aws/dynamodb`) — created automatically in your account, viewable and auditable via CloudTrail, but you cannot manage or change permissions directly; rotated yearly + - **Customer managed keys (CMK)** — full control: create, manage, rotate, disable, delete; key policies, IAM policies, grants all configurable +- DynamoDB **caches** the KMS key and refreshes it **every 5 minutes** per caller with active traffic (not per-operation) +- SDK connections should use **keepAlive** to avoid redundant KMS cache re-establishment and excess KMS/CloudTrail costs + +## Commands and Syntax + +- **Node.js SDK keepAlive configuration**: Create HTTPS agent with `keepAlive: true` to reuse connections and avoid per-operation KMS cache misses + +## Relationships + +- **AWS KMS** — encryption key management backend for all three key types +- **CloudTrail** — audit logging for AWS managed key and CMK usage +- **DynamoDB Streams, GSIs, LSIs** — all encrypted with the same CMK when CMK is specified as table-level key +- **On-demand backups** — encrypted with the table-level key at backup creation time; changing the key later does not re-encrypt existing backups +- **Global Tables** — replica removed from replication group 20 hours after CMK becomes inaccessible + +## Exam-Relevant Points + +- **7-day window**: If a CMK is disabled/scheduled for deletion, you have 7 days to restore access before the table is archived +- **Archived tables**: After 7 days inaccessible, DynamoDB creates an on-demand backup (billed to you) and archives the table; restore requires re-enabling the last CMK +- **Global table replicas**: Removed from replication group after **20 hours** of inaccessible CMK — replication stops but replica is not deleted +- **AWS owned keys have zero cost** and don't count against KMS quotas +- **Key rotation schedule**: Both AWS owned and AWS managed keys rotate yearly (~365 days); changed from 3-year to 1-year rotation in May 2022 +- **KMS key refresh interval**: Every **5 minutes** per caller, not per DynamoDB operation +- **Backup encryption is point-in-time**: On-demand backups use the key that was active when the backup was created; updating the table key does not affect existing backups +- Table status becomes **"Inaccessible"** when CMK is disabled or scheduled for deletion + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-encryptiontutorialhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-encryptiontutorialhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..64d375091dc8799f35568cfd9ae8e0ba8c4c0f88 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-encryptiontutorialhtml.md @@ -0,0 +1,80 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/encryption.tutorial.html +source: sources/amazondynamodb-latest-developerguide-encryptiontutorialhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:29 + + + +## Overview +This page covers how to manage encryption at rest for DynamoDB tables, including specifying encryption keys when creating new tables and updating encryption keys on existing tables, using both the AWS Management Console and the AWS CLI. + +## Key Concepts +- **Three encryption key types** for DynamoDB tables: + - **AWS owned key** — Default; owned/managed by DynamoDB; no additional charge + - **AWS managed key** — Key alias `aws/dynamodb`; stored in your account, managed by KMS; KMS charges apply + - **Customer managed key (CMK)** — Stored in your account, owned and managed by you via KMS; KMS charges apply +- Encryption at rest is always enabled — you're choosing *which* key, not whether to encrypt +- Tables default to the AWS owned key if no SSE specification is provided +- You can switch between any of the three key types on an existing table at any time +- `KMSMasterKeyId` accepts a key ID, key ARN, or key alias; DynamoDB resolves aliases to the underlying key ARN +- `SSEDescription` in the table description shows `Status: ENABLED` and `SSEType: KMS` when using AWS managed or customer managed keys +- Customer managed keys require an appropriately configured KMS Key Policy + +## Commands and Syntax + +**Create table with AWS owned key (default):** +```bash +aws dynamodb create-table \ + --table-name Music \ + --attribute-definitions AttributeName=Artist,AttributeType=S AttributeName=SongTitle,AttributeType=S \ + --key-schema AttributeName=Artist,KeyType=HASH AttributeName=SongTitle,KeyType=RANGE \ + --provisioned-throughput ReadCapacityUnits=10,WriteCapacityUnits=5 +``` + +**Create table with AWS managed key:** +```bash +aws dynamodb create-table ... \ + --sse-specification Enabled=true,SSEType=KMS +``` + +**Create table with customer managed key:** +```bash +aws dynamodb create-table ... \ + --sse-specification Enabled=true,SSEType=KMS,KMSMasterKeyId=abcd1234-abcd-1234-a123-ab1234a1b234 +``` + +**Update to AWS owned key:** +```bash +aws dynamodb update-table --table-name Music --sse-specification Enabled=false +``` + +**Update to AWS managed key:** +```bash +aws dynamodb update-table --table-name Music --sse-specification Enabled=true +``` + +**Update to customer managed key:** +```bash +aws dynamodb update-table --table-name Music \ + --sse-specification Enabled=true,SSEType=KMS,KMSMasterKeyId=abcd1234-abcd-1234-a123-ab1234a1b234 +``` + +## Relationships +- **AWS KMS** — All non-default encryption relies on KMS; key policies must be configured for CMKs +- **DynamoDB Encryption at Rest** — This is the operational how-to; conceptual coverage is in the encryption-at-rest overview +- **IAM** — Access to KMS keys is governed by IAM policies and KMS key policies +- **Cost** — AWS managed and customer managed keys incur KMS charges; AWS owned keys do not + +## Exam-Relevant Points +- Default encryption uses the **AWS owned key** at no extra cost — no `--sse-specification` needed +- `--sse-specification Enabled=false` switches to AWS owned key (not "disabling encryption") +- `--sse-specification Enabled=true` without `KMSMasterKeyId` uses the **AWS managed key** (`aws/dynamodb`) +- You can change encryption keys on existing tables — encryption type is **not immutable** +- `KMSMasterKeyId` can be a key ID, ARN, or alias — but `KMSMasterKeyArn` in the response always shows the resolved ARN +- Customer managed keys require correct KMS key policy configuration +- `SSEType=KMS` appears for both AWS managed and customer managed keys — differentiate by checking whether `KMSMasterKeyArn` points to the `aws/dynamodb` alias key or a custom key + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionusagenoteshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionusagenoteshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..85ee0c877bc0cae6ce6dedad60d072e4e32598a3 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionusagenoteshtml.md @@ -0,0 +1,90 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/encryption.usagenotes.html +source: sources/amazondynamodb-latest-developerguide-encryptionusagenoteshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:29 + + + +## Overview + +This page covers the encryption at rest implementation details for Amazon DynamoDB, including how data is encrypted using AWS KMS keys and a hierarchy of data keys, the three types of encryption keys available (AWS owned, AWS managed, customer managed), key policies and grants required for authorization, encryption context used in KMS operations, and how to monitor DynamoDB's interaction with KMS via CloudTrail logs. + +## Key Concepts + +- **All DynamoDB table data is encrypted at rest** — this is always on and cannot be disabled; you cannot encrypt only a subset of items +- **Three encryption key types:** + - **AWS owned key** — free, no KMS quotas, default, multi-tenant, managed in DynamoDB service account + - **AWS managed key** (`aws/dynamodb`) — viewable key policy, auditable via CloudTrail, counts against KMS quotas + - **Customer managed key (CMK)** — full control over key policies, rotation, grants; auditable; counts against KMS quotas +- **Data in transit** is always encrypted via HTTPS (SSL/TLS) by default +- **Data in use** can be protected with client-side encryption (DynamoDB Encryption Client) +- **Key hierarchy:** KMS key → table key (key encryption key) → data encryption keys → table data +- **Table key** persists for the lifetime of the encrypted table and is unique per table +- **Table key caching:** DynamoDB caches plaintext table keys in memory; after 5 minutes of inactivity, re-decrypts via KMS (captures policy changes) +- **DynamoDB supports only symmetric KMS keys** — asymmetric keys cannot be used +- **Indexes (LSI/GSI), streams, and backups** are encrypted with the same key as the base table +- **Encryption context** includes `aws:dynamodb:tableName` and `aws:dynamodb:subscriberId` (account ID) +- Key switching is seamless — no downtime or service degradation + +## Commands and Syntax + +**Encryption context format:** +```json +"encryptionContextSubset": { + "aws:dynamodb:tableName": "Books", + "aws:dynamodb:subscriberId": "111122223333" +} +``` + +**Console encryption types:** `KMS` (AWS managed or customer managed key), `DEFAULT` (AWS owned key) + +**Required KMS permissions for customer managed key:** +- `kms:Encrypt`, `kms:Decrypt`, `kms:ReEncrypt*`, `kms:GenerateDataKey*`, `kms:DescribeKey`, `kms:CreateGrant` + +**Example customer managed key policy:** +```json +{ + "Sid": "Allow access through Amazon DynamoDB...", + "Effect": "Allow", + "Principal": {"AWS": "arn:aws:iam::111122223333:user/db-lead"}, + "Action": ["kms:Encrypt","kms:Decrypt","kms:ReEncrypt*","kms:GenerateDataKey*","kms:DescribeKey","kms:CreateGrant"], + "Resource": "*", + "Condition": {"StringLike": {"kms:ViaService": "dynamodb.*.amazonaws.com"}} +} +``` + +**Key policy uses `kms:ViaService`** with wildcard region (`dynamodb.*.amazonaws.com`) to support global tables cross-region calls. + +## Relationships + +- **AWS KMS** — DynamoDB relies on KMS for key management; GenerateDataKey, Decrypt, CreateGrant, DescribeKey, RetireGrant operations +- **CloudTrail** — all KMS operations by DynamoDB are logged and auditable +- **DynamoDB Streams** — encrypted with table-level key; streams data subject to 24-hour lifetime if CMK disabled +- **Global Tables** — CMK not supported on Version 2017; must use Version 2019+; ViaService condition uses wildcard region +- **DAX** — cannot use customer managed keys with DAX clusters +- **DynamoDB Backups** — encrypted with key in effect at backup time; restoring requires the original key +- **TTL** — continues deleting for 30 minutes after CMK is disabled +- **IAM** — key policies, IAM policies, and grants all control access to encryption keys +- **DynamoDB Encryption Client** — for client-side encryption before data reaches DynamoDB + +## Exam-Relevant Points + +- Encryption at rest is **always enabled** and **cannot be disabled** +- Only **symmetric KMS keys** are supported — never asymmetric +- **AWS owned key** is free and doesn't count against KMS quotas; AWS managed and customer managed keys do +- **Customer managed keys cannot be used with DAX** +- **Customer managed keys not supported on Global Table Version 2017** — must upgrade to 2019 +- Table key cache expires after **5 minutes of inactivity** +- When switching CMKs, **keep the original key enabled** until SSEDescription Status shows `ENABLED` with the new key ARN +- Existing on-demand backups remain encrypted with the **key that was active when created** — need that key to restore +- If CMK is disabled/deleted: streams data has **24-hour lifetime**, TTL deletes continue for **30 minutes** +- Transaction request copies are temporarily encrypted with **AWS owned key** even when table uses CMK +- Contributor Insights data sent to CloudWatch is encrypted with **AWS owned key** +- `kms:ViaService` condition uses `dynamodb.*.amazonaws.com` (wildcard region) for global tables support +- Encryption context contains **table name** and **account ID** — useful for audit and policy conditions +- Grants are **per-table** even when multiple tables use the same KMS key + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-NextStepshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-NextStepshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5cd002e115b6d97c76495c779310f9f037567240 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-NextStepshtml.md @@ -0,0 +1,34 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/getting-started-NextSteps.html +source: sources/amazondynamodb-latest-developerguide-getting-started-NextStepshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:30 + +## Overview +This is a navigational "next steps" page from the DynamoDB Developer Guide that directs users to key topics for continued learning after completing the Getting Started tutorial. + +## Key Concepts +- This page serves as a learning path roadmap for DynamoDB, pointing to seven core topic areas +- The recommended topics cover the fundamental DynamoDB workflow: tables → items → queries → indexes → transactions → caching → SDK programming + +## Commands and Syntax +None — this is a navigation/reference page only. + +## Relationships +Links to these core DynamoDB topics: +- **Working with Tables** — table creation, management, and data operations +- **Working with Items** — CRUD operations on individual items and attributes +- **Querying** — retrieving data using key conditions and filters +- **Global Secondary Indexes (GSI)** — alternate query patterns via secondary indexes +- **Transactions** — ACID operations across multiple items/tables +- **DAX** — in-memory caching layer for DynamoDB +- **Programming with SDKs** — using AWS SDKs to interact with DynamoDB programmatically + +## Exam-Relevant Points +- Understanding the relationship between these seven topics represents the core DynamoDB competency areas +- DAX is called out as "in-memory acceleration," distinguishing it as a caching layer rather than a separate database +- GSIs are highlighted separately from table basics, indicating their importance as a distinct concept + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-1html.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-1html.md new file mode 100644 index 0000000000000000000000000000000000000000..a5d5402d67fb9384c2a000793559da3053f5e40a --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-1html.md @@ -0,0 +1,93 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/getting-started-step-1.html +source: sources/amazondynamodb-latest-developerguide-getting-started-step-1html.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:30 + + + +## Overview +This page walks through creating a DynamoDB table (the `Music` table) as Step 1 of the DynamoDB getting-started tutorial. It covers table creation via the AWS Console, AWS CLI, and multiple AWS SDKs, including setting up partition/sort keys, choosing billing modes, enabling point-in-time recovery, and creating tables with secondary indexes and encryption. + +## Key Concepts +- **Partition key (HASH)** — The primary key attribute used to distribute items across partitions. In the example: `Artist`. +- **Sort key (RANGE)** — Optional second key attribute that orders items within a partition. In the example: `SongTitle`. +- **TableStatus lifecycle** — Tables transition from `CREATING` to `ACTIVE` before they can be used. Use `describe-table` to poll status. +- **Billing modes** — `PROVISIONED` (specify ReadCapacityUnits/WriteCapacityUnits) vs `PAY_PER_REQUEST` (on-demand, no capacity planning needed). +- **Table class** — `STANDARD` (default) or `STANDARD_IA` for infrequent access. +- **Point-in-time recovery (PITR)** — Continuous backups enabling restore to any second within the retention window. Recommended best practice but has cost implications. +- **Attribute definitions** — Only key attributes (partition, sort, index keys) need to be defined at table creation; DynamoDB is schemaless for non-key attributes. +- **SSE (Server-Side Encryption)** — Tables are encrypted at rest by default with AWS-owned CMK; can optionally use customer-managed KMS key via `--sse-specification`. + +## Commands and Syntax + +**Create a table (on-demand billing):** +```bash +aws dynamodb create-table \ + --table-name Music \ + --attribute-definitions \ + AttributeName=Artist,AttributeType=S \ + AttributeName=SongTitle,AttributeType=S \ + --key-schema AttributeName=Artist,KeyType=HASH AttributeName=SongTitle,KeyType=RANGE \ + --billing-mode PAY_PER_REQUEST \ + --table-class STANDARD +``` + +**Check table status:** +```bash +aws dynamodb describe-table --table-name Music | grep TableStatus +``` + +**Enable PITR:** +```bash +aws dynamodb update-continuous-backups \ + --table-name Music \ + --point-in-time-recovery-specification PointInTimeRecoveryEnabled=true +``` + +**Create with provisioned throughput + tags:** +```bash +aws dynamodb create-table \ + --table-name MusicCollection \ + --attribute-definitions AttributeName=Artist,AttributeType=S AttributeName=SongTitle,AttributeType=S \ + --key-schema AttributeName=Artist,KeyType=HASH AttributeName=SongTitle,KeyType=RANGE \ + --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 \ + --tags Key=Owner,Value=blueTeam +``` + +**Create with customer-managed CMK encryption:** +```bash +--sse-specification Enabled=true,SSEType=KMS,KMSMasterKeyId= +``` + +**Create with Local Secondary Index (LSI):** +```bash +--local-secondary-indexes '[{"IndexName":"AlbumTitleIndex","KeySchema":[...],"Projection":{"ProjectionType":"INCLUDE","NonKeyAttributes":["Genre","Year"]}}]' +``` + +**Create with Global Secondary Index (GSI):** +```bash +--global-secondary-indexes '[{"IndexName":"GameTitleIndex","KeySchema":[...],"Projection":{...},"ProvisionedThroughput":{...}}]' +``` + +## Relationships +- **Point-in-time recovery** — Links to backup/restore features and continuous backups cost considerations. +- **Key schema design** — Foundational for all subsequent operations (Query, Scan, GetItem, PutItem). +- **Secondary indexes (LSI/GSI)** — Must be planned at creation time for LSIs; GSIs can be added later. +- **Billing mode** — Directly affects auto-scaling setup and cost optimization strategies. +- **Encryption at rest** — Connects to KMS key management and security compliance. + +## Exam-Relevant Points +- **HASH = partition key, RANGE = sort key** — Know the KeyType mappings. +- **Only key attributes require AttributeDefinitions** at table creation — DynamoDB is schemaless for non-key attributes. +- **LSIs must be created at table creation time** and cannot be added later; GSIs can be added after creation. +- **LSIs share the partition key** with the base table; only the sort key differs. +- **GSIs have independent throughput** settings when using provisioned mode. +- **PAY_PER_REQUEST** sets ReadCapacityUnits and WriteCapacityUnits to 0 in the response. +- **TableStatus must be ACTIVE** before the table can accept read/write operations. +- **PITR is a best practice** but incurs additional cost — it is not enabled by default. +- **Default encryption** uses AWS-owned CMK at no extra charge; customer-managed KMS keys provide more control but cost more. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-2html.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-2html.md new file mode 100644 index 0000000000000000000000000000000000000000..608825bbe3aba76a200b2db9efcdb5069218b14b --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-2html.md @@ -0,0 +1,76 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/getting-started-step-2.html +source: sources/amazondynamodb-latest-developerguide-getting-started-step-2html.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:30 + +## Overview +This page covers how to insert (write) items into a DynamoDB table using the console, AWS CLI (`put-item` and PartiQL `execute-statement`), and various AWS SDKs. It uses a `Music` table with a composite primary key (Artist + SongTitle) and additional attributes (AlbumTitle, Awards). + +## Key Concepts +- **PutItem** is the primary API for writing a single item to a DynamoDB table; it creates a new item or fully replaces an existing item with the same primary key +- Items are expressed as maps of attribute name → typed attribute value (e.g., `{"S": "string"}`, `{"N": "1"}`) +- DynamoDB attribute types use single-letter type descriptors: `S` (String), `N` (Number), `B` (Binary), etc. +- Numbers are passed as strings in the JSON wire format (e.g., `"N": "10"`) but stored as numbers +- **PartiQL** provides a SQL-compatible alternative: `INSERT INTO TableName VALUE {...}` — uses single quotes for string literals +- **Conditional writes** are supported via `--condition-expression`, allowing you to prevent overwrites unless conditions are met (e.g., `#A = :A`) +- `--return-consumed-capacity TOTAL` returns the write capacity units consumed (useful for monitoring) +- `--return-item-collection-metrics SIZE` returns size estimates for the item collection +- `--return-values ALL_OLD` returns the previous item if it was overwritten +- `ConditionalCheckFailedException` is thrown when a condition expression evaluates to false +- PutItem consumes **1 WCU per item up to 1 KB** (provisioned mode) + +## Commands and Syntax + +**CLI — DynamoDB API:** +```bash +aws dynamodb put-item \ + --table-name Music \ + --item '{"Artist": {"S": "No One You Know"}, "SongTitle": {"S": "Call Me Today"}, "AlbumTitle": {"S": "Somewhat Famous"}, "Awards": {"N": "1"}}' +``` + +**CLI — Using a JSON file:** +```bash +aws dynamodb put-item \ + --table-name MusicCollection \ + --item file://item.json \ + --return-consumed-capacity TOTAL +``` + +**CLI — Conditional write:** +```bash +aws dynamodb put-item \ + --table-name MusicCollection \ + --item file://item.json \ + --condition-expression "#A = :A" \ + --expression-attribute-names file://names.json \ + --expression-attribute-values file://values.json \ + --return-values ALL_OLD +``` + +**CLI — PartiQL:** +```bash +aws dynamodb execute-statement --statement "INSERT INTO Music \ + VALUE {'Artist':'Acme Band','SongTitle':'Happy Day', 'AlbumTitle':'Songs About Life', 'Awards':'10'}" +``` + +## Relationships +- **Step 1 (Create table)** — table must exist before writing items +- **Step 3 (Read data)** — items written here are queried in the next step +- **PutItem API** — the underlying API operation used by all SDKs +- **PartiQL** — alternative SQL-like interface that maps to the same underlying operations +- **Condition expressions** — shared syntax with UpdateItem and DeleteItem for optimistic locking +- **DynamoDB Document Client** (JS/Python) — simplifies item marshalling by accepting native types instead of typed attribute maps + +## Exam-Relevant Points +- **PutItem replaces the entire item** if the primary key already exists — it does not merge attributes (use UpdateItem for partial updates) +- Numbers must be sent as strings in the DynamoDB JSON format (`"N": "10"`, not `"N": 10`) +- Conditional expressions enable **optimistic concurrency control** — a failed condition throws `ConditionalCheckFailedException` +- `--return-values ALL_OLD` on PutItem returns the **previous** item (not the new one) +- PutItem consumes **1 WCU** for items up to 1 KB; larger items consume additional WCUs proportionally +- PartiQL INSERT **fails if the item already exists** (unlike PutItem which overwrites by default) +- The `file://` prefix in CLI commands reads JSON from a local file — useful for complex items + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-3html.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-3html.md new file mode 100644 index 0000000000000000000000000000000000000000..803f13631bf585016524033bff0e25fa872f82b5 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-3html.md @@ -0,0 +1,63 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/getting-started-step-3.html +source: sources/amazondynamodb-latest-developerguide-getting-started-step-3html.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:31 + + + +## Overview +This page covers how to read (retrieve) a single item from a DynamoDB table using the `GetItem` API. It demonstrates reading items via the DynamoDB console, AWS CLI (both native API and PartiQL), and multiple AWS SDKs. The example uses a `Music` table with a composite primary key (`Artist` as partition key, `SongTitle` as sort key). + +## Key Concepts +- **GetItem** retrieves a single item by its full primary key (partition key + sort key if composite) +- **Default read consistency** is eventually consistent; use `--consistent-read` flag for strongly consistent reads +- **Eventually consistent read** consumes 0.5 RCU (for items ≤ 4 KB); **strongly consistent read** consumes 1.0 RCU +- **PartiQL** provides a SQL-compatible alternative syntax (`SELECT * FROM Table WHERE ...`) for the same GetItem operation +- **Projection expressions** allow retrieving only specific attributes (e.g., `--projection-expression "#T, #C, #P"`) +- **Expression attribute names** (prefixed with `#`) are used to reference reserved words or special characters in projection expressions +- If no matching item exists, `GetItem` returns an empty result (no error thrown) +- Keys must include type descriptors: `{"S": "string"}`, `{"N": "number"}` +- `--return-consumed-capacity TOTAL` reports RCU consumption of the read + +## Commands and Syntax +```bash +# Basic GetItem (eventually consistent) +aws dynamodb get-item --table-name Music \ + --key '{ "Artist": {"S": "Acme Band"}, "SongTitle": {"S": "Happy Day"}}' + +# Strongly consistent read with capacity reporting +aws dynamodb get-item --consistent-read \ + --table-name MusicCollection \ + --key file://key.json \ + --return-consumed-capacity TOTAL + +# Using projection expression +aws dynamodb get-item --table-name ProductCatalog \ + --key '{"Id": {"N": "102"}}' \ + --projection-expression "#T, #C, #P" \ + --expression-attribute-names file://names.json + +# PartiQL equivalent +aws dynamodb execute-statement \ + --statement "SELECT * FROM Music WHERE Artist='Acme Band' AND SongTitle='Happy Day'" +``` + +## Relationships +- **Prerequisite**: Table must exist (Step 1) and contain data (Step 2: WriteItem/PutItem) +- **Related APIs**: `Query` (multiple items by partition key), `Scan` (full table), `BatchGetItem` (multiple items by key) +- **Read consistency** ties into DynamoDB's replication model and capacity planning +- **Projection expressions** relate to cost optimization (less data transferred = lower latency) +- **PartiQL** is a cross-cutting query language also used for writes, updates, and deletes + +## Exam-Relevant Points +- Eventually consistent reads consume **half** the RCUs of strongly consistent reads (0.5 vs 1.0 for ≤4 KB items) +- `GetItem` requires the **full primary key** — partition key alone is insufficient for composite key tables +- `GetItem` returns **all attributes** by default; use projection expressions to limit returned attributes +- PartiQL `SELECT` with exact key match performs a GetItem operation (not a Scan) +- `--return-consumed-capacity TOTAL` is useful for monitoring and capacity planning +- Expression attribute names (`#name`) are required when attribute names conflict with DynamoDB reserved words + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-4html.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-4html.md new file mode 100644 index 0000000000000000000000000000000000000000..1463f523c479f9df756cc14b332ad1c4f8ba0221 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-4html.md @@ -0,0 +1,76 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/getting-started-step-4.html +source: sources/amazondynamodb-latest-developerguide-getting-started-step-4html.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:31 + + + +## Overview +This page covers how to update existing items in a DynamoDB table using the `UpdateItem` API. It demonstrates updating attributes via the DynamoDB console, AWS CLI (both DynamoDB API and PartiQL syntax), and multiple AWS SDKs (.NET, Bash, C++, Go, Java, JavaScript). + +## Key Concepts +- **UpdateItem** modifies an existing item's attributes or adds new attributes; it requires the full primary key to identify the item +- **Update expressions** use `SET` syntax to define which attributes to modify (e.g., `SET AlbumTitle = :newval`) +- **Expression attribute values** are placeholders (prefixed with `:`) that provide the actual values for update expressions +- **Expression attribute names** are placeholders (prefixed with `#`) used when attribute names conflict with DynamoDB reserved words +- **`--return-values ALL_NEW`** returns all attributes of the item after the update is applied +- **Conditional updates** use `--condition-expression` to apply updates only when conditions are met (e.g., `attribute_not_exists(#Y)`) +- **ConditionalCheckFailedException** is thrown when a condition expression evaluates to false +- **PartiQL** provides SQL-like `UPDATE ... SET ... WHERE ... RETURNING ALL NEW *` syntax as an alternative to the native API + +## Commands and Syntax + +**CLI — DynamoDB API:** +```bash +aws dynamodb update-item \ + --table-name Music \ + --key '{ "Artist": {"S": "Acme Band"}, "SongTitle": {"S": "Happy Day"}}' \ + --update-expression "SET AlbumTitle = :newval" \ + --expression-attribute-values '{":newval":{"S":"Updated Album Title"}}' \ + --return-values ALL_NEW +``` + +**CLI — PartiQL:** +```bash +aws dynamodb execute-statement --statement "UPDATE Music \ + SET AlbumTitle='Updated Album Title' \ + WHERE Artist='Acme Band' AND SongTitle='Happy Day' \ + RETURNING ALL NEW *" +``` + +**Conditional update (only if attribute doesn't exist):** +```bash +aws dynamodb update-item \ + --table-name MusicCollection \ + --key file://key.json \ + --update-expression "SET #Y = :y, #AT = :t" \ + --expression-attribute-names file://expression-attribute-names.json \ + --expression-attribute-values file://expression-attribute-values.json \ + --condition-expression "attribute_not_exists(#Y)" +``` + +**Key parameters:** +- `--return-values`: `NONE | ALL_OLD | UPDATED_OLD | ALL_NEW | UPDATED_NEW` +- `--return-consumed-capacity`: `TOTAL | INDEXES | NONE` +- `--return-item-collection-metrics`: `SIZE | NONE` + +## Relationships +- **Primary key required**: Must specify the complete primary key (partition key + sort key if composite) to identify the item +- **Expressions framework**: Shares update expressions, condition expressions, and expression attribute names/values with other DynamoDB operations (PutItem, DeleteItem, Query, Scan) +- **PartiQL integration**: `execute-statement` with `UPDATE` is an alternative to the native `update-item` API +- **Write capacity**: Updates consume write capacity units (WCUs); conditional updates that fail still consume capacity +- Connects to Step 2 (WriteData), Step 3 (ReadData), Step 5 (Query), Step 6 (DeleteItem) in the getting-started tutorial + +## Exam-Relevant Points +- `UpdateItem` creates the item if it doesn't already exist (upsert behavior) unless a condition expression prevents it +- Conditional updates use `condition-expression` — failed conditions throw `ConditionalCheckFailedException` +- `return-values ALL_NEW` returns the entire item after update; `UPDATED_NEW` returns only updated attributes +- Update expressions support `SET`, `REMOVE`, `ADD`, and `DELETE` actions +- Expression attribute names (`#name`) must be used for reserved words; expression attribute values (`:val`) provide substitution values +- An `UpdateItem` that sets multiple attributes in one call is atomic +- Consumed capacity for an update is based on the larger of the item size before or after the update (rounded up to 1 KB for standard tables) + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-5html.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-5html.md new file mode 100644 index 0000000000000000000000000000000000000000..79a4bde542c87986321f6de34fde1dedcfa42c5b --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-5html.md @@ -0,0 +1,96 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/getting-started-step-5.html +source: sources/amazondynamodb-latest-developerguide-getting-started-step-5html.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:32 + + + +## Overview +This page covers how to query data from a DynamoDB table using the partition key. It demonstrates querying the `Music` table by `Artist` using the DynamoDB console, AWS CLI (both DynamoDB API and PartiQL), and multiple AWS SDKs (.NET, Bash, C++, Go, Java, JavaScript, Kotlin, PHP, Python, Ruby, Rust, SAP ABAP, Swift). + +## Key Concepts +- **Query** retrieves all items matching a specified **partition key** value — unlike Scan, it does not read the entire table +- **Key Condition Expression** (`--key-condition-expression`) specifies the partition key (and optionally sort key) filter for the query +- **Expression Attribute Values** provide the actual values for placeholders (e.g., `:name`) used in expressions +- **Filter Expression** is applied *after* items are read — it does **not** reduce `ScannedCount` or `ConsumedCapacity` +- **PartiQL** provides a SQL-compatible alternative syntax: `SELECT * FROM Music WHERE Artist='Acme Band'` +- **Projection Expression** limits which attributes are returned in results +- **Pagination**: query results may span multiple pages; use `ExclusiveStartKey`/`LastEvaluatedKey` to paginate +- **Consistent Reads**: `--consistent-read` uses strongly consistent reads (doubles consumed capacity from 0.5 to 1.0 RCU for same query) +- **Reverse Order**: `--no-scan-index-forward` traverses the index in descending sort key order +- **`--select COUNT`** returns only the count without retrieving item data +- **Index Queries**: use `--index-name` to query LSIs/GSIs; must still provide `--table-name` for the base table + +## Commands and Syntax + +**Basic query (DynamoDB API):** +```bash +aws dynamodb query \ + --table-name Music \ + --key-condition-expression "Artist = :name" \ + --expression-attribute-values '{":name":{"S":"Acme Band"}}' +``` + +**PartiQL query:** +```bash +aws dynamodb execute-statement --statement "SELECT * FROM Music WHERE Artist='Acme Band'" +``` + +**Strongly consistent, reverse order:** +```bash +aws dynamodb query \ + --table-name MusicCollection \ + --key-condition-expression "Artist = :v1" \ + --expression-attribute-values file://expression-attributes.json \ + --consistent-read \ + --no-scan-index-forward \ + --return-consumed-capacity TOTAL +``` + +**With filter expression:** +```bash +aws dynamodb query \ + --key-condition-expression "#n1 = :v1" \ + --filter-expression "NOT (#n2 IN (:v2, :v3))" \ + --expression-attribute-names file://names.json \ + --expression-attribute-values file://values.json +``` + +**Count only:** +```bash +aws dynamodb query --select COUNT --key-condition-expression "Artist = :v1" ... +``` + +**Query a secondary index:** +```bash +aws dynamodb query \ + --table-name MusicCollection \ + --index-name AlbumTitleIndex \ + --key-condition-expression "Artist = :v1" \ + --select ALL_PROJECTED_ATTRIBUTES \ + --return-consumed-capacity INDEXES +``` + +## Relationships +- **Partition key design** (`bp-partition-key-design`) directly affects query efficiency +- **Secondary indexes** (GSI/LSI) enable querying on non-primary-key attributes +- **Scan vs Query**: Query is efficient (reads only matching partition); Scan reads entire table +- **PartiQL**: alternative SQL-like interface to the same underlying Query operation +- **Capacity modes** (provisioned/on-demand) determine how query RCUs are billed +- **Filter expressions** relate to **Expressions** framework (attribute names, values, conditions) + +## Exam-Relevant Points +- Query **requires** a partition key value; sort key conditions are optional +- Filter expressions do **not** reduce consumed capacity — filtering happens after the read +- Strongly consistent reads consume **double** the RCUs of eventually consistent reads (1.0 vs 0.5 in the examples) +- `--no-scan-index-forward` reverses sort key order (descending) +- When querying a secondary index, you must specify both `--index-name` and `--table-name` +- `--select COUNT` returns count without item data +- `--return-consumed-capacity INDEXES` breaks down capacity by table and index +- Query results are paginated; `LastEvaluatedKey` in the response signals more pages exist +- Expression attribute names (prefixed `#`) are needed for reserved words or special characters in attribute names + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-6html.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-6html.md new file mode 100644 index 0000000000000000000000000000000000000000..5c75d62e7cc50e4d04b15ebc85c3a9cfe2d723d1 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-6html.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/getting-started-step-6.html +source: sources/amazondynamodb-latest-developerguide-getting-started-step-6html.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:32 + + + +## Overview +This page covers how to delete a DynamoDB table to clean up resources after completing the getting-started tutorial. It demonstrates table deletion via the AWS Console, AWS CLI, and multiple AWS SDKs. + +## Key Concepts +- Deleting a table removes the table and **all of its data** permanently +- The `DeleteTable` API is the underlying operation across all methods +- After deletion, the table status transitions to `DELETING` +- Common error codes: `ResourceNotFoundException` (table doesn't exist), `ResourceInUseException` (table is in use and can't be deleted) +- Table deletion is an asynchronous operation — you can use waiters (e.g., `tablenotexists`) to confirm completion + +## Commands and Syntax + +**AWS CLI:** +```bash +aws dynamodb delete-table --table-name Music +``` + +**Response includes** `TableDescription` with `TableStatus: "DELETING"`, along with current `ItemCount`, `TableSizeBytes`, and `ProvisionedThroughput`. + +**PowerShell:** +```powershell +Remove-DDBTable -TableName "myTable" +Remove-DDBTable -TableName "myTable" -Force # skip confirmation +``` + +**Python (Boto3):** +```python +table.delete() +``` + +**Console:** Tables → select table → Delete + +## Relationships +- Final step (Step 6) of the DynamoDB getting-started tutorial +- Table was created in Step 1 (`getting-started-step-1`) +- Relates to broader table operations covered in "Working with tables and data in DynamoDB" +- The `DeleteTable` API is part of the DynamoDB control plane operations + +## Exam-Relevant Points +- Deleting a table is **irreversible** — all data is permanently lost +- You are **charged for existing tables** even if unused (provisioned mode), making cleanup important +- The `delete-table` CLI command only requires `--table-name` as a parameter +- Table deletion is **asynchronous** — the API returns immediately with status `DELETING` +- A table that is `ResourceInUseException` cannot be deleted (e.g., if a backup or export is in progress) + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-global-tables-billinghtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-global-tables-billinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1407e0290e5de1fc11036570f734130ae3f76614 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-global-tables-billinghtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/global-tables-billing.html +source: sources/amazondynamodb-latest-developerguide-global-tables-billinghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:32 + + + +## Overview + +This page explains the billing model for DynamoDB global tables, which differs from single-region tables. Global tables use replicated write units (rWRUs/rWCUs) instead of standard write units (WRUs/WCUs), with charges incurred in every region containing a replica. The page walks through a multi-day example showing how costs accumulate as a table evolves from single-region to global with GSIs. + +## Key Concepts + +- **Single-region writes** are billed in WRUs (on-demand) or WCUs (provisioned) — 1 unit per write up to 1KB +- **Replica table writes** are billed in rWRUs (on-demand) or rWCUs (provisioned) — 1 unit **per replica table** per write up to 1KB +- **Replicated write units are priced the same** as single-region write units +- **Cross-region data transfer fees** apply additionally when data replicates across regions +- **GSI updates are always billed as standard WRUs/WCUs**, even on replica tables — they do not use replicated write units +- **Reads use the same units** regardless of single-region or global: RRUs (on-demand) or RCUs (provisioned), 1 unit per strongly consistent read up to 4KB +- Converting a single-region table to a global table changes its billing from WRUs to rWRUs +- **MRSC vs MREC consistency modes** do not change rWCU/rWRU pricing +- **Witness replicas** (in MRSC mode) do not incur replicated write unit costs, storage costs, or data transfer costs + +## Commands and Syntax + +No CLI commands or API calls are described — this is a billing concepts page. + +## Relationships + +- **Global Tables** (`GlobalTables.html`) — parent feature being billed +- **Capacity modes** — on-demand vs provisioned affects unit type (WRU/rWRU vs WCU/rWCU) +- **Global Secondary Indexes (GSIs)** — GSI updates are billed separately from base table writes using standard (non-replicated) write units +- **Multi-Region Strong Consistency (MRSC)** — witness replica billing exemption is a cost optimization consideration +- **Cross-region data transfer** — an additional cost component beyond write units + +## Exam-Relevant Points + +- **Writes to global tables are charged in EVERY region containing a replica** — a 2-region global table doubles write costs vs single-region +- **GSI updates use standard WRUs/WCUs, not replicated units** — this is a common trick question distinction +- **rWRUs/rWCUs are priced identically to WRUs/WCUs** — the cost difference comes from being charged in multiple regions, not from a higher per-unit price +- **Adding a replica to an existing table changes its billing model** from WRU to rWRU retroactively for that table +- **Witness replicas in MRSC mode are free** of replicated write, storage, and data transfer costs +- **The billing example math**: Day 1 = 100 WRU, Day 2 = 300 rWRU (150×2 regions), Day 3 = 400 rWRU + 400 WRU (GSI). Total across 3 days: 500 WRU + 700 rWRU + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-CoreConceptshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-CoreConceptshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..fafab8b5a1eae79e3c350bffe66fd65b56cbdbd8 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-CoreConceptshtml.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables-CoreConcepts.html +source: sources/amazondynamodb-latest-developerguide-globaltables-CoreConceptshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:32 + + + +## Overview + +This page covers the core concepts of Amazon DynamoDB Global Tables, a feature that automatically replicates table data across multiple AWS Regions. It explains the two consistency models (MREC and MRSC), how replication works, and key behavioral differences between them for streams, transactions, TTL, throughput, and monitoring. + +## Key Concepts + +- **Global table**: A collection of two or more replica tables spread across different AWS Regions, sharing the same table name, primary key schema, and item data. +- **Replica table**: A single DynamoDB table that functions as part of a global table. Only one replica per Region is allowed. +- **Two consistency models**: + - **MREC** (Multi-Region Eventual Consistency) — default; replicates via DynamoDB Streams + - **MRSC** (Multi-Region Strong Consistency) — does not use Streams for replication; Streams records are identical across replicas +- **Version 2019.11.21 (Current)** should always be used over the legacy 2017.11.29 version. +- **Availability SLA**: Global tables offer **99.999%** availability vs **99.99%** for single-Region tables. +- Writes to any replica are automatically replicated to all other replicas. + +## Commands and Syntax + +No specific CLI commands on this page. Key API/configuration references: +- `TransactWriteItems` / `TransactGetItems` — transaction APIs (MREC: region-local atomicity only; MRSC: not supported) +- `ProvisionedThroughputOverride` — parameter to independently configure read capacity per replica + +## Relationships + +- **DynamoDB Streams**: MREC global tables require Streams (always enabled, cannot be disabled); MRSC does not use Streams for replication but allows optional enablement. +- **TTL**: Supported on MREC (synchronized across replicas, replicated deletes consume WCU on target replicas); **not supported on MRSC**. +- **AWS FIS**: Both MREC and MRSC integrate with Fault Injection Service for region-isolation experiments and resilience testing. +- **CloudWatch**: `ReplicationLatency` metric emitted for MREC only (per source-destination Region pair). `FaultInjectionServiceInducedErrors` metric for FIS experiments. +- **Auto Scaling**: Provisioned mode auto scaling settings are synchronized between replicas. +- **Transactions**: MREC transactions are atomic only within the invoking Region; MRSC does not support transactions at all. + +## Exam-Relevant Points + +- Global tables provide **99.999% SLA** (five nines) vs 99.99% for single-Region tables. +- Only **one replica per Region** is allowed in a global table. +- **MREC vs MRSC differences** are heavily testable: + - MREC: uses Streams, supports TTL, supports transactions (region-local only), publishes `ReplicationLatency` + - MRSC: no Streams for replication, no TTL, no transactions, no `ReplicationLatency` metric +- TTL deletes do **not** consume WCU in the Region where the delete occurred, but **do** consume WCU on replicated replicas. +- MREC replication may **combine multiple changes** into a single replicated write; Stream records may differ slightly across replicas but maintain per-item ordering. +- Provisioned read capacity can be overridden per replica; write capacity and auto scaling settings are synchronized. +- You **cannot delete a source table** used to create a replica until **24 hours** after creation. +- Disabling an AWS Region converts its global table replicas to **single-Region tables after 20 hours**. +- During FIS experiments on MRSC, eventually consistent reads are permitted but **table setting updates are not allowed**. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-MultiAccounthtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-MultiAccounthtml.md new file mode 100644 index 0000000000000000000000000000000000000000..cd631052b016924e34a6439db28664484d37d0fc --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-MultiAccounthtml.md @@ -0,0 +1,43 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables-MultiAccount.html +source: sources/amazondynamodb-latest-developerguide-globaltables-MultiAccounthtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:33 + + + +## Overview + +DynamoDB multi-account global tables extend the global tables feature by automatically replicating table data across both multiple AWS Regions **and** multiple AWS accounts. This provides account-level fault isolation, distinct security/governance boundaries per replica, and alignment with multi-account organizational strategies — going beyond same-account global tables which only replicate across Regions within a single account. + +## Key Concepts + +- **Multi-account global tables** replicate DynamoDB data across multiple AWS accounts *and* Regions simultaneously +- Each replica table resides in a **distinct AWS account**, enabling fault isolation at both Region and account level +- Replicas can be aligned with **AWS organizational structure** (e.g., by business unit or ownership) +- **Cost attribution** is simplified because each replica is billed to its own AWS account +- Provides **enhanced governance** — each account can have distinct policies, guardrails, and compliance boundaries +- Same-account global tables remain available for simpler use cases without multi-account requirements + +## Commands and Syntax + +No specific CLI commands or configuration syntax provided on this page — the page serves as an overview linking to sub-topics for how-it-works, tutorials, and security. + +## Relationships + +- **Consistency modes**: Multi-account global tables support **MREC (Multi-Region Eventual Consistency)** only. **MRSC (Multi-Region Strong Consistency) is NOT supported** for multi-account. +- **Same-account global tables**: The simpler alternative when multi-account isolation isn't needed; supports local overrides +- **AWS Organizations**: Multi-account strategy aligns with AWS organizational best practices for account separation +- **Sub-topics**: How it works, creation tutorials, and security model are covered in dedicated child pages + +## Exam-Relevant Points + +- **MRSC is not supported** for multi-account global tables — only MREC is available (key constraint likely to be tested) +- Multi-account global tables provide **account-level fault isolation**, not just Region-level +- Each replica is **billed to its respective account** — important for cost management questions +- Multi-account global tables enable **distinct security policies per replica** — relevant for governance/compliance scenarios +- If you don't need multi-account replication, same-account global tables with local overrides are the simpler option + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-SameAccounthtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-SameAccounthtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1a08126abc4705e41a5f4d2086c3bae19e684b4a --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-SameAccounthtml.md @@ -0,0 +1,39 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables-SameAccount.html +source: sources/amazondynamodb-latest-developerguide-globaltables-SameAccounthtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:33 + + + +## Overview +DynamoDB same-account global tables automatically replicate table data across AWS Regions within a single AWS account, providing the simplest multi-Region model since all replicas share the same account boundary, ownership, and permissions. + +## Key Concepts +- **Same-account global tables** replicate data across Regions automatically within one AWS account +- Available in **all Regions** where DynamoDB is available +- Built-in **conflict resolution** — no custom logic needed +- Two consistency modes available at creation time: + - **Multi-Region Eventual Consistency (MREC)** + - **Multi-Region Strong Consistency (MRSC)** +- Primary use cases: data locality (closer to users) and higher availability during regional degradation + +## Commands and Syntax +None specified on this page — refers to tutorials for creation steps. + +## Relationships +- Contrasts with **multi-account global tables** (cross-account replication with separate ownership/permissions) +- Links to **V2globaltables_HowItWorks** for replication mechanics and consistency mode details +- Links to **globaltables-security** for security considerations +- Relies on standard DynamoDB table infrastructure and IAM permissions model + +## Exam-Relevant Points +- Same-account global tables are the **simplest** multi-Region model (single account boundary) +- You must choose between **MREC and MRSC** at global table creation time +- Replication is **automatic** — no manual orchestration required +- Global tables are available in **all DynamoDB Regions** +- Two distinct benefits to remember: **data locality** and **regional fault tolerance** + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-bestpracticeshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-bestpracticeshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d34098cb6e0e584015cd9880c24a1a5f75986161 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-bestpracticeshtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables-bestpractices.html +source: sources/amazondynamodb-latest-developerguide-globaltables-bestpracticeshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:33 + + + +## Overview + +This page covers best practices for deploying and using DynamoDB global tables, including version selection, deletion protection, CloudFormation deployment patterns, backup strategies, and pointers to multi-Region high availability design guidance. + +## Key Concepts + +- **Two versions exist**: version 2019.11.21 (Current) and version 2017.11.29 (Legacy) — always use the Current version +- **Deletion protection** must be enabled individually on each replica; it is not inherited across replicas +- **CloudFormation limitation**: cannot coordinate multi-Region resources across separate Regional stacks — all replicas must be defined in a single Region's stack to avoid drift errors +- **Resource type conversion danger**: changing `AWS::DynamoDB::Table` to `AWS::DynamoDB::GlobalTable` in a template can **delete your table** +- **Single-Region start**: you can create a `AWS::DynamoDB::GlobalTable` resource with one Region and safely add replicas later +- **PITR/backups**: enabling on one replica may be sufficient; AWS Backup can replicate backups cross-Region automatically + +## Commands and Syntax + +**Safe conversion from Table to GlobalTable in CloudFormation:** +1. Set `AWS::DynamoDB::Table` deletion policy to `Retain` +2. Remove the table from the stack definition +3. Add replicas via the AWS Console (converts to global table) +4. Import as `AWS::DynamoDB::GlobalTable` resource into the stack + +## Relationships + +- **CloudFormation**: `AWS::DynamoDB::GlobalTable` vs `AWS::DynamoDB::Table` resource types — distinct and non-interchangeable via type change +- **AWS Backup / PITR**: cross-Region backup replication complements global table replication for disaster recovery +- **Global table design**: references separate best practices page (`bp-global-table-design`) for multi-Region HA patterns +- **Legacy global tables**: version 2017.11.29 documented separately + +## Exam-Relevant Points + +- Never convert `AWS::DynamoDB::Table` → `AWS::DynamoDB::GlobalTable` by changing the resource type — this can delete the table +- All global table replicas should be defined in **one Region's CloudFormation stack** to avoid cross-stack drift errors +- Deletion protection is **per-replica**, not global +- PITR on a single replica can satisfy DR requirements when combined with AWS Backup cross-Region replication +- Always prefer version 2019.11.21 (Current) over 2017.11.29 (Legacy) + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-kds_gettingstartedhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-kds_gettingstartedhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..83bc2cad111ae33a9682c754b499aa328de7194f --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-kds_gettingstartedhtml.md @@ -0,0 +1,78 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/kds_gettingstarted.html +source: sources/amazondynamodb-latest-developerguide-kds_gettingstartedhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:33 + + + +## Overview + +This page provides a step-by-step guide for enabling and managing Kinesis Data Streams (KDS) as a streaming destination for Amazon DynamoDB tables. It covers creating a Kinesis stream, linking it to a DynamoDB table, writing data, consuming stream records, and updating stream configuration (specifically timestamp precision) — using the AWS Console, AWS CLI, and Java SDK. + +## Key Concepts + +- **Kinesis Data Streams for DynamoDB** allows you to stream DynamoDB item-level changes to a Kinesis data stream for real-time processing +- **Timestamp precision** can be set to either **millisecond** (default) or **microsecond** granularity via `ApproximateCreationDateTimePrecision` +- Stream records contain `OldImage` and `NewImage` fields representing the item before and after modification (DynamoDB JSON format) +- Shard count should initially be set to scale with usage patterns, then adjusted once data on usage is accumulated +- Streaming status transitions: enabling → `ACTIVE`; when updating config → `UPDATING` → `ACTIVE` (updates typically take up to **5 minutes**) +- The `ApproximateCreationDateTime` field in each record reflects when the change occurred, with precision controlled by the stream configuration + +## Commands and Syntax + +**Create a Kinesis stream:** +```bash +aws kinesis create-stream --stream-name samplestream --shard-count 3 +aws kinesis describe-stream --stream-name samplestream +``` + +**Enable KDS streaming on a DynamoDB table:** +```bash +# With microsecond precision +aws dynamodb enable-kinesis-streaming-destination \ + --table-name Music \ + --stream-arn arn:aws:kinesis:us-west-2:12345678901:stream/samplestream \ + --enable-kinesis-streaming-configuration ApproximateCreationDateTimePrecision=MICROSECOND + +# With default (millisecond) precision +aws dynamodb enable-kinesis-streaming-destination \ + --table-name Music \ + --stream-arn arn:aws:kinesis:us-west-2:12345678901:stream/samplestream +``` + +**Check streaming status:** +```bash +aws dynamodb describe-kinesis-streaming-destination --table-name Music +``` + +**Update timestamp precision on an active stream:** +```bash +aws dynamodb update-kinesis-streaming-destination \ + --table-name enable_test_table \ + --stream-arn arn:aws:kinesis:us-east-1:12345678901:stream/enable_test_stream \ + --update-kinesis-streaming-configuration ApproximateCreationDateTimePrecision=MICROSECOND +``` + +**Consume records:** Use `aws kinesis get-records` or the Kinesis Client Library; deserialize using the `dynamodb` → `OldImage`/`NewImage` JSON structure. + +## Relationships + +- **DynamoDB Streams vs. Kinesis Data Streams**: This is the Kinesis-based alternative to native DynamoDB Streams, offering broader Kinesis ecosystem integration +- **Kinesis consumers**: Stream data can be consumed by Lambda, Kinesis Data Analytics (Flink), KCL applications, and other AWS services +- **Shard management**: Links to shard sizing/management considerations specific to DynamoDB-to-KDS workloads +- **DynamoDB write operations**: `PutItem`, `UpdateItem`, `DeleteItem` all generate stream records + +## Exam-Relevant Points + +- DynamoDB supports streaming to Kinesis Data Streams as an alternative to DynamoDB Streams +- Timestamp precision is configurable: **millisecond** (default) or **microsecond** +- Updating timestamp precision on an active stream takes up to **5 minutes** and transitions through `UPDATING` status +- Shard count must be explicitly set when creating the Kinesis stream — start with auto-scaling guidance, then tune +- Stream records use DynamoDB JSON format with typed attribute values (e.g., `{"S": "value"}`) +- The console path for enabling KDS is under the **Exports and streams** tab of a DynamoDB table +- The relevant DynamoDB API actions are: `EnableKinesisStreamingDestination`, `DescribeKinesisStreamingDestination`, `UpdateKinesisStreamingDestination` + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-kds_iamhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-kds_iamhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e5eea36176c329546f81eb6a23551e09f9a52d3e --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-kds_iamhtml.md @@ -0,0 +1,62 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/kds_iam.html +source: sources/amazondynamodb-latest-developerguide-kds_iamhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:34 + + + +## Overview +This page covers the IAM policies and permissions required to manage Amazon Kinesis Data Streams (KDS) integration with Amazon DynamoDB, including the service-linked role that DynamoDB automatically creates for replication. + +## Key Concepts +- **Service-linked role**: `AWSServiceRoleForDynamoDBKinesisDataStreamsReplication` is automatically created when you first enable KDS for DynamoDB; it allows DynamoDB to replicate item-level changes to Kinesis on your behalf. +- **Trust principal**: The role is assumed by `kinesisreplication.dynamodb.amazonaws.com`. +- **Role capabilities**: Put records to Kinesis streams, describe streams, and generate KMS data keys (for encrypted streams). +- **Tag-based conditions**: DynamoDB does **not** support tag-based conditions for IAM policies. +- **Least-privilege pattern**: Each operation (enable, describe, disable, update) has its own distinct IAM action, allowing fine-grained access control per table. + +## Commands and Syntax +**Required permissions by operation:** + +| Operation | DynamoDB Actions | Kinesis Actions | +|-----------|-----------------|-----------------| +| Enable | `dynamodb:EnableKinesisStreamingDestination` | `kinesis:ListStreams`, `kinesis:PutRecords`, `kinesis:DescribeStream` | +| Describe | `dynamodb:DescribeKinesisStreamingDestination` | `kinesis:DescribeStreamSummary`, `kinesis:DescribeStream` | +| Disable | `dynamodb:DisableKinesisStreamingDestination` | — | +| Update | `dynamodb:UpdateKinesisStreamingDestination` | — | + +**Enable policy also requires** permission to create the service-linked role: +```json +{ + "Effect": "Allow", + "Action": "iam:CreateServiceLinkedRole", + "Resource": "arn:aws:iam::*:role/aws-service-role/kinesisreplication.dynamodb.amazonaws.com/AWSServiceRoleForDynamoDBKinesisDataStreamsReplication", + "Condition": { + "StringLike": { + "iam:AWSServiceName": "kinesisreplication.dynamodb.amazonaws.com" + } + } +} +``` + +**Resource-level policies** scope to specific tables: `arn:aws:dynamodb:us-west-2:111122223333:table/Music` + +## Relationships +- **IAM service-linked roles** — general IAM concept; this is a specific instance for DynamoDB-to-KDS replication. +- **DynamoDB Streams vs. Kinesis Data Streams** — alternative streaming mechanisms; KDS integration uses this IAM model rather than DynamoDB Streams permissions. +- **AWS KMS** — required when the destination Kinesis stream uses customer-managed encryption keys (GenerateDataKey permission). +- **DynamoDB change data capture** — KDS for DynamoDB is one of the CDC patterns alongside DynamoDB Streams. + +## Exam-Relevant Points +- The service-linked role is created **automatically** on first enable — no manual creation needed. +- You **cannot edit** the role's permissions, only its description. +- Enabling KDS for DynamoDB requires **both** DynamoDB and Kinesis permissions (cross-service). +- Each streaming operation (enable/describe/disable/update) maps to a **separate IAM action**, enabling per-table, per-operation access control. +- You can combine Allow and Deny statements to selectively grant permissions on one table while blocking them on another. +- DynamoDB does **not** support tag-based IAM conditions. +- Deleting the service-linked role while it's in use will fail; you must disable KDS streaming first. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-kds_using-shards-and-metricshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-kds_using-shards-and-metricshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..706839e1e817e55675dee4615c9a6a6921c893e6 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-kds_using-shards-and-metricshtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/kds_using-shards-and-metrics.html +source: sources/amazondynamodb-latest-developerguide-kds_using-shards-and-metricshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:34 + + + +## Overview + +This page covers how to configure and monitor Kinesis Data Streams shards when used as a destination for DynamoDB change data capture (CDC). It explains shard capacity planning for provisioned mode, provides a formula for calculating required shards, and describes CloudWatch metrics for monitoring replication health. + +## Key Concepts + +- **Kinesis capacity modes**: On-demand (auto-scales, no planning needed) and provisioned (you specify shard count) +- **On-demand mode** is recommended for highly variable/unpredictable DynamoDB write workloads +- **Update operations** replicate both old and new images, generating twice the item size in the stream +- Items larger than **34 KB** may expand beyond the **1 MB Kinesis record limit** due to Boolean/empty attribute serialization (1 byte in DynamoDB → up to 5 bytes in JSON), causing those records to be **skipped** (not retried) +- If `AgeOfOldestUnreplicatedRecord` exceeds **168 hours (7 days)**, replication is **automatically disabled** +- DynamoDB **retries** throttled records, but this increases replication latency + +## Commands and Syntax + +**Shard calculation formula (provisioned mode):** +``` +number_of_shards = ceiling( + max( + (write_throughput * (4 + percentage_of_updates/100) * average_record_size_in_bytes) / 1024 / 1024, + write_throughput / 1000 + ), + 1 +) +``` + +**Example**: 1040 writes/sec, 800-byte records, 25% updates → **2 shards** + +## Relationships + +- **DynamoDB Streams vs Kinesis Data Streams**: Alternative CDC destinations; this page covers the Kinesis path +- **CloudWatch**: Provides monitoring metrics for replication health +- **SNS**: Can be used with CloudWatch alarms for threshold notifications +- **TTL**: TTL-generated deletes count toward `write_throughput` in shard calculations +- **IAM**: Access policy changes on the Kinesis stream can break replication + +## Exam-Relevant Points + +- **168-hour cutoff**: Replication auto-disables if `AgeOfOldestUnreplicatedRecord` exceeds 168 hours +- **1 MB Kinesis record limit**: Items >34 KB with many Boolean/empty attributes can exceed this and are **silently skipped** (not retried) +- **Three key CloudWatch metrics**: `ThrottledPutRecordCount`, `AgeOfOldestUnreplicatedRecord`, `FailedToReplicateRecordCount` +- The shard formula accounts for DynamoDB's **additional bloat** when serializing change records +- The formula estimates shards for DynamoDB CDC only — not for additional Kinesis consumers +- On-demand mode eliminates capacity planning; provisioned mode requires manual scaling for peak throughput + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-kdshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-kdshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3c0919983d1eee6198f76f6d24db124e7c633f2d --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-kdshtml.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/kds.html +source: sources/amazondynamodb-latest-developerguide-kdshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:34 + + + +## Overview + +This page describes how to integrate Amazon DynamoDB with Amazon Kinesis Data Streams to capture item-level changes (CDC — change data capture) from DynamoDB tables in near-real time. The integration streams create/update/delete events to a Kinesis data stream, enabling downstream analytics, alerting, and archival workloads. + +## Key Concepts + +- **Change Data Capture (CDC)**: Kinesis Data Streams captures item-level modifications (create, update, delete) from any DynamoDB table. +- **Data record contents**: Each record includes the time of change, the item's primary key, a before-image snapshot, and an after-image snapshot. +- **Near-real-time**: Records are published asynchronously with no performance impact on the source table. +- **Ordering and duplicates**: Records may arrive out of order or duplicated; use `ApproximateCreationDateTime` to determine order and deduplicate. +- **`ApproximateCreationDateTime` precision**: Configurable to milliseconds (default) or microseconds; can be changed on an active streaming destination. +- **Double base64 encoding**: Binary values in DynamoDB are base64-encoded; Kinesis encodes them again — consumers must decode twice. +- **Encryption at rest**: Stream records stored in Kinesis are encrypted at rest. +- **Billing unit**: 1 change data capture unit = 1 KB of change per item, calculated from the larger of the before/after images (same logic as write capacity unit consumption). No provisioned throughput needed. +- **Constraints**: Source table and Kinesis stream must be in the same AWS account and Region. Each table can stream to only one Kinesis data stream. +- **Dual pricing**: Subject to both Kinesis Data Streams pricing and DynamoDB pricing. + +## Commands and Syntax + +No specific CLI commands on this page — it references the [Getting Started guide](./kds_gettingstarted.html) for console, AWS CLI, and Java SDK enablement steps. Streaming can be enabled/disabled via Console, SDK, or CLI. + +## Relationships + +- **DynamoDB Streams vs. Kinesis Data Streams**: Alternative CDC mechanism; Kinesis offers longer retention, enhanced fan-out, and broader integrations. +- **Amazon Data Firehose**: Kinesis streams can feed Firehose for delivery to S3, Redshift, OpenSearch, etc. +- **Amazon Managed Service for Apache Flink**: Enables real-time analytics on the CDC stream. +- **AWS Lambda**: Can consume Kinesis stream records as an event source. +- **Kinesis Client Library (KCL)**: SDK for building custom consumers. +- **IAM policies**: Dedicated IAM configuration required (see `kds_iam.html`). +- **Capacity/billing model**: Change data capture unit sizing uses the same logic as DynamoDB write capacity units. + +## Exam-Relevant Points + +- A DynamoDB table can stream to **only one** Kinesis data stream, and both must be in the **same account and Region**. +- CDC records include **both before and after images** of the modified item. +- Records may be **out of order or duplicated** — use `ApproximateCreationDateTime` for ordering and dedup. +- **No performance impact** on the source table (asynchronous capture). +- Billing is based on **change data capture units** (1 KB per item change, larger of before/after image) — no provisioned throughput required. +- Binary values require **double base64 decoding** when read from Kinesis. +- `ApproximateCreationDateTime` precision is configurable (milliseconds or microseconds) and can be changed on an active destination. +- Stream records are **encrypted at rest** in Kinesis. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-logging-using-cloudtrailhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..4f553003b62162d27a7c13842ee3f7a30db8f694 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/logging-using-cloudtrail.html +source: sources/amazondynamodb-latest-developerguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:35 + + + +## Overview +DynamoDB integrates with AWS CloudTrail to log API calls made by users, roles, or services. CloudTrail captures both control plane and data plane operations, including PartiQL and classic API calls. Logs can be delivered to S3, analyzed with CloudWatch Logs or Athena, and used to determine who made requests, from where, and when. + +## Key Concepts +- **CloudTrail is enabled by default** on all AWS accounts — recent events are viewable in Event History without creating a trail +- **Trails** enable continuous delivery of log files to an S3 bucket; by default they apply to all AWS Regions +- **Control plane events** (e.g., CreateTable, DeleteTable, UpdateTable) are logged by default +- **Data plane events** (e.g., GetItem, PutItem, Query, Scan) require explicit enablement of data plane API logging in CloudTrail +- **DynamoDB TTL data plane actions are NOT logged by CloudTrail** +- Data plane events can be filtered by resource type: `AWS::DynamoDB::Table` or `AWS::DynamoDB::Stream` +- For tables with streams enabled, data plane events contain both resource types; specifying `AWS::DynamoDB::Table` logs both table and stream events unless you add a filter to exclude streams + +## Commands and Syntax +No CLI commands shown directly, but key configuration points: +- Create a trail to deliver logs to S3 +- Enable data plane logging via CloudTrail's "Logging data events" configuration +- Filter by resource type: `AWS::DynamoDB::Stream` or `AWS::DynamoDB::Table` +- Use `AdvancedFieldSelector` to exclude specific event types (e.g., streams events) + +## Relationships +- **CloudTrail** → delivers logs to **Amazon S3** +- **CloudTrail** → integrates with **CloudWatch Logs** for monitoring and alerting +- **Amazon Athena** → queries CloudTrail logs for analysis (e.g., filter by source IP, user) +- **SNS** → can be configured for CloudTrail notifications +- **DynamoDB Streams** and **DAX** have their own sets of logged control plane events +- **Application Auto Scaling** events (DescribeScalableTargets, RegisterScalableTarget) are logged under DynamoDB control plane + +## Exam-Relevant Points +- Control plane operations are logged **by default**; data plane operations require **explicit enablement** +- TTL deletions are **not** logged by CloudTrail — this is a common trick question +- Resource type filtering: `AWS::DynamoDB::Table` captures both table and stream events by default; use `AWS::DynamoDB::Stream` to capture only stream API calls +- CloudTrail Event History shows recent events without needing a trail; a trail is needed for long-term S3 storage +- DAX operations (CreateCluster, DeleteCluster, etc.) are logged as control plane events +- DynamoDB Streams control plane (DescribeStream, ListStreams) is logged by default; data plane (GetRecords, GetShardIterator) requires data event logging +- Reserved capacity operations (Describe, Purchase) are logged as control plane events + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-metrics-dimensionshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-metrics-dimensionshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..63e17fb90f93a9788ab13d06bdde6fe8a538b395 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-metrics-dimensionshtml.md @@ -0,0 +1,75 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/metrics-dimensions.html +source: sources/amazondynamodb-latest-developerguide-metrics-dimensionshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:35 + +## Overview + +This page documents the CloudWatch metrics and dimensions that DynamoDB emits for monitoring table and index performance. It covers capacity consumption, throttling, latency, replication, error tracking, and auto scaling behavior, along with the valid statistics and dimensions for each metric. + +## Key Concepts + +- **Aggregation granularity**: ~20 metrics are aggregated at **1-minute** intervals; all others at **5-minute** intervals +- **Auto scaling trigger**: Fires when consumed capacity breaches target utilization for **2 consecutive minutes**; scale-down requires **15 consecutive data points** below target +- **After auto scaling triggers**: `UpdateTable` API is called, taking several minutes to apply — requests exceeding previous capacity are **throttled during this period** +- **Sum is the most useful statistic** for `ConsumedReadCapacityUnits` and `ConsumedWriteCapacityUnits` — divide Sum by 60 to get per-second average +- **Average values are skewed** by periods of inactivity (zero samples) +- **TableName dimension alone** returns capacity for the table only, **not** GSIs — must specify both `TableName` and `GlobalSecondaryIndexName` for GSI metrics +- **ConditionalCheckFailedRequests** return HTTP 400 but are **not** counted in `UserErrors` +- **Throttle metric categories**: Account-level, partition-level (KeyRange), on-demand max, and provisioned throughput — for both reads and writes +- **ConsumedWriteCapacityUnits** has a `Source` dimension: `Customer` for regional writes, `GlobalTable` for replicated writes +- **AccountMax metrics** (Reads/Writes) do **not** apply to on-demand tables or GSIs; **AccountMaxTableLevel** metrics **do** apply to on-demand +- **ReplicationLatency** — tracks global table replication delay between regions +- **PendingReplicationCount** — legacy global tables (v2017.11.29) only +- **OnlineIndexPercentageProgress** — tracks GSI backfill progress +- **OnlineIndexConsumedWriteCapacity** and **OnlineIndexThrottleEvents** — now expected to show 0 during index builds (legacy metrics) +- **FaultInjectionServiceInducedErrors** — tracks errors induced by AWS FIS experiments +- **SuccessfulRequestLatency** — measures elapsed time for successful operations +- **SystemErrors** vs **UserErrors** — server-side (HTTP 500) vs client-side (HTTP 400) errors +- **TimeToLiveDeletedItemCount** — counts items deleted by TTL +- **TransactionConflict** — counts rejected items due to transactional conflicts + +## Commands and Syntax + +No CLI commands on this page, but key usage patterns: + +``` +# Calculate average consumed RCUs per second +Average RCU/s = Sum(ConsumedReadCapacityUnits, 1 min) / 60 + +# Key dimensions for table-level metrics +TableName +GlobalSecondaryIndexName +Source (Customer | GlobalTable) + +# Key dimensions for replication metrics +TableName, ReceivingRegion +TableName, DelegatedOperation +``` + +## Relationships + +- **Auto Scaling** — metrics drive auto scaling via CloudWatch alarms; `ConsumedReadCapacityUnits` and `ConsumedWriteCapacityUnits` are the primary inputs +- **CloudWatch Alarms** — throttle metrics (`ReadThrottleEvents`, `WriteThrottleEvents`, etc.) used for operational alerting +- **Global Tables** — `ReplicationLatency`, `PendingReplicationCount`, `AgeOfOldestUnreplicatedRecord` track cross-region replication health +- **Kinesis Data Streams** — `FailedToReplicateRecordCount`, `ThrottledPutRecordCount` monitor DynamoDB-to-Kinesis streaming +- **Provisioned vs On-Demand** — different throttle metrics apply depending on capacity mode +- **GSI Operations** — `OnlineIndexPercentageProgress` monitors GSI creation backfill +- **AWS FIS** — `FaultInjectionServiceInducedErrors` integrates with fault injection experiments + +## Exam-Relevant Points + +- Auto scaling triggers after **2 consecutive minutes** above target; scale-down after **15 consecutive points** below target +- Use **Sum** (not Average) for consumed capacity calculations; divide by 60 for per-second rate +- `ConditionalCheckFailedRequests` are HTTP 400 but do **not** increment `UserErrors` +- `TableName` dimension alone **excludes** GSI consumed capacity — you must add `GlobalSecondaryIndexName` +- `AccountMaxReads`/`AccountMaxWrites` do **not** apply to on-demand tables +- Capacity metrics are **1-minute granularity**; most others are **5-minute** +- During auto scaling capacity changes, requests exceeding **previous** provisioned capacity are throttled +- Global table replicated writes show `Source=GlobalTable` on `ConsumedWriteCapacityUnits` +- Short spikes lasting less than a second may not appear in CloudWatch metrics accurately + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-migration-guidehtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-migration-guidehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c6636a11a32a81c2ee7cc1f28cf7afc9042191c3 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-migration-guidehtml.md @@ -0,0 +1,60 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/migration-guide.html +source: sources/amazondynamodb-latest-developerguide-migration-guidehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:36 + + + +## Overview + +This page covers the end-to-end process of migrating from a relational database to Amazon DynamoDB, including motivations, key considerations (schema design differences, sizing constraints), available tools, and four distinct migration strategies: offline, hybrid, online 1:1, and online with a custom staging table. + +## Key Concepts + +- **RDBMS vs NoSQL design mindset**: Relational databases design for flexibility and normalize data; DynamoDB designs for specific access patterns and favors fewer tables with denormalized or stacked data. +- **Item size limit**: Maximum item size in DynamoDB is **400 KB**. Oversized items should be split into item collections, compressed, or stored in S3 with a pointer in DynamoDB. +- **Update cost**: Based on the full item size — smaller items (1–2 KB) are cheaper to update frequently. +- **Write operations**: `PutItem` (singleton, supports SDK auto-retry), `BatchWriteItem` (up to 25 items per call, no automatic retries — must handle `UnprocessedItems` yourself), and **Import from S3** (bulk load into a *new* table only, no transforms, no existing table support). +- **Write velocity & provisioning**: Writes are bounded by provisioned WCU. Exceeding capacity causes throttling; monitor via CloudWatch. +- **Change Data Capture (CDC)**: Relational DB feature that tracks row-level changes via internal logs — essential for online migrations. CDC does **not** work on SQL VIEWs. +- **Migration strategies** (four tiers of downtime tolerance): + - **Offline**: Full downtime, simplest — ETL to S3, then DynamoDB Import from S3. + - **Hybrid**: Partial uptime (reads allowed, writes restricted) — dual writes for inserts, backfill via ETL. + - **Online 1:1**: Zero downtime, tables migrated individually — AWS DMS Full Load + CDC. + - **Online custom staging**: Zero downtime, tables combined — create a NoSQL-shaped staging table in SQL using triggers/stored procs, then DMS with CDC. +- **Combining tables**: Use SQL `JOIN` (denormalize) or `UNION` (stack entities) via VIEWs for offline; use staging tables with triggers for online. + +## Commands and Syntax + +No CLI commands on this page. Key API operations referenced: + +- **`PutItem`** — single item write with SDK auto-retry +- **`BatchWriteItem`** — up to 25 items; check response for `UnprocessedItems` +- **DynamoDB Import from S3** — invoked via console/API; accepts CSV or DynamoDB JSON format; creates a new table +- **AWS DMS task types**: "Full Load" (bulk), "Full Load and Change Data Capture" (bulk + ongoing sync) + +## Relationships + +- **Data modeling**: Assumes familiarity with [single-table design](./bp-relational-modeling.html) and [NoSQL modeling best practices](./bp-general-nosql-design.html) +- **Sizing & cost**: Links to [Service Quotas](./ServiceQuotas.html), [Item size calculations](./CapacityUnitCalculations.html), [cost optimization](./bp-cost-optimization.html), [large items via S3](./bp-use-s3-too.html) +- **Throttling**: Links to [troubleshooting throttling](./TroubleshootingThrottling.html) +- **S3 Import**: Links to [S3 Import How It Works](./S3DataImport.HowItWorks.html) +- **Tools**: AWS DMS, AWS Glue, Amazon EMR, Amazon Managed Streaming for Apache Kafka +- **Item collections**: Links to [WorkingWithItemCollections](./WorkingWithItemCollections.html) + +## Exam-Relevant Points + +- DynamoDB item size limit is **400 KB**; oversized items → S3 + pointer or item collections. +- `BatchWriteItem` supports up to **25 items** per call and does **not** include automatic SDK retries. +- **DynamoDB Import from S3** creates a **new table only** — cannot load into an existing table, and performs no transformations. +- CDC is not supported on SQL **VIEWs** — online migrations combining tables require a physical staging table with triggers. +- For online migration with schema reshaping, use SQL **triggers or stored procedures** to maintain a synchronized staging table, then migrate with DMS CDC. +- DynamoDB availability SLA: up to **99.999%** (with global tables). +- Write cost is proportional to the **full item size**, not just the changed attributes. +- Monitor provisioned capacity throttling via **CloudWatch** metrics on the DynamoDB console monitoring tab. +- AWS DMS supports both **Full Load** and **Full Load + CDC** task types for DynamoDB as a target. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-on-demand-capacity-mode-max-throughputhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-on-demand-capacity-mode-max-throughputhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7bbc60cfddf2a624f1119583b62d1f7c13be6d12 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-on-demand-capacity-mode-max-throughputhtml.md @@ -0,0 +1,58 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode-max-throughput.html +source: sources/amazondynamodb-latest-developerguide-on-demand-capacity-mode-max-throughputhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:36 + + + +## Overview + +DynamoDB on-demand tables support an optional maximum throughput setting (read, write, or both) per table and per GSI, allowing you to cap usage and costs while retaining on-demand flexibility. Without this setting, throughput is bounded only by the account-level service quota of 40,000 RRU/WRU per table. + +## Key Concepts + +- **Maximum on-demand throughput** — an optional per-table and per-GSI cap on read/write request units per second +- **Default behavior** — no maximum applied; bounded only by the account-level service quota (40,000 RRU/WRU per table by default) +- **Throttling** — requests exceeding the configured maximum receive a `ThrottlingException` +- **Best-effort enforcement** — the cap is a target, not a guaranteed ceiling; **burst capacity** may temporarily allow traffic above the maximum +- **Minimum setting** — 1 request unit per second +- **Maximum setting** — must be lower than the default throughput quota for the table/GSI +- **Global tables** — setting max throughput on one replica automatically applies to all replicas (write throughput must be identical across replicas) +- **Reads and writes are independent** — you can set max throughput for reads, writes, or both separately + +## Commands and Syntax + +Configurable via: DynamoDB Console, AWS CLI, CloudFormation (`AWS::DynamoDB::Table`), or DynamoDB API. + +No specific CLI syntax was provided on this page, but the setting applies during: +- Table creation (new tables) +- Modification of existing tables +- Table restore operations +- S3 data import workflows + +**CloudWatch metrics for monitoring:** +- `OnDemandMaxReadRequestUnits` — configured max read throughput +- `OnDemandMaxWriteRequestUnits` — configured max write throughput + +## Relationships + +- **On-demand capacity mode** — this feature is a refinement of on-demand mode (`capacity-mode.html`) +- **Service quotas** — relates to default account-level throughput limits (`ServiceQuotas.html`) +- **Burst capacity** — max throughput can be temporarily exceeded via burst capacity (`burst-adaptive-capacity.html`) +- **Global tables** — max throughput propagates across replicas (`globaltables-bestpractices.html`) +- **CloudWatch metrics** — monitoring via `metrics-dimensions.html` +- **GSIs** — max throughput is independently configurable per GSI + +## Exam-Relevant Points + +- The default account-level on-demand quota is **40,000 RRU/WRU per table** (increasable via service quota request) +- Max throughput is **best-effort, not a hard ceiling** — burst capacity can exceed it +- Setting max throughput on **one global table replica applies to all replicas automatically** +- Exceeding the max returns a **`ThrottlingException`** (not `ProvisionedThroughputExceededException`) +- The minimum configurable value is **1 request unit per second** +- Three key use cases: cost optimization, protection against runaway processes, and safeguarding fixed-capacity downstream services + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-on-demand-capacity-modehtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-on-demand-capacity-modehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d7f2729e2bf7c8985bd10a19f7ef3860f9fa138d --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-on-demand-capacity-modehtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode.html +source: sources/amazondynamodb-latest-developerguide-on-demand-capacity-modehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:36 + + + +## Overview + +DynamoDB on-demand capacity mode is a serverless, pay-per-request pricing model that automatically scales throughput to match workload demands without requiring capacity planning. It is the default and recommended mode, suitable for applications with unpredictable or variable traffic patterns. + +## Key Concepts + +- **Pay-per-request billing** — you are charged only for reads and writes actually performed; zero traffic means zero throughput charges. +- **Read Request Unit (RRU)** — one strongly consistent read/sec (or two eventually consistent reads/sec) for an item up to **4 KB**. +- **Write Request Unit (WRU)** — one write/sec for an item up to **1 KB**. +- **Default table throughput quota** — 40,000 RRU/WRU per table (can request increase). +- **Optional max throughput cap** — you can set per-table and per-GSI maximum read/write throughput to control costs and prevent runaway usage. +- **Same SLA guarantees** — single-digit millisecond latency, same SLA and security as provisioned mode. + +## Commands and Syntax + +- Create or update a table to on-demand mode via `CreateTable` or `UpdateTable` (setting `BillingMode` to `PAY_PER_REQUEST`). +- No capacity units need to be specified when using on-demand mode. + +## Relationships + +- **Provisioned mode** — the alternative capacity mode; switching from provisioned → on-demand is limited to **4 times per 24-hour rolling window**; switching on-demand → provisioned can be done **at any time**. +- **Warm throughput** — pre-warming is recommended when expecting traffic beyond double the previous peak. +- **Global Secondary Indexes (GSIs)** — on-demand max throughput caps can be set individually on GSIs. +- **Service Quotas** — default 40,000 RRU/WRU table-level limit applies across all tables in the account. + +## Exam-Relevant Points + +- New on-demand tables can sustain up to **4,000 writes/sec** and **12,000 reads/sec** initially. +- On-demand instantly accommodates up to **double the previous peak** traffic without throttling. +- Exceeding **double the previous peak within 30 minutes** can cause throttling — space traffic growth over at least 30 minutes or pre-warm the table. +- Once a new peak is reached, it becomes the baseline for future doubling (e.g., 50K peak → 100K allowed → 100K becomes new peak → 200K allowed). +- Switching provisioned → on-demand: **max 4 times in 24 hours**. Switching on-demand → provisioned: **unlimited**. +- 1 RRU = 1 strongly consistent read = 2 eventually consistent reads (up to 4 KB). +- 1 WRU = 1 write (up to 1 KB). + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-pointintimerecovery_restoreshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-pointintimerecovery_restoreshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..6a1097eb130f9fc06acd38b0512757e6f485440b --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-pointintimerecovery_restoreshtml.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/pointintimerecovery_restores.html +source: sources/amazondynamodb-latest-developerguide-pointintimerecovery_restoreshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:36 + + + +## Overview + +This page covers how to restore a DynamoDB table from either point-in-time recovery (PITR) backups or on-demand backups. Restores always create a new table and can be performed via the Console, CLI, or API. It details what settings carry over, what must be manually reconfigured, and cross-region restore capabilities. + +## Key Concepts + +- **Restores always create a new table** — you cannot restore in-place to an existing table. +- **PITR restores** go back to any point from `EarliestRestorableDateTime` to `LatestRestorableDateTime` with day:hour:minute:second granularity. +- **Disabling then re-enabling PITR resets** the `EarliestRestorableDateTime` — you can only restore from the re-enable point onward. +- **No provisioned throughput consumed** on the source table during restore. +- **Full table restore** preserves the provisioned capacity from the point-in-time being restored (not the current settings). +- **Cross-region restores** are supported between commercial regions, China regions, and GovCloud — you pay for data transfer out of source region plus restore costs in destination. +- **Cross-region restore not supported** if source or destination is Asia Pacific (Hong Kong) or Middle East (Bahrain). +- **Restore time is variable** and not directly correlated to table size. + +## Settings You CAN Change on the Restored Table + +- Global secondary indexes (GSIs) +- Local secondary indexes (LSIs) +- Billing mode +- Provisioned read/write capacity +- Encryption settings + +## Settings You MUST Manually Reconfigure + +- Auto scaling policies +- IAM policies +- CloudWatch metrics and alarms +- Tags +- Stream settings +- TTL settings +- PITR settings (on the new table) + +## Commands and Syntax + +No specific CLI commands shown on this page, but the restore APIs are: +- `RestoreTableToPointInTime` (PITR) +- `RestoreTableFromBackup` (on-demand) + +## Relationships + +- **PITR** — must be enabled beforehand; see `PointInTimeRecovery` / `UpdateContinuousBackups` +- **On-demand backups** — alternative restore source via `CreateBackup` / `RestoreTableFromBackup` +- **GSIs/LSIs** — can be modified during restore, impacting restore speed and cost +- **Auto scaling, IAM, CloudWatch, Streams, TTL** — all require post-restore configuration +- **Cross-region** — connects to data transfer pricing and regional availability + +## Exam-Relevant Points + +- Restores **always go to a new table**, never overwrite the source. +- Disabling + re-enabling PITR **resets the recovery window** — critical gotcha. +- Full restore uses the **provisioned capacity from the restore point in time**, not current settings. +- Restoring does **not consume provisioned throughput** on the source table. +- **Six settings are NOT restored** and must be manually applied (auto scaling, IAM, CloudWatch, tags, streams, TTL, PITR). +- Excluding indexes from restore makes it **faster and cheaper**. +- Cross-region restore is supported but **two regions are excluded** (Hong Kong, Bahrain). + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-privatelink-interface-endpointshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-privatelink-interface-endpointshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..da626c85f83ee172c938a4e63e26a908c2e25927 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-privatelink-interface-endpointshtml.md @@ -0,0 +1,93 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/privatelink-interface-endpoints.html +source: sources/amazondynamodb-latest-developerguide-privatelink-interface-endpointshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:37 + +## Overview +AWS PrivateLink for DynamoDB enables interface VPC endpoints that allow private network connectivity to DynamoDB from within a VPC, from on-premises networks (via Direct Connect or Site-to-Site VPN), or from VPCs in other AWS Regions (via VPC peering or Transit Gateway). Unlike gateway endpoints, interface endpoints use private IP addresses and support cross-network access, but they are billed. + +## Key Concepts +- **Interface endpoints** use ENIs with private IPs in your VPC subnets; traffic stays on the AWS network +- **Gateway endpoints** use public DynamoDB IPs via route table entries; free but no on-premises or cross-region access +- Both endpoint types can coexist in the same VPC — gateway for in-VPC (free), interface for on-premises (billed) +- Interface endpoints generate two DNS name types: **Regional** (`vpce-xxx.dynamodb.region.vpce.amazonaws.com`) and **Zonal** (`vpce-xxx-az.dynamodb.region.vpce.amazonaws.com`) +- Zonal DNS names useful for AZ isolation (fault containment, reduced cross-AZ data transfer costs) +- Throughput limit: **50,000 requests/second per PrivateLink endpoint** +- TLS 1.1 is **not supported** +- Private/hybrid DNS services are **not supported** +- **Do not** create private hosted zones to override DynamoDB endpoint DNS names — use the VPC endpoint URL directly +- Network connectivity timeouts to PrivateLink endpoints are outside DynamoDB error responses; applications must handle them +- Deploy across **minimum 3 AZs** for optimal reliability + +## Commands and Syntax +**Create interface VPC endpoint:** +```bash +aws ec2 create-vpc-endpoint \ + --region us-east-1 \ + --service-name com.amazonaws.us-east-1.dynamodb \ + --vpc-id client-vpc-id \ + --subnet-ids client-subnet-id \ + --vpc-endpoint-type Interface \ + --security-group-ids client-sg-id +``` + +**Use endpoint URL with CLI:** +```bash +aws dynamodb --region us-east-1 \ + --endpoint https://vpce-1a2b3c4d-5e6f.dynamodb.us-east-1.vpce.amazonaws.com \ + list-tables +``` + +**Boto3 client with endpoint URL:** +```python +ddb_client = session.client( + service_name='dynamodb', + region_name='us-east-1', + endpoint_url='https://vpce-1a2b3c4d-5e6f.dynamodb.us-east-1.vpce.amazonaws.com' +) +``` + +**VPC endpoint policy (restrict to specific table):** +```json +{ + "Version": "2012-10-17", + "Statement": [{ + "Sid": "Access-to-specific-table-only", + "Principal": "*", + "Action": ["dynamodb:GetItem", "dynamodb:PutItem"], + "Effect": "Allow", + "Resource": [ + "arn:aws:dynamodb:us-east-1:111122223333:table/TABLE-NAME", + "arn:aws:dynamodb:us-east-1:111122223333:table/TABLE-NAME/*" + ] + }] +} +``` + +**Console Private Access setup** requires two VPC endpoints (`com.amazonaws..dynamodb` and `com.amazonaws..dynamodb-streams`) plus a Route 53 private hosted zone with alias records. + +## Relationships +- **VPC Gateway Endpoints** — complementary; use gateway for free in-VPC access, interface for on-premises/cross-region +- **AWS Direct Connect / Site-to-Site VPN** — required for on-premises connectivity to interface endpoints +- **VPC Peering / Transit Gateway** — enables cross-region access via interface endpoints +- **DynamoDB Streams** — PrivateLink also supported for Streams endpoints (separate topic) +- **DAX** — has its own PrivateLink support (separate topic) +- **IAM** — endpoint policies control which principals, actions, and resources are accessible through the endpoint +- **Route 53** — needed for Console Private Access DNS configuration +- **Security Groups** — interface endpoints require security group association + +## Exam-Relevant Points +- Gateway endpoints are **free**; interface endpoints are **billed** +- Gateway endpoints do **not** support on-premises or cross-region access; interface endpoints **do** +- Both can coexist in the same VPC — recommended pattern: gateway for in-VPC, interface for on-premises +- Service name for DynamoDB endpoint: `com.amazonaws..dynamodb` +- Clients must use the **endpoint-specific URL** directly (not DNS overrides via private hosted zones) +- Limit of **50,000 req/s per PrivateLink endpoint** +- Interface endpoints require **ENIs with private IPs** in your subnets +- Endpoint policies can restrict access to specific tables and actions +- Minimum **3 AZs** recommended for reliability + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-provisioned-capacity-modehtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-provisioned-capacity-modehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..21b72b4e88b91913f049239b95dfdf927e81481d --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-provisioned-capacity-modehtml.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html +source: sources/amazondynamodb-latest-developerguide-provisioned-capacity-modehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:37 + + + +## Overview + +This page explains DynamoDB's provisioned capacity mode, where you pre-specify read and write throughput capacity units (RCUs and WCUs) for tables. It covers how capacity units are calculated, how to choose initial throughput settings, and how DynamoDB auto scaling automatically adjusts provisioned capacity based on traffic patterns. + +## Key Concepts + +- **Provisioned throughput capacity**: You are billed for the hourly read/write capacity you provision, not what you actually consume. +- **Read Capacity Unit (RCU)**: One RCU = one strongly consistent read/sec for items up to 4 KB, or two eventually consistent reads/sec. +- **Write Capacity Unit (WCU)**: One WCU = one write/sec for items up to 1 KB. +- **Item size rounding**: Divide item size by 4 KB (reads) or 1 KB (writes), then round up to the nearest whole number to get capacity units per operation. +- **Default read consistency**: Reads are eventually consistent by default; strongly consistent reads consume twice the resources. +- **Default table-level throughput limit**: 40,000 RCUs and 40,000 WCUs per table (can request increase). +- **Capacity mode switching**: Provisioned → on-demand up to 4 times per 24-hour rolling window. On-demand → provisioned at any time, no limit. + +## Commands and Syntax + +- **UpdateTable API**: Manually adjust throughput capacity (e.g., increase WCUs for bulk load, then reduce after). +- **Auto scaling configuration**: Set minimum capacity, maximum capacity, and target utilization percentage. DynamoDB auto scaling uses Application Auto Scaling with CloudWatch alarms. + +**Capacity calculation examples:** + +| Scenario | Calculation | Result | +|----------|------------|--------| +| Read 80 items/sec, 3 KB each, strongly consistent | (3 KB / 4 KB) → round up = 1 RCU × 80 | 80 RCUs | +| Write 100 items/sec, 512 bytes each | (512 B / 1 KB) → round up = 1 WCU × 100 | 100 WCUs | + +## Relationships + +- **Auto Scaling**: Uses Application Auto Scaling with CloudWatch alarms; target tracking scaling policies. +- **On-demand mode**: Alternative capacity mode; switching rules apply between the two modes. +- **Global Secondary Indexes (GSIs)**: Have their own provisioned capacity and can also use auto scaling. +- **Reserved capacity**: Available for provisioned mode tables to reduce costs with long-term commitments. +- **Service Quotas**: Default 40,000 RCU/WCU table-level limits; requests exceeding quota are throttled. + +## Exam-Relevant Points + +- 1 RCU = 1 strongly consistent read/sec (up to 4 KB) = 2 eventually consistent reads/sec (up to 4 KB). +- 1 WCU = 1 write/sec (up to 1 KB). +- Item sizes are rounded up to the next 4 KB (reads) or 1 KB (writes) boundary. +- Auto scaling triggers when consumed capacity breaches the target utilization for **two consecutive minutes**. +- Auto scaling is **enabled by default** when creating tables via the AWS Console. +- Recommended target utilization: **70%**. +- You can switch from provisioned to on-demand **at most 4 times in 24 hours**; the reverse has no limit. +- Provisioned mode charges are based on **provisioned** capacity, not consumed capacity. +- CloudWatch alarms created by auto scaling may have a **short delay of up to a few minutes** before triggering. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-attach-resource-based-policyhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-attach-resource-based-policyhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..320dfa0dec8fc9ac488e183b5095b01b242f3d6d --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-attach-resource-based-policyhtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-attach-resource-based-policy.html +source: sources/amazondynamodb-latest-developerguide-rbac-attach-resource-based-policyhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:37 + + + +## Overview +This page explains how to attach or modify a resource-based policy on an existing DynamoDB table using the console, `PutResourcePolicy` API, AWS CLI, AWS SDK, or CloudFormation. Resource-based policies enable cross-account and fine-grained access control directly on DynamoDB tables. + +## Key Concepts +- **Resource-based policies** can be attached to existing DynamoDB tables (not just at creation time) +- Policies follow standard IAM policy structure: `Version`, `Statement`, `Effect`, `Principal`, `Action`, `Resource` +- The `PutResourcePolicy` API is the underlying operation for attaching policies +- **Revision IDs** enable optimistic concurrency control — the `expected-revision-id` parameter allows conditional updates to prevent race conditions +- The API returns a `revisionId` for the newly attached policy + +## Commands and Syntax + +**Attach a policy via CLI:** +``` +aws dynamodb put-resource-policy \ + --resource-arn arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection \ + --policy '{ "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::111122223333:user/John" }, "Action": ["dynamodb:GetItem", "dynamodb:PutItem", "dynamodb:UpdateItem", "dynamodb:UpdateTable"], "Resource": "arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection" }] }' +``` + +**Conditional update with revision ID:** +``` +aws dynamodb put-resource-policy \ + --resource-arn arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection \ + --expected-revision-id 1709841168699 \ + --policy '...' +``` + +**Console path:** DynamoDB Console → Select table → **Permissions** tab → **Create table policy** + +## Relationships +- **PutResourcePolicy API** — the underlying API call +- **Resource-based policies at table creation** — covered in the `rbac-create-table` page (including CloudFormation) +- **DeleteResourcePolicy** — removes policies attached this way +- **GetResourcePolicy** — retrieves current policy and revision ID +- **IAM identity-based policies** — resource-based policies are evaluated alongside identity-based policies; both can grant access +- **Cross-account access** — resource-based policies are the primary mechanism for granting cross-account DynamoDB access + +## Exam-Relevant Points +- `put-resource-policy` is the CLI command; `PutResourcePolicy` is the API action +- The `--expected-revision-id` parameter enables **optimistic locking** for policy updates — the update only succeeds if the current revision matches +- Resource-based policies can grant specific DynamoDB actions (e.g., `dynamodb:GetItem`, `dynamodb:PutItem`) to cross-account IAM principals +- The `Resource` element in the policy must match the table ARN +- The `Principal` uses the full IAM ARN format (`arn:aws:iam::ACCOUNT_ID:user/USERNAME`) +- Multiple methods exist to attach policies: Console, CLI, SDK, CloudFormation — all use the same `PutResourcePolicy` API underneath + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-attach-resource-policy-streamshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-attach-resource-policy-streamshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..8abbb936c2731e0fa4f6733421255c7741bd9d1d --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-attach-resource-policy-streamshtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-attach-resource-policy-streams.html +source: sources/amazondynamodb-latest-developerguide-rbac-attach-resource-policy-streamshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:38 + + + +## Overview +This page explains how to attach resource-based policies to DynamoDB Streams, enabling cross-account or fine-grained access control on stream resources. Policies can be attached via the DynamoDB console, `PutResourcePolicy` API, AWS CLI, AWS SDK, or CloudFormation. + +## Key Concepts +- Resource-based policies can be attached to an **existing table's stream** — not during stream/table creation via `CreateTable` or `UpdateTable` APIs +- Policies can be **modified or deleted after a table is deleted**, and even on **disabled streams** +- The policy follows standard IAM JSON policy syntax (`Version`, `Statement`, `Effect`, `Principal`, `Action`, `Resource`) +- Stream ARN format: `arn:aws:dynamodb:::table//stream/` +- Supported stream actions for resource-based policies include: `dynamodb:GetRecords`, `dynamodb:GetShardIterator`, `dynamodb:DescribeStream` +- IAM Access Analyzer can **preview external access** implications before saving a policy + +## Commands and Syntax + +**CLI — attach a resource-based policy to a stream:** +``` +aws dynamodb put-resource-policy \ + --resource-arn arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection/stream/2024-02-12T18:57:26.492 \ + --policy '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"AWS":"arn:aws:iam::111122223333:user/John"},"Action":["dynamodb:GetRecords","dynamodb:GetShardIterator","dynamodb:DescribeStream"],"Resource":"arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection/stream/2024-02-12T18:57:26.492"}]}' +``` + +**Console procedure:** Tables → select table (with streams enabled) → Permissions tab → Create stream policy → enter JSON or use statement builder → Preview external access (optional) → Create policy. + +## Relationships +- **PutResourcePolicy API** — the underlying API for attaching/modifying policies on streams and tables +- **DynamoDB Streams** — must be enabled on the table before a stream policy can be attached +- **IAM Access Analyzer** — integrates with the console to preview cross-account/public access +- **CloudFormation** — policies can also be managed declaratively via CFN templates +- **Resource-based policies on tables** — parallel concept; stream policies use the same mechanism but target the stream ARN + +## Exam-Relevant Points +- You **cannot** attach a resource-based policy to a stream during `CreateTable` or `UpdateTable` — only after the stream exists +- Policies **persist** and can be modified/deleted even after the parent table is deleted or the stream is disabled +- The stream ARN includes a **timestamp** component (e.g., `/stream/2024-02-12T18:57:26.492`) +- Cross-account access to streams is enabled by specifying another account's IAM principal in the `Principal` field +- The `put-resource-policy` CLI command uses `--resource-arn` (not `--table-name`) to target stream resources specifically + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-auth-iam-id-based-policies-DDBhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-auth-iam-id-based-policies-DDBhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1108ea96446723c31ece63af600a51da08833f1a --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-auth-iam-id-based-policies-DDBhtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-auth-iam-id-based-policies-DDB.html +source: sources/amazondynamodb-latest-developerguide-rbac-auth-iam-id-based-policies-DDBhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:38 + + + +## Overview +This page explains how DynamoDB access control works through two complementary IAM policy types: identity-based policies (attached to users/roles/groups) and resource-based policies (attached directly to DynamoDB tables). It covers how these policies interact within the same account and across accounts. + +## Key Concepts +- **Identity-based policies**: IAM policy documents attached to users, groups, or roles controlling what actions they can perform on which resources. Can be managed or inline. +- **Resource-based policies**: IAM policy documents attached directly to a DynamoDB table (and its associated indexes). Always inline — no managed resource-based policies exist. +- **Same-account access**: A resource-based policy alone is sufficient to grant access. Identity-based policy is optional but can be used alongside it. +- **Cross-account access**: Both identity-based AND resource-based policies must explicitly grant access. +- **Policy evaluation precedence**: When both policy types exist, they are evaluated per IAM's standard deny/allow logic. +- **Critical precedence rule**: An unconditional `Allow` in an identity-based policy overrides conditional `Allow` statements in a resource-based policy. The resource-based policy's conditions (e.g., on `dynamodb:Attributes`) are NOT applied as restrictions. +- **Mitigation for the precedence issue**: Use an explicit `Deny` statement rather than relying on conditional `Allow` statements in resource-based policies to restrict access (e.g., attribute-level restrictions). + +## Commands and Syntax +No CLI commands on this page. The key configuration pattern is: +- To restrict attribute-level access when identity-based policies grant broad access, use explicit `Deny` with conditions rather than conditional `Allow`: +```json +{ + "Effect": "Deny", + "Action": "dynamodb:GetItem", + "Resource": "arn:aws:dynamodb:...", + "Condition": { /* attribute restrictions */ } +} +``` + +## Relationships +- **IAM policy evaluation logic**: References the standard IAM deny/allow evaluation flow +- **DynamoDB cross-account access**: Links to dedicated cross-account resource-based policy guidance +- **IAM managed vs inline policies**: Identity-based policies can be either; resource-based are always inline +- **DynamoDB tables and indexes**: Resource-based policies on a table also cover its associated indexes + +## Exam-Relevant Points +- Resource-based policies in DynamoDB are **always inline** — there are no managed resource-based policies. +- For **same-account** access, a resource-based policy alone is sufficient (no identity-based policy required). +- For **cross-account** access, **both** identity-based and resource-based policies must explicitly allow access. +- An **unconditional Allow** in an identity-based policy **takes precedence** over conditional Allow in a resource-based policy — this is a common trap. Use explicit `Deny` to enforce restrictions. +- A resource-based policy on a DynamoDB table **includes its indexes**. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-best-practiceshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-best-practiceshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..61433cfe567dc918804fbd226017606e1558c4d7 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-best-practiceshtml.md @@ -0,0 +1,37 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-best-practices.html +source: sources/amazondynamodb-latest-developerguide-rbac-best-practiceshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:38 + + + +## Overview +This page describes best practices for using resource-based policies on DynamoDB tables and streams, focusing on simplifying access control, enforcing least-privilege permissions, and leveraging IAM Access Analyzer for cross-account visibility. + +## Key Concepts +- **Resource-based policies vs. identity-based policies**: When principals are in the same account as the resource, a resource-based policy alone suffices — no per-principal IAM policy needed. +- **Implicit deny**: If no resource-based policy exists on a table/stream, access is implicitly denied unless an identity-based policy grants it. +- **Least-privilege**: Start broad, then narrow permissions as your use case matures. Define specific actions on specific resources under specific conditions. +- **IAM Access Analyzer**: Reports cross-account access from resource-based policies; can generate least-privilege policies based on CloudTrail access activity. +- Resource-based policies can be attached to DynamoDB **tables, indexes, and streams**. + +## Commands and Syntax +No specific CLI commands or policy syntax provided on this page — it is a conceptual best-practices guide. + +## Relationships +- **IAM identity-based policies**: Resource-based policies complement or replace these for same-account access. +- **IAM Access Analyzer**: Used to audit cross-account access and generate refined policies from CloudTrail logs. +- **CloudTrail**: Provides the access activity logs that Access Analyzer consumes for policy generation. +- Related to DynamoDB resource-based policy topics: attaching policies, cross-account access, considerations, and examples. + +## Exam-Relevant Points +- Same-account access can be managed with **only** a resource-based policy (no identity-based policy needed per principal). +- Without a resource-based policy, access is **implicitly denied** unless an identity-based policy allows it. +- Resource-based policies apply to tables, indexes, **and** streams. +- IAM Access Analyzer can generate least-privilege policies from **CloudTrail activity logs**. +- Resource-based policies centralize permissions **at the resource level**, reducing administrative overhead. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-bpa-rbphtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-bpa-rbphtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5223d3d86735d476c867dcb2ca1dacdee35dad3f --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-bpa-rbphtml.md @@ -0,0 +1,75 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-bpa-rbp.html +source: sources/amazondynamodb-latest-developerguide-rbac-bpa-rbphtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:38 + + + +## Overview +Block Public Access (BPA) is a DynamoDB security feature that uses automated reasoning to analyze resource-based policies and prevent attaching policies that would grant public access to DynamoDB tables, indexes, or streams. It performs checks at policy creation/modification time and blocks policies deemed public. + +## Key Concepts +- **BPA scope**: Applies to resource-based policies directly attached to DynamoDB tables, indexes, and streams +- **Automated reasoning**: BPA analyzes all policy statements, actions, and condition keys to determine if a policy grants public access +- **Blocking behavior**: If a policy is deemed public, DynamoDB blocks creation or modification until the policy is corrected +- **Not covered by BPA**: Identity-based policies on IAM principals and resource-based policies on associated resources (e.g., KMS keys) — these must be audited separately +- **Public policy definition**: A policy with `Principal: "*"` and no trusted condition key constraining access is considered public +- **Non-public via Principal**: Specifying explicit account IDs or ARNs in the `Principal` block makes a policy non-public +- **Non-public via Condition**: Using trusted condition keys to constrain access also makes a policy non-public +- **No wildcards in values**: ARN and string condition key values must not contain wildcards or variables to be considered non-public +- **`aws:PrincipalIsAWSService`**: Must be set to `true` (not just present) to qualify as non-public + +## Commands and Syntax +No CLI commands specific to BPA. It is enforced automatically when attaching resource-based policies via `PutResourcePolicy`. + +**Non-public policy via explicit principals:** +```json +{ + "Effect": "Allow", + "Principal": { "AWS": ["123456789012", "111122223333"] }, + "Action": "dynamodb:*", + "Resource": "*" +} +``` + +**Non-public policy via condition key (`aws:PrincipalArn`):** +```json +{ + "Effect": "Allow", + "Principal": { "AWS": "*" }, + "Action": "dynamodb:*", + "Resource": "*", + "Condition": { "StringEquals": { "aws:PrincipalArn": "arn:aws:iam::123456789012:user/John" } } +} +``` + +**Non-public policy via VPC condition (`aws:SourceVpc`):** +```json +{ + "Effect": "Allow", + "Principal": { "AWS": "*" }, + "Action": "dynamodb:*", + "Resource": "arn:aws:dynamodb:us-east-1:123456789012:table/MusicCollection", + "Condition": { "StringEquals": { "aws:SourceVpc": ["vpc-91237329"] } } +} +``` + +## Relationships +- **DynamoDB resource-based policies**: BPA is the enforcement layer for `PutResourcePolicy` / `DeleteResourcePolicy` API calls +- **IAM policy evaluation**: BPA complements but does not replace IAM policy evaluation logic; identity-based policies are outside its scope +- **IAM Access Analyzer**: Similar automated-reasoning approach; Access Analyzer covers broader resource types while BPA is DynamoDB-specific +- **S3 Block Public Access**: Analogous feature in S3; DynamoDB BPA follows the same pattern +- **Trusted condition keys**: Shared across IAM policy evaluation — same keys used by IAM Access Analyzer and other AWS security tools + +## Exam-Relevant Points +- BPA only covers resource-based policies **directly attached** to DynamoDB resources — it does NOT analyze identity-based policies or policies on associated resources like KMS keys +- There are **15 trusted condition keys** that can make a `Principal: "*"` policy non-public (e.g., `aws:PrincipalAccount`, `aws:SourceVpc`, `aws:PrincipalOrgID`) +- Condition key values **must not contain wildcards or variables** to be considered non-public +- BPA checks occur at **policy creation and modification time**, not retroactively +- BPA uses **automated reasoning** (not regex or pattern matching) to analyze policies +- `aws:PrincipalIsAWSService` must be set to **`true`** specifically + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-considerationshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-considerationshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a1bdd9f597805e4475d544ddaa313a6becd4b869 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-considerationshtml.md @@ -0,0 +1,43 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html +source: sources/amazondynamodb-latest-developerguide-rbac-considerationshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:39 + + + +## Overview +This page documents the constraints and edge cases to be aware of when using resource-based policies on DynamoDB tables and streams, covering general limits, global table interactions, cross-account access restrictions, and CloudFormation behavior quirks. + +## Key Concepts +- **Policy size limit**: Maximum 20 KB per resource-based policy document; whitespace counts toward this limit. +- **Update throttling**: After a successful policy update, subsequent updates to the same resource are blocked for 15 seconds. +- **Streams limitation**: Resource-based policies can only be attached to *existing* streams, not during stream creation. +- **Global tables (2017.11.29 Legacy)**: Resource-based policies are not supported on legacy global table replicas. +- **SLR denial risk**: Denying the DynamoDB service-linked role's replication action in a resource-based policy will cause replica add/delete operations to fail. +- **Cross-account + encryption conflict**: Cross-account access via resource-based policies does not work with tables encrypted using AWS managed KMS keys (because you cannot grant cross-account access to the AWS managed KMS key policy). You must use customer-managed KMS keys instead. +- **CloudFormation drift detection not supported**: Changes made to resource-based policies outside the CloudFormation template are not detected by drift detection. +- **CloudFormation out-of-band behavior**: Out-of-band policy changes are not overwritten by CloudFormation unless the template itself contains a policy change. Policies added outside the template persist until the template explicitly defines one. + +## Commands and Syntax +No specific CLI commands on this page. Policy management is done via: +- `PutResourcePolicy` / `DeleteResourcePolicy` API actions +- `AWS::DynamoDB::Table` or `AWS::DynamoDB::GlobalTable` CloudFormation resources + +## Relationships +- **Global Tables**: SLR permissions and replica management are directly affected by resource-based policy statements. +- **KMS encryption**: Cross-account access pattern requires customer-managed keys, linking to KMS key policy configuration. +- **CloudFormation**: Policy lifecycle management has special drift and sync behaviors that differ from other DynamoDB resource properties. +- **DynamoDB Streams**: Stream-level policies have a separate attachment lifecycle from table-level policies. + +## Exam-Relevant Points +- 20 KB policy size limit (whitespace included) — a specific number likely to be tested. +- 15-second cooldown between successive policy updates on the same resource. +- Cross-account access **requires customer-managed KMS keys** — AWS managed keys will not work. +- Legacy global tables (2017.11.29) do not support resource-based policies. +- Denying the DynamoDB SLR in a resource-based policy breaks global table replication. +- CloudFormation does **not** detect drift on resource-based policies and does **not** reconcile out-of-band changes unless the template itself is updated with a policy change. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-create-tablehtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-create-tablehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ad9e39d5c9c920005b23a5f48131249184bb6ede --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-create-tablehtml.md @@ -0,0 +1,54 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-create-table.html +source: sources/amazondynamodb-latest-developerguide-rbac-create-tablehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:39 + + + +## Overview +This page explains how to attach a resource-based policy to a DynamoDB table at creation time. Resource-based policies can be added via the DynamoDB console, the `CreateTable` API, AWS CLI, AWS SDK, or CloudFormation templates, enabling fine-grained access control on tables and their streams from the moment of creation. + +## Key Concepts +- **Resource-based policies** can be attached to DynamoDB tables and streams at creation time (not just after the fact) +- Policies follow standard IAM JSON policy format (`Version`, `Statement`, `Effect`, `Principal`, `Action`, `Resource`) +- Policies can grant cross-account access by specifying IAM principals from other AWS accounts +- The console offers a **"Preview external access"** feature that integrates with **IAM Access Analyzer** to check for public or cross-account access before saving +- Resource-based policies can be attached separately to a table and its stream — they are independent policy documents +- For Global Tables, resource-based policies are configured **per-replica** (each replica region can have its own policy) + +## Commands and Syntax + +**AWS CLI — create table with resource-based policy:** +``` +aws dynamodb create-table \ + --table-name MusicCollection \ + --attribute-definitions AttributeName=Artist,AttributeType=S AttributeName=SongTitle,AttributeType=S \ + --key-schema AttributeName=Artist,KeyType=HASH AttributeName=SongTitle,KeyType=RANGE \ + --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 \ + --resource-policy '{"Version":"2012-10-17","Statement":[...]}' +``` + +**CloudFormation — `AWS::DynamoDB::Table`:** Uses `ResourcePolicy.PolicyDocument` at the table level and `StreamSpecification.ResourcePolicy.PolicyDocument` for the stream. + +**CloudFormation — `AWS::DynamoDB::GlobalTable`:** Uses `Replicas[].ResourcePolicy.PolicyDocument` for table access and `Replicas[].ReplicaStreamSpecification.ResourcePolicy.PolicyDocument` for stream access, scoped per replica region. + +## Relationships +- **IAM resource-based vs identity-based policies**: Resource-based policies complement identity-based policies; both are evaluated together during authorization +- **IAM Access Analyzer**: Integrates with the console to preview external access implications before saving policies +- **DynamoDB Streams**: Stream policies are configured separately from table policies, granting actions like `GetRecords`, `GetShardIterator`, `DescribeStream` +- **Global Tables**: Per-replica policy configuration ties into DynamoDB's multi-region replication model +- **CloudFormation**: Two resource types support this — `AWS::DynamoDB::Table` and `AWS::DynamoDB::GlobalTable` + +## Exam-Relevant Points +- Resource-based policies can be attached **at table creation time**, not only post-creation +- Table and stream policies are **separate** — you must attach them independently +- For Global Tables, resource-based policies are **per-replica**, not global across all replicas +- The `--resource-policy` parameter on `create-table` CLI accepts an inline JSON policy document +- IAM Access Analyzer integration allows **previewing** cross-account and public access before committing a policy +- Common DynamoDB actions granted via resource-based policies: `dynamodb:GetItem`, `dynamodb:PutItem`, `dynamodb:RestoreTableToPointInTime`, `dynamodb:DescribeTable` +- Common stream actions: `dynamodb:GetRecords`, `dynamodb:GetShardIterator`, `dynamodb:DescribeStream` + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-cross-account-accesshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-cross-account-accesshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..bd4b08cef50b50ced7eb7ebb02faa411cf9caa0b --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-cross-account-accesshtml.md @@ -0,0 +1,62 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-cross-account-access.html +source: sources/amazondynamodb-latest-developerguide-rbac-cross-account-accesshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:39 + + + +## Overview +This page explains how to use DynamoDB resource-based policies to grant cross-account access to DynamoDB tables and streams. It covers the dual-policy requirement (resource-based + identity-based), billing implications, CloudTrail logging behavior, and a detailed walkthrough for setting up cross-account Lambda triggers on DynamoDB Streams. + +## Key Concepts +- **Cross-account access requires two policies**: a resource-based policy on the target resource (account B) AND an identity-based policy on the requesting principal (account A). +- **IAM Access Analyzer integration**: All cross-account access granted by resource-based policies is reported through IAM Access Analyzer external access findings (if an analyzer exists in the same Region). +- **Table name parameter**: DynamoDB APIs accept a full ARN for the table name parameter to support cross-account operations. If only a table name (not ARN) is provided, the operation targets the caller's own account. +- **Billing**: The resource owner's account is charged for all operations, even those from cross-account principals. +- **Throughput impact**: Cross-account requests count toward the table's provisioned throughput — the sum of owner + cross-account requests determines throttling or autoscaling behavior. +- **CloudTrail logging**: Requests are logged in CloudTrail in both the owner's and the requestor's accounts. +- **Preview external access**: The DynamoDB console offers a "Preview external access" option to check if a new policy introduces new Access Analyzer findings before saving. +- **Control plane API limit**: Cross-account access of control plane APIs has a lower TPS limit of **500 requests per second**. + +## Commands and Syntax +**Cross-account GetItem setup (two-step):** +1. Attach a resource-based policy to table B granting `GetItem` to user A (in account A). +2. Attach an identity-based policy to user A granting `GetItem` on table B's ARN. + +**Cross-account Lambda + DynamoDB Streams setup:** + +*Account A (Lambda side):* +1. Create an IAM role for Lambda execution; attach managed policy `AWSLambdaDynamoDBExecutionRole`. +2. Create a Lambda function using that execution role. +3. Share the execution role ARN with account B. + +*Account B (DynamoDB Streams side):* +1. Obtain the Lambda execution role ARN from account A. +2. In the DynamoDB console, locate the stream ARN (ensure stream status is On). +3. Under **Permissions** tab, create a stream policy granting the Lambda execution role these actions: + - `dynamodb:DescribeStream` + - `dynamodb:GetRecords` + - `dynamodb:GetShardIterator` + - `dynamodb:ListShards` + +## Relationships +- **IAM Access Analyzer**: Validates resource-based policies against IAM policy grammar and best practices; surfaces external access findings. +- **IAM identity-based policies**: Must be paired with resource-based policies for cross-account access to work. +- **DynamoDB Streams**: Cross-account Lambda triggers require stream-specific resource-based policies. +- **CloudTrail**: Provides audit logging for cross-account operations in both accounts. +- **Auto Scaling**: Cross-account request volume affects scaling decisions on the owner's table. +- **Resource-based policy examples**: Referenced at `rbac-examples.html#rbac-examples-cross-account`. + +## Exam-Relevant Points +- Cross-account DynamoDB access requires **both** a resource-based policy on the resource and an identity-based policy on the principal. +- You must use the **full table ARN** (not just the table name) in API calls for cross-account operations; otherwise the call targets the caller's own account. +- The **resource owner pays** for all cross-account read/write operations. +- Cross-account requests are logged in **both accounts'** CloudTrail logs. +- Cross-account **control plane API** calls are limited to **500 TPS**. +- The `AWSLambdaDynamoDBExecutionRole` managed policy is used for Lambda execution roles that process DynamoDB Streams. +- Four specific stream actions are required for cross-account Lambda triggers: `DescribeStream`, `GetRecords`, `GetShardIterator`, `ListShards`. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-delete-resource-based-policyhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-delete-resource-based-policyhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..471144c28f55a880faa85f39dbd3ac9bb52f4936 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-delete-resource-based-policyhtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-delete-resource-based-policy.html +source: sources/amazondynamodb-latest-developerguide-rbac-delete-resource-based-policyhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:40 + + + +## Overview +This page describes how to remove a resource-based policy from a DynamoDB table using the AWS CLI, DynamoDB console, AWS SDK, or CloudFormation. + +## Key Concepts +- Resource-based policies on DynamoDB tables can be deleted (not just modified) +- Deletion uses the `DeleteResourcePolicy` API action +- Requires the table's ARN to identify which policy to remove +- Console requires typing "confirm" as a safety measure before deletion + +## Commands and Syntax +**AWS CLI:** +``` +aws dynamodb delete-resource-policy \ + --resource-arn arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection +``` +- Only required parameter: `--resource-arn` + +**Console path:** DynamoDB → Tables → select table → Permissions → Manage policy → Delete policy → type "confirm" → Delete + +## Relationships +- Complements `PutResourcePolicy` (attach) and `GetResourcePolicy` (view) operations +- Part of DynamoDB's resource-based access control model alongside IAM identity-based policies +- Related to cross-account access patterns — removing a policy revokes any cross-account access it granted + +## Exam-Relevant Points +- The API action is `DeleteResourcePolicy`, the CLI command is `delete-resource-policy` +- The only required parameter is the resource ARN +- Deleting a resource-based policy does not affect IAM identity-based policies that grant access to the same table +- Available through console, CLI, SDK, and CloudFormation + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-exampleshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-exampleshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..0ebf3534a1aca7a17775110e3b15412f67ffa84b --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-exampleshtml.md @@ -0,0 +1,67 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html +source: sources/amazondynamodb-latest-developerguide-rbac-exampleshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:40 + + + +## Overview +This page provides concrete JSON policy examples for DynamoDB resource-based policies, covering tables, streams, cross-account access, IP/VPC restrictions, and IAM role principals. Resource-based policies are attached directly to DynamoDB resources (tables, streams) and the `Resource` ARN in the policy must match the ARN of the resource it's attached to. + +## Key Concepts +- **Resource-based policies** are attached directly to DynamoDB tables or streams (not to IAM identities) +- The `Resource` ARN in the policy must match the ARN of the resource the policy is attached to +- Wildcard (`*`) in `Action` grants all DynamoDB actions; wildcard in `Resource` ARN covers the table and all associated indexes (including future ones) +- **Cross-account access** requires BOTH a resource-based policy on the target resource AND an identity-based policy on the calling principal +- DynamoDB condition keys like `dynamodb:LeadingKeys`, `dynamodb:Attributes`, and `dynamodb:Select` enable fine-grained row-level and attribute-level access control +- If `dynamodb:Select: SPECIFIC_ATTRIBUTES` condition is omitted, all attributes are returned +- IP-based conditions support both IPv4 CIDR and IPv6 CIDR ranges +- VPC endpoint conditions use `aws:sourceVpce` to restrict access to a specific VPCE +- **DAX caveat**: In IPv6-only environments with IP-based resource policies, you must add an `ArnNotEquals` condition to exempt the DAX cluster's IAM role + +## Commands and Syntax +**Cross-account GetItem using table ARN:** +```bash +aws dynamodb get-item \ + --table-name arn:aws:dynamodb:us-west-2:123456789012:table/MusicCollection \ + --key '{"Artist": {"S": "Jane"}' \ + --projection-expression 'Artist, SongTitle' \ + --return-consumed-capacity TOTAL +``` + +**Stream ARN format:** +``` +arn:aws:dynamodb:us-east-1:123456789012:table/MusicCollection/stream/2024-02-12T18:57:26.492 +``` + +**Table + all indexes wildcard pattern:** +``` +arn:aws:dynamodb:us-east-1:123456789012:table/MusicCollection +arn:aws:dynamodb:us-east-1:123456789012:table/MusicCollection/index/* +``` + +**Table + all sub-resources wildcard:** +``` +arn:aws:dynamodb:us-east-1:123456789012:table/MusicCollection/* +``` + +## Relationships +- **IAM identity-based policies**: Cross-account access requires both resource-based and identity-based policies to grant permission +- **DynamoDB Streams**: Streams have separate ARNs and support their own resource-based policies with stream-specific actions (`GetRecords`, `GetShardIterator`, `DescribeStream`) +- **DAX**: IP-restricted resource policies in IPv6 environments need special DAX cluster exemptions +- **VPC Endpoints**: Resource-based policies can restrict access to specific VPCEs using `aws:sourceVpce` +- **GSI/LSI**: Wildcard resource patterns cover current and future indexes on a table + +## Exam-Relevant Points +- Cross-account DynamoDB access requires **both** a resource-based policy on the table **and** an identity-based policy on the principal — one alone is insufficient +- `dynamodb:LeadingKeys` condition key restricts access to specific partition key values (row-level security) +- `dynamodb:Attributes` + `dynamodb:Select: SPECIFIC_ATTRIBUTES` together enforce attribute-level access control +- For cross-account CLI calls, you must use the full table ARN (not just the table name) in `--table-name` +- Stream resource-based policies use stream-specific API actions, not table actions +- Using `table/Name/*` in the Resource covers all sub-resources (indexes, streams); using `table/Name/index/*` covers only indexes +- VPC endpoint deny policies (`StringNotEquals` on `aws:sourceVpce`) are a common pattern to lock down table access to a specific network path + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-iam-actionshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-iam-actionshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..f7c6874a4905cdd71988e180e444b98dc1580242 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-iam-actionshtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-iam-actions.html +source: sources/amazondynamodb-latest-developerguide-rbac-iam-actionshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:40 + + + +## Overview + +This page documents which DynamoDB API operations support resource-based policies and cross-account access. Resource-based policies can be attached to tables and streams but not to resource types like backups and imports. Cross-account access via resource-based policies is limited to a subset of operations — primarily data plane operations and a few control plane and streaming operations. + +## Key Concepts + +- **Resource-based policies** can only be attached to DynamoDB tables and streams, not to backups, imports, or other resource types +- **Cross-account access** through resource-based policies is supported by a limited set of APIs — mostly data plane operations +- **Table name overloading** — APIs that support cross-account access also support specifying a table ARN in the `TableName` parameter instead of just the table name +- Internal table settings APIs (e.g., UpdateTimeToLive, DisableKinesisStreamingDestination) do **not** support cross-account access because they're intended for same-account table administration +- **PartiQL operations** support resource-based policies but do **not** support cross-account access +- **CreateTable** supports neither resource-based policies nor cross-account access +- **Legacy global tables (v2017.11.29)** have zero support for resource-based policies or cross-account access +- **Import operations** have zero support for either feature + +## Commands and Syntax + +No CLI commands or configuration syntax — this is a reference matrix for API-level policy support. + +## Relationships + +- **IAM identity-based policies** — complementary access control mechanism; resource-based policies provide an alternative, especially for cross-account scenarios +- **DynamoDB Streams** — stream APIs (DescribeStream, GetRecords, GetShardIterator) support both resource-based policies and cross-account access +- **Global Tables** — current version (2019.11.21) has limited resource-based policy support; legacy version has none +- **PITR / Backup & Restore** — resource-based policy support exists for some operations but no cross-account access +- **Kinesis Data Streams integration** — resource-based policy support but no cross-account access + +## Exam-Relevant Points + +- **Full cross-account support (both resource-based policy + cross-account):** All 10 data plane table/index APIs (GetItem, PutItem, Query, Scan, DeleteItem, UpdateItem, TransactGetItems, TransactWriteItems, BatchGetItem, BatchWriteItem), plus DeleteTable, DescribeTable, UpdateTable, all 3 Tags APIs, and 3 of 4 DynamoDB Streams APIs (not ListStreams) +- **Resource-based policy only (no cross-account):** PartiQL APIs, PITR APIs, Contributor Insights, Export, Kinesis, TTL, resource-based policy management APIs, current global tables APIs +- **No support at all:** CreateTable, all legacy global table APIs, all Import APIs, DescribeLimits, DescribeEndpoints, ListBackups, ListTables, ListStreams, DescribeBackup, DeleteBackup, RestoreTableFromBackup +- **CreateBackup** is unique: supports resource-based policies but not cross-account access, and is the only backup/restore API with any resource-based policy support +- Know that `ListStreams` is the only DynamoDB Streams API that does **not** support resource-based policies + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-read-write-operationshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-read-write-operationshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d4004e5114a33f145bf880763d3eac661a66004c --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-read-write-operationshtml.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/read-write-operations.html +source: sources/amazondynamodb-latest-developerguide-read-write-operationshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:41 + +## Overview +This page explains how DynamoDB read and write operations consume capacity units (RCUs and WCUs), including the rounding rules, per-operation behavior, and special cases like conditional writes and transactional requests. + +## Key Concepts + +- **Read unit sizes**: Items are rounded up to the next **4 KB** boundary for reads +- **Write unit sizes**: Items are rounded up to the next **1 KB** boundary for writes +- **Read consistency costs per 4 KB**: + - Eventually consistent: **0.5 RCU** + - Strongly consistent: **1 RCU** + - Transactional: **2 RCU** +- **Write costs per 1 KB**: + - Standard write: **1 WCU** + - Transactional write: **2 WCU** +- Reading a **non-existent item** still consumes read throughput +- Requesting a **subset of attributes** does NOT reduce capacity consumption — full item size is used +- `Query`/`Scan` returning **counts** instead of items still consumes the same RCUs (DynamoDB must read each item to count) +- `Scan` charges based on items **evaluated**, not items **returned** +- **Conditional writes** that fail (expression evaluates to false) still consume WCUs based on the larger of the existing or new item size + +## Commands and Syntax + +**Read operations and their consumption rules:** +| Operation | Behavior | +|-----------|----------| +| `GetItem` | Round item to next 4 KB; 1 RCU (strong) or 0.5 RCU (eventual) | +| `BatchGetItem` | Up to 100 items; each rounded individually to 4 KB, then summed | +| `Query` | All returned items summed, then total rounded to next 4 KB | +| `Scan` | Charged on evaluated size, not returned size | + +**Write operations and their consumption rules:** +| Operation | Behavior | +|-----------|----------| +| `PutItem` | Round to next 1 KB; if replacing, charged on the **larger** of old/new item | +| `UpdateItem` | Charged on the **larger** of before/after size (even partial attribute updates) | +| `DeleteItem` | Charged based on deleted item's size | +| `BatchWriteItem` | Up to 25 items; each rounded individually to 1 KB, then summed; no updates, only put/delete | + +## Relationships + +- **Provisioned vs On-Demand capacity modes** — these RCU/WCU calculations apply to both, but provisioned mode requires pre-allocating them +- **DynamoDB Transactions** — `TransactGetItems`/`TransactWriteItems` double the capacity cost (2x RCU/WCU) +- **Read consistency** — ties directly to `HowItWorks.ReadConsistency`; choosing eventual vs strong halves/doubles cost +- **Secondary indexes** — queries against GSIs/LSIs follow the same read consumption rules +- **DAX (DynamoDB Accelerator)** — caching layer that reduces RCU consumption by serving reads from cache + +## Exam-Relevant Points + +- **4 KB read rounding, 1 KB write rounding** — these numbers are heavily tested +- **BatchGetItem rounds each item individually** then sums (e.g., 1.5 KB + 6.5 KB = 4 + 8 = **12 KB**, not 8 KB) +- **BatchWriteItem rounds each item individually** (e.g., 500 bytes + 3.5 KB = 1 + 4 = **5 KB**, not 4 KB) +- **Query sums all items first**, then rounds the total (opposite of Batch behavior) +- **Eventually consistent reads cost half** of strongly consistent reads +- **Transactional operations cost 2x** normal operations +- **UpdateItem consumes capacity based on the larger of before/after** — even if only updating one small attribute on a large item +- **Failed conditional writes still consume WCUs** +- **Reading non-existent items still consumes RCUs** +- **Projection expressions don't reduce capacity consumption** — the full item is always read internally + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-reserved-capacityhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-reserved-capacityhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2d634a449271cb7b300a6323cd2b4a15574fffc1 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-reserved-capacityhtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/reserved-capacity.html +source: sources/amazondynamodb-latest-developerguide-reserved-capacityhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:41 + + + +## Overview + +DynamoDB reserved capacity allows customers to pre-purchase provisioned read and write capacity units at discounted rates for Standard table class tables, committing to a one-year or three-year term in exchange for savings of up to 54% or 77% respectively. + +## Key Concepts + +- **Reserved capacity** is a billing commitment for a minimum amount of provisioned throughput, not a technical configuration — you pay regardless of actual usage +- Purchased in allocations of **100 WCUs or 100 RCUs** (minimum unit) +- **One-year term**: up to 54% savings; **Three-year term**: up to 77% savings (select Regions only) +- Pricing model: **one-time partial upfront payment** + **discounted hourly rate** for committed usage +- Usage beyond reserved capacity is billed at **standard provisioned rates** +- **Cannot** be sold, cancelled, or transferred to another Region or account + +## Key Restrictions + +- **Not available for**: on-demand capacity mode, Standard-IA table class, or replicated write capacity units (rWCUs) +- **Region-scoped**: applies only to the Region where purchased +- Three-year term only available in select Regions + +## Relationships + +- **Table classes**: Only applies to Standard table class, not Standard-IA +- **Capacity modes**: Only relevant to provisioned capacity mode, not on-demand +- **Global tables**: rWCUs from global table replication are excluded from reserved capacity +- **Cost optimization**: Alternative to on-demand mode for predictable, steady workloads + +## Exam-Relevant Points + +- Reserved capacity is **region-specific** and **non-transferable** +- Minimum purchase is **100 RCUs or 100 WCUs** +- Does **not** apply to on-demand tables, Standard-IA tables, or rWCUs +- You pay for the full committed capacity **regardless of actual usage** +- Savings: **54% (1-year)**, **77% (3-year)** +- Excess provisioned capacity beyond the reservation is billed at standard rates + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-specifying-conditionshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-specifying-conditionshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a7f13c8156e7b29ff1c6339134ba5c2609ee44a4 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-specifying-conditionshtml.md @@ -0,0 +1,101 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/specifying-conditions.html +source: sources/amazondynamodb-latest-developerguide-specifying-conditionshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:41 + +## Overview + +This page covers how to use IAM policy conditions to implement fine-grained access control (FGAC) in DynamoDB, allowing you to restrict access at the item level (by partition key), attribute level (specific columns), and operation level. It details DynamoDB-specific condition keys and provides numerous policy examples for common access control patterns. + +## Key Concepts + +- **Item-level access control**: Restrict users to items matching specific partition key values (e.g., their user ID) using `dynamodb:LeadingKeys` +- **Attribute-level access control**: Limit which attributes users can read/write using `dynamodb:Attributes` +- **`dynamodb:Attributes` evaluates only request parameters** (e.g., ProjectionExpression), NOT response attributes — omitting a ProjectionExpression returns ALL attributes regardless of policy +- **Three-part attribute security**: To properly restrict attributes, you must combine `dynamodb:Attributes`, `dynamodb:Select`, AND `dynamodb:ReturnValues` conditions +- **`ForAllValues:StringEquals`** modifier is required with `dynamodb:LeadingKeys` and `dynamodb:Attributes` +- **`StringEqualsIfExists`** applies the condition only when the parameter is present in the request +- **Web identity federation** variables (`${www.amazon.com:user_id}`, `${graph.facebook.com:id}`, `${accounts.google.com:sub}`) can be used as partition key matchers +- **Policy version must be `2012-10-17`** when using policy variables (not the default `2008-10-17`) +- **Prefer allow-list policies** over deny-based policies — deny policies are harder to write correctly and may become ineffective with future API changes +- **FGAC is NOT supported for global tables replication** — applying conditions to service-linked roles used for replication may break it +- **`PutItem`, `DeleteItem`, `BatchWriteItem` replace entire items** — don't grant these when restricting attribute-level writes; use `UpdateItem` instead +- **`dynamodb:FirstPartitionKeyValues`** is interchangeable with `dynamodb:LeadingKeys`; additional keys exist for second, third, fourth partition keys + +## DynamoDB-Specific Condition Keys + +| Key | Purpose | +|-----|---------| +| `dynamodb:LeadingKeys` | Partition key value restriction (use with `ForAllValues`) | +| `dynamodb:Attributes` | Restricts which top-level attributes can be accessed | +| `dynamodb:Select` | Controls Select parameter (`ALL_ATTRIBUTES`, `ALL_PROJECTED_ATTRIBUTES`, `SPECIFIC_ATTRIBUTES`, `COUNT`) | +| `dynamodb:ReturnValues` | Controls ReturnValues parameter (`NONE`, `ALL_OLD`, `UPDATED_OLD`, `ALL_NEW`, `UPDATED_NEW`) | +| `dynamodb:ReturnConsumedCapacity` | Controls capacity reporting (`TOTAL`, `NONE`) | +| `dynamodb:FirstPartitionKeyValues` | Alias for LeadingKeys | +| `dynamodb:SecondPartitionKeyValues` | Second partition key restriction | +| `dynamodb:ThirdPartitionKeyValues` | Third partition key restriction | +| `dynamodb:FourthPartitionKeyValues` | Fourth partition key restriction | + +## Commands and Syntax + +**Basic partition key restriction (user can only access own items):** +```json +"Condition": { + "ForAllValues:StringEquals": { + "dynamodb:LeadingKeys": ["${www.amazon.com:user_id}"] + } +} +``` + +**Attribute restriction with enforced Select and ReturnValues:** +```json +"Condition": { + "ForAllValues:StringEquals": { + "dynamodb:Attributes": ["UserId", "TopScore"] + }, + "StringEqualsIfExists": { + "dynamodb:Select": "SPECIFIC_ATTRIBUTES", + "dynamodb:ReturnValues": ["NONE", "UPDATED_OLD", "UPDATED_NEW"] + } +} +``` + +**Deny updates to specific attributes (block list):** +```json +"ForAllValues:StringNotLike": { + "dynamodb:Attributes": ["FreeGamesAvailable", "BossLevelUnlocked"] +} +``` + +**Index-only query with projected attributes:** +```json +"Resource": ["arn:aws:dynamodb:us-west-2:123456789012:table/GameScores/index/TopScoreDateTimeIndex"], +"Condition": { + "StringEquals": { "dynamodb:Select": "ALL_PROJECTED_ATTRIBUTES" } +} +``` + +## Relationships + +- **IAM Policies**: FGAC builds on standard IAM policy structure with DynamoDB-specific condition keys +- **Web Identity Federation (WIF)**: Provides user identity variables for partition key matching in multi-tenant apps +- **Secondary Indexes**: Policies can target specific indexes via resource ARNs; `dynamodb:Select` controls projected attribute access +- **Global Tables**: FGAC conditions must NOT be applied to replication service-linked roles +- **DynamoDB API Actions**: Different actions require different condition key combinations (read-only vs. write actions) + +## Exam-Relevant Points + +- `dynamodb:LeadingKeys` requires the `ForAllValues` modifier even for single-item actions +- `dynamodb:Attributes` only checks request parameters, not response — without `ProjectionExpression`, all attributes are returned (security gap if `Select` is not also constrained) +- When restricting attributes, you need ALL THREE: `dynamodb:Attributes` + `dynamodb:Select` + `dynamodb:ReturnValues` +- `PutItem`/`DeleteItem` replace whole items, so they bypass attribute-level restrictions — use `UpdateItem` for attribute-restricted writes +- `Scan` returns all items regardless of `LeadingKeys` — exclude it from actions when using partition key restrictions +- Must include primary key and index key attribute names in `dynamodb:Attributes` list or operations will fail +- Policy version `2012-10-17` is required for substitution variables +- FGAC is incompatible with global tables replication roles +- `LeadingKeys` and `FirstPartitionKeyValues` are interchangeable + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-time-to-live-ttl-streamshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-time-to-live-ttl-streamshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..09743197df3dbc68d52938d53e4f1c18e369de29 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-time-to-live-ttl-streamshtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/time-to-live-ttl-streams.html +source: sources/amazondynamodb-latest-developerguide-time-to-live-ttl-streamshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:42 + + + +## Overview +This page explains how DynamoDB Streams integrates with Time to Live (TTL) to enable processing or archiving of expired items. TTL-deleted items produce streams records with a distinctive `userIdentity` field, which can be used with Lambda event source filtering to efficiently process only TTL deletions while ignoring other stream events. + +## Key Concepts +- **TTL + Streams integration**: Enabling DynamoDB Streams on a TTL-enabled table lets you capture and process items after they expire and are deleted. +- **`userIdentity` field**: TTL-deleted items have `userIdentity.type` = `"Service"` and `userIdentity.principalId` = `"dynamodb.amazonaws.com"` — this distinguishes TTL deletions from application-initiated deletes. +- **Global table behavior**: In global tables, the `userIdentity` field is only set in the region where the TTL deletion occurred; replicated deletes in other regions do **not** have this field. +- **Lambda event source filtering**: Up to 5 filters can be defined on a Lambda event source mapping to control which stream records invoke the function. +- **Cost optimization**: Using Lambda (not KCL) as the stream consumer avoids `GetRecords` API charges. Event filtering further reduces costs by preventing unnecessary Lambda invocations (e.g., filtering 2M events/hour down to 100K TTL deletes). + +## Commands and Syntax + +**Filter pattern for TTL-only events:** +```json +{ + "Filters": [{ + "Pattern": "{\"userIdentity\":{\"type\":[\"Service\"],\"principalId\":[\"dynamodb.amazonaws.com\"]}}" + }] +} +``` + +**AWS CLI — create filtered event source mapping:** +```bash +aws lambda create-event-source-mapping \ + --event-source-arn 'arn:aws:dynamodb:eu-west-1:012345678910:table/test/stream/2021-12-10T00:00:00.000' \ + --batch-size 10 --enabled --function-name test_func \ + --starting-position LATEST \ + --filter-criteria '{"Filters": [{"Pattern": "{\"userIdentity\":{\"type\":[\"Service\"],\"principalId\":[\"dynamodb.amazonaws.com\"]}}"}]}' +``` + +## Relationships +- **DynamoDB TTL**: Provides the automatic item expiration that generates the stream records. +- **DynamoDB Streams**: The change data capture mechanism that surfaces TTL deletions. +- **AWS Lambda event source mappings**: Connects streams to Lambda with optional filtering. +- **Lambda event filtering**: General-purpose feature applied here specifically to isolate TTL events. +- **Global Tables**: Affects where `userIdentity` is populated on TTL stream records. +- **KCL (Kinesis Client Library)**: Alternative stream consumer, but more expensive than Lambda for this use case. + +## Exam-Relevant Points +- TTL-deleted items are identifiable in streams by `userIdentity.type = "Service"` and `userIdentity.principalId = "dynamodb.amazonaws.com"`. +- In global tables, `userIdentity` is set **only in the region where TTL performed the delete**, not in replicated regions. +- Lambda event source filters avoid unnecessary invocations and reduce cost — no charge for `GetRecords` when Lambda consumes the stream. +- Up to **5 filters** can be defined per event source mapping. +- `--starting-position LATEST` is used when creating the event source mapping for stream consumption. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-apis-iamhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-apis-iamhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9d5843971f02df1685840a132255619ab044b1f2 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-apis-iamhtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/transaction-apis-iam.html +source: sources/amazondynamodb-latest-developerguide-transaction-apis-iamhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:42 + + + +## Overview +This page explains how to use IAM policies to control access to DynamoDB transactional operations (`TransactWriteItems` and `TransactGetItems`). It covers the mapping between transaction sub-actions and their underlying IAM permissions, and provides four policy examples for common access patterns. + +## Key Concepts +- Transaction actions (`Put`, `Update`, `Delete`, `Get`) use the same IAM permissions as their non-transactional counterparts (`PutItem`, `UpdateItem`, `DeleteItem`, `GetItem`) +- `ConditionCheck` is transaction-specific and uses the `dynamodb:ConditionCheckItem` IAM permission +- The condition key `dynamodb:EnclosingOperation` distinguishes transactional from non-transactional calls — values are `TransactWriteItems` and `TransactGetItems` +- The condition key `dynamodb:ReturnValues` can restrict whether item data is returned on `ConditionCheck` failures + +## Commands and Syntax +Four IAM policy patterns: + +1. **Allow transactional operations** — standard Allow on `PutItem`, `UpdateItem`, `DeleteItem`, `GetItem`, `ConditionCheckItem` (no condition key — permits both transactional and non-transactional use) +2. **Allow ONLY transactional operations** — same actions but with `Condition: ForAnyValue:StringEquals dynamodb:EnclosingOperation = [TransactWriteItems, TransactGetItems]` +3. **Allow non-transactional, deny transactional** — explicit Deny with `dynamodb:EnclosingOperation` condition, plus an Allow without the condition +4. **Prevent data leakage on ConditionCheck failure** — uses `StringEqualsIfExists` on `dynamodb:ReturnValues: NONE` to suppress returned item data + +## Relationships +- **IAM identity-based policies** — these are standard IAM policies applied to users/roles +- **DynamoDB Transactions** — `TransactWriteItems` and `TransactGetItems` API operations +- **DynamoDB condition keys** — `dynamodb:EnclosingOperation` and `dynamodb:ReturnValues` are DynamoDB-specific IAM condition keys +- **Principle of least privilege** — these patterns support granting only transactional or only non-transactional access + +## Exam-Relevant Points +- There is **no separate `TransactWriteItems` or `TransactGetItems` IAM action** — you control transactions via the underlying item-level actions plus the `dynamodb:EnclosingOperation` condition key +- `dynamodb:ConditionCheckItem` is the only transaction-specific IAM action +- To restrict access to *only* transactional use, you must use `dynamodb:EnclosingOperation` as a condition — without it, the policy permits both transactional and non-transactional calls +- To block transactional while allowing non-transactional, use an explicit Deny with the `EnclosingOperation` condition paired with a separate Allow +- `dynamodb:ReturnValues: NONE` with `StringEqualsIfExists` prevents item data from being exposed in `ConditionCheck` failure responses — relevant for data-sensitivity scenarios + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-apishtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-apishtml.md new file mode 100644 index 0000000000000000000000000000000000000000..aa8626d9020afa6964ee9d860cc053fb2948e9f3 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-apishtml.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/transaction-apis.html +source: sources/amazondynamodb-latest-developerguide-transaction-apishtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:42 + +## Overview +Amazon DynamoDB transactions allow grouping multiple read or write actions into single all-or-nothing operations using `TransactWriteItems` and `TransactGetItems`. These operations provide ACID guarantees within a single AWS Region, supporting up to 100 actions targeting up to 100 distinct items across multiple tables, with a 4 MB aggregate size limit. + +## Key Concepts +- **TransactWriteItems**: Synchronous, idempotent write operation supporting `Put`, `Update`, `Delete`, and `ConditionCheck` actions +- **TransactGetItems**: Synchronous read operation grouping up to 100 `Get` actions atomically +- **Cannot target the same item with multiple operations** within a single transaction +- **Transactions cannot use indexes** — only base table items +- **Idempotency**: Optional client token makes `TransactWriteItems` idempotent; token valid for 10 minutes after completion +- **IdempotentParameterMismatch**: Returned if same client token is reused with different parameters within the 10-minute window +- **Two-phase cost model**: Every item in a transaction consumes 2x capacity (one prepare + one commit) +- **Isolation levels**: + - **Serializable**: Between transactions and individual standard reads/writes (`GetItem`, `PutItem`, `UpdateItem`, `DeleteItem`), and between two transactional operations + - **Read-committed**: Between transactions and multi-item reads (`BatchGetItem`, `Query`, `Scan`) + - **NOT Serializable**: Between transactions and `BatchWriteItem` as a unit (individual actions within batch are serializable) +- **Conflict handling**: Concurrent item-level conflicts cause `TransactionCanceledException` (for transactional ops) or `TransactionConflictException` (for standard writes); SDKs do **not** auto-retry `TransactionCanceledException` +- **GSI/Streams propagation is NOT atomic**: Stream records from a transaction may appear at different times and interleave with other transactions +- **Global tables**: ACID guarantees apply only within the Region where the write was invoked; cross-region replicas may show partial transactions during replication + +## Commands and Syntax +No CLI commands shown. Key API operations: +- `TransactWriteItems` — groups `Put`, `Update`, `Delete`, `ConditionCheck` (up to 100 actions) +- `TransactGetItems` — groups `Get` actions (up to 100) +- Use `ClientRequestToken` parameter for idempotency +- Use `ReturnConsumedCapacity` to track capacity consumption + +## Relationships +- **vs. BatchWriteItem/BatchGetItem**: Batch operations are NOT all-or-nothing; transactions are. Use `BatchWriteItem` for bulk ingestion instead of transactions +- **DAX**: Both transactional APIs supported. `TransactWriteItems` writes through DAX then triggers background `TransactGetItems` to populate cache (consuming additional RCUs). `TransactGetItems` passes through without caching (like strongly consistent reads) +- **DynamoDB Streams**: Transaction changes propagate gradually; stream consumers must not assume atomicity or ordering +- **Global tables**: ACID only within source Region; replicated asynchronously +- **CloudWatch**: `TransactionConflict` metric tracks failed item-level requests +- **Backups/Exports**: `RestoreTableFromBackup` or `ExportTableToPointInTime` mid-propagation may capture partial transaction state +- **Replaces AWSLabs transactions client library** — native server-side API is preferred + +## Exam-Relevant Points +- **100 items / 4 MB limits** for both `TransactWriteItems` and `TransactGetItems` +- **2x capacity consumption**: Each item costs 2 WCUs (write tx) or 2 RCUs (read tx) — prepare + commit phases +- **DAX adds additional RCU cost**: 2 RCUs per item for `TransactWriteItems` background cache population +- **Cannot target same item twice** in one transaction +- **Indexes cannot be used** in transactions +- **Client token valid for 10 minutes** for idempotency +- **Serializable isolation** between transactions and individual standard operations; **read-committed** between transactions and `Query`/`Scan`/`BatchGetItem` +- **Global tables**: Transactions are **Region-local only** — no cross-Region ACID +- **TransactionCanceledException** is NOT automatically retried by SDKs +- **Streams do NOT preserve transaction atomicity** — records may arrive separately and interleaved +- **Best practice**: Keep transactions small; split when possible; use auto scaling; use `BatchWriteItem` for bulk writes + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-examplehtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-examplehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..448a69e20b2f0982ddb516ae94f1b6776154219a --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-examplehtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/transaction-example.html +source: sources/amazondynamodb-latest-developerguide-transaction-examplehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:43 + + + +## Overview +This page walks through a practical Java example of using DynamoDB transactions (`TransactWriteItems` and `TransactGetItems`) to implement an order-processing workflow in an online marketplace, demonstrating how multiple operations across three tables can be executed atomically. + +## Key Concepts +- **TransactWriteItems** groups multiple write actions (Put, Update, Delete, ConditionCheck) into a single all-or-nothing operation +- **TransactGetItems** groups multiple read actions (Get) into a single consistent read across tables +- A transaction can span **multiple tables** — the example uses three: `Customers`, `ProductCatalog`, `Orders` +- **ConditionCheck** validates a precondition (e.g., customer exists) without modifying data +- **Conditional expressions** on writes enforce invariants (e.g., product must be `IN_STOCK`, order must not already exist) +- **ReturnValuesOnConditionCheckFailure** (`ALL_OLD`) returns the existing item when a condition fails, aiding debugging +- If **any** action in the transaction fails its condition, the entire transaction is canceled and no changes are made + +## Commands and Syntax +- **ConditionCheck**: `new ConditionCheck().withTableName(...).withKey(...).withConditionExpression("attribute_exists(CustomerId)")` +- **Update with condition**: `new Update().withUpdateExpression("SET ProductStatus = :new_status").withConditionExpression("ProductStatus = :expected_status")` +- **Put with uniqueness guard**: `new Put().withConditionExpression("attribute_not_exists(OrderId)")` +- **Execute write transaction**: `client.transactWriteItems(new TransactWriteItemsRequest().withTransactItems(actions).withReturnConsumedCapacity(ReturnConsumedCapacity.TOTAL))` +- **Execute read transaction**: `client.transactGetItems(new TransactGetItemsRequest().withTransactItems(getActions))` +- Exception handling covers `ResourceNotFoundException`, `InternalServerErrorException`, and `TransactionCanceledException` + +## Relationships +- **DynamoDB Transactions** — this is a concrete example of the TransactWriteItems/TransactGetItems APIs +- **Condition Expressions** — heavily used for validation logic within transactions +- **Error Handling** — `TransactionCanceledException` is the key exception when any condition fails +- **Capacity consumption** — transactions consume capacity from each table involved; `ReturnConsumedCapacity.TOTAL` tracks this + +## Exam-Relevant Points +- A single transaction can include actions across **multiple tables** +- Transactions support four action types in writes: **Put, Update, Delete, ConditionCheck** +- **ConditionCheck** is a read-only action used solely for validation within a write transaction +- `attribute_exists()` and `attribute_not_exists()` are common condition expressions for existence checks +- If any condition fails, the **entire transaction is canceled** — no partial execution +- `ReturnValuesOnConditionCheckFailure` set to `ALL_OLD` returns the conflicting item for diagnostics +- `TransactionCanceledException` is thrown when one or more conditions are not met + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-transactionshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-transactionshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..576148c6d9a80a27507b721088245f2cf93e5a68 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-transactionshtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/transactions.html +source: sources/amazondynamodb-latest-developerguide-transactionshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:43 + + + +## Overview +Amazon DynamoDB transactions enable coordinated, all-or-nothing changes to multiple items within and across tables, providing full ACID (atomicity, consistency, isolation, durability) guarantees. They allow grouping multiple read or write operations into a single atomic operation. + +## Key Concepts +- **ACID transactions**: DynamoDB transactions provide atomicity, consistency, isolation, and durability +- **TransactWriteItems**: Groups multiple `Put`, `Update`, `Delete`, and `ConditionCheck` actions into a single atomic write operation +- **TransactGetItems**: Groups multiple `Get` actions into a single atomic read operation +- **ConditionCheck**: A write-side action that validates a condition without modifying the item — used to assert preconditions within a transaction +- **All-or-nothing**: The entire transaction either succeeds or fails as a unit; no partial completion +- **Cross-table support**: Transactions can span multiple DynamoDB tables +- **No additional cost to enable**: Transactions don't require any table-level configuration or extra fee +- **2x read/write cost**: Each item in a transaction incurs two underlying operations (one prepare, one commit), visible in CloudWatch metrics + +## Commands and Syntax +Two transactional APIs: +- `TransactWriteItems` — up to 100 write actions (`Put`, `Update`, `Delete`, `ConditionCheck`) +- `TransactGetItems` — up to 100 read actions (`Get`) + +Available via AWS SDK or AWS CLI. + +## Relationships +- **CloudWatch**: Underlying prepare/commit operations are visible in CloudWatch metrics (important for capacity planning) +- **IAM**: Transactions require specific IAM permissions (covered in `transaction-apis-iam`) +- **Capacity units**: Transactions consume WCUs/RCUs at 2x the normal rate per item +- **Condition expressions**: `ConditionCheck` ties into DynamoDB's broader condition expression mechanism + +## Exam-Relevant Points +- Transactions support operations **across multiple tables**, not just within a single table +- Each transacted item costs **2x** the normal read/write capacity (prepare + commit) +- Write transactions can include `ConditionCheck` — a validation-only action that doesn't modify data +- There is **no additional cost to enable** transactions; you pay only for the reads/writes +- `TransactWriteItems` supports four action types: `Put`, `Update`, `Delete`, `ConditionCheck` +- `TransactGetItems` supports only `Get` actions +- Transactions are all-or-nothing — no partial success + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-using-service-linked-roleshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-using-service-linked-roleshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..70ded1ed4d0ff0103fa462c40e9f85667e58b442 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-using-service-linked-roleshtml.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/using-service-linked-roles.html +source: sources/amazondynamodb-latest-developerguide-using-service-linked-roleshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:43 + + + +## Overview +This page explains how DynamoDB Accelerator (DAX) uses IAM service-linked roles — specifically the `AWSServiceRoleForDAX` role — to automatically manage EC2 networking resources on behalf of DAX clusters. Service-linked roles simplify setup by bundling the required permissions and are auto-created when you create a DAX cluster. + +## Key Concepts +- **Service-linked role**: A special IAM role predefined by and linked directly to an AWS service; only that service can assume it. +- **`AWSServiceRoleForDAX`**: The specific service-linked role used by DAX, trusted by `dax.amazonaws.com`. +- The role grants DAX permissions to manage **EC2 networking resources** (security groups, network interfaces, VPC/subnet discovery) — not DynamoDB access. +- You must still separately grant each DAX cluster access to DynamoDB via a DAX access control policy. +- The role is **auto-created** when you create a DAX cluster; no manual creation needed. +- The role **cannot be edited** (except its description) and **cannot be deleted** while DAX clusters exist. +- You must delete **all DAX clusters** before you can delete the service-linked role. + +## Commands and Syntax +**IAM policy to allow creating the service-linked role:** +```json +{ + "Effect": "Allow", + "Action": ["iam:CreateServiceLinkedRole"], + "Resource": "*", + "Condition": {"StringLike": {"iam:AWSServiceName": "dax.amazonaws.com"}} +} +``` + +**Delete a DAX cluster (CLI):** +```bash +aws dax delete-cluster --cluster-name +``` + +## Relationships +- **IAM service-linked roles** — general IAM concept; DAX is one of many services using them. +- **EC2 networking** — the role's permissions are entirely EC2-scoped (security groups, network interfaces, VPCs, subnets, AZs). +- **DAX access control** — separate from the service-linked role; you must still configure IAM policies granting the DAX cluster access to DynamoDB tables. +- **DAX cluster lifecycle** — role creation is tied to cluster creation; role deletion requires prior cluster deletion. + +## Exam-Relevant Points +- The service-linked role grants EC2 permissions, **not** DynamoDB permissions — DynamoDB access must be configured separately. +- The role is auto-created on first DAX cluster creation; you cannot attach its permissions policy to other IAM entities. +- To delete the role, you must first delete **all** DAX clusters in the account. +- The trust policy allows only `dax.amazonaws.com` to assume the role. +- The `iam:CreateServiceLinkedRole` permission with condition `iam:AWSServiceName: dax.amazonaws.com` is required for IAM entities that create DAX clusters. + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-warm-throughputhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-warm-throughputhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2c57866885d73a2b22a3c326eefb751c00eabbd0 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-warm-throughputhtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/warm-throughput.html +source: sources/amazondynamodb-latest-developerguide-warm-throughputhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:43 + + + +## Overview +DynamoDB warm throughput represents the number of read and write operations a table or GSI can instantaneously support, based on historical usage patterns. You can proactively increase (pre-warm) these values ahead of anticipated traffic spikes without changing capacity mode or billing settings. + +## Key Concepts +- **Warm throughput** — the instant read/write capacity a table has scaled to based on past usage; available by default on all tables and GSIs at no cost +- **Pre-warming** — proactively increasing warm throughput values to set a higher baseline before peak events (e.g., product launches, sales) +- DynamoDB automatically adjusts warm throughput upward as usage increases +- **Once increased, warm throughput values cannot be decreased** +- Pre-warming can be applied to reads, writes, or both +- Works on single-Region tables, global tables (version 2019.11.21/Current only), and GSIs +- For global tables, warm throughput settings automatically apply to all replicas +- No limit on how many tables can be pre-warmed simultaneously +- Pre-warm requests do not interfere with normal table operations +- Pre-warming time depends on the requested values and table/index size +- Maximum pre-warm value is capped by the table/index quota for the account and Region (adjustable via Service Quotas console) +- Default warm throughput values are free; proactive increases incur charges + +## Commands and Syntax +No CLI/API syntax on this page — related procedures are covered in linked sub-topics (check, update, create with warm throughput). + +## Relationships +- **Capacity modes** — warm throughput works with both on-demand and provisioned modes without requiring a mode change +- **Global tables** — only supported on version 2019.11.21 (Current); settings replicate to all replicas +- **GSIs** — each GSI has its own warm throughput values, independent of the base table +- **Service Quotas** — pre-warming is bounded by per-account, per-Region table/index quotas +- **Billing** — ties to DynamoDB pricing; default values are free, proactive increases are charged + +## Exam-Relevant Points +- Warm throughput values **cannot be decreased** once increased — this is irreversible +- Pre-warming does **not** require changing capacity mode or provisioned throughput settings +- Global table warm throughput requires version 2019.11.21 (Current) and propagates to all replicas automatically +- Default warm throughput is provided at **no additional cost**; only proactive pre-warming incurs charges +- Useful for handling 10x–100x+ traffic spikes from planned events +- No limit on concurrent pre-warm requests across tables + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchModelerhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchModelerhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..34ebdaca89c97a2e2f76b3c3980fa1081be9bc46 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchModelerhtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/workbench.Modeler.html +source: sources/amazondynamodb-latest-developerguide-workbenchModelerhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:44 + + + +## Overview +NoSQL Workbench's data modeler is a tool for designing and building DynamoDB data models, either from scratch or based on existing models, with the goal of satisfying application data access patterns. It includes sample models to help users get started. + +## Key Concepts +- **Data Modeler** — a component of NoSQL Workbench used to design DynamoDB table schemas and data models +- Models can be created new, imported from existing models, or edited +- Sample data can be added to models directly or imported from CSV files +- **Access patterns** can be defined and validated against the model +- **Facets** — a way to view and organize different entity types stored in the same table (supports single-table design) +- **Aggregate view** — shows all tables in a data model together +- Models can be exported (for sharing/versioning) or committed directly to DynamoDB + +## Commands and Syntax +No CLI commands on this page — the data modeler is a GUI tool within NoSQL Workbench. Key operations: +- Create new data model +- Import existing data model +- Edit data model +- Add sample data / import from CSV +- Add and validate access patterns +- Export data model +- Commit data model to DynamoDB + +## Relationships +- **NoSQL Workbench** — parent tool; data modeler is one of its core components alongside the query builder +- **DynamoDB tables** — models designed here map directly to DynamoDB table/index schemas +- **Access patterns** — ties into DynamoDB's key design principle of designing tables around query patterns +- **Single-table design** — facets support modeling multiple entity types in one table +- **CSV import** — enables loading real data for testing models before committing + +## Exam-Relevant Points +- NoSQL Workbench is a free, visual tool for designing and testing DynamoDB data models +- The data modeler supports validating access patterns against your schema — a key step in DynamoDB design +- Models can be committed directly to a live DynamoDB instance from the workbench +- Facets help visualize single-table designs where multiple entity types share a table +- Understanding that DynamoDB schema design is driven by access patterns (not entity relationships) is fundamental + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchSampleModelshtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchSampleModelshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ed07cea66d9e82ecf788ecd6f9b996b1ff79aaa2 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchSampleModelshtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/workbench.SampleModels.html +source: sources/amazondynamodb-latest-developerguide-workbenchSampleModelshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:44 + + + +## Overview + +This page describes six sample data models included with NoSQL Workbench for DynamoDB. Each model demonstrates different DynamoDB design patterns — such as one-to-many relationships, many-to-many relationships, complex attributes, and GSI-based access patterns — applied to realistic use cases. + +## Key Concepts + +- **NoSQL Workbench** ships with pre-built sample models to teach DynamoDB data modeling patterns +- **Employee model**: Demonstrates complex attributes (multi-value skills), one-to-many relationships (manager → reports) via GSI (`DirectReports`), and lookup by name via GSI (`Name`) +- **Discussion Forum model**: Three tables (`Forum`, `Thread`, `Reply`) with a GSI (`PostedBy-Message-Index`) for searching replies by user email +- **Music Library model**: Single-table design (`Songs`) storing song records, download records, and monthly counts together; GSI (`DownloadsByMonth`) for top-downloads queries +- **Ski Resort model**: Single-table design (`SkiLifts`) combining static and dynamic data; GSI (`SkiLiftsByRiders`) for sorting by unique rider count +- **Credit Card Offers model**: Single table with multiple GSIs (`AccountIndex`, `GSI1`) supporting composite access patterns across accounts, offers, and offer items; filters by offer type and status +- **Bookmarks model**: Many-to-many relationship pattern; single table with multiple GSIs (`ByEmail`, `ByUrl`, `ByCustomerFolder`) for different access patterns; `ByUrl` uses customerId as sort key to handle multiple customers bookmarking the same URL + +## Commands and Syntax + +No CLI commands on this page — these models are accessed through the NoSQL Workbench GUI modeler home page. + +## Relationships + +- **NoSQL Workbench** — the tool that hosts these models (see Workbench overview) +- **GSI design patterns** — all models demonstrate Global Secondary Index usage for alternative access patterns +- **Single-table design** — Music Library, Ski Resort, and Credit Card Offers models demonstrate storing multiple entity types in one table +- **DynamoDB best practices** — these models illustrate adjacency list, composite sort key, and overloaded GSI patterns + +## Exam-Relevant Points + +- **One-to-many relationships** can be modeled with GSIs (Employee → DirectReports index) +- **Many-to-many relationships** use inverted indexes / multiple GSIs (Bookmarks model) +- **Single-table design** stores heterogeneous item types in one table, enabling retrieval of related entities in a single query (Music Library, Ski Resort, Credit Card Offers) +- **GSI sort keys matter**: the Bookmarks `ByUrl` index uses customerId as sort key because the same URL can be bookmarked by multiple customers — demonstrating how to handle non-unique GSI partition keys +- **Composite access patterns**: Credit Card Offers shows filtering by multiple attributes (AccountId + OfferType + Status) using a GSI rather than scan-and-filter +- **Complex attributes** (lists/sets) are valid for attributes like skills that don't need to be indexed independently + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..baf5ed766f51049f1d26e49bce32ff37e071cfbb --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchhtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/workbench.html +source: sources/amazondynamodb-latest-developerguide-workbenchhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:44 + + + +## Overview +NoSQL Workbench for DynamoDB is a cross-platform GUI application (Windows, macOS, Linux) for designing, testing, and validating DynamoDB data models client-side before deploying to the cloud. It bundles DynamoDB Local for offline testing. + +## Key Concepts +- **Data Modeler**: Design tables, GSIs, attributes, and sample data; visualize access patterns as real DynamoDB operations (PutItem, UpdateItem, Query, etc.); validate against sample data before committing +- **Operation Builder**: GUI for developing/testing queries with projection expressions, condition expressions; generates sample code in multiple languages +- **Table Cloning**: Clone tables between AWS accounts/regions or between DynamoDB Local and cloud accounts (key schema, optionally GSI schema and items) +- **Project Organization**: Data models can be organized into projects; supports import/export for collaboration +- **DynamoDB Local Integration**: Built-in local testing before committing to cloud + +## Commands and Syntax +No CLI commands — this is a GUI tool. Key workflows: +1. Create or import a project → design tables/GSIs → define attributes → add sample data +2. Define access patterns as DynamoDB operations → validate against sample data +3. Commit validated model to DynamoDB Local or AWS account +4. Use Operation Builder to explore live datasets and generate code + +## Relationships +- **DynamoDB Local**: Bundled with NoSQL Workbench for offline testing +- **GSIs**: Designed and configured within the data modeler +- **Access Patterns**: Modeled as real DynamoDB API operations (ties to Query, PutItem, UpdateItem APIs) +- **Data Modeling Best Practices**: Tool supports the single-table design and access-pattern-first methodology recommended by AWS + +## Exam-Relevant Points +- NoSQL Workbench is a **client-side** tool, not an AWS service — no cost, no cloud resources consumed during modeling +- Supports validating access patterns **before deployment** using sample data +- Can clone tables **across regions and accounts** directly +- Includes DynamoDB Local for development without cloud connectivity +- Generates sample code in multiple languages from the operation builder + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchquerybuilderhtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchquerybuilderhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..88e687c9597c51abbe68e5f01d0ea1725e9dc82f --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchquerybuilderhtml.md @@ -0,0 +1,43 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/workbench.querybuilder.html +source: sources/amazondynamodb-latest-developerguide-workbenchquerybuilderhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:44 + + + +## Overview +NoSQL Workbench for Amazon DynamoDB includes an operation builder that provides a GUI for developing, testing, and running queries against live DynamoDB datasets. It supports building complex operations with projection and condition expressions, generates sample code in multiple languages, and enables table cloning across accounts, regions, and between DynamoDB Local and cloud environments. + +## Key Concepts +- **Operation Builder** — GUI tool within NoSQL Workbench for viewing, exploring, and querying live DynamoDB data +- **Projection expressions** and **condition expressions** are supported in the structured operation builder +- **Multi-language code generation** — generates sample code from built operations +- **Table cloning** — copy tables (key schema, optionally GSI schema and items) between: + - Different AWS accounts + - Different AWS Regions + - DynamoDB Local ↔ cloud DynamoDB +- **Operation limit** — up to 50 saved data operations per operation builder instance + +## Commands and Syntax +No CLI commands on this page — this is a GUI tool. Sub-topics cover: +- Connecting to live datasets +- Building complex operations +- Cloning tables +- Exporting data to CSV + +## Relationships +- **DynamoDB Local** — table cloning bridges local dev and cloud environments +- **GSI (Global Secondary Index)** — optionally included when cloning table schemas +- **NoSQL Workbench Data Modeler** — the operation builder complements the data modeling features +- **SDK code generation** — connects to application development in supported languages + +## Exam-Relevant Points +- Maximum of **50 saved operations** in the operation builder +- Table cloning copies **key schema** (and optionally GSI schema and items) — not full table configuration +- Cloning works **cross-account, cross-region, and between DynamoDB Local and cloud** +- NoSQL Workbench is a **client-side development tool**, not an AWS managed service + diff --git a/entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchsettinguphtml.md b/entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchsettinguphtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1064ef0ae00bfb10a9d56214e8a69f519528d2b5 --- /dev/null +++ b/entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchsettinguphtml.md @@ -0,0 +1,39 @@ +--- +source_url: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/workbench.settingup.html +source: sources/amazondynamodb-latest-developerguide-workbenchsettinguphtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:44 + + + +## Overview +Instructions for downloading NoSQL Workbench for DynamoDB, a desktop tool that bundles DynamoDB local for local development and data modeling. + +## Key Concepts +- NoSQL Workbench is available for macOS (Intel and Apple Silicon), Windows, and Linux +- **DynamoDB local is included** with the NoSQL Workbench installation — no separate download needed +- **JRE 17.x or newer** is required to run DynamoDB local +- Supported Linux distributions: Ubuntu 12.04+, Fedora 21+, Debian 8+ + +## Commands and Syntax +```bash +# Ubuntu 22.04+ prerequisites +sudo add-apt-repository universe && sudo apt install libfuse2 +sudo apt update && sudo apt upgrade && sudo apt install curl +``` + +## Relationships +- **DynamoDB local**: Bundled with NoSQL Workbench; enables offline development and testing against a local DynamoDB instance +- **NoSQL Workbench**: Connects to the data modeler, query builder, and visualization features covered in other workbench pages +- **JRE dependency**: DynamoDB local runs on the JVM, requiring JRE 17+ + +## Exam-Relevant Points +- DynamoDB local requires **JRE 17.x or newer** (common version-specific question) +- NoSQL Workbench **includes DynamoDB local** — they are not separate downloads +- NoSQL Workbench is a **desktop application**, not a web-based console tool +- Linux support starts at Ubuntu 12.04, Fedora 21, Debian 8 +- On Ubuntu 22.04+, `libfuse2` must be installed manually (no longer a default package) + diff --git a/entries/2026/03/11/amazonglacier-latest-dev-audit-logginghtml.md b/entries/2026/03/11/amazonglacier-latest-dev-audit-logginghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..55bb2b87a9a4e981e8e387a6b2101dcf027e92a5 --- /dev/null +++ b/entries/2026/03/11/amazonglacier-latest-dev-audit-logginghtml.md @@ -0,0 +1,59 @@ +--- +source_url: https://docs.aws.amazon.com/amazonglacier/latest/dev/audit-logging.html +source: sources/amazonglacier-latest-dev-audit-logginghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:45 + + + +## Overview +This page documents how Amazon Glacier (the legacy standalone vault-based service) integrates with AWS CloudTrail for API call logging. It covers what information is captured, how to configure trails, and provides example log entries. Importantly, the page emphasizes that the standalone Glacier service is deprecated for new customers — AWS now recommends the S3 Glacier storage classes (Instant Retrieval, Flexible Retrieval, Deep Archive) instead. + +## Key Concepts +- **Amazon Glacier (legacy)** is a standalone vault-based archival service with its own REST API (from 2012), distinct from the S3 Glacier storage classes +- **No longer accepting new customers** — existing data remains accessible indefinitely with no required migration +- **All Glacier API actions are logged by CloudTrail** — CreateVault, DeleteVault, ListVaults, DescribeVault, etc. +- CloudTrail is **enabled by default** on all AWS accounts; events appear in Event History +- A **trail** must be created for ongoing log file delivery to an S3 bucket +- Trails apply to **all AWS Regions** by default when created via the console +- CloudTrail log files are **not ordered** — they do not represent a sequential stack trace +- Each log entry captures: who made the request, source IP, timestamp, action, request/response parameters +- The **eventSource** for Glacier is `glacier.amazonaws.com` +- **userIdentity** element reveals whether requests used root credentials, IAM user, temporary credentials (role/federated), or another AWS service + +## Commands and Syntax +No CLI commands shown. The example CloudTrail log entry structure for Glacier events: +```json +{ + "eventName": "CreateVault", + "eventSource": "glacier.amazonaws.com", + "requestParameters": { + "accountId": "-", + "vaultName": "myVaultName" + }, + "responseElements": { + "location": "/999999999999/vaults/myVaultName" + } +} +``` +Key logged actions: `CreateVault`, `DeleteVault`, `ListVaults`, `DescribeVault`. + +## Relationships +- **CloudTrail** — the logging/auditing service that captures all Glacier API calls +- **Amazon S3** — CloudTrail delivers log files to an S3 bucket; also hosts the recommended replacement (S3 Glacier storage classes) +- **Amazon SNS** — can be configured for CloudTrail notifications +- **S3 Glacier storage classes** (Instant Retrieval, Flexible Retrieval, Deep Archive) — the recommended replacement, using S3 bucket-based APIs instead of vault-based APIs +- **IAM** — userIdentity in logs ties back to IAM users, roles, and federated identities + +## Exam-Relevant Points +- Amazon Glacier (standalone vault service) is **deprecated for new customers** — always recommend S3 Glacier storage classes for new workloads +- The S3 Glacier storage classes offer: S3 bucket-based APIs, full region availability, lower costs, and better AWS service integration +- CloudTrail logs **all** Glacier API calls — not just management events +- CloudTrail is enabled automatically on account creation; no explicit setup needed for Event History +- Trails created in the console default to **multi-region** logging +- Migration path exists: AWS Solutions Guidance for transferring data from Glacier vaults to S3 Glacier storage classes +- Glacier's `eventSource` is `glacier.amazonaws.com` — distinct from S3's event source + diff --git a/entries/2026/03/11/amazonq-latest-aws-builder-use-ug-logging-using-cloudtrailhtml.md b/entries/2026/03/11/amazonq-latest-aws-builder-use-ug-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5c338aade32e064cfb3362b7acac5e76fe2f50c5 --- /dev/null +++ b/entries/2026/03/11/amazonq-latest-aws-builder-use-ug-logging-using-cloudtrailhtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/amazonq/latest/aws-builder-use-ug/logging-using-cloudtrail.html +source: sources/amazonq-latest-aws-builder-use-ug-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:45 + + + +## Overview +This page documents how Amazon Q Developer Pro integrates with AWS CloudTrail for API call logging. CloudTrail captures all Amazon Q API calls as events, which can be viewed in Event History or delivered continuously to an S3 bucket via a trail. The page includes example log entries for key Amazon Q actions. + +## Key Concepts +- **CloudTrail is enabled by default** on all AWS accounts — no setup needed to start capturing events +- **All Amazon Q Developer actions** are logged by CloudTrail and generate log entries +- **Event History** allows viewing recent events without configuring a trail +- **Trails** enable continuous delivery of log files to S3; by default they apply to all AWS Regions +- **`dryRun` parameter**: Amazon Q makes API calls with `dryRun` to verify permissions without executing — these are logged with `"dryRun": true` in `requestParameters` +- **Event source**: Amazon Q events use `q.amazonaws.com` as the `eventSource` +- **Sensitive data masking**: User utterances, conversation tokens, and response bodies are masked with `***` in CloudTrail logs +- **userIdentity element** reveals whether requests were made with root credentials, IAM user credentials, temporary role credentials, or by another AWS service + +## Commands and Syntax +No CLI commands specific to this page. Configuration is done via CloudTrail trail setup (documented elsewhere). Key fields in log entries: + +- `eventSource`: `q.amazonaws.com` +- `eventName`: Action performed (e.g., `SendMessage`, `PassRequest`) +- `requestParameters.source`: Origin context (e.g., `CONSOLE`) +- `additionalEventData.quickAction`: Indicates which Q feature was used (e.g., `dev`) +- `invokedBy`: When Amazon Q calls other services on your behalf, shows `q.amazonaws.com` + +## Relationships +- **CloudTrail**: Core dependency for all logging; events flow into CloudTrail trails +- **S3**: Destination for CloudTrail log file delivery +- **SNS**: Can be configured for CloudTrail event notifications +- **IAM**: userIdentity element ties events to IAM principals (roles, users, federated identities) +- **PassRequest action**: Represents Amazon Q acting on behalf of a user — shows up when Q calls other AWS services (e.g., `s3:ListBuckets`) using the user's permissions with `invokedBy: q.amazonaws.com` + +## Exam-Relevant Points +- CloudTrail is **automatically enabled** — no opt-in required for basic event capture +- Amazon Q events have `eventSource` = `q.amazonaws.com` +- When Amazon Q calls other AWS APIs on your behalf, the CloudTrail event for that API call shows `sourceIPAddress` and `invokedBy` both set to `q.amazonaws.com` (not the user's IP) +- `dryRun` calls are logged — useful for auditing permission checks vs. actual actions +- Trails created in the console apply to **all Regions** by default +- Log files are **not** in ordered stack-trace format — no guaranteed ordering +- `SendMessage` events are classified as `managementEvent: true` and `eventCategory: "Management"` +- Sensitive fields (utterances, tokens, response text) are redacted in logs + diff --git a/entries/2026/03/11/amazonq-latest-business-use-dg-logging-using-cloudtrailhtml.md b/entries/2026/03/11/amazonq-latest-business-use-dg-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e14bc66409522bb4c2609ff4d22183a6c7cb13b2 --- /dev/null +++ b/entries/2026/03/11/amazonq-latest-business-use-dg-logging-using-cloudtrailhtml.md @@ -0,0 +1,78 @@ +--- +source_url: https://docs.aws.amazon.com/amazonq/latest/business-use-dg/logging-using-cloudtrail.html +source: sources/amazonq-latest-business-use-dg-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:45 + + + +## Overview + +Amazon Q Business integrates with AWS CloudTrail to log API calls made by users, roles, or AWS services. CloudTrail captures both control plane (management) and data plane events, delivering them to S3 buckets via trails. Even without a trail configured, recent events are viewable in CloudTrail's Event History console. + +## Key Concepts + +- **CloudTrail is enabled by default** on all AWS accounts — Amazon Q Business activity is automatically recorded in Event History +- **Trails** enable continuous delivery of CloudTrail log files to an S3 bucket; by default they apply to all AWS Regions +- **Control plane events** (management events) are logged by default — these cover CRUD operations on Applications, DataSources, Indices, Plugins, Retrievers, WebExperiences, and tagging +- **Data plane events** are NOT logged by default — they require explicit configuration via advanced event selectors +- **Three data event resource types**: `AWS::QBusiness::Application`, `AWS::QBusiness::DataSource`, `AWS::QBusiness::Index` +- **Additional charges apply** for logging data events +- **Event source**: `qbusiness.amazonaws.com` +- **userIdentity element** reveals whether requests used root credentials, IAM user credentials, temporary role credentials, or were made by another AWS service + +## Commands and Syntax + +Configure a trail to log all Amazon Q Business data events: + +```bash +aws cloudtrail put-event-selectors --trail-name trailName \ +--advanced-event-selectors \ +'[ + { + "Name": "Log all data events on an Amazon Q Business application", + "FieldSelectors": [ + { "Field": "eventCategory", "Equals": ["Data"] }, + { "Field": "resources.type", "Equals": ["AWS::QBusiness::Application"] } + ] + }, + { + "Name": "Log all data events on an Amazon Q Business data source", + "FieldSelectors": [ + { "Field": "eventCategory", "Equals": ["Data"] }, + { "Field": "resources.type", "Equals": ["AWS::QBusiness::DataSource"] } + ] + }, + { + "Name": "Log all data events on an Amazon Q Business index", + "FieldSelectors": [ + { "Field": "eventCategory", "Equals": ["Data"] }, + { "Field": "resources.type", "Equals": ["AWS::QBusiness::Index"] } + ] + } +]' +``` + +Additional filtering is available on `eventName` and `resources.ARN` fields via `AdvancedFieldSelector`. + +## Relationships + +- **CloudTrail** — the underlying logging service; trails, event data stores, and Lake all apply +- **Amazon S3** — destination for CloudTrail log files +- **Amazon SNS** — can be configured for CloudTrail notifications +- **IAM** — userIdentity element ties events to IAM principals (users, roles, federated users) +- **CloudTrail advanced event selectors** — required to enable data plane event logging (same mechanism used by S3, Lambda, DynamoDB, etc.) + +## Exam-Relevant Points + +- **Management events are logged by default; data events are not** — this is a common CloudTrail pattern across all AWS services +- Data plane operations for Amazon Q Business include `ChatSync`, `BatchPutDocument`, `BatchDeleteDocument`, `StartDataSourceSyncJob`, `PutGroup`, and `PutFeedback` +- To log data events, you must use **advanced event selectors** (not basic event selectors) +- The three `resources.type` values for Amazon Q Business data events: `AWS::QBusiness::Application`, `AWS::QBusiness::DataSource`, `AWS::QBusiness::Index` +- Some data events overlap across resource types (e.g., `ListDataSourceSyncJobs` appears under both Application and DataSource) +- CloudTrail log entries include `eventSource: qbusiness.amazonaws.com`, TLS details, and `managementEvent: true/false` to distinguish event categories +- Data event logging incurs **additional CloudTrail charges** + diff --git a/entries/2026/03/11/amazonswf-latest-developerguide-ct-logginghtml.md b/entries/2026/03/11/amazonswf-latest-developerguide-ct-logginghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..f17bec1850bf436c83c3c61027ef36399fa7325b --- /dev/null +++ b/entries/2026/03/11/amazonswf-latest-developerguide-ct-logginghtml.md @@ -0,0 +1,62 @@ +--- +source_url: https://docs.aws.amazon.com/amazonswf/latest/developerguide/ct-logging.html +source: sources/amazonswf-latest-developerguide-ct-logginghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:46 + + + +## Overview +This page documents how Amazon Simple Workflow Service (SWF) integrates with AWS CloudTrail for API call logging. It covers both management events (control plane operations like registering domains and workflow types) and data events (data plane operations like starting workflows and polling for tasks), along with how to configure logging and interpret CloudTrail event records. + +## Key Concepts +- **CloudTrail integration**: All SWF API calls are captured as CloudTrail events, including console and programmatic calls +- **Event history**: Automatically available, provides 90 days of management events at no charge; searchable, downloadable, immutable +- **Trails**: Deliver log files to S3; console-created trails are multi-Region by default; one free copy of management events to S3 (S3 storage charges still apply) +- **CloudTrail Lake**: SQL-based querying of events stored in Apache ORC columnar format; events stored in immutable event data stores; incurs costs for ingestion and storage +- **Management events** (control plane): Logged by default — domain, activity type, workflow type, and tag operations +- **Data events** (data plane): NOT logged by default; high-volume; incur additional charges; must be explicitly enabled +- **SWF resource type for data events**: `AWS::SWF::Domain` +- **RespondDecisionTaskCompleted behavior**: Emits N+1 CloudTrail data events (one per decision + one for the API call itself), all sharing the same request ID +- **Identity tracking**: Each event records whether the request used root credentials, IAM Identity Center user, temporary credentials (role/federated user), or another AWS service + +## Commands and Syntax +- **Advanced event selectors** can filter on `eventName`, `readOnly`, and `resources.ARN` +- **resources.type value** for SWF: `AWS::SWF::Domain` +- **eventSource** in CloudTrail records: `swf.amazonaws.com` + +Example CloudTrail event structure (key fields): +```json +{ + "eventSource": "swf.amazonaws.com", + "eventName": "CountClosedWorkflowExecutions", + "managementEvent": false, + "eventCategory": "Data", + "resources": [ + { + "type": "AWS::SWF::Domain", + "ARN": "arn:aws:swf:us-east-1:111122223333:/domain/nsg-domain" + } + ] +} +``` + +## Relationships +- **CloudTrail**: Core dependency for all audit logging; shared across all AWS services +- **S3**: Storage target for trail log files +- **CloudTrail Lake**: Alternative to trails for SQL-based event analysis +- **IAM/STS**: Identity information in events ties to IAM roles, federated users, and Identity Center +- **Lambda**: SWF decisions can schedule Lambda functions (ScheduleLambdaFunction appears in data events) + +## Exam-Relevant Points +- Management events are logged **by default**; data events are **not** and cost extra +- CloudTrail Event history retains **90 days** of management events for free +- Console-created trails are always **multi-Region**; CLI can create single-Region trails +- SWF data events use resource type `AWS::SWF::Domain` +- `RespondDecisionTaskCompleted` generates **N+1 events** (one per decision + one for the call) +- Management events include Register/Describe/List/Deprecate/Undeprecate/Delete for domains, activity types, and workflow types, plus tag operations +- Data events cover workflow execution operations (start, signal, terminate, cancel) and task polling/responding operations + diff --git a/entries/2026/03/11/amplify-latest-userguide-logging-using-cloudtrailhtml.md b/entries/2026/03/11/amplify-latest-userguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1e04d29342d8387018a322b050db488cd397ffca --- /dev/null +++ b/entries/2026/03/11/amplify-latest-userguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/amplify/latest/userguide/logging-using-cloudtrail.html +source: sources/amplify-latest-userguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:46 + + + +## Overview +This page describes how AWS Amplify integrates with AWS CloudTrail to log all API calls made to Amplify services. CloudTrail captures calls from the Amplify console and programmatic API operations, recording them as events that can be viewed in Event history or delivered to an S3 bucket via a trail. + +## Key Concepts +- **CloudTrail is enabled by default** on all AWS accounts — Amplify activity is automatically recorded +- **All Amplify operations are logged**, spanning three API surfaces: Amplify Console API, Amplify Admin UI API, and Amplify UI Builder API +- **Event sources** differ by API surface: `amplify.amazonaws.com` for Console API, `amplifybackend.amazonaws.com` for Admin UI API +- CloudTrail log files are **not ordered** — they don't form a sequential stack trace +- Each log entry captures: who made the request, when, from what IP, what action, request/response parameters +- **userIdentity** element reveals whether requests used root credentials, IAM user credentials, temporary role/federated credentials, or were made by another AWS service + +## Commands and Syntax +No CLI commands specific to Amplify CloudTrail integration. Standard CloudTrail mechanisms apply: +- Create a trail to deliver logs to S3 +- View recent events via CloudTrail console **Event history** +- Example logged operations: `CreateApp`, `DeleteApp`, `DeleteBackendEnvironment`, `ListApps`, `ListBackendJobs` + +Key fields in log entries: +- `eventSource` — identifies which Amplify API surface (`amplify.amazonaws.com` vs `amplifybackend.amazonaws.com`) +- `eventName` — the API operation name +- `requestParameters` / `responseElements` — input and output data +- `readOnly` — whether the call was read-only (`ListApps` = true) or mutating (`ListBackendJobs` = false, since it's a POST) + +## Relationships +- **CloudTrail** — the underlying logging service; trails, Event history, and log file format are all CloudTrail concepts +- **Amazon S3** — destination for continuous log delivery via trails +- **Amazon SNS** — can be configured for CloudTrail notifications +- **IAM** — userIdentity element ties into IAM users, roles, and federated identities +- **Multi-region/multi-account** — trails can aggregate logs across regions and accounts + +## Exam-Relevant Points +- CloudTrail is enabled by default; no setup needed to start capturing Amplify events +- Amplify has **three separate API references** that all log to CloudTrail (Console, Admin UI, UI Builder) +- Different Amplify API surfaces use **different event sources** in CloudTrail logs +- Trails apply to **all AWS Regions** by default when created via the console +- `ListBackendJobs` is marked `readOnly: false` despite being a list operation (because it uses POST) — a potential trick question +- CloudTrail log entries are **management events** by default (`eventCategory: "Management"`) + diff --git a/entries/2026/03/11/apigateway-latest-api-API_Operationshtml.md b/entries/2026/03/11/apigateway-latest-api-API_Operationshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..88c2a406810cf2fe554505ff7a86e6b3f152b1d6 --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-api-API_Operationshtml.md @@ -0,0 +1,67 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/api/API_Operations.html +source: sources/apigateway-latest-api-API_Operationshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:47 + + + +## Overview +This page is the API actions reference index for **Amazon API Gateway REST API (v1)**. It enumerates all available control-plane API operations used to create, configure, manage, and delete REST API resources within API Gateway. + +## Key Concepts +- **REST API (v1) control plane**: These are the management APIs for API Gateway REST APIs (not HTTP APIs or WebSocket APIs, which use the API Gateway V2 service). +- **CRUD pattern**: Actions follow a consistent Create/Get/Update/Delete pattern across all resource types. +- **Core resource types managed by these APIs**: + - **RestApi** — the top-level API container + - **Resource** — URL path segments within an API + - **Method / MethodResponse** — HTTP verbs and their response configurations + - **Integration / IntegrationResponse** — backend connection definitions (Lambda, HTTP, AWS service) + - **Stage** — named deployment snapshot (e.g., `prod`, `dev`) + - **Deployment** — an immutable snapshot of the API pushed to a stage + - **Authorizer** — Lambda or Cognito-based auth for methods + - **Model** — JSON schema for request/response validation + - **RequestValidator** — validates incoming request body/params + - **ApiKey / UsagePlan / UsagePlanKey** — throttling, quota, and key-based access control + - **DomainName / BasePathMapping** — custom domain configuration + - **VpcLink** — private integration with VPC resources (NLB) + - **GatewayResponse** — customized error responses from API Gateway itself + - **ClientCertificate** — mutual TLS for backend authentication + - **DocumentationPart / DocumentationVersion** — API documentation management + - **DomainNameAccessAssociation** — cross-account domain sharing +- **Special operations**: `FlushStageCache`, `FlushStageAuthorizersCache`, `TestInvokeMethod`, `TestInvokeAuthorizer`, `GetExport`, `GetSdk`, `ImportRestApi`, `PutRestApi`, `ImportApiKeys`, `ImportDocumentationParts` + +## Commands and Syntax +No CLI commands shown directly; these are REST API actions. Corresponding AWS CLI commands follow the pattern: +```bash +aws apigateway create-rest-api --name "MyAPI" +aws apigateway create-resource --rest-api-id --parent-id --path-part "items" +aws apigateway put-method --rest-api-id --resource-id --http-method GET --authorization-type NONE +aws apigateway create-deployment --rest-api-id --stage-name prod +aws apigateway flush-stage-cache --rest-api-id --stage-name prod +aws apigateway test-invoke-method --rest-api-id --resource-id --http-method GET +``` + +## Relationships +- **API Gateway V2 API** (`apigatewayv2`) is the separate service for HTTP APIs and WebSocket APIs — different action set. +- **IAM**: Actions map to `apigateway:*` IAM permissions for access control. +- **Lambda**: Integrations commonly target Lambda functions; authorizers can be Lambda-based. +- **VPC / NLB**: `VpcLink` connects API Gateway to private resources via Network Load Balancers. +- **ACM**: Custom domain names require SSL certificates from AWS Certificate Manager. +- **CloudWatch**: Stages can be configured for logging/metrics (not shown here but configured via `UpdateStage`). +- **CloudTrail**: All API actions are logged as management events. + +## Exam-Relevant Points +- **REST API vs HTTP API**: This is the v1 (REST API) action set. HTTP APIs use API Gateway V2 with a different, smaller API surface. +- **Deployment model**: Changes to a REST API don't take effect until a **Deployment** is created and associated with a **Stage**. +- **Usage Plans + API Keys**: Three resources work together — `UsagePlan` (throttle/quota), `ApiKey` (credential), `UsagePlanKey` (association). +- **VpcLink**: Required for private integrations; connects to an NLB in a VPC. +- **FlushStageCache / FlushStageAuthorizersCache**: Operational actions to invalidate cached responses or authorizer results — relevant for troubleshooting stale data. +- **TestInvokeMethod / TestInvokeAuthorizer**: Allow testing without deploying — useful for debugging. +- **ImportRestApi / PutRestApi**: Support importing API definitions (OpenAPI/Swagger) — `Import` creates new, `Put` updates existing. +- **ClientCertificate**: Used for backend mutual TLS authentication (API Gateway → backend), not client-facing TLS. +- **TagResource / UntagResource**: REST APIs support resource tagging for cost allocation and organization. + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-api-gateway-basic-concepthtml.md b/entries/2026/03/11/apigateway-latest-developerguide-api-gateway-basic-concepthtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b3c7923df0805a190086645e18edc96bc6e5a489 --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-api-gateway-basic-concepthtml.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-basic-concept.html +source: sources/apigateway-latest-developerguide-api-gateway-basic-concepthtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:47 + + + +## Overview + +This page defines the core terminology and concepts for Amazon API Gateway, covering the three API types (REST, HTTP, WebSocket), endpoint types (edge-optimized, regional, private), integration models (proxy, mock, private), and supporting constructs like stages, deployments, usage plans, API keys, and mapping templates. + +## Key Concepts + +- **Three API types**: REST API (resources + methods), HTTP API (routes + methods, simpler/cheaper), WebSocket API (routes + route keys, persistent connections) +- **API deployment**: A point-in-time snapshot of an API; must be associated with a stage to be callable +- **API stage**: A logical lifecycle label (e.g., `dev`, `prod`, `v2`), identified by API ID + stage name +- **Three endpoint types**: + - **Edge-optimized** (default): Uses CloudFront distribution for global client access + - **Regional**: Direct access in-region, no CloudFront hop; supports latency-based routing via Route 53 + - **Private**: Exposed only via VPC interface endpoints, isolated from public internet +- **API endpoint hostname format**: `{api-id}.execute-api.{region}.amazonaws.com` +- **API key**: Alphanumeric string identifying an app developer; used with Lambda authorizers or usage plans for access control +- **Integration request/response**: Internal interfaces mapping frontend requests/responses to/from backend formats +- **Mapping template**: VTL script transforming request/response bodies between frontend and backend formats +- **Proxy integration**: Simplified config — HTTP proxy passes everything through; Lambda proxy sends full request as event input +- **Mock integration**: API Gateway returns responses directly without a backend +- **Private integration**: Accesses resources inside a VPC via private REST API endpoint +- **Usage plan**: Configures throttling and quota limits, enforced per API key +- **Model**: JSON Schema defining request/response payload structure; required for strongly typed SDK generation and payload validation +- **WebSocket connections**: Persistent between client and API Gateway; backend integrations (e.g., Lambda) are invoked on-demand per message +- **Route (WebSocket)**: Directs incoming messages to integrations based on a route key attribute in the message body +- **Callback URL (WebSocket)**: Stored on connect; used to push messages from backend to client +- **Quick create**: Shortcut for HTTP APIs — creates API with integration, catch-all route, and auto-deploy stage +- **Developer portal**: Application for sharing APIs/documentation; APIs grouped into **products** (endpoints + docs) + +## Commands and Syntax + +- **API endpoint format**: `{api-id}.execute-api.{region}.amazonaws.com` +- **Proxy resource pattern** (REST): `{proxy+}` greedy path variable with `ANY` method +- **Quick create** (HTTP API via CLI): `aws apigatewayv2 create-api --name my-api --protocol-type HTTP --target ` + +## Relationships + +- **CloudFront**: Edge-optimized endpoints use CloudFront distributions +- **Route 53**: Latency-based routing for multi-region Regional endpoint deployments +- **Lambda**: Primary integration target for all three API types; Lambda proxy integration is the most common pattern +- **VPC / VPC Endpoints**: Required for private API endpoints and private integrations +- **IAM / Lambda Authorizers**: Access control mechanisms referenced by API keys and usage plans +- **CloudWatch**: Monitoring and logging (referenced elsewhere) + +## Exam-Relevant Points + +- **Edge-optimized is the default** endpoint type; it routes through CloudFront even for same-region clients +- **Regional endpoints bypass CloudFront** — better for same-region clients and allows custom CDN configuration +- **Private APIs are only accessible via VPC interface endpoints** — completely isolated from public internet +- **Deployments must be associated with stages** to be invocable by clients +- **Lambda proxy integration** passes the entire request as the Lambda event and expects a specific response format +- **HTTP APIs vs REST APIs** are distinct offerings — HTTP APIs are simpler/cheaper; REST APIs have more features (models, request validation, usage plans in full) +- **WebSocket connections are persistent client-to-gateway only** — backend Lambda functions are invoked per message, not persistently connected +- **Usage plans + API keys** enforce throttling and quotas on REST and WebSocket APIs +- **Mapping templates use VTL** (Velocity Template Language) +- **Models use JSON Schema** and are required for SDK generation but optional for mapping templates +- **Quick create** is HTTP API only — auto-creates a default stage with auto-deploy + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-api-gateway-overview-developer-experiencehtml.md b/entries/2026/03/11/apigateway-latest-developerguide-api-gateway-overview-developer-experiencehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a15052b9e3789a610c2050f9483508ec52b0da00 --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-api-gateway-overview-developer-experiencehtml.md @@ -0,0 +1,42 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-overview-developer-experience.html +source: sources/apigateway-latest-developerguide-api-gateway-overview-developer-experiencehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:47 + + + +## Overview +This page describes the three types of APIs you can create with Amazon API Gateway — REST APIs, HTTP APIs, and WebSocket APIs — along with their use cases, capabilities, and the two developer personas (API developers and app developers) that interact with the service. + +## Key Concepts +- **REST APIs**: Built around resources (logical entities accessed via paths) and methods (HTTP verb + resource path). Frontend uses method requests/responses; backend uses integration requests/responses. +- **HTTP APIs**: Lower latency and lower cost alternative to REST APIs for RESTful workloads. Support Lambda and publicly routable HTTP endpoints as backends. +- **WebSocket APIs**: Bidirectional communication where both client and server can send messages at any time. Designed for real-time use cases. +- **Resources and Methods**: A resource is a path (e.g., `/incomes`); a method is a verb + path (e.g., `POST /incomes`). +- **Integration request/response**: How API Gateway interfaces with the backend — includes data transformation, IAM role/policy config, and response mapping. +- **Two developer personas**: API developers (create/deploy APIs, must have AWS account) and app developers (consume APIs, may not need AWS account). +- **Two service components**: `apigateway` (API management/creation) and `execute-api` (API invocation). + +## Commands and Syntax +- APIs can be created via: API Gateway console, AWS CLI, AWS SDKs, CloudFormation templates, or OpenAPI extensions. +- No specific CLI commands shown on this page; references point to the API references and getting-started guide. + +## Relationships +- **REST vs HTTP APIs**: Detailed comparison covered in "Choose between REST APIs and HTTP APIs" (`http-api-vs-rest.html`). +- **Backend integrations**: DynamoDB (direct integration), Lambda, Amazon Kinesis, HTTP/HTTPS endpoints. +- **Authorization**: HTTP APIs support OpenID Connect and OAuth 2.0; REST/WebSocket APIs can use IAM or Amazon Cognito user pool federation (Amazon, Facebook, Google). +- **Observability**: WebSocket APIs integrate with AWS X-Ray for message tracing. +- **Infrastructure as Code**: CloudFormation and OpenAPI extensions for provisioning. + +## Exam-Relevant Points +- **HTTP APIs are cheaper and lower latency** than REST APIs but have fewer features (no SDK generation, no API documentation via OpenAPI extensions). +- **REST APIs** support SDK generation, API documentation, request/response transformation (body mapping templates), and throttling. +- **WebSocket APIs** are the correct choice for real-time bidirectional communication (chat, dashboards, notifications) — not REST or HTTP APIs. +- **App developers do not need an AWS account** if the API uses third-party federated identity or doesn't require IAM permissions. +- **`apigateway`** = management plane; **`execute-api`** = data plane — this distinction matters for IAM policy actions. +- REST APIs use the **method request → integration request → backend → integration response → method response** flow. + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-api-gateway-set-up-simple-proxyhtml.md b/entries/2026/03/11/apigateway-latest-developerguide-api-gateway-set-up-simple-proxyhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3cbb329d44c12a270d109d058a4a8bab9c8fc31a --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-api-gateway-set-up-simple-proxyhtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-set-up-simple-proxy.html +source: sources/apigateway-latest-developerguide-api-gateway-set-up-simple-proxyhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:48 + + + +## Overview +This page explains how to configure a proxy integration in Amazon API Gateway using a proxy resource. It covers combining a greedy path variable (`{proxy+}`), the `ANY` method, and either HTTP proxy (`HTTP_PROXY`) or Lambda proxy (`AWS_PROXY`) integration types to route requests to backend endpoints with minimal configuration. + +## Key Concepts +- **Proxy resource**: A resource defined with a greedy path variable `{proxy+}` that catches all sub-paths beneath it. +- **Greedy path variable (`{proxy+}`)**: Matches any path segment(s) after the resource prefix, enabling a single resource to handle an entire URL hierarchy. +- **`ANY` method**: A catch-all method that matches any HTTP verb (GET, POST, PUT, DELETE, etc.). +- **HTTP proxy integration (`HTTP_PROXY`)**: Passes the entire request and response between client and backend HTTP endpoint without transformation (passthrough). +- **Lambda proxy integration (`AWS_PROXY`)**: Sends the entire request to a Lambda function using a default mapping template and transforms the Lambda output into an HTTP response. +- **Independence of features**: Greedy path variables, `ANY` methods, and proxy integration types are independent — they can be mixed and matched (e.g., a specific HTTP method on a greedy resource, or a non-proxy integration on a proxy resource). +- **Default Content-Type**: When using proxy integration with passthrough and no content type is specified, API Gateway returns `Content-Type: application/json` by default. +- **Multi-valued headers/query strings**: Supported by HTTP proxy integration. + +## Commands and Syntax +- **Setup steps**: + 1. Create a proxy resource with path `{proxy+}` + 2. Set the `ANY` method on the proxy resource + 3. Integrate with a backend using `HTTP_PROXY` or `AWS_PROXY` integration type + +- **HTTP proxy example**: Integrate `ANY` on `/api/{proxy+}` with backend URL `/site/{proxy}` — a single integration handles all HTTP methods on all sub-paths under `/site/`. + +- **Lambda proxy example**: Integrate `/api/{proxy+}` with a Lambda function — the function receives the full request and can route internally based on path and method. + +## Relationships +- **API Gateway method settings**: Proxy resources are configured via method request settings (`api-gateway-method-settings-method-request`). +- **Lambda integration**: Lambda proxy integration ties directly to AWS Lambda for serverless backends. +- **API Gateway known issues**: Restrictions and limitations apply to both HTTP and Lambda proxy integrations (referenced via `api-gateway-known-issues`). +- **REST API Integration resource**: The integration type values (`HTTP_PROXY`, `AWS_PROXY`) correspond to the `API_Integration` resource in the API Gateway REST API. +- **Related to**: API Gateway REST APIs, Lambda functions, HTTP backends, request/response mapping templates. + +## Exam-Relevant Points +- `HTTP_PROXY` passes requests/responses through without transformation; `AWS_PROXY` applies a default mapping template. +- A single proxy resource with `{proxy+}` and `ANY` can handle an entire API hierarchy with one integration setup. +- Greedy path variables, `ANY` methods, and proxy integration types are **independent features** — know that they don't have to be used together. +- Lambda proxy integration sends the **entire request** to the Lambda function and expects a specific response format. +- Default `Content-Type` is `application/json` when unspecified in proxy integration passthrough. +- HTTP proxy integration supports **multi-valued headers and query strings**. +- Know the distinction: `HTTP_PROXY` = HTTP proxy integration, `AWS_PROXY` = Lambda proxy integration. + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-apigateway-confightml.md b/entries/2026/03/11/apigateway-latest-developerguide-apigateway-confightml.md new file mode 100644 index 0000000000000000000000000000000000000000..3bcc7e6c3692164243c21873ff74e31c8412e038 --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-apigateway-confightml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-config.html +source: sources/apigateway-latest-developerguide-apigateway-confightml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:48 + + + +## Overview +This page describes how to use AWS Config to monitor and record configuration changes to Amazon API Gateway resources. AWS Config tracks changes to API stage and API configuration properties, enables compliance auditing through Config Rules, and sends notifications via SNS when resource configurations change. + +## Key Concepts +- **AWS Config integration** records configuration changes to API Gateway resources for operational troubleshooting, audit, and compliance +- **Two categories of tracked changes**: + - **API stage configuration**: cache cluster settings, throttle settings, access log settings, active deployment + - **API configuration**: endpoint configuration, version, protocol, tags +- **AWS Config Rules** allow defining configuration rules that automatically detect, track, and alert on violations +- **Change-triggered rules** can be authored specifically for API Gateway resources to test against best practices +- AWS Config support for API Gateway is available in **all AWS public regions and AWS GovCloud (US)** +- If AWS Config is already configured to record all resource types, API Gateway resources are recorded automatically + +## Commands and Syntax +- **Supported resource types**: + - `AWS::ApiGatewayV2::Api` — WebSocket and HTTP API + - `AWS::ApiGateway::RestApi` — REST API + - `AWS::ApiGatewayV2::Stage` — WebSocket and HTTP API stage + - `AWS::ApiGateway::Stage` — REST API stage +- **Console lookup procedure**: AWS Config console > Resources > Resource inventory > Filter by `APIGateway` or `APIGatewayV2` resource types > Look up > Select resource ID > View Details +- Setup via AWS Config console or AWS CLI + +## Relationships +- **AWS Config** — the underlying service performing configuration recording and rule evaluation +- **AWS Config Rules** (managed or custom) — evaluate API Gateway resource compliance +- **Amazon SNS** — delivers alerts when resources violate Config Rules +- **Amazon SQS** — can be used as an SNS subscription endpoint for programmatic consumption of alerts +- **API Gateway deployments** — certain property changes (`binaryMediaTypes`, `minimumCompressionSize`, `apiKeySource` on REST APIs; `apiKeySelectionExpression` on V2 APIs) require redeployment to take effect, even though Config will show the change immediately + +## Exam-Relevant Points +- Changing `binaryMediaTypes`, `minimumCompressionSize`, or `apiKeySource` on a REST API, or `apiKeySelectionExpression` on a V2 API, requires **redeployment** — AWS Config will show the attribute change but runtime behavior is unchanged until redeployed +- AWS Config supports **four API Gateway resource types**: RestApi, Stage (REST), Api (V2), and Stage (V2) +- Config Rules can be **managed (predefined)** or **custom-defined** +- Noncompliance alerts flow through **SNS**, with optional **SQS** for programmatic processing +- AWS Config can be scoped to specific resource types or configured to record all regional resources + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-apigateway-control-access-aws-wafhtml.md b/entries/2026/03/11/apigateway-latest-developerguide-apigateway-control-access-aws-wafhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..8a0f24293935248fc8ba65114b4ddca0c84ada82 --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-apigateway-control-access-aws-wafhtml.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-control-access-aws-waf.html +source: sources/apigateway-latest-developerguide-apigateway-control-access-aws-wafhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:48 + + + +## Overview +This page explains how to integrate AWS WAF (Web Application Firewall) with API Gateway REST APIs to protect them from common web exploits such as SQL injection and cross-site scripting (XSS). It covers creating web ACLs, associating them with API stages, and the precedence WAF has over other access control mechanisms. + +## Key Concepts +- **AWS WAF** is a web application firewall that protects APIs from attacks using configurable rules organized into **web access control lists (web ACLs)** +- Web ACL rules can **allow, block, or count** web requests based on defined conditions +- Protects against: SQL injection, XSS, bad bots, content scrapers, excessive request rates +- Rules can match on: IP ranges, CIDR blocks, country/region, HTTP headers, method, query string, URI, request body (first 64 KB only) +- **Rate-based rules** limit requests per client IP in a trailing 5-minute window +- **AWS WAF is evaluated FIRST** — before resource policies, IAM policies, Lambda authorizers, and Cognito authorizers. If WAF blocks, nothing else is evaluated. +- API Gateway requires either an **AWS WAFV2 Regional web ACL** or an **AWS WAF Classic Regional web ACL** +- The WAFV2 web ACL and its resources must be in the **same Region** as the API + +## Commands and Syntax +**Associate WAFV2 web ACL via CLI:** +```bash +aws wafv2 associate-web-acl \ + --web-acl-arn arn:aws:wafv2:{region}:111122223333:regional/webacl/test-cli/a1b2c3d4-... \ + --resource-arn arn:aws:apigateway:{region}::/restapis/4wk1k4onj3/stages/prod +``` + +**Associate WAF Classic Regional via CLI:** +```bash +aws waf-regional associate-web-acl \ + --web-acl-id 'aabc123a-fb4f-4fc6-becb-2b00831cadcf' \ + --resource-arn 'arn:aws:apigateway:{region}::/restapis/4wk1k4onj3/stages/prod' +``` + +**Associate via boto3 (WAFV2):** +```python +wafv2 = boto3.client('wafv2') +wafv2.associate_web_acl( + WebACLArn='arn:aws:wafv2:{region}:...', + ResourceArn='arn:aws:apigateway:{region}::/restapis/{id}/stages/{stage}' +) +``` + +**Resource ARN format for API stage:** `arn:aws:apigateway:{region}::/restapis/{api-id}/stages/{stage-name}` + +## Relationships +- **API Gateway access control chain**: WAF → Resource Policies → IAM Policies → Lambda Authorizers → Cognito Authorizers (WAF evaluated first) +- WAF association is **per API stage**, not per API — different stages can have different web ACLs +- Uses **AWS WAF managed rules** (pre-built rule sets) alongside custom rules +- WAFV2 is the current version; WAF Classic Regional is legacy but still supported + +## Exam-Relevant Points +- **WAF takes precedence over all other API Gateway authorization mechanisms** — this is a critical evaluation order fact +- WAF is associated at the **stage level**, not the API level +- Only **Regional** web ACLs work with API Gateway (not CloudFront-scoped ACLs) +- Request body inspection is limited to the **first 64 KB** +- Rate-based rules use a **5-minute trailing window** per client IP +- WAFV2 web ACL must be in the **same Region** as the API Gateway API + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-apigateway-control-access-to-apihtml.md b/entries/2026/03/11/apigateway-latest-developerguide-apigateway-control-access-to-apihtml.md new file mode 100644 index 0000000000000000000000000000000000000000..466b291173f9be819309d572456e01476472001c --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-apigateway-control-access-to-apihtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-control-access-to-api.html +source: sources/apigateway-latest-developerguide-apigateway-control-access-to-apihtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:49 + + + +## Overview +This page describes the multiple mechanisms API Gateway provides for controlling and managing access to REST APIs, organized into three categories: authentication/authorization, other access control tasks, and usage tracking/limiting. + +## Key Concepts +- **Resource policies** — resource-based policies that allow/deny access from specific source IP addresses or VPC endpoints +- **IAM roles and policies** — control both who can create/manage APIs and who can invoke them; can apply to entire API or individual methods +- **IAM tags** — used with IAM policies for tag-based access control +- **VPC endpoint policies** — IAM resource policies attached to interface VPC endpoints, specifically for securing private APIs +- **Lambda authorizers** — Lambda functions that control access using bearer tokens or request parameters (headers, paths, query strings, stage variables, context variables) +- **Cognito user pools** — customizable authentication/authorization for controlling who can invoke REST API methods +- **CORS** — controls how REST API responds to cross-domain resource requests +- **Client-side SSL certificates** — verify that HTTP requests to your backend originate from API Gateway +- **AWS WAF** — protects APIs from common web exploits +- **Usage plans + API keys** — track and limit usage of API stages and methods per customer + +## Commands and Syntax +No CLI commands or configuration syntax provided on this page — it serves as an index to detailed sub-topics. + +## Relationships +- **IAM** — resource policies, roles/policies, and tags all integrate with IAM +- **Lambda** — Lambda authorizers are Lambda functions invoked by API Gateway +- **Cognito** — user pools serve as an authorizer type for REST APIs +- **VPC** — endpoint policies and resource policies both relate to VPC-based access patterns (private APIs) +- **AWS WAF** — integrates as a web application firewall layer in front of API Gateway +- **CloudFront** — WAF rules often applied via CloudFront distributions fronting API Gateway + +## Exam-Relevant Points +- Three distinct categories: auth/authz mechanisms, other access control, and usage tracking +- **Lambda authorizers** support both token-based (bearer) and request-parameter-based authorization +- **Resource policies** are the mechanism for IP-based or VPC-endpoint-based restrictions +- **IAM roles/policies** can scope to entire API or individual methods +- **Client-side SSL** is for API Gateway → backend verification, not client → API Gateway +- **Usage plans** are paired with **API keys** for throttling and quota enforcement +- **Cognito user pools** and **Lambda authorizers** are the two authorizer types for REST APIs +- **VPC endpoint policies** apply specifically to **private APIs** (not edge-optimized or regional) + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-apigateway-rest-apihtml.md b/entries/2026/03/11/apigateway-latest-developerguide-apigateway-rest-apihtml.md new file mode 100644 index 0000000000000000000000000000000000000000..13b80386be12e1ed29017f181e5b6bb4823d3d2e --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-apigateway-rest-apihtml.md @@ -0,0 +1,37 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-rest-api.html +source: sources/apigateway-latest-developerguide-apigateway-rest-apihtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:49 + + + +## Overview +API Gateway REST APIs are collections of resources and methods integrated with backend HTTP endpoints, Lambda functions, or other AWS services. They follow a synchronous request/response model and API Gateway provides features covering the full API lifecycle from creation to production monitoring. + +## Key Concepts +- **REST API** — a collection of resources and methods in API Gateway +- **Request/response model** — client sends request, service responds synchronously +- **Backend integrations** — HTTP endpoints, Lambda functions, or other AWS services +- **Full lifecycle management** — creation, publishing, optimization, distribution, protection, monitoring + +## Commands and Syntax +No specific commands or syntax on this page (it serves as a topic index). + +## Relationships +- **Lambda** — REST APIs can integrate with Lambda functions as backends +- **CloudWatch** — monitoring REST APIs +- **WAF** — protecting REST APIs +- **CloudFront** — distributing REST APIs +- **API Gateway HTTP APIs** — alternative API type (simpler, cheaper, but fewer features) +- Lifecycle phases link to sub-topics: develop, publish, optimize, distribute, protect, monitor + +## Exam-Relevant Points +- REST APIs use a **synchronous** request/response model +- REST APIs support three backend integration types: **HTTP endpoints, Lambda, and AWS services** +- API Gateway covers the **full API lifecycle** (develop → publish → optimize → distribute → protect → monitor) +- REST APIs are distinct from HTTP APIs and WebSocket APIs in API Gateway + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-api-logginghtml.md b/entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-api-logginghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e35fb078ba978841016e70cfddc1a1614df1075b --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-api-logginghtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-logging.html +source: sources/apigateway-latest-developerguide-apigateway-websocket-api-logginghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:49 + + + +## Overview +This page describes the Amazon CloudWatch metrics available for monitoring AWS API Gateway WebSocket APIs, including the specific metrics tracked, their meanings, and the dimensions available for filtering those metrics. + +## Key Concepts +- WebSocket API monitoring uses CloudWatch metrics with a configuration similar to REST APIs +- Six metrics are available for WebSocket APIs: + - **ConnectCount** — messages sent to the `$connect` route integration + - **MessageCount** — messages sent to/from the client via the WebSocket API + - **IntegrationError** — requests returning 4XX/5XX from the backend integration + - **ClientError** — requests returning 4XX from API Gateway *before* the integration is invoked + - **ExecutionError** — errors occurring when calling the integration + - **IntegrationLatency** — round-trip time from API Gateway sending request to integration and receiving response (suppressed for callbacks and mock integrations) +- Three filtering dimensions: `ApiId`, `ApiId + Stage`, and `ApiId + Method + Resource + Stage` +- **Detailed metrics** (the `ApiId/Method/Resource/Stage` dimension) must be explicitly enabled and incur additional CloudWatch charges + +## Commands and Syntax +- Enable detailed metrics via API Gateway V2 REST API: + - Call `UpdateStage` action, set `detailedMetricsEnabled` to `true` +- Enable detailed metrics via AWS CLI: + - Call `update-stage` command, set `DetailedMetricsEnabled` to `true` + +## Relationships +- **CloudWatch** — metrics are published to and viewed in CloudWatch +- **API Gateway REST API monitoring** — WebSocket API monitoring configuration is similar to REST API monitoring (`monitoring-cloudwatch.html`) +- **API Gateway V2 REST API** — used to enable detailed metrics via `UpdateStage` +- **CloudWatch Pricing** — detailed metrics incur additional costs + +## Exam-Relevant Points +- Detailed per-route metrics are **not enabled by default** — they require explicit opt-in via `detailedMetricsEnabled` +- Enabling detailed metrics incurs **additional CloudWatch charges** +- **IntegrationLatency** is suppressed for callbacks and mock integrations +- **ClientError** counts 4XX responses generated by API Gateway itself (before reaching the integration), while **IntegrationError** counts 4XX/5XX responses from the backend integration +- The `$connect` route has its own dedicated metric (`ConnectCount`) + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-api-overviewhtml.md b/entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-api-overviewhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ab4cce81bc8e2a6e89c693d895335049b6129793 --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-api-overviewhtml.md @@ -0,0 +1,54 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-overview.html +source: sources/apigateway-latest-developerguide-apigateway-websocket-api-overviewhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:49 + + + +## Overview +API Gateway WebSocket APIs provide stateful, two-way communication between client applications and backend services (Lambda, DynamoDB, HTTP endpoints). Unlike REST APIs which follow request-response patterns, WebSocket APIs allow backends to push messages to connected clients. Incoming JSON messages are routed to backend integrations based on configurable route selection expressions. + +## Key Concepts +- **WebSocket API** — stateful frontend supporting bidirectional communication +- **Route** — maps incoming messages to backend integrations; consists of a route key matched against a route selection expression +- **Route selection expression** — API-level attribute (`routeSelectionExpression`) that specifies which JSON property in the message payload determines routing (e.g., `${request.body.action}`) +- **Non-JSON messages** are always directed to the `$default` route +- **Three predefined routes:** + - `$connect` — invoked when a persistent connection is initiated + - `$disconnect` — invoked when client or server disconnects + - `$default` — fallback when no matching route is found or expression can't be evaluated +- **Custom routes** — user-defined routes matched after evaluating the route selection expression +- **`@connections` API** — allows backend services to send POST requests to push data to specific connected clients +- **Binary media types are not supported** for WebSocket APIs (status code 1003) + +## Commands and Syntax +- Route selection expression example: + ``` + routeSelectionExpression: ${request.body.action} + ``` + Routes messages based on the `action` property in the JSON payload. + +- Sending data to clients: + - Define a route response for integration responses + - Use the `@connections` API to POST data to connected clients + +## Relationships +- **Lambda / DynamoDB** — common backend integration targets for WebSocket APIs +- **API Gateway REST APIs** — contrast point; REST is stateless request-response, WebSocket is stateful bidirectional +- **HTTP APIs** — another API Gateway type; WebSocket is distinct from both REST and HTTP APIs +- **Route selection expressions** tie into the broader API Gateway routing and integration model +- **IAM / Authorization** — `$connect` route is where authorization is typically enforced + +## Exam-Relevant Points +- WebSocket connections have a **maximum lifetime of 2 hours** and a **10-minute idle timeout** (status 1001) +- **Binary frames are not supported** — only JSON/text (status 1003 returned for binary) +- The `$default` route handles both unmatched routes and non-JSON messages +- `$connect` is called during connection initiation — this is where auth logic runs +- The `@connections` API enables server-to-client push via POST requests +- Route selection expression is defined at the **API level**, not per-route +- Status code **1009** indicates message too large; **1008** indicates rate limiting (too many requests from a client) + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-apihtml.md b/entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-apihtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c8d76af2207b9dc921412a8ab34c173264c60a44 --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-apihtml.md @@ -0,0 +1,38 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api.html +source: sources/apigateway-latest-developerguide-apigateway-websocket-apihtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:49 + + + +## Overview +API Gateway WebSocket APIs provide bidirectional communication between clients and backend services (HTTP endpoints, Lambda functions, or other AWS services). Unlike REST APIs where clients must initiate every request, WebSocket APIs allow services to push data to clients independently, making them suitable for real-time applications like chat, collaboration platforms, multiplayer games, and financial trading platforms. + +## Key Concepts +- **Bidirectional communication**: Both client→service and service→client messaging without explicit client requests +- **WebSocket routes**: The fundamental building blocks of a WebSocket API, analogous to REST API resources/methods +- **Integration targets**: Backend HTTP endpoints, Lambda functions, or other AWS services +- **Full API lifecycle support**: API Gateway provides creation, development, publishing, protection, and monitoring capabilities for WebSocket APIs +- **Real-time use cases**: Chat apps, collaboration platforms, multiplayer games, financial trading platforms + +## Commands and Syntax +No specific CLI commands or configuration syntax on this page — it serves as a landing/index page pointing to sub-topics for development, publishing, protection, and monitoring. + +## Relationships +- **API Gateway REST vs HTTP vs WebSocket**: WebSocket is one of three API types in API Gateway; differs from REST/HTTP APIs by supporting bidirectional push +- **Lambda integration**: WebSocket routes can invoke Lambda functions (common pattern for chat apps with DynamoDB for connection state) +- **DynamoDB**: Often paired with WebSocket APIs to track connection IDs and session state +- **CloudWatch/Monitoring**: WebSocket APIs support API Gateway's standard monitoring capabilities +- **WAF/Authorization**: WebSocket APIs have their own protection mechanisms (covered under the "Protect" sub-topic) + +## Exam-Relevant Points +- WebSocket APIs are **bidirectional** — services can push to clients without a client request (key differentiator from REST/HTTP APIs) +- WebSocket APIs support integration with **HTTP endpoints, Lambda, and AWS services** +- Common use case pattern: **WebSocket API + Lambda + DynamoDB** for real-time chat +- API Gateway manages the **full lifecycle** of WebSocket APIs (create, publish, protect, monitor) +- Know when to choose WebSocket API vs REST API vs HTTP API: WebSocket is for **persistent connections and real-time push scenarios** + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-apigateway-xrayhtml.md b/entries/2026/03/11/apigateway-latest-developerguide-apigateway-xrayhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5d9dd4e42dbe16ad152f630306fc1afc618956a2 --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-apigateway-xrayhtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-xray.html +source: sources/apigateway-latest-developerguide-apigateway-xrayhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:50 + + + +## Overview +AWS X-Ray integrates with Amazon API Gateway to provide distributed tracing and analysis of user requests as they travel through REST APIs to backend services. It supports all REST API endpoint types (Regional, edge-optimized, and private) and is available in all Regions where X-Ray is supported. + +## Key Concepts +- **End-to-end request tracing**: X-Ray provides visibility across the entire request path, from API Gateway through to downstream/backend services. +- **Latency analysis**: Use X-Ray to identify latency bottlenecks in both the API layer and integrated backend services. +- **Service maps**: Visual representation of request flow and latency across all components. +- **Sampling rules**: Configurable rules that control which requests are recorded and at what rate, based on user-defined criteria. +- **Trace passthrough**: If an upstream service is already being traced, API Gateway passes the trace through automatically — even if X-Ray tracing is not explicitly enabled on the API itself. +- **Endpoint type support**: Works with all three REST API endpoint types: Regional, edge-optimized, and private. + +## Commands and Syntax +- X-Ray tracing is enabled **per API stage**. +- Can be enabled via: + - API Gateway console + - API Gateway REST API + - AWS CLI + +No specific CLI commands are provided on this page; detailed setup is in the linked sub-topic pages. + +## Relationships +- **X-Ray service**: Core dependency — API Gateway acts as an instrumented node in X-Ray traces. +- **API Gateway stages**: Tracing is configured at the stage level, not the API level. +- **Backend integrations**: X-Ray traces extend to downstream services (Lambda, DynamoDB, etc.) that are also X-Ray-instrumented. +- **Upstream callers**: Traces propagate from calling services through API Gateway without requiring explicit enablement (trace passthrough). +- **REST APIs only**: This feature is described for REST APIs specifically (not HTTP APIs or WebSocket APIs). + +## Exam-Relevant Points +- X-Ray tracing is enabled **at the stage level**, not the API level. +- Supports **all three REST API endpoint types**: Regional, edge-optimized, and private. +- **Trace passthrough** works even when X-Ray is not enabled on the API — if the caller is already traced, the trace propagates. +- X-Ray provides **service maps** for visualizing latency across the full request chain. +- **Sampling rules** control cost and volume by specifying which requests to record. +- This applies to **REST APIs** — distinct from HTTP APIs. + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-canary-releasehtml.md b/entries/2026/03/11/apigateway-latest-developerguide-canary-releasehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..48fa07bb1869e7b59c7313733a54db8fde125f5d --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-canary-releasehtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/canary-release.html +source: sources/apigateway-latest-developerguide-canary-releasehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:50 + + + +## Overview +This page explains how to set up canary release deployments in Amazon API Gateway, a strategy that splits API traffic between a stable production version and a new version under test, allowing gradual rollout and validation before full promotion. + +## Key Concepts +- **Canary release** is a deployment strategy where a small percentage of traffic is routed to a new API version while the majority continues hitting the production version. +- Traffic split is **random** and configured via a percentage (0.0–100.0 inclusive). +- The canary is attached to an existing deployment **stage** — the stage represents production, the canary represents the new version. +- Initially, both stage and canary point to the **same API version**; subsequent deployments update the canary. +- Once a canary is enabled on a stage, that stage **cannot be associated with another non-canary deployment** until the canary is disabled and its settings removed. +- After validation, you can **promote** the canary (making it the new production) or **revert** (discarding changes). + +## Commands and Syntax +Canary settings are configured on the stage's `canarySettings` property, which includes: +- **Deployment ID** — initially matches the base version deployment ID +- **`percentTraffic`** — percentage of traffic routed to canary (0.0–100.0) +- **`stageVariableOverrides`** — stage variables specific to canary requests (can override production stage variables) +- **`useStageCache`** — whether canary requests use the stage cache (requires API caching to be enabled on the stage) + +## Relationships +- **CloudWatch Logs**: Canary requests get separate log groups: + - Execution logs: `API-Gateway-Execution-Logs/{rest-api-id}/{stage-name}/Canary` + - Access logs: `{log-group-name}/Canary` + - Production logs use the standard (non-`/Canary`) log groups +- **Stage caching**: When canary and production point to different versions, cache entries are kept **separately**. When they point to the same version, a **single cache key** serves both. +- **Stages and Deployments**: Canary builds on API Gateway's existing stage/deployment model. + +## Exam-Relevant Points +- Canary traffic percentage is configurable between **0.0 and 100.0** inclusive. +- Canary releases produce **separate CloudWatch Logs and metrics** from production — this is how you validate before promoting. +- The canary log group naming convention appends `/Canary` to the standard log group name. +- Stage variables can be **overridden** for canary traffic without affecting production. +- Cache behavior differs based on whether canary and production share the same deployment version (shared key) or different versions (separate keys). +- A stage with an active canary **cannot** be reassociated with a different deployment until the canary is disabled. + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-cloudtrailhtml.md b/entries/2026/03/11/apigateway-latest-developerguide-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e97e9db8a13dc6260e605ae06900ffde32ef0ead --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-cloudtrailhtml.md @@ -0,0 +1,59 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/cloudtrail.html +source: sources/apigateway-latest-developerguide-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:50 + + + +## Overview +This page describes how Amazon API Gateway integrates with AWS CloudTrail to log REST API management calls. CloudTrail captures all API Gateway control-plane operations as management events, enabling auditing of who made requests, from where, and when. + +## Key Concepts +- CloudTrail captures **all REST API calls** to the API Gateway service as management events (control-plane operations) +- **TestInvokeAuthorizer** and **TestInvokeMethod** are **not logged** in CloudTrail +- CloudTrail **Event history** provides 90 days of management events at no charge, viewable/searchable/downloadable +- For retention beyond 90 days, use a **trail** (delivers logs to S3) or **CloudTrail Lake** (SQL-queryable event data store in ORC format) +- Trails created via the console are **multi-Region** by default; CLI allows single-Region trails +- CloudTrail Lake uses **advanced event selectors** to filter which events are ingested into immutable event data stores +- Every log entry includes identity info: root user, IAM Identity Center user, temporary credentials (role/federated), or AWS service +- The `eventSource` for API Gateway events is `apigateway.amazonaws.com` + +## Commands and Syntax +No CLI commands are shown, but the CloudTrail event JSON structure for API Gateway is documented: +```json +{ + "eventVersion": "1.03", + "eventSource": "apigateway.amazonaws.com", + "eventName": "GetResource", + "awsRegion": "us-east-1", + "sourceIPAddress": "203.0.113.11", + "requestParameters": { + "restApiId": "3rbEXAMPLE", + "resourceId": "5tfEXAMPLE", + "template": false + }, + "readOnly": true, + "eventType": "AwsApiCall" +} +``` + +## Relationships +- **CloudTrail** — the underlying audit/logging service +- **S3** — storage target for trail log files (one free copy of management events per trail; S3 storage charges apply) +- **CloudTrail Lake** — alternative to trails for SQL-based querying of events +- **IAM / IAM Identity Center** — identity context recorded in each event +- **API Gateway REST API** — the operations being logged (all actions except TestInvoke*) + +## Exam-Relevant Points +- CloudTrail logs API Gateway **management events by default** — no additional configuration needed +- **TestInvokeAuthorizer and TestInvokeMethod are excluded** from CloudTrail logging +- Event history is **90 days, free, automatic** — trails or Lake needed for longer retention +- Console-created trails are **multi-Region**; CLI-created trails can be single-Region +- CloudTrail Lake stores events in **Apache ORC** columnar format for fast SQL queries +- First copy of management events delivered to S3 via a trail is **free** (S3 storage charges still apply) +- CloudTrail Lake has its own **pricing model** separate from trails + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-getting-started-rest-new-consolehtml.md b/entries/2026/03/11/apigateway-latest-developerguide-getting-started-rest-new-consolehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..923dcfa2171bc90b82ecf10be16fc0c9f30b8eea --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-getting-started-rest-new-consolehtml.md @@ -0,0 +1,62 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-rest-new-console.html +source: sources/apigateway-latest-developerguide-getting-started-rest-new-consolehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:50 + + + +## Overview + +This page provides a step-by-step tutorial for creating a serverless REST API using API Gateway with a Lambda backend via the AWS console. It walks through creating a Lambda function, creating a REST API, setting up a Lambda proxy integration, deploying to a stage, invoking the API, and cleaning up resources. + +## Key Concepts + +- **Serverless REST API** — combines API Gateway (routing) with Lambda (compute) so no servers need to be provisioned or managed +- **Lambda proxy integration** — API Gateway passes the incoming client request directly to the Lambda function without transformation +- **API deployment and stages** — an API must be deployed to a stage (e.g., `Prod`) before clients can invoke it +- **Root resource (`/`)** — the base path of the REST API; methods are attached to resources +- **`ANY` method type** — a catch-all that matches any HTTP method (GET, POST, PUT, DELETE, etc.) +- **Regional endpoint type** — the API is deployed to a specific AWS region (default for new REST APIs) +- **Lambda response format** — the Lambda function must return a response object with `statusCode` and `body` fields to work with proxy integration + +## Commands and Syntax + +**Lambda function (Node.js) for proxy integration:** +```javascript +export const handler = async (event) => { + const response = { + statusCode: 200, + body: JSON.stringify('The API Gateway REST API console is great!'), + }; + return response; +}; +``` + +**Invoke URL format:** +``` +https://{api-id}.execute-api.{region}.amazonaws.com/{stage} +``` +Example: `https://abcd123.execute-api.us-east-2.amazonaws.com/Prod` + +## Relationships + +- **Lambda** — provides the backend compute; function must return API Gateway-compatible response format +- **IAM** — Lambda creates an execution role automatically; must be cleaned up separately +- **CloudWatch Logs** — Lambda automatically creates a log group (`/aws/lambda/{function-name}`) that must be cleaned up separately +- **CloudFormation / SAM** — can automate creation and cleanup of these resources as infrastructure-as-code +- **API Gateway REST API vs HTTP API** — this tutorial covers REST API specifically (not the lighter-weight HTTP API) + +## Exam-Relevant Points + +- Lambda proxy integration passes requests directly to Lambda **without request/response transformation** by API Gateway +- Lambda functions used with proxy integration **must** return responses in a specific format (`statusCode` + `body`) +- REST APIs require explicit **deployment** to a **stage** before they are accessible to clients +- Cleaning up a REST API + Lambda setup requires deleting **four separate resources**: the API, the Lambda function, the CloudWatch log group, and the IAM execution role +- The default API endpoint type is **Regional** +- The `ANY` method type matches all HTTP methods on a resource +- This architecture falls within the **AWS Free Tier** + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-getting-startedhtml.md b/entries/2026/03/11/apigateway-latest-developerguide-getting-startedhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1e11b79d485ec72cf2a358e0029a196145d78a3f --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-getting-startedhtml.md @@ -0,0 +1,65 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started.html +source: sources/apigateway-latest-developerguide-getting-startedhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:51 + + + +## Overview +This page provides a step-by-step getting started tutorial for Amazon API Gateway, walking through creating a serverless API by connecting an HTTP API to an AWS Lambda function backend. The exercise covers creating a Lambda function, creating an HTTP API with Lambda integration, testing the API via browser, and cleaning up resources. + +## Key Concepts +- **HTTP API** — A lightweight, lower-cost API Gateway type designed with minimal features; best for simple use cases like Lambda proxying +- **REST API** — A more feature-rich API Gateway type (covered in a separate tutorial) +- **WebSocket API** — Maintains persistent full-duplex connections with clients; not needed for request/response patterns +- **Lambda integration** — API Gateway routes incoming HTTP requests to a Lambda function and returns the function's response to the client +- **Route** — API Gateway automatically creates a route matching the Lambda function name (e.g., `/my-function`) +- **Stage** — API Gateway creates a default stage during HTTP API setup +- **Invoke URL** — The endpoint URL for calling the API, formatted as `https://{api-id}.execute-api.{region}.amazonaws.com/{route}` +- **Serverless** — No server provisioning or management; Lambda scales automatically from a few requests/day to thousands/second +- Lambda response must conform to API Gateway's expected format (statusCode + body) + +## Commands and Syntax +**Default Lambda function (Node.js):** +```javascript +export const handler = async (event) => { + const response = { + statusCode: 200, + body: JSON.stringify('Hello from Lambda!'), + }; + return response; +}; +``` + +**Invoke URL pattern:** +``` +https://{api-id}.execute-api.{region}.amazonaws.com/my-function +``` + +**Cleanup requires deleting four resources:** +1. HTTP API (API Gateway console) +2. Lambda function (Lambda console) +3. CloudWatch log group (`/aws/lambda/my-function`) +4. IAM execution role (e.g., `my-function-31exxmpl`) + +## Relationships +- **Lambda** — serves as the backend compute for the API +- **IAM** — Lambda execution role is auto-created and must be manually cleaned up +- **CloudWatch Logs** — Lambda automatically creates a log group +- **CloudFormation / SAM** — can automate creation and cleanup of these resources +- **HTTP API integrations** — can also target HTTP endpoints, private VPC resources (e.g., ECS), and AWS services (SQS, Step Functions, Kinesis) +- **Access control, logging, throttling, custom domains** — next-level HTTP API configuration topics + +## Exam-Relevant Points +- HTTP APIs are lower cost than REST APIs but support fewer features +- API Gateway automatically creates a route named after the Lambda function +- The invoke URL format includes the API ID and region: `https://{id}.execute-api.{region}.amazonaws.com` +- Lambda functions integrated with API Gateway must return a response with `statusCode` and `body` +- Cleanup of a Lambda-backed API requires removing four separate resources: the API, the function, the log group, and the IAM role +- HTTP APIs support integrations with Lambda, HTTP endpoints, private VPC resources, and AWS services (SQS, Step Functions, Kinesis) +- This tutorial operates within the AWS Free Tier + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-historyhtml.md b/entries/2026/03/11/apigateway-latest-developerguide-historyhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9df00f8802608b437d37744f3a212cf8a13147b5 --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-historyhtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/history.html +source: sources/apigateway-latest-developerguide-historyhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:51 + +## Overview +This page is the document history / changelog for Amazon API Gateway, tracking all significant feature additions, documentation updates, and service changes from the initial launch through December 2025. + +## Key Concepts +- **API Gateway supports three API types**: REST APIs, HTTP APIs, and WebSocket APIs — each with different feature timelines +- **HTTP APIs** launched in beta (Dec 2019) and reached GA (March 2020) as a lighter-weight alternative to REST APIs +- **WebSocket APIs** launched December 2018 +- **Private APIs** (exposed via interface VPC endpoints, isolated from public internet) launched June 2018 +- **Developer Portals** evolved from serverless applications (2018) to native API Gateway portals (Nov 2025) +- **Response streaming** for REST APIs added November 2025 — progressive payload streaming to clients +- **Dual-stack (IPv4/IPv6) endpoints** supported for all API types since March 2025 +- **SIGv4a** (Signature Version 4a) support for REST APIs added August 2025 +- **Routing rules** for REST APIs with custom domain names added June 2025 — dynamic routing based on headers and URL paths + +## Commands and Syntax +No CLI commands or configuration syntax on this page — it is purely a changelog referencing other documentation pages. + +## Relationships +- **Amazon Bedrock AgentCore Gateway** — REST APIs can be targets (Dec 2025) +- **AWS WAF** — access control integration (Nov 2018) +- **AWS X-Ray** — tracing and latency analysis (Sept 2018) +- **AWS Config** — configuration monitoring (March 2019) +- **Amazon Cognito** — user pool authorizers (July 2016, cross-account April 2018) +- **AWS Lambda** — authorizers, proxy integrations, cross-account integrations +- **CloudWatch** — metrics under `AWS/ApiGateway` namespace, access logging +- **Amazon Data Firehose** — access log destination (Oct 2019) +- **Route 53** — alias records for private APIs, DNS failover for multi-Region (Oct 2022) +- **CloudFormation** — API Gateway V2 resource types (Feb 2019) +- **ACM** — certificate management for custom domains (March 2017) +- **AWS Marketplace** — sell APIs as SaaS via usage plans (Dec 2016) +- **Application Load Balancer** — private integration backend for REST APIs (Nov 2025) + +## Exam-Relevant Points +- **TLS 1.3** support added Feb 2024 for Regional REST APIs, HTTP APIs, and WebSocket APIs +- **Mutual TLS (mTLS)** supported for both REST and HTTP APIs (Sept 2020) +- **Caching**: only GET methods have caching enabled by default when you enable stage caching (Aug 2018 change) +- **Custom domain names for private APIs** added Nov 2024 +- **Account-level throttling**: 10,000 rps steady-state, 5,000 concurrent burst (June 2017) +- **Binary payload support** requires setting `binaryMediaTypes` on the API and `contentHandling` on Integration/IntegrationResponse +- **Usage plans** control client access to API stages with rate limits and quotas +- **Resource policies** enable cross-account access and IP-based restrictions (April 2018) +- **VPC endpoint policies** can restrict access to private APIs (June 2019) +- **Tag-based access control** available for both REST APIs (May 2019) and WebSocket APIs (June 2019) +- **Canary deployments** allow percentage-based traffic splitting on a stage for testing new versions +- **Wildcard custom domain names** supported (Oct 2019 for REST, Aug 2020 for HTTP APIs) +- Feature evolution order: REST APIs (original) → WebSocket APIs (Dec 2018) → HTTP APIs (Dec 2019 beta, March 2020 GA) + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-how-to-custom-domainshtml.md b/entries/2026/03/11/apigateway-latest-developerguide-how-to-custom-domainshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..6ffcf67ee701754a1fcd8adad037bd63d3561831 --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-how-to-custom-domainshtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html +source: sources/apigateway-latest-developerguide-how-to-custom-domainshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:52 + + + +## Overview +API Gateway assigns auto-generated base URLs (`https://api-id.execute-api.region.amazonaws.com/stage`) to deployed APIs. Custom domain names let you replace these with user-friendly URLs (e.g., `https://api.example.com/myservice`) by mapping a registered domain to your API endpoint via DNS and TLS certificates. + +## Key Concepts +- **Default endpoint**: Auto-generated URL with random `api-id`, region, and stage path — can be disabled (returns 403 Forbidden) +- **Custom domain name**: User-friendly hostname mapped to an API endpoint; must be unique within a Region across all AWS accounts +- **Regional vs edge-optimized**: Two endpoint types for custom domains; migration between them is supported, but public-to-private migration is not +- **Wildcard custom domain names** (`*.example.com`): Support unlimited subdomains under one certificate; subdomains route via the wildcard's routing mode by default +- **Wildcard routing control**: Use routing rules with `Host` header matching, or create explicit subdomain entries (e.g., `a.example.com`) to override the wildcard +- **Context variables**: `$context.domainName` and `$context.domainPrefix` identify which domain a client used +- **Cross-account wildcard conflict**: Cannot create `*.example.com` if another account owns `a.example.com` (exception requires AWS Support) +- **Multi-level API mappings**: Require Regional custom domain name + TLS 1.2 security policy + +## Commands and Syntax +No CLI commands on this page. Key configuration requirements: +- **DNS**: Create/update DNS record (Route 53 or third-party) to map custom domain to API Gateway endpoint +- **Certificate**: Must have an ACM certificate (or imported cert if ACM unavailable in the Region); wildcard certs require DNS or email validation +- **Domain name format**: RFC 1035 — max 63 octets per label, 255 octets total + +## Relationships +- **ACM (AWS Certificate Manager)**: Provides SSL/TLS certificates; referenced by ARN. Certificate pinning can break on renewal. +- **Route 53**: Domain registration and DNS routing; supports health checks for DNS failover to API Gateway +- **API Gateway HTTP APIs**: Regional custom domains work with both REST and HTTP APIs (managed via API Gateway V2 APIs) +- **Private APIs**: Separate feature — private custom domain names have their own configuration path +- **Security policies**: Custom domains have configurable TLS versions (e.g., TLS 1.2) +- **API stages**: Connected to custom domains via API mappings with base path routing + +## Exam-Relevant Points +- Custom domain names must be **unique per Region across all AWS accounts** +- An **ACM certificate is required**; if ACM is unavailable in the Region, you must import a certificate manually +- You **can** migrate between edge-optimized and Regional endpoints; you **cannot** migrate public to private custom domains +- The **default endpoint can be disabled** but clients still get 403 (not a connection refusal) +- **Wildcard domains** require ACM-validated certificates (DNS or email validation) +- **Multi-level API mappings** require Regional endpoint + TLS 1.2 +- Wildcard cross-account conflicts: account B cannot create `*.example.com` if account A owns `a.example.com` +- DNS records **must** be configured — without them, requests to the custom domain won't reach API Gateway + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-http-api-vs-resthtml.md b/entries/2026/03/11/apigateway-latest-developerguide-http-api-vs-resthtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2d5d6f966046110fe06c0b5f0eec14653f88c560 --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-http-api-vs-resthtml.md @@ -0,0 +1,54 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-vs-rest.html +source: sources/apigateway-latest-developerguide-http-api-vs-resthtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:52 + + + +## Overview + +This page provides a feature-by-feature comparison between Amazon API Gateway's two RESTful API products: **REST APIs** and **HTTP APIs**. REST APIs offer a comprehensive feature set (API keys, WAF, caching, canary deployments, request validation), while HTTP APIs provide a minimal, lower-cost alternative suitable for simpler use cases like Lambda proxies and basic HTTP proxying. + +## Key Concepts + +- **REST APIs** and **HTTP APIs** are both RESTful — the naming is confusing but "REST API" is the legacy, full-featured product +- **HTTP APIs** are designed for **lower cost** with fewer features +- **Endpoint types**: REST APIs support edge-optimized, regional, and private endpoints; HTTP APIs support only regional +- **Private API endpoints** are exclusive to REST APIs +- **AWS WAF integration** is only available with REST APIs +- **JWT authorizers** are native to HTTP APIs; REST APIs can validate JWTs via Lambda authorizers +- **Resource policies** (resource-based access control) are REST API only +- **API keys and per-client throttling/rate limiting** are REST API only +- **Automatic deployments** are HTTP API only; REST APIs require user-controlled deployments +- **Caching, request validation, canary releases, and mock integrations** are REST API only +- **AWS Cloud Map private integrations** are HTTP API only +- **X-Ray tracing and execution logs** are REST API only + +## Commands and Syntax + +No CLI commands on this page — it is a feature comparison reference. Decision is made at API creation time by choosing the API type. + +## Relationships + +- **Lambda integration**: Both support Lambda, but REST APIs add request/body transformation and request validation +- **CloudWatch**: Both support metrics and access logs; REST APIs add execution logs and Firehose delivery +- **Authorization**: IAM and Lambda authorizers work with both; Cognito works with both (via JWT authorizer on HTTP APIs); resource policies are REST API only +- **WAF**: REST APIs integrate with AWS WAF for web application firewall protection +- **VPC/Private networking**: Both support NLB and ALB private integrations; only HTTP APIs support Cloud Map +- **Custom domains**: Supported by both API types +- **X-Ray**: Only REST APIs support distributed tracing + +## Exam-Relevant Points + +- **Choose REST API when you need**: API keys, per-client throttling, request validation, WAF, private endpoints, caching, canary releases, edge-optimized endpoints, mock integrations, X-Ray tracing +- **Choose HTTP API when you need**: Lower cost, JWT authorizers (native), automatic deployments, AWS Cloud Map integration +- **HTTP APIs do NOT support**: WAF, API keys, caching, request validation, edge-optimized/private endpoints, canary releases, execution logs, X-Ray, resource policies, mock integrations +- **JWT authorization** is native to HTTP APIs but achievable on REST APIs via Lambda authorizers +- **Amazon Cognito** works with HTTP APIs only through the JWT authorizer mechanism +- **Private integrations** differ: REST APIs use NLB/ALB; HTTP APIs use NLB/ALB plus Cloud Map +- **Monitoring gap**: HTTP APIs lack execution logs, Firehose access log delivery, and X-Ray tracing + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-http-apihtml.md b/entries/2026/03/11/apigateway-latest-developerguide-http-apihtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1741e8318753b81b16ab628dde760d95b13e7df8 --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-http-apihtml.md @@ -0,0 +1,39 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api.html +source: sources/apigateway-latest-developerguide-http-apihtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:52 + + + +## Overview +API Gateway HTTP APIs are a lightweight, cost-effective RESTful API product designed with minimal features compared to REST APIs. They route requests to AWS Lambda functions or any routable HTTP endpoint, returning backend responses to clients. + +## Key Concepts +- **HTTP APIs vs REST APIs**: Both are RESTful; HTTP APIs have fewer features but lower price. REST APIs support more features. +- **Backend integrations**: Lambda functions or any routable HTTP endpoint. +- **Authorization**: Built-in support for OpenID Connect and OAuth 2.0. +- **CORS**: Built-in cross-origin resource sharing support (no manual configuration needed). +- **Automatic deployments**: Supported natively. +- **Creation methods**: Console, CLI, APIs, CloudFormation, or SDKs. + +## Commands and Syntax +No specific commands on this page — it serves as a landing page linking to sub-topics (develop, publish, protect, monitor, troubleshoot). + +## Relationships +- **REST APIs**: The alternative, more feature-rich API Gateway product (`http-api-vs-rest`). +- **Lambda**: Primary backend integration target. +- **CloudFormation**: Infrastructure-as-code provisioning for HTTP APIs. +- **OpenID Connect / OAuth 2.0**: Authorization mechanisms. +- **CORS**: Relevant for browser-based API consumers. + +## Exam-Relevant Points +- HTTP APIs are **cheaper** than REST APIs but support **fewer features**. +- HTTP APIs support **OAuth 2.0 and OIDC** natively — REST APIs use different authorization mechanisms (IAM, Cognito authorizers, Lambda authorizers). +- **CORS is built-in** for HTTP APIs (REST APIs require manual configuration). +- HTTP APIs support **automatic deployments**; REST APIs require explicit stage deployments. +- Use HTTP APIs when you need a simple proxy to Lambda or an HTTP backend at lower cost; choose REST APIs when you need features like API keys, request validation, WAF integration, or caching. + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-monitoring-cloudwatchhtml.md b/entries/2026/03/11/apigateway-latest-developerguide-monitoring-cloudwatchhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..97dd71d2c6c58e3d49dd075fae1dbbac1e03187d --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-monitoring-cloudwatchhtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/monitoring-cloudwatch.html +source: sources/apigateway-latest-developerguide-monitoring-cloudwatchhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:52 + + + +## Overview + +API Gateway integrates with Amazon CloudWatch to provide near-real-time monitoring of REST API execution. Metrics are automatically sent to CloudWatch in one-minute periods and retained for 15 months, enabling both real-time monitoring and historical analysis of API performance. + +## Key Concepts + +- **Automatic metric delivery**: API Gateway sends metrics to CloudWatch automatically in **one-minute periods** — no manual setup required. +- **15-month retention**: CloudWatch retains API Gateway metrics for 15 months, supporting long-term trend analysis. +- **IntegrationLatency**: Measures backend responsiveness (time between API Gateway relaying a request to the backend and receiving a response). +- **Latency**: Measures overall API call responsiveness (full round-trip including API Gateway overhead). +- **CacheHitCount / CacheMissCount**: Used to evaluate and optimize API cache performance. + +## Commands and Syntax + +No CLI commands on this page — it serves as a conceptual overview linking to sub-topics for dimensions/metrics details, the API dashboard, and CloudWatch console views. + +## Relationships + +- **CloudWatch**: The metrics backend; all API Gateway metrics flow here. +- **API Gateway Caching**: CacheHitCount/CacheMissCount metrics directly inform cache tuning decisions. +- **API Gateway REST APIs**: These metrics apply specifically to REST API execution (not HTTP APIs or WebSocket APIs, which have their own metric sets). +- **CloudWatch Logs**: Related but distinct — log events (access logs, execution logs) are a separate integration from metrics. + +## Exam-Relevant Points + +- Metrics are sent to CloudWatch **automatically** in **one-minute** intervals — no agent or configuration needed. +- Data is retained for **15 months**. +- Know the difference: **Latency** = full round-trip; **IntegrationLatency** = backend-only time. The delta reveals API Gateway overhead. +- **CacheHitCount + CacheMissCount** are the metrics for evaluating cache effectiveness — a high miss count suggests the cache size or TTL needs adjustment. + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-response-transfer-mode-lambdahtml.md b/entries/2026/03/11/apigateway-latest-developerguide-response-transfer-mode-lambdahtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3131cce5151803b2d0a26a8b6e612601eb0567fa --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-response-transfer-mode-lambdahtml.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/response-transfer-mode-lambda.html +source: sources/apigateway-latest-developerguide-response-transfer-mode-lambdahtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:53 + + + +## Overview + +This page describes how to configure API Gateway Lambda proxy integrations with **response streaming**, which allows Lambda functions to stream partial responses back to clients as they become available, improving time to first byte (TTFB). It covers the required output format, the delimiter protocol, and the differences from standard buffered Lambda proxy integrations. + +## Key Concepts + +- **Response streaming** sends partial Lambda responses to clients as they're produced, rather than waiting for the full response (buffered mode) +- API Gateway uses the **`InvokeWithResponseStream`** Lambda API (not the standard `Invoke` API) for streaming integrations +- The streaming integration URI uses a different API version date and service action path (`/2021-11-15/...response-streaming-invocations`) compared to standard proxy integration +- The **input format** is identical to standard Lambda proxy integration +- The **output format** is different: metadata JSON followed by an 8-null-byte delimiter, then the streamed payload +- The metadata JSON must appear within the **first 16KB** of stream data +- If the function doesn't return `Transfer-Encoding: chunked` or `Content-Length`, API Gateway appends `Transfer-Encoding: chunked` +- If the output doesn't adhere to the required format, API Gateway returns a **500 error** + +## Commands and Syntax + +**Streaming integration URI format:** +``` +arn:aws:apigateway:{region}:lambda:path/2021-11-15/functions/arn:aws:lambda:{region}:{account}:function:{function-name}/response-streaming-invocations +``` + +**Required output format:** +``` +{ + "headers": {"headerName": "headerValue"}, + "multiValueHeaders": {"headerName": ["headerValue", "headerValue2"]}, + "cookies": ["cookie1", "cookie2"], + "statusCode": httpStatusCode +}<8 NULL BYTES>PAYLOAD_STREAM_DATA +``` + +- `headers`, `multiValueHeaders`, `cookies`, `statusCode` are all optional +- Only these four keys are supported in the metadata JSON +- The delimiter is exactly **8 null bytes** between metadata and payload +- If both `headers` and `multiValueHeaders` specify the same key, `multiValueHeaders` values win + +## Relationships + +- **Lambda proxy integration** — streaming mode extends the standard proxy integration pattern with a different invoke API and output format +- **Lambda `InvokeWithResponseStream` API** — the underlying Lambda API that enables streaming +- **Lambda function URLs** — if migrating from function URLs to API Gateway streaming, both input and output formats must be modified +- **API Gateway response transfer mode** — a route-level setting that switches between `Stream` and `Buffered` + +## Exam-Relevant Points + +- Streaming requires **both**: response transfer mode set to `Stream` **and** function code adhering to the required format — any other combination either fails or returns a 500 +- The only valid combination for streaming: `Stream` mode + correct format + `InvokeWithResponseStream` +- Standard buffered proxy integration: `Buffered` mode + standard format + `Invoke` +- Using the correct format with `Buffered` mode + `Invoke` returns headers and status code **but not the response body** +- The delimiter must be **8 null bytes** and must appear within the **first 16KB** of stream data +- The API Gateway console automatically constructs the correct streaming URI + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-rest-api-develophtml.md b/entries/2026/03/11/apigateway-latest-developerguide-rest-api-develophtml.md new file mode 100644 index 0000000000000000000000000000000000000000..431e0ef6c68eb366691bd79ca8ab45ea1d0ce305 --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-rest-api-develophtml.md @@ -0,0 +1,69 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/rest-api-develop.html +source: sources/apigateway-latest-developerguide-rest-api-develophtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:53 + + + +## Overview + +This page explains how to develop REST APIs in Amazon API Gateway by composing programmable entities (Resources, Methods, Integrations, and Responses). It distinguishes between proxy and non-proxy integration patterns, describes the request/response data flow, and surveys additional features like authorization, throttling, and documentation. + +## Key Concepts + +- **REST API structure**: A `RestApi` contains `Resource` entities; each `Resource` has one or more `Method` resources representing client requests. +- **Method**: Represents an incoming request — includes path parameters, headers, query strings, and optionally a body. +- **Integration**: Connects a Method to a backend endpoint URI; forwards the incoming request to the backend. +- **Proxy integration**: API Gateway passes the request as-is to the backend and returns the response unmodified. The backend is responsible for request/response shaping. +- **Non-proxy integration**: API Gateway transforms the request (in the Integration Request) and the response (in the Integration Response) to meet backend or client requirements. +- **MethodResponse**: Represents the response shape returned to the client. You **cannot** modify the body in the method response — body transformations happen in the integration response. +- **IntegrationResponse**: Represents the backend's response; this is where you transform backend response data before returning it to the client. +- **All interactions are synchronous** — client sends a request, API Gateway responds. +- **Access control options**: IAM permissions, Lambda authorizers, Amazon Cognito user pools. +- **Usage plans**: Throttle and meter API requests. +- **DocumentationPart**: Resource for adding API documentation to supported entities. + +## Commands and Syntax + +No specific CLI commands on this page, but execution log format is shown: + +``` +# Key log lines for non-proxy integration (note header transformation): +Method request headers: {x-version=beta} +Endpoint request headers: {app-version=beta} # transformed +Endpoint response body before transformations: # body accessed here +Method response body after transformations: (null) # transformed here + +# Key log lines for proxy integration (no transformation): +Method request headers: {x-version=beta} +Endpoint request headers: { x-version=beta} # passed as-is +``` + +## Relationships + +- **Methods** → links to `how-to-method-settings` +- **Integrations** → links to `how-to-integration-settings` (Lambda proxy, HTTP proxy, AWS service, mock) +- **Access control** → IAM, Lambda authorizers, Cognito user pools +- **Data transformations** → mapping templates (`rest-api-data-transformations`) +- **Request validation** → `api-gateway-method-request-validation` +- **OpenAPI/Swagger** → import/export APIs via OpenAPI definitions +- **Gateway responses** → custom error responses for failed requests +- **CORS** → cross-origin resource sharing configuration +- **Endpoint types** → Edge-optimized, Regional, Private +- **Usage plans** → throttling and quota management + +## Exam-Relevant Points + +- **Proxy vs. non-proxy integration is a critical distinction**: proxy passes everything through unchanged; non-proxy requires explicit mapping templates for transformations. +- **Body transformations happen in Integration Request/Response, NOT in Method Request/Response.** The method response cannot modify the body. +- In non-proxy integration, header names can be remapped (e.g., `x-version` → `app-version`); in proxy integration, headers pass through unchanged. +- Three authorization mechanisms for REST APIs: **IAM permissions**, **Lambda authorizers**, **Cognito user pools**. +- **Usage plans** provide throttling and metering — associated with API keys and stages. +- API Gateway REST APIs are **synchronous** — no async invocation pattern at the API Gateway level. +- REST APIs support **binary media types**, **request validation**, **CORS**, and **OpenAPI import/export**. +- Execution logs show the full request/response lifecycle including integration latency, which is useful for debugging. + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-setting-uphtml.md b/entries/2026/03/11/apigateway-latest-developerguide-setting-uphtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5d4653bcbc54f50363d7249db1acf974ee4b434d --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-setting-uphtml.md @@ -0,0 +1,44 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/setting-up.html +source: sources/apigateway-latest-developerguide-setting-uphtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:53 + + + +## Overview +This page covers the prerequisite setup steps before using Amazon API Gateway for the first time, including creating an AWS account, securing the root user, and establishing administrative access through IAM Identity Center. + +## Key Concepts +- **AWS account root user** — automatically created at sign-up; has unrestricted access to all services and resources in the account +- **Security best practice** — never use the root user for everyday tasks; create a separate administrative user instead +- **IAM Identity Center** (formerly AWS SSO) — the recommended mechanism for creating and managing user access, replacing direct IAM user creation +- **MFA on root user** — explicitly required as a security step before proceeding +- **Least-privilege permissions** — permission sets in IAM Identity Center should follow this principle +- **Group-based access** — users should be assigned to groups, and SSO access granted to the group (not individual users) + +## Commands and Syntax +No CLI commands or API calls on this page — all steps are console-based: +1. Sign up at `https://portal.aws.amazon.com/billing/signup` +2. Enable virtual MFA for root user (console) +3. Enable IAM Identity Center +4. Create an administrative user in IAM Identity Center +5. Create permission sets and assign users to groups + +## Relationships +- **IAM** — root user security, MFA setup +- **IAM Identity Center** — primary mechanism for user provisioning and access management +- **API Gateway** — this is the prerequisite before using API Gateway, but the content is generic AWS account setup (applies to any service) +- **AWS Organizations** — IAM Identity Center requires or works alongside Organizations + +## Exam-Relevant Points +- The root user should only be used for tasks that specifically require root user access +- MFA should be enabled on the root user immediately after account creation +- IAM Identity Center is the current AWS-recommended approach for managing human user access (replaces creating IAM users directly) +- Permission sets should follow least-privilege principles +- Access should be assigned via groups, not directly to individual users +- This setup pattern is identical across all AWS services — not API Gateway-specific + diff --git a/entries/2026/03/11/apigateway-latest-developerguide-welcomehtml.md b/entries/2026/03/11/apigateway-latest-developerguide-welcomehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..96931282076254fb96eb27327503c6182cff0870 --- /dev/null +++ b/entries/2026/03/11/apigateway-latest-developerguide-welcomehtml.md @@ -0,0 +1,54 @@ +--- +source_url: https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html +source: sources/apigateway-latest-developerguide-welcomehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:53 + + + +## Overview + +Amazon API Gateway is a fully managed AWS service for creating, publishing, maintaining, monitoring, and securing REST, HTTP, and WebSocket APIs at any scale. It acts as a "front door" for applications to access backend services (EC2, Lambda, web apps) and handles traffic management, authorization, monitoring, and API version management. Together with AWS Lambda, it forms the app-facing part of the AWS serverless infrastructure. + +## Key Concepts + +- **Three API types supported**: REST APIs, HTTP APIs, and WebSocket APIs +- **REST/HTTP APIs** are HTTP-based, stateless, and implement standard methods (GET, POST, PUT, PATCH, DELETE) +- **WebSocket APIs** are stateful, full-duplex, and route incoming messages based on message content (RFC 6455) +- API Gateway handles up to **hundreds of thousands of concurrent API calls** +- Acts as a **"front door"** pattern — clients hit API Gateway, which proxies to backend services +- Two distinct API versions exist: **V1 API** (REST/WebSocket) and **V2 API** (HTTP APIs) + +## Commands and Syntax + +- Access methods: AWS Management Console, AWS SDKs, CLI, PowerShell, or direct V1/V2 REST APIs +- Console URL: `https://console.aws.amazon.com/apigateway` +- APIs can be defined via **CloudFormation templates** using `AWS::ApiGateway` (V1) and `AWS::ApiGatewayV2` (V2) resource types +- Supports **streamlined proxy integrations** with Lambda and HTTP endpoints + +## Relationships + +- **Lambda**: Forms the serverless compute backend; API Gateway exposes Lambda functions as API methods +- **IAM**: Provides authentication/authorization via IAM policies +- **Cognito**: User pools serve as an authentication mechanism +- **CloudTrail**: Logs API usage and API configuration changes +- **CloudWatch**: Access logging, execution logging, metrics, and alarms +- **AWS WAF**: Protects APIs against common web exploits (SQLi, XSS) +- **X-Ray**: Distributed tracing for performance analysis +- **CloudFormation**: Infrastructure-as-code for API definitions +- **EC2**: One of the backend service targets behind API Gateway + +## Exam-Relevant Points + +- Know the difference: **REST APIs** (V1, more features) vs **HTTP APIs** (V2, lower cost, simpler) vs **WebSocket APIs** (stateful, real-time) +- API Gateway + Lambda = **core AWS serverless pattern** +- Authentication options: **IAM policies**, **Lambda authorizers**, **Cognito user pools** +- **Canary release deployments** enable safe rollout of API changes +- API Gateway supports **custom domain names** +- **WAF integration** is available for API protection +- WebSocket APIs route based on **message content**, not URL path +- API Gateway is a **fully managed** service — no infrastructure to provision + diff --git a/entries/2026/03/11/apigatewayv2-latest-api-reference-api-referencehtml.md b/entries/2026/03/11/apigatewayv2-latest-api-reference-api-referencehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..88a5eb395b5e16d8c75ad30d7e816686655d29ce --- /dev/null +++ b/entries/2026/03/11/apigatewayv2-latest-api-reference-api-referencehtml.md @@ -0,0 +1,38 @@ +--- +source_url: https://docs.aws.amazon.com/apigatewayv2/latest/api-reference/api-reference.html +source: sources/apigatewayv2-latest-api-reference-api-referencehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:54 + + + +## Overview +This is the API reference landing page for Amazon API Gateway's WebSocket and HTTP APIs (also known as API Gateway V2). It serves as the entry point to the programmatic reference documentation for managing WebSocket and HTTP APIs, distinct from the REST API reference. It directs users to the Developer Guide for conceptual understanding. + +## Key Concepts +- **API Gateway V2** is the service designation covering both **WebSocket APIs** and **HTTP APIs** (as opposed to V1/REST APIs). +- WebSocket APIs and HTTP APIs share a common API reference, separate from the REST API reference. +- The API reference provides the programmatic operations for creating, configuring, and managing these API types. +- HTTP APIs are the newer, lower-cost, lower-latency option compared to REST APIs. +- WebSocket APIs enable real-time two-way communication between clients and backends. + +## Commands and Syntax +No specific commands or syntax provided on this landing page. Operations are documented in the linked API reference sections (e.g., `CreateApi`, `CreateRoute`, `CreateIntegration`, `CreateStage`, `CreateDeployment`). + +## Relationships +- **API Gateway Developer Guide** — provides conceptual documentation for how API Gateway works. +- **API Gateway REST API Reference** — the separate V1 reference for REST APIs. +- **CloudFormation `AWS::ApiGatewayV2`** — infrastructure-as-code resource types for provisioning V2 APIs. +- **IAM** — access control for API Gateway operations. +- **Lambda** — common integration target for both HTTP and WebSocket APIs. +- **CloudTrail** — logs API Gateway management API calls. + +## Exam-Relevant Points +- API Gateway has **two distinct API references**: V1 (REST APIs) and V2 (HTTP + WebSocket APIs). Know which is which. +- HTTP APIs and WebSocket APIs are managed through the **same V2 API/SDK namespace** (`apigatewayv2`). +- HTTP APIs are **not the same as REST APIs** — they use a different service endpoint and feature set. +- When using the CLI or SDK, V2 operations use the `apigatewayv2` client, not `apigateway`. + diff --git a/entries/2026/03/11/app-mesh-latest-userguide-logging-using-cloudtrailhtml.md b/entries/2026/03/11/app-mesh-latest-userguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a4148b4ad2b35a6b563efefe1a3b9a6398e6eaf2 --- /dev/null +++ b/entries/2026/03/11/app-mesh-latest-userguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/app-mesh/latest/userguide/logging-using-cloudtrail.html +source: sources/app-mesh-latest-userguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:54 + + + +## Overview + +This page documents how AWS App Mesh integrates with AWS CloudTrail for API call logging. Notably, **App Mesh is being discontinued on September 30, 2026**, with AWS recommending migration to Amazon ECS Service Connect. + +## Key Concepts + +- All App Mesh API calls are captured by CloudTrail as **management events** (control plane operations) +- CloudTrail is automatically active on account creation; **Event history** retains the past **90 days** of management events at no charge +- For retention beyond 90 days, use a **CloudTrail trail** (delivers logs to S3) or **CloudTrail Lake** (SQL-queryable event data store in ORC format) +- Every log entry includes identity information: root user, IAM Identity Center user, temporary credentials (role/federated), or AWS service +- Console-created trails are **multi-Region** by default; CLI-created trails can be single-Region or multi-Region +- One copy of ongoing management events delivered to S3 via trail is free (S3 storage charges still apply) +- CloudTrail Lake stores events in **Apache ORC** columnar format; both ingestion/storage and queries incur costs + +## Commands and Syntax + +No CLI commands shown. The example CloudTrail log entry for `StreamAggregatedResources`: +- `eventSource`: `appmesh.amazonaws.com` +- `eventType`: `AwsServiceEvent` +- `managementEvent`: `true` +- `serviceEventDetails` includes `connectionId`, `nodeArn`, `eventStatus`, `failureReason` + +## Relationships + +- **CloudTrail**: Core dependency for all App Mesh audit logging +- **Amazon S3**: Storage target for trail log files +- **CloudTrail Lake**: Alternative to trails for SQL-based event querying +- **Amazon ECS Service Connect**: Designated replacement for App Mesh after EOL +- **IAM / STS**: Identity context in every logged event (AssumedRole shown in example) + +## Exam-Relevant Points + +- App Mesh reaches **end of support September 30, 2026** — migrate to **ECS Service Connect** +- App Mesh logs **all** control plane operations as management events (logged by default) +- CloudTrail Event history: **90 days**, free, immutable, per-Region +- Multi-Region trails recommended; console-created trails are always multi-Region +- CloudTrail Lake uses **ORC format** and supports **SQL queries** but incurs costs +- First management event trail delivery to S3 is **free** (S3 storage charges apply separately) + diff --git a/entries/2026/03/11/appconfig-latest-userguide-logging-using-cloudtrailhtml.md b/entries/2026/03/11/appconfig-latest-userguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..fb1573ad7c1bf1c7e04d6a265b8b749af969b055 --- /dev/null +++ b/entries/2026/03/11/appconfig-latest-userguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,67 @@ +--- +source_url: https://docs.aws.amazon.com/appconfig/latest/userguide/logging-using-cloudtrail.html +source: sources/appconfig-latest-userguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:54 + + + +## Overview + +This page documents how AWS AppConfig integrates with AWS CloudTrail for API call logging. It covers both management events (control plane operations, logged by default) and data events (data plane operations like `GetLatestConfiguration` and `StartConfigurationSession`, which require explicit configuration and incur additional charges). + +## Key Concepts + +- **CloudTrail integration**: All AppConfig control plane operations are logged as management events automatically +- **Data events**: Data plane operations (`GetLatestConfiguration`, `StartConfigurationSession`) are NOT logged by default — must be explicitly enabled +- **Event history**: Provides 90 days of management events at no charge; for longer retention, use trails or CloudTrail Lake +- **Resource type**: AppConfig data events use `AWS::AppConfig::Configuration` as the `resources.type` value +- **Event source**: AppConfig events use `appconfig.amazonaws.com` as the `eventSource` +- **Identity tracking**: Every log entry records whether the request came from root, IAM user, federated user, IAM Identity Center user, or another AWS service +- **Data events cost extra** beyond standard CloudTrail charges + +## Commands and Syntax + +**CLI — Configure trail to log AppConfig data events:** +```bash +aws cloudtrail put-event-selectors \ + --advanced-event-selectors '[{ + "fieldSelectors": [ + {"field": "eventCategory", "equals": ["Data"]}, + {"field": "resources.type", "equals": ["AWS::AppConfig::Configuration"]} + ] + }]' +``` + +**CLI — Create event data store for data events:** +```bash +aws cloudtrail create-event-data-store --advanced-event-selectors ... +aws cloudtrail update-event-data-store --advanced-event-selectors ... +``` + +**Filterable fields for advanced event selectors:** `readOnly`, `eventName`, `resources.ARN` + +**Console steps:** Data events → Data event type: "AWS AppConfig" → Choose log selector template → Selector name: `AppConfigDataEvents` + +## Relationships + +- **CloudTrail**: Core dependency for all audit logging +- **S3**: Destination for trail log files (one free copy of management events; storage charges apply) +- **CloudTrail Lake**: Alternative to trails; SQL-queryable, ORC-format event data stores +- **CloudWatch Logs**: Can receive AppConfig data event metrics via trail integration +- **IAM**: Identity information in every event ties to IAM users, roles, federated identities +- **AppConfig data plane API**: `StartConfigurationSession` and `GetLatestConfiguration` are the two data APIs logged + +## Exam-Relevant Points + +- AppConfig **management events** are logged by default; **data events are not** — they must be explicitly enabled and cost extra +- The `resources.type` for AppConfig data events is `AWS::AppConfig::Configuration` +- Only **two** data plane APIs are logged: `GetLatestConfiguration` and `StartConfigurationSession` +- CloudTrail Event history retains **90 days** of management events at no charge +- Console-created trails are **multi-Region** by default; CLI-created trails can be single-Region +- `StartConfigurationSession` is categorized as `readOnly: false` and `eventCategory: Data` +- CloudTrail Lake stores events in **Apache ORC** columnar format for SQL-based querying + diff --git a/entries/2026/03/11/appfabric-latest-adminguide-logging-using-cloudtrailhtml.md b/entries/2026/03/11/appfabric-latest-adminguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d43ad872f2603278fdbb2cab456b3b403162d018 --- /dev/null +++ b/entries/2026/03/11/appfabric-latest-adminguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/appfabric/latest/adminguide/logging-using-cloudtrail.html +source: sources/appfabric-latest-adminguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:55 + + + +## Overview +AWS AppFabric integrates with AWS CloudTrail to log all API calls as events. CloudTrail captures calls from both the AppFabric console and programmatic API operations, recording who made requests, from where, and when. Events can be viewed in CloudTrail Event history or delivered continuously to an S3 bucket via a trail. + +## Key Concepts +- **All AppFabric actions are logged** by CloudTrail (e.g., `CreateAppBundle`, `UpdateAppBundle`, `GetAppBundle`) +- CloudTrail is **enabled by default** when you create an AWS account +- A **trail** enables continuous delivery of log files to an S3 bucket; without one, only recent events are viewable in Event history +- Trails created in the console **apply to all AWS Regions** by default +- Log files are **not ordered** — they don't form a sequential stack trace +- Each event includes: **userIdentity**, event time, source IP, user agent, request/response parameters, and region +- The `eventSource` for AppFabric is `appfabric.amazonaws.com` +- Events are categorized as `managementEvent: true` and `eventCategory: "Management"` + +## Commands and Syntax +No CLI commands shown. The example CloudTrail log entry for `CreateAppBundle` shows key fields: +- `eventVersion`: `1.08` +- `eventSource`: `appfabric.amazonaws.com` +- `eventName`: the API action name +- `userIdentity`: includes principal type (e.g., `AssumedRole`), ARN, account ID, session context +- `requestParameters` / `responseElements`: action-specific input/output +- `readOnly`: `false` for mutating operations + +## Relationships +- **CloudTrail** — the underlying audit logging service +- **S3** — destination for continuous log file delivery +- **IAM / STS** — identity information captured in the `userIdentity` element (root, IAM user, assumed role, federated user) +- **SNS** — can be configured for CloudTrail notifications +- **Amazon Cognito** — AppFabric's `idpClientConfiguration` references Cognito endpoints for SAML/OIDC redirects + +## Exam-Relevant Points +- CloudTrail is automatically enabled on all AWS accounts — no manual setup needed to view recent events +- Without a trail, you can only see recent events in Event history; a trail is required for persistent S3 delivery +- Trails default to **multi-region** when created via the console +- The `userIdentity` element distinguishes between root credentials, IAM users, assumed roles, federated users, and AWS service calls +- AppFabric events are **management events** (not data events) +- All AppFabric API actions are logged — there are no unlogged actions + diff --git a/entries/2026/03/11/appflow-latest-userguide-appflow-cloudtrail-logshtml.md b/entries/2026/03/11/appflow-latest-userguide-appflow-cloudtrail-logshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..99dd7a2f130e81ff87cc87a49406d6d04ce27025 --- /dev/null +++ b/entries/2026/03/11/appflow-latest-userguide-appflow-cloudtrail-logshtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/appflow/latest/userguide/appflow-cloudtrail-logs.html +source: sources/appflow-latest-userguide-appflow-cloudtrail-logshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:55 + + + +## Overview +This page describes how Amazon AppFlow integrates with AWS CloudTrail to log all API calls made within the service. CloudTrail captures actions from both the AppFlow console and programmatic API calls, enabling auditing, compliance, and troubleshooting of AppFlow activity. + +## Key Concepts +- **CloudTrail is enabled by default** on every AWS account — no setup required to start capturing events. +- **All AppFlow API actions are logged** by CloudTrail (e.g., `CreateFlow`, `CreateConnectorProfile`, `TagResource`, `DescribeFlows`). +- **Event history** in the CloudTrail console shows recent events without requiring a trail. +- A **trail** must be created for ongoing/persistent log delivery to an S3 bucket. +- Trails created via the console **apply to all AWS Regions** by default. +- **Response elements are not logged** by AppFlow because they may contain sensitive data. +- Each log entry includes **userIdentity** information revealing whether the request used root credentials, IAM user credentials, temporary role/federated credentials, or was made by another AWS service. +- The `eventSource` for AppFlow entries is `appflow.amazonaws.com`. + +## Commands and Syntax +No CLI commands are documented on this page. The example CloudTrail log entry for a `DescribeFlows` call shows the key fields: + +```json +{ + "eventVersion": "1.05", + "userIdentity": { "type": "IAMUser", "arn": "arn:aws:iam::123456789012:user/Alice", ... }, + "eventSource": "appflow.amazonaws.com", + "eventName": "DescribeFlows", + "awsRegion": "us-west-2", + "sourceIPAddress": "198.51.100.1", + "userAgent": "console.amazonaws.com", + "requestParameters": { "flowNames": ["my-flow"] }, + "responseElements": {}, + "eventType": "AwsApiCall" +} +``` + +## Relationships +- **CloudTrail** — the underlying logging service; AppFlow is one of many integrated services. +- **Amazon S3** — destination for CloudTrail log file delivery when a trail is configured. +- **Amazon SNS** — can be configured to send notifications when new CloudTrail logs are delivered. +- **IAM** — userIdentity fields tie events back to IAM users, roles, and federated identities. +- Follows the **standard CloudTrail integration pattern** shared across most AWS services. + +## Exam-Relevant Points +- CloudTrail is automatically enabled on account creation — no manual activation needed. +- AppFlow intentionally omits response elements from logs to protect sensitive data. +- Without a trail, only recent events are viewable in Event history; a trail is needed for long-term retention. +- Trails default to multi-region when created via the console. +- The `userIdentity` element is the key to determining who or what made a request (root, IAM user, role, federated user, or AWS service). + diff --git a/entries/2026/03/11/application-discovery-latest-userguide-logging-using-cloudtrailhtml.md b/entries/2026/03/11/application-discovery-latest-userguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..efb49c74e070bc059d8942a582e40896e1b51b1c --- /dev/null +++ b/entries/2026/03/11/application-discovery-latest-userguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/application-discovery/latest/userguide/logging-using-cloudtrail.html +source: sources/application-discovery-latest-userguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:55 + + + +## Overview +This page documents how AWS Application Discovery Service integrates with AWS CloudTrail for API call logging, monitoring, and auditing. Notably, Application Discovery Service is **no longer open to new customers** — AWS Transform is the recommended replacement. + +## Key Concepts +- **All** Application Discovery Service API calls are captured by CloudTrail as events (console, SDK, and CLI calls) +- CloudTrail is automatically enabled on every AWS account at creation +- Without a trail configured, recent events are still viewable in CloudTrail **Event history** +- A **trail** enables continuous delivery of log events to an S3 bucket and applies to all AWS Regions by default +- The `eventSource` for Application Discovery Service is `discovery.amazonaws.com` +- Log entries include: who made the request, from what IP, when, with what parameters, and whether root/IAM/federated/service credentials were used +- CloudTrail log files are **not ordered** — they are not a sequential stack trace + +## Commands and Syntax +Example API calls that generate CloudTrail entries: +- `CreateTags` +- `DescribeTags` +- `GetDiscoverySummary` + +Key fields in a CloudTrail log entry for this service: +```json +{ + "eventSource": "discovery.amazonaws.com", + "eventName": "DescribeTags", + "userIdentity": { "type": "AssumedRole", ... }, + "sourceIPAddress": "20.22.33.44", + "requestParameters": { "filters": [...] } +} +``` + +## Relationships +- **CloudTrail** — the underlying logging mechanism; all Discovery Service events flow through it +- **S3** — destination for trail log file delivery +- **SNS** — can be configured for CloudTrail notifications +- **IAM** — the `userIdentity` element reveals credential type (root, IAM user, assumed role, federated) +- **AWS Transform** — the successor service replacing Application Discovery Service +- **AWS Migration Hub** — Application Discovery Service was part of the migration toolchain + +## Exam-Relevant Points +- Application Discovery Service is **deprecated for new customers**; AWS Transform is the replacement +- CloudTrail captures **all** API calls for the service — no opt-in required for event recording +- Trails apply to **all Regions** by default when created via the console +- The `userIdentity` element can distinguish between root, IAM user, role-assumed, federated, and service-originated requests +- CloudTrail log files can be aggregated from **multiple Regions and multiple accounts** +- Without a trail, you can only view **recent** events in Event history (not a durable long-term record) + diff --git a/entries/2026/03/11/apprunner-latest-dg-monitor-cthtml.md b/entries/2026/03/11/apprunner-latest-dg-monitor-cthtml.md new file mode 100644 index 0000000000000000000000000000000000000000..4d1fa49cc52ac029e229271ea6d0effb7031b4cb --- /dev/null +++ b/entries/2026/03/11/apprunner-latest-dg-monitor-cthtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/apprunner/latest/dg/monitor-ct.html +source: sources/apprunner-latest-dg-monitor-cthtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:55 + + + +## Overview +This page describes how AWS App Runner integrates with AWS CloudTrail to log API calls. CloudTrail captures all App Runner API actions as events, enabling auditing of who made requests, from where, and when. Events can be viewed in CloudTrail Event history or delivered continuously to an S3 bucket via a trail. + +## Key Concepts +- **CloudTrail is enabled by default** when you create an AWS account — no additional setup needed for basic event history. +- **All App Runner actions are logged** by CloudTrail (e.g., `CreateService`, `DeleteConnection`, `StartDeployment`). +- **Trails** enable continuous delivery of CloudTrail log files to an S3 bucket; by default they apply to all AWS Regions. +- **Security redaction**: Sensitive property values (build commands, start commands, environment variables) are replaced with `HIDDEN_DUE_TO_SECURITY_REASONS` in log entries. +- **Event history** provides access to recent events without configuring a trail. +- **userIdentity** element identifies whether a request was made with root credentials, IAM user credentials, temporary role credentials, or by another AWS service. +- Log files are **not ordered** — they don't represent a sequential stack trace. + +## Commands and Syntax +No CLI commands specific to this page. The integration is automatic. Key CloudTrail log entry fields for App Runner events: +- `eventSource`: `apprunner.amazonaws.com` +- `eventName`: The API action (e.g., `CreateService`) +- `requestParameters`: Input to the API call (with sensitive values redacted) +- `responseElements`: Output of the API call (includes service ARN, status, configuration) +- `eventVersion`: `1.08` +- `readOnly`: `false` for mutating operations + +## Relationships +- **CloudTrail**: Core dependency — provides the logging infrastructure. +- **S3**: Destination for trail log file delivery. +- **SNS**: Can be configured for CloudTrail event notifications. +- **IAM**: userIdentity element ties events to IAM principals (users, roles, federated users). +- **CloudTrail Event History**: Quick-access view without trail configuration. +- **App Runner API**: All documented API actions are captured as CloudTrail events. + +## Exam-Relevant Points +- CloudTrail logs **all** App Runner API calls automatically — no opt-in required. +- Trails created in the console default to **multi-region** logging. +- Sensitive values like build commands, start commands, and environment variables are **redacted** (`HIDDEN_DUE_TO_SECURITY_REASONS`) in CloudTrail logs. +- Without a trail, you can only view **recent** events via Event history. +- CloudTrail log entries include the **source IP address** and **user agent** of the caller. +- The `eventSource` for App Runner is `apprunner.amazonaws.com`. + diff --git a/entries/2026/03/11/appstream2-latest-developerguide-logging-using-cloudtrailhtml.md b/entries/2026/03/11/appstream2-latest-developerguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..238d4dceab28f0c187bacf1970271f5a5328ad40 --- /dev/null +++ b/entries/2026/03/11/appstream2-latest-developerguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,37 @@ +--- +source_url: https://docs.aws.amazon.com/appstream2/latest/developerguide/logging-using-cloudtrail.html +source: sources/appstream2-latest-developerguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:56 + + + +## Overview +This page describes how Amazon WorkSpaces Applications integrates with AWS CloudTrail for API call logging. CloudTrail captures all API calls made to WorkSpaces Applications—from both the console and programmatic access—and records them as events that can be delivered to an S3 bucket or viewed in the CloudTrail Event history. + +## Key Concepts +- **CloudTrail integration**: WorkSpaces Applications API calls are automatically captured by CloudTrail as events +- **Event sources**: Captures calls from both the WorkSpaces Applications console and direct API/SDK calls +- **Trail configuration**: Creating a trail enables continuous delivery of events to an S3 bucket; without a trail, recent events are still viewable in CloudTrail Event history +- **Recorded metadata**: Request details, source IP address, caller identity, and timestamp are all captured + +## Commands and Syntax +No specific CLI commands or configuration syntax are provided on this page. The page references two sub-topics: +- **WorkSpaces Applications Information in CloudTrail** — details on what information is logged +- **Example: WorkSpaces Applications Log File Entries** — sample log entries for reference + +## Relationships +- **AWS CloudTrail**: The core auditing service that captures and stores the events +- **Amazon S3**: Destination for continuous event delivery when a trail is configured +- **IAM**: Caller identity (user, role, or service) is recorded in each event +- **CloudTrail Event history**: Provides console-based access to recent events without requiring a trail + +## Exam-Relevant Points +- CloudTrail captures WorkSpaces Applications API calls **regardless** of whether a trail is configured—Event history always shows recent events +- A **trail** is required for continuous, long-term delivery of events to S3 +- CloudTrail records **who** made the request, **what** was requested, the **source IP**, and **when** it occurred +- This follows the standard CloudTrail integration pattern common across AWS services + diff --git a/entries/2026/03/11/appsync-latest-devguide-aws-appsync-real-time-datahtml.md b/entries/2026/03/11/appsync-latest-devguide-aws-appsync-real-time-datahtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d8d2d30c7a8ee6f2c852d34c56c6132825f27e5c --- /dev/null +++ b/entries/2026/03/11/appsync-latest-devguide-aws-appsync-real-time-datahtml.md @@ -0,0 +1,101 @@ +--- +source_url: https://docs.aws.amazon.com/appsync/latest/devguide/aws-appsync-real-time-data.html +source: sources/appsync-latest-devguide-aws-appsync-real-time-datahtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:56 + + + +## Overview +This page covers AWS AppSync's real-time subscription functionality, which uses WebSocket connections to push live data updates to clients. Subscriptions are triggered by mutations and allow applications to receive automatic notifications when data changes, without polling. As of March 2025, AWS AppSync Events also offers a dedicated PubSub API via WebSockets. + +## Key Concepts +- **Subscriptions are mutation-driven**: They are invoked as a response to a GraphQL mutation — you link subscriptions to mutations using the `@aws_subscribe` directive. +- **Pure WebSockets**: The only supported protocol (MQTT over WebSockets was deprecated January 1, 2022). Supports up to 240 KB payload size. +- **Selection set filtering**: Each client defines its own selection set; the subscription selection set must be a subset of the mutation selection set. Fields not in the subscription selection set are not returned. +- **Return type matching**: The return type of a subscription field must match the return type of the corresponding mutation field. +- **Connection management**: AWS AppSync automatically establishes, maintains, and scales WebSocket connections. Amplify client libraries handle this transparently. +- **Authorization options**: IAM, Lambda, Cognito identity pools, or Cognito user pools can control subscription access at connection time. Resolvers on subscription fields enable fine-grained access control. +- **Argument filtering**: Subscription arguments act as server-side filters — only mutations matching the specified argument values trigger notifications to that subscriber. +- **Null vs. omitted arguments**: Passing `null` explicitly filters for results where the field was not provided. Omitting the argument entirely means no filtering on that field (receive all updates). + +## Commands and Syntax + +**Schema setup — declare subscription entry point:** +```graphql +schema { + query: Query + mutation: Mutation + subscription: Subscription +} +``` + +**Link subscription to mutation with `@aws_subscribe`:** +```graphql +type Subscription { + addedPost: Post @aws_subscribe(mutations: ["addPost"]) + updatedPost: Post @aws_subscribe(mutations: ["updatePost"]) + deletedPost: Post @aws_subscribe(mutations: ["deletePost"]) +} +``` + +**Client subscription query:** +```graphql +subscription NewPostSub { + addedPost { + __typename + version + title + content + author + url + } +} +``` + +**Subscription with argument filtering:** +```graphql +subscription OnUpdateTodo { + onUpdateTodo(id: "a-todo-id") { + description + id + name + when + } +} +``` + +**Null argument (filters for unset values):** +```graphql +subscription MySubscription { + onUpdateTodo(owner: null) { + description + id + name + when + where + } +} +``` + +## Relationships +- **Mutations**: Subscriptions are entirely dependent on mutations — no mutation, no subscription trigger. +- **Data sources**: Works with any AppSync data source (Lambda, DynamoDB, OpenSearch) — the subscription layer is data-source agnostic. +- **Authorization/Authentication**: Ties into AppSync's auth mechanisms (IAM, Cognito, Lambda authorizers) for connection-time and field-level access control. +- **AWS AppSync Events**: New alternative (March 2025) for PubSub patterns that don't need full GraphQL — dedicated WebSocket event API. +- **Amplify client libraries**: Primary client-side integration path for managing subscription connections. +- **CloudWatch**: Pure WebSocket connections provide improved CloudWatch metrics for monitoring. + +## Exam-Relevant Points +- Subscriptions are triggered **only by mutations**, not queries or direct invocations. +- The `@aws_subscribe(mutations: ["..."])` directive accepts an **array** — a single subscription can listen to multiple mutations. +- **Pure WebSockets is the only supported protocol** since January 1, 2022 (MQTT over WebSockets is fully deprecated). +- Maximum payload size with pure WebSockets: **240 KB**. +- Subscription selection set must be a **subset** of the mutation selection set; mismatched fields return `null` or errors. +- Subscription return type **must match** the mutation return type. +- Passing `null` as an argument value **is different from omitting** the argument — `null` filters for records where the field is unset. +- Fine-grained subscription access control requires **attaching resolvers to subscription fields** (not just connection-time auth). + diff --git a/entries/2026/03/11/appsync-latest-devguide-building-a-client-apphtml.md b/entries/2026/03/11/appsync-latest-devguide-building-a-client-apphtml.md new file mode 100644 index 0000000000000000000000000000000000000000..8c3f32b261f71d152b46b02d0b01039dfad37dee --- /dev/null +++ b/entries/2026/03/11/appsync-latest-devguide-building-a-client-apphtml.md @@ -0,0 +1,72 @@ +--- +source_url: https://docs.aws.amazon.com/appsync/latest/devguide/building-a-client-app.html +source: sources/appsync-latest-devguide-building-a-client-apphtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:56 + + + +## Overview +This page describes how to connect a client application to an AWS AppSync GraphQL API using the Amplify v6 client library. It covers installation, configuration, and code generation for JavaScript/React applications, with mentions of cross-platform support for Android, iOS, React Native, and Flutter. + +## Key Concepts +- **Amplify v6 client** is the recommended way to connect to AppSync GraphQL APIs +- Amplify auto-generates **strongly typed client SDKs** from your GraphQL schema +- Supports **real-time data** (subscriptions) and enhanced GraphQL query capabilities +- Configuration requires: endpoint URL, region, default auth mode, and API key +- Configuration can come from a downloaded config file (`aws-exports.js`) or be defined inline +- Code generation produces client helper code in `src/graphql` by default +- Model generation supports multiple targets: Android, iOS, Flutter, JavaScript, TypeScript + +## Commands and Syntax + +**Install Amplify:** +``` +npm install aws-amplify +``` + +**Configure Amplify in code:** +```javascript +import { Amplify } from 'aws-amplify'; +Amplify.configure({ + API: { + GraphQL: { + endpoint: 'https://.appsync-api..amazonaws.com/graphql', + region: 'us-west-2', + defaultAuthMode: 'apiKey', + apiKey: '' + } + } +}); +``` + +**Auto-generate operations from schema:** +``` +npx @aws-amplify/cli codegen add --apiId --region +npx @aws-amplify/cli codegen # re-run after API changes +``` + +**Download schema and generate models:** +``` +aws appsync get-introspection-schema --api-id --region --format SDL schema.graphql +npx @aws-amplify/cli codegen models --model-schema schema.graphql --target [android|ios|flutter|javascript|typescript] --output-dir ./ +``` + +## Relationships +- **AppSync**: This is a client-side integration pattern for AppSync GraphQL APIs +- **Authorization**: Configuration specifies `defaultAuthMode` (e.g., `apiKey`), linking to AppSync auth modes (API key, Cognito, IAM, OIDC) +- **Amplify CLI**: Used for code generation; separate from the Amplify JS library +- **AWS CLI**: Used for `get-introspection-schema` to download the SDL schema +- **DataStore**: Model generation supports Amplify DataStore for offline-capable apps + +## Exam-Relevant Points +- Amplify v6 is the **recommended** client for AppSync (not Apollo or other generic GraphQL clients) +- The `codegen` command regenerates client code after API schema changes — important for keeping types in sync +- Configuration requires **endpoint, region, defaultAuthMode, and apiKey** at minimum for API key auth +- `get-introspection-schema` uses the **AWS CLI** (not Amplify CLI) with `--format SDL` +- Amplify supports real-time data via GraphQL **subscriptions** out of the box +- Prerequisites: npm, AWS CLI, and (for v6) proper authorization mode configuration + diff --git a/entries/2026/03/11/appsync-latest-devguide-cloudtrail-logginghtml.md b/entries/2026/03/11/appsync-latest-devguide-cloudtrail-logginghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..6a8e43a4163d5b9766d5c056dcefa6bdef0217ed --- /dev/null +++ b/entries/2026/03/11/appsync-latest-devguide-cloudtrail-logginghtml.md @@ -0,0 +1,60 @@ +--- +source_url: https://docs.aws.amazon.com/appsync/latest/devguide/cloudtrail-logging.html +source: sources/appsync-latest-devguide-cloudtrail-logginghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:57 + + + +## Overview +This page describes how AWS AppSync integrates with AWS CloudTrail to log API calls. CloudTrail captures both management events (control plane operations like `CreateGraphqlApi`, `CreateDataSource`) and data events (GraphQL query/mutation/subscription operations) for auditing and compliance purposes. + +## Key Concepts +- **CloudTrail is enabled by default** on all AWS accounts; recent events are viewable in Event History without creating a trail +- **Management events** (control plane API calls like `CreateApiKey`, `ListApiKeys`, `DeleteApiKey`) are logged automatically +- **Data events** (GraphQL operations) are **not logged by default** — must be explicitly enabled and incur additional charges +- Data events cover the resource type `AWS::AppSync::GraphQLApi` and log query, mutation, subscription, and WebSocket connect operations +- **WebSocket messages sent over real-time endpoints are NOT logged** as data events — only the connect operation is +- The `requestID` in AppSync CloudTrail logs is **not authoritative** — it can be overwritten by the client; do not rely on it for unique identification +- Each log entry includes: `userIdentity`, `eventSource` (`appsync.amazonaws.com`), `eventName`, `sourceIPAddress`, `awsRegion`, and request/response details +- Trails apply to **all AWS Regions** by default when created via console +- **Field-level authorization results** are included in GraphQL data events via `additionalEventData.fieldAuthorizationResults` showing `allowedFields` and `deniedFields` + +## Commands and Syntax +**Advanced event selector to filter data events for a specific AppSync API:** +```json +[ + { + "name": "Only 1 AppSync API", + "fieldSelectors": [ + { "field": "eventCategory", "equals": ["Data"] }, + { "field": "resources.type", "equals": ["AWS::AppSync::GraphQLApi"] }, + { "field": "resources.ARN", "equals": ["arn:aws:appsync:us-east-1:111122223333:apis/YourGraphQLApiId"] } + ] + } +] +``` + +**Filterable fields for advanced event selectors:** `eventName`, `readOnly`, `resources.ARN` + +## Relationships +- **CloudTrail** — the underlying logging service; trails deliver logs to S3 +- **IAM** — `userIdentity` element reveals whether requests used root, IAM user, assumed role, or federated credentials +- **S3** — destination for CloudTrail log files +- **SNS** — can be configured for CloudTrail notifications +- **Lambda authorizers** — authorization type (`AWS_LAMBDA`, `AWS_IAM`) and denied fields are captured in data events +- **CloudWatch Logs** — CloudTrail can also send events to CloudWatch Logs for monitoring + +## Exam-Relevant Points +- AppSync data events (GraphQL operations) require **explicit enablement** in CloudTrail and cost extra — they are NOT logged by default +- The resource type for data event filtering is `AWS::AppSync::GraphQLApi` +- Real-time WebSocket **connect** operations are logged; **messages over WebSocket are not** +- The `requestID` field is **unreliable** in AppSync logs (client can overwrite it) +- Failed authorization attempts produce `errorCode: "AccessDenied"` with `UnauthorizedException` in the log +- Partially authorized requests show specific denied fields in `fieldAuthorizationResults.deniedFields` with full field ARNs +- The `eventCategory` for data events is `"Data"` and `managementEvent` is `false` +- Auth type information (`AWS_IAM`, `AWS_LAMBDA`) appears in `additionalEventData.authType` + diff --git a/entries/2026/03/11/appsync-latest-devguide-quickstarthtml.md b/entries/2026/03/11/appsync-latest-devguide-quickstarthtml.md new file mode 100644 index 0000000000000000000000000000000000000000..8811deec8af6028a806fbeee27ffa6d1e03ccd1a --- /dev/null +++ b/entries/2026/03/11/appsync-latest-devguide-quickstarthtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/appsync/latest/devguide/quickstart.html +source: sources/appsync-latest-devguide-quickstarthtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:57 + + + +## Overview + +This page introduces the process of creating a first GraphQL API using the AWS AppSync console. It explains the three core components required (schema, data sources, resolvers) and outlines the different methods available for API creation, including console-based and non-console options. + +## Key Concepts + +- **GraphQL Schema**: Blueprint of the API defining types and fields for operations. Must be connected to data sources to populate with data. +- **Data Sources**: Resources containing data for the API — can be DynamoDB tables, Lambda functions, and others. Linked to schema fields via resolvers. +- **Resolvers**: Link schema fields to data sources; retrieve and return data. Support both **JavaScript** and **VTL** (Velocity Template Language). +- AppSync console offers five creation methods: predefined model with DynamoDB, blank schema, import from existing DynamoDB table, WebSocket/Pub-Sub real-time APIs, and Merged API from existing source APIs. +- Non-console creation options: **AWS Amplify**, **AWS SAM**, **CloudFormation**, **CDK**. + +## Commands and Syntax + +No CLI commands or code syntax on this page — it is a conceptual overview pointing to sub-pages for hands-on steps: +1. Launch a schema (predefined model) +2. Tour the AppSync console +3. Use GraphQL **mutations** to write data to DynamoDB +4. Use GraphQL **queries** to read data from DynamoDB + +## Relationships + +- **DynamoDB** is the default data source in the quickstart flow. +- **Lambda** is an alternative data source for more complex logic. +- **Resolvers** bridge schemas and data sources — deeper coverage in the resolver reference pages (JS and VTL). +- **Amplify, SAM, CloudFormation, CDK** are IaC alternatives to console-based setup. +- **Merged API** pattern connects to multi-team/federated API architectures. +- Real-time APIs relate to AppSync's **WebSocket** and **Pub/Sub** capabilities. + +## Exam-Relevant Points + +- Three required components of an AppSync GraphQL API: **schema, data sources, resolvers**. +- Resolvers support **two languages**: JavaScript and VTL. +- AppSync supports multiple data source types (DynamoDB, Lambda, etc.) — not limited to one. +- Four non-console provisioning methods: Amplify, SAM, CloudFormation, CDK. +- Merged API is an AppSync feature for combining multiple source APIs into one endpoint. + diff --git a/entries/2026/03/11/appsync-latest-devguide-resolver-mapping-template-referencehtml.md b/entries/2026/03/11/appsync-latest-devguide-resolver-mapping-template-referencehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..668a36f309bc4b4cd967c5652b6911f59025b170 --- /dev/null +++ b/entries/2026/03/11/appsync-latest-devguide-resolver-mapping-template-referencehtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/appsync/latest/devguide/resolver-mapping-template-reference.html +source: sources/appsync-latest-devguide-resolver-mapping-template-referencehtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:57 + + + +## Overview +This page serves as an index/reference hub for AWS AppSync resolver mapping templates using VTL (Velocity Template Language). It lists the sub-topics covering how resolvers interact with various data sources. Notably, AWS now primarily supports the APPSYNC_JS runtime over VTL. + +## Key Concepts +- **Resolver mapping templates** define how AppSync resolvers transform GraphQL requests into data source calls and responses back to GraphQL +- **VTL (Velocity Template Language)** is the legacy templating language for AppSync resolvers +- **APPSYNC_JS runtime** is the newer, preferred runtime replacing VTL for resolver logic +- AppSync resolvers can connect to multiple data source types: DynamoDB, RDS, OpenSearch, Lambda, EventBridge, HTTP endpoints, and None (local/pass-through) +- The **context map** is a key construct passed through resolver execution containing request, arguments, and identity information +- **Utility functions** are available to simplify common operations within templates + +## Commands and Syntax +No specific commands or syntax on this index page — each linked sub-page covers data-source-specific template formats. + +## Relationships +- **DynamoDB**: Resolvers can directly read/write DynamoDB tables +- **Lambda**: Resolvers can invoke Lambda functions as data sources +- **RDS**: Resolvers can execute SQL against RDS databases +- **OpenSearch**: Resolvers can query OpenSearch Service domains +- **EventBridge**: Resolvers can publish events to EventBridge +- **HTTP**: Resolvers can call arbitrary HTTP endpoints +- **None data source**: Used for local operations (e.g., pub/sub with subscriptions, no backend call) +- Superseded by **APPSYNC_JS** runtime (JavaScript-based resolvers) + +## Exam-Relevant Points +- AWS recommends **APPSYNC_JS over VTL** for new resolver development +- AppSync supports **seven data source types** for resolvers: DynamoDB, RDS, OpenSearch, Lambda, EventBridge, HTTP, and None +- The **None data source** is used for local resolvers (commonly for subscriptions or pass-through operations) +- Understanding which data source type to use for a given integration pattern is key (e.g., Lambda for custom logic, DynamoDB for direct table access) + diff --git a/entries/2026/03/11/appsync-latest-devguide-resolver-reference-js-versionhtml.md b/entries/2026/03/11/appsync-latest-devguide-resolver-reference-js-versionhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e4b14ca0f6f0023bd34cab5fcdf54fcefcea848e --- /dev/null +++ b/entries/2026/03/11/appsync-latest-devguide-resolver-reference-js-versionhtml.md @@ -0,0 +1,40 @@ +--- +source_url: https://docs.aws.amazon.com/appsync/latest/devguide/resolver-reference-js-version.html +source: sources/appsync-latest-devguide-resolver-reference-js-versionhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:57 + + + +## Overview +This page serves as a table of contents for the AWS AppSync JavaScript (`APPSYNC_JS`) resolver reference documentation. It links to detailed sub-pages covering how JavaScript resolvers work with various AWS data sources. + +## Key Concepts +- **APPSYNC_JS runtime**: The JavaScript runtime environment used to write AppSync resolvers and pipeline functions. +- **Resolver context object**: A structured object (`context` / `ctx`) passed to resolvers containing request info, arguments, identity, and stash. +- **Data source-specific resolver functions**: Each supported data source (DynamoDB, Lambda, RDS, etc.) has its own request/response mapping pattern. +- **Supported data sources for JS resolvers**: DynamoDB, OpenSearch, Lambda, EventBridge, None, HTTP, Amazon RDS, Amazon Bedrock. +- **None data source**: A pass-through data source useful for local resolvers that don't call an external service (e.g., pub/sub, local transformations). + +## Commands and Syntax +No commands or code samples on this index page — each linked sub-page contains data-source-specific request/response examples. + +## Relationships +- **DynamoDB**: JS resolvers replace VTL mapping templates for CRUD operations against DynamoDB tables. +- **Lambda**: Resolvers can invoke Lambda functions as a compute backend. +- **EventBridge**: Resolvers can publish events to EventBridge buses. +- **HTTP**: Resolvers can call arbitrary HTTP endpoints (including other AWS services via SigV4). +- **RDS**: Resolvers interact with Aurora Serverless via the Data API. +- **Bedrock**: Resolvers can invoke foundation models directly from AppSync. +- **OpenSearch**: Resolvers can query OpenSearch Service domains. +- Connects to the broader **AppSync GraphQL API** and **pipeline resolver** architecture. + +## Exam-Relevant Points +- The `APPSYNC_JS` runtime is the modern alternative to VTL (Velocity Template Language) mapping templates. +- Know the full list of supported JS resolver data sources: **DynamoDB, OpenSearch, Lambda, EventBridge, None, HTTP, RDS, Bedrock**. +- The **context object** is central to all resolver logic — it carries `arguments`, `source`, `identity`, `stash`, and `result`. +- The **None** data source is used for local operations without calling an external service. + diff --git a/entries/2026/03/11/appsync-latest-devguide-tutorials-jshtml.md b/entries/2026/03/11/appsync-latest-devguide-tutorials-jshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..53766d56159c7ac2eb8218c8065732c82a876890 --- /dev/null +++ b/entries/2026/03/11/appsync-latest-devguide-tutorials-jshtml.md @@ -0,0 +1,54 @@ +--- +source_url: https://docs.aws.amazon.com/appsync/latest/devguide/tutorials-js.html +source: sources/appsync-latest-devguide-tutorials-jshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:58 + + + +## Overview + +This page serves as an index/landing page for AWS AppSync JavaScript resolver tutorials, listing the supported data source types and linking to individual tutorials for each resolver pattern. + +## Key Concepts + +- AWS AppSync uses **data sources** and **resolvers** to translate GraphQL requests into calls to AWS resources +- AppSync supports automatic provisioning and connections for certain data source types +- Supported data source types: **Lambda**, **DynamoDB**, **relational databases (Aurora Serverless)**, **OpenSearch Service**, and **HTTP endpoints** +- Resolvers can be written in **JavaScript** (as opposed to the older VTL approach) +- You can use existing AWS resources or build data sources/resolvers from scratch + +## Commands and Syntax + +No commands or syntax on this page — it is a tutorial index linking to: + +1. DynamoDB JavaScript resolvers (simple post app) +2. Lambda resolvers +3. Local resolvers (no external data source) +4. Combining GraphQL resolvers (pipeline/composition patterns) +5. OpenSearch Service resolvers +6. DynamoDB transactions +7. DynamoDB batch operations +8. HTTP resolvers (arbitrary HTTP endpoints) +9. Aurora PostgreSQL with Data API + +## Relationships + +- **DynamoDB**: Primary NoSQL data source, with dedicated tutorials for CRUD, transactions, and batch operations +- **Lambda**: Enables arbitrary compute logic as a resolver backend +- **Aurora Serverless (PostgreSQL)**: Relational database integration via Data API +- **OpenSearch Service**: Full-text search and analytics data source +- **HTTP resolvers**: Integration with any HTTP endpoint (REST APIs, third-party services) +- **Local resolvers**: Execute without a data source — useful for pub/sub or client-side logic + +## Exam-Relevant Points + +- Know the **five data source types** AppSync supports: Lambda, DynamoDB, Aurora Serverless (RDS Data API), OpenSearch Service, HTTP endpoints +- Local resolvers require **no data source** — important distinction from other resolver types +- AppSync supports both **VTL** and **JavaScript** runtime for resolvers; this page covers the JS runtime +- DynamoDB has three distinct resolver patterns: standard CRUD, **transactions**, and **batch operations** +- Aurora integration specifically uses the **Data API** (not direct database connections) + diff --git a/entries/2026/03/11/appsync-latest-devguide-tutorialshtml.md b/entries/2026/03/11/appsync-latest-devguide-tutorialshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..cc5531ae871284bd87873d8726dfaa81e05a36fe --- /dev/null +++ b/entries/2026/03/11/appsync-latest-devguide-tutorialshtml.md @@ -0,0 +1,44 @@ +--- +source_url: https://docs.aws.amazon.com/appsync/latest/devguide/tutorials.html +source: sources/appsync-latest-devguide-tutorialshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:58 + + + +## Overview +This page introduces VTL (Velocity Template Language) resolver tutorials for AWS AppSync, covering how resolvers and data sources translate GraphQL requests into operations against AWS resources. It serves as a hub linking to specific tutorials for different data source types, while noting that the APPSYNC_JS runtime is now the preferred approach. + +## Key Concepts +- **Resolvers** translate GraphQL requests and fetch information from AWS resources +- **Mapping templates** are written in Apache Velocity Template Language (VTL) — now considered legacy in favor of APPSYNC_JS runtime +- **Supported data sources**: AWS Lambda, Amazon DynamoDB, Amazon Aurora Serverless (relational), Amazon OpenSearch Service, HTTP endpoints +- AppSync supports **automatic provisioning** of DynamoDB tables from a GraphQL schema +- Existing DynamoDB tables can be **imported**, auto-generating schema and connecting resolvers + +## Commands and Syntax +No specific commands on this page — it is a tutorial index. Key referenced resources: +- Resolver mapping template reference (VTL syntax) +- Resolver mapping template programming guide (VTL programming patterns) + +## Relationships +- **DynamoDB**: Multiple tutorials — simple CRUD, batch operations, transactions, delta sync +- **Lambda**: General-purpose compute resolver for custom logic +- **OpenSearch Service**: Full-text search capabilities +- **Aurora Serverless v2**: Relational database access from GraphQL +- **HTTP resolvers**: Connect to arbitrary HTTP endpoints +- **Pipeline resolvers**: Chain multiple resolver functions sequentially +- **Local resolvers**: Resolve without a data source (useful for pub/sub, mocking) +- **APPSYNC_JS runtime**: The successor to VTL resolvers — migration recommended + +## Exam-Relevant Points +- VTL resolvers are **legacy**; APPSYNC_JS is the current recommended runtime +- AppSync supports **five data source types**: Lambda, DynamoDB, Aurora Serverless, OpenSearch Service, HTTP +- DynamoDB tables can be **auto-provisioned from a GraphQL schema** or **imported from existing tables** +- **Pipeline resolvers** allow chaining multiple operations in sequence +- **Delta Sync** operates on versioned data sources for efficient client synchronization +- **Local resolvers** require no external data source — used for operations like local pub/sub + diff --git a/entries/2026/03/11/appsync-latest-devguide-what-is-appsynchtml.md b/entries/2026/03/11/appsync-latest-devguide-what-is-appsynchtml.md new file mode 100644 index 0000000000000000000000000000000000000000..44b9c65211e7cabb9926d03b3f750278f78f9742 --- /dev/null +++ b/entries/2026/03/11/appsync-latest-devguide-what-is-appsynchtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/appsync/latest/devguide/what-is-appsync.html +source: sources/appsync-latest-devguide-what-is-appsynchtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:58 + + + +## Overview +AWS AppSync is a managed service that provides serverless GraphQL and Pub/Sub APIs, enabling applications to connect to multiple data sources through a single endpoint. It supports real-time data updates via WebSockets, built-in security, caching, and pay-per-request pricing. + +## Key Concepts +- **GraphQL API**: Single endpoint to access data from one or more data sources +- **Merged APIs**: Combine multiple source GraphQL APIs into a single federated API +- **Real-time updates**: Pub/Sub via serverless WebSockets (GraphQL subscriptions and pub/sub channels) +- **AppSync Events**: Dedicated real-time PubSub API powered by WebSockets (launched Mar 2025) +- **Resolver runtimes**: Supports both JavaScript/TypeScript and VTL (Velocity Template Language) for business logic +- **Server-side caching**: Optional in-memory caches for low-latency data access +- **Authorization models**: API keys, IAM, Amazon Cognito, OpenID Connect, Lambda custom authorizers +- **Private APIs**: Restrict API access for enterprise security; integrates with AWS WAF +- **Pricing**: Per million requests/updates + optional caching fee; auth failures and invalid API key calls are **not charged** + +## Commands and Syntax +No CLI commands on this page. Key entry points for new users: +- **Quickstart**: Creating first GraphQL API in AppSync console +- **Client apps**: Built using Amplify client libraries +- **Resolvers**: Written in JavaScript/TypeScript or VTL + +## Relationships +- **AWS Amplify**: Frontend framework that leverages AppSync as its data layer for web/mobile apps +- **AWS WAF**: Integrates for API protection and rate limiting +- **Amazon Cognito**: Identity provider for user-pool-based authorization +- **IAM**: Role-based access control for API operations +- **Data sources**: DynamoDB, Lambda, RDS, HTTP endpoints, OpenSearch (referenced in broader docs) + +## Exam-Relevant Points +- AppSync is **serverless** — no infrastructure to manage +- Supports **six authorization modes**: API key, IAM, Cognito User Pools, OIDC, Lambda, and (implicitly) multiple auth on a single API +- **Merged APIs** enable federated GraphQL architectures across teams +- Auth/authn failures and invalid API key calls are **not billed** +- Real-time is delivered via **WebSocket-based subscriptions**, not polling +- JavaScript/TypeScript resolvers are the modern path; VTL is legacy but still supported +- AppSync Events is a distinct feature for pure Pub/Sub (not GraphQL) + diff --git a/entries/2026/03/11/appsync-latest-eventapi-publish-websockethtml.md b/entries/2026/03/11/appsync-latest-eventapi-publish-websockethtml.md new file mode 100644 index 0000000000000000000000000000000000000000..15134371f789eebd37169bb3ebacde83f0b97461 --- /dev/null +++ b/entries/2026/03/11/appsync-latest-eventapi-publish-websockethtml.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/appsync/latest/eventapi/publish-websocket.html +source: sources/appsync-latest-eventapi-publish-websockethtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:58 + + + +## Overview +This page describes how to publish events through AWS AppSync Events using the WebSocket endpoint, including the connection process, message format, authorization, and batch publishing capabilities. + +## Key Concepts +- Publishing uses the WebSocket endpoint at `wss://WS_DOMAIN/event/realtime` +- A publish message requires: a unique ID, target channel, list of events, and authorization headers +- Events are sent as stringified valid JSON values +- Maximum of **5 events per batch** publish request +- You do **not** need to subscribe to a channel before publishing to it +- Every publish receives an acknowledgement message +- The WebSocket subprotocol is `aws-appsync-event-ws` + +## Commands and Syntax +**Publish message structure:** +```json +{ + "id": "uniqueID", + "type": "publish", + "channel": "/default/channel", + "events": [ + "{\"message\":\"hello world\"}", + "{\"number\":42}" + ], + "authorization": { "x-api-key": "your key" } +} +``` + +**Connection protocol header encoding:** +- Base64-encode the authorization JSON +- Replace `+` with `-`, `/` with `_`, strip trailing `=` (URL-safe base64) +- Prefix with `header-` + +**WebSocket connection:** +```js +new WebSocket(`wss://${REALTIME_DOMAIN}/event/realtime`, [ + 'aws-appsync-event-ws', + getAuthProtocol(), +]) +``` + +## Relationships +- **WebSocket protocol**: Full protocol details covered in the Event API WebSocket protocol docs +- **Authorization**: Supports multiple auth types (API key shown here); configured via AppSync Event API auth settings +- **AppSync Events**: This is the publish side; subscribing is handled separately +- **Channels**: Publishing targets named channels (e.g., `/default/channel`) + +## Exam-Relevant Points +- Batch limit is **5 events per publish** request +- Events must be **stringified valid JSON** +- **No subscription required** before publishing +- Authorization is passed both in the WebSocket protocol header (at connection time) and in the publish message itself +- The protocol header uses **URL-safe base64** encoding + diff --git a/entries/2026/03/11/artifact-latest-ug-cloudtrail-logginghtml.md b/entries/2026/03/11/artifact-latest-ug-cloudtrail-logginghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..71ad5bd600d4fae875b029431917400c5f4abaea --- /dev/null +++ b/entries/2026/03/11/artifact-latest-ug-cloudtrail-logginghtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/artifact/latest/ug/cloudtrail-logging.html +source: sources/artifact-latest-ug-cloudtrail-logginghtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:58 + + + +## Overview +This page describes how AWS Artifact integrates with AWS CloudTrail to log API calls. CloudTrail captures all AWS Artifact API activity as events, enabling auditing of who accessed compliance reports and agreements, from where, and when. + +## Key Concepts +- **AWS Artifact** is the service for accessing AWS compliance reports and agreements (SOC, PCI, ISO, etc.) +- CloudTrail is **automatically enabled** on account creation — no setup required for basic event history +- Without a trail, you can view recent events in **Event history** in the CloudTrail console +- A **trail** enables continuous delivery of log files to an S3 bucket and applies to **all AWS Regions** by default +- Every log entry includes **userIdentity** information identifying whether the request used root credentials, IAM user credentials, temporary role credentials, or was made by another AWS service +- Log files are **not ordered** — they don't form a sequential stack trace +- The `eventSource` for Artifact events is `artifact.amazonaws.com` + +## Commands and Syntax +**Logged API actions** (14 total): +- **Reports**: `ListReports`, `GetReportMetadata`, `GetReport` +- **Account**: `GetAccountSettings`, `PutAccountSettings` +- **Agreements**: `AcceptAgreement`, `AcceptNdaForAgreement`, `GetAgreement`, `GetCustomerAgreement`, `GetNdaForAgreement`, `GetTermForReport`, `ListAgreements`, `ListCustomerAgreements`, `TerminateAgreement` + +**Example log entry structure** (key fields): +```json +{ + "eventSource": "artifact.amazonaws.com", + "eventName": "GetReportMetadata", + "eventType": "AwsApiCall", + "userIdentity": { "type": "IAMUser", "userName": "..." }, + "sourceIPAddress": "127.0.0.1", + "errorCode": "AccessDenied", + "requestParameters": { "reportId": "report-..." } +} +``` + +## Relationships +- **CloudTrail**: The logging backbone — Artifact events are delivered alongside all other AWS service events +- **S3**: Destination for CloudTrail log file delivery +- **SNS**: Can be configured for CloudTrail notifications on new log delivery +- **IAM**: The `userIdentity` element ties Artifact access to IAM principals; the example shows an `AccessDenied` error from missing `artifact:GetReportMetadata` permission +- **Multi-account/multi-region**: CloudTrail supports aggregating Artifact logs across accounts and regions + +## Exam-Relevant Points +- CloudTrail is enabled by default on all AWS accounts — no manual activation needed +- Trails apply to **all regions** by default when created via console +- AWS Artifact logs **both** report access and agreement management actions +- The `errorCode` and `errorMessage` fields in CloudTrail logs are useful for diagnosing IAM permission issues with Artifact +- CloudTrail log entries include source IP, user agent, and full identity chain — critical for security auditing of compliance document access + diff --git a/entries/2026/03/11/athena-latest-ug-cloudtrail-logshtml.md b/entries/2026/03/11/athena-latest-ug-cloudtrail-logshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7c6526a53310daf071aec2e43b81e00b7c160c64 --- /dev/null +++ b/entries/2026/03/11/athena-latest-ug-cloudtrail-logshtml.md @@ -0,0 +1,43 @@ +--- +source_url: https://docs.aws.amazon.com/athena/latest/ug/cloudtrail-logs.html +source: sources/athena-latest-ug-cloudtrail-logshtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:59 + + + +## Overview +This page describes how to use Amazon Athena to query AWS CloudTrail logs stored in S3, enabling SQL-based analysis of AWS API activity for security, compliance, and operational insights. It also introduces CloudTrail Lake as an alternative that doesn't require Athena. + +## Key Concepts +- **CloudTrail** records AWS API calls and events, generating encrypted log files stored in Amazon S3 +- **Athena** can query CloudTrail logs directly from S3 using standard SQL, without needing to load data into a separate database +- **CloudTrail Lake** is an alternative to trails that aggregates events into a searchable event data store (data lake), supporting cross-account, cross-region, and custom time-range SQL queries directly within the CloudTrail console — no Athena required +- Two methods to create Athena tables for CloudTrail logs: via the CloudTrail console (automated) or manually in the Athena console +- Common use case: analyzing operational activity for **security and compliance** + +## Commands and Syntax +- Table creation requires specifying the `LOCATION` of CloudTrail log files in S3 +- Two table creation approaches: + 1. **CloudTrail console** — automated table creation + 2. **Athena console** — manual table creation with options for manual partitioning or partition projection +- Organization-wide trails have a separate table creation process + +## Relationships +- **CloudTrail → S3**: CloudTrail stores encrypted logs in S3 buckets +- **Athena → S3**: Athena queries CloudTrail logs directly from S3 (serverless, no data movement) +- **CloudTrail Lake**: Alternative query path that bypasses both S3 storage and Athena entirely +- **Partition projection**: Athena optimization technique applicable to CloudTrail tables for faster queries +- **AWS Organizations**: Organization-wide trails require specific table structures + +## Exam-Relevant Points +- CloudTrail logs can be queried with Athena directly from S3 — no ETL or data loading required +- CloudTrail Lake is the preferred approach for **cross-account, cross-region** querying and does **not** require Athena +- CloudTrail Lake uses an **event data store** (not S3 buckets) for storage +- Partition projection improves query performance on CloudTrail tables compared to manual partitioning +- Two distinct table creation methods: CloudTrail console (easy) vs. Athena console (manual, more control) +- Organization-wide trails need a different table schema than single-account trails + diff --git a/entries/2026/03/11/athena-latest-ug-monitor-with-cloudtrailhtml.md b/entries/2026/03/11/athena-latest-ug-monitor-with-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b7be491ece13bbbb1f5ba0f400adac63f43290d9 --- /dev/null +++ b/entries/2026/03/11/athena-latest-ug-monitor-with-cloudtrailhtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/athena/latest/ug/monitor-with-cloudtrail.html +source: sources/athena-latest-ug-monitor-with-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:59 + + + +## Overview +This page describes how Amazon Athena integrates with AWS CloudTrail to log all API calls made to the Athena service. CloudTrail captures actions from the Athena console and API, recording who made requests, from where, and when. Notably, Athena can also be used to query its own CloudTrail logs and those of other AWS services. + +## Key Concepts +- **All Athena API actions are logged** by CloudTrail — this is automatic and comprehensive +- **CloudTrail is enabled by default** when you create an AWS account; recent events are viewable in Event History without creating a trail +- **Trails** enable continuous delivery of log files to an S3 bucket; by default they apply to all AWS Regions +- **`queryString` is always `***OMITTED***`** in CloudTrail logs for both `StartQueryExecution` and `CreateNamedQuery` events — this is intentional to prevent unintended disclosure of sensitive information +- To retrieve the actual query string, call the `GetQueryExecution` API using the `responseElements.queryExecutionId` from the CloudTrail log +- The `userIdentity` element reveals whether a request was made with root credentials, IAM user credentials, temporary role/federated credentials, or by another AWS service +- CloudTrail log files are **not ordered** — they don't form a sequential stack trace + +## Commands and Syntax +- **Retrieve actual query text** after finding a CloudTrail event: call `GetQueryExecution` with the `queryExecutionId` from `responseElements` +- **Key CloudTrail event fields for Athena**: + - `eventSource`: `athena.amazonaws.com` + - `eventName`: e.g., `StartQueryExecution`, `CreateNamedQuery`, `GetQueryResults` + - `errorCode` / `errorMessage`: present on failed calls (e.g., `InvalidRequestException`) + - `requestParameters.resultConfiguration.outputLocation`: the S3 output path + - `responseElements.queryExecutionId`: the execution ID for successful queries + +## Relationships +- **CloudTrail → S3**: Trail log files are delivered to an S3 bucket +- **CloudTrail → SNS**: Can configure SNS notifications for new log deliveries +- **Athena ↔ CloudTrail**: Circular relationship — Athena is logged by CloudTrail, and Athena can query CloudTrail logs (using Hive JSON SerDe) +- **CloudTrail → CloudWatch Logs**: Events can be forwarded for monitoring and alarming +- **IAM**: The `userIdentity` element ties into IAM users, roles, and federated identities +- **Multi-account/multi-region**: Trails can aggregate logs across regions and accounts + +## Exam-Relevant Points +- The `queryString` field is **always omitted** (`***OMITTED***`) in CloudTrail logs — you must use `GetQueryExecution` API to retrieve actual SQL text +- CloudTrail is **enabled by default** on all AWS accounts — no setup required for Event History +- A trail created in the console **covers all regions by default** +- Failed API calls are logged with `errorCode` and `errorMessage` fields; `responseElements` is `null` on failure +- Athena can **query its own CloudTrail logs** stored in S3 — a common pattern for usage analysis and cost optimization (using CTAS statements) + diff --git a/entries/2026/03/11/audit-manager-latest-userguide-evidence-finderhtml.md b/entries/2026/03/11/audit-manager-latest-userguide-evidence-finderhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..54274f573c3e660cf0818b9c31be45ed7cbe5591 --- /dev/null +++ b/entries/2026/03/11/audit-manager-latest-userguide-evidence-finderhtml.md @@ -0,0 +1,42 @@ +--- +source_url: https://docs.aws.amazon.com/audit-manager/latest/userguide/evidence-finder.html +source: sources/audit-manager-latest-userguide-evidence-finderhtml.md +--- +# Overview + +**Date:** 2026-03-11 +**Time:** 23:59 + + + +## Overview +Evidence finder is an AWS Audit Manager feature that enables powerful search across audit evidence using CloudTrail Lake as its backend. Instead of navigating nested evidence folders, users can query evidence with filters and groupings, including cross-account searches for delegated administrators in AWS Organizations. + +## Key Concepts +- **Evidence finder** must be explicitly enabled from Audit Manager settings before use +- Uses **CloudTrail Lake** for querying and storage — evidence is stored in an event data store +- When enabled, Audit Manager automatically creates a CloudTrail Lake **event data store** +- **Backfills past 2 years** of evidence data upon enablement (including all member accounts for delegated admins) +- Default retention is **2 years**, configurable up to **7 years (2,555 days)** +- **Delegated administrators** can search evidence across all member accounts in an organization +- Supports progressive narrowing via **filters** (assessment, date range, resource compliance, control, resource ID) and **groupings** +- Results can be previewed before creating an assessment report + +## Commands and Syntax +- No CLI commands documented on this page; enablement is done through Audit Manager settings console +- Retention period changes are made via CloudTrail Lake's `update-event-data-store` CLI command + +## Relationships +- **CloudTrail Lake**: Backend storage and query engine; evidence finder creates and manages an event data store within it +- **AWS Organizations**: Delegated admin support enables cross-account evidence search +- **Audit Manager assessments/controls**: Evidence finder queries target evidence organized by assessments, controls, and resources +- **CloudTrail pricing**: Both ingestion/storage and per-query scan costs apply + +## Exam-Relevant Points +- Evidence finder is **not enabled by default** — must be turned on in settings +- Backed by **CloudTrail Lake event data stores** (not S3 or Athena directly) +- Retention: **2 years default, 7 years max (2,555 days)** +- Backfill covers **2 years of historical evidence** automatically +- **Pay-as-you-go pricing**: charged for data ingestion, storage, and per-query data scanned +- Delegated administrators get **organization-wide** evidence search capability + diff --git a/entries/2026/03/12/audit-manager-latest-userguide-logging-using-cloudtrailhtml.md b/entries/2026/03/12/audit-manager-latest-userguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..f244e90a8d6c0b23a91c404e7554771b3c28760c --- /dev/null +++ b/entries/2026/03/12/audit-manager-latest-userguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/audit-manager/latest/userguide/logging-using-cloudtrail.html +source: sources/audit-manager-latest-userguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:00 + + + +## Overview +AWS Audit Manager integrates with AWS CloudTrail to log all API calls made within the Audit Manager service. CloudTrail captures actions from both the console and programmatic API calls, recording who made the request, from where, and when, enabling audit and compliance tracking of Audit Manager operations themselves. + +## Key Concepts +- **All Audit Manager actions are logged** by CloudTrail — this includes API calls like `CreateControl`, `DeleteControl`, and `UpdateAssessmentFramework` +- **CloudTrail is enabled by default** when you create an AWS account; Audit Manager events appear in Event History immediately +- **Trails** enable continuous delivery of log files to an S3 bucket; by default, a console-created trail covers all AWS Regions +- **Log entries are unordered** — CloudTrail log files are not an ordered stack trace of API calls +- **userIdentity element** reveals whether a request used root credentials, temporary role/federated credentials, or was made by another AWS service +- **Sensitive fields are masked** with `"***"` in log entries (e.g., `clientToken`, `roles`, `description`, `tags`, `awsAccounts`) + +## Commands and Syntax +No CLI commands shown. The key artifact is the CloudTrail log entry structure for Audit Manager events: +- `eventSource`: `auditmanager.amazonaws.com` +- `eventName`: The API action (e.g., `CreateAssessment`) +- `requestParameters`: Contains the API call inputs (partially redacted) +- `userIdentity`: IAM principal details including `type`, `arn`, `accountId`, `userName` +- `readOnly`: `false` for mutating operations + +## Relationships +- **CloudTrail** — the logging backbone; Audit Manager is one of many integrated services +- **S3** — destination for CloudTrail log file delivery and for Audit Manager assessment report storage +- **SNS** — can be configured for CloudTrail notifications on new log delivery +- **IAM** — userIdentity in log entries ties back to IAM users, roles, and federated identities +- **CloudWatch Logs** — CloudTrail events can be forwarded for metric filters and alarms + +## Exam-Relevant Points +- CloudTrail is automatically enabled on all AWS accounts — no manual setup needed for basic Event History +- A trail is required for **continuous, persistent logging** to S3 (Event History only retains recent events) +- Console-created trails apply to **all Regions** by default +- The `eventSource` for Audit Manager is `auditmanager.amazonaws.com` +- CloudTrail log entries identify **who, what, when, and from where** for every API call +- Audit Manager logs all actions — useful for auditing the auditors (meta-compliance) + diff --git a/entries/2026/03/12/aurora-dsql-latest-userguide-disaster-recovery-resiliencyhtml.md b/entries/2026/03/12/aurora-dsql-latest-userguide-disaster-recovery-resiliencyhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..85e07fe3dc9a068bd552b94aebbfe4967fe97585 --- /dev/null +++ b/entries/2026/03/12/aurora-dsql-latest-userguide-disaster-recovery-resiliencyhtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/aurora-dsql/latest/userguide/disaster-recovery-resiliency.html +source: sources/aurora-dsql-latest-userguide-disaster-recovery-resiliencyhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:00 + +## Overview + +This page describes the resilience features of Amazon Aurora DSQL, covering how it leverages AWS global infrastructure (Regions and AZs) to provide high availability, data replication, backup/restore capabilities, and fault injection testing for both single-Region and multi-Region clusters. + +## Key Concepts + +- **Multi-AZ by default**: Single-Region clusters automatically have Multi-AZ availability across three AZs — no manual configuration required. +- **Multi-Region clusters**: Provide strongly consistent endpoints in two Regions with zero replication lag on commit, plus tolerance to full Region failure. +- **Witness Region**: A third Region in multi-Region clusters that stores only encrypted transaction logs (no user-accessible endpoint, no storage consumption, no admin needed). Impairment causes slight latency increase but no availability impact. +- **Synchronous replication**: All write transactions are committed to a distributed transaction log and synchronously replicated to storage replicas in three AZs. +- **Active-active**: Both single-Region and multi-Region clusters are active-active by default — no primary-secondary failover needed. +- **Automatic repair**: Aurora DSQL automatically redirects access away from impaired components, asynchronously repairs missing replicas, and re-adds them to the storage quorum. +- **No replication lag risk**: Synchronous replication eliminates data loss from replication lag or async failover. +- **Auto-scaling storage**: Data is automatically split, merged, and replicated based on primary key range and access patterns; read replicas scale up/down based on access frequency. +- **SLA**: 99.99% availability (single-Region), 99.999% availability (multi-Region). + +## Commands and Syntax + +- **Backup and restore**: Performed via AWS Backup console for both single-Region and multi-Region clusters (full backup/restore). +- **Fault injection**: Use AWS FIS to create experiment templates and inject elevated connection error rates into Aurora DSQL clusters. No Aurora DSQL-specific CLI commands shown; configuration is done through AWS FIS. + +## Relationships + +- **AWS Backup**: Aurora DSQL integrates with AWS Backup for backup/restore operations. +- **AWS FIS (Fault Injection Service)**: Used for controlled chaos engineering experiments — inject connection errors, test multi-Region failover behavior. +- **AWS Regions & AZs**: Aurora DSQL's resilience model is built directly on the Region/AZ infrastructure. +- **Aurora DSQL general architecture**: This page complements the "What is Aurora DSQL" overview, focusing specifically on the resilience and HA aspects. + +## Exam-Relevant Points + +- Single-Region = **99.99%** availability; multi-Region = **99.999%** availability. +- Replication is **always synchronous** — no async failover risk. +- Witness Region stores **only encrypted transaction logs**, has **no endpoint**, and its impairment does **not** affect availability (only minor latency increase). +- Clusters are **active-active by default** with **no manual failover configuration**. +- Storage replicas exist in **three AZs** for both single-Region and multi-Region clusters. +- Multi-Region clusters provide **two strongly consistent Regional endpoints** with **zero replication lag on commit**. +- Aurora DSQL **automatically scales** read replicas and repairs impaired storage components. +- AWS FIS integration allows injecting **elevated connection error rates** to test application resilience. + diff --git a/entries/2026/03/12/aurora-dsql-latest-userguide-what-is-aurora-dsqlhtml.md b/entries/2026/03/12/aurora-dsql-latest-userguide-what-is-aurora-dsqlhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..0c818416bd911aa848844cba1e3a42a511e37fc5 --- /dev/null +++ b/entries/2026/03/12/aurora-dsql-latest-userguide-what-is-aurora-dsqlhtml.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/aurora-dsql/latest/userguide/what-is-aurora-dsql.html +source: sources/aurora-dsql-latest-userguide-what-is-aurora-dsqlhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:00 + + + +## Overview + +Amazon Aurora DSQL is a serverless, distributed relational database service optimized for transactional workloads. It offers PostgreSQL compatibility (version 16), virtually unlimited scale, and requires no infrastructure management. Its active-active architecture provides 99.99% single-Region and 99.999% multi-Region availability with ACID transactions and strong consistency. + +## Key Concepts + +- **Serverless**: No servers to provision, patch, or manage; compute, I/O, and storage scale automatically based on workload +- **Distributed architecture**: Multi-tenant components (relay/connectivity, compute/databases, transaction log/concurrency control/isolation, storage) coordinated by a control plane, each redundant across 3 AZs +- **Active-active design**: Automatic failure recovery without traditional database failover; no eventual consistency or missing data during failovers +- **ACID transactions**: Strong consistency, snapshot isolation, atomicity, and cross-AZ/cross-Region durability +- **Multi-Region peered clusters**: Two Regional endpoints presenting a single logical database; both endpoints support concurrent read and write with strong data consistency +- **PostgreSQL 16 compatible**: Works with standard PostgreSQL drivers, ORMs, frameworks, and `psql` +- **Availability SLAs**: 99.99% single-Region, 99.999% multi-Region + +## Commands and Syntax + +No CLI commands or configuration syntax detailed on this page. Connection uses standard PostgreSQL drivers and tools (e.g., `psql`). + +## Relationships + +- **Resilience**: Links to disaster recovery/resiliency documentation for HA architecture details +- **PostgreSQL compatibility**: Links to SQL feature compatibility reference +- **Ideal for**: Microservice, serverless, and event-driven architectures +- **Region sets for multi-Region**: US (us-east-1, us-east-2, us-west-2), Asia Pacific (ap-northeast-1, ap-northeast-2, ap-northeast-3), Europe (eu-central-1, eu-west-1, eu-west-2, eu-west-3) +- **Available in 14 Regions** with FIPS endpoints in US and Canada regions + +## Exam-Relevant Points + +- Aurora DSQL is **not** traditional Aurora — it is a distinct serverless distributed SQL service +- **99.99%** single-Region availability, **99.999%** multi-Region availability +- Multi-Region clusters **cannot span continents** — must stay within a single Region set (US, APAC, or Europe) +- Provides **strong consistency** (not eventual consistency), even in multi-Region configurations +- Uses **snapshot isolation** for transactions +- Compatible with **PostgreSQL version 16** +- Components are redundant across **3 Availability Zones** +- Multi-Region peered clusters offer **active-active** read/write from both endpoints +- FIPS endpoints available only in US and Canada regions + diff --git a/entries/2026/03/12/autoscaling-application-userguide-application-auto-scaling-target-trackinghtml.md b/entries/2026/03/12/autoscaling-application-userguide-application-auto-scaling-target-trackinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..02f017e7cd32bd190793092bb407c4a922c68311 --- /dev/null +++ b/entries/2026/03/12/autoscaling-application-userguide-application-auto-scaling-target-trackinghtml.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html +source: sources/autoscaling-application-userguide-application-auto-scaling-target-trackinghtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:00 + + + +## Overview + +Target tracking scaling policies in Application Auto Scaling automatically adjust capacity to maintain a specified metric at a desired target value. The system creates and manages CloudWatch alarms behind the scenes, scaling out when the metric exceeds the target and scaling in when it drops below — analogous to a thermostat maintaining temperature. + +## Key Concepts + +- **Target tracking** selects a metric and a target value representing ideal average utilization or throughput +- Application Auto Scaling automatically creates and manages CloudWatch alarms — no manual alarm configuration needed +- **Scale out** (increase capacity) occurs when metric exceeds target; **scale in** (decrease capacity) when metric drops below +- Two metric types supported: + - **Predefined metrics** — built-in metrics like average CPU utilization or average request count per target + - **Custom metrics** — user-defined metrics published to CloudWatch, or combinations via metric math +- The chosen metric must change **inversely proportional** to capacity changes (doubling capacity should halve the metric value) — this is critical for proportional scaling behavior +- Eliminates need to manually define scaling adjustments or CloudWatch alarm thresholds + +## Commands and Syntax + +No specific CLI commands on this page (subpages cover creation/deletion), but the conceptual workflow is: + +1. Choose a scalable target (e.g., Spot Fleet, ECS service) +2. Select a metric (predefined or custom) +3. Set a target value (e.g., 50% CPU utilization) +4. Application Auto Scaling handles alarm creation and scaling actions automatically + +## Relationships + +- **CloudWatch Alarms** — target tracking policies automatically create and manage these +- **Application Auto Scaling** — the parent service; target tracking is one of its policy types (alongside step scaling and scheduled scaling) +- **Scalable targets** — applies to ECS services, Spot Fleet, DynamoDB tables, Aurora replicas, SageMaker endpoints, and other supported resources +- **Metric math** — enables combining multiple CloudWatch metrics for more sophisticated scaling decisions +- **Predefined metrics** — tied to specific resource types (CPU utilization, request count per target, etc.) + +## Exam-Relevant Points + +- Target tracking is the **recommended** scaling policy type for most use cases due to its simplicity +- The metric must be **inversely proportional** to capacity — this is a common exam trap +- Application Auto Scaling manages CloudWatch alarms automatically; you do **not** create them manually for target tracking +- Know the thermostat analogy: you set the desired state, the system maintains it +- Target tracking supports both predefined and custom metrics (including metric math) +- Applies to Application Auto Scaling (not EC2 Auto Scaling, which has its own target tracking implementation) + diff --git a/entries/2026/03/12/autoscaling-application-userguide-logging-using-cloudtrailhtml.md b/entries/2026/03/12/autoscaling-application-userguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3f3f8b11f707fab16e5bc643efcde5282519df28 --- /dev/null +++ b/entries/2026/03/12/autoscaling-application-userguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/autoscaling/application/userguide/logging-using-cloudtrail.html +source: sources/autoscaling-application-userguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:01 + + + +## Overview +This page documents how Application Auto Scaling integrates with AWS CloudTrail to log API calls as events. CloudTrail captures all Application Auto Scaling control plane operations, enabling auditing of who made requests, from where, and when. Event history provides 90 days of free searchable records; trails extend retention beyond 90 days by delivering logs to S3. + +## Key Concepts +- **CloudTrail integration**: Application Auto Scaling logs all control plane operations as **management events** (not data events) +- **Event history**: Automatically available, provides 90 days of management events at no charge, viewable/searchable/downloadable/immutable +- **Trails**: Required for records beyond 90 days; deliver log files to S3. Console-created trails are multi-Region by default; CLI can create single-Region trails +- **Identity tracking**: Each log entry records whether the request was made by root user, IAM Identity Center user, temporary credentials (role/federated user), or another AWS service +- **Event source**: Application Auto Scaling events appear with `eventSource: autoscaling.amazonaws.com` and `additionalEventData.service: application-autoscaling` +- **RemoveAction calls**: CloudTrail may show Application Auto Scaling calling CloudWatch `RemoveAction` API when deregistering scalable targets, deleting scaling policies, or when alarms invoke nonexistent policies + +## Commands and Syntax +No CLI commands are shown directly, but the CloudTrail event structure for `DescribeScalableTargets` includes key fields: +- `serviceNamespace`: e.g., `"ec2"` +- `scalableDimension`: e.g., `"ec2:spot-fleet-request:TargetCapacity"` +- `resourceIds`: array of resource identifiers +- `eventName`: the API operation name +- `sourceIPAddress`: origin of the request + +## Relationships +- **CloudTrail**: The logging backbone; Application Auto Scaling is one of many integrated services +- **CloudWatch**: Application Auto Scaling interacts with CloudWatch alarms for scaling policies; `RemoveAction` cross-service calls appear in CloudTrail +- **Amazon S3**: Trail log file storage destination +- **IAM / IAM Identity Center**: Identity information in CloudTrail events ties back to IAM principals +- **EC2 Spot Fleet**: Example use case shown (scaling Spot Fleet target capacity) + +## Exam-Relevant Points +- CloudTrail Event history is **automatic, free, and covers 90 days** — no trail creation needed for short-term auditing +- A **trail** is required for records **beyond 90 days** (S3 storage charges apply; first copy of management events is free) +- **Multi-Region trails** are recommended and are the default when created via the console +- Application Auto Scaling operations are logged as **management events** (control plane), not data events +- CloudTrail logs capture **who, what, when, and from where** for compliance and security auditing +- Cross-service calls (e.g., Application Auto Scaling calling CloudWatch `RemoveAction`) also appear in CloudTrail logs + diff --git a/entries/2026/03/12/autoscaling-application-userguide-what-is-application-auto-scalinghtml.md b/entries/2026/03/12/autoscaling-application-userguide-what-is-application-auto-scalinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c1fbd5702423284464ed8f518d2a2b9bcb5adf7a --- /dev/null +++ b/entries/2026/03/12/autoscaling-application-userguide-what-is-application-auto-scalinghtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/autoscaling/application/userguide/what-is-application-auto-scaling.html +source: sources/autoscaling-application-userguide-what-is-application-auto-scalinghtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:01 + + + +## Overview +Application Auto Scaling is an AWS service that provides automatic scaling for resources beyond EC2 instances (which are handled by EC2 Auto Scaling). It supports a wide range of AWS services including DynamoDB, ECS, Lambda, Aurora, ElastiCache, and custom resources, offering four scaling strategies: target tracking, step scaling, scheduled scaling, and predictive scaling. + +## Key Concepts +- **Distinct from EC2 Auto Scaling** — Application Auto Scaling handles non-EC2 resources; EC2 Auto Scaling handles EC2 instance fleets via Auto Scaling groups +- **Four scaling policies:** + - **Target tracking** — scale based on a target value for a CloudWatch metric + - **Step scaling** — scale based on adjustments that vary with alarm breach size + - **Scheduled scaling** — scale at specific times, one-time or recurring + - **Predictive scaling** — proactively scale based on historical load patterns +- **Supported resources** include: DynamoDB tables/GSIs, ECS services, Aurora replicas, Lambda provisioned concurrency, ElastiCache replication groups, SageMaker endpoints, Spot Fleet requests, MSK broker storage, Neptune clusters, EMR clusters, Keyspaces tables, WorkSpaces, custom resources +- **Custom resources** — you can bring your own applications/services via the `aws-auto-scaling-custom-resource` GitHub repo + +## Commands and Syntax +- CLI namespace: `aws application-autoscaling` +- CloudFormation support available for declarative configuration +- Console access varies by resource — not all resources have console-based scaling configuration +- SDKs, HTTPS API, and PowerShell cmdlets also supported + +## Relationships +- **CloudWatch** — all scaling policies rely on CloudWatch metrics/alarms +- **EC2 Auto Scaling** — complementary service for EC2 instances; Application Auto Scaling covers everything else +- **DynamoDB** — auto scaling of table and GSI read/write capacity +- **ECS** — service-level task count scaling +- **Lambda** — provisioned concurrency scaling +- **CloudFormation** — infrastructure-as-code integration for scaling configuration +- **Regional availability** — not all supported services are available in all regions + +## Exam-Relevant Points +- Application Auto Scaling is **not** for EC2 instances — that's EC2 Auto Scaling +- Know the four scaling policy types and when to use each (target tracking is simplest/most common, predictive is proactive) +- DynamoDB auto scaling uses Application Auto Scaling under the hood +- Lambda **provisioned concurrency** (not regular concurrency) is what Application Auto Scaling manages +- Custom resources can be scaled via Application Auto Scaling using a GitHub-provided framework +- Target tracking is metric-driven; step scaling is alarm-breach-driven; scheduled is time-driven; predictive uses ML on historical data + diff --git a/entries/2026/03/12/autoscaling-ec2-userguide-logging-using-cloudtrailhtml.md b/entries/2026/03/12/autoscaling-ec2-userguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..65d362f133216f781d533c023cb447df9ac76c01 --- /dev/null +++ b/entries/2026/03/12/autoscaling-ec2-userguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/autoscaling/ec2/userguide/logging-using-cloudtrail.html +source: sources/autoscaling-ec2-userguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:01 + + + +## Overview +This page documents how Amazon EC2 Auto Scaling integrates with AWS CloudTrail to log API calls. CloudTrail captures all Auto Scaling control plane operations as management events, providing an audit trail of who made requests, from where, and when. Event history is available for 90 days by default; trails extend retention beyond that. + +## Key Concepts +- **CloudTrail integration**: All Auto Scaling control plane operations are logged as **management events** (control plane operations) by default +- **Event history**: Automatically available, covers past 90 days of management events per Region, viewable/searchable/downloadable at no CloudTrail charge +- **Identity tracking**: Each log entry identifies whether the request was made by root user, IAM Identity Center user, temporary credentials (role/federated user), or another AWS service +- **Event source**: Auto Scaling events use `autoscaling.amazonaws.com` as the `eventSource` +- **CloudTrail log files are not ordered** — events don't appear in any specific sequence + +## Commands and Syntax +No CLI commands specific to this page, but key CloudTrail record fields for Auto Scaling events: + +| Field | Example Value | +|-------|---------------| +| `eventSource` | `autoscaling.amazonaws.com` | +| `eventName` | `CreateLaunchConfiguration` | +| `eventType` | `AwsApiCall` | +| `userIdentity.type` | `Root`, `IAMUser`, `AssumedRole`, etc. | +| `requestParameters` | Contains full API call parameters (instance type, AMI, security groups, etc.) | + +## Relationships +- **CloudTrail trails** → deliver logs to **S3 buckets** (S3 storage charges apply; first copy of management events is free) +- **Multi-Region trails** recommended over single-Region trails (console-created trails are multi-Region by default) +- **Organization trails** can capture events across all accounts in an AWS Organization +- **CloudWatch alarms** — Auto Scaling may call CloudWatch `RemoveAction` API when scaling policies are deleted, scalable targets are deregistered, or alarms reference nonexistent policies +- **CloudTrail Lake** and **Event history** provide query/search capabilities over logged events + +## Exam-Relevant Points +- CloudTrail is **enabled by default** on all AWS accounts — no setup required for basic event history +- Event history retains **90 days** of management events; for longer retention, create a **trail** +- All Auto Scaling API calls are logged as **management events** (not data events) +- Console-created trails are always **multi-Region**; CLI can create single-Region trails +- One copy of management events delivered to S3 via a trail is **free from CloudTrail** (S3 charges still apply) +- The `RemoveAction` calls to CloudWatch in logs are normal Auto Scaling housekeeping behavior, not anomalies + diff --git a/entries/2026/03/12/autoscaling-plans-APIReference-logging-using-cloudtrailhtml.md b/entries/2026/03/12/autoscaling-plans-APIReference-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1b5286ab9b9e21781f303ea521d565d6cd8fbf4c --- /dev/null +++ b/entries/2026/03/12/autoscaling-plans-APIReference-logging-using-cloudtrailhtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/autoscaling/plans/APIReference/logging-using-cloudtrail.html +source: sources/autoscaling-plans-APIReference-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:02 + + + +## Overview +This page documents how AWS Auto Scaling integrates with AWS CloudTrail for API call logging. All AWS Auto Scaling API calls are captured as CloudTrail events, enabling audit trails for scaling plan operations including creation, deletion, and description of scaling plans. + +## Key Concepts +- **CloudTrail is enabled by default** when an AWS account is created — no manual setup required for basic event history +- **All AWS Auto Scaling actions are logged** by CloudTrail (e.g., `CreateScalingPlan`, `DeleteScalingPlan`, `DescribeScalingPlans`) +- **Event history** in the CloudTrail console shows recent events even without a trail configured +- A **trail** enables continuous delivery of CloudTrail log files to an S3 bucket +- Trails created in the console **apply to all AWS Regions by default** +- Log files are **not ordered** — they don't appear as a sequential stack trace +- The **eventSource** for Auto Scaling events is `autoscaling.amazonaws.com` +- The **userIdentity** element reveals whether requests used root credentials, IAM user credentials, temporary role/federated credentials, or were made by another AWS service + +## Commands and Syntax +No CLI commands shown. The key API actions logged are: +- `CreateScalingPlan` — creates a scaling plan with application source, scaling instructions, and target tracking configurations +- `DeleteScalingPlan` — deletes a scaling plan +- `DescribeScalingPlans` — describes scaling plans + +Example log entry fields: `eventVersion`, `userIdentity`, `eventTime`, `eventSource`, `eventName`, `awsRegion`, `sourceIPAddress`, `requestParameters`, `responseElements`, `requestID`, `eventID`. + +## Relationships +- **CloudTrail** — the underlying logging service capturing all API calls +- **S3** — destination for trail log file delivery +- **SNS** — can be configured for CloudTrail notifications +- **IAM** — identity information in log entries ties back to IAM users/roles +- **Application Auto Scaling** — related but distinct service; this page covers AWS Auto Scaling (scaling plans), with the `additionalEventData.service` field showing `autoscaling-plans` +- **Auto Scaling Groups** — referenced as scalable resources within scaling plans + +## Exam-Relevant Points +- CloudTrail is **automatically enabled** on all AWS accounts — no opt-in required +- Trails apply to **all Regions** by default when created via the console +- CloudTrail can receive logs from **multiple Regions** and **multiple accounts** +- The `userIdentity` element distinguishes between root, IAM user, role/federated, and service-initiated requests +- AWS Auto Scaling scaling plans are a **distinct API** (`autoscaling-plans`) from EC2 Auto Scaling, though the eventSource is `autoscaling.amazonaws.com` +- Without a trail, you can only view **recent** events in Event history; a trail is needed for **ongoing/persistent** logging + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-about-backup-planshtml.md b/entries/2026/03/12/aws-backup-latest-devguide-about-backup-planshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3164407d3dffd29ef87b9f3d578aafc91b0be14b --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-about-backup-planshtml.md @@ -0,0 +1,40 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/about-backup-plans.html +source: sources/aws-backup-latest-devguide-about-backup-planshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:02 + + + +## Overview +An AWS Backup **backup plan** is a policy expression that defines when and how to back up AWS resources (e.g., DynamoDB tables, EFS file systems). Resources are assigned to backup plans, and AWS Backup automatically performs and retains backups according to the plan's schedule and retention settings. + +## Key Concepts +- **Backup plan** — a policy that specifies backup schedule, lifecycle, and retention for assigned AWS resources +- **Incremental backups** — first backup is a full copy; subsequent backups capture only changes, reducing storage costs +- **Backup window** — optimized by AWS Backup by default; can be customized via console or programmatically +- **Lifecycle management** — AWS Backup automatically manages backup retention and expiration based on plan settings +- **Multiple plans** — you can create separate backup plans for workloads with different backup requirements +- **Resource assignment** — AWS resources are assigned to a backup plan to enable automated backups + +## Commands and Syntax +No specific CLI commands or configuration syntax provided on this page. Related procedures are covered in sub-pages: +- Create a backup plan +- Select AWS services to backup (resource assignment) + +## Relationships +- **AWS Backup vaults** — backups created by plans are stored in backup vaults +- **Supported services** — DynamoDB, EFS, and other AWS services can be assigned to plans +- **Retention/lifecycle** — backup plan retention settings drive automatic lifecycle transitions (e.g., warm → cold storage) +- **Resource assignment** — links backup plans to specific AWS resources or resource tags + +## Exam-Relevant Points +- First backup is always a **full copy**; subsequent backups are **incremental** +- Backup windows are **optimized by default** but can be customized +- Backup plans handle both **scheduling** and **retention lifecycle** automatically +- Multiple backup plans can coexist for different workload requirements +- Incremental backups reduce **storage costs** while maintaining frequent data protection + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-access-controlhtml.md b/entries/2026/03/12/aws-backup-latest-devguide-access-controlhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..342f837d047ee3ca064627479e0e46721414cecf --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-access-controlhtml.md @@ -0,0 +1,73 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/access-control.html +source: sources/aws-backup-latest-devguide-access-controlhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:02 + +## Overview +This page covers how AWS Identity and Access Management (IAM) controls access to AWS Backup resources including backup plans, backup vaults, and recovery points. It details the ARN formats for various resource types, the IAM policy elements used to grant permissions, the full API-to-permission mapping, tag copying behavior during backup/copy jobs, and the two types of access policies (identity-based and resource-based) supported by AWS Backup. + +## Key Concepts +- **Recovery points** are the AWS Backup term for backups; different AWS services produce recovery points with different ARN formats +- Resources under **full AWS Backup management** use a standardized ARN format: `arn:aws:backup:region:account-id:recovery-point:*` +- **Resource ownership** belongs to the AWS account of the principal entity that created the resource, not the individual user/role +- AWS Backup supports both **identity-based policies** (attached to IAM users/roles) and **resource-based policies** (attached to backup vaults) +- **Backup vault access policies** are the resource-based policy mechanism — they control access to all recovery points within a vault +- Vault access policies only govern access via AWS Backup APIs; snapshots accessible through native service APIs (e.g., EBS, RDS) require separate IAM policies +- **Tag copying**: AWS Backup copies tags from source resources to recovery points during backup/copy jobs; backup plan tags take precedence over source tags when they conflict +- AWS enforces a **50-tag limit** per resource; exceeding this during tag aggregation fails the backup/copy job +- AWS Backup does **not** natively copy tags during restore jobs (requires event-driven architecture) +- DynamoDB does **not** support assigning tags to backups unless **Advanced DynamoDB backup** is enabled +- `CreateBackupVault` requires additional permissions: `backup-storage:MountCapsule` and several KMS permissions (`kms:CreateGrant`, `kms:GenerateDataKey`, `kms:Decrypt`, `kms:RetireGrant`, `kms:DescribeKey`) + +## Commands and Syntax +**ARN formats for key resources:** +``` +Backup plan: arn:aws:backup:region:account-id:backup-plan:* +Backup vault: arn:aws:backup:region:account-id:backup-vault:* +EBS recovery: arn:aws:ec2:region::snapshot/* +RDS recovery: arn:aws:rds:region:account-id:snapshot:awsbackup:* +Aurora recovery: arn:aws:rds:region:account-id:cluster-snapshot:awsbackup:* +EFS recovery: arn:aws:backup:region:account-id:recovery-point:* +``` + +**Key API-to-permission mappings:** +| API | Permission(s) | +|-----|--------------| +| `StartBackupJob` | `backup:StartBackupJob` | +| `StartRestoreJob` | `backup:StartRestoreJob` (requires recovery point metadata) | +| `CreateBackupVault` | `backup:CreateBackupVault` + `backup-storage:MountCapsule` + KMS permissions | +| `DeleteRecoveryPoint` | `backup:DeleteRecoveryPoint` (uses vault access policy) | +| `PutBackupVaultAccessPolicy` | `backup:PutBackupVaultAccessPolicy` (uses vault access policy) | +| `PutBackupVaultLockConfiguration` | `backup:PutBackupVaultLockConfiguration` | + +**Tag copy permissions by resource:** +| Resource | Permission | +|----------|-----------| +| EFS | `elasticfilesystem:DescribeTags` | +| FSx | `fsx:ListTagsForResource` | +| RDS/Aurora | `rds:AddTagsToResource`, `rds:ListTagsForResource` | +| EC2/EBS | `EC2:CreateTags`, `EC2:DescribeTags` | + +## Relationships +- **IAM**: All access control is built on IAM policies, condition keys, and principal entities +- **KMS**: Backup vault creation requires KMS permissions for encryption +- **Individual services** (EBS, RDS, EFS, FSx, DynamoDB, S3, etc.): Each has its own recovery point ARN format and may require service-specific permissions for tag operations +- **Backup vault access policies**: Connect to the broader concept of resource-based policies in IAM +- **Advanced DynamoDB backup**: Required to enable tag support for DynamoDB backups +- **AWS Organizations**: Implied relationship through cross-account backup scenarios + +## Exam-Relevant Points +- Recovery points from fully managed resources use `arn:aws:backup:...` format; legacy/native integrations use service-specific ARN formats (e.g., `arn:aws:ec2:...`, `arn:aws:rds:...`) +- `CreateBackupVault` requires **five KMS permissions** plus `backup-storage:MountCapsule` — a common trick question +- `StartRestoreJob` requires calling `GetRecoveryPointRestoreMetadata` first to obtain required key-value metadata +- Backup vault access policies only control access via **AWS Backup APIs**, not native service APIs (EBS/RDS snapshots are still accessible via those services' APIs) +- Backup plan tags **override** source resource tags on conflict +- Exceeding 50 tags during aggregation **fails** the backup/copy job +- Tags are **not** automatically copied during restore jobs +- DynamoDB tag-to-backup support requires **Advanced DynamoDB backup** to be enabled +- Several operations (marked with ¹ in the table) use the **existing vault access policy** for authorization — meaning resource-based policies on the vault can deny even IAM-permitted actions + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-assigning-resourceshtml.md b/entries/2026/03/12/aws-backup-latest-devguide-assigning-resourceshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..4c0bfb62d50033ae37d65b23b38123c6294f0604 --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-assigning-resourceshtml.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/assigning-resources.html +source: sources/aws-backup-latest-devguide-assigning-resourceshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:02 + + + +## Overview + +This page explains how to configure AWS Backup to work with specific AWS services through a two-step process: first opting in to services at the account/region level, then assigning specific resources within backup plans. + +## Key Concepts + +- **Service opt-in**: AWS Backup requires you to explicitly opt in to each AWS service before it can back up resources of that type. This is a region-level setting. +- **Resource assignment**: After opting in, you specify which resources to include in each backup plan — opt-in alone doesn't back anything up. +- **You can opt in to all services but selectively back up only certain resource types** in individual backup plans. +- **Tag-based assignments still respect service opt-in settings** — if a service isn't opted in, tagged resources of that type won't be backed up. +- **Three ways to assign resources**: explicitly by resource type, include all resources (AWS Backup scans for supported types), or use tags to include/exclude. +- **Conditions and tags** can further refine resource selection beyond resource type. + +## Commands and Syntax + +```bash +# Check which services are opted in for the current region +aws backup describe-region-settings + +# Enable/disable services for AWS Backup in the region +aws backup update-region-settings +``` + +Console path: **AWS Backup console → Settings → Service opt-in → Configure resources** (toggle switches per service). + +Resource assignment can be done via console, CLI, or CloudFormation. + +## Relationships + +- **Backup plans** (`about-backup-plans`) — resource assignments are part of backup plans +- **Feature availability** (`backup-feature-availability`) — determines which services can be opted in +- **CloudFormation** — resource assignments can be defined as infrastructure-as-code +- **Region availability** — opt-in services must be available in your AWS Region + +## Exam-Relevant Points + +- **Opt-in is required before AWS Backup can manage a service** — forgetting this is a common gotcha. +- **Opt-in is per-region** — you must configure it in each region where you use AWS Backup. +- **Resource assignment quotas**: 500 ARNs (no wildcards), 30 ARNs (with wildcards), 30 conditions, 30 tags per assignment. +- **Tag-based assignment does not bypass service opt-in** — the service must still be opted in. +- Opt-in and resource assignment are **separate concerns**: opt-in is account-wide capability; resource assignment is per-backup-plan scoping. + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-backup-feature-availabilityhtml.md b/entries/2026/03/12/aws-backup-latest-devguide-backup-feature-availabilityhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..44d5dc989d796fa5f5d638a4c8a112fc9d21157b --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-backup-feature-availabilityhtml.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html +source: sources/aws-backup-latest-devguide-backup-feature-availabilityhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:03 + +## Overview + +This page documents AWS Backup feature availability across two dimensions: by resource type (which AWS services support which backup features) and by AWS Region (which features and services are available in each Region). It serves as a compatibility matrix for planning backup strategies, particularly important when designing cross-Region or cross-account backup architectures. + +## Key Concepts + +- **Universal features** available for all supported resources: automated scheduling/retention, centralized monitoring, encryption, incremental backups, cross-account management via Organizations, Backup Audit Manager, and Vault Lock (WORM) +- **Feature matrix by resource** covers: cross-Region copy, cross-account copy, Audit Manager, incremental backup, continuous backup/PITR, full management, cold storage lifecycle, item-level restore, restore testing, logically air-gapped vault, backup search, backup tiering, and malware protection +- **Opt-in Regions** have reduced feature support — notably no cross-account copy for DocumentDB, Neptune, CloudFormation, and Timestream; no cross-Region copy for FSx variants +- **Cross-Region copy of continuous backups** produces a snapshot (periodic) backup — PITR is not available on the copy +- **AWS Outposts** cannot run AWS Backup locally; all operations use the associated AWS Region +- **China and GovCloud Regions** only support cross-Region copy between their own paired Regions, not to/from other Regions +- **Item-level restore** meaning varies by resource: files for EFS, objects for S3, disks for VMware + +## Commands and Syntax + +No CLI commands on this page — it is a reference/compatibility matrix. Relevant cross-references: +- Backup plans: `about-backup-plans.html` +- Cross-Region copy considerations: `cross-region-backup.html#cross-region-considerations` +- Vault Lock (WORM): `vault-lock.html` +- Encryption: `encryption.html` + +## Relationships + +- **Backup Plans** — feature availability determines which plan options (PITR, cold storage tiering, cross-Region copy) can be configured per resource +- **AWS Organizations** — cross-account management and copy features require Organizations; opt-in Regions have delayed monitoring (up to 24 hours) +- **Backup Audit Manager** — availability tied to both resource type and Region; FSx for ONTAP excluded from cross-account/cross-Region copy controls +- **Vault Lock** — logically air-gapped vaults not available in several opt-in and sovereign Regions +- **Service Endpoints** — resource backup availability depends on the underlying service being available in the Region + +## Exam-Relevant Points + +- **S3 has the broadest feature support**: cross-Region, cross-account, PITR, full management, item-level restore, restore testing, air-gapped vault, backup search, tiering, and malware protection +- **DynamoDB requires "advanced features" opt-in** to get cross-Region copy, cross-account copy, full management, and cold storage lifecycle +- **Continuous backup (PITR) is limited** to: S3, RDS single instance, Aurora, and SAP HANA on EC2 +- **Cold storage lifecycle** supported for: EBS, Aurora DSQL, EFS, Timestream, CloudFormation, DynamoDB (advanced), SAP HANA, and virtual machines +- **Cross-Region copy of a continuous backup becomes a snapshot** — no PITR on the destination copy +- **RDS Multi-AZ clusters do not support any copy operations** (single instance and standard clusters do) +- **FSx for ONTAP lacks cross-Region and cross-account copy** support entirely +- **Nine core services** are available in all Regions where AWS Backup operates: Aurora, CloudFormation, DynamoDB, EBS, EC2, EFS, Redshift, RDS (plus DynamoDB advanced) +- **Malware Protection** is available for EC2, S3, and EBS only +- **Backup search** is available for S3 and EBS only + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-backup-notificationshtml.md b/entries/2026/03/12/aws-backup-latest-devguide-backup-notificationshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..37d9e647e0600a8f5ec1dc27162f6d1a2b1e2a64 --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-backup-notificationshtml.md @@ -0,0 +1,81 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-notifications.html +source: sources/aws-backup-latest-devguide-backup-notificationshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:03 + + + +## Overview + +AWS Backup provides two notification mechanisms: **User Notifications** (managed via the User Notifications console, supporting email, chat, and mobile push) and **Amazon SNS** (event-driven notifications configured per backup vault). SNS notifications cover backup, copy, restore, and recovery point events and are configured using vault-level APIs. + +## Key Concepts + +- **Two notification paths**: User Notifications (console-based, multi-channel) and Amazon SNS (programmatic, event-driven) +- **User Notifications** can aggregate notifications from CloudWatch alarms, EventBridge, AWS Support, and AWS Backup into a single Notification Center +- **SNS notifications are per-vault** — configured via `PutBackupVaultNotifications` on a specific backup vault +- **SNS limitations**: No cross-account notifications; no FIFO topics (Standard topics only, best-effort deduplication) +- **Supported event types**: + - Backup jobs: `BACKUP_JOB_STARTED`, `BACKUP_JOB_COMPLETED`, `CONTINUOUS_BACKUP_INTERRUPTED` + - Copy jobs: `COPY_JOB_STARTED`, `COPY_JOB_SUCCESSFUL`, `COPY_JOB_FAILED` + - Restore jobs: `RESTORE_JOB_STARTED`, `RESTORE_JOB_COMPLETED` + - Recovery points: `RECOVERY_POINT_MODIFIED` + - Recovery point indexing: `RECOVERY_POINT_INDEX_COMPLETED`, `RECOVERY_POINT_INDEX_DELETED`, `RECOVERY_POINT_INDEXING_FAILED` +- **S3-specific events**: `S3_BACKUP_OBJECT_FAILED`, `S3_RESTORE_OBJECT_FAILED` +- **EKS-specific events**: `EKS_RESTORE_OBJECT_FAILED`, `EKS_RESTORE_OBJECT_SKIPPED` +- **SNS message attributes** include `EventType`, `State`, `AccountId`, `Id`, `StartTime` +- **Service principal** `backup.amazonaws.com` must be granted `SNS:Publish` in the topic's access policy +- **Encrypted SNS topics** require additional KMS permissions for AWS Backup to publish + +## Commands and Syntax + +```bash +# Subscribe vault to SNS notifications for specific events +aws backup put-backup-vault-notifications \ + --backup-vault-name myBackupVault \ + --sns-topic-arn arn:aws:sns:region:account-id:myBackupTopic \ + --backup-vault-events RESTORE_JOB_STARTED RESTORE_JOB_COMPLETED RECOVERY_POINT_MODIFIED + +# List current vault notification subscriptions +aws backup get-backup-vault-notifications \ + --backup-vault-name myVault + +# Remove vault notification subscription +aws backup delete-backup-vault-notifications \ + --backup-vault-name myVault +``` + +**SNS topic access policy** (required for AWS Backup to publish): +```json +{ + "Sid": "My-statement-id", + "Effect": "Allow", + "Principal": { "Service": "backup.amazonaws.com" }, + "Action": "SNS:Publish", + "Resource": "arn:aws:sns:region:account-id:myTopic" +} +``` + +## Relationships + +- **Amazon SNS** — delivery channel for vault-level backup event notifications +- **User Notifications** — unified console aggregating notifications across AWS services +- **Amazon EventBridge / CloudWatch** — alternative event routing (User Notifications can surface these) +- **AWS Backup Vaults** — notifications are scoped per vault +- **S3 and EKS backup** — have service-specific notification events beyond the standard set +- **KMS** — encrypted SNS topics require additional key policy permissions + +## Exam-Relevant Points + +- AWS Backup SNS notifications **do not support cross-account** — must use same account ID +- AWS Backup **does not support SNS FIFO topics** — Standard topics only +- Notifications are configured **at the vault level**, not the backup plan level +- The three relevant APIs: `PutBackupVaultNotifications`, `GetBackupVaultNotifications`, `DeleteBackupVaultNotifications` +- You must add `backup.amazonaws.com` as a service principal to the SNS topic policy +- A backup job that exceeds its window reports state `EXPIRED` (not `FAILED` or `TIMED_OUT`) +- S3 and EKS have **additional per-object failure/skip events** beyond standard job-level events + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-backup-saphanahtml.md b/entries/2026/03/12/aws-backup-latest-devguide-backup-saphanahtml.md new file mode 100644 index 0000000000000000000000000000000000000000..cd47168c3d288fc52f9d8376a5e0f6a6e4c84b52 --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-backup-saphanahtml.md @@ -0,0 +1,61 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-saphana.html +source: sources/aws-backup-latest-devguide-backup-saphanahtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:04 + + + +## Overview +This page documents how AWS Backup integrates with SAP HANA databases running on Amazon EC2 instances. It covers the prerequisites (SSM for SAP, Backint Agent, Secrets Manager credentials), backup operations (on-demand, scheduled, and continuous/PITR), monitoring and viewing backups, CLI usage, and extensive troubleshooting for common errors encountered during setup and backup operations. + +## Key Concepts +- AWS Backup supports **full backups** for snapshots and on-demand backups of SAP HANA on EC2; **incremental backups** are achieved only through continuous backups (PITR) +- **AWS Backint Agent** is the integration layer between SAP HANA and AWS Backup +- **Amazon EC2 Systems Manager for SAP (SSM for SAP)** is used to discover, register, and tag SAP HANA databases +- **Continuous backups** record transaction logs over time, enabling point-in-time restore with 1-second precision up to 35 days back +- **PITR** works by replaying transaction logs against a full backup to the specified recovery point +- A continuous recovery point with status `STOPPED` indicates a gap in transaction logs +- After disabling PITR, logs continue flowing to AWS Backup until the recovery point status reaches `EXPIRED` +- **Destructive restore**: overwrites/deletes the source or existing database +- **System copy**: restore to a different target database than the source +- Register each HANA instance only once to avoid duplicate ARNs and unplanned backup duplication +- SAP HANA must be **opted in** as a protected resource in AWS Backup settings + +## Commands and Syntax +- **Start a backup via CLI**: `aws backup start-backup-job` (API: `StartBackupJob`) +- **Test Secrets Manager connectivity**: `aws secretsmanager get-secret-value --secret-id ` +- **Test SSM for SAP connectivity**: `aws ssm-sap list-registration` +- **Check registration status**: `aws ssm-sap register-application status` +- **Python version management on SUSE 12 SP5**: + ```bash + sudo update-alternatives --install /usr/local/bin/python3 python3 /usr/bin/python3.4 5 + sudo update-alternatives --install /usr/local/bin/python3 python3 /usr/bin/python3.6 2 + sudo update-alternatives --config python3 + ``` + +## Relationships +- **AWS Backup** — parent service providing backup orchestration, vaults, plans, and recovery points +- **SSM for SAP** — required for discovery and registration of SAP HANA databases +- **AWS Backint Agent** — required agent for performing the actual backup/restore data transfer +- **AWS Secrets Manager** — stores SAP HANA database credentials used during registration +- **Amazon VPC endpoints** — needed when public endpoints for Secrets Manager/SSM for SAP are blocked by firewalls +- **AWS Backup plans and resource assignment** — SAP HANA databases are assigned to backup plans like any other supported resource +- **PITR/continuous backups** — ties into the broader AWS Backup continuous backup and point-in-time recovery framework + +## Exam-Relevant Points +- On-demand and snapshot backups of SAP HANA are **full backups only**; incremental is only via continuous backups (PITR) +- PITR provides **1-second precision**, maximum **35 days** retention +- **Cold storage transition is not supported** for SAP HANA backups +- **Cross-region/cross-account copy is not supported** for continuous backups (transaction logs); only snapshot/full backups can be copied +- **Backup Audit Manager** is not supported for SAP HANA +- SAP HANA requires **service opt-in** in AWS Backup settings +- Requires **Python 3.6+** (relevant for SUSE 12 SP5 which defaults to 3.4) +- SAP HANA database passwords **must not contain special characters** (e.g., `$`) — causes registration and backup failures +- Database must be **online/active** to be backed up +- If VPC endpoints are used, ensure **DNSSupport**, **DNSHostname**, and **Private DNS Name** are all enabled +- SAP HANA availability is **region-limited** — check supported regions documentation + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-cloudwatchhtml.md b/entries/2026/03/12/aws-backup-latest-devguide-cloudwatchhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a7f2b955041282f1e24e419151a3cad259ea629d --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-cloudwatchhtml.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/cloudwatch.html +source: sources/aws-backup-latest-devguide-cloudwatchhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:04 + + + +## Overview + +This page documents how AWS Backup integrates with Amazon CloudWatch for monitoring backup, copy, and restore job metrics. It covers the built-in CloudWatch dashboard in the AWS Backup console and the complete set of metrics published under the `AWS/Backup` CloudWatch namespace. + +## Key Concepts + +- **CloudWatch Dashboard in AWS Backup console** — displays widgets showing completed/failed backup, copy, and restore job counts over time, broken down by protected resource type +- **Dashboard availability is Region-dependent** — some Regions get the newer "Jobs dashboard"; others get the CloudWatch dashboard (check Feature Availability by Region) +- **Metrics are account-specific and Region-specific** — you must log into each account/Region to see its data +- **AWS Backup emits metrics to CloudWatch every 5 minutes** +- **Namespace: `AWS/Backup`** — all metrics are published here +- **Three metric categories**: Jobs (backup/copy/restore), Recovery Points (warm/cold states) +- **Job states tracked**: CREATED, PENDING, RUNNING, ABORTED, COMPLETED, FAILED, EXPIRED +- **Recovery point states tracked**: MODIFIED, COMPLETED, PARTIAL, EXPIRED, DELETED +- **"Completed with issues"** status exists only in the AWS Backup console — it is **not** trackable via CloudWatch +- **Dimensions available**: Resource type, vault name (copy jobs use the destination vault name) +- **Backup job EXPIRED state**: occurs when a job changes from CREATED to EXPIRED because backup couldn't begin within the start window +- **NumberOfBackupJobsFailed** — common cause: scheduling during database maintenance windows or Amazon FSx automated backup windows +- **NumberOfRecoveryPointsExpired** — you are still **billed** for storage of expired recovery points that couldn't be deleted; must delete manually + +## Commands and Syntax + +No CLI commands on this page. Key procedures: + +- **Access dashboard**: AWS Backup console → Dashboard (left nav) +- **Customize time frame**: Choose from 1h, 3h, 12h, 1d, 3d, 1w, or Custom +- **Isolate resource type**: Click resource type label text in legend to show only that type +- **Export to CloudWatch dashboard**: Click "Add to dashboard" button → select target custom CloudWatch dashboard (adds all six widgets) +- **View metric in CloudWatch**: Click three-dot menu on widget → "View in metrics" +- **Set alarms**: Use CloudWatch Alarms (e.g., alert via SNS when failed jobs exceed threshold) + +## Relationships + +- **Amazon CloudWatch** — metrics backend; alarms and custom dashboards +- **Amazon SNS** — notification target for CloudWatch alarms on backup failures +- **Amazon EventBridge** — related but separate; used for event-driven automation (referenced via blog link) +- **AWS Backup plans and vaults** — dimensions for filtering metrics (vault name, resource type) +- **Point-in-Time Recovery (PITR)** — recommended to avoid failed backup jobs during maintenance windows +- **AWS Backup Feature Availability by Region** — determines which dashboard experience is available +- **Cold storage tiering** — tracked via `NumberOfRecoveryPointsCold` metric + +## Exam-Relevant Points + +- AWS Backup publishes metrics under the **`AWS/Backup` namespace** with a **5-minute** update interval +- **"Completed with issues"** is a console-only status — not available as a CloudWatch metric +- Backup jobs transition from **CREATED → EXPIRED** if they cannot start within the start window +- **Failed backups** are commonly caused by scheduling during database/FSx maintenance or automated backup windows +- **Expired recovery points still incur storage charges** — must be manually deleted +- Copy job metrics use the **destination vault name** as their vault dimension +- Dashboard metrics are **account-specific and Region-specific** +- You can create CloudWatch **alarms** on backup metrics (e.g., alert on >5 failed jobs/hour) +- Changes made in the CloudWatch console are **not reflected back** in the AWS Backup console dashboard + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-create-cross-account-backuphtml.md b/entries/2026/03/12/aws-backup-latest-devguide-create-cross-account-backuphtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1e653cd537d7a0d67550aa343b6777deb913c55c --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-create-cross-account-backuphtml.md @@ -0,0 +1,113 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/create-cross-account-backup.html +source: sources/aws-backup-latest-devguide-create-cross-account-backuphtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:04 + +## Overview + +This page covers how to use AWS Backup to copy backups across AWS accounts within the same AWS Organizations organization. It details the setup requirements (source account, destination account, management account), configuration of vault access policies, scheduling and on-demand cross-account copies, encryption considerations, restoration workflows, and security controls including SCPs to limit destination accounts. + +## Key Concepts + +- **Cross-account backup** requires all accounts to belong to the same AWS Organizations organization +- Three account roles: **source account** (where resources live), **destination account** (where copies go), **management account** (enables the feature org-wide) +- The destination vault must use a **customer managed KMS key** — the default vault cannot be used because its key cannot be shared +- First cross-account copy is always **full**; subsequent copies are **incremental** if the service supports it +- AWS Backup **re-encrypts** copies using the destination vault's customer managed key +- If source resources are encrypted with a customer managed key, that key must be **shared with the destination account** +- Cross-account **restore is not supported directly** — you must copy to the target account first, then restore locally +- Cross-account backup does **not support cold tier storage** for copies +- The `backup:CopyIntoBackupVault` action must be explicitly allowed on the destination vault via resource-based policy +- After disabling cross-account backup, jobs may still run for up to **15 minutes** (eventual consistency) +- Backups expire with a random deletion window of up to **8 hours** after the lifecycle policy triggers + +## Commands and Syntax + +**Destination vault access policy (account-level):** +```json +{ + "Version": "2012-10-17", + "Statement": [{ + "Effect": "Allow", + "Principal": {"AWS": "arn:aws:iam::123456789012:root"}, + "Action": "backup:CopyIntoBackupVault", + "Resource": "*" + }] +} +``` + +**Vault access scoped to an organization (using `PrincipalOrgID`):** +```json +{ + "Version": "2012-10-17", + "Statement": [{ + "Effect": "Allow", + "Principal": "*", + "Action": "backup:CopyIntoBackupVault", + "Resource": "*", + "Condition": { + "StringEquals": {"aws:PrincipalOrgID": ["o-a1b2c3d4e5"]} + } + }] +} +``` + +**SCP to limit destinations by tag:** +```json +{ + "Effect": "Deny", + "Action": "backup:CopyIntoBackupVault", + "Resource": "*", + "Condition": {"Null": {"aws:ResourceTag/DestinationBackupVault": "true"}} +} +``` + +**SCP to limit destinations by account/vault name (using `backup:CopyTargets`):** +```json +{ + "Effect": "Deny", + "Action": "backup:CopyFromBackupVault", + "Resource": "arn:aws:ec2:*:*:snapshot/*", + "Condition": { + "ForAllValues:ArnNotLike": { + "backup:CopyTargets": [ + "arn:aws:backup:*:112233445566:backup-vault:cab-*", + "arn:aws:backup:us-east-1:123456789012:backup-vault:fort-knox" + ] + } + } +} +``` + +**SCP to limit destinations by OU path (using `backup:CopyTargetOrgPaths`):** +- Uses `ForAllValues:StringNotLike` with `backup:CopyTargetOrgPaths` condition key + +**API:** `UpdateGlobalSettings` — programmatically enable/disable cross-account backup + +## Relationships + +- **AWS Organizations** — prerequisite; accounts must be members of the same org; SCPs control destination restrictions +- **AWS KMS** — customer managed keys required for destination vault encryption and source resource sharing +- **IAM** — `AWSBackupFullAccess` managed policy or custom policies needed; service-linked roles required in destination account for restore +- **EC2 Allowed AMIs** — if enabled, source account ID must be allowlisted or EC2 copies fail +- **Backup Plans / Vaults** — cross-account copy is configured as a copy rule within a backup plan +- **Cold storage lifecycle** — 90-day minimum; not all resources support it; not supported for cross-account cold tier copies + +## Exam-Relevant Points + +- Cross-account backup requires **AWS Organizations** — accounts must be in the same org +- The **default vault cannot be a destination** (its encryption key can't be shared) +- You **cannot restore directly across accounts** — must copy first, then restore in the destination account +- The management account must **enable cross-account backup** before any member can use it +- `backup:CopyIntoBackupVault` controls **destination vault ingress**; `backup:CopyFromBackupVault` controls **source vault egress** +- Cold storage minimum is **90 days**; expiry must be >90 days after cold storage transition +- First copy is **full**, subsequent are **incremental** (if the service supports it) +- To prevent data leakage from accounts leaving the org, use an SCP to deny `organizations:LeaveOrganization` +- Deleting the copy job IAM role mid-copy causes a "**Failed to unshare snapshot**" status +- Cross-account jobs may continue for **up to 15 minutes** after feature is disabled +- Destination account must have the **service-linked role** for the resource type being restored + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-creating-a-backuphtml.md b/entries/2026/03/12/aws-backup-latest-devguide-creating-a-backuphtml.md new file mode 100644 index 0000000000000000000000000000000000000000..0a1f2bcfcf5ccf45ada192c2ca8886e2743fcc01 --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-creating-a-backuphtml.md @@ -0,0 +1,43 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/creating-a-backup.html +source: sources/aws-backup-latest-devguide-creating-a-backuphtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:05 + + + +## Overview +This page describes how AWS Backup creates backups across different resource types, covering both automatic (plan-based) and on-demand backup creation, backup job lifecycle, incremental backup behavior, and the access requirements for source resources. + +## Key Concepts +- **Automatic backups** are created by backup plans, which define lifecycle settings, target vault, and tags +- **On-demand backups** are manually initiated, create a backup job that transitions to `Running` within an hour, and are useful for ad-hoc or test backups +- **On-demand backups cannot be used with PITR** — PITR requires continuous backups that track changes over time, while on-demand backups capture a point-in-time snapshot +- **Backup job statuses**: `CREATED`, `PENDING`, `RUNNING`, `ABORTING`, `ABORTED`, `COMPLETED`, `FAILED`, `EXPIRED`, `PARTIAL` +- **Incremental backups** capture only changes since the previous backup, but each incremental backup retains enough reference data to perform a full restore — even if the original full backup has been deleted +- **Incremental backup region rule**: Fully-managed resources require an earlier backup in the *same vault*; other resource types only need an earlier backup in the same *Region* +- **AWS Backup retains existing backups** consistent with lifecycle policy regardless of source resource health + +## Commands and Syntax +No CLI commands on this page. Key procedures referenced: +- Create on-demand backup: Console → **Protected resources** or via `aws backup start-backup-job` +- Backup jobs viewable on **Jobs** page in AWS Backup console +- Each backup job has a unique ID (e.g., `D48D8717-0C9D-72DF-1F56-14E703BF2345`) + +## Relationships +- **Backup plans** → define automatic backup schedules, lifecycle, vault, and tags +- **PITR / Continuous backups** → distinct from on-demand; required for point-in-time restore +- **Feature availability table** → lists which resources support incremental backups +- **Supported resource types** with specific subtopics: CloudFormation stacks, Aurora DSQL, DynamoDB (advanced), EBS, RDS, Redshift, Redshift Serverless, EKS, SAP HANA on EC2, S3, Timestream, VMs, Windows VSS + +## Exam-Relevant Points +- On-demand backups **cannot** be used with PITR — this is a common trap question +- Incremental backups allow full restore even after the original full backup is deleted (reference data is preserved) +- Source resource state requirements: EC2 must be `running` or `stopped` (not `terminated`); RDS/Aurora/DocumentDB must be `AVAILABLE`; EFS must be `AVAILABLE`; FSx must be `AVAILABLE` +- FSx for ONTAP excludes DP volumes, LS volumes, full volumes, and volumes on full file systems +- Fully-managed resources need an earlier backup *in the same vault* for incremental; non-fully-managed need it in the same *Region* +- Backup job has 9 possible statuses — `PARTIAL` indicates incomplete success + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-cross-region-backuphtml.md b/entries/2026/03/12/aws-backup-latest-devguide-cross-region-backuphtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1944c0c0923e7952aa0dd048e45498b391aecdbe --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-cross-region-backuphtml.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/cross-region-backup.html +source: sources/aws-backup-latest-devguide-cross-region-backuphtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:05 + + + +## Overview +This page covers AWS Backup's cross-Region replication capability, which allows copying backups to different AWS Regions either on-demand or via scheduled backup plans. This feature supports business continuity and compliance requirements by storing backup copies at geographic distance from production data. The first copy to a new Region is always a full copy, with subsequent copies being incremental (for services that support it). Copies are re-encrypted using the destination vault's customer managed key. + +## Key Concepts +- **Cross-Region replication**: Copy backups to other AWS Regions for disaster recovery and compliance +- **Incremental copies**: After the initial full copy, subsequent copies to the same Region are incremental (for services that support it) +- **Re-encryption**: Copies are re-encrypted with the customer managed key of the destination backup vault +- **Amazon EBS exception**: Changing encryption status during an EBS snapshot copy forces a full (non-incremental) copy +- **Cold storage transition**: Backup copies can be transitioned to cold storage; minimum retention in cold storage is **90 days** and cannot be changed after transition +- **Cold storage not supported for cross-Region copies** stored in cold tiers directly — cold storage transition happens at the destination +- **Retention period**: Must be greater than 90 days beyond the cold storage transition value +- **IAM role**: AWS Backup needs an IAM role with AWS Backup as a trusted entity to perform copies; a default role can be auto-created + +## Commands and Syntax +**On-demand cross-Region copy (Console)**: +1. Open AWS Backup console → **Backup vaults** +2. Select vault → select recovery point → **Actions** → **Copy** +3. Configure: Copy to destination (Region), Destination Backup vault, Transition to cold storage, Retention period, IAM role +4. Choose **Copy** + +**Scheduled cross-Region copy (Backup Plan)**: +1. Open AWS Backup console → **Backup plans** → **Create Backup plan** +2. Choose **Build a new plan**, enter plan name +3. Configure backup rule: rule name, vault, frequency, optional PITR +4. Set **Copy to destination** with destination Region and vault +5. Choose **Create plan** + +## Relationships +- **Backup Plans**: Cross-Region copy rules are configured as part of backup plan rules +- **Backup Vaults**: Both source and destination vaults must exist; destination vault's KMS key handles re-encryption +- **Encryption**: See "Encryption for a backup copy to a different account or AWS Region" for copy job encryption details +- **Feature Availability**: Not all resources or Regions support cross-Region backup — check feature availability tables +- **Cross-Account Copy**: Related but separate feature; can be combined with cross-Region copy +- **Amazon RDS**: Requires matching option groups in source and target Regions +- **PITR (Point-in-Time Recovery)**: Can be enabled for supported services within backup plans that include cross-Region rules + +## Exam-Relevant Points +- First cross-Region copy is **always full**; subsequent copies are **incremental** (for supported services) +- **EBS exception**: Changing encryption status forces a full copy instead of incremental +- Cold storage minimum retention is **90 days**, and this is **immutable** after transition +- Retention period must exceed cold storage transition value by **more than 90 days** +- Cross-Region copies do **not** support storage in cold tiers directly +- **Amazon RDS** cross-Region copy requires the **same option group** in the target Region — otherwise the copy job fails +- AWS Backup re-encrypts copies using the **destination vault's customer managed key** +- IAM role used for copy must have **AWS Backup as a trusted entity** + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-encryptionhtml.md b/entries/2026/03/12/aws-backup-latest-devguide-encryptionhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..27572a9e8aba7752f89c5438ecca0a032e6e1813 --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-encryptionhtml.md @@ -0,0 +1,70 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/encryption.html +source: sources/aws-backup-latest-devguide-encryptionhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:06 + + + +## Overview + +This page covers how AWS Backup handles encryption for backup recovery points, including independent encryption (where backups can use different encryption than source resources), encryption behavior during cross-account and cross-Region copies, and the KMS permissions required for successful backup/restore operations. + +## Key Concepts + +- **Independent encryption**: Backups stored in AWS Backup vaults can use a different KMS key than the source resource's encryption — but only for resource types that support full AWS Backup management +- Resources **not** fully managed by AWS Backup inherit encryption settings from the source resource +- Independent encryption uses the **AES-256** encryption algorithm +- The encryption key is configured on the **backup vault**, not per-backup +- IAM role permissions and KMS key policy permissions must **both** grant access to the relevant KMS key +- **Cross-Region/cross-account copies** are automatically encrypted using the destination vault's KMS key +- Cross-account copy with **AWS managed keys is not supported** for resources not fully managed by AWS Backup (because AWS managed key policies are immutable and can't be shared across accounts) +- AWS Backup Audit Manager can automatically detect unencrypted backups + +## Resource Encryption Support Matrix + +**Supports independent encryption** (vault-key controlled): +- Amazon S3, VMware VMs, DynamoDB (with Advanced backup enabled), Amazon EFS, Amazon Timestream, CloudFormation, SAP HANA on EC2 + +**Does NOT support independent encryption** (inherits source encryption): +- Amazon EBS, EC2 AMIs, Amazon RDS, Aurora, Storage Gateway, Amazon FSx, DocumentDB, Neptune, Amazon Redshift, Redshift Serverless, DynamoDB (without Advanced backup) + +## Commands and Syntax + +Minimum KMS key policy permissions required: +- `kms:CreateGrant` +- `kms:GenerateDataKey` +- `kms:Decrypt` + +Troubleshooting workflow: +1. Run `kms:GetKeyPolicy` to review the key policy +2. Verify no Deny statements block backup operations +3. Run `kms:PutKeyPolicy` to update if needed + +For cross-Region copy jobs, the key must include `"kms:ResourcesAliases": "alias/aws/backup"` in the `DescribeKey` permission. + +For DynamoDB without Advanced backup, the IAM role needs `kms:Decrypt` and `kms:GenerateDataKey`. + +## Relationships + +- **AWS KMS**: Central dependency — all encryption keys are managed through KMS +- **Backup Vaults**: Independent encryption is configured at the vault level via its associated KMS key +- **Cross-Region / Cross-Account Backup**: Encryption behavior changes for copies; destination vault key is used +- **AWS Backup Audit Manager**: Can detect unencrypted backups as a compliance control +- **Full vs. Not-Full AWS Backup Management**: Determines whether independent encryption and cross-account copy with managed keys are available +- **Individual services** (EBS, RDS, Aurora, etc.): Non-fully-managed resources follow their own service encryption rules + +## Exam-Relevant Points + +- Know which resource types support independent encryption vs. inheriting source encryption +- Cross-account copy **requires customer managed keys (CMK)** for resources not fully managed by AWS Backup — AWS managed keys won't work due to immutable key policies +- Copies of **unencrypted Aurora, DocumentDB, and Neptune** clusters remain unencrypted even when copied +- The three minimum KMS permissions: `kms:CreateGrant`, `kms:GenerateDataKey`, `kms:Decrypt` +- EBS snapshots can be re-encrypted with a different KMS key **during restore**, not during backup +- S3 backups are **always encrypted** even if the source bucket is unencrypted +- DynamoDB encryption behavior differs based on whether **Advanced DynamoDB backup** is enabled +- Failed backup jobs can result from KMS key Deny statements or revoked grants + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-eventbridgehtml.md b/entries/2026/03/12/aws-backup-latest-devguide-eventbridgehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..70432b8b94f877a560528e571dd6c4f7b0a9e1db --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-eventbridgehtml.md @@ -0,0 +1,79 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/eventbridge.html +source: sources/aws-backup-latest-devguide-eventbridgehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:06 + + + +## Overview + +This page documents how AWS Backup integrates with Amazon EventBridge to monitor backup-related events. AWS Backup emits events to EventBridge on a best-effort basis every 5 minutes when the state of backup jobs, copy jobs, restore jobs, backup plans, backup vaults, recovery points, region settings, recovery point indexing, or malware scans changes. + +## Key Concepts + +- **Event delivery**: Best-effort, emitted every 5 minutes — not real-time +- **Event source**: All events use `"source": "aws.backup"` +- **Detail types** (9 categories): + - `Backup Job State Change` — states: CREATED, PENDING, RUNNING, COMPLETED, FAILED, ABORTED, EXPIRED + - `Copy Job State Change` — states: CREATED, RUNNING, COMPLETED, FAILED + - `Restore Job State Change` — states: CREATED, PENDING, RUNNING, COMPLETED, FAILED + - `Backup Plan State Change` — states: CREATED, MODIFIED, DELETED + - `Backup Vault State Change` — states: CREATED, MODIFIED, DELETED + - `Recovery Point State Change` — states: COMPLETED, PARTIAL, DELETING, EXPIRED, AVAILABLE, STOPPED, CREATING + - `Region Setting State Change` — state: MODIFIED + - `Recovery Point Index State Change` — states: ACTIVE, DELETED, FAILED + - `Scan Job State Change` — states: CREATED, RUNNING, COMPLETED, COMPLETED WITH ISSUES, FAILED, CANCELED +- **status vs state inconsistency**: Some events use `"status"` (restore jobs, recovery points) while others use `"state"` (backup jobs, copy jobs) — this mirrors the AWS Backup API +- **"Completed with issues"**: Console-only status; in events it appears as `COMPLETED` with a non-empty `statusMessage` (backup jobs only) +- **Alternative to EventBridge**: AWS Backup notification API with SNS, but EventBridge covers more event types (vault changes, copy jobs, region settings, cold/warm recovery point counts) +- **Vault MODIFIED events** include `isLocked` field indicating vault lock status +- **Recovery Point events** include `storageClass` (WARM) and `lifecycle` with `deleteAfterDays` +- **`createdBy` block**: Present when job was triggered by a backup plan; includes `backupPlanId`, `backupPlanArn`, `backupPlanVersion`, `backupPlanRuleId` + +## Commands and Syntax + +No CLI commands shown. EventBridge rule creation is referenced via external link. Key event structure pattern: + +```json +{ + "detail-type": "Backup Job State Change", + "source": "aws.backup", + "detail": { + "backupJobId": "...", + "state": "FAILED|COMPLETED|RUNNING|...", + "statusMessage": "...", + "resourceType": "EBS|EC2|RDS|Aurora|...", + "resourceArn": "...", + "backupVaultArn": "...", + "percentDone": 0-100, + "retryCount": 3 + } +} +``` + +## Relationships + +- **Amazon EventBridge**: Target service for event routing and rule-based automation +- **Amazon SNS**: Alternative notification mechanism via AWS Backup notification API (fewer event types) +- **Amazon CloudWatch**: Related monitoring via CloudWatch Events and Metrics +- **Backup Plans**: Events include `createdBy` linking jobs back to their originating plan and rule +- **Backup Vaults**: Vault state changes tracked separately; vault lock status exposed +- **Recovery Points**: Lifecycle management visible through `lifecycle` and `calculatedLifeCycle` fields +- **Restore Testing Plans**: Restore job events include `restoreTestingPlanArn` when part of a restore testing plan + +## Exam-Relevant Points + +- EventBridge delivery is **best-effort every 5 minutes** — not guaranteed real-time +- EventBridge tracks **more event types than SNS notifications** (vault changes, copy jobs, region settings, cold/warm recovery points) +- The `state` vs `status` field inconsistency is by design and matches the API +- "Completed with issues" is a **console-only concept** — in events, monitor for COMPLETED + non-empty statusMessage +- Backup jobs have 7 states (CREATED → PENDING → RUNNING → COMPLETED/FAILED/ABORTED/EXPIRED) +- The `EXPIRED` state occurs when a job couldn't start because another job for the same resource was already running +- Recovery points have a `storageClass` field (WARM) relevant to cost and retrieval tiering +- Copy job events include both `sourceBackupVaultArn` and `destinationBackupVaultArn` for cross-region/cross-account copies +- Malware scan jobs are a distinct event category with their own lifecycle + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-getting-startedhtml.md b/entries/2026/03/12/aws-backup-latest-devguide-getting-startedhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b1b61d2493fc16e60f68b716baaf3a96f8ff25c8 --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-getting-startedhtml.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/getting-started.html +source: sources/aws-backup-latest-devguide-getting-startedhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:06 + + + +## Overview + +This page walks through the initial setup steps for AWS Backup, covering prerequisites, service opt-in configuration, and the different backup creation options (on-demand, scheduled, and automatic on resource creation). + +## Key Concepts + +- **Service opt-in**: Mechanism to enable/disable which AWS services AWS Backup can protect; configured per account and per Region +- **Opt-in behavior quirks**: + - Tag-based resource assignments **respect** service opt-in settings + - Explicitly assigned resource types are backed up **regardless** of opt-in status — **except** Aurora, Neptune, and Amazon DocumentDB, which always require opt-in + - When both resource type and tags are specified, resource type filters first, then tags filter further +- **Auto opt-in**: When an account first uses AWS Backup in a Region, it auto-opts into all resource types supported at that time; newly supported services added later require manual opt-in +- **Region constraint**: Resources included in the same backup plan must be in the same AWS Region +- **FSx for NetApp ONTAP**: For tag-based selection, tags must be applied to individual volumes, not the file system +- **Scope boundary**: AWS Backup does not govern or manage backups taken outside of AWS Backup (e.g., native service snapshots created independently) + +## Commands and Syntax + +No CLI commands on this page — all procedures are console-based: + +1. **Configure services**: AWS Backup console → Settings → Service opt-in → Configure resources → toggle services on/off → Confirm +2. **Opt in to all**: Same path, move all toggles to enabled + +## Relationships + +- **IAM**: Root user access works but IAM admin user is recommended +- **Cross-account management**: Opt-in behavior for management and delegated administrator accounts is covered in the cross-account management topic +- **Backup plans**: Service opt-in directly affects which resources are included in backup plans +- **Supported resources**: Links to the full list of supported AWS services and third-party applications + +## Exam-Relevant Points + +- Aurora, Neptune, and DocumentDB **always require explicit opt-in** — they are exceptions to the rule that explicitly assigned resource types bypass opt-in +- Opt-in is **per-account, per-Region** — not global +- New services added to a Region after initial setup are **not automatically opted in** +- Tag-based assignments respect opt-in; explicit resource type assignments generally do not (with the three exceptions above) +- FSx for NetApp ONTAP requires volume-level tags, not file-system-level tags, for tag-based backup selection + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-logging-using-cloudtrailhtml.md b/entries/2026/03/12/aws-backup-latest-devguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2c65dc42cb3cb4a9e75203ccc26693d0e93cdbe4 --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/logging-using-cloudtrail.html +source: sources/aws-backup-latest-devguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:07 + + + +## Overview +AWS Backup integrates with AWS CloudTrail to log all API calls and service events as audit records. CloudTrail captures who made requests, from where, and when — covering console actions, API calls, and internal service events like backup/restore completions. This enables compliance auditing, operational troubleshooting, and security monitoring of backup operations across single accounts and AWS Organizations. + +## Key Concepts +- **CloudTrail integration**: All AWS Backup API calls are captured as CloudTrail events automatically — no opt-in required for basic Event history. +- **Event history**: Free, immutable, searchable record of the past **90 days** of management events per Region. Available by default. +- **Trails**: Deliver log files to S3 for retention beyond 90 days. Console-created trails are multi-Region by default; CLI can create single-Region trails. +- **CloudTrail Lake**: SQL-queryable event data store using Apache ORC columnar format. Supports advanced event selectors. Incurs additional costs. +- **Service events vs. API events**: AWS Backup generates CloudTrail events that are **not necessarily tied to public API calls** (e.g., `BackupJobCompleted` is an `AwsServiceEvent`, not an `AwsApiCall`). +- **Identity tracking**: Each log entry identifies whether the request came from root, IAM user, IAM Identity Center user, federated/temporary credentials, or another AWS service. +- **eventSource**: All AWS Backup events use `backup.amazonaws.com`. + +## Commands and Syntax +No CLI commands specific to this page, but key log entry fields to understand: + +| Field | Meaning | +|-------|---------| +| `eventName` | The action (e.g., `StartBackupJob`, `BackupJobCompleted`) | +| `eventType` | `AwsApiCall` for user-initiated; `AwsServiceEvent` for service-generated | +| `eventSource` | Always `backup.amazonaws.com` for AWS Backup | +| `userIdentity.invokedBy` | Shows `backup.amazonaws.com` when the service itself triggers the event | +| `serviceEventDetails` | Contains backup-specific data (state, resourceType, backupSizeInBytes, etc.) | + +## Relationships +- **CloudTrail**: The logging backbone — AWS Backup depends on it for audit trails. +- **S3**: Storage target for CloudTrail trail log files. +- **CloudTrail Lake**: Alternative query-based storage for events (ORC format). +- **AWS Organizations**: Cross-account backup policies generate organizational events (`CreateOrganizationalBackupPlan`, `UpdateOrganizationalBackupPlan`, `DeleteOrganizationalBackupPlan`, `InvalidOrganizationBackupPlan`) in member accounts. +- **IAM**: Identity information in every log entry ties back to IAM principals/roles. +- **Backup Vaults / Recovery Points**: Referenced in log entries via ARNs. + +## Exam-Relevant Points +- CloudTrail Event history is **free** and covers **90 days** — no trail needed for short-term lookup. +- For retention **beyond 90 days**, you must create a trail or CloudTrail Lake event data store. +- Console-created trails are **multi-Region by default**; CLI-created trails can be single-Region. +- AWS Backup emits **two categories** of CloudTrail events: `AwsApiCall` (user actions like `StartBackupJob`, `DeleteRecoveryPoint`) and `AwsServiceEvent` (system events like `BackupJobCompleted`, `CopyJobCompleted`). +- Cross-account backup management via Organizations generates specific events: `CreateOrganizationalBackupPlan`, `UpdateOrganizationalBackupPlan`, `DeleteOrganizationalBackupPlan`, `InvalidOrganizationBackupPlan`. +- The `InvalidOrganizationBackupPlan` event fires when AWS Backup receives a malformed backup policy from Organizations — useful for troubleshooting org-level backup failures. +- First copy of management events delivered to S3 via a trail is **free** (S3 storage charges still apply). +- CloudTrail Lake uses **Apache ORC** columnar format and incurs costs for both ingestion and storage. + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-manage-cross-accounthtml.md b/entries/2026/03/12/aws-backup-latest-devguide-manage-cross-accounthtml.md new file mode 100644 index 0000000000000000000000000000000000000000..29f92db00bcd65c812f6cff6fb136ee0b2683192 --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-manage-cross-accounthtml.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/manage-cross-account.html +source: sources/aws-backup-latest-devguide-manage-cross-accounthtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:07 + +## Overview + +This page covers how to manage AWS Backup resources across multiple AWS accounts using AWS Organizations. It explains cross-account monitoring, backup policies applied at the organization level, delegated administrator accounts, and how resource opt-in settings interact between management and member accounts. + +## Key Concepts + +- **Cross-account management** requires all accounts to belong to the same AWS Organization +- **Backup policies** combine AWS Backup plans with AWS Organizations policies to standardize backup strategies across accounts +- **Policy merging** occurs when backup policies share the same backup plan name; policies at lower OUs can override parent values (e.g., retention period) +- **Delegated administrator** — a member account registered to perform most AWS Backup admin tasks (managing policies, monitoring cross-account jobs) without using the management account +- Delegated administrators **cannot** override service opt-in settings of other member accounts (only the management account can) +- Up to **5 delegated administrator accounts** can be registered via the console +- **Resource opt-in rules**: For backup plans created by Organizations-level policies, the management account's opt-in settings override member account settings; local backup plans follow the member account's own opt-in settings +- When you opt out of cross-account monitoring, jobs remain visible for **30 days** after reaching a terminus state +- Each member account needs at least one **backup vault** (or logically air-gapped vault) and an **IAM role** + +## Commands and Syntax + +**Register a delegated administrator:** +```bash +aws organizations register-delegated-administrator \ + --account-id 012345678912 \ + --service-principal "backup.amazonaws.com" +``` + +**Deregister a delegated administrator:** +```bash +aws organizations deregister-delegated-administrator \ + --account-id 012345678912 \ + --service-principal "backup.amazonaws.com" +``` + +**Enable cross-account management (console):** +1. Sign in as management account → AWS Backup console +2. Navigate to **Settings** +3. Enable **Backup policies** and **Cross-account monitoring** + +## Relationships + +- **AWS Organizations** — required foundation; provides policy inheritance, OU hierarchy, and account grouping +- **AWS Backup backup plans** — backup policies in Organizations create corresponding backup plans in member accounts +- **IAM** — delegated administrators need the `AWSBackupOrganizationAdminAccess` managed policy; the `AWSBackupServiceRoleForBackup` service-linked role should exist in the management account +- **Backup vaults** — each member account must have at least one vault for policies to target +- **AWS Organizations quotas** apply to cross-account management + +## Exam-Relevant Points + +- Cross-account management has **four components**: cross-account monitoring, cross-account backup, backup policies, and delegated administrator — not all available in every Region +- **Only the management account** can register/deregister delegated administrators and enable cross-account management +- **Delegated administrators can** manage backup policies and monitor cross-account jobs but **cannot** override opt-in settings +- Management account opt-in settings **override** member account settings only for Organizations-managed backup plans; locally-created backup plans follow the member account's own settings +- Backup policies at child OUs can **override** parent policy values (e.g., changing retention from 7 to 30 days) through policy merging — merging only applies when policies share the same backup plan name +- The service principal for AWS Backup delegation is `backup.amazonaws.com` +- The Backup Service-Linked Role can be created by: enabling delegated administrator, visiting the Backup Vaults console page, or manual creation via IAM + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-metering-and-billinghtml.md b/entries/2026/03/12/aws-backup-latest-devguide-metering-and-billinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..970b1e2f8a7ff5c28373dc9d70f29197d2338811 --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-metering-and-billinghtml.md @@ -0,0 +1,51 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/metering-and-billing.html +source: sources/aws-backup-latest-devguide-metering-and-billinghtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:07 + + + +## Overview + +This page covers the billing structure, cost management, and pricing considerations for AWS Backup, including how charges appear on AWS bills depending on whether resources support full AWS Backup management, copy job billing, cost allocation tags, Audit Manager pricing, and Aurora-specific pricing nuances. + +## Key Concepts + +- **Warm storage minimum retention**: Retain backups in warm storage for **at least one week** to avoid creating expensive full backups daily instead of incremental ones. +- **Full AWS Backup management billing**: When a resource supports full management, all backup charges (storage, data transfers, restores, early deletion) appear under the "Backup" section of the AWS bill. +- **Non-fully managed resources**: Storage costs are billed by the respective AWS service, **unless** using a Logically Air-Gapped Vault, which shifts all charges to AWS Backup. +- **Copy job billing**: You are only charged when a recovery point is successfully created in the destination vault; failed copy jobs incur no charge. +- **Cross-account/cross-Region copy billing**: + - Fully managed resources → **source account** pays data transfer + - Non-fully managed resources → **destination account** pays data transfer +- **Cost allocation tags**: Can be applied to track and optimize backup costs at a granular level, viewable via AWS Cost Explorer. +- **Audit Manager pricing**: Charged per **control evaluation** (one resource evaluated against one control); requires AWS Config recording enabled (billed separately per configuration item). +- **Aurora continuous backups**: Snapshots within the configured retention period (up to 35 days) incur **no storage charge**; snapshots kept beyond that window are charged as full backups. + +## Commands and Syntax + +No CLI commands or configuration syntax are provided on this page. Cost allocation tags are configured via the AWS Billing console and AWS Cost Explorer. + +## Relationships + +- **Feature availability table** — determines whether a resource is fully managed (affects billing location) +- **Logically air-gapped vaults** — override default billing behavior for non-fully managed resources +- **AWS Config** — required dependency for Audit Manager; has its own billing +- **AWS Cost Explorer** — used with cost allocation tags for cost visibility +- **Retention policies / backup plans** — directly affect costs (warm storage duration, incremental vs. full backups) +- **Aurora continuous backups** — special pricing rules within 35-day retention window + +## Exam-Relevant Points + +- Warm storage retention of **less than one week** can force daily **full backups** instead of incremental, significantly increasing costs. +- Know where charges appear: fully managed → "Backup" section; non-fully managed → respective service section. +- Logically air-gapped vaults are the exception: all charges go to AWS Backup regardless of management type. +- Cross-account copy billing differs by management type: **source pays** for fully managed, **destination pays** for non-fully managed. +- Failed copy jobs are **not charged**. +- Audit Manager requires **both** AWS Backup and AWS Config — costs come from two separate bills. +- Aurora snapshots within the continuous backup retention period (up to 35 days) are **free**; beyond that they're charged as full backups. + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-plan-options-and-configurationhtml.md b/entries/2026/03/12/aws-backup-latest-devguide-plan-options-and-configurationhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d4af8abec8700920de2f56a0f297faa57dee17a9 --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-plan-options-and-configurationhtml.md @@ -0,0 +1,75 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/plan-options-and-configuration.html +source: sources/aws-backup-latest-devguide-plan-options-and-configurationhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:08 + + + +## Overview + +This page details the configuration options available when creating AWS Backup plans, including backup rules (frequency, windows, lifecycle), storage tiers, cross-region copies, backup vaults, advanced service-specific settings, and malware scanning integration with GuardDuty. + +## Key Concepts + +- **Backup plan name**: Max 50 characters; alphanumeric, dashes, underscores, periods allowed +- **Backup rules**: Plans contain one or more rules; each rule defines frequency, window, lifecycle, vault, and copy settings +- **Overlapping rules optimization**: When two rules' start windows overlap, AWS Backup keeps only the backup with the longer retention period +- **Backup frequency**: Hourly, every 12 hours, daily, weekly, monthly, or custom cron expression +- **Continuous backups (PITR)**: Enable point-in-time restore; cannot be scheduled with cron; retention limited to 1–35 days +- **Snapshot retention**: 1 day to 100 years (or indefinite) +- **Backup window defaults**: Start 12:30 AM local, start within 8 hours, complete within 7 days (complete-within doesn't apply to FSx) +- **Storage tiers**: Warm (default) and cold; cold storage requires minimum 90-day retention beyond warm period; `DeleteAfterDays` must be ≥ `MoveToColdStorageAfterDays` + 90 +- **Cold storage resources**: CloudFormation, DynamoDB (advanced features), EBS (via Snapshot Archive), EFS, SAP HANA on EC2, Timestream, VMware VMs +- **Incremental vs full in cold**: EBS incremental backups become full after transition; DynamoDB is always full +- **Backup vault**: Container for organizing backups; controls KMS encryption key and access policies +- **Cross-region/cross-account copy**: Configurable destination region, vault, IAM role, and independent lifecycle +- **Recovery point tags**: Automatically applied to backups at creation +- **Maintenance window conflicts**: AWS database services can't start backups 1 hour before/during maintenance; FSx can't start 4 hours before/during (Aurora exempt) +- **Job retry**: During start window, failed jobs retry at least every 10 minutes; status goes CREATED → RUNNING or EXPIRED +- **Malware scanning**: Integration with GuardDuty for automated scanning of EC2, EBS, S3 recovery points + +## Commands and Syntax + +- **Cron expressions** (6-field AWS format): + - `15 * ? * * *` — every hour at :15 + - `0 12 * * ? *` — daily at 12:00 UTC + - Note: "every 12 hours" with start time after 11:59 runs only once/day + +- **CLI lifecycle parameters**: + - `DeleteAfterDays` — total retention period + - `MoveToColdStorageAfterDays` — days in warm before transitioning + - `OptInToArchiveForSupportedResources` — Boolean for EBS archive + - `create-backup-plan` / `update-backup-plan` CLI commands + +- **Malware scanning setup**: + - IAM role trusting `malware-protection.guardduty.amazonaws.com` + - Attach `AWSBackupGuardDutyRolePolicyForScans` to GuardDuty role + - Attach `AWSBackupServiceRolePolicyForScans` to backup selection role + +## Relationships + +- **EventBridge**: Cron expressions follow EventBridge syntax; daylight saving impacts apply +- **KMS**: Backup vaults use KMS keys for encryption +- **IAM**: Cross-region copies and malware scanning require specific IAM roles with AWS Backup as trusted entity +- **GuardDuty**: Provides malware scanning for recovery points +- **PITR**: Continuous backups link to point-in-time recovery feature for supported services +- **S3**: Advanced settings interact with S3 object ownership, ACLs, and bucket policies +- **EC2/VSS**: Windows VSS integration for application-consistent backups + +## Exam-Relevant Points + +- Cold storage minimum retention is **90 days** beyond the warm-to-cold transition point +- `DeleteAfterDays` must be at least `MoveToColdStorageAfterDays + 90` +- Continuous backup retention is **1–35 days**; snapshot retention is **1 day–100 years** +- When backup rules overlap, the rule with **longer retention wins** (not higher frequency) +- AWS recommends **at least 8 days** in warm storage before cold transition for incremental backup resources +- Database services block backups **1 hour before maintenance**; FSx blocks **4 hours before** (Aurora is exempt) +- Backup creation date = **job start date**, not completion date — affects retention calculation +- EBS incremental backups **become full** when transitioned to cold storage +- Continuous backup settings on an S3 bucket **override snapshot backup ACL/tag settings** +- Cross-region copy lifecycle is independent; if `DeleteAfterDays` is unset on the copy, it inherits from the source backup + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-security-iam-awsmanpolhtml.md b/entries/2026/03/12/aws-backup-latest-devguide-security-iam-awsmanpolhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..4a6ad194705985c5c0e87147c7a669456c319d8f --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-security-iam-awsmanpolhtml.md @@ -0,0 +1,86 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/security-iam-awsmanpol.html +source: sources/aws-backup-latest-devguide-security-iam-awsmanpolhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:08 + + + +## Overview + +This page documents the AWS managed and customer managed IAM policies for AWS Backup. It covers ~20 AWS managed policies that control access to backup operations, audit, restore, indexing, S3 backup/restore, SAP HANA, GuardDuty scanning, and service-linked roles. It also provides guidance on building customer managed policies for specific resource types (DynamoDB, EBS, EC2, EFS, FSx, RDS, S3, Storage Gateway, virtual machines) with the minimum required IAM permission statements for backup and restore operations. + +## Key Concepts + +- **AWS managed policies** are created/maintained by AWS and cannot be modified; updates automatically apply to all attached principals +- **Customer managed policies** provide fine-grained control (e.g., granting access to RDS backups but not EFS) +- Two categories of managed policies: **user-facing** (control access to AWS Backup) and **service role** (attached to roles passed to AWS Backup) +- **AWSBackupFullAccess** — full admin access: create/edit backup plans, assign resources, restore backups +- **AWSBackupOperatorAccess** — can assign resources to plans and create on-demand backups, but cannot create/edit plans or delete scheduled backups +- **AWSBackupOrganizationAdminAccess** — full AWS Organizations backup policy management across accounts/OUs +- **AWSBackupAuditAccess** — create controls/frameworks, audit compliance, deliver reports to S3 +- **AWSBackupServiceRolePolicyForBackup / ForRestores** — service roles for performing backup/restore of all supported resource types +- **AWSBackupServiceRolePolicyForS3Backup / ForS3Restore** — dedicated S3 backup and restore policies +- **AWSBackupServiceRolePolicyForItemRestores** — granular file/item-level restore from snapshots to S3 or EBS +- **AWSBackupServiceRolePolicyForIndexing** — index snapshot recovery points (EBS direct read API, KMS decrypt) +- **AWSBackupDataTransferAccess** — for SAP HANA Backint agent data transfer to AWS Backup storage plane +- **AWSBackupGuardDutyRolePolicyForScans** — grants GuardDuty permission to scan backups for malware; must be attached to a scanning role in the backup plan +- **Service-linked roles**: `AWSServiceRoleForBackup` (backup operations), `AWSServiceRoleForBackupReports` (compliance reporting) +- When using **custom IAM roles**, you must include resource-specific permissions (e.g., `rds:ListTagsForResource`) in addition to AWS Backup permissions +- **EC2 restores** require an additional `iam:PassRole` statement for the EC2 instance profile role (not the Backup service role) +- **Encrypted backup restores** require either KMS key policy allowlisting or adding `KMSDescribePermissions`, `KMSPermissions`, and `KMSCreateGrantPermissions` to the restore role + +## Commands and Syntax + +**EC2 restore — required PassRole statement:** +```json +{ + "Effect": "Allow", + "Action": "iam:PassRole", + "Resource": "arn:aws:iam::account-id:role/role-name" +} +``` + +**Item-level restore policy (AWSBackupServiceRolePolicyForItemRestores) key permissions:** +- `ec2:DescribeSnapshots`, `ebs:ListSnapshotBlocks`, `ebs:GetSnapshotBlock` — read EBS snapshots +- `s3:PutObject`, `s3:AbortMultipartUpload`, `s3:ListMultipartUploadParts` — write to S3 +- `kms:Decrypt`, `kms:GenerateDataKey` — conditioned on `kms:ViaService` for ec2/s3 + +**Indexing policy key permissions:** +- `ec2:DescribeSnapshots`, `ebs:ListSnapshotBlocks`, `ebs:GetSnapshotBlock` +- `kms:Decrypt` conditioned on `kms:ViaService: ec2.*.amazonaws.com` + +**Storage Gateway backup — additional required statement:** +```json +{ + "Effect": "Allow", + "Action": ["ec2:DescribeSnapshots"], + "Resource": "*" +} +``` + +## Relationships + +- **IAM** — all policies are IAM identity-based policies; understanding managed vs. inline policies is prerequisite +- **AWS KMS** — encrypted backups require KMS key permissions; `kms:ViaService` condition keys scope access to specific services +- **AWS Organizations** — `AWSBackupOrganizationAdminAccess` enables cross-account backup policy management +- **AWS Config** — `AWSBackupAuditAccess` uses Config to evaluate backup compliance +- **Amazon GuardDuty** — malware scanning integration via `AWSBackupGuardDutyRolePolicyForScans` and `AWSBackupServiceRolePolicyForScans` +- **Per-service policies** — customer managed policies reference specific resource services (RDS, DynamoDB, EBS, EC2, EFS, FSx, S3, Storage Gateway, Aurora DSQL) +- **Service-linked roles** — `AWSServiceRoleForBackup` and `AWSServiceRoleForBackupReports` are automatically managed + +## Exam-Relevant Points + +- **FullAccess vs. OperatorAccess**: Operators cannot create/edit backup plans or delete scheduled backups; administrators can +- **EC2 restore requires `iam:PassRole`** for the instance profile role, not the Backup service role +- **Encrypted restores** need either KMS key policy allowlisting OR explicit KMS permissions (`KMSDescribePermissions`, `KMSPermissions`, `KMSCreateGrantPermissions`) +- **Custom IAM roles must include resource-specific permissions** (e.g., `rds:ListTagsForResource`) — these are included in default service roles but not automatically in customer managed policies +- **S3 backup/restore have dedicated policies** (`AWSBackupServiceRolePolicyForS3Backup/S3Restore`) separate from the general backup/restore policies +- **Cross-account S3 backup copies** require adding `BackupVaultPermissions` and `BackupVaultCopyPermissions` statements +- **GuardDuty malware scanning** requires two policies: one on the backup role (`ForScans`) and one on the scanning role (`GuardDutyRolePolicyForScans`); the scanning role is passed to GuardDuty by AWS Backup +- **Item-level restores** use EBS Direct APIs (`ebs:ListSnapshotBlocks`, `ebs:GetSnapshotBlock`) to read individual blocks from snapshots +- **`kms:ViaService` condition** restricts KMS key usage to specific AWS services (e.g., `ec2.*.amazonaws.com`, `s3.*.amazonaws.com`) + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-vault-lockhtml.md b/entries/2026/03/12/aws-backup-latest-devguide-vault-lockhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..100d9a4bcf902ad89e62a6918da2e5dfb60c8d96 --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-vault-lockhtml.md @@ -0,0 +1,82 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/vault-lock.html +source: sources/aws-backup-latest-devguide-vault-lockhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:09 + + + +## Overview + +AWS Backup Vault Lock is an optional feature that provides WORM (write-once, read-many) protection for backup vaults. It prevents deletion or modification of recovery points by any user, including the root user and AWS itself. It offers two modes—Governance and Compliance—and is assessed for SEC 17a-4, CFTC, and FINRA regulatory compliance. + +## Key Concepts + +- **Two lock modes**: Governance mode (removable by users with sufficient IAM permissions) and Compliance mode (immutable after grace time expires) +- **Grace time (cooling-off period)**: Compliance mode only; minimum 3 days, maximum 36,500 days. During this period the lock can still be removed or reconfigured. After it expires, the vault and lock are permanently immutable. +- **WORM configuration**: Write-once, read-many — backups cannot be deleted until their retention lifecycle completes +- **Retention period enforcement**: Optional min/max retention days. New backup/copy jobs that don't conform will **fail**; existing recovery points are **not affected** retroactively +- **Root user cannot override**: Even the AWS account root user cannot delete backups in a locked vault +- **Empty vault deletion**: A compliance-mode locked vault can be deleted only if it contains zero recovery points +- **Account closure override**: If an AWS account is closed and not reopened within 90 days, AWS deletes vault contents even if Vault Lock was in place +- **Not the same as Amazon Glacier Vault Lock** — different feature, different scope + +## Commands and Syntax + +**Create compliance mode vault lock:** +```bash +aws backup put-backup-vault-lock-configuration \ + --backup-vault-name my_vault_to_lock \ + --changeable-for-days 3 \ + --min-retention-days 7 \ + --max-retention-days 30 +``` + +**Create governance mode vault lock** (omit `--changeable-for-days`): +```bash +aws backup put-backup-vault-lock-configuration \ + --backup-vault-name my_vault_to_lock \ + --min-retention-days 7 \ + --max-retention-days 30 +``` + +**Check vault lock status:** +```bash +aws backup describe-backup-vault --backup-vault-name my_vault_to_lock +``` +Key response fields: `Locked` (boolean), `LockDate` (UTC datetime when grace time ends), `MinRetentionDays`, `MaxRetentionDays`. + +**Delete vault lock during grace time:** +```bash +aws backup delete-backup-vault-lock-configuration \ + --backup-vault-name my_vault_to_lock +``` + +**Relevant APIs:** `PutBackupVaultLockConfiguration`, `DeleteBackupVaultLockConfiguration`, `DescribeBackupVault`, `ListBackupVaults` + +## Relationships + +- **AWS Backup Vaults**: Vault Lock is a feature of backup vaults; each vault supports one lock +- **IAM**: Governance mode relies on IAM permissions to control who can manage the lock +- **AWS Backup Audit Manager**: Can automate compliance checks to ensure resources are protected with vault locks +- **Encryption**: Complementary security layer for recovery points +- **Vault access policies**: Resource-based policies that control vault-level permissions +- **EC2 AMI disable**: Can temporarily block restores of EC2 recovery points even in locked vaults; mitigate by denying `ec2:DisableImage` via IAM +- **CloudFormation**: `MinRetentionDays` is required when configuring via CloudFormation (optional otherwise) +- **Amazon Glacier Vault Lock**: Separate, unrelated feature for Glacier only + +## Exam-Relevant Points + +- **Governance vs. Compliance mode differentiator**: presence of `ChangeableForDays` parameter creates compliance mode; omitting it creates governance mode +- Grace time minimum is **3 days (72 hours)**, maximum is **36,500 days (~100 years)** +- Retention period settings only affect **new** backup/copy jobs, not pre-existing recovery points +- After grace time expires in compliance mode, **no one** (including AWS) can alter or delete the lock +- Account closure **overrides** vault lock after the 90-day suspension period +- Vault Lock is compliant with **SEC 17a-4, CFTC, and FINRA** regulations +- An empty locked vault **can** be deleted; a non-empty compliance-locked vault **cannot** +- `MinRetentionDays` minimum value: **1 day**; `MaxRetentionDays` maximum value: **36,500 days** +- Vault Lock is **not** Amazon Glacier Vault Lock — common exam distractor + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-vaultshtml.md b/entries/2026/03/12/aws-backup-latest-devguide-vaultshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..545df5cc4c84ee74c8a3539699ee054645fc97ba --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-vaultshtml.md @@ -0,0 +1,40 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/vaults.html +source: sources/aws-backup-latest-devguide-vaultshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:09 + + + +## Overview +In AWS Backup, a backup vault is a container that stores and organizes backups. When creating a vault, you must specify an AWS KMS encryption key for encrypting certain backups, while other backups' encryption is managed by their source AWS services. + +## Key Concepts +- **Backup vault**: A container for storing and organizing backups in AWS Backup +- **KMS encryption**: Each vault requires an AWS KMS key at creation time; this key encrypts *some* backups in the vault +- **Split encryption model**: Some backups are encrypted by the vault's KMS key; others are encrypted by their source AWS service (e.g., RDS, EBS manage their own encryption) +- **Logically air-gapped vault**: A vault type providing additional isolation for backups +- **Vault Lock**: A feature to enforce immutability/compliance controls on a vault +- **Vault access policies**: Resource-based policies controlling who can access the vault and its backups + +## Commands and Syntax +No specific CLI commands on this page; it serves as a navigation hub to sub-topics (vault creation/deletion, air-gapped vaults, access policies, vault lock). + +## Relationships +- **AWS KMS**: Vault encryption keys come from KMS; understanding KMS key policies is required +- **AWS Backup encryption model**: The split between vault-level and source-service encryption is detailed in the encryption guide +- **Backup plans**: Backup plans target vaults as their storage destination +- **IAM / resource policies**: Vault access policies are resource-based policies (similar pattern to S3 bucket policies) +- **Compliance / WORM**: Vault Lock connects to compliance frameworks requiring immutable backups +- **Cross-account backup**: Vaults in destination accounts receive cross-account backup copies + +## Exam-Relevant Points +- A backup vault **requires** a KMS encryption key at creation time +- Not all backups in a vault are encrypted by the vault's KMS key — some are encrypted by their source service (know which is which) +- Vault Lock provides WORM (Write Once Read Many) compliance capability +- Logically air-gapped vaults provide enhanced isolation for backup protection +- Vault access policies control cross-account and cross-principal access to backups + diff --git a/entries/2026/03/12/aws-backup-latest-devguide-whatisbackuphtml.md b/entries/2026/03/12/aws-backup-latest-devguide-whatisbackuphtml.md new file mode 100644 index 0000000000000000000000000000000000000000..bab56486df70446db36e2caed8bad3c39a321b7a --- /dev/null +++ b/entries/2026/03/12/aws-backup-latest-devguide-whatisbackuphtml.md @@ -0,0 +1,59 @@ +--- +source_url: https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html +source: sources/aws-backup-latest-devguide-whatisbackuphtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:09 + + + +## Overview + +AWS Backup is a fully-managed service for centralizing and automating data protection across AWS services, on-premises, and in the cloud. It replaces per-service custom scripts and manual backup processes with policy-based backup plans, centralized monitoring, cross-region/cross-account capabilities, and compliance auditing — all managed from a single console. + +## Key Concepts + +- **Backup Plans**: Policy-based configurations that define backup requirements (schedule, lifecycle, retention) and are applied to AWS resources. Separate plans can address different business/regulatory needs. +- **Tag-based Assignment**: Resources can be assigned to backup plans via AWS tags, enabling consistent protection across all applications at scale. +- **Backup Vaults**: Isolated, encrypted storage for backups, separate from source resources. Content is immutable. Support resource-based access policies. +- **Vault Lock**: Enforces WORM (write-once-read-many) model — prevents anyone (including root) from deleting backups or altering retention periods. +- **Incremental Backups**: First backup is full; subsequent backups capture only changes, reducing storage costs. +- **Lifecycle Management**: Automatic transition from warm to cold storage tier based on configured schedule to minimize costs. +- **Cross-Region Backup**: Copy backups to other AWS Regions (on-demand or scheduled) for business continuity and compliance. +- **Cross-Account Backup**: Copy backups across accounts within AWS Organizations — "fan in" to a central repository or "fan out" for resilience. Requires AWS Organizations. +- **Full AWS Backup Management**: Opt-in mode for eligible resources providing independent KMS encryption, `arn:aws:backup` ARNs (for backup-specific IAM policies), and centralized billing under "Backup." +- **AWS Backup Audit Manager**: Built-in customizable controls for governance/compliance; generates daily compliance reports; findings can feed into AWS Audit Manager. +- **AWS Backup does NOT govern backups taken outside of AWS Backup** — only backups managed through the service are centralized. + +## Commands and Syntax + +No specific CLI commands on this page, but AWS Backup is managed via: +- **AWS Backup Console** (GUI) +- **AWS Backup APIs** +- **AWS CLI** (`aws backup ...`) + +## Relationships + +- **AWS Organizations**: Required for cross-account management and cross-account backup features (organizational units group accounts). +- **Amazon CloudWatch**: Metrics tracking and alarms for backup activity. +- **Amazon EventBridge**: Event-driven monitoring of AWS Backup events. +- **AWS CloudTrail**: Audit logging of all AWS Backup API calls. +- **Amazon SNS**: Notifications for backup events (success, failure, restore initiated). +- **AWS KMS**: Encryption of backups in vaults (independent encryption under full management). +- **AWS Audit Manager**: Import AWS Backup Audit Manager findings for overall compliance posture. +- **Supported services**: EC2, S3, EBS, DynamoDB, RDS, Aurora (including DSQL), EFS, FSx (all variants), Storage Gateway, DocumentDB, Neptune, Redshift/Serverless, Timestream, CloudFormation, SAP HANA on EC2, EKS, VMware on AWS/Outposts. + +## Exam-Relevant Points + +- AWS Backup only governs backups created **through** AWS Backup — not native service snapshots created independently. +- **Vault Lock** = WORM compliance; once locked, no one can delete backups or shorten retention. +- **Cross-account backup requires AWS Organizations** to be configured first. +- Full AWS Backup management gives backups their own `arn:aws:backup` ARNs, enabling IAM policies scoped specifically to backups (not source resources). +- Full management also means **independent KMS encryption** (vault key, not source resource key) and **centralized billing** under "Backup." +- Cold storage lifecycle transitions reduce cost but are only available for certain resource types. +- Incremental backups are supported for specific resource types only (check feature availability matrix). +- Backup vault content is **immutable** — no one can alter backup content. +- Pricing dimensions: storage, restores, restore testing, cross-Region transfer, and Audit Manager. + diff --git a/entries/2026/03/12/aws-managed-policy-latest-reference-AWSCloudTrail_FullAccesshtml.md b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSCloudTrail_FullAccesshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..8f96399268432b570ee28589d3537ab229314897 --- /dev/null +++ b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSCloudTrail_FullAccesshtml.md @@ -0,0 +1,60 @@ +--- +source_url: https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AWSCloudTrail_FullAccess.html +source: sources/aws-managed-policy-latest-reference-AWSCloudTrail_FullAccesshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:10 + + + +## Overview +The `AWSCloudTrail_FullAccess` policy is an AWS managed IAM policy that grants full access to AWS CloudTrail along with scoped permissions to supporting services (S3, SNS, CloudWatch Logs, IAM, KMS, Lambda, DynamoDB) needed to configure and operate CloudTrail trails, event data stores, and integrations. + +## Key Concepts +- **AWS managed policy** — maintained by AWS, versioned (currently v3), ARN: `arn:aws:iam::aws:policy/AWSCloudTrail_FullAccess` +- Grants `cloudtrail:*` on all resources — full control of trails, event data stores, Lake queries, Insights, etc. +- Does **not** grant unrestricted access to supporting services; permissions are scoped: + - **S3**: Can create buckets and set policies only on `aws-cloudtrail-logs*` buckets; read-only list/get on all buckets + - **SNS**: Can create/configure topics only matching `aws-cloudtrail-logs*`; can list all topics + - **CloudWatch Logs**: Can create log groups only matching `aws-cloudtrail-logs*` + - **KMS**: Can create keys and aliases, list keys/aliases (needed for SSE-KMS encryption of trail logs) + - **IAM**: Can list roles, get role policies, get user info; `iam:PassRole` restricted to passing roles to `cloudtrail.amazonaws.com` only + - **Lambda**: Can list functions (for data event configuration) + - **DynamoDB**: Can list tables and global tables (for data event configuration) +- The `iam:PassRole` condition (`iam:PassedToService: cloudtrail.amazonaws.com`) is a least-privilege guard preventing role passing to other services + +## Commands and Syntax +```bash +# Attach to a user +aws iam attach-user-policy --user-name \ + --policy-arn arn:aws:iam::aws:policy/AWSCloudTrail_FullAccess + +# Attach to a role +aws iam attach-role-policy --role-name \ + --policy-arn arn:aws:iam::aws:policy/AWSCloudTrail_FullAccess + +# View current policy version +aws iam get-policy --policy-arn arn:aws:iam::aws:policy/AWSCloudTrail_FullAccess +``` + +## Relationships +- **CloudTrail** — this policy is the primary administrative policy for CloudTrail +- **S3** — CloudTrail delivers log files to S3 buckets; policy allows bucket creation/policy setup +- **SNS** — CloudTrail can send notifications on log delivery; policy allows topic creation +- **CloudWatch Logs** — CloudTrail can stream events to CloudWatch Logs; policy allows log group creation +- **KMS** — CloudTrail supports SSE-KMS encryption; policy allows key creation +- **IAM PassRole** — CloudTrail assumes a service role for CloudWatch Logs delivery; policy allows passing roles to CloudTrail service only +- **Lambda / DynamoDB** — list permissions enable configuring data events for these services on trails +- Contrasts with `AWSCloudTrailReadOnlyAccess` which grants only read operations + +## Exam-Relevant Points +- This is an **AWS managed** policy (not customer managed) — AWS maintains and versions it +- The `iam:PassRole` permission is **conditioned** on `iam:PassedToService: cloudtrail.amazonaws.com` — a common exam pattern for least-privilege PassRole +- S3 and SNS write permissions are **resource-scoped** to `aws-cloudtrail-logs*` — not open to all buckets/topics +- `cloudtrail:*` is the only wildcard-action + wildcard-resource grant; all other services are narrowly scoped +- Lambda and DynamoDB permissions are **list-only** — they exist so CloudTrail console can show resources available for data event logging +- `kms:CreateKey` is included because CloudTrail setup workflows allow creating a new KMS key inline +- Policy version is v3; AWS managed policies can have up to 5 versions with one default + diff --git a/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorEC2Accesshtml.md b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorEC2Accesshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7f14867a0b47361c18552bb2688a6d1486c24d2f --- /dev/null +++ b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorEC2Accesshtml.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AWSFaultInjectionSimulatorEC2Access.html +source: sources/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorEC2Accesshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:10 + + + +## Overview +The `AWSFaultInjectionSimulatorEC2Access` policy is an AWS managed service role policy that grants AWS Fault Injection Simulator (FIS) the permissions needed to perform chaos engineering actions against EC2 instances, including instance lifecycle operations, SSM command execution, and KMS grant creation for encrypted EBS volumes. + +## Key Concepts +- **Policy type**: Service role policy (attached to the FIS service role, not directly to users for their own access) +- **ARN**: `arn:aws:iam::aws:policy/service-role/AWSFaultInjectionSimulatorEC2Access` +- **Current version**: v10 (last edited February 12, 2026) +- **Scope**: Grants FIS permissions across all regions and accounts (`*` wildcards) but scoped to specific resource types +- **Six statement blocks**, each with a descriptive Sid for auditability + +## Commands and Syntax +No CLI commands on this page. The policy JSON contains these permission groups: + +| Sid | Actions | Resource Scope | +|-----|---------|---------------| +| `AllowEc2Actions` | `RebootInstances`, `SendSpotInstanceInterruptions`, `StartInstances`, `StopInstances`, `TerminateInstances` | `arn:aws:ec2:*:*:instance/*` | +| `AllowEc2InstancesWithEncryptedEbsVolumes` | `kms:CreateGrant` | `arn:aws:kms:*:*:key/*` (conditioned on `ec2.*.amazonaws.com` via `kms:ViaService` and `kms:GrantIsForAWSResource=true`) | +| `AllowSSMSendOnEc2` | `ssm:SendCommand` | EC2 instances + SSM documents | +| `AllowSSMStopOnEc2` | `ssm:CancelCommand`, `ssm:ListCommands` | `*` | +| `DescribeInstances` | `ec2:DescribeInstances` | `*` | +| `DescribeSubnets` | `ec2:DescribeSubnets` | `*` | + +## Relationships +- **FIS service**: This is one of several FIS managed policies (others cover ECS, EKS, RDS, Network, SSM access) +- **IAM service roles**: Attached to the FIS execution role, not end-user roles +- **EC2**: Enables instance-level fault injection (stop, terminate, reboot, spot interruption simulation) +- **SSM (Systems Manager)**: FIS uses SSM `SendCommand` to execute fault actions (CPU stress, network disruption, etc.) on instances +- **KMS**: The `kms:CreateGrant` permission handles instances with encrypted EBS volumes — without it, stop/start of encrypted-volume instances would fail +- **Condition keys**: Uses `kms:ViaService` and `kms:GrantIsForAWSResource` to scope KMS access narrowly + +## Exam-Relevant Points +- FIS uses **service role policies** — you must attach this to the FIS experiment's execution role, not to your IAM user +- The policy includes `ec2:SendSpotInstanceInterruptions` — this is how FIS **simulates Spot interruptions** for resilience testing +- `kms:CreateGrant` is required when EC2 instances have **encrypted EBS volumes**; the conditions ensure grants are only created via EC2 +- SSM integration means FIS can run **arbitrary commands on instances** via `ssm:SendCommand` (scoped to instances and SSM documents) +- Describe actions (`DescribeInstances`, `DescribeSubnets`) use `Resource: *` because EC2 Describe APIs don't support resource-level permissions +- This policy alone is **not sufficient** for all FIS experiments — other managed policies (Network, SSM, etc.) may also be needed depending on the experiment type + diff --git a/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorECSAccesshtml.md b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorECSAccesshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..f391b449f8d7f44f0116afd064024b11470b38cb --- /dev/null +++ b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorECSAccesshtml.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AWSFaultInjectionSimulatorECSAccess.html +source: sources/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorECSAccesshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:10 + + + +## Overview +The `AWSFaultInjectionSimulatorECSAccess` policy is an AWS managed service role policy that grants AWS Fault Injection Simulator (FIS) the permissions it needs to perform chaos engineering experiments targeting Amazon ECS resources, along with supporting permissions in SSM, EC2, and Resource Groups Tagging. + +## Key Concepts +- **Policy type**: Service role policy (attached to the FIS service role, not directly to human users) +- **ARN**: `arn:aws:iam::aws:policy/service-role/AWSFaultInjectionSimulatorECSAccess` +- **Current version**: v9 (last edited February 12, 2026) +- Grants FIS permissions across **four AWS services**: ECS, SSM, EC2, and Resource Groups Tagging API +- Uses **statement IDs (Sids)** to logically group permissions by resource type + +## Commands and Syntax +No CLI commands on this page. The policy JSON defines 10 statements: + +| Sid | Actions | Resource Scope | +|-----|---------|---------------| +| `Clusters` | `ecs:DescribeClusters`, `ecs:ListContainerInstances` | `arn:aws:ecs:*:*:cluster/*` | +| `Tasks` | `ecs:DescribeTasks`, `ecs:StopTask` | `arn:aws:ecs:*:*:task/*/*` | +| `ContainerInstances` | `ecs:UpdateContainerInstancesState` | `arn:aws:ecs:*:*:container-instance/*/*` | +| `ListTasks` | `ecs:ListTasks` | `*` | +| `SSMSend` | `ssm:SendCommand` | managed-instance/*, document/* | +| `SSMList` | `ssm:ListCommands`, `ssm:CancelCommand` | `*` | +| `TargetResolutionByTags` | `tag:GetResources` | `*` | +| `DescribeContainerInstances` | `ecs:DescribeContainerInstances` | container-instance/*/* | +| `DescribeInstances` | `ec2:DescribeInstances` | `*` | +| `DescribeSubnets` | `ec2:DescribeSubnets` | `*` | + +## Relationships +- **FIS service**: This is one of several FIS managed policies (others cover EC2, EKS, RDS, SSM, Network access) +- **ECS**: The destructive actions are `ecs:StopTask` (kill tasks) and `ecs:UpdateContainerInstancesState` (drain container instances) +- **SSM**: `ssm:SendCommand` enables FIS to run commands on ECS container instances (EC2 launch type) for fault injection +- **EC2/Networking**: `ec2:DescribeInstances` and `ec2:DescribeSubnets` support target resolution for EC2-backed ECS clusters +- **Resource Groups Tagging**: `tag:GetResources` enables FIS to resolve experiment targets by tag filters + +## Exam-Relevant Points +- FIS ECS experiments can **stop tasks** and **change container instance state** (e.g., DRAINING) — know these as the destructive actions +- SSM integration means FIS can inject faults at the OS level on EC2-backed ECS instances via `SendCommand` +- The policy uses **resource-level restrictions** where possible (cluster, task, container-instance ARNs) but falls back to `*` for list/describe operations that don't support resource-level permissions +- This is a **service role** policy — it's meant for the FIS execution role, not end-user IAM identities +- `tag:GetResources` is required for tag-based target resolution in FIS experiment templates +- The task ARN pattern `arn:aws:ecs:*:*:task/*/*` uses the newer long-format ARN with cluster name included + diff --git a/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorEKSAccesshtml.md b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorEKSAccesshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..8cfee95dc10dfa4f722b5cb9b72aebb5efbc5ab2 --- /dev/null +++ b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorEKSAccesshtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AWSFaultInjectionSimulatorEKSAccess.html +source: sources/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorEKSAccesshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:11 + + + +## Overview +The `AWSFaultInjectionSimulatorEKSAccess` policy is an AWS managed service role policy that grants AWS Fault Injection Simulator (FIS) the permissions needed to perform chaos engineering experiments targeting Amazon EKS clusters and their underlying EC2 infrastructure. It is currently on version 6. + +## Key Concepts +- **Policy type**: Service role policy (attached to the FIS service role, not directly to end users for their own access) +- **ARN**: `arn:aws:iam::aws:policy/service-role/AWSFaultInjectionSimulatorEKSAccess` +- **Scope**: Grants FIS read access to EKS clusters/nodegroups and EC2 instances/subnets, plus the ability to terminate EC2 instances +- **Destructive action**: The policy includes `ec2:TerminateInstances` — FIS can kill EC2 instances backing EKS nodegroups as part of fault injection +- **Target resolution**: Uses `tag:GetResources` to find resources by tag, which is how FIS identifies experiment targets + +## Commands and Syntax +No CLI commands on this page. The policy grants six permission statements: + +| Sid | Action | Resource Scope | +|-----|--------|---------------| +| `DescribeInstances` | `ec2:DescribeInstances` | `*` | +| `TerminateInstances` | `ec2:TerminateInstances` | `arn:aws:ec2:*:*:instance/*` | +| `DescribeSubnets` | `ec2:DescribeSubnets` | `*` | +| `DescribeCluster` | `eks:DescribeCluster` | `arn:aws:eks:*:*:cluster/*` | +| `DescribeNodeGroup` | `eks:DescribeNodegroup` | `arn:aws:eks:*:*:nodegroup/*` | +| `TargetResolutionByTags` | `tag:GetResources` | `*` | + +## Relationships +- **FIS service role**: This policy is one of several `AWSFaultInjectionSimulator*Access` managed policies (others cover EC2, ECS, RDS, SSM, Network) — each scoped to a specific service +- **EKS**: Grants describe-level access to clusters and nodegroups for experiment targeting +- **EC2**: The actual fault injection action (TerminateInstances) targets the EC2 instances underlying EKS worker nodes +- **Resource Tagging API**: `tag:GetResources` enables FIS to resolve targets by tag filters defined in experiment templates +- **IAM best practices**: AWS recommends starting with managed policies then moving toward least-privilege custom policies + +## Exam-Relevant Points +- FIS EKS experiments operate by terminating the **EC2 instances** backing nodegroups, not by interacting with Kubernetes APIs directly +- The policy is a **service role policy** — it's assumed by the FIS service, not by users +- `tag:GetResources` is essential for FIS target resolution; without it, tag-based targeting in experiment templates won't work +- Describe permissions use `*` resource scope (required by EC2/tag APIs), while TerminateInstances is scoped to instance ARNs +- This policy does **not** grant permissions to modify EKS clusters, nodegroups, or Kubernetes objects — it is read-only for EKS and destructive only at the EC2 layer + diff --git a/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorNetworkAccesshtml.md b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorNetworkAccesshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..8fcd946c5f9a436ac4169618ddecc2aa8052c231 --- /dev/null +++ b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorNetworkAccesshtml.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AWSFaultInjectionSimulatorNetworkAccess.html +source: sources/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorNetworkAccesshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:11 + + + +## Overview + +The `AWSFaultInjectionSimulatorNetworkAccess` policy is an AWS managed service role policy that grants AWS Fault Injection Simulator (FIS) the EC2 networking permissions needed to perform network disruption experiments. It covers creation, modification, and deletion of network ACLs, route tables, network interfaces, managed prefix lists, and transit gateway route table associations — all scoped using the `managedByFIS` tag for safe resource lifecycle management. + +## Key Concepts + +- **Policy type**: AWS managed, service role policy (attached to FIS service role, not directly to human users) +- **ARN**: `arn:aws:iam::aws:policy/service-role/AWSFaultInjectionSimulatorNetworkAccess` +- **Current version**: v5 (last edited February 12, 2026) +- **Tag-based scoping**: Mutative actions (create, delete, modify) are constrained by the tag `managedByFIS=true` — either as `aws:RequestTag` on creation or `ec2:ResourceTag` on modification/deletion +- **Read-only actions are unscoped**: All `Describe*` actions use `Resource: "*"` with no tag conditions +- **Resources managed**: Network ACLs, route tables, network interfaces, managed prefix lists, VPC endpoints, transit gateway route table associations +- **Network fault injection mechanism**: FIS disrupts networking by creating replacement NACLs/route tables with deny rules, swapping them onto subnets, then restoring originals after the experiment + +## Commands and Syntax + +No CLI commands specific to this policy. Attach via standard IAM mechanisms: + +```bash +# Attach to a role used by FIS +aws iam attach-role-policy \ + --role-name MyFISRole \ + --policy-arn arn:aws:iam::aws:policy/service-role/AWSFaultInjectionSimulatorNetworkAccess +``` + +## Relationships + +- **Companion FIS policies**: Used alongside `AWSFaultInjectionSimulatorEC2Access`, `AWSFaultInjectionSimulatorECSAccess`, `AWSFaultInjectionSimulatorEKSAccess`, `AWSFaultInjectionSimulatorRDSAccess`, `AWSFaultInjectionSimulatorSSMAccess` — each covers a different blast radius +- **EC2 networking**: Directly interacts with VPC, subnets, NACLs, route tables, transit gateways, VPC endpoints, prefix lists, and network interfaces +- **IAM service roles**: Designed for the FIS service role, not end-user policies +- **Chaos engineering**: Enables FIS network disruption scenarios (e.g., `aws:ec2:disrupt-connectivity`) for resilience testing + +## Exam-Relevant Points + +- FIS uses the `managedByFIS` tag to track resources it creates, ensuring cleanup only affects FIS-managed resources — this is the primary safety mechanism +- The policy separates creation tagging permissions (using `ec2:CreateAction` + `aws:RequestTag`) from resource manipulation (using `ec2:ResourceTag`) — a common IAM pattern for tag-on-create enforcement +- `Describe*` actions require `Resource: "*"` because EC2 describe calls do not support resource-level permissions +- The policy grants `ReplaceNetworkAclAssociation` and `ReplaceRouteTableAssociation` without tag conditions on subnets — this is necessary because FIS must swap NACLs/route tables on subnets it doesn't own +- Transit gateway route table association/disassociation is permitted without tag conditions, reflecting that transit gateways are shared infrastructure +- This is a **service role** policy (note the `/service-role/` path in the ARN), meaning it's intended for roles assumed by the FIS service, not by users directly + diff --git a/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorRDSAccesshtml.md b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorRDSAccesshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..94d0bda23ddd783d028da6a4197ecb790d990662 --- /dev/null +++ b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorRDSAccesshtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AWSFaultInjectionSimulatorRDSAccess.html +source: sources/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorRDSAccesshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:11 + + + +## Overview +The `AWSFaultInjectionSimulatorRDSAccess` managed policy grants AWS Fault Injection Simulator (FIS) the permissions needed to perform chaos engineering experiments against Amazon RDS resources, specifically allowing DB cluster failovers and DB instance reboots. + +## Key Concepts +- **AWS managed policy** of type "service role policy" — meant to be used by the FIS service role, not directly by human users +- **ARN**: `arn:aws:iam::aws:policy/service-role/AWSFaultInjectionSimulatorRDSAccess` +- **Policy version**: v5 (as of Feb 2026) +- Grants four categories of permission via separate SIDs: + - **AllowFailover**: `rds:FailoverDBCluster` scoped to `arn:aws:rds:*:*:cluster:*` + - **AllowReboot**: `rds:RebootDBInstance` scoped to `arn:aws:rds:*:*:db:*` + - **DescribeResources**: `rds:DescribeDBClusters` and `rds:DescribeDBInstances` on all resources (`*`) + - **TargetResolutionByTags**: `tag:GetResources` on all resources — enables FIS to resolve targets by tag filters + +## Commands and Syntax +No CLI commands on this page. The policy JSON is the key artifact — note the resource-level scoping: failover is restricted to `cluster:*` resources, reboot to `db:*` resources, while describe and tag actions use `*`. + +## Relationships +- **FIS service**: This is one of several FIS access policies (others exist for EC2, ECS, EKS, Network, SSM) +- **RDS actions**: Maps to `rds:FailoverDBCluster` (Aurora cluster failover) and `rds:RebootDBInstance` (instance reboot) API actions +- **IAM**: Follows the managed-vs-inline policy model; attached to the FIS experiment execution role +- **Resource tagging**: Depends on `tag:GetResources` for tag-based target resolution, connecting to the broader AWS resource tagging system +- **Least privilege**: Describe permissions are broad (`*`) but mutation permissions are scoped to specific resource types + +## Exam-Relevant Points +- FIS RDS experiments support exactly **two disruptive actions**: cluster failover and instance reboot — no stop, delete, or terminate +- Failover targets **clusters** (Aurora); reboot targets individual **DB instances** — the resource ARN patterns differ (`cluster:*` vs `db:*`) +- `tag:GetResources` permission is required for FIS tag-based target resolution across all FIS resource-type policies +- This is a **service role policy**, not a user policy — it's assumed by the FIS service during experiment execution +- The describe permissions use wildcard resources, following AWS convention where describe/list actions cannot be resource-scoped + diff --git a/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorSSMAccesshtml.md b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorSSMAccesshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..27e39c35c6c01521f322bfd19849c0a94becfc06 --- /dev/null +++ b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorSSMAccesshtml.md @@ -0,0 +1,51 @@ +--- +source_url: https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AWSFaultInjectionSimulatorSSMAccess.html +source: sources/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorSSMAccesshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:12 + + + +## Overview +The `AWSFaultInjectionSimulatorSSMAccess` managed policy grants AWS Fault Injection Simulator (FIS) the permissions needed to execute fault injection actions through AWS Systems Manager (SSM), including running automation executions and sending commands to EC2 instances. + +## Key Concepts +- **AWS managed service-role policy** — attached to the FIS service role, not directly to end users for their own actions +- **ARN**: `arn:aws:iam::aws:policy/service-role/AWSFaultInjectionSimulatorSSMAccess` +- **Policy version**: v8 (as of Feb 2026) +- Grants five categories of SSM permissions: + - `iam:PassRole` — only to `ssm.amazonaws.com` (condition-scoped) + - `ssm:StartAutomationExecution` — on documents, executions, and definitions + - `ssm:GetAutomationExecution` / `ssm:StopAutomationExecution` — on automation executions + - `ssm:SendCommand` — to EC2 instances and SSM documents + - `ssm:ListCommands` / `ssm:CancelCommand` — on all resources (`*`) + +## Commands and Syntax +No CLI commands on this page. The policy JSON is the key artifact — it defines the exact IAM permissions FIS needs for SSM-based fault injection. + +Key condition pattern: +```json +"Condition": { + "StringEquals": { + "iam:PassedToService": "ssm.amazonaws.com" + } +} +``` +This restricts `iam:PassRole` so FIS can only pass roles to SSM, not to arbitrary services. + +## Relationships +- **FIS ↔ SSM**: FIS uses SSM Automation and SSM Run Command as execution mechanisms for fault injection experiments +- **FIS ↔ EC2**: `ssm:SendCommand` targets EC2 instances for host-level fault injection (CPU stress, network disruption, etc.) +- **Companion policies**: Works alongside `AWSFaultInjectionSimulatorEC2Access`, `AWSFaultInjectionSimulatorECSAccess`, `AWSFaultInjectionSimulatorEKSAccess`, `AWSFaultInjectionSimulatorRDSAccess`, and `AWSFaultInjectionSimulatorNetworkAccess` +- **IAM PassRole**: Follows the standard AWS pattern of scoping `PassRole` to a specific target service + +## Exam-Relevant Points +- FIS SSM actions use **two SSM mechanisms**: Automation (start/stop/get automation execution) and Run Command (send/list/cancel command) +- The `iam:PassRole` permission is **condition-scoped** to `ssm.amazonaws.com` — a least-privilege best practice +- `ssm:ListCommands` and `ssm:CancelCommand` use `Resource: "*"` because these APIs don't support resource-level permissions +- This is a **service role policy** (path: `/service-role/`), meaning it's designed for the FIS service role, not for human users +- FIS requires SSM Agent running on target EC2 instances for `SendCommand`-based experiments to work + diff --git a/entries/2026/03/12/aws-managed-policy-latest-reference-AWSLambdaBasicExecutionRolehtml.md b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSLambdaBasicExecutionRolehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9f054bff7cf5f098b8d99b931d219d7d3d710ef2 --- /dev/null +++ b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSLambdaBasicExecutionRolehtml.md @@ -0,0 +1,63 @@ +--- +source_url: https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AWSLambdaBasicExecutionRole.html +source: sources/aws-managed-policy-latest-reference-AWSLambdaBasicExecutionRolehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:12 + + + +## Overview +`AWSLambdaBasicExecutionRole` is an AWS managed IAM policy that grants Lambda functions the minimum permissions needed to write logs to Amazon CloudWatch Logs. It is the most commonly attached policy for Lambda execution roles, enabling basic logging functionality. + +## Key Concepts +- **AWS managed policy** — maintained by AWS, not editable by customers; ARN: `arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole` +- **Service role policy** — designed to be attached to a service-linked or execution role, not directly to users (though technically possible) +- **Grants three CloudWatch Logs actions**: `logs:CreateLogGroup`, `logs:CreateLogStream`, `logs:PutLogEvents` +- **Resource scope**: `*` (all log groups/streams) — not scoped to a specific log group +- **Policy version**: v1, unchanged since creation (April 9, 2015) +- This is the **minimum viable logging policy** for Lambda; without it, Lambda functions cannot write logs + +## Commands and Syntax +**JSON policy document:** +```json +{ + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": "*" + } + ] +} +``` + +**Attaching via CLI:** +```bash +aws iam attach-role-policy \ + --role-name MyLambdaRole \ + --policy-arn arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole +``` + +## Relationships +- **Lambda execution roles** — this policy is typically attached to the IAM role assumed by Lambda during invocation +- **CloudWatch Logs** — the target service; Lambda auto-creates log groups named `/aws/lambda/` +- **AWSLambdaVPCAccessExecutionRole** — a sibling policy that adds ENI permissions for VPC-connected Lambda; often used alongside this policy +- **Least-privilege refinement** — for production, consider replacing `Resource: "*"` with a scoped ARN (e.g., `arn:aws:logs:::log-group:/aws/lambda/:*`) +- **AWS managed vs inline policies** — this is managed; customers who need tighter resource scoping must create a custom inline or customer-managed policy + +## Exam-Relevant Points +- This policy grants **only CloudWatch Logs write access** — it does NOT grant permissions to read logs, invoke other services, or access S3/DynamoDB +- The three specific actions (`CreateLogGroup`, `CreateLogStream`, `PutLogEvents`) are frequently tested +- Without this policy (or equivalent permissions), Lambda invocations succeed but **produce no logs** +- The `Resource: "*"` scope means the function can write to **any** log group in the account, which is a least-privilege concern +- This is a **service role policy** (note the `/service-role/` path in the ARN), distinguishing it from general-purpose managed policies +- Know the difference: `AWSLambdaBasicExecutionRole` (logs only) vs `AWSLambdaExecute` (logs + S3) vs `AWSLambdaVPCAccessExecutionRole` (logs + VPC networking) + diff --git a/entries/2026/03/12/aws-managed-policy-latest-reference-AWSLambdaVPCAccessExecutionRolehtml.md b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSLambdaVPCAccessExecutionRolehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..0077518526fce2e9ae6116daabfe88933ea71048 --- /dev/null +++ b/entries/2026/03/12/aws-managed-policy-latest-reference-AWSLambdaVPCAccessExecutionRolehtml.md @@ -0,0 +1,70 @@ +--- +source_url: https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AWSLambdaVPCAccessExecutionRole.html +source: sources/aws-managed-policy-latest-reference-AWSLambdaVPCAccessExecutionRolehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:12 + + + +## Overview +The `AWSLambdaVPCAccessExecutionRole` is an AWS managed IAM policy that grants Lambda functions the minimum permissions needed to run within a VPC. It combines EC2 network interface management permissions (for ENI lifecycle in the VPC) with CloudWatch Logs write permissions (for function logging). + +## Key Concepts +- **Type**: AWS managed service role policy — maintained by AWS, not customer-editable +- **Purpose**: Enables Lambda functions configured with VPC access to create and manage Elastic Network Interfaces (ENIs) in the target VPC subnets +- **ARN**: `arn:aws:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole` +- **Resource scope**: All permissions use `Resource: "*"` (cannot be scoped to specific resources) +- **Current version**: v3 (last edited January 5, 2024) +- **Combines two permission sets**: CloudWatch Logs writing + EC2 network interface management +- This is a **service role policy**, meaning it's designed to be attached to the Lambda execution role (the role Lambda assumes), not directly to users + +## Commands and Syntax +**JSON policy document (v3):** +```json +{ + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "AWSLambdaVPCAccessExecutionPermissions", + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents", + "ec2:CreateNetworkInterface", + "ec2:DescribeNetworkInterfaces", + "ec2:DescribeSubnets", + "ec2:DeleteNetworkInterface", + "ec2:AssignPrivateIpAddresses", + "ec2:UnassignPrivateIpAddresses" + ], + "Resource": "*" + } + ] +} +``` + +**Nine specific actions granted:** +- `logs:CreateLogGroup`, `logs:CreateLogStream`, `logs:PutLogEvents` — logging +- `ec2:CreateNetworkInterface`, `ec2:DeleteNetworkInterface` — ENI lifecycle +- `ec2:DescribeNetworkInterfaces`, `ec2:DescribeSubnets` — ENI/subnet discovery +- `ec2:AssignPrivateIpAddresses`, `ec2:UnassignPrivateIpAddresses` — IP management on ENIs + +## Relationships +- **Superset of `AWSLambdaBasicExecutionRole`**: Basic only includes the three `logs:` actions; VPC access adds the six `ec2:` actions +- **Lambda VPC configuration**: When a Lambda function is configured with VPC subnets and security groups, the service uses these permissions to attach ENIs to those subnets +- **EC2 ENIs**: Lambda creates Hyperplane ENIs in customer VPC subnets to enable network connectivity to VPC resources (RDS, ElastiCache, etc.) +- **CloudWatch Logs**: The logs permissions are included so VPC-connected functions can still write logs without needing a separate policy +- **Least-privilege consideration**: AWS recommends starting with managed policies like this and then moving toward custom, more restrictive policies + +## Exam-Relevant Points +- A Lambda function in a VPC **requires** ENI permissions — without them, the function cannot start and will fail with an error +- This policy uses `Resource: "*"` because EC2 Describe actions and network interface creation cannot be scoped to specific ARNs at creation time +- The policy is a **service role** policy (note the `/service-role/` path in the ARN), intended for Lambda execution roles +- Know the difference: `AWSLambdaBasicExecutionRole` = logs only; `AWSLambdaVPCAccessExecutionRole` = logs + VPC networking +- v3 added `ec2:DescribeSubnets`, `ec2:AssignPrivateIpAddresses`, and `ec2:UnassignPrivateIpAddresses` (these support Lambda's Hyperplane ENI improvements for better scaling and IP management) +- If a Lambda function needs VPC access **and** other AWS service access (e.g., DynamoDB, S3), this policy alone is insufficient — additional permissions must be added to the execution role + diff --git a/entries/2026/03/12/aws-managed-policy-latest-reference-AdministratorAccesshtml.md b/entries/2026/03/12/aws-managed-policy-latest-reference-AdministratorAccesshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..18a9b54656fa2ffffdad2521dd28bdcf2c30d822 --- /dev/null +++ b/entries/2026/03/12/aws-managed-policy-latest-reference-AdministratorAccesshtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AdministratorAccess.html +source: sources/aws-managed-policy-latest-reference-AdministratorAccesshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:12 + + + +## Overview +The `AdministratorAccess` policy is an AWS managed IAM policy that grants unrestricted full access to all AWS services and resources. It uses a single allow statement with wildcard (`*`) for both Action and Resource, making it the broadest permission policy available. + +## Key Concepts +- **AWS managed policy** — maintained by AWS, not editable by customers; referenced by ARN `arn:aws:iam::aws:policy/AdministratorAccess` +- **Wildcard permissions** — `"Action": "*"` and `"Resource": "*"` together grant access to every API call on every resource +- **Policy version v1** — has never been modified since creation (February 6, 2015); the default version determines effective permissions +- Can be attached to **users, groups, and roles** +- Also usable as a **permission set** in IAM Identity Center (SSO) + +## Commands and Syntax +JSON policy document: +```json +{ + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": "*", + "Resource": "*" + } + ] +} +``` + +## Relationships +- **IAM managed vs inline policies** — AdministratorAccess is the canonical example of an AWS managed policy, contrasted with customer-managed and inline policies +- **IAM Identity Center** — can be used as a permission set for SSO access +- **Least-privilege principle** — AWS recommends starting with managed policies like this and then narrowing to least-privilege; this policy is the opposite of least-privilege +- **Policy versioning** — demonstrates how AWS managed policies use default versions to control effective permissions + +## Exam-Relevant Points +- AdministratorAccess grants **full unrestricted access** — know that `"Action": "*", "Resource": "*"` means no service or resource is excluded +- It is an **AWS managed policy**, meaning customers cannot edit it (they can only attach/detach it) +- The policy version is **v1 and has never been updated** since 2015 +- AWS best practice is to **start with managed policies and move toward least-privilege** — using AdministratorAccess broadly violates least-privilege +- The **default version** of a managed policy is what AWS evaluates for authorization decisions +- ARN format for AWS managed policies uses an empty account field: `arn:aws:iam::aws:policy/PolicyName` + diff --git a/entries/2026/03/12/aws-managed-policy-latest-reference-AmazonDynamoDBFullAccesshtml.md b/entries/2026/03/12/aws-managed-policy-latest-reference-AmazonDynamoDBFullAccesshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..88fa375bbf91eb48609ac72e6aa888c587587efa --- /dev/null +++ b/entries/2026/03/12/aws-managed-policy-latest-reference-AmazonDynamoDBFullAccesshtml.md @@ -0,0 +1,51 @@ +--- +source_url: https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AmazonDynamoDBFullAccess.html +source: sources/aws-managed-policy-latest-reference-AmazonDynamoDBFullAccesshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:13 + + + +## Overview +The `AmazonDynamoDBFullAccess` policy is an AWS managed IAM policy that grants full access to Amazon DynamoDB and its related services (DAX, Auto Scaling, CloudWatch, Data Pipeline, Lambda, SNS, Kinesis) via the AWS Management Console. It is broader than just DynamoDB — it includes permissions for integrated services needed to operate DynamoDB effectively. + +## Key Concepts +- **AWS managed policy** — maintained by AWS, not editable by customers; versioned (currently v15) +- **ARN**: `arn:aws:iam::aws:policy/AmazonDynamoDBFullAccess` +- Grants `dynamodb:*` and `dax:*` — full control over DynamoDB tables and DAX clusters +- **Resource scope**: Most actions apply to `Resource: "*"` (all resources), except CloudWatch Contributor Insights which is scoped to `DynamoDBContributorInsights*` rules +- Includes **cross-service permissions** for services DynamoDB integrates with: Application Auto Scaling, CloudWatch, Data Pipeline, EC2 (VPC/subnet/SG describe), IAM (read roles), KMS (describe keys), SNS, Lambda, Resource Groups, Tagging, and Kinesis +- **iam:PassRole** is conditionally allowed — only to `application-autoscaling.amazonaws.com` and `dax.amazonaws.com` +- **iam:CreateServiceLinkedRole** is conditionally allowed for DynamoDB replication, DAX, auto-scaling, contributor insights, and Kinesis replication + +## Commands and Syntax +Attach to a user, group, or role via CLI: +```bash +aws iam attach-user-policy --user-name --policy-arn arn:aws:iam::aws:policy/AmazonDynamoDBFullAccess +aws iam attach-role-policy --role-name --policy-arn arn:aws:iam::aws:policy/AmazonDynamoDBFullAccess +aws iam attach-group-policy --group-name --policy-arn arn:aws:iam::aws:policy/AmazonDynamoDBFullAccess +``` + +## Relationships +- **DynamoDB** — core service this policy governs +- **DAX** — DynamoDB Accelerator (in-memory cache), fully covered +- **Application Auto Scaling** — enables auto-scaling of DynamoDB read/write capacity +- **CloudWatch** — alarms and metrics for DynamoDB monitoring; includes Contributor Insights +- **Lambda** — DynamoDB Streams triggers (create/delete event source mappings and functions) +- **Kinesis** — DynamoDB Streams to Kinesis Data Streams integration +- **SNS** — notifications for DynamoDB events +- **KMS** — encryption at rest key management +- **IAM service-linked roles** — required for global tables replication, DAX, auto-scaling, and Contributor Insights + +## Exam-Relevant Points +- This policy is **not least-privilege** — it grants broad access across multiple services; AWS recommends starting with managed policies then moving toward least-privilege +- The `iam:PassRole` permission uses a **condition** (`iam:PassedToService`) to restrict which services can assume the passed role — a common IAM security pattern +- `iam:CreateServiceLinkedRole` is restricted by `iam:AWSServiceName` condition — know which services require SLRs (replication, DAX, auto-scaling, contributor insights, Kinesis replication) +- The CloudWatch `GetInsightRuleReport` action is **resource-scoped** to DynamoDB Contributor Insights rules, unlike the other wildcard-scoped actions +- Managed policies are versioned; only the **default version** is active for authorization decisions +- This policy does **not** include S3, Glue, or other export/import-related permissions — those would need separate grants for features like Export to S3 or Import from S3 +- Includes `ec2:Describe*` for VPCs/subnets/security groups — needed for DAX cluster placement in VPCs + diff --git a/entries/2026/03/12/awsaccountbilling-latest-aboutv2-billing-what-ishtml.md b/entries/2026/03/12/awsaccountbilling-latest-aboutv2-billing-what-ishtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d63dbbe2607ecdd47130f0d0c84de7aad4cb53f2 --- /dev/null +++ b/entries/2026/03/12/awsaccountbilling-latest-aboutv2-billing-what-ishtml.md @@ -0,0 +1,54 @@ +--- +source_url: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-what-is.html +source: sources/awsaccountbilling-latest-aboutv2-billing-what-ishtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:13 + + + +## Overview +AWS Billing and Cost Management is a suite of tools for setting up billing, retrieving and paying invoices, and analyzing, organizing, planning, and optimizing cloud costs. It covers everything from individual account billing to multi-organization consolidated billing, cost allocation, budgeting, and savings optimization. + +## Key Concepts +- **Bills page** — View detailed monthly billing data and download invoices +- **Purchase orders** — Manage POs to align with organizational procurement processes +- **Payment profiles** — Configure multiple payment methods for different AWS service providers or organizational units +- **Billing transfer** — Centralizes billing across multiple AWS Organizations into a single bill transfer account, separating billing management from security/governance +- **Cost categories** — Map costs to teams, applications, or environments; supports split charge rules for shared costs +- **Cost allocation tags** — Use resource tags to organize and view costs by tag dimension +- **Budgets** — Set custom cost/usage thresholds with alerts when exceeded +- **Cost Anomaly Detection** — Automated alerts for unexpected cost spikes +- **AWS Cost Optimization Hub** — Recommendations for deleting unused resources, rightsizing, Savings Plans, and reservations +- **Savings Plans** — Flexible pricing models offering discounts vs. On-Demand rates +- **Reservations** — Discounted capacity for EC2, RDS, Redshift, DynamoDB, and more +- **Split cost allocation data** — Granular cost data for shared ECS resources +- **AWS Billing Conductor** — Custom billing service for showback/chargeback workflows (Partners, resellers); generates alternative billing data without changing actual AWS bill +- **Consolidated billing** (via AWS Organizations) — One bill, combined usage for volume discounts, no extra fee +- **AWS Price List API** — Programmatic access to service pricing in JSON/CSV + +## Commands and Syntax +No CLI commands described. All features are accessed via the **AWS Billing and Cost Management console** or programmatically via: +- **AWS Price List API** — Bulk query for services, products, and pricing (JSON/CSV) +- **Data exports** — Custom exports from Billing and Cost Management datasets + +## Relationships +- **IAM** — Controls access to Billing console pages; requires **Activate IAM Access** setting for non-root users/roles; root user needed for certain billing tasks +- **AWS Organizations** — Provides consolidated billing; management account pays for all member accounts +- **Billing transfer** — Links multiple Organizations to a single bill transfer account +- **AWS Billing Conductor** — Layered on top of standard billing for custom rate display and chargeback +- **Cost Explorer** — Central visualization tool; member account access controlled via Cost Management preferences +- **CloudTrail** — Billing API calls can be logged (referenced in related docs) + +## Exam-Relevant Points +- By default, IAM users/roles **cannot** access the Billing console — you must enable **Activate IAM Access** +- Consolidated billing combines usage across accounts for **volume pricing discounts, RI discounts, and Savings Plans** — no extra fee +- **Billing transfer** separates billing management from security/governance across multiple Organizations +- **Cost categories** support **split charge rules** for allocating shared costs +- **Billing Conductor** does **not** change actual AWS billing — it generates an alternative view for showback/chargeback +- **Root user** is required for certain billing tasks (see IAM root-user-tasks reference) +- **Cost Anomaly Detection** provides automated alerting, distinct from Budgets (which use defined thresholds) +- Savings Plans vs. Reservations: Savings Plans offer **flexible** pricing models; Reservations offer **capacity-based** discounts for specific services + diff --git a/entries/2026/03/12/awsaccountbilling-latest-aboutv2-budgets-managing-costshtml.md b/entries/2026/03/12/awsaccountbilling-latest-aboutv2-budgets-managing-costshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2a7cc13f9523bfe0f7054692a4c1b3f24284bcc8 --- /dev/null +++ b/entries/2026/03/12/awsaccountbilling-latest-aboutv2-budgets-managing-costshtml.md @@ -0,0 +1,44 @@ +--- +source_url: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html +source: sources/awsaccountbilling-latest-aboutv2-budgets-managing-costshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:13 + + + +## Overview +AWS Budgets is a cost and usage tracking service that lets you set spending limits, usage thresholds, and reservation/Savings Plans utilization targets, with automated alerts and actions when thresholds are crossed. It supports multiple budget types and notification channels. + +## Key Concepts +- **Six budget types**: Cost, Usage, RI utilization, RI coverage, Savings Plans utilization, Savings Plans coverage +- **Cost tracking modes**: blended, unblended, net unblended, amortized, and net amortized costs +- **Charges can include/exclude**: discounts, refunds, support fees, and taxes +- **Update frequency**: up to 3 times/day, typically 8–12 hours between updates +- **Notification delay**: there is a lag between incurring a charge and receiving a budget alert — costs may exceed thresholds before notification arrives +- **Variable targets**: budgets can have fixed or variable (e.g., 5% monthly growth) target amounts +- **Custom periods**: budgets can align to fiscal years, project durations, or grant periods (not just calendar months) +- **Budget actions**: can automatically enforce policies (e.g., apply an IAM policy denying resource provisioning) + +## Commands and Syntax +No CLI commands on this page — it is a conceptual overview. Related procedures are linked: +- `budgets-create.html` — Creating a budget +- `budgets-controls.html` — Configuring budget actions +- `budgets-sns-policy.html` — Creating an SNS topic for notifications + +## Relationships +- **IAM**: Budget actions can apply custom IAM policies; IAM policies control who can create/edit/view budgets +- **AWS Organizations / Consolidated Billing**: Management account can create budgets tracking member accounts; member accounts cannot see those budgets without explicit access +- **Amazon SNS**: Notification channel for budget alerts +- **Reserved Instances & Savings Plans**: Dedicated budget types for tracking utilization and coverage +- **AWS Cost Management**: Budgets is part of the broader billing/cost management suite + +## Exam-Relevant Points +- Budgets update **up to 3 times per day** (not real-time) — expect notification delays +- There are **6 distinct budget types** — know the difference between utilization budgets (are you using what you bought?) and coverage budgets (how much usage is covered by commitments?) +- Budget actions can **automatically apply IAM policies** to restrict provisioning when thresholds are crossed +- Cross-account budget visibility requires **explicit access grants** — budgets are not automatically visible to tracked member accounts +- Budgets support **forecasted alerts** (before costs accrue), not just actual-spend alerts + diff --git a/entries/2026/03/12/awsaccountbilling-latest-aboutv2-cost-alloc-tagshtml.md b/entries/2026/03/12/awsaccountbilling-latest-aboutv2-cost-alloc-tagshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..212ba769dac8288a2b75e990818c3f523c9e0200 --- /dev/null +++ b/entries/2026/03/12/awsaccountbilling-latest-aboutv2-cost-alloc-tagshtml.md @@ -0,0 +1,51 @@ +--- +source_url: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html +source: sources/awsaccountbilling-latest-aboutv2-cost-alloc-tagshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:14 + + + +## Overview + +AWS cost allocation tags are labels (key-value pairs) applied to AWS resources that, once activated, organize and track costs in cost allocation reports and Cost Explorer. AWS provides two types: AWS-generated tags (created automatically by AWS) and user-defined tags (created by you). Both must be activated separately in the Billing and Cost Management console before they appear in cost reports. + +## Key Concepts + +- A **tag** consists of a **key** (unique per resource) and a **value** (one per key per resource) +- **AWS-generated tags** — created by AWS or Marketplace ISVs, prefixed with `aws:` (e.g., `createdBy`) +- **User-defined tags** — created by the user, prefixed with `user` +- Both tag types must be **activated separately** before they appear in Cost Explorer or cost allocation reports +- The **cost allocation report** is a CSV file grouping usage and costs by active tags, covering both tagged and untagged resources +- Tags can take **up to 24 hours** to appear in the Billing and Cost Management console +- Total charges in the cost allocation report reconcile with the Bills page for the same billing period + +## Commands and Syntax + +- **Activate AWS-generated tags**: Done via Billing and Cost Management console (no CLI shown on this page) +- **Create/update tags**: Use **AWS Tag Editor** +- **Filter by tags**: Use Cost Explorer views filtered by activated tags +- Tag categories for cost organization: cost centers, application names, owners + +## Relationships + +- **Cost Explorer** — tags filter views for cost analysis +- **AWS Cost and Usage Report** — reflects activated cost allocation tags +- **AWS Organizations** — only the **management account** (or standalone accounts) can manage cost allocation tags +- **Billing transfer** — bill source accounts manage cost allocation tags for their Organizations +- **Tag Editor** — the tool for creating and managing tags across resources +- Related subtopics: AWS-generated tags, user-defined tags, account tags, tag backfill, monthly cost allocation report, tag date semantics + +## Exam-Relevant Points + +- Two tag types exist (AWS-generated vs. user-defined) and **both require separate activation** +- AWS-generated tags use the `aws:` prefix; user-defined tags use the `user` prefix +- Tags take **up to 24 hours** to propagate to billing console +- Only the **management account** in an AWS Organization can access the cost allocation tags manager +- Cost allocation reports include **both tagged and untagged** resources +- Do **not** include sensitive information in tags (best practice) +- The `createdBy` AWS-generated tag tracks **who created** a resource + diff --git a/entries/2026/03/12/awsaccountbilling-latest-aboutv2-logging-using-cloudtrailhtml.md b/entries/2026/03/12/awsaccountbilling-latest-aboutv2-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7b80544477e2e78c3040ff782b30fd046e63ce38 --- /dev/null +++ b/entries/2026/03/12/awsaccountbilling-latest-aboutv2-logging-using-cloudtrailhtml.md @@ -0,0 +1,71 @@ +--- +source_url: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/logging-using-cloudtrail.html +source: sources/awsaccountbilling-latest-aboutv2-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:14 + + + +## Overview + +This page documents how AWS Billing and Cost Management integrates with AWS CloudTrail for audit logging. It catalogs all CloudTrail events emitted by Billing, Payments, Tax Settings, and Invoicing features, and provides example log entries showing the structure of captured events. + +## Key Concepts + +- **CloudTrail integration is automatic** — CloudTrail is enabled when the AWS account is created; billing events appear in Event History without additional configuration +- **Trail required for persistent logging** — without a trail configured, only recent events are viewable; a trail delivers logs continuously to an S3 bucket +- **Multiple event sources** — billing events come from different sources depending on the feature: + - `billingconsole.amazonaws.com` — core billing console actions + - `payments.amazonaws.com` — payment instruments, financing, payment profiles + - `purchase-orders.amazonaws.com` — purchase order management + - `ce.amazonaws.com` — Cost Explorer actions (cost allocation tags) + - `taxconsole.amazon.com` — tax console actions + - `tax.amazonaws.com` — tax API actions + - `invoicing.amazonaws.com` — invoice unit management + - `customer-verification.amazonaws.com` — India-specific customer verification +- **Sensitive data is redacted** — payment instrument details (card numbers, CVV, addresses) appear as `HIDDEN_DUE_TO_SECURITY_REASONS` in CloudTrail logs +- **userIdentity element** identifies whether requests used root credentials, IAM user credentials, temporary role credentials, or were made by another AWS service +- **Trails apply to all regions by default** when created via the console + +## Commands and Syntax + +No CLI commands are documented. The page focuses on CloudTrail event structure. Example log entry fields: + +```json +{ + "eventVersion": "1.08", + "eventSource": "payments.amazonaws.com", + "eventName": "Instruments_Create", + "awsRegion": "us-east-1", + "sourceIPAddress": "100.100.10.10", + "readOnly": true, + "eventType": "AwsApiCall", + "managementEvent": true, + "eventCategory": "Management" +} +``` + +## Relationships + +- **CloudTrail** — the underlying audit service; billing events are a subset of CloudTrail management events +- **Amazon S3** — destination for trail log file delivery +- **Amazon SNS** — can be configured for CloudTrail event notifications +- **CloudWatch** — billing alerts can be enabled (`EnableBillingAlerts` event); CloudTrail logs can be sent to CloudWatch Logs +- **AWS Organizations / Consolidated Billing** — events like `GetConsolidatedBillingFamilySummary`, `GetBillsForLinkedAccount`, `SetCreditSharing`, `SetRISharing` relate to management account operations across the billing family +- **Cost and Usage Reports** — `CreateOrigamiReportPreference`, `DeleteOrigamiReportPreferences`, `UpdateOrigamiReportPreference` (management account only) +- **Cost Allocation Tags** — managed via `ce.amazonaws.com` events; support backfill operations + +## Exam-Relevant Points + +- Billing CloudTrail events are logged in **us-east-1** (billing is a global service routed through us-east-1) +- Sensitive payment data is **automatically redacted** in CloudTrail logs — you do not need to configure this +- Cost and Usage Report management events (`*OrigamiReportPreference*`) are restricted to the **management account only** +- `SetIAMAccessPreference` controls whether IAM users can access the billing console — only available to customers with **root access** +- Tax-related events use **two different event sources** (`taxconsole.amazon.com` vs `tax.amazonaws.com`) depending on whether the action is console-based or API-based +- CloudTrail log files are **not an ordered stack trace** — events don't appear in any specific order +- `CloseAccount` is logged as a billing console event (`billingconsole.amazonaws.com`) +- The `SetRISharing` event logs RI/Savings Plans sharing preference changes for the management account — relevant to consolidated billing cost optimization + diff --git a/entries/2026/03/12/awscloudtrail-latest-APIReference-API_LookupEventshtml.md b/entries/2026/03/12/awscloudtrail-latest-APIReference-API_LookupEventshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..8284c5a38f7bde9b78fcc22642216857a91fab4c --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-APIReference-API_LookupEventshtml.md @@ -0,0 +1,79 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_LookupEvents.html +source: sources/awscloudtrail-latest-APIReference-API_LookupEventshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:14 + + + +## Overview +`LookupEvents` is a CloudTrail API action that retrieves management events or CloudTrail Insights events captured within a Region. It provides a programmatic way to search recent API activity (up to 90 days) using specific lookup attributes, serving as the primary mechanism for querying CloudTrail's event history without needing to parse S3 log files directly. + +## Key Concepts +- **Scope**: Looks up management events or Insights events within a single Region, limited to the **last 90 days**. +- **Lookup attributes for management events**: AWS access key, Event ID, Event name, Event source, Read only, Resource name, Resource type, User name. +- **Lookup attributes for Insights events**: Event ID, Event name, Event source (fewer attributes than management events). +- **All attributes are optional** — calling with no attributes returns recent events. +- **Only one lookup attribute** can be specified per request (the `LookupAttributes` array currently accepts only one item). +- **Pagination**: Default and maximum results per page is **50**; use `NextToken` to paginate, passing the same parameters as the original call. +- **Rate limit**: **2 requests per second**, per account, per Region. Exceeding this causes throttling. +- **Response ordering**: Events are sorted by time, most recent first. +- **Insights events**: Must set `EventCategory` to `"insight"` explicitly; otherwise only management events are returned. +- For Insights events stored in an event data store (Lake), use Lake queries instead of `LookupEvents`. + +## Commands and Syntax +**Request (JSON)**: +```json +{ + "EndTime": , + "EventCategory": "insight", + "LookupAttributes": [ + { "AttributeKey": "Username", "AttributeValue": "root" } + ], + "MaxResults": 50, + "NextToken": "string", + "StartTime": +} +``` + +**Response (JSON)**: +```json +{ + "Events": [ + { + "AccessKeyId": "string", + "CloudTrailEvent": "string", + "EventId": "string", + "EventName": "string", + "EventSource": "string", + "EventTime": , + "ReadOnly": "string", + "Resources": [{ "ResourceName": "string", "ResourceType": "string" }], + "Username": "string" + } + ], + "NextToken": "string" +} +``` + +**Errors**: `InvalidEventCategoryException`, `InvalidLookupAttributesException`, `InvalidMaxResultsException`, `InvalidNextTokenException`, `InvalidTimeRangeException`, `OperationNotPermittedException`, `UnsupportedOperationException` — all return HTTP 400. + +## Relationships +- **CloudTrail Event History**: `LookupEvents` is the API behind the "Event history" console page. +- **CloudTrail Lake**: For Insights events stored in event data stores, use Lake queries rather than `LookupEvents`. +- **CloudTrail Trails**: `LookupEvents` returns Insights events only for trails that have Insights enabled. +- **S3 log delivery**: `LookupEvents` queries the 90-day event history directly; for older events, query S3 logs or Lake event data stores. +- **IAM/Security auditing**: Commonly used to investigate API calls by user, access key, or resource. + +## Exam-Relevant Points +- **90-day limit** — `LookupEvents` only covers the last 90 days; for longer retention, use trails (S3) or CloudTrail Lake. +- **Rate limit of 2 requests/second per account per Region** — important for automation and scripting considerations. +- **Only one lookup attribute per request** — you cannot combine multiple filters in a single call. +- **Max 50 results per page** — pagination via `NextToken` is required for larger result sets. +- **Regional scope** — `LookupEvents` operates per-Region; to search across Regions, you must call it in each Region. +- **EventCategory must be explicitly set to `"insight"`** to retrieve Insights events; default behavior returns only management events. +- **Data events are NOT returned** by `LookupEvents` — it only supports management events and Insights events. + diff --git a/entries/2026/03/12/awscloudtrail-latest-APIReference-API_PutResourcePolicyhtml.md b/entries/2026/03/12/awscloudtrail-latest-APIReference-API_PutResourcePolicyhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3a68ce310417c2c17205b3e4856e954d54f96713 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-APIReference-API_PutResourcePolicyhtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_PutResourcePolicy.html +source: sources/awscloudtrail-latest-APIReference-API_PutResourcePolicyhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:15 + + + +## Overview +`PutResourcePolicy` is a CloudTrail API action that attaches a resource-based permission policy to a CloudTrail event data store, dashboard, or channel. It enables cross-account access and fine-grained permission control on these CloudTrail resources using JSON-formatted IAM resource-based policies. + +## Key Concepts +- **Resource-based policies** can be attached to three CloudTrail resource types: event data stores, dashboards, and channels +- **ResourceArn** (required): ARN of the target resource; min 3 / max 256 characters +- **ResourcePolicy** (required): JSON-formatted policy string; min 1 / max 8192 characters +- **DelegatedAdminResourcePolicy**: Auto-generated policy for delegated administrators in AWS Organizations; evaluated alongside any user-submitted policy +- Returns HTTP 200 on success with the applied policy and ARN echoed back + +## Commands and Syntax + +**Request:** +```json +{ + "ResourceArn": "arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE", + "ResourcePolicy": "{\"Version\":\"2012-10-17\",\"Statement\":[...]}" +} +``` + +**ARN formats:** +- Event data store: `arn:aws:cloudtrail:::eventdatastore/` +- Dashboard: `arn:aws:cloudtrail:::dashboard/` +- Channel: `arn:aws:cloudtrail:::channel/` + +## Relationships +- **CloudTrail Lake**: Resource-based policies govern cross-account access to event data stores and dashboards in CloudTrail Lake +- **AWS Organizations**: Delegated admin accounts get an auto-generated default resource policy evaluated alongside explicit policies +- **IAM**: Complements identity-based IAM policies; resource-based policies allow cross-account access without assuming roles +- **Companion APIs**: `GetResourcePolicy`, `DeleteResourcePolicy` + +## Exam-Relevant Points +- Resource-based policies apply to **event data stores, dashboards, and channels only** — not trails +- Max policy size is **8192 characters** +- `ResourcePolicyNotValidException` is thrown for syntax errors or invalid principals — policies are validated on submission +- `ConflictException` indicates a race condition; retry after a few minutes +- Delegated admin policies are **automatically generated** and evaluated in tandem with user-submitted policies — you cannot override them +- All error responses return **HTTP 400** (client errors) + diff --git a/entries/2026/03/12/awscloudtrail-latest-APIReference-API_UpdateEventDataStorehtml.md b/entries/2026/03/12/awscloudtrail-latest-APIReference-API_UpdateEventDataStorehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..72f3fd8427b766e6b8e7273bda69171e2dc5ff32 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-APIReference-API_UpdateEventDataStorehtml.md @@ -0,0 +1,61 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_UpdateEventDataStore.html +source: sources/awscloudtrail-latest-APIReference-API_UpdateEventDataStorehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:15 + + + +## Overview +The `UpdateEventDataStore` API modifies an existing CloudTrail Lake event data store. It requires the event data store ARN or ID and at least one optional parameter. It can update retention periods, billing modes, encryption keys, event selectors, multi-region/organization scope, and termination protection settings. + +## Key Concepts +- **Event Data Store**: A CloudTrail Lake resource that stores event data for querying; identified by ARN or ID suffix. +- **BillingMode**: Two options — `EXTENDABLE_RETENTION_PRICING` (up to 3653 days/~10 years, default retention 366 days) and `FIXED_RETENTION_PRICING` (up to 2557 days/~7 years, default retention 2557 days, recommended for >25 TB/month ingestion). +- **One-way billing mode change**: Cannot switch from `EXTENDABLE_RETENTION_PRICING` to `FIXED_RETENTION_PRICING` — must stop ingestion and create a new event data store instead. +- **RetentionPeriod**: 7–3653 days (extendable) or 7–2557 days (fixed). Decreasing retention immediately removes events with `eventTime` older than the new period. +- **TerminationProtection**: Enabled by default; prevents automatic deletion of the event data store. +- **KmsKeyId**: Once associated, the KMS key cannot be removed or changed. Disabling/deleting the key prevents logging and querying. +- **AdvancedEventSelectors**: Up to 5 per event data store; selects management, data, or network activity events (for CloudTrail events) or includes specific event types (Insights, Config items, Audit Manager, non-AWS events). +- **MultiRegionEnabled**: Collects events from all regions or only the creation region. +- **OrganizationEnabled**: Only the management account can toggle organization-wide collection. +- **FederationStatus**: Returned in response; cannot delete an event data store while federation is `ENABLED`. +- **Status values**: `CREATED`, `ENABLED`, `PENDING_DELETION`, `STARTING_INGESTION`, `STOPPING_INGESTION`, `STOPPED_INGESTION`. + +## Commands and Syntax +**AWS CLI:** +```bash +aws cloudtrail update-event-data-store \ + --event-data-store arn:aws:cloudtrail:us-east-1:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE \ + --retention-period 180 \ + --multi-region-enabled \ + --termination-protection-enabled +``` + +**KMS Key ID formats:** +- `alias/MyAliasName` +- `arn:aws:kms:us-east-2:123456789012:alias/MyAliasName` +- `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012` +- `12345678-1234-1234-1234-123456789012` + +## Relationships +- **AdvancedEventSelectors** — shared with `CreateEventDataStore` and `PutEventSelectors`; governs which events are ingested. +- **CloudTrail Lake** — the event data store is the core Lake resource; relates to `CreateEventDataStore`, `DeleteEventDataStore`, `GetEventDataStore`, and Lake queries (`StartQuery`). +- **AWS KMS** — encryption at rest; supports multi-Region keys. +- **AWS Organizations** — organization-enabled event data stores require trusted access between CloudTrail and Organizations, a management account, and all-features mode. +- **Lake Query Federation** — `FederationStatus`/`FederationRoleArn` in the response tie to Athena federation capabilities. +- **Insights** — if Insights are enabled on the event data store, updated advanced event selectors must remain compatible (write management events for `ApiCallRateInsight`, management events for `ApiErrorRateInsight`). + +## Exam-Relevant Points +- **Billing mode is one-way**: You cannot downgrade from `EXTENDABLE_RETENTION_PRICING` to `FIXED_RETENTION_PRICING` — you must create a new event data store. +- **Retention limits differ by billing mode**: 3653 days (extendable) vs. 2557 days (fixed); minimum is always 7 days. +- **Reducing retention is destructive**: Events older than the new retention period are removed immediately. +- **KMS key is irrevocable once set**: Cannot be removed or changed after association. +- **Termination protection is on by default**. +- **Organization event data stores** can only be toggled by the management account and require Organizations all-features mode plus trusted access. +- **Cannot delete an event data store with federation ENABLED** or with an **ongoing import**. +- **Up to 5 advanced event selectors** per event data store, with a maximum of **500 total condition values** across all selectors. + diff --git a/entries/2026/03/12/awscloudtrail-latest-APIReference-Welcomehtml.md b/entries/2026/03/12/awscloudtrail-latest-APIReference-Welcomehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..84564e261f1707d7e36c2655b8e8c1cfe92c66a9 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-APIReference-Welcomehtml.md @@ -0,0 +1,36 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/Welcome.html +source: sources/awscloudtrail-latest-APIReference-Welcomehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:15 + + + +## Overview +The CloudTrail API Reference provides descriptions of actions, data types, common parameters, and common errors for AWS CloudTrail — a service that records AWS API calls for your account and delivers log files to an S3 bucket. + +## Key Concepts +- **CloudTrail** is a web service that records AWS API calls and delivers log files to S3. +- Recorded information includes: caller identity, call start time, source IP address, request parameters, and response elements. +- The API can be accessed directly or via AWS SDKs (Java, Ruby, .NET, iOS, Android, etc.). +- SDKs handle request signing, error management, and automatic retries. + +## Commands and Syntax +- No specific API actions are detailed on this welcome page; it serves as an entry point to the full API Reference. +- Programmatic access is available via SDKs as an alternative to direct API calls. + +## Relationships +- **Amazon S3**: CloudTrail delivers log files to S3 buckets. +- **AWS SDKs**: Provide programmatic access to CloudTrail API. +- **CloudTrail User Guide**: Companion document describing the data included in each logged API call. +- **IAM**: Caller identity is a core element of every CloudTrail record. + +## Exam-Relevant Points +- CloudTrail records **API calls**, not console-only actions (though console actions that invoke APIs are captured). +- Log files are delivered to **S3** — know this as the primary storage target. +- Each log entry captures: **who** (identity), **when** (start time), **where** (source IP), **what** (request parameters + response elements). +- SDKs automatically handle **cryptographic signing** of requests to CloudTrail. + diff --git a/entries/2026/03/12/awscloudtrail-latest-partner-onboarding-cloudtrail-lake-partner-onboardinghtml.md b/entries/2026/03/12/awscloudtrail-latest-partner-onboarding-cloudtrail-lake-partner-onboardinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..cec066e45af3be4a2bf73fbce184142235d812e6 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-partner-onboarding-cloudtrail-lake-partner-onboardinghtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/partner-onboarding/cloudtrail-lake-partner-onboarding.html +source: sources/awscloudtrail-latest-partner-onboarding-cloudtrail-lake-partner-onboardinghtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:16 + + + +## Overview +This page describes how AWS Partner Network (APN) partners can onboard their applications to AWS CloudTrail Lake, enabling customers to ingest partner-generated activity events into CloudTrail Lake for centralized audit logging, immutable storage, and SQL-based querying alongside native AWS events. + +## Key Concepts +- **CloudTrail Lake** accepts activity logs from both AWS services and third-party partner solutions +- **Event data store** — immutable collection of events; retention up to ~10 years (one-year extendable pricing) or ~7 years (seven-year retention pricing); for partner sources, event type is "Events from integrations" and `eventCategory` is `ActivityAuditLog` +- **Channel** — partner-specific resource mapping an event source to event data store destinations; identified by an ARN that the customer shares with the partner +- **Resource policy** — permissions policy attached to the channel controlling who can deliver events +- **Direct integration** — partner calls `PutAuditEvents` from their own infrastructure into the customer's event data store +- **Solution integration** — partner application runs inside the customer's AWS account and calls `PutAuditEvents` from there +- Partners gain discovery through promotion in the CloudTrail console with links to their AWS Marketplace listings + +## Commands and Syntax +- **`PutAuditEvents` API** — the core API partners use to deliver events; requires: + - `eventData` — the activity content + - Channel ARN — identifies the customer-partner connection + - External ID (optional, if specified in the resource policy) +- Event data stores for partner events are created via CloudTrail console or API with `eventCategory: ActivityAuditLog` + +## Relationships +- **CloudTrail Lake** — parent service; partner onboarding extends Lake's capabilities to non-AWS sources +- **Advanced event selectors** — used to filter which events persist in event data stores +- **Resource policies** — IAM-style policies that gate partner access to channels +- **AWS Marketplace** — partners with integrations get linked from CloudTrail console +- **PutAuditEvents API** — defined in the CloudTrail Data API (`awscloudtraildata`), separate from the main CloudTrail API + +## Exam-Relevant Points +- Partner events use `eventCategory: ActivityAuditLog` — distinct from AWS management/data events +- Two integration types: **direct** (partner's infrastructure calls API) vs **solution** (runs in customer's account) +- The customer creates both the event data store and the channel; the customer shares the channel ARN with the partner +- Resource policies on channels control partner access — CloudTrail Lake validates permissions before ingesting events +- Retention limits: up to **3,653 days (~10 years)** with one-year extendable pricing, up to **2,557 days (~7 years)** with seven-year pricing +- Events are **immutably stored** — key for audit and compliance use cases + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-aws-service-specific-topicshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-aws-service-specific-topicshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..33697e11d3ac69c0a8cba99c7e4bb14c8b27333f --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-aws-service-specific-topicshtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-aws-service-specific-topics.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-aws-service-specific-topicshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:16 + +## Overview +This page documents all AWS services that integrate with CloudTrail for API call logging, as well as services that can analyze or act upon CloudTrail log data. It covers service-level integrations (EventBridge, Organizations, Control Tower, Security Lake, Athena, Config, Audit Manager) and provides a comprehensive table of 200+ AWS services with CloudTrail support, including when support began. + +## Key Concepts +- **CloudTrail logs events for virtually all AWS services** — each service documents its own CloudTrail integration specifics +- **Two categories of integration**: (1) services that *emit* events to CloudTrail, and (2) services that *consume/analyze* CloudTrail data +- **CloudTrail Lake** provides SQL-based querying across multiple event fields, deeper than simple `LookupEvents` or Event History key-value lookups +- **Organization trails** collect events for all accounts in an AWS Organization — can be managed by the management account or a delegated administrator +- **Organization event data stores** serve the same cross-account purpose for CloudTrail Lake +- **Services in preview or without public APIs are not considered supported** for CloudTrail logging +- **Data events vs management events**: some services support both (e.g., S3 management events since 2015, data events since 2016; SWF management since 2014, data since 2024) +- **CloudTrail Lake incurs separate charges** beyond standard CloudTrail pricing + +## Commands and Syntax +No CLI commands on this page, but key EventBridge detail-type values for creating rules: +- `AWS API Call via CloudTrail` — matches management and data events (`eventType: AwsApiCall`); requires a trail logging those event types +- `AWS Console Sign In via CloudTrail` — matches console sign-in events; requires a trail logging management events +- `AWS Insight via CloudTrail` — matches Insights events; requires a trail with Insights logging enabled + +## Relationships +- **EventBridge**: near-real-time event routing from CloudTrail → triggers rules/actions +- **CloudWatch Logs**: metric filters + alarms on trail logs for monitoring/notification +- **Athena**: SQL queries on CloudTrail logs in S3; tables can be auto-created from CloudTrail console; also federated queries via CloudTrail Lake + Glue Data Catalog +- **Organizations**: organization trails/event data stores for uniform logging across all member accounts +- **Control Tower**: automatically creates an organization trail on landing zone setup; may cause duplicate charges if existing org trail exists +- **Security Lake**: collects CloudTrail management events and S3/Lambda data events; requires multi-Region org trail with read+write management events +- **AWS Config**: CloudTrail Lake can store Config configuration items for compliance investigation +- **Audit Manager**: CloudTrail Lake stores aggregated audit evidence + +## Exam-Relevant Points +- **Security Lake requires a multi-Region organization trail collecting both read and write management events** to ingest CloudTrail management events +- **Control Tower automatically creates an organization trail** — existing org trails may cause duplicate billing; delete them before enrollment +- **EventBridge integration requires an active trail** logging the appropriate event type (management, data, or Insights) +- **CloudTrail Lake queries use SQL** and incur additional CloudTrail charges +- **Athena federation** with CloudTrail Lake uses AWS Glue Data Catalog for table metadata +- **Delegated administrator** can manage CloudTrail resources for an organization (not just the management account) +- **Amazon VPC API calls are logged as a subset of EC2 API** (supported since 11/13/2013) +- **S3 data events** have been supported since 11/21/2016 (management events since 09/01/2015) +- **Nearly all GA AWS services with public APIs support CloudTrail** — the earliest support dates back to 11/13/2013 (EC2, RDS, VPC, CloudTrail itself) +- **CloudTrail logs itself** — all CloudTrail API calls are recorded by CloudTrail + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-copy-trail-to-lake-edshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-copy-trail-to-lake-edshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..105f706f5957341cf0c6332afc94376eb62713f7 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-copy-trail-to-lake-edshtml.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-copy-trail-to-lake-eds.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-copy-trail-to-lake-edshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:17 + + + +## Overview + +This page explains how to copy historical trail events into a CloudTrail Lake event data store, creating a point-in-time snapshot for querying and analysis. The process is non-destructive to the source trail and requires specific IAM, S3 bucket, and KMS key permissions. Copying incurs charges based on uncompressed data volume ingested into the event data store. + +## Key Concepts + +- **Copy trail events** creates a snapshot of historical trail events in a CloudTrail Lake event data store — it does not modify or interfere with the source trail +- You can copy to an **existing** event data store or create a **new** one with the "Copy trail events" option +- **Organization event data stores** require the **management account** — delegated administrator accounts cannot copy trail events +- CloudTrail **unzips gzip-compressed logs** before copying; uncompressed size is roughly **10x the S3 storage size** +- Only **gzip-compressed** log files are supported — uncompressed or non-gzip formats are skipped +- CloudTrail copies **all trail events regardless** of the destination event data store's event type configuration, advanced event selectors, or region settings +- By default, only events in the S3 bucket's `CloudTrail` prefix are copied; other prefixes must be explicitly selected +- **Retention period** must account for both the age of the oldest event and desired retention: `retention = oldest-event-in-days + days-to-retain` +- S3 objects in **Glacier Flexible Retrieval, Glacier Deep Archive, S3 Outposts, or Intelligent-Tiering Deep Archive** must be restored via `RestoreObject` before copying +- To avoid **duplicate events**, set the copy time range to end before the event data store's creation date +- Disable **S3 ACLs** on the source bucket before copying + +## Commands and Syntax + +**IAM permissions policy for the copy role** (S3 access + optional KMS): +```json +{ + "Statement": [ + {"Sid": "AWSCloudTrailImportBucketAccess", "Action": ["s3:ListBucket","s3:GetBucketAcl"], "Resource": "arn:aws:s3:::BUCKET"}, + {"Sid": "AWSCloudTrailImportObjectAccess", "Action": ["s3:GetObject"], "Resource": ["arn:aws:s3:::BUCKET/prefix","arn:aws:s3:::BUCKET/prefix/*"]}, + {"Sid": "AWSCloudTrailImportKeyAccess", "Action": ["kms:GenerateDataKey","kms:Decrypt"], "Resource": "arn:aws:kms:REGION:ACCOUNT:key/KEY_ID"} + ] +} +``` + +**IAM trust policy** — allows `cloudtrail.amazonaws.com` to assume the role with `aws:SourceAccount` and `aws:SourceArn` conditions. + +**S3 bucket policy** — grant `s3:ListBucket`, `s3:GetBucketAcl`, `s3:GetObject` to the IAM role ARN on the source bucket. + +**KMS key policy** — grant `kms:Decrypt` and `kms:GenerateDataKey` to the role ARN with `kms:EncryptionContext:aws:s3:arn` condition scoped to the bucket. + +## Relationships + +- **CloudTrail Lake**: The destination for copied events; provides SQL-based querying +- **CloudTrail Trails**: The source of historical events stored in S3 +- **S3**: Source bucket containing compressed trail logs; requires bucket policy updates and ACL disabling +- **KMS**: If S3 bucket uses SSE-KMS, key policies must be updated for each key +- **AWS Organizations**: Organization event data stores have management-account-only restrictions +- **Pricing options**: One-year extendable vs. seven-year retention pricing affects cost of ingested copied events + +## Exam-Relevant Points + +- Copying trail events charges based on **uncompressed** data size (approx. 10x compressed S3 size) +- Only the **management account** can copy trail events to an organization event data store — **not** the delegated administrator +- CloudTrail copies **all events** from the trail regardless of destination event data store selectors or region config +- Only **gzip-compressed** logs in the `CloudTrail` prefix are copied by default +- S3 archived storage classes (Glacier Flexible Retrieval, Deep Archive) require `RestoreObject` before events can be copied +- To create a read-only historical snapshot, **deselect "Ingest events"** when creating the event data store +- Retention period formula: `oldest_event_age_in_days + desired_retention_days` +- Three permission layers must be configured: **IAM role policy**, **S3 bucket policy**, and (if applicable) **KMS key policy** + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-copy-trail-to-lakehtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-copy-trail-to-lakehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..53b5c9a3910902e6f8b61f578bf64b425fd700c8 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-copy-trail-to-lakehtml.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-copy-trail-to-lake.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-copy-trail-to-lakehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:17 + + + +## Overview + +This page describes how to copy existing trail events into a CloudTrail Lake event data store, creating a point-in-time snapshot for advanced querying. The copy operation is non-destructive to the source trail and requires specific IAM, S3 bucket, and KMS key permissions. Costs are based on uncompressed data volume ingested into the event data store. + +## Key Concepts + +- **Trail-to-Lake copy** creates a snapshot of historical trail events in a CloudTrail Lake event data store for SQL-based querying +- Copying does **not** modify or interfere with the source trail +- You can copy to an **existing** event data store or create a **new** one with the "Copy trail events" option +- CloudTrail **unzips gzip-compressed logs** before copying — uncompressed size is roughly **10x the S3 storage size** +- Only **gzip-compressed** log files are supported; uncompressed or other compression formats are skipped +- CloudTrail copies **all trail events regardless** of the destination event data store's event types, advanced event selectors, or region configuration +- By default, only events in the S3 bucket's `CloudTrail` prefix are copied; other prefixes must be explicitly selected +- **Organization event data stores** require the **management account** — delegated administrator accounts cannot copy trail events +- **Retention period formula**: `oldest-event-in-days + number-days-to-retain` (e.g., 45-day-old events + 45 days retention = 90-day retention period) +- CloudTrail only copies events with `eventTime` within the event data store's retention period +- To avoid event duplication, choose a copy time range **earlier than** the event data store's creation date + +## Commands and Syntax + +**IAM permissions policy** for the copy role (3 statements): +- `AWSCloudTrailImportBucketAccess`: `s3:ListBucket`, `s3:GetBucketAcl` on the source bucket +- `AWSCloudTrailImportObjectAccess`: `s3:GetObject` on the bucket prefix and prefix/* +- `AWSCloudTrailImportKeyAccess` (optional): `kms:GenerateDataKey`, `kms:Decrypt` on the KMS key + +All S3 statements use conditions: `aws:SourceAccount` and `aws:SourceArn` (the event data store ARN). + +**IAM trust policy**: Allows `cloudtrail.amazonaws.com` to `sts:AssumeRole`, scoped by `aws:SourceAccount` and `aws:SourceArn`. + +**S3 bucket policy addition**: Grant `s3:ListBucket`, `s3:GetBucketAcl`, `s3:GetObject` to the IAM role ARN on the bucket and bucket/*. + +**KMS key policy**: Grant `kms:Decrypt`, `kms:GenerateDataKey` to the role ARN, conditioned on `kms:EncryptionContext:aws:s3:arn` matching the bucket. + +## Relationships + +- **CloudTrail Lake** — the destination analytics engine; enables SQL queries on copied events +- **CloudTrail Trails** — the source of events being copied +- **S3** — trails store logs in S3; copy uses `s3:GetObject`; archived storage classes (Glacier Flexible Retrieval, Deep Archive, Intelligent-Tiering Deep Archive) require `RestoreObject` before copying +- **KMS** — if S3 bucket uses SSE-KMS, key policies must be updated for each key +- **IAM** — role-based access controls the copy operation; new roles auto-configured, existing roles need manual policy updates +- **AWS Organizations** — organization event data stores restricted to management account +- **Event history / LookupEvents** — Lake queries are positioned as a more powerful alternative +- **Pricing options** — determine ingestion cost, storage cost, and retention limits + +## Exam-Relevant Points + +- Uncompressed data is approximately **10x** the compressed S3 log size — important for cost estimation +- **Only gzip-compressed** log files are copied; other formats are ignored +- Copied events ignore the destination event data store's advanced event selectors and region settings — **all events are copied** +- **Management account only** for organization event data store copies (not delegated admin) +- Must **disable S3 ACLs** and **update bucket policy** before copying +- Archived S3 storage classes require **RestoreObject** before events can be copied +- Retention period must account for both the **age of the oldest event** and the **desired retention duration** +- To avoid duplicate events, set copy time range **before** event data store creation date +- You can create a **query-only** event data store by deselecting "Ingest events" during creation +- Choosing to let CloudTrail create a **new IAM role** automatically grants all needed permissions + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-a-trail-using-the-console-first.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-a-trail-using-the-console-first.md new file mode 100644 index 0000000000000000000000000000000000000000..1ea9cbbfbe16051f0c2fc55e1568d9652e20dd97 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-a-trail-using-the-console-first.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-create-a-trail-using-the-console-first-time.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-create-a-trail-using-the-console-first.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:17 + +## Overview +This page describes how to create a CloudTrail trail using the AWS Management Console. Trails created via the console are always multi-Region trails (capturing activity across all enabled Regions). Single-Region trails can only be created via the AWS CLI or `CreateTrail` API. The page walks through configuring storage, encryption, logging options, event types (management, data, and network activity events), and aggregation settings. + +## Key Concepts +- **Multi-Region trail**: Captures activity in all enabled AWS Regions; this is the default and recommended configuration when using the console +- **Single-Region trail**: Only possible via AWS CLI or `CreateTrail` API (not recommended) +- **Organization trail**: Covers all accounts in an AWS Organizations organization; requires management or delegated administrator account with sufficient permissions +- **Log file SSE-KMS encryption**: Enabled by default; encrypts logs and digest files using KMS instead of SSE-S3 +- **Log file validation**: Delivers digest files to verify log integrity (logs not changed after delivery) +- **SNS notification delivery**: Sends notification per log file (not per event); recommend routing to SQS for programmatic handling +- **CloudWatch Logs integration**: Sends trail events to a CloudWatch Logs log group; only the management account can configure this for org trails via console +- **Advanced event selectors**: Default selector type offering fine-grained control over data event filtering with fields like `readOnly`, `eventName`, `resources.ARN`, `userIdentity.arn`, `sessionCredentialFromConsole`, `eventType`, `eventSource` +- **Data event aggregation**: 5-minute summary templates — API Activity, Resource Access, User Actions +- **Network activity events**: Record API calls made through VPC endpoints from private VPCs; filterable by `eventName`, `errorCode` (`VpceAccessDenied`), and `vpcEndpointId` +- **Tags**: Up to 50 key-value pairs per trail + +## Commands and Syntax +- Console path: **CloudTrail console → Trails → Create trail** +- KMS alias format: `alias/MyAliasName` +- S3 prefix: Optional folder path for organizing logs within the bucket +- When creating a new S3 bucket, IAM policy needs `s3:PutEncryptionConfiguration` permission +- AWS KMS multi-Region keys are supported +- Cross-account S3 buckets and KMS keys are supported (with appropriate policies) +- Maximum 500 values across all advanced event selector conditions + +## Relationships +- **S3**: Trail logs stored in S3 buckets; bucket policies must grant CloudTrail write access +- **KMS**: Optional SSE-KMS encryption for log and digest files; key policy must allow CloudTrail usage +- **SNS/SQS**: Optional notifications on log file delivery; SQS recommended for high-frequency handling +- **CloudWatch Logs**: Optional log forwarding; requires IAM role with appropriate policy +- **AWS Organizations**: Organization trails span all member accounts +- **AWS KMS events**: High-volume actions (Encrypt, Decrypt, GenerateDataKey) are Read events; can be excluded to reduce noise +- **Amazon RDS Data API events**: Can be excluded from management events +- **VPC endpoints**: Network activity events track API calls through VPC endpoints + +## Exam-Relevant Points +- Console-created trails are **always multi-Region**; single-Region requires CLI/API +- **SSE-KMS is enabled by default** (not SSE-S3) +- SNS notifications are **per log file, not per event** +- AWS KMS actions like Encrypt/Decrypt/GenerateDataKey account for **>99% of KMS event volume** and are classified as **Read** events +- To log relevant KMS events only (Disable, Delete, ScheduleKey), log Write management events and clear "Exclude AWS KMS events" +- CloudWatch Logs log group for org trails: **management account only via console**; delegated admin must use CLI/API +- Advanced event selectors support up to **500 values** across all conditions +- Wildcards (`*`) are **not supported** in selectors; use `StartsWith`, `EndsWith`, `NotStartsWith`, `NotEndsWith` instead +- Network activity events' only supported `errorCode` is `VpceAccessDenied` +- Creating a new S3 bucket requires `s3:PutEncryptionConfiguration` in IAM policy (server-side encryption enabled by default) +- Data event logging for S3 predefined templates applies to **all current and future buckets** in the account + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-and-update-a-trail-by-using-the.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-and-update-a-trail-by-using-the.md new file mode 100644 index 0000000000000000000000000000000000000000..c96af61a4a5ed7ee5ed2762e54c952c3eb020da6 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-and-update-a-trail-by-using-the.md @@ -0,0 +1,74 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-create-and-update-a-trail-by-using-the-aws-cli.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-create-and-update-a-trail-by-using-the.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:18 + + + +## Overview + +This page documents how to use the AWS CLI to create, update, and manage CloudTrail trails. It covers the full set of CLI commands for trail lifecycle management, including creation, configuration, logging control, tagging, event selector configuration, and status retrieval. + +## Key Concepts + +- CLI commands run in the AWS Region configured for your profile; use `--region` to override +- Trails can be **multi-region** (`--is-multi-region-trail`) or single-region; multi-region is recommended +- Trails can be **organization-level** (`--is-organization-trail`) to capture events across all accounts in an AWS Organization +- Deleting a trail (`delete-trail`) does **not** delete the S3 bucket containing log files +- Log file **encryption** is controlled via `--kms-key-id` (uses AWS KMS) +- Log file **validation** (integrity checking) is toggled via `--enable-log-file-validation` / `--no-enable-log-file-validation` +- Trails can deliver events to **CloudWatch Logs** by specifying a log group and IAM role +- **Insights event selectors** can be configured to detect unusual API activity +- `create-subscription` and `update-subscription` are **deprecated** — do not use + +## Commands and Syntax + +| Command | Purpose | +|---------|---------| +| `aws cloudtrail create-trail` | Create a new trail | +| `aws cloudtrail update-trail` | Modify existing trail configuration | +| `aws cloudtrail start-logging` | Begin capturing events | +| `aws cloudtrail stop-logging` | Pause event capture | +| `aws cloudtrail delete-trail` | Delete a trail (keeps S3 bucket) | +| `aws cloudtrail describe-trails` | List trails in a region | +| `aws cloudtrail get-trail` | Get trail settings | +| `aws cloudtrail get-trail-status` | Get current trail status | +| `aws cloudtrail add-tags` | Tag a trail | +| `aws cloudtrail remove-tags` | Remove tags from a trail | +| `aws cloudtrail list-tags` | List trail tags | +| `aws cloudtrail put-event-selectors` | Configure event selectors | +| `aws cloudtrail get-event-selectors` | Retrieve event selector config | +| `aws cloudtrail put-insight-selectors` | Configure Insights event selectors | +| `aws cloudtrail get-insight-selectors` | Retrieve Insights selector config | + +Key flags for `create-trail`/`update-trail`: +- `--is-multi-region-trail` / `--no-is-multi-region-trail` +- `--is-organization-trail` +- `--kms-key-id ` +- `--enable-log-file-validation` / `--no-enable-log-file-validation` + +General help: `aws cloudtrail help` + +## Relationships + +- **S3** — Trail log files are stored in S3 buckets +- **AWS KMS** — Optional encryption of log files +- **CloudWatch Logs** — Optional delivery of trail events to log groups +- **AWS Organizations** — Organization trails span all member accounts +- **CloudTrail Insights** — Anomaly detection configured via insight selectors +- **IAM** — Roles required for CloudWatch Logs delivery and KMS key policies + +## Exam-Relevant Points + +- Multi-region trails are the recommended default; they capture events across **all** AWS Regions +- Deleting a trail does **not** delete the associated S3 bucket or its log files +- `create-subscription` and `update-subscription` are deprecated — always use `create-trail`/`update-trail` +- Log file validation and KMS encryption are separate, independently configurable features +- Organization trails require `--is-organization-trail` and apply to all accounts in the org +- A trail must have `start-logging` called to begin capturing events after creation +- The `--region` flag or profile configuration determines which region CLI commands target + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-and-update-a-trailhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-and-update-a-trailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2081e281370cb92a5c4e05c0fb8dc9403b4cbcbd --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-and-update-a-trailhtml.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-create-and-update-a-trail.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-create-and-update-a-trailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:18 + + + +## Overview + +This page covers how to create a CloudTrail trail for an AWS account, which enables ongoing delivery of API activity events as log files to an S3 bucket beyond the default 90-day Event History retention. Trails can be single-region or multi-region, and can span an entire AWS Organization. + +## Key Concepts + +- **Trail**: A configuration that delivers CloudTrail events as log files to a specified S3 bucket +- **Default retention without a trail**: Event History retains only 90 days of events +- **Multi-Region trail**: Captures activity in all enabled regions; appears in the console in all regions. **Best practice and default when created via console** +- **Single-Region trail**: Logs events in one region only; can only be created via the **AWS CLI** (not the console) +- **Organization trail**: Logs events for all AWS accounts in an AWS Organization; creates a trail with the same name in each member account +- **Misconfigured trail redeliver behavior**: CloudTrail attempts redelivery for **30 days** if the S3 bucket is unreachable; these attempts incur standard CloudTrail charges +- **To stop charges on a misconfigured trail**: You must **delete the trail** + +## Commands and Syntax + +- Console-created trails are always multi-region +- To create a single-region trail, use the AWS CLI (see `cloudtrail-create-and-update-a-trail-by-using-the-aws-cli`) +- Trails can integrate with **CloudWatch Logs** for monitoring/alarming and **Amazon Athena** for querying + +## Relationships + +- **S3**: Destination for trail log files +- **CloudWatch Logs**: Optional integration for monitoring and alarming on trail events +- **Amazon Athena**: Optional integration for querying and analyzing trail logs +- **AWS Organizations**: Organization trails aggregate events from all member accounts +- **Delegated administrator**: Along with the management account, can create organization trails +- **Multi-Region trails** → relates to enabled regions in the account + +## Exam-Relevant Points + +- Console-created trails are **always multi-region**; single-region trails require the **AWS CLI** +- Only the **management account or delegated administrator** can create organization trails +- CloudTrail Event History retains events for **90 days** without a trail +- Misconfigured trails incur charges for **30 days** of redelivery attempts — must **delete** the trail to stop charges +- Multi-region trails are the **recommended best practice** +- Organization trail integration with AWS Organizations is **automatic** upon creation + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-delegated-administratorhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-delegated-administratorhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3660150b36e0d90d5cf60e1c7815e19661c46e06 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-delegated-administratorhtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-delegated-administrator.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-delegated-administratorhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:18 + + + +## Overview +This page explains how AWS CloudTrail supports delegated administrators within AWS Organizations. A delegated administrator is a member account granted authority to manage organization trails and event data stores on behalf of the organization, without requiring direct access to the management account. + +## Key Concepts +- A **delegated administrator** is a member account that can perform most CloudTrail administrative tasks that the management account can +- The **management account remains the owner** of all CloudTrail organization resources created by the delegated administrator — this ensures continuity if the delegated administrator changes +- **Maximum of 3** CloudTrail delegated administrators per organization +- Removing a delegated administrator **does not delete** any organization trails or event data stores they created +- Adding a delegated administrator triggers creation of **service-linked roles** (`AWSServiceRoleForCloudTrail` and `AWSServiceRoleForCloudTrailEventContext`) in the management account — but only when done via CloudTrail console/CLI/API, not via Organizations CLI/API directly + +## Commands and Syntax +No specific CLI commands shown on this page, but references: +- `CreateTrail` / `UpdateTrail` API operations — delegated admin can configure CloudWatch Logs log groups only via CLI/API (not console) +- Related pages cover `RegisterOrganizationDelegatedAdministrator` and `DeregisterOrganizationDelegatedAdministrator` + +## Relationships +- **AWS Organizations**: Delegated administrator is an Organizations-level concept applied to CloudTrail +- **Service-linked roles**: `AWSServiceRoleForCloudTrail` and `AWSServiceRoleForCloudTrailEventContext` are auto-created when adding a delegated admin +- **CloudTrail Lake**: Delegated admins can run queries, manage federation, and manage event data stores (with some restrictions) +- **CloudWatch Logs**: Delegated admin can configure log groups only via CLI/API; the log group and role must exist in the calling account +- **Lake Formation**: Non-primary delegated admins can share data via Lake Formation data sharing instead of direct federation + +## Exam-Relevant Points +- **Max 3 delegated administrators** per organization +- **Only the management account** can: add/remove delegated admins, enable Insights on org event data stores, copy trail events to org event data stores, view/enable managed dashboards and Highlights, convert between org-level and account-level trails/event data stores +- **Delegated admins cannot** convert organization trails/event data stores to account-level (or vice versa) — only management account can +- **Only one** delegated admin (or management account) can enable Lake query federation on an org event data store; any delegated admin can disable it +- **Ownership model**: Management account always owns org resources regardless of who created them +- **Service-linked role creation difference**: Using Organizations CLI/API to add a delegated admin does NOT auto-create CloudTrail service-linked roles; using CloudTrail console/CLI/API does + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-event-reference-aws-console-sign-in-ev.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-event-reference-aws-console-sign-in-ev.md new file mode 100644 index 0000000000000000000000000000000000000000..0e3f655541f2299069a301a5f34f4a4f9895b799 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-event-reference-aws-console-sign-in-ev.md @@ -0,0 +1,65 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-aws-console-sign-in-events.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-event-reference-aws-console-sign-in-ev.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:19 + + + +## Overview +This page documents how AWS CloudTrail logs sign-in events for the AWS Management Console, covering IAM users, root users, and federated users. It details the event record structure, regional behavior of `ConsoleLogin` events, and provides example JSON records for successful/failed sign-ins, MFA checks, password changes, and MFA device changes. + +## Key Concepts +- **All console sign-in attempts are logged** by CloudTrail — IAM users, root users, and federated users +- **Event name** for sign-ins is `ConsoleLogin`; MFA checks use `CheckMfa` +- **Event source** is `signin.amazonaws.com` for sign-in events; `iam.amazonaws.com` for MFA/password changes +- **Event type** is `AwsConsoleSignIn` for sign-in events; `AwsApiCall` for IAM changes +- **Region recording rules**: + - Root user sign-ins always recorded in **us-east-1** + - IAM user with global endpoint + account alias cookie → recorded in us-east-2, eu-north-1, or ap-southeast-2 (latency-based) + - IAM user with global endpoint + no alias cookie → recorded in **us-east-1** + - IAM user with regional endpoint → recorded in that region +- **MFA tracking** via `additionalEventData`: + - `MFAUsed`: "Yes" or "No" + - `MFAIdentifier`: ARN of the MFA device (present when MFA used) + - `MfaType`: "Virtual MFA", "U2F MFA", or "Multiple MFA Devices" +- **Failed sign-ins** include `errorMessage: "Failed authentication"` and `responseElements.ConsoleLogin: "Failure"` +- **Federated users** appear as `type: "AssumedRole"` with `sessionContext.sessionIssuer` showing the role details +- `mfaAuthenticated` and `MFAUsed` are only `true` for IAM/root users using MFA — federated users always show `false`/`No` +- **AWS User Notifications** can alert on CloudTrail sign-in events via email, chat, or mobile push + +## Commands and Syntax +No CLI commands — this page is about reading/interpreting CloudTrail event JSON. Key fields to inspect: + +| Field | Purpose | +|-------|---------| +| `responseElements.ConsoleLogin` | `"Success"` or `"Failure"` | +| `additionalEventData.MFAUsed` | Whether MFA was used | +| `additionalEventData.MFAIdentifier` | ARN of MFA device | +| `additionalEventData.MfaType` | Type of MFA device(s) | +| `errorMessage` | Present on failed sign-ins | +| `userIdentity.type` | `IAMUser`, `Root`, or `AssumedRole` | +| `eventName` | `ConsoleLogin`, `CheckMfa`, `EnableMFADevice`, `ChangePassword` | +| `tlsDetails` | TLS version and cipher used | + +## Relationships +- **CloudTrail** — parent service that captures these events +- **IAM** — user/role identity system; MFA device management (`EnableMFADevice`, `ChangePassword`) +- **AWS STS** — federated users authenticate via `AssumeRole`, appearing as `AssumedRole` type +- **CloudWatch Logs** — CloudTrail can send sign-in events to CloudWatch for alarming +- **AWS User Notifications** — can deliver alerts on sign-in events via multiple channels +- **AWS Console Mobile App / Amazon Q Developer** — notification delivery channels + +## Exam-Relevant Points +- Root user `ConsoleLogin` events are **always logged in us-east-1** regardless of where the user is +- A failed sign-in has `responseElements.ConsoleLogin: "Failure"` and includes an `errorMessage` field +- `MFAUsed: "No"` in a `ConsoleLogin` event means MFA was not used for that sign-in — important for security auditing +- Federated user sign-in events show `mfaAuthenticated: "false"` because MFA is evaluated at the federation/STS level, not at console sign-in +- The `GetSigninToken` event is specific to **federated console access** (federation URL sign-in flow) +- `CheckMfa` is a separate event from `ConsoleLogin` — it checks whether MFA is required, not whether it succeeded +- Sign-in events are **management events** (`managementEvent: true`, `eventCategory: "Management"`) +- Root user password and MFA changes are logged via `iam.amazonaws.com` as `AwsApiCall` events, not `AwsConsoleSignIn` + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-cloudwatch-metricshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-cloudwatch-metricshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ed75dc02ac224306422c41811c71ea0049fa0711 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-cloudwatch-metricshtml.md @@ -0,0 +1,40 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-cloudwatch-metrics.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-lake-cloudwatch-metricshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:19 + + + +## Overview +CloudTrail Lake integrates with Amazon CloudWatch to publish metrics under the `AWS/CloudTrail` namespace, enabling monitoring of data ingestion, storage, retention, and Insights analysis activity for event data stores. + +## Key Concepts +- **Namespace**: All metrics live under `AWS/CloudTrail` +- **HourlyDataIngested**: Bytes ingested in the last hour; updated hourly; available for all event data store types +- **TotalDataRetained**: Bytes retained over the entire retention period; updated nightly; all event data store types +- **TotalStorageBytes**: Total compressed bytes as of the current day; all event data store types +- **TotalPaidStorageBytes**: Compressed bytes stored beyond 366 days; only applies to one-year extendable retention pricing; first 366 days of storage included free with ingestion pricing +- **HourlyEventsAnalyzed**: Count of events analyzed by CloudTrail Insights; updated hourly; only for Insights-enabled event data stores +- All metrics use either **Bytes** or **Count** as units + +## Commands and Syntax +No CLI commands on this page. Metrics are consumed via standard CloudWatch mechanisms (console, `aws cloudwatch get-metric-data`, alarms, dashboards). + +## Relationships +- **CloudWatch**: Metrics feed into CloudWatch for alarms and dashboards +- **CloudTrail Lake event data stores**: Each metric is scoped to an event data store +- **CloudTrail Insights**: `HourlyEventsAnalyzed` only appears when Insights is enabled on the event data store +- **Pricing model**: `TotalPaidStorageBytes` ties directly to the one-year extendable retention pricing option — storage beyond 366 days is pay-as-you-go + +## Exam-Relevant Points +- Storage for the first **366 days** is included at no extra cost under the one-year extendable retention pricing option +- `TotalPaidStorageBytes` is the **only** metric restricted to a specific pricing option (one-year extendable) +- `HourlyEventsAnalyzed` is the **only** metric restricted to Insights-enabled event data stores +- `TotalDataRetained` updates **nightly**, not hourly +- `HourlyDataIngested` and `HourlyEventsAnalyzed` update **hourly** +- All storage metrics are in **compressed bytes**, not raw/uncompressed + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-conceptshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-conceptshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e92b1cbcd947ecd781b754d2c6cc0f249562323a --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-conceptshtml.md @@ -0,0 +1,62 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-concepts.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-lake-conceptshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:19 + + + +## Overview + +CloudTrail Lake is a managed data lake within AWS CloudTrail that aggregates events into immutable collections called event data stores. It supports SQL-based querying (using Trino), integrations with external event sources, federation with Athena/Glue, and dashboards for visualizing event trends. It serves as a centralized audit and analysis platform for AWS activity, configuration items, and even non-AWS application events. + +## Key Concepts + +- **Event data stores** — Immutable collections of events filtered by advanced event selectors. Can store management events, data events, network activity events, Insights events, AWS Config configuration items, Audit Manager evidence, or events from outside AWS. +- **Advanced event selectors** — Filters that control which events are ingested into an event data store. Help control costs by excluding high-volume, low-value events (e.g., KMS `Encrypt`/`Decrypt`/`GenerateDataKey` which can be 99%+ of events). +- **Federation** — Enables querying event data store contents via Amazon Athena by registering metadata in the AWS Glue Data Catalog and AWS Lake Formation. +- **Retention period** — Determines how long events are kept, based on `eventTime`. Has a default period (storage included with ingestion pricing) and a maximum period. Storage beyond the default period is pay-as-you-go. +- **Termination protection** — Enabled by default on event data stores to prevent accidental deletion; must be explicitly disabled before deleting. +- **Integrations** — Bring events from outside AWS (hybrid environments, SaaS, on-prem) into CloudTrail Lake via the `PutAuditEvents` API. +- **Channels** — The delivery mechanism for external integrations; route events to one or more event data stores that log `eventCategory="ActivityAuditLog"`. +- **Integration types** — *Direct* (partner calls `PutAuditEvents`) vs. *Solution* (application in your AWS account calls `PutAuditEvents`). +- **Resource-based policies** — JSON policies attached to channels to authorize external sources to transmit events. Without one, only the channel owner can call `PutAuditEvents`. +- **Queries** — SQL queries using Trino `SELECT` statements and functions. Can be written manually, loaded from samples, or generated from natural language prompts. +- **Dashboards** — Three types: *Managed* (14 pre-built, read-only, manual refresh), *Custom* (up to 10 widgets, configurable refresh schedule), *Highlights* (auto-updated every 6 hours, surfaces anomalies like abnormal cross-account access). +- **Widgets** — Dashboard components; each backed by a SQL query that runs on refresh. + +## Commands and Syntax + +- **PutAuditEvents API** — Used to ingest external application activity into CloudTrail Lake via a channel. +- **Query language** — Trino-compatible SQL `SELECT` statements. Queries can be authored in the CloudTrail Lake Editor console tab. +- **Natural language query generator** — Converts English prompts into SQL queries. +- **Termination protection toggle** — Actions menu → "Change termination protection" on event data store details page, then delete. + +## Relationships + +- **AWS Glue Data Catalog / Lake Formation / Athena** — Federation enables Athena queries over event data stores by registering metadata in Glue and Lake Formation. +- **AWS Config** — Configuration items can be stored in CloudTrail Lake event data stores. +- **AWS Audit Manager** — Evidence can be ingested into CloudTrail Lake. +- **CloudTrail Insights** — Insights events are a supported event data store type. +- **CloudTrail trails** — Lake is a separate storage/query mechanism from traditional S3-based trail delivery. +- **External partners** — Direct and solution integrations bring non-AWS events into Lake via channels and `PutAuditEvents`. + +## Exam-Relevant Points + +- Event data stores are **immutable** collections. +- **Advanced event selectors** are used to filter management/data/network events but only to *include* Config items, Audit Manager evidence, or external events. +- KMS events (`Encrypt`, `Decrypt`, `GenerateDataKey`) typically generate **>99%** of events — filtering these is a key cost optimization. +- **Termination protection is enabled by default** and must be disabled before deletion. +- Federation uses **Glue Data Catalog + Lake Formation + Athena** — know this three-service chain. +- Storage during the **default retention period is included** with ingestion pricing; beyond that it's pay-as-you-go. +- Retention is based on **`eventTime`**, not ingestion time. +- Queries use **Trino SQL** (not standard MySQL/PostgreSQL). +- Highlights dashboard updates **every 6 hours** and shows **last 24 hours** of data. +- Custom dashboards support **up to 10 widgets**. +- There are **14 managed dashboards** available. +- External integrations require both a **channel** and an **event data store**; channels must target event data stores logging `eventCategory="ActivityAuditLog"`. +- **Two integration types**: direct (partner-initiated) vs. solution (runs in your account). + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-manage-costshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-manage-costshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..55d8e15cf51aada85022b2435331410330c53fbd --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-manage-costshtml.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-manage-costs.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-lake-manage-costshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:20 + + + +## Overview +This page covers cost management strategies for AWS CloudTrail Lake, including the two pricing options for event data stores (one-year extendable retention and seven-year fixed retention), how charges are incurred for data ingestion, storage, and queries, and recommendations for reducing costs. + +## Key Concepts +- **Two pricing options**: One-year extendable retention (`EXTENDABLE_RETENTION_PRICING`) and Seven-year retention (`FIXED_RETENTION_PRICING`) +- **One-year extendable retention**: Default option; storage included for first 366 days; max retention 3,653 days (10 years); recommended for <25 TB/month ingestion +- **Seven-year retention**: Storage included at no additional charge; default and max retention 2,557 days (7 years); recommended for >25 TB/month ingestion +- **Three charge types**: Data ingestion (uncompressed), data retention (compressed ORC format), and query execution (compressed data scanned) +- **Storage format**: CloudTrail Lake converts row-based JSON to Apache ORC (columnar, compressed) for optimized retrieval +- **Copying trail events**: Uncompressed data can be ~10x the S3 gzip-compressed size; retention period must cover oldest event age plus desired retention days +- **Retention-based eviction**: Events are removed when their `eventTime` exceeds the retention period + +## Commands and Syntax +- **Change pricing option** (Seven-year → One-year): Use CloudTrail console, AWS CLI, or `UpdateEventDataStore` API +- **Switch One-year → Seven-year**: Must stop ingestion on existing data store and create a new one (cannot change in-place) +- **Retention period formula for trail copies**: `Retention period = oldest-event-in-days + number-days-to-retain` +- **Cost-effective queries**: Always include `WHERE eventTime >= '...' AND eventTime <= '...'` to limit data scanned +- **Advanced event selector filter fields**: + - Management events: `eventName`, `eventSource`, `eventType`, `readOnly`, `sessionCredentialFromConsole`, `userIdentity.arn` + - Data events: adds `resources.type`, `resources.ARN` + - Network activity events: `eventName`, `errorCode`, `vpcEndpointId` + +## Relationships +- **CloudTrail trails**: Trail events can be copied to Lake; understanding compression ratios matters for cost estimation +- **AWS Config / Audit Manager**: One-year extendable pricing recommended for config items and evidence +- **Advanced event selectors**: Shared filtering mechanism used across CloudTrail event data store configuration +- **CloudWatch metrics**: Lake publishes metrics that can help monitor ingestion and costs +- **AWS Budgets / Cost Explorer**: Complementary tools for monitoring and controlling CloudTrail Lake spend +- **S3**: Source of trail logs when copying to Lake; gzip-compressed storage there vs. ORC in Lake + +## Exam-Relevant Points +- The 25 TB/month threshold is the decision point between one-year extendable and seven-year pricing +- One-year extendable is the **default** pricing option +- Storage is free for the first 366 days with one-year extendable pricing; after that it's pay-as-you-go +- Seven-year pricing includes storage at no additional cost for the full retention period +- Queries are charged based on **optimized and compressed** data scanned, not raw/uncompressed +- Ingestion is charged based on **uncompressed** data +- You can change from seven-year to one-year pricing in-place, but switching from one-year to seven-year requires creating a new event data store +- Uncompressed trail data is approximately **10x** the S3 gzip size — critical for cost estimation +- Using `eventTime` constraints in queries directly reduces query costs +- Advanced event selectors reduce ingestion costs by filtering unwanted events before they enter the data store + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-organizationshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-organizationshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..a74c76aa6a21624eca71c30e339147a88c054611 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-organizationshtml.md @@ -0,0 +1,76 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-organizations.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-lake-organizationshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:20 + + + +## Overview +This page explains how to create and manage **organization event data stores** in AWS CloudTrail Lake for AWS Organizations. Organization event data stores aggregate events across all member accounts in an organization, can span all or a single Region, and can be created by the management account or a delegated administrator. Ownership always resides in the management account. + +## Key Concepts +- **Organization event data store** logs events for all AWS accounts in an AWS Organization; cannot collect events from outside AWS. +- Created by the **management account** or **delegated administrator**, but the event data store always exists in the management account. +- Automatically applied to all member accounts — members **cannot see, modify, or delete** it, and by default have no query access. +- Only the **management account** can: register/remove delegated admins, enable Insights, copy trail events, view managed dashboards, enable Highlights dashboards, or create custom dashboard widgets for org event data stores. +- Delegated administrators **can**: create, update, delete, start/stop ingestion, enable/disable federation, and run queries on org event data stores. +- Only the **management account** can convert between account-level and organization-level event data stores. +- Federation can be enabled by only **one** delegated admin or the management account; other delegated admins use Lake Formation data sharing. +- **`DelegatedAdminResourcePolicy`** — auto-generated resource policy granting delegated admins their permitted actions; updated automatically on org changes or EDS conversions. + +## Commands and Syntax + +**Create an org event data store (management events):** +```bash +aws cloudtrail create-event-data-store --name org-management-eds --organization-enabled +``` + +**Create an org event data store (AWS Config configuration items):** +```bash +aws cloudtrail create-event-data-store --name config-items-org-eds \ + --organization-enabled \ + --advanced-event-selectors '[ + { + "Name": "Select AWS Config configuration items", + "FieldSelectors": [ + { "Field": "eventCategory", "Equals": ["ConfigurationItem"] } + ] + } + ]' +``` + +**Convert account-level EDS to organization EDS:** +```bash +aws cloudtrail update-event-data-store --region us-east-1 \ + --organization-enabled \ + --event-data-store arn:aws:cloudtrail:us-east-1:123456789012:eventdatastore/EXAMPLE-... +``` + +**View delegated admin resource policy:** +```bash +aws cloudtrail get-resource-policy \ + --resource-arn arn:aws:cloudtrail:us-east-1:888888888888:eventdatastore/example6-... +``` + +## Relationships +- **AWS Organizations** — org event data stores depend on an active organization; delegated admin registration is an Organizations concept. +- **CloudTrail Lake** — org event data stores are a Lake feature; queries, dashboards, federation, and Insights all operate within Lake. +- **AWS Config** — org event data stores can collect Config configuration items (not just CloudTrail events). +- **Lake Formation** — delegated admins who can't enable federation can use Lake Formation data sharing to access federated data. +- **Resource-based policies** — the auto-generated `DelegatedAdminResourcePolicy` interacts with any user-attached resource policy; explicit denies override it. + +## Exam-Relevant Points +- Organization event data stores **always reside in the management account**, even when created by a delegated administrator. +- Member accounts **cannot see or query** organization event data stores by default. +- **Only the management account** can convert between account-level and organization-level event data stores. +- **Only the management account** can enable CloudTrail Insights on an organization event data store. +- **Only the management account** can copy trail events to an event data store. +- The `--organization-enabled` flag is the key CLI option for creating/converting org event data stores. +- Default response properties: `MultiRegionEnabled: true`, `TerminationProtectionEnabled: true`, `RetentionPeriod: 366`, `BillingMode: EXTENDABLE_RETENTION_PRICING`. +- The `DelegatedAdminResourcePolicy` is auto-managed — it updates on admin registration/removal and EDS conversion; an explicit deny in a user-attached policy overrides it. +- Organization event data stores **cannot collect events from outside AWS**. + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-supported-regionshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-supported-regionshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e600248000135092056012869beb2177f7ed61b7 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-supported-regionshtml.md @@ -0,0 +1,39 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-supported-regions.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-lake-supported-regionshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:20 + + + +## Overview +This page lists all AWS Regions where CloudTrail Lake is supported, covering 31 regions across North America, South America, Europe, Africa, Asia Pacific, Middle East, Israel, and AWS GovCloud. + +## Key Concepts +- CloudTrail Lake is a **regional service** — you must create and query event data stores in a supported region. +- Supported across all major commercial AWS regions plus both **GovCloud (US)** regions. +- Covers newer regions like Europe (Spain, Zurich), Asia Pacific (Hyderabad, Melbourne, Jakarta), Israel (Tel Aviv), and Middle East (UAE). +- No mention of China (Beijing/Ningxia) regions — these are **not listed** as supported. +- No mention of AWS ISO or ISOB (secret/top-secret) regions. + +## Commands and Syntax +No commands on this page. Reference links: +- CloudTrail service endpoints and quotas: `https://docs.aws.amazon.com/general/latest/gr/ct.html` +- GovCloud-specific endpoints: `https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/using-govcloud-endpoints.html` + +## Relationships +- **CloudTrail Lake** — the parent feature; this page is part of the Lake documentation set. +- **Event data stores** — created per-region; region availability determines where you can store and query events. +- **Organization trails/event data stores** — even with org-level aggregation, the event data store itself lives in a specific supported region. +- **CloudTrail endpoints and quotas** — related reference for API endpoints per region. + +## Exam-Relevant Points +- CloudTrail Lake is available in **31 regions** including both GovCloud regions. +- **China regions are NOT supported** for CloudTrail Lake. +- CloudTrail Lake is available in **GovCloud** (both US-East and US-West). +- When designing multi-region audit architectures, ensure the chosen region for your event data store is in this supported list. +- Region availability may matter for **data residency** requirements — CloudTrail Lake data stays in the region where the event data store is created. + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lakehtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lakehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..eb352bb83a9708b0cf0c315a9b8f62780163394c --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lakehtml.md @@ -0,0 +1,64 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-lakehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:21 + + + +## Overview +AWS CloudTrail Lake is a managed auditing and analytics service that lets you run SQL-based queries against aggregated event data. It converts JSON events into Apache ORC columnar format for fast retrieval, stores them in immutable event data stores with retention up to ~10 years, and supports querying with Trino-compatible SQL. It serves as both a compliance/audit solution and a near real-time troubleshooting tool. + +## Key Concepts +- **Event data stores** — Immutable collections of events filtered by advanced event selectors; each store holds only one event category (management events, data events, network activity events, Insights events, Config items, Audit Manager evidence, or external events) +- **Storage format** — Events converted from row-based JSON to Apache ORC (columnar, optimized for fast retrieval) +- **Retention options** — One-year extendable pricing (up to 3,653 days / ~10 years) or Seven-year retention pricing (up to 2,557 days / ~7 years) +- **Encryption** — All events encrypted by default; optional customer-managed KMS key (cannot be removed or changed once associated) +- **Event delivery latency** — Average ~5 minutes from API call, not guaranteed +- **Query engine** — Supports all valid Trino SELECT statements and functions +- **Query results** — Viewable for up to 7 days; can be saved to S3 +- **Federation** — Event data stores can be federated to AWS Glue Data Catalog for querying via Amazon Athena +- **Cross-account access** — Resource-based policies on event data stores enable cross-account access +- **Tag-based authorization** — IAM policies can control access to event data store actions based on tags +- **Organization support** — Organization event data stores aggregate events across multiple Regions and accounts +- **Integrations** — Ingest external (non-AWS) events via `PutAuditEvents` API; supports direct and solution partner integrations +- **Dashboards** — Three types: Managed (14 pre-built, read-only), Custom (up to 10 widgets, schedulable refresh), Highlights (auto-updated every 6 hours, surfaces anomalies) +- **Pricing** — Charges for ingestion, storage, and data scanned by queries + +## Commands and Syntax +- **Copy trail events to event data store** — Creates a point-in-time snapshot from an existing trail +- **Cross-account resource policy**: `aws cloudtrail put-resource-policy` — Attach resource-based policy to event data store +- **Ingesting external events**: Call `PutAuditEvents` API to log non-AWS application activity +- **Multi-table queries**: SQL JOIN across multiple event data stores supported +- **Query generation**: Natural language prompts can generate SQL queries via the Lake query generator + +## Relationships +- **CloudTrail Trails** → Trail events can be copied into Lake event data stores +- **Event History** → Lake provides deeper, multi-account, multi-Region, multi-attribute querying vs. Event History's single-account/Region key-value lookups +- **AWS Glue Data Catalog + Amazon Athena** → Federation enables Athena queries against Lake data +- **Amazon CloudWatch** → Lake publishes ingestion and storage metrics +- **AWS Organizations** → Organization event data stores aggregate across accounts/Regions +- **AWS Config** → Config configuration items can be stored in Lake +- **AWS Audit Manager** → Evidence can be stored and queried in Lake +- **AWS KMS** → Optional customer-managed encryption keys +- **Amazon S3** → Query results can be exported to S3 +- **Partner integrations** → External sources deliver events via channel ARN and PutAuditEvents API + +## Exam-Relevant Points +- Lake uses **Apache ORC** columnar format (not Parquet, not JSON at rest) +- Maximum retention: **~10 years** (one-year extendable) or **~7 years** (seven-year pricing) +- Each event data store holds **only one event category** +- KMS key, once associated, **cannot be removed or changed** +- Average event delivery is **~5 minutes** (not guaranteed) +- Lake queries use **Trino SQL** (not standard MySQL/PostgreSQL) +- **Federation** to Glue Data Catalog enables Athena querying +- Query results retained for **up to 7 days** +- Highlights dashboard updates every **6 hours**, shows last **24 hours** of data +- Custom dashboards support **up to 10 widgets** +- External event ingestion uses the **PutAuditEvents** API +- Two partner integration types: **direct** (partner calls API) and **solution** (app runs in your account) +- Lake supports **cross-event-data-store SQL JOINs** + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-multi-region-trailshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-multi-region-trailshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ed3e965c7f9b6f2f5328c22d7191b6239207c69e --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-multi-region-trailshtml.md @@ -0,0 +1,48 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-multi-region-trails.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-multi-region-trailshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:21 + + + +## Overview +This page explains how AWS CloudTrail trails can be scoped to all enabled Regions (multi-Region trails) or a single Region, and describes the behavior when opt-in Regions are enabled or disabled. Multi-Region trails are the recommended best practice and are the default when created via the console. + +## Key Concepts +- **Multi-Region trail**: A trail that captures activity across all enabled AWS Regions in your account, delivering to a single S3 bucket. +- **Single-Region trail**: Can only be created via AWS CLI or `CreateTrail` API — not through the console. +- **Opt-in Regions**: Regions not enabled by default that must be manually activated; once enabled, multi-Region trails automatically replicate into them. +- **Home Region**: The Region where a multi-Region trail was created; modifications can only be made from there. +- **Eventual consistency**: Enabling a Region can take minutes to hours; logs may not appear immediately. Event History (last 90 days of management events) is available sooner. +- **Event History**: Active by default, captures 90 days of management events per Region, requires no trail. + +## Commands and Syntax +- **Create single-Region trail** (CLI only): + ``` + aws cloudtrail create-trail --name --s3-bucket-name --no-is-multi-region-trail + ``` +- **View events in a newly enabled Region**: + ``` + aws cloudtrail lookup-events --region + ``` + +## Relationships +- **S3**: Multi-Region trails deliver all logs to a single S3 bucket. +- **CloudWatch Logs**: Optional log group destination for trail events. +- **SNS**: Optional single SNS topic receives delivery notifications from all Regions. +- **AWS Account Management**: Opt-in Region enablement/disablement is managed through account settings. +- **CloudTrail Event History**: Provides interim visibility while trail propagation completes. +- **Organizations**: Opt-in Regions can be managed at the organization level. + +## Exam-Relevant Points +- Console-created trails are **always multi-Region**; single-Region trails require CLI/API. +- Multi-Region trails can only be **modified in their home Region**, though they are visible in all enabled Regions. +- When an opt-in Region is enabled, CloudTrail **automatically creates copies** of existing multi-Region trails there. +- When an opt-in Region is disabled, CloudTrail **continues attempting to deliver events** (e.g., from resource cleanup) until trails are deleted. +- Event History is available **by default without a trail** and covers 90 days of management events. +- There is an **eventual consistency delay** (up to several hours) when enabling a new Region. + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-required-policy-for-cloudwatch-logshtm.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-required-policy-for-cloudwatch-logshtm.md new file mode 100644 index 0000000000000000000000000000000000000000..afa08df8d9785d2594e2147b98aa8fb1b83b739f --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-required-policy-for-cloudwatch-logshtm.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-required-policy-for-cloudwatch-logs.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-required-policy-for-cloudwatch-logshtm.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:21 + + + +## Overview +This page describes the IAM role policy document that CloudTrail requires to send log events to CloudWatch Logs. It covers the minimum permissions needed, the default role (`CloudTrail_CloudWatchLogs_Role`), and how to modify the policy for organization trails. + +## Key Concepts +- CloudTrail needs an IAM role with specific permissions to deliver events to CloudWatch Logs +- The role requires exactly two CloudWatch Logs actions: `logs:CreateLogStream` and `logs:PutLogEvents` +- Resource ARNs in the policy must specify the target log group and log stream prefix +- The default IAM role is named `CloudTrail_CloudWatchLogs_Role` +- Organization trails require additional resource ARNs scoped to the organization ID prefix + +## Commands and Syntax +**Default single-account policy** — grants `logs:CreateLogStream` and `logs:PutLogEvents` on a specific log group/stream: +``` +Resource: arn:aws:logs:::log-group::log-stream:* +``` + +**Organization trail policy** — adds a second resource ARN per action with the org ID prefix: +``` +"arn:aws:logs:us-east-2:111111111111:log-group:log_group_name:log-stream:o-exampleorgid_*" +``` + +Log stream naming conventions: +- Single account: `_CloudTrail_*` +- Organization: `o-_*` + +## Relationships +- **CloudTrail → CloudWatch Logs integration**: This policy enables the delivery pipeline +- **IAM Roles**: The role is created via IAM (console or CLI) and attached during CloudTrail configuration +- **Organization Trails**: Policy must be expanded when CloudTrail is configured for AWS Organizations +- **CloudWatch Logs**: Target service receiving the events; log groups and log streams must exist or be creatable + +## Exam-Relevant Points +- Only two permissions are needed: `logs:CreateLogStream` and `logs:PutLogEvents` — no `logs:CreateLogGroup` +- The log stream resource ARN uses a wildcard (`*`) after the prefix, not a specific stream name +- Organization trail policies require separate resource entries with the `o-_*` stream prefix +- The default role name is `CloudTrail_CloudWatchLogs_Role` +- Resource ARNs are region-specific and account-specific — they are not global + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-user-guidehtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-user-guidehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..aef4a2134b43ff5a68fe84a72c141f4e505e9d24 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-user-guidehtml.md @@ -0,0 +1,59 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-user-guidehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:22 + + + +## Overview +AWS CloudTrail is an auditing, governance, and compliance service that records all actions (events) taken by users, roles, or AWS services across your AWS account. It provides three mechanisms for capturing events: Event history (free, 90-day lookback), CloudTrail Lake (managed data lake with up to 10-year retention), and Trails (S3-based log delivery with optional CloudWatch Logs and EventBridge integration). + +## Key Concepts +- **Events** — Records of actions taken in the AWS Management Console, CLI, SDKs, and APIs +- **Event history** — Free, immutable, 90-day record of management events per Region; searchable by a single attribute; available automatically on every AWS account +- **CloudTrail Lake** — Managed data lake that converts JSON events to Apache ORC (columnar) format for fast retrieval; events stored in **event data stores** (immutable collections filtered by advanced event selectors) + - **One-year extendable retention** — up to 3,653 days (~10 years) + - **Seven-year retention** — up to 2,557 days (~7 years) + - Supports single-account or multi-account (via AWS Organizations) + - Can import existing CloudTrail logs from S3 + - Lake dashboards for visualizing top event trends + - Charges for ingestion, storage, and query data scanned +- **Trails** — Deliver event records to an S3 bucket, optionally to CloudWatch Logs and EventBridge + - One copy of ongoing management events delivered to S3 at no CloudTrail charge (S3 storage charges still apply) + - Support single-account or multi-account (via Organizations) + - Can log **Insights events** to detect anomalous API call rates and error rates +- **Event data stores** — Immutable collections of events in CloudTrail Lake, scoped by advanced event selectors + +## Commands and Syntax +- **Console**: `https://console.aws.amazon.com/cloudtrail/` +- **CLI namespaces**: `aws cloudtrail` (trail/Lake management) and `aws cloudtrail-data` (partner/external event ingestion) +- **APIs**: CloudTrail REST API and CloudTrail-Data API +- Trail configuration options: S3 bucket, prefix, CloudWatch Logs delivery, KMS encryption, SNS notifications, tags +- Lake configuration options: partner/external integrations, Athena federation, KMS encryption, tags + +## Relationships +- **S3** — Storage target for trail logs; source for importing logs into Lake +- **CloudWatch Logs** — Optional delivery target for trail events; also used for CloudTrail metric filters/alarms +- **EventBridge** — Optional delivery target enabling event-driven automation from CloudTrail events +- **Amazon Athena** — Can query trail logs in S3; can also federate against Lake event data stores +- **AWS Organizations** — Enables organization-wide trails and Lake event data stores +- **AWS KMS** — Encrypts trail and Lake data at rest +- **Amazon SNS** — Notifications for trail log file delivery +- **CloudTrail Insights** — Analyzes management events for anomalous behavior (tied to trails) + +## Exam-Relevant Points +- Event history is **automatic, free, and covers 90 days** of management events per Region +- First copy of management events to S3 via a trail is **free from CloudTrail** (S3 charges apply) +- CloudTrail Lake uses **ORC columnar format**, not JSON, for storage +- Lake retention maximums: **~10 years** (one-year extendable) or **~7 years** (seven-year pricing) +- Lake queries are **charged by data scanned** +- Trails can deliver to **S3 + CloudWatch Logs + EventBridge** simultaneously +- **Insights events** detect anomalous API call rates and error rates (trail feature) +- Multi-account logging uses **AWS Organizations** for both trails and Lake +- You can **import existing S3-stored CloudTrail logs** into a Lake event data store +- CloudTrail can be accessed via Console, CLI (`cloudtrail` and `cloudtrail-data`), REST APIs, and SDKs + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-working-with-log-fileshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-working-with-log-fileshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..8e0370cf904f143a71c485d429c859ef286dace7 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-working-with-log-fileshtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-working-with-log-files.html +source: sources/awscloudtrail-latest-userguide-cloudtrail-working-with-log-fileshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:22 + + + +## Overview +This page covers advanced operations with CloudTrail log files, including monitoring via CloudWatch Logs, cross-account log sharing, log validation, and programmatic processing. It also explains the four event types CloudTrail can log and how multiple trails can be configured to separate different event types into different S3 buckets. + +## Key Concepts +- **Data events**: Resource-level (data plane) operations performed on or within a resource +- **Management events**: Control plane operations on resources; includes non-API events like `ConsoleLogin` +- **Network activity events**: API calls made through VPC endpoints from a private VPC to AWS services +- **Insights events**: Unusual API activity detected in your account; only generated for management APIs; logged to a separate folder in the destination S3 bucket +- CloudTrail delivers logs within ~5 minutes on average (not guaranteed) +- Misconfigured trails (e.g., unreachable S3 bucket) retry delivery for 30 days and still incur charges — delete the trail to stop charges +- Multiple trails can be configured independently to log different event types to different S3 buckets + +## Commands and Syntax +No specific CLI commands on this page. Key operational capabilities referenced: +- Send logs to **CloudWatch Logs** for monitoring +- **Share log files** between accounts +- **Validate log files** to verify integrity post-delivery +- Use the **CloudTrail Processing Library** (Java) for custom log processing applications + +## Relationships +- **CloudWatch Logs**: Integration for real-time monitoring of CloudTrail events +- **S3**: Primary delivery destination for all log files +- **VPC Endpoints**: Source context for network activity events +- **Insights**: Depends on management events being logged; detects anomalies against baseline usage patterns +- **Multi-account / multi-region**: Trails can aggregate logs across accounts and regions + +## Exam-Relevant Points +- Insights events are generated **only for management APIs**, not data events +- Log delivery is **~5 minutes average**, not real-time, and not guaranteed +- A misconfigured trail **retries for 30 days** and **still incurs charges** — you must delete it to stop costs +- You can configure separate trails to split read-only vs. write-only events into different S3 buckets +- Log file **validation** can verify files have not been tampered with after delivery +- Network activity events specifically provide visibility into calls made via **VPC endpoints** + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-cloudwatch-log-group-log-stream-naming-for-cloudt.md b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudwatch-log-group-log-stream-naming-for-cloudt.md new file mode 100644 index 0000000000000000000000000000000000000000..58f836c176e33a992217c8752cf8aec1bd827a20 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-cloudwatch-log-group-log-stream-naming-for-cloudt.md @@ -0,0 +1,42 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudwatch-log-group-log-stream-naming-for-cloudtrail.html +source: sources/awscloudtrail-latest-userguide-cloudwatch-log-group-log-stream-naming-for-cloudt.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:22 + + + +## Overview +This page describes the naming conventions for CloudWatch log groups and log streams when integrating with AWS CloudTrail, including constraints on log group names and the automatic naming format CloudTrail uses for log streams. + +## Key Concepts +- CloudTrail events can be sent to CloudWatch Logs via a log group +- Recommended naming convention: `CloudTrail/logs` for easy identification +- Log group names must be **unique per Region per account** +- Log group name length: **1–512 characters** +- Allowed characters: `a-z, A-Z, 0-9, _ - / . #` +- Log streams are **automatically named** by CloudTrail using the format: `{account_ID}_CloudTrail_{trail_region}` +- High-volume trails may produce **multiple log streams**, appending a number: `{account_ID}_CloudTrail_{trail_region}_{number}` + +## Commands and Syntax +No CLI commands on this page. Key naming formats: + +- **Log stream (single):** `123456789012_CloudTrail_us-east-1` +- **Log stream (multiple/high-volume):** `123456789012_CloudTrail_us-east-1_1` + +## Relationships +- **CloudTrail → CloudWatch Logs**: CloudTrail delivers trail logs to a CloudWatch log group +- **CloudWatch Logs**: Log groups and log streams are core CloudWatch Logs constructs (`CreateLogGroup` API) +- Related to CloudTrail trail configuration (selecting a log group when creating/updating a trail) +- Connects to CloudWatch monitoring/alerting — metric filters can be applied to these log groups for security alerting + +## Exam-Relevant Points +- Log group names must be unique within a Region for an account +- Know the log stream naming format: `accountID_CloudTrail_region` +- High-volume scenarios create multiple log streams with a numeric suffix +- Log group name max length is **512 characters** +- The allowed character set excludes spaces and most special characters + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-create-multiple-trailshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-create-multiple-trailshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3b26849751af6415eb666aa603b4d229c58fdb1d --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-create-multiple-trailshtml.md @@ -0,0 +1,44 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create-multiple-trails.html +source: sources/awscloudtrail-latest-userguide-create-multiple-trailshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:22 + + + +## Overview +This page explains how to create and manage multiple CloudTrail trails within an AWS account, allowing different users to configure trails independently with different destinations, encryption, and notification settings. + +## Key Concepts +- Multiple users can create and manage their own CloudTrail trails independently +- Trails can deliver log files to separate S3 buckets or to shared S3 buckets +- **Limit: 5 trails per AWS Region** — a multi-Region trail counts as one trail per Region +- The first copy of management events per Region is free; additional trails delivering the same management events incur costs +- Resource-level IAM permissions provide granular control over trail operations (view, start/stop logging, create/delete) + +## Commands and Syntax +No CLI commands on this page. Configuration is described conceptually through examples: +- Trail with KMS encryption → delivers to same-region S3 bucket +- Trail with log file integrity validation → can deliver to a different-region S3 bucket +- Trail with CloudWatch alarms → can share an S3 bucket with another trail +- Trail with SNS notifications → delivers to a separate S3 bucket + +## Relationships +- **S3**: Trails deliver log files to S3 buckets (same or cross-region) +- **KMS**: Optional log file encryption +- **CloudWatch**: Alarms can be configured on trail activity for specific API events +- **SNS**: Trails can send notifications via SNS +- **IAM**: Resource-level permissions control per-trail operations +- **Log file integrity validation**: Ensures logs haven't been tampered with after delivery +- **CloudTrail pricing**: Additional trail copies of management events cost money + +## Exam-Relevant Points +- **5 trails per Region limit** — a multi-Region trail counts as one trail in each Region it covers +- First copy of management events per Region is **free**; duplicate deliveries cost extra +- Trails can deliver to S3 buckets in **different Regions** from where the trail is created +- Multiple trails **can share** the same S3 bucket +- IAM resource-level permissions can restrict specific trail operations (e.g., allow viewing but not stopping logging) + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-creating-trail-organizationhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-creating-trail-organizationhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..3426a4249da83d4b2dd1b9edf063f136b6635195 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-creating-trail-organizationhtml.md @@ -0,0 +1,80 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-trail-organization.html +source: sources/awscloudtrail-latest-userguide-creating-trail-organizationhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:23 + + + +## Overview + +This page explains how to create an **organization trail** in AWS CloudTrail — a trail that logs events for all AWS accounts within an AWS Organizations organization. It covers who can create/manage these trails, how trail copies propagate to member accounts, opt-in Region behavior, permissions boundaries, and the S3 bucket structure for centralized logging. + +## Key Concepts + +- **Organization trail**: A CloudTrail trail that automatically logs events for all member accounts in an AWS Organization, delivering logs to a single S3 bucket. +- **Management account** or **delegated administrator** are the only identities that can create, modify, or delete organization trails. +- **Delegated administrator**: A member account granted permission by the management account to manage organization trails. +- **Service-linked role** (`AWSServiceRoleForCloudTrail`): Automatically created in member accounts to enable logging; removed if the account leaves the organization. +- **Trail copies**: When an organization trail is created, a copy appears in each member account. Member accounts can *see* but **cannot modify or delete** the trail. +- **Console-created trails are always multi-Region**; use AWS CLI to create single-Region organization trails. +- **Opt-in Regions behavior**: + - Single-Region trail in non-opt-in home Region → copy in all member accounts. + - Single-Region trail in opt-in home Region → copy only in members that enabled that Region. + - Multi-Region trail in non-opt-in home Region → copies in all enabled Regions per member; new opt-ins auto-added. + - Multi-Region trail in opt-in home Region → only members who opted into that Region send activity. +- **Validation failures** (bad S3 policy, SNS policy, CW Logs, KMS permissions) do **not** prevent trail creation in member accounts — trails are still created. +- **Event history** is per-account; the management account cannot see member account events in Event History. +- **S3 bucket structure**: `//AWSLogs///...` +- When an account is **removed** from the organization, logging stops and the trail/SLR are deleted, but **existing log files remain** in S3. +- If the management account loses its management role, organization trails become regular (non-organization) trails. + +## Commands and Syntax + +```bash +# Create a single-Region organization trail (CLI only) +aws cloudtrail create-trail \ + --name MyOrgTrail \ + --s3-bucket-name my-bucket \ + --is-organization-trail \ + --no-is-multi-region-trail + +# Create a multi-Region organization trail +aws cloudtrail create-trail \ + --name MyOrgTrail \ + --s3-bucket-name my-bucket \ + --is-organization-trail \ + --is-multi-region-trail + +# Check trail status (member accounts can use this to see validation failures) +aws cloudtrail get-trail-status --name MyOrgTrail + +# List trails visible to the current account +aws cloudtrail describe-trails +``` + +## Relationships + +- **AWS Organizations**: Organization trails require Organizations; the org structure determines which accounts are included. +- **S3**: Centralized log delivery bucket; bucket policy must grant cross-account write access. +- **SNS**: Optional notifications; topic policy must be correctly configured. +- **CloudWatch Logs**: Optional log group delivery; requires proper permissions. +- **KMS**: Optional encryption; KMS key policy must allow member account usage. +- **IAM**: Service-linked role `AWSServiceRoleForCloudTrail` is auto-managed. +- **Amazon Athena**: Can query organization trail logs for analysis. +- **CloudTrail Insights / Data Events / Management Events**: Organization trails support all event types, same as regular trails. + +## Exam-Relevant Points + +- Only the **management account or delegated administrator** can create/modify/delete organization trails — member accounts have read-only visibility. +- Console always creates **multi-Region** trails; CLI is required for single-Region. +- The **service-linked role** `AWSServiceRoleForCloudTrail` is automatically created and cleaned up with membership changes. +- Trails are created in member accounts **even if resource validation fails** (S3 policy, SNS, KMS, CW Logs). +- Log files for a **removed member account persist** in S3 after removal. +- **Event History is per-account** — you must sign into a member account to see its events. +- Opt-in Region behavior: a multi-Region trail with an opt-in home Region only captures activity from members who enabled that Region. +- Best practice: use multi-Region trails to log activity across all enabled Regions. + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-event-data-store-integration-eventshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-event-data-store-integration-eventshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..77db09b566693602dc22cb10e5e6dcddd3b4f334 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-event-data-store-integration-eventshtml.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/event-data-store-integration-events.html +source: sources/awscloudtrail-latest-userguide-event-data-store-integration-eventshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:23 + + + +## Overview + +This page describes how to create a CloudTrail Lake event data store for ingesting events from sources **outside of AWS** (e.g., on-premises apps, SaaS applications, VMs, containers). The process involves creating an event data store, a channel, and attaching a resource policy to the channel so external sources can deliver events via the `PutAuditEvents` API. + +## Key Concepts + +- **CloudTrail Lake integrations** allow logging and storing user activity data from non-AWS sources in hybrid environments +- Creating an event data store for an integration automatically creates a **channel** with an attached **resource policy** +- **Two pricing options:** + - **One-year extendable retention** — default 366 days, max 3,653 days (~10 years); storage included for first 366 days; recommended for <25 TB/month ingestion + - **Seven-year retention** — default and max 2,557 days (~7 years); retention included with ingestion pricing; recommended for >25 TB/month +- Retention is based on the event's `eventTime`, not ingestion time +- **Encryption**: optional AWS KMS encryption; once a KMS key is associated, it cannot be removed or changed; organization event data stores require an existing KMS key from the management account +- **Lake query federation**: enables querying event data via Amazon Athena using AWS Glue Data Catalog metadata; requires an IAM role (managed by AWS Lake Formation) +- **Two integration types:** + - **Direct integration** — partner provides AWS account IDs and a unique external ID (confused deputy protection) + - **Solution integration** — you specify AWS account IDs as principals; external ID is optional +- Channel names: 3–128 characters (letters, numbers, periods, underscores, dashes) +- Up to **50 tags** per event data store + +## Commands and Syntax + +No CLI commands on this page — it covers the **console workflow**. Key API referenced: + +- **`PutAuditEvents`** — called by partners/applications to deliver events to the channel (requires `cloudtrail-data:PutAuditEvents` permission) + +**Resource-based policy actions supported on event data stores:** +- `cloudtrail:StartQuery` +- `cloudtrail:CancelQuery` +- `cloudtrail:ListQueries` +- `cloudtrail:DescribeQuery` +- `cloudtrail:GetQueryResults` +- `cloudtrail:GenerateQuery` +- `cloudtrail:GenerateQueryResultsSummary` +- `cloudtrail:GetEventDataStore` + +## Relationships + +- **CloudTrail Lake costs** — pricing options and cost management (`cloudtrail-lake-manage-costs`) +- **AWS KMS** — encryption key policies for CloudTrail (`create-kms-key-policy-for-cloudtrail`); multi-Region key support +- **Amazon Athena / AWS Glue Data Catalog** — Lake query federation (`query-federation`) +- **AWS Organizations** — organization event data stores get default resource-based policies for delegated administrators (`cloudtrail-lake-organizations`) +- **IAM resource-based policies** — control cross-account access to event data stores (`security_iam_resource-based-policy-examples`) +- **CloudTrail Lake channels** — the delivery mechanism for external events; channel ARN must be shared with the partner application + +## Exam-Relevant Points + +- CloudTrail Lake can ingest events from **outside AWS** via integrations — not limited to AWS API activity +- Retention is determined by **`eventTime`**, not when the event was ingested +- Once a KMS key is associated with an event data store, it **cannot be removed or changed** +- Organization event data stores **must use an existing KMS key** from the management account (cannot create a new one) +- The `PutAuditEvents` API (from `cloudtrail-data`) is how external events are delivered to a channel +- If no resource policy is created for a channel, **only the channel owner** can call `PutAuditEvents` +- If the resource policy includes an external ID, **all** `PutAuditEvents` calls must include it +- Lake query federation uses **AWS Lake Formation** for permission management and **AWS Glue Data Catalog** for metadata +- Two pricing tiers exist with different retention maximums: **~10 years** (one-year extendable) vs **~7 years** (seven-year retention) + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-filtering-data-eventshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-filtering-data-eventshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ae3f3d2aeb6aa599a2d04d140eceb9a753b5c277 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-filtering-data-eventshtml.md @@ -0,0 +1,87 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html +source: sources/awscloudtrail-latest-userguide-filtering-data-eventshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:23 + + + +## Overview + +This page explains how to use CloudTrail **advanced event selectors** to create fine-grained filters for logging data events. Advanced event selectors let you control which data events are recorded by filtering on fields like `eventName`, `resources.ARN`, `readOnly`, `userIdentity.arn`, and others — helping reduce costs by logging only events of interest. + +## Key Concepts + +- **Advanced event selectors** replace basic event selectors; a trail uses one or the other, never both. Applying advanced selectors overwrites any existing basic selectors. +- Two fields are **required**: `eventCategory` (set to `"Data"`) and `resources.type` (set to the specific resource type, e.g. `AWS::S3::Object`). +- **Optional filter fields**: `readOnly`, `eventName`, `resources.ARN`, `eventSource`, `eventType`, `sessionCredentialFromConsole`, `userIdentity.arn`. +- **Wildcards (`*`) are not supported** — use `StartsWith`, `EndsWith`, `NotStartsWith`, `NotEndsWith` instead. +- **Operator evaluation logic**: + - **DESELECT operators** (`NotEquals`, `NotStartsWith`, `NotEndsWith`) are **AND'd** — if *any* DESELECT condition matches, the event is excluded. + - **SELECT operators** (`Equals`, `StartsWith`, `EndsWith`) are **OR'd** — if *any* SELECT condition matches, the event is included. + - DESELECT takes precedence: both groups are AND'd together, so a DESELECT match excludes even if a SELECT match exists. +- `readOnly` = `true` logs only read events; `false` logs only write events; omitting the field logs both. +- Multiple values for `eventName` or `resources.ARN` can be comma-separated in the CLI or added as separate conditions in the console. + +## Commands and Syntax + +**Put event selectors on a trail:** +```bash +aws cloudtrail put-event-selectors \ + --trail-name trailName \ + --advanced-event-selectors '[ + { + "Name": "selector name", + "FieldSelectors": [ + { "Field": "eventCategory", "Equals": ["Data"] }, + { "Field": "resources.type", "Equals": ["AWS::S3::Object"] }, + { "Field": "eventName", "Equals": ["GetObject","PutObject","DeleteObject"] } + ] + } + ]' +``` + +**Create event data store with selectors:** +```bash +aws cloudtrail create-event-data-store \ + --name "eventDataStoreName" \ + --advanced-event-selectors '[ + { + "Name": "Log all EBS Direct API data events except ListChangedBlocks", + "FieldSelectors": [ + { "Field": "eventCategory", "Equals": ["Data"] }, + { "Field": "resources.type", "Equals": ["AWS::EC2::Snapshot"] }, + { "Field": "eventName", "NotEquals": ["ListChangedBlocks"] } + ] + } + ]' +``` + +**Filter by ARN and exclude a specific IAM role:** +```bash +{ "Field": "resources.ARN", "StartsWith": ["arn:partition:s3:::bucket-name/"] }, +{ "Field": "userIdentity.arn", "NotStartsWith": ["arn:aws:sts::123456789012:assumed-role/role-name"] } +``` + +## Relationships + +- **CloudTrail trails and event data stores** — advanced event selectors are configured on both. +- **S3, EC2, Cognito, EBS Direct APIs, and other services** — each has a specific `resources.type` value used in selectors. +- **CloudTrail data events vs. management events** — advanced event selectors can log both; each resource type needs its own field selector statement. +- **IAM** — the `userIdentity.arn` field connects to IAM identity filtering (roles, users). +- **Cost management** — filtering reduces CloudTrail data event volume and associated costs. + +## Exam-Relevant Points + +- `eventCategory` and `resources.type` are the only **required** fields in advanced event selectors. +- DESELECT operators (Not*) are **AND'd** and take **precedence** over SELECT operators (which are OR'd). +- Advanced and basic event selectors are **mutually exclusive** on a trail — applying advanced overwrites basic. +- Wildcards are **not supported**; use `StartsWith`/`EndsWith` operators instead. +- To log S3 object-level events for a specific bucket, use `StartsWith` on `resources.ARN` with the bucket ARN (not `Equals`, since object ARNs include the key path). +- `readOnly` field controls read-vs-write filtering; omitting it logs both. +- The `userIdentity.arn` field enables filtering events by the IAM principal that performed the action. +- You can exclude AWS service events using `"eventType": "NotEquals": ["AwsServiceEvent"]`. + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-how-cloudtrail-workshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-how-cloudtrail-workshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..6c3c887884ecaf2a25b962135ef5c2bcade97a52 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-how-cloudtrail-workshtml.md @@ -0,0 +1,60 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/how-cloudtrail-works.html +source: sources/awscloudtrail-latest-userguide-how-cloudtrail-workshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:24 + +## Overview +This page explains the core mechanisms of AWS CloudTrail, covering how it automatically records management events (90-day Event history), how to extend retention via trails and CloudTrail Lake event data stores, and additional features like Insights events, Lake dashboards, and channels for integrating external event sources. + +## Key Concepts +- **Event history** — free, automatic, immutable record of the past **90 days** of management events per Region; not connected to any trail or event data store configuration +- **Trails** — deliver events to an S3 bucket; can also forward to CloudWatch Logs and EventBridge +- **CloudTrail Lake** — query-oriented event storage using SQL; supports event data stores for management events, data events, network activity events, Insights events, Audit Manager evidence, AWS Config items, and external events +- **Event data stores** — can be single-Region or multi-Region; organization event data stores log all accounts in an AWS Organization; encrypted by default (optionally with customer-managed KMS key, which **cannot be removed or changed** once associated) +- **Insights events** — detect unusual API call rates and error rates against a learned baseline; must be explicitly enabled; up to **36 hours** delay for trails, up to **7 days** delay for Lake event data stores before first delivery +- **Channels** — two types: integration channels (bring external events into Lake) and service-linked channels (created by AWS services on your behalf) +- **Dashboards** — three types: managed (14 available, read-only widgets), custom (up to 10 widgets, supports refresh schedules), and Highlights (auto-updated every 6 hours, shows anomalies like abnormal cross-account access) +- Log files are published approximately every **5 minutes** (not guaranteed per SLA) +- Misconfigured trails retry delivery for **30 days** and still incur charges; delete the trail to stop charges +- One copy of ongoing management events delivered to S3 at **no CloudTrail charge** (S3 storage charges still apply) +- The `invokedby` field identifies actions taken by AWS services on behalf of users + +## Commands and Syntax +- **View Event history (CLI):** `aws cloudtrail lookup-events` +- **View Event history (API):** `LookupEvents` +- **Create trail (console):** defaults to multi-Region; CLI/API defaults to single-Region +- **Convert single-Region trail to multi-Region:** via AWS CLI (`update-trail --is-multi-region-trail`) +- **Advanced event selectors** filter fields for event data stores: `eventName`, `eventSource`, `eventType`, `readOnly`, `sessionCredentialFromConsole`, `userIdentity.arn` +- **Network activity event** filter fields: `eventName`, `errorCode`, `vpcEndpointId` +- **Lake queries:** authored in SQL on the Lake Editor tab; results can be saved to S3 and validated for integrity +- **Federation:** enables querying event data via AWS Glue Data Catalog + Amazon Athena + +## Relationships +- **S3** — destination for trail log files and Lake query results +- **CloudWatch Logs** — trails can forward events for monitoring and alarming on specific API calls +- **EventBridge** — trails can trigger event-driven workflows +- **Amazon SNS / SQS** — notifications on log file delivery +- **AWS KMS** — optional SSE-KMS encryption for log/digest files and event data stores +- **AWS Organizations** — organization trails and organization event data stores for centralized multi-account logging +- **AWS Glue Data Catalog + Amazon Athena** — federation allows SQL queries over event data store metadata +- **AWS Config** — configuration items can be logged into Lake event data stores +- **AWS Audit Manager** — evidence can be stored in Lake event data stores +- **CloudTrail Processing Library** — programmatic processing of all events + +## Exam-Relevant Points +- Event history is **free**, covers **90 days**, and is **management events only** — no configuration required +- Trails created via the **console** default to **multi-Region**; via **CLI/API** default to **single-Region** +- Organization trails/event data stores must be created from the **management account** or **delegated administrator**; member accounts **cannot modify or delete** them +- Insights events require explicit enablement and incur **additional charges**; charged separately for trails vs. event data stores +- Insights baseline delay: **up to 36 hours** (trails) vs. **up to 7 days** (Lake event data stores) +- Insights on API call rate: **write** management APIs only; on API error rate: **both read and write** +- KMS key associated with an event data store **cannot be removed or changed** after association +- Integration event data stores (external sources) must be **single-Region only** +- Log file integrity validation confirms files are **unchanged since delivery** +- Misconfigured trail retries for **30 days** with standard charges — must delete trail to stop billing +- S3 bucket for trail log files can be in **any Region** regardless of trail region configuration + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-CLI-enablehtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-CLI-enablehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d2726aa5e6383505bf6f086b25224ef67046f816 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-CLI-enablehtml.md @@ -0,0 +1,82 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/insights-events-CLI-enable.html +source: sources/awscloudtrail-latest-userguide-insights-events-CLI-enablehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:24 + + + +## Overview + +This page covers how to configure AWS CloudTrail Insights events using the AWS CLI, for both trails and CloudTrail Lake event data stores. It explains the commands to query, enable, and configure Insights selectors that detect unusual API call rates and API error rates across management and data events. + +## Key Concepts + +- **Insights event types**: Two types — `ApiCallRateInsight` (detects unusual API call volume) and `ApiErrorRateInsight` (detects unusual API error volume) +- **Event categories for Insights**: Each InsightType can monitor `Management` events, `Data` events, or both +- **Prerequisites for management event Insights**: The trail/event data store must already log `write` management events (for call rate) or `read`/`write` management events (for error rate) +- **Prerequisites for data event Insights**: The trail must already log `read` or `write` data events +- **Event data store architecture for Insights**: Requires two event data stores — a **source** (logs management events) and a **destination** (receives Insights events with `eventCategory` set to `Insight`) +- **Initial delivery delay**: After first enabling Insights on an event data store, it can take up to **7 days** before Insights events are delivered (if unusual activity is detected) + +## Commands and Syntax + +**Trail — get current Insights selectors:** +``` +aws cloudtrail get-insight-selectors --trail-name TrailName +``` + +**Trail — enable Insights selectors:** +``` +aws cloudtrail put-insight-selectors --trail-name TrailName \ + --insight-selectors '[{"InsightType": "ApiCallRateInsight", "EventCategories": ["Data"]},{"InsightType": "ApiErrorRateInsight", "EventCategories": ["Data", "Management"]}]' +``` + +**Event data store — create destination (Insights) store:** +``` +aws cloudtrail create-event-data-store \ + --name insights-event-data-store \ + --no-multi-region-enabled \ + --retention-period \ + --advanced-event-selectors '[{"Name": "Select Insights events", "FieldSelectors": [{"Field": "eventCategory", "Equals": ["Insight"]}]}]' +``` + +**Event data store — create source (management events) store:** +``` +aws cloudtrail create-event-data-store --name source-event-data-store --retention-period +``` + +**Event data store — enable Insights with source/destination linking:** +``` +aws cloudtrail put-insight-selectors \ + --event-data-store \ + --insights-destination \ + --insight-selectors '[{"InsightType": "ApiCallRateInsight"},{"InsightType": "ApiErrorRateInsight"}]' +``` + +**Event data store — check Insights or event config:** +``` +aws cloudtrail get-insight-selectors --event-data-store +aws cloudtrail get-event-data-store --event-data-store +``` + +## Relationships + +- **CloudTrail Trails vs. CloudTrail Lake**: Insights can be enabled on either; Lake uses the source/destination event data store pattern while trails are simpler single-entity configuration +- **Management events & Data events**: Insights depends on these being logged first — Insights analyzes baseline patterns from collected events +- **AWS Organizations**: Both trails and event data stores support `--organization-enabled` for delegated administrator access +- **CloudWatch/EventBridge**: Insights events can trigger downstream alerting (not covered here but commonly paired) + +## Exam-Relevant Points + +- Insights requires **two InsightType values**: `ApiCallRateInsight` and `ApiErrorRateInsight` — know the difference +- For CloudTrail Lake Insights, you need **two separate event data stores** (source for management events, destination for Insights events) +- The `--insights-destination` parameter links the source to the destination event data store +- Up to **7 days** delay before first Insights events are delivered on a new event data store +- Error message `InsightNotEnabledException` is returned when querying Insights selectors on a trail that doesn't have Insights enabled +- For trail-based Insights, `EventCategories` can be specified per InsightType (`Management`, `Data`, or both); for event data store-based Insights, EventCategories are not specified in the `put-insight-selectors` call +- Destination event data stores use `eventCategory: "Insight"` in their advanced event selectors + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-costshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-costshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c7f3137a2fb58b97abb46fd955c52624193e337a --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-costshtml.md @@ -0,0 +1,46 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/insights-events-costs.html +source: sources/awscloudtrail-latest-userguide-insights-events-costshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:25 + + + +## Overview + +This page explains the cost model for AWS CloudTrail Insights events, covering how charges are calculated based on the number of management and data events analyzed, how baselines are established, and how costs differ depending on which Insights types (API call rate vs. API error rate) are enabled across trails and event data stores. + +## Key Concepts + +- **Baseline analysis is free**: CloudTrail analyzes the past 28 days of events to establish a baseline at no charge. The baseline is recalculated daily. +- **Charges begin after baseline**: You are billed based on the number of events *analyzed*, not the number of Insights events generated. +- **Insights on data events are only supported on trails** (not event data stores). +- **API call rate Insights**: Only analyzes `write` management events (not `read`). For data events, analyzes both read and write. +- **API error rate Insights**: Analyzes both `read` and `write` management events. For data events, analyzes both read and write. +- **Double-counting**: If both Insights types are enabled, `write` management events are analyzed twice (once per type). Data events are always analyzed twice when both types are enabled. +- **Separate billing per trail/event data store**: Enabling Insights on multiple trails or event data stores incurs separate charges for each. +- **Usage types on bill**: `InsightsEvents` for management event Insights; `DataInsightsEvents` for data event Insights. + +## Commands and Syntax + +No CLI commands on this page. Cost visibility is through AWS Cost Explorer using the `InsightsEvents` and `DataInsightsEvents` usage types. + +## Relationships + +- **CloudTrail Trails & Event Data Stores**: Insights can be enabled on both, with separate billing for each. +- **AWS Cost Explorer**: Used to view Insights charges (`InsightsEvents` / `DataInsightsEvents` usage types). +- **CloudTrail Pricing page**: External reference for per-event pricing rates. +- **Management vs. Data events**: The analysis multiplier differs depending on event type and which Insights types are enabled. + +## Exam-Relevant Points + +- **Baseline analysis (28 days) incurs no charge.** +- **API call rate only analyzes `write` management events; API error rate analyzes both `read` and `write`.** +- Know the multiplication rule: enabling both Insights types on a trail logging read+write management events means total analyzed = (write × 2) + (read × 1) — more events analyzed than recorded. +- For **data events**, both read and write are analyzed twice when both Insights types are enabled (total = data events × 2). +- **Each trail and event data store is billed independently** for Insights — enabling on two trails doubles the analysis charges. +- **Data event Insights are trail-only** — not available on event data stores. + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-enablehtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-enablehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..0a1e32b040fd442b918c39cac69f7afb88e98ff3 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-enablehtml.md @@ -0,0 +1,53 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/insights-events-enable.html +source: sources/awscloudtrail-latest-userguide-insights-events-enablehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:25 + + + +## Overview +This page describes how to enable CloudTrail Insights events on existing trails and event data stores using the AWS console. Insights events detect unusual API activity patterns and can be configured for both management and data events. + +## Key Concepts +- **Insights events** detect unusual API call rate or API error rate patterns in your AWS account +- Two delivery targets: **trails** and **event data stores** (CloudTrail Lake) +- Two Insights types: **API call rate** and **API error rate** +- Additional charges apply for logging Insights events; trails and event data stores are charged separately +- Event data store Insights can only be enabled on stores containing **management events** (not other types) + +## Commands and Syntax +No CLI commands on this page — console-only procedures: + +**For trails:** +1. Trails → select trail → Insights events → Edit +2. Event type → Insights events +3. Choose management events or data events +4. Select API call rate, API error rate, or both +5. Save changes + +**For event data stores:** +1. Lake → Event data stores → select store +2. Management events → Edit +3. Enable Insights events capture +4. Choose destination event data store for Insights events +5. Select API call rate, API error rate, or both +6. Save changes + +## Relationships +- **Trails vs. Event Data Stores**: Two separate paths for Insights, charged independently +- **Write management/data events** required for API call rate Insights +- **Read or Write management/data events** required for API error rate Insights +- Destination event data store concept links to CloudTrail Lake architecture +- Related pages: creating trails, creating Insights event data stores + +## Exam-Relevant Points +- **Delivery delay for trails**: up to **36 hours** to begin delivering Insights events +- **Delivery delay for event data stores**: up to **7 days** to begin delivering Insights events +- Event data store Insights are limited to **management events only**; trail Insights support both management and data events +- API call rate requires **Write** events; API error rate requires **Read or Write** events +- Insights on trails and event data stores are **charged separately** + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-understandinghtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-understandinghtml.md new file mode 100644 index 0000000000000000000000000000000000000000..abd0ba9085d2f456974e5c16c2c497f140c3148a --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-understandinghtml.md @@ -0,0 +1,43 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/insights-events-understanding.html +source: sources/awscloudtrail-latest-userguide-insights-events-understandinghtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:25 + +## Overview + +This page explains how CloudTrail Insights events are delivered, covering the differences in delivery mechanisms and timing between trails and event data stores. + +## Key Concepts + +- Insights events are only logged when CloudTrail detects API usage that **differs significantly** from typical account patterns — they are not captured like standard events. +- **Insights on data events are only supported on trails**, not event data stores. +- Delivery destination for trails: `/CloudTrail-Insight` folder in the trail's destination S3 bucket. +- Delivery destination for event data stores: a separate **destination event data store**. +- Initial delivery delay for **trails**: up to **36 hours** after first enabling Insights. +- Initial delivery delay for **event data stores**: up to **7 days** after first enabling Insights. +- Re-enabling Insights or restarting logging/ingestion resets the delivery delay (36 hours for trails, 7 days for event data stores). +- Additional charges apply for ingesting Insights events in CloudTrail Lake; charges are **separate** if Insights is enabled for both trails and event data stores. + +## Commands and Syntax + +No CLI commands or configuration syntax are described on this page. + +## Relationships + +- **CloudTrail Trails** — Insights events are delivered to the trail's S3 bucket under a specific folder prefix. +- **CloudTrail Lake / Event Data Stores** — Insights events flow from a source event data store to a destination event data store. +- **CloudTrail Pricing** — Insights ingestion in Lake incurs additional costs beyond standard trail-based Insights. +- **Data Events** — Insights on data events are trail-only, creating a functional gap for Lake-based architectures. + +## Exam-Relevant Points + +- **36 hours** (trails) vs **7 days** (event data stores) initial delivery delay — a likely trick question. +- Insights events on **data events** are only supported on **trails** (not event data stores). +- Insights events are delivered to `/CloudTrail-Insight` in the S3 bucket (know the folder name). +- Re-enabling Insights resets the delivery delay timer. +- Insights for trails and event data stores are **charged separately**. + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-view-lakehtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-view-lakehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2bc3f1179394b55cb58917eea7c4b0307d868562 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-view-lakehtml.md @@ -0,0 +1,40 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/insights-events-view-lake.html +source: sources/awscloudtrail-latest-userguide-insights-events-view-lakehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:25 + + + +## Overview +This page explains how to view CloudTrail Insights events stored in CloudTrail Lake event data stores, covering two methods: using the Insights events dashboard for visual analysis, and running sample/custom queries against the Insights event data store. + +## Key Concepts +- **Insights events dashboard** — an AWS-managed Lake dashboard showing proportion of Insights events by type, top users/services, and daily event counts (up to 30 days of events) +- **Two Insights types**: `ApiCallRateInsight` and `ApiErrorRateInsight` — the dashboard only shows types enabled on the source event data store +- After first enabling Insights on a source event data store, delivery may take **up to 7 days** (and only if unusual activity is detected) +- **Cost control**: Lake queries charge based on data scanned; constrain queries with `eventTime` start/end timestamps +- Sample queries are provided in the console to help get started with Insights event analysis +- Query results include **Command output** (metadata: success/failure, record count, run time) and **Query results** (matched event data) + +## Commands and Syntax +- **Dashboard path**: Console → CloudTrail → Lake → Dashboard → Managed and custom dashboards → Insights events dashboard +- **Query path**: Console → CloudTrail → Lake → Query → Sample queries tab → search for Insights queries +- When selecting an Insights event data store, CloudTrail auto-populates the event data store ID in the `FROM` clause +- Filter dashboard by **Absolute range** (specific dates) or **Relative range** (predefined/custom); default is past 24 hours + +## Relationships +- **Source event data store** → determines which Insights types are collected → controls what the dashboard displays +- Links to: enabling Insights on event data stores, Insights event record fields, Lake dashboards, query creation/editing, query execution and result saving +- Part of the broader **CloudTrail Lake** analytics ecosystem (event data stores, queries, dashboards) + +## Exam-Relevant Points +- Insights delivery can take **up to 7 days** after first enablement — unusual activity must occur during that period +- Dashboard only reflects Insights types **explicitly enabled** on the source event data store +- Lake queries are **billed by data scanned** — use `eventTime` filters to reduce costs +- The Insights dashboard displays up to **30 days** of Insights events +- Two Insights types exist: `ApiCallRateInsight` (unusual API call volume) and `ApiErrorRateInsight` (unusual error rates) + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-create-edshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-create-edshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..6659f497162b2057ac373eebe30afde596601fbb --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-create-edshtml.md @@ -0,0 +1,115 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-cli-create-eds.html +source: sources/awscloudtrail-latest-userguide-lake-cli-create-edshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:26 + + + +## Overview + +This page describes how to use the `aws cloudtrail create-event-data-store` CLI command to create CloudTrail Lake event data stores. It covers the required and optional parameters, billing modes, retention periods, and provides examples for creating event data stores that capture S3 data events, KMS network activity events, AWS Config configuration items, organization management events, and Insights events. + +## Key Concepts + +- **Event data store** — The storage unit in CloudTrail Lake; only `--name` is required to create one +- **Advanced event selectors** — Filter which event types are ingested; `eventCategory` values include `Management`, `Data`, `ConfigurationItem`, `NetworkActivity`, and `Insight` +- **Multi-region enabled by default** — `--multi-region-enabled` is set even if not explicitly passed; use `--no-multi-region-enabled` to disable +- **Organization-enabled** — Opt-in flag (`--organization-enabled`) to collect events across all accounts in an AWS Organization; not enabled by default +- **Billing modes**: + - `EXTENDABLE_RETENTION_PRICING` (default) — For <25 TB/month ingestion; retention up to 3653 days (~10 years); default retention 366 days + - `FIXED_RETENTION_PRICING` — For >25 TB/month ingestion; retention up to 2557 days (~7 years); default retention 2557 days +- **Retention period** — 7–3653 days (extendable) or 7–2557 days (fixed), depending on billing mode +- **Ingestion control** — `--start-ingestion` is default; use `--no-start-ingestion` to create without ingesting live events (only valid for Management, Data, or ConfigurationItem categories) +- **Termination protection** — Enabled by default on new event data stores +- **KMS encryption** — Optional via `--kms-key-id` (accepts alias, ARN, or key ID) + +## Commands and Syntax + +**Basic creation (management events, defaults):** +```bash +aws cloudtrail create-event-data-store --name my-eds +``` + +**S3 data events with KMS encryption:** +```bash +aws cloudtrail create-event-data-store \ + --name my-event-data-store \ + --kms-key-id "arn:aws:kms:us-east-1:123456789012:alias/KMS_key_alias" \ + --advanced-event-selectors '[{ + "Name": "Select all S3 data events", + "FieldSelectors": [ + { "Field": "eventCategory", "Equals": ["Data"] }, + { "Field": "resources.type", "Equals": ["AWS::S3::Object"] }, + { "Field": "resources.ARN", "StartsWith": ["arn:aws:s3"] } + ] + }]' +``` + +**Network activity events (KMS VpceAccessDenied):** +```bash +aws cloudtrail create-event-data-store \ + --name EventDataStoreName \ + --advanced-event-selectors '[{ + "Name": "Audit AccessDenied AWS KMS events over a VPC endpoint", + "FieldSelectors": [ + { "Field": "eventCategory", "Equals": ["NetworkActivity"] }, + { "Field": "eventSource", "Equals": ["kms.amazonaws.com"] }, + { "Field": "errorCode", "Equals": ["VpceAccessDenied"] } + ] + }]' +``` + +**AWS Config configuration items:** +```bash +aws cloudtrail create-event-data-store --name config-items-eds \ + --advanced-event-selectors '[{ + "Name": "Select AWS Config configuration items", + "FieldSelectors": [ + { "Field": "eventCategory", "Equals": ["ConfigurationItem"] } + ] + }]' +``` + +**Organization management events with fixed retention pricing:** +```bash +aws cloudtrail create-event-data-store --name org-management-eds \ + --organization-enabled --billing-mode FIXED_RETENTION_PRICING +``` + +**Insights events (3-step process):** +1. Create destination EDS with `eventCategory: Insight` +2. Create source EDS logging management events +3. Link them with `put-insight-selectors`: +```bash +aws cloudtrail put-insight-selectors \ + --event-data-store \ + --insights-destination \ + --insight-selectors '[{"InsightType":"ApiCallRateInsight"},{"InsightType":"ApiErrorRateInsight"}]' +``` + +## Relationships + +- **CloudTrail Lake** — Event data stores are the core storage primitive for CloudTrail Lake queries +- **Advanced event selectors** — Shared concept with trails but used differently in Lake for broader event categories +- **AWS Config** — Config configuration items can be ingested into CloudTrail Lake for unified querying +- **CloudTrail Insights** — Requires a source/destination EDS pair; analyzes management events per-region (not globally) +- **AWS Organizations** — Organization-enabled EDS collects from all member accounts; delegated administrators can be granted access +- **KMS** — Optional encryption integration for event data stores + +## Exam-Relevant Points + +- The **only required parameter** is `--name`; all others are optional with sensible defaults +- **Multi-region is enabled by default** — must explicitly use `--no-multi-region-enabled` to disable +- **Organization is disabled by default** — must explicitly pass `--organization-enabled` +- Two billing modes: `EXTENDABLE_RETENTION_PRICING` (default, ≤25 TB/month, up to ~10 years) vs `FIXED_RETENTION_PRICING` (>25 TB/month, up to ~7 years) +- Insights requires **two event data stores** (source for management events, destination for Insight events) plus `put-insight-selectors` +- Insights types: `ApiCallRateInsight` and `ApiErrorRateInsight` +- After enabling Insights, delivery may take **up to 7 days** to begin +- Insights analyzes events **per-region**, not globally; for organizations, per-member-account not aggregated +- `--no-start-ingestion` is only valid for `Management`, `Data`, or `ConfigurationItem` event categories +- Additional charges apply for Insights events; trails and Lake Insights are charged separately + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-update-edshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-update-edshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..0418f34ff3e8e2fe76f17143fa0de1ec67bf2038 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-update-edshtml.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-cli-update-eds.html +source: sources/awscloudtrail-latest-userguide-lake-cli-update-edshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:26 + + + +## Overview +This page covers how to update CloudTrail Lake event data store settings using the `aws cloudtrail update-event-data-store` CLI command, including changing billing mode, retention period, termination protection, and KMS encryption. + +## Key Concepts +- **Billing modes**: Two options — `FIXED_RETENTION_PRICING` and `EXTENDABLE_RETENTION_PRICING` +- **Billing mode change is one-way**: You can change from `FIXED_RETENTION_PRICING` to `EXTENDABLE_RETENTION_PRICING`, but **not** the reverse. To revert, you must stop ingestion and create a new event data store. +- `EXTENDABLE_RETENTION_PRICING` is recommended when ingesting **< 25 TB/month** and needing flexible retention up to **3653 days** +- **Termination protection** is enabled by default; must be disabled before an event data store can be deleted +- **Retention period reduction is destructive**: Decreasing retention removes events with `eventTime` older than the new period immediately +- **Event source type is immutable**: An event data store logging AWS events cannot be changed to log external events, and vice versa +- **KMS encryption** can be enabled on an existing event data store by specifying `--kms-key-id` + +## Commands and Syntax + +**Change billing mode:** +```bash +aws cloudtrail update-event-data-store \ + --region us-east-1 \ + --event-data-store arn:aws:cloudtrail:us-east-1:123456789012:eventdatastore/EXAMPLE-ID \ + --billing-mode EXTENDABLE_RETENTION_PRICING +``` + +**Update retention, enable termination protection, add KMS key:** +```bash +aws cloudtrail update-event-data-store \ + --event-data-store \ + --retention-period 100 \ + --kms-key-id "arn:aws:kms:us-east-1:0123456789:alias/KMS_key_alias" \ + --termination-protection-enabled +``` + +**Disable termination protection:** +```bash +aws cloudtrail update-event-data-store \ + --region us-east-1 \ + --no-termination-protection-enabled \ + --event-data-store +``` + +- The `--event-data-store` parameter accepts a full ARN or just the ID suffix and is **required**; all other parameters are optional. + +## Relationships +- **CloudTrail Lake**: Event data stores are the core storage construct in CloudTrail Lake +- **KMS**: Optional encryption at rest via AWS KMS keys +- **CloudTrail Lake costs**: Billing mode directly affects pricing model and retention limits +- **Stop ingestion**: Required workaround when needing to switch from EXTENDABLE back to FIXED billing +- **Organizations**: Response shows `OrganizationEnabled` field — event data stores can aggregate across an AWS Organization + +## Exam-Relevant Points +- Billing mode change is **one-directional** (FIXED → EXTENDABLE only) +- `EXTENDABLE_RETENTION_PRICING` supports up to **3653 days** retention +- Reducing retention period **immediately deletes** older events — this is irreversible +- Termination protection must be **explicitly disabled** (`--no-termination-protection-enabled`) before deletion +- Termination protection is **enabled by default** +- Event data store event source type (AWS vs. external) **cannot be changed** after creation +- The `--event-data-store` parameter accepts an ARN or its ID suffix + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-lake-console-querieshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-console-querieshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..af074a124aa4c5d0b7233c8a935c4f54bc1cfae9 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-console-querieshtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-console-queries.html +source: sources/awscloudtrail-latest-userguide-lake-console-querieshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:26 + + + +## Overview +This page explains how to access and run pre-built sample queries in the CloudTrail Lake console, which serve as starting points for writing custom queries against event data stores. + +## Key Concepts +- CloudTrail Lake provides built-in **sample queries** accessible from the Query page's "Sample queries" tab +- Queries incur charges **based on the amount of data scanned** — constrain with `eventTime` timestamps to control costs +- Community-contributed sample queries are available on GitHub (`aws-samples/cloud-trail-lake-query-samples`), but are **not evaluated by AWS** +- Search functionality on the sample queries page can be enhanced by granting the `cloudtrail:SearchSampleQueries` IAM action +- The `AWSCloudTrail_FullAccess` managed policy includes `cloudtrail:SearchSampleQueries` permissions +- When you select an event data store, CloudTrail auto-populates its ID in the `FROM` clause + +## Commands and Syntax +- **Console path**: CloudTrail Console → Lake → Query → Sample queries tab +- Select a sample query → opens in **Editor** tab → choose event data store → **Run** +- **Command output** tab: query success/failure, matched record count, run time +- **Query results** tab: matching event data + +## Relationships +- **CloudTrail Lake** — sample queries run against Lake event data stores +- **IAM policies** — `AWSCloudTrail_FullAccess` or custom policies with `cloudtrail:SearchSampleQueries` for enhanced search +- **Cost management** — relates to CloudTrail pricing; filtering by `eventTime` reduces scanned data +- **Query editing** — links to `query-create-edit-query` for customizing queries +- **Query execution** — links to `query-run-query` for running and saving results + +## Exam-Relevant Points +- CloudTrail Lake queries are **charged by data scanned**, not by number of queries +- Use `eventTime` filters to **reduce query costs** +- `cloudtrail:SearchSampleQueries` is the specific IAM action for enhanced sample query search +- The `FROM` clause uses the **event data store ID**, auto-populated when selected in the console + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-cli-managehtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-cli-managehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e7af1d2b789e587d6602008440b823af3226d245 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-cli-managehtml.md @@ -0,0 +1,82 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-dashboard-cli-manage.html +source: sources/awscloudtrail-latest-userguide-lake-dashboard-cli-managehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:27 + + + +## Overview + +This page describes how to manage AWS CloudTrail Lake dashboards using the AWS CLI, covering operations to get, list, refresh, update dashboards, and attach resource-based policies to dashboards and event data stores. + +## Key Concepts + +- **Dashboard types**: `CUSTOM` (user-created) and `MANAGED` (configured by CloudTrail) +- **Resource-based policies** are required in two places before dashboards can refresh: + - On every **event data store** associated with a dashboard widget (grants `cloudtrail:StartQuery`) + - On the **dashboard itself** for scheduled refresh (grants `cloudtrail:StartDashboardRefresh`) +- **Refresh schedules** can be enabled/disabled and configured with frequency (e.g., every N hours) +- **Termination protection** can be enabled/disabled on custom dashboards to prevent deletion +- **Widgets** define dashboard visualizations with properties: `QueryStatement`, `QueryParameters`, `ViewProperties` (Height, Width, Title, View type, orientation, label/value/filter columns) +- **View types** include `Table`, `PieChart`, and `BarChart` +- **Query parameters** use placeholder variables like `$StartTime$`, `$EndTime$`, `$EventDataStoreId$` +- Managed dashboard refreshes require passing `$EventDataStoreId$` in query parameters; custom dashboards do not +- AWS CLI commands run in the region configured for your profile; use `--region` to override + +## Commands and Syntax + +```bash +# Get a dashboard +aws cloudtrail get-dashboard --dashboard-id + +# List dashboards (with optional filters) +aws cloudtrail list-dashboards [--type CUSTOM|MANAGED] [--max-results 1-100] [--name-prefix ] + +# Attach resource-based policy to event data store (for query permissions) +aws cloudtrail put-resource-policy --resource-arn --resource-policy '' + +# Attach resource-based policy to dashboard (for scheduled refresh) +aws cloudtrail put-resource-policy --resource-arn --resource-policy '' + +# Manually refresh a dashboard +aws cloudtrail start-dashboard-refresh --dashboard-id \ + --query-parameter-values '{"$StartTime$": ""}' + +# Refresh a managed dashboard (must include event data store ID) +aws cloudtrail start-dashboard-refresh --dashboard-id \ + --query-parameter-values '{"$StartTime$": "", "$EventDataStoreId$": ""}' + +# Update refresh schedule +aws cloudtrail update-dashboard --dashboard-id \ + --refresh-schedule '{"Frequency": {"Unit": "HOURS", "Value": 6}, "Status": "ENABLED"}' + +# Disable termination protection and refresh schedule +aws cloudtrail update-dashboard --dashboard-id \ + --refresh-schedule '{"Status": "DISABLED"}' --no-termination-protection-enabled + +# Update widgets (must include all existing widgets plus new ones) +aws cloudtrail update-dashboard --dashboard-id --widgets '[...]' +``` + +## Relationships + +- **CloudTrail Lake**: Dashboards query event data stores in CloudTrail Lake +- **IAM resource-based policies**: `put-resource-policy` connects to IAM policy evaluation; the `cloudtrail.amazonaws.com` service principal must be allowed +- **CloudTrail Lake queries**: Widget `QueryStatement` uses CloudTrail Lake SQL syntax (SELECT/FROM/WHERE/GROUP BY) +- **Scheduled refresh**: Requires resource-based policies on both the dashboard and associated event data stores +- **Dashboard creation**: Complements `create-dashboard` (covered separately); `update-dashboard` modifies existing dashboards + +## Exam-Relevant Points + +- Resource-based policies must be attached to **both** the event data store (for `StartQuery`) **and** the dashboard (for `StartDashboardRefresh`) before scheduled refresh works +- Managed dashboards require `$EventDataStoreId$` in refresh requests; custom dashboards do not +- When updating widgets, you must pass the **complete widgets array** (existing + new), not just the new widget +- `list-dashboards` supports filtering by `--type`, `--max-results` (1-100), and `--name-prefix` +- `--dashboard-id` accepts either an ARN or dashboard name +- Refresh schedule frequency uses `Unit` (e.g., `HOURS`) and `Value` (e.g., `6`) +- Termination protection must be disabled before a dashboard can be deleted + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-clihtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-clihtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b6e0d2226262bc819932a01505494a24932ae615 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-clihtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-dashboard-cli.html +source: sources/awscloudtrail-latest-userguide-lake-dashboard-clihtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:27 + + + +## Overview +This page documents the AWS CLI commands available for creating, updating, and managing CloudTrail Lake dashboards, including custom dashboards and the Highlights dashboard. + +## Key Concepts +- CloudTrail Lake dashboards can be managed entirely via AWS CLI +- Two dashboard types: **custom dashboards** and the **Highlights dashboard** +- Dashboards require **resource-based policies** for two purposes: allowing CloudTrail to refresh dashboards asynchronously, and allowing CloudTrail to run queries on event data stores to populate widget data +- CLI commands run in the Region configured for your profile; use `--region` to override +- Dashboards support tagging + +## Commands and Syntax +| Command | Purpose | +|---------|---------| +| `create-dashboard` | Create custom dashboard or enable Highlights dashboard | +| `update-dashboard` | Update custom or Highlights dashboard | +| `delete-dashboard` | Delete custom or Highlights dashboard | +| `get-dashboard` | Get info about a specific dashboard | +| `list-dashboards` | List dashboards (all or filtered) | +| `start-dashboard-refresh` | Trigger a dashboard refresh | +| `put-resource-policy` | Attach resource-based policy to dashboard or event data store | +| `get-resource-policy` | Retrieve resource-based policy from dashboard | +| `delete-resource-policy` | Remove resource-based policy from dashboard | +| `add-tags` / `remove-tags` / `list-tags` | Manage dashboard tags | + +## Relationships +- **CloudTrail Lake event data stores**: Dashboards query event data stores for widget data; event data stores also need resource-based policies for this +- **CloudTrail Lake queries**: Dashboard refreshes run queries against event data stores +- **Resource-based policies**: Shared mechanism used by both dashboards and event data stores +- Related CLI command sets: event data store commands, query commands, integration commands + +## Exam-Relevant Points +- Resource-based policies are required on **both** the dashboard (for async refresh) and the event data store (for query access) +- `start-dashboard-refresh` is a distinct manual action — dashboards don't necessarily auto-refresh without proper policy setup +- The `--region` parameter or profile configuration determines which Region's dashboards are managed +- The Highlights dashboard can be enabled/disabled using the same `create-dashboard`/`delete-dashboard` commands as custom dashboards + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-customhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-customhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..17d940ba978957c768dc251643f1101aa48355d1 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-customhtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-dashboard-custom.html +source: sources/awscloudtrail-latest-userguide-lake-dashboard-customhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:27 + + + +## Overview +This page describes how to create a custom dashboard in AWS CloudTrail Lake using the CloudTrail console, including naming the dashboard, configuring permissions for event data stores, and adding widgets. + +## Key Concepts +- Custom dashboards support up to **10 widgets** each +- Widgets can be **sample widgets** or **custom widgets from SQL queries** +- CloudTrail requires **resource-based policies** on event data stores to run queries that populate dashboard widgets — these are attached automatically when you select event data stores during creation +- Dashboards support up to **50 tag key pairs** for identification and sorting +- Dashboards can be **manually refreshed** or set on a **refresh schedule** + +## Commands and Syntax +Console-only procedure (no CLI shown): +1. Open CloudTrail console → **Lake** → **Dashboard** +2. Choose **Managed and custom dashboards** tab +3. Choose **Build my own dashboard** +4. Provide a dashboard name +5. Select event data stores for permissions +6. Optionally add tags +7. Choose **Create dashboard** + +## Relationships +- **CloudTrail Lake**: Custom dashboards are a Lake feature, querying event data stores +- **Event data stores**: Dashboard widgets query event data stores; resource-based policies are auto-attached +- **Resource-based policies**: CloudTrail attaches these to event data stores to authorize dashboard queries +- **Refresh schedules**: After creation, dashboards can be configured with scheduled refreshes +- **Widgets**: Three sub-topics cover adding sample widgets, creating widgets from SQL, and removing widgets + +## Exam-Relevant Points +- Custom dashboards are limited to **10 widgets** +- CloudTrail **automatically attaches resource-based policies** to selected event data stores to enable dashboard queries +- Dashboards support up to **50 tags** +- Custom dashboards are part of **CloudTrail Lake** (not standard CloudTrail trails) +- Widget data is populated by **SQL queries** against event data stores + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-deletehtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-deletehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..4ef38673c41cae1e90dc426609c65a707025c364 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-deletehtml.md @@ -0,0 +1,39 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-dashboard-delete.html +source: sources/awscloudtrail-latest-userguide-lake-dashboard-deletehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:27 + + + +## Overview +This page describes the procedure for deleting a custom dashboard in AWS CloudTrail Lake using the AWS Management Console. + +## Key Concepts +- Custom dashboards in CloudTrail Lake can be deleted through the console +- Termination protection must be disabled before a dashboard can be deleted +- Dashboards are managed under the **Lake** section of CloudTrail + +## Commands and Syntax +**Console procedure to delete a custom dashboard:** +1. Open CloudTrail console +2. Navigate to **Lake → Dashboard** +3. Select the **Managed and custom dashboards** tab +4. Select the target custom dashboard +5. **Actions → Delete** +6. Confirm deletion + +## Relationships +- **CloudTrail Lake**: Parent feature that hosts dashboards +- **Termination protection**: Must be disabled before deletion (`lake-dashboard-termination-protection`) +- **Managed dashboards**: Exist alongside custom dashboards but follow different lifecycle rules +- Related to dashboard creation, CLI-based dashboard management, and dashboard refresh configuration + +## Exam-Relevant Points +- Termination protection blocks dashboard deletion — must be explicitly disabled first +- Only **custom** dashboards can be deleted through this workflow; managed dashboards have separate handling +- Dashboards are a CloudTrail **Lake** feature, not a trails feature + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-highlights-disablehtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-highlights-disablehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1b11efaee1cd4f3a1bbf4950e788768e89d6fb60 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-highlights-disablehtml.md @@ -0,0 +1,39 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-dashboard-highlights-disable.html +source: sources/awscloudtrail-latest-userguide-lake-dashboard-highlights-disablehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:27 + + + +## Overview +This page describes the procedure for disabling the CloudTrail Lake Highlights dashboard via the AWS Management Console, including the prerequisite step of disabling termination protection. + +## Key Concepts +- The **Highlights dashboard** is a feature within **CloudTrail Lake** that has **termination protection enabled by default** +- Termination protection must be disabled before the Highlights dashboard itself can be disabled +- This is a two-phase operation: disable termination protection, then disable Highlights + +## Commands and Syntax +**Console procedure to disable the Highlights dashboard:** +1. Open the CloudTrail console +2. Navigate to **Lake → Dashboard** +3. Select the **Highlights** tab +4. **Actions → Change termination protection** → set to **Disabled** → **Save** +5. **Actions → Disable Highlights** + +No CLI or API commands are provided on this page. + +## Relationships +- **CloudTrail Lake**: The Highlights dashboard is a sub-feature of CloudTrail Lake dashboards +- **Termination protection**: A safeguard pattern also seen in other AWS services (e.g., EC2 instances, CloudFormation stacks) that prevents accidental deletion +- Related to enabling Highlights and managing Lake dashboards more broadly + +## Exam-Relevant Points +- Termination protection is **automatically enabled** for the Highlights dashboard — you cannot disable Highlights without first disabling termination protection +- The Highlights dashboard lives under the **Lake → Dashboard** section, not the main CloudTrail trails interface +- This is a console-only procedure as documented here + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-highlightshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-highlightshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..cbbe8cfa3de61f631e18cd6afe23346e67bf8186 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-highlightshtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-dashboard-highlights.html +source: sources/awscloudtrail-latest-userguide-lake-dashboard-highlightshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:27 + + + +## Overview +This page explains how to enable the CloudTrail Highlights dashboard via the AWS Management Console. The Highlights dashboard provides an automated, at-a-glance overview of AWS activity collected by event data stores, surfacing anomalies and abnormal activity such as unusual cross-account access patterns. + +## Key Concepts +- **Highlights dashboard** — A CloudTrail-managed dashboard showing account-specific widgets that surface detected abnormal activity or anomalies. +- Widgets are **unique per account** and **cannot be added or removed** by the user. +- Dashboard updates **every 6 hours** automatically; shows the **last 24 hours** of data from the last update. +- **No custom refresh schedule** can be set. +- Only works with **event data stores in your account** (CloudTrail Lake). +- Enabling the dashboard **incurs CloudTrail query charges**. +- **Termination protection** is automatically enabled when the Highlights dashboard is enabled, preventing accidental deletion. +- CloudTrail attaches **resource-based policies** to both the selected event data stores and the dashboard itself to allow automated query execution and refresh. + +## Commands and Syntax +This is a console-only procedure (no CLI commands documented): +1. Open CloudTrail console → **Lake** → **Dashboard** → **Highlights** tab. +2. Review cost information → **Agree and enable Highlights**. +3. Select event data stores to grant permissions → **Confirm**. + +To modify policies after enabling: +- Event data store policy: edit from the event data store's details page. +- Dashboard policy: **Actions** → **Edit policy**. + +## Relationships +- **CloudTrail Lake** — The Highlights dashboard depends on event data stores, a Lake feature. +- **Resource-based policies** — CloudTrail auto-attaches policies to event data stores and dashboards for automated access. +- **CloudTrail pricing** — Queries run by the dashboard count toward CloudTrail Lake query costs. +- **Termination protection** — Related to dashboard lifecycle management; must be disabled before the dashboard can be deleted. + +## Exam-Relevant Points +- Highlights dashboard refreshes every **6 hours** (not configurable) and shows **24 hours** of data. +- Widgets are **managed by CloudTrail** — users cannot customize which widgets appear. +- Enabling the dashboard **automatically enables termination protection**. +- CloudTrail uses **resource-based policies** (not IAM identity-based policies) to grant itself permission to query event data stores and refresh the dashboard. +- The dashboard can only use event data stores **in the same account**. + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-managedhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-managedhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..109609f3aef86f980ff5f4225575d7896264c0a4 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-managedhtml.md @@ -0,0 +1,42 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-dashboard-managed.html +source: sources/awscloudtrail-latest-userguide-lake-dashboard-managedhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:28 + + + +## Overview +This page explains how to view CloudTrail Lake managed dashboards and how to save them as custom dashboards. Managed dashboards display event trends for event data stores collecting management events, data events, and Insights events, but cannot be directly modified — they must be copied to custom dashboards for customization. + +## Key Concepts +- **Managed dashboards** are pre-built by CloudTrail Lake and cannot be modified (no adding/removing/editing widgets) +- Managed dashboards can be **saved as custom dashboards** to enable modification and refresh schedules +- Dashboards are tied to **event data stores** — the dropdown filters to show only relevant event data stores for the selected dashboard type +- Dashboard data defaults to the **past 24 hours** and can be filtered by absolute or relative time ranges +- **Queries incur costs** based on the amount of data scanned — narrower time ranges help control costs +- Up to **50 tags** can be applied to custom dashboards +- CloudTrail requires **resource-based policies** on event data stores to run queries that populate dashboard widgets + +## Commands and Syntax +No CLI commands on this page — all procedures are console-based: + +1. **View managed dashboard**: Console → CloudTrail → Lake → Dashboard → Managed and custom dashboards tab → select dashboard → select event data store → refresh +2. **Save as custom dashboard**: From a managed dashboard → Save as new dashboard → name it → configure tags/permissions → Create dashboard + +## Relationships +- **Event data stores**: Dashboards query event data stores; the type of dashboard (management/data/Insights) determines which event data stores appear +- **Resource-based policies**: Creating a custom dashboard attaches policies to event data stores allowing CloudTrail to query them +- **Custom dashboards**: Once saved, custom dashboards support widget management and refresh schedules +- **CloudTrail pricing**: Dashboard queries are billed like Lake queries (per data scanned) + +## Exam-Relevant Points +- Managed dashboards **cannot be modified** — you must save as custom to change widgets or set refresh schedules +- Dashboard queries **cost money** based on data scanned; time range filtering is the cost control lever +- The event data store dropdown is **context-filtered** — only shows stores matching the dashboard's event type +- CloudTrail attaches **resource-based policies** to event data stores when creating custom dashboards (permissions model) +- You can only view managed dashboards for event data stores **in your own account** + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-refresh-disablehtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-refresh-disablehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..50a00ac83c774727a50f946cd850631e15a63c28 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-refresh-disablehtml.md @@ -0,0 +1,40 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-dashboard-refresh-disable.html +source: sources/awscloudtrail-latest-userguide-lake-dashboard-refresh-disablehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:28 + + + +## Overview +This page describes how to disable the automatic refresh schedule for a custom dashboard in AWS CloudTrail Lake using the AWS Management Console, so that the dashboard must be refreshed manually instead. + +## Key Concepts +- CloudTrail Lake dashboards can have automatic refresh schedules +- Disabling the refresh schedule stops automatic updates but doesn't delete the dashboard +- After disabling, the dashboard can still be refreshed manually +- This applies only to **custom dashboards**, not managed dashboards + +## Commands and Syntax +**Console procedure to disable refresh schedule:** +1. Open CloudTrail console → Left nav → **Lake** → **Dashboard** +2. Select the **Managed and custom dashboards** tab +3. Under **Custom dashboards**, select the target dashboard +4. Choose **Disable refresh schedule** from the dropdown list + +No CLI or API commands are provided on this page. + +## Relationships +- **CloudTrail Lake**: Parent feature; dashboards visualize Lake query results +- **Custom vs. Managed Dashboards**: Refresh schedule management applies to custom dashboards +- **Manual refresh**: Complement to scheduled refresh — covered in a separate topic +- **Dashboard creation**: Must have a custom dashboard with a refresh schedule already enabled + +## Exam-Relevant Points +- CloudTrail Lake dashboards support both scheduled and manual refresh +- Refresh schedule management is available for **custom** dashboards (distinct from managed dashboards) +- The setting is found under **Lake → Dashboard**, not under Trails or Event history + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-refreshhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-refreshhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..420a0d63b2291626053c4f90b1a8e83aef699fac --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-refreshhtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-dashboard-refresh.html +source: sources/awscloudtrail-latest-userguide-lake-dashboard-refreshhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:28 + + + +## Overview +This page describes how to configure an automatic refresh schedule for custom dashboards in AWS CloudTrail Lake using the CloudTrail console, including the available refresh intervals and the resource-based policy that CloudTrail automatically attaches. + +## Key Concepts +- Custom dashboards in CloudTrail Lake can be set to refresh automatically on a schedule +- Available refresh intervals: **1 hour, 6 hours, 12 hours, or 24 hours** +- CloudTrail automatically attaches a **resource-based policy** to the dashboard to allow it to refresh on your behalf +- Running dashboard refresh queries **incurs costs** — confirmation is required when setting a schedule + +## Commands and Syntax +Console procedure only (no CLI shown on this page): +1. Open CloudTrail console → **Lake** → **Dashboard** +2. Select the **Managed and custom dashboards** tab +3. Choose a custom dashboard +4. Select refresh frequency from dropdown +5. Review the resource-based policy CloudTrail will attach +6. **Confirm** to accept the cost of scheduled queries + +## Relationships +- **CloudTrail Lake**: Dashboards are a Lake feature; queries run against Lake event data stores +- **Resource-based policies**: CloudTrail uses these to grant itself permission to refresh dashboards (related to IAM resource-based policy concepts) +- **CloudTrail Lake query costs**: Refresh schedules directly impact costs since each refresh runs queries +- Related pages: custom dashboard creation, managed dashboards, dashboard CLI management, disabling refresh schedules + +## Exam-Relevant Points +- Refresh intervals are limited to **1, 6, 12, or 24 hours** — no arbitrary cron expressions +- A **resource-based policy** is automatically attached to the dashboard when a refresh schedule is set +- Scheduled refreshes **incur query costs** — this is a billing consideration +- This applies to **custom dashboards only** (managed dashboards have their own refresh behavior) + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-termination-protectionhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-termination-protectionhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1c0818ac333d1fc9abb58634f56392e6882007d7 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-termination-protectionhtml.md @@ -0,0 +1,39 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-dashboard-termination-protection.html +source: sources/awscloudtrail-latest-userguide-lake-dashboard-termination-protectionhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:28 + +## Overview +This page describes how to enable or disable termination protection on CloudTrail Lake dashboards via the AWS Management Console, preventing accidental deletion of custom or Highlights dashboards. + +## Key Concepts +- **Termination protection** prevents accidental deletion of CloudTrail Lake dashboards +- Applies to both custom dashboards and the Highlights dashboard +- Must be disabled before a dashboard can be deleted +- Managed through the CloudTrail console under **Lake > Dashboard** + +## Commands and Syntax +**Console procedure (enable or disable):** +1. Open CloudTrail console +2. Navigate to **Lake → Dashboard** +3. Select the target dashboard +4. **Actions → Change termination protection** +5. Choose **Enabled** or **Disabled** +6. **Save** + +No CLI or API syntax is provided on this page. + +## Relationships +- **CloudTrail Lake dashboards**: termination protection is a safeguard for these resources +- **Dashboard deletion**: termination protection must be disabled first before deleting a dashboard +- **Highlights dashboard**: can also have termination protection toggled + +## Exam-Relevant Points +- Termination protection must be **disabled** before you can delete a CloudTrail Lake dashboard +- The setting is found under **Actions → Change termination protection** in the Lake Dashboard console +- This is a safety mechanism against accidental deletion, not an IAM-level control + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboardhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboardhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..49ec5d2971f63a09db1e50bb41fef09f59b628f1 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboardhtml.md @@ -0,0 +1,87 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-dashboard.html +source: sources/awscloudtrail-latest-userguide-lake-dashboardhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:29 + + + +## Overview + +CloudTrail Lake dashboards provide visual representations of event trends from event data stores in your AWS account. There are three dashboard types: managed dashboards (14 pre-built, read-only dashboards for management/data/Insights events), custom dashboards (user-created with up to 10 widgets and optional refresh schedules), and the Highlights dashboard (auto-updated every 6 hours showing anomalies and abnormal activity). Each widget renders SQL query results graphically, and refreshing dashboards incurs query costs. + +## Key Concepts + +- **Managed dashboards**: 14 pre-built dashboards managed by CloudTrail; cannot modify widgets but can save as custom dashboard; manual refresh only +- **Custom dashboards**: User-created; up to 10 widgets; support manual or scheduled refresh; can query any event data store type +- **Highlights dashboard**: Account-specific; surfaces anomalies (e.g., abnormal cross-account access); updates every 6 hours; shows last 24 hours of data from last update +- Each widget is backed by a SQL query viewable via "View and edit query" +- Refreshing dashboards runs queries, which **incur costs** +- Dashboards only work with event data stores **in your own account** +- Delegated administrators **cannot** view or manage dashboards owned by the management account +- The **Activity summary** widget on Highlights is only available in ap-northeast-1, us-east-1, and us-west-1 + +## Commands and Syntax + +**IAM policy for creating dashboards:** +```json +{ + "Version": "2012-10-17", + "Statement": [{ + "Effect": "Allow", + "Action": [ + "cloudtrail:CreateDashboard", + "cloudtrail:StartDashboardRefresh", + "cloudtrail:StartQuery" + ], + "Resource": [ + "arn:aws:cloudtrail:REGION:ACCOUNT:dashboard/*", + "arn:aws:cloudtrail:REGION:ACCOUNT:eventdatastore/EDS-ID" + ] + }] +} +``` + +**Key IAM actions:** `CreateDashboard`, `UpdateDashboard`, `StartDashboardRefresh`, `StartQuery` + +**KMS decrypt policy for encrypted event data stores:** +```json +{ + "Sid": "AllowCloudTrailDecryptAccess", + "Effect": "Allow", + "Principal": { "Service": "cloudtrail.amazonaws.com" }, + "Action": "kms:Decrypt", + "Resource": "*" +} +``` + +**Resource-based policies** must be attached to: +- Every event data store associated with dashboard widgets (for query execution) +- The dashboard itself (for scheduled refresh) + +Attach via console, `put-resource-policy` CLI command, or `PutResourcePolicy` API. + +## Relationships + +- **CloudTrail Lake event data stores**: Prerequisite — at least one must exist before dashboards can be used +- **CloudTrail Lake queries**: Dashboards execute SQL queries against event data stores; same query cost model applies +- **IAM**: Requires identity-based policies (for users) and resource-based policies (for CloudTrail service principal) +- **KMS**: If event data stores are KMS-encrypted, key policy must grant `kms:Decrypt` to `cloudtrail.amazonaws.com` +- **AWS Organizations**: Delegated admins have restricted access — cannot manage management account dashboards +- **CloudTrail pricing**: Dashboard refreshes directly incur query costs + +## Exam-Relevant Points + +- **Three dashboard types** with distinct capabilities: managed (read-only, 14 options), custom (up to 10 widgets, scheduled refresh), Highlights (auto-updated every 6 hours, anomaly detection) +- Managed dashboards **cannot be modified** — save as custom to edit +- Highlights dashboard **Activity summary widget** is limited to 3 regions (Tokyo, N. Virginia, Oregon) +- Dashboard refresh **incurs query costs** +- **Two policy types required**: identity-based (user permissions) and resource-based (CloudTrail service principal permissions on event data stores and dashboards) +- `StartQuery` permission needed on **all event data stores** for Highlights dashboard +- Delegated admins **cannot access management account dashboards** +- KMS-encrypted event data stores require explicit `kms:Decrypt` grant to CloudTrail service principal +- Dashboards only operate on event data stores **within the same account** + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-lake-query-generatorhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-query-generatorhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..6f8355bf27858168a55ece0851f9d1ccc96543a8 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-lake-query-generatorhtml.md @@ -0,0 +1,73 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-query-generator.html +source: sources/awscloudtrail-latest-userguide-lake-query-generatorhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:29 + + + +## Overview + +CloudTrail Lake includes a natural language query generator that uses generative AI to convert English-language prompts into SQL queries against event data stores. Users can generate, review, and run queries without needing deep SQL or CloudTrail event field knowledge. The feature is available via the console and AWS CLI, with no charge for generation but standard Lake query charges when running queries. + +## Key Concepts + +- Converts plain English prompts (3–500 characters) into CloudTrail Lake SQL queries +- Uses generative AI (LLMs) — AWS recommends double-checking generated output +- **No charge** for generating queries; charges apply only when **running** queries (based on compressed data scanned) +- Inference requests are routed within geographic boundaries (US, Japan, Australia, EU, India) — data stored in originating region but prompts/results may be processed in another region within the same geography +- Feedback mechanism (thumbs up/down) saves prompt and generated query to CloudTrail +- Can also **summarize query results** in natural language (preview feature, limited regions) +- Opt out by denying `cloudtrail:GenerateQuery` in IAM policy + +## Commands and Syntax + +**Generate a query (CLI):** +```bash +aws cloudtrail generate-query \ + --event-data-stores arn:aws:cloudtrail:us-east-1:123456789012:eventdatastore/EXAMPLE-ID \ + --prompt "Show me all console login events for the past week?" +``` +Returns: `QueryStatement` (SQL) and `QueryAlias` + +**Run the generated query:** +```bash +aws cloudtrail start-query --query-alias AWSCloudTrail-UUID +``` +Returns: `QueryId` + +**Check status / get results:** +```bash +aws cloudtrail describe-query --query-id EXAMPLE-QUERY-ID +aws cloudtrail get-query-results --query-id EXAMPLE-QUERY-ID +``` + +**Key SQL patterns in generated queries:** +- Filter by time: `eventTime >= timestamp 'YYYY-MM-DD HH:MM:SS'` +- Filter by source: `eventSource = 'sns.amazonaws.com'` +- Resource tags: `any_match(eventContext.tagContext.resourceTags, rt->element_at(rt.tags, 'key') = 'value')` +- Principal tags: `element_at(eventContext.tagContext.principalTags, 'tagname')` +- Unnest resource tags: `unnest(eventContext.tagContext.resourceTags) as rt` + +## Relationships + +- **CloudTrail Lake** — query generator is a Lake sub-feature targeting event data stores +- **IAM** — requires `cloudtrail:GenerateQuery` permission; `AWSCloudTrail_FullAccess` or `AdministratorAccess` managed policies suffice +- **S3** — query results can be delivered to S3 via `--delivery-s3uri` (requires bucket policy granting CloudTrail access) +- **CloudTrail event types** — only works with management events, data events, and network activity events (not integration/config events) +- **Cost management** — constrain queries with `eventTime` timestamps to limit scanned data + +## Exam-Relevant Points + +- Query generation is **free**; running queries incurs charges based on **optimized and compressed data scanned** +- Only works with **CloudTrail event data stores** (not integration or config item stores) +- **English only** for prompts +- Supported in 7 regions: ap-south-1, ap-southeast-2, ap-northeast-1, ca-central-1, eu-west-2, us-east-1, us-west-2 +- Data residency: inference routed within geographic area but prompts/results may cross region boundaries within that geography +- Queries running longer than **one hour may time out** (partial results available) +- Permission control: deny `cloudtrail:GenerateQuery` to opt out +- Query results summarization is a **preview** feature available only in ap-northeast-1, us-east-1, us-west-2 + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-logging-data-events-with-cloudtrailhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-logging-data-events-with-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9153280eefd7d1b5e247096f05be891034599bbc --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-logging-data-events-with-cloudtrailhtml.md @@ -0,0 +1,89 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html +source: sources/awscloudtrail-latest-userguide-logging-data-events-with-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:29 + +## Overview +This page covers how to configure AWS CloudTrail to log **data events** (data plane operations) using the console, CLI, and SDKs. Data events capture resource-level operations (e.g., S3 GetObject, Lambda Invoke) and are not logged by default — they require explicit configuration and incur additional charges. The page details supported resource types, event selectors (basic and advanced), filtering, cross-account logging, and read/write event classification. + +## Key Concepts +- **Data events** = data plane operations performed on or within a resource; distinct from **management events** (control plane) +- Data events are **not logged by default** in trails or event data stores; additional charges apply +- Data events are often **high-volume** (e.g., every S3 GetObject call) +- **Advanced event selectors** enable fine-grained filtering (by `eventName`, `resources.ARN`, `userIdentity.arn`, etc.) to control costs +- **Basic event selectors** only support S3 objects (general purpose buckets), Lambda functions, and DynamoDB tables +- **Advanced event selectors** are required for all other resource types and for event data stores +- Events logged by trails are also available in **Amazon EventBridge** +- **Read-only vs write-only** classification allows selective logging of read or write operations +- For DynamoDB tables with streams enabled, specifying `AWS::DynamoDB::Table` logs both table and stream events by default — filter on `eventName` to exclude streams +- **Data event aggregation** can consolidate high-volume events for cost optimization + +## Commands and Syntax + +**Log data events for a trail using advanced event selectors (CLI):** +```bash +aws cloudtrail put-event-selectors \ + --trail-name \ + --advanced-event-selectors '[{ + "Name": "Log S3 data events", + "FieldSelectors": [ + {"Field": "eventCategory", "Equals": ["Data"]}, + {"Field": "resources.type", "Equals": ["AWS::S3::Object"]} + ] + }]' +``` + +**Filter by eventName:** +```json +{"Field": "eventName", "Equals": ["GetObject"]} +``` + +**Filter by resources.ARN (specific bucket):** +```json +{"Field": "resources.ARN", "StartsWith": ["arn:aws:s3:::my-bucket/"]} +``` + +**Create event data store with data events (CLI):** +```bash +aws cloudtrail create-event-data-store \ + --name \ + --advanced-event-selectors '[...]' +``` + +**Key `resources.type` values:** +| Resource | Value | +|----------|-------| +| S3 objects (general purpose) | `AWS::S3::Object` | +| S3 Express (directory buckets) | `AWS::S3Express::Object` | +| Lambda functions | `AWS::Lambda::Function` | +| DynamoDB tables | `AWS::DynamoDB::Table` | +| EBS snapshots (direct APIs) | `AWS::EC2::Snapshot` | +| SQS queues | `AWS::SQS::Queue` | +| SNS topics | `AWS::SNS::Topic` | +| Kinesis streams | `AWS::Kinesis::Stream` | +| Step Functions state machines | `AWS::StepFunctions::StateMachine` | + +## Relationships +- **CloudTrail trails & event data stores** — data events are configured on these; event data stores use only advanced event selectors +- **EventBridge** — data events logged by trails are available as EventBridge events +- **AWS Config** — data event logging supports Config compliance rules +- **S3, Lambda, DynamoDB** — the three services supported by both basic and advanced event selectors +- **CloudTrail Lake** — uses `PutAuditEvents` on channels to ingest external events (itself a data event type) +- **Advanced event selectors** — shared filtering mechanism with network activity events and management events + +## Exam-Relevant Points +- Data events are **off by default** and cost extra — must be explicitly enabled +- **Basic event selectors** support only three resource types: S3 objects, Lambda functions, DynamoDB tables +- **Advanced event selectors** are required for all other resource types and for event data stores +- The `resources.type` field value determines which data events are captured (e.g., `AWS::S3::Object`, `AWS::Lambda::Function`) +- Cross-account S3 data event logging is possible — you can log events for S3 buckets in other AWS accounts +- DynamoDB table data events include stream events by default when streams are enabled; use `eventName` filter to separate them +- Over **150 resource types** are supported for data event logging across dozens of AWS services +- Data events can be filtered as **read-only** or **write-only** to reduce volume and cost +- **Data event aggregation** is a feature for reducing cost on very high-volume data events +- CloudTrail Lake channels logging external events via `PutAuditEvents` is itself classified as a data event + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-logging-insights-events-with-cloudtrailhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-logging-insights-events-with-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2100cc4a5bfd0138f5bd4a1b0ca526ad08aa77c0 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-logging-insights-events-with-cloudtrailhtml.md @@ -0,0 +1,42 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html +source: sources/awscloudtrail-latest-userguide-logging-insights-events-with-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:30 + + + +## Overview +CloudTrail Insights is a feature that detects unusual API activity in AWS accounts by continuously analyzing CloudTrail management and data events to establish baseline patterns, then generating Insights events when API call rates or error rates deviate significantly from those baselines. + +## Key Concepts +- **Insights events** are generated when current API activity deviates from an established baseline of normal patterns +- **Baseline** is the normal pattern of API call rates and error rates derived from past events +- Two dimensions of analysis: **API call rate** (volume per minute) and **API error rate** (unsuccessful calls) +- Two event categories: **Management events Insights** and **Data events Insights** +- Management events Insights — API call rate requires logging `write` management events; API error rate requires logging `read`, `write`, or both +- Data events Insights — API call rate requires logging data events; API error rate requires logging `read`, `write`, or both data events +- **Data events Insights are only supported on trails, not on event data stores** +- Insights events are generated per-Region, in the same Region as the source event +- Additional charges apply for Insights events; management and data event Insights are charged separately + +## Commands and Syntax +No specific commands on this page — enabling Insights is covered in linked sub-pages (console and AWS CLI). + +## Relationships +- **Depends on**: CloudTrail trails and event data stores — Insights must be enabled on these, and the appropriate event types (management/data, read/write) must already be logged +- **Related to**: CloudTrail Lake (event data stores can use management Insights but not data Insights) +- **Billing**: Separate Insights charges apply on top of standard CloudTrail pricing; charged separately for trails vs. event data stores +- **Regional**: Insights analysis and event generation are Region-scoped + +## Exam-Relevant Points +- Insights detects **unusual activity** — not all activity, only deviations from baseline +- API **call rate** Insights for management events only analyzes **write** management events +- API **error rate** Insights can analyze read, write, or both +- **Data events Insights are trail-only** — not supported on event data stores (key distinction) +- You are charged **separately** if you enable management Insights on both a trail and an event data store +- Insights events appear in the **same Region** as the triggering activity + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-logging-network-events-with-cloudtrailhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-logging-network-events-with-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..bf634bd836f065b1755e4bf2fb2c84e113016385 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-logging-network-events-with-cloudtrailhtml.md @@ -0,0 +1,87 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-network-events-with-cloudtrail.html +source: sources/awscloudtrail-latest-userguide-logging-network-events-with-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:30 + + + +## Overview + +CloudTrail network activity events allow VPC endpoint owners to record and monitor AWS API calls made through their VPC endpoints from a private VPC to AWS services. This feature provides visibility into resource operations within a VPC, helping detect unauthorized credential usage against VPC endpoints. Network activity events are not logged by default and incur additional charges. + +## Key Concepts + +- **Network activity events** are a distinct CloudTrail event category (`NetworkActivity`) separate from management and data events +- They capture API calls routed through **VPC endpoints** (PrivateLink), giving visibility into private network traffic to AWS services +- **Not enabled by default** — must be explicitly configured per event source on trails or event data stores +- **Additional charges apply** beyond standard CloudTrail pricing +- Supported on **60+ AWS services** including EC2, S3, KMS, Lambda, DynamoDB, RDS, ECS, Secrets Manager, Bedrock, CloudFormation, and others +- **Amazon S3 Multi-Region Access Points are not supported** +- Can be configured on both **trails** and **CloudTrail Lake event data stores** (event data stores must be of type "CloudTrail events") +- Key use case: detecting when **credentials from outside your organization** attempt to access your VPC endpoints + +## Commands and Syntax + +**Required advanced event selector fields:** +- `eventCategory` — must equal `NetworkActivity` +- `eventSource` — the specific service endpoint (e.g., `kms.amazonaws.com`); must create a **separate field selector per event source** + +**Optional fields:** +- `eventName` — filter on specific API actions (e.g., `CreateKey`) +- `errorCode` — currently only supports `VpceAccessDenied` +- `vpcEndpointId` — filter to a specific VPC endpoint + +**Configure a trail:** +```bash +aws cloudtrail put-event-selectors \ + --trail-name TrailName \ + --region region \ + --advanced-event-selectors '[ + { + "Name": "Log KMS access denied via VPC endpoints", + "FieldSelectors": [ + { "Field": "eventCategory", "Equals": ["NetworkActivity"] }, + { "Field": "eventSource", "Equals": ["kms.amazonaws.com"] }, + { "Field": "errorCode", "Equals": ["VpceAccessDenied"] } + ] + } + ]' +``` + +**Check current selectors:** +```bash +aws cloudtrail get-event-selectors --trail-name TrailName +``` + +**Filter by specific VPC endpoint:** +```json +{ "Field": "vpcEndpointId", "Equals": ["vpce-example8c1b6b9b7"] } +``` + +**Multiple event sources** require separate selector blocks — one per `eventSource` value, each with its own `eventCategory: NetworkActivity` field. + +## Relationships + +- **CloudTrail trails and Lake** — network activity events are delivered through these two mechanisms +- **VPC endpoints (PrivateLink)** — network activity events specifically monitor traffic through VPC endpoints +- **Advanced event selectors** — required (basic event selectors cannot log network activity events); trails using basic selectors must switch first +- **Management events and data events** — network activity events are a third category that can be logged alongside both +- **IAM and VPC endpoint policies** — `VpceAccessDenied` errors indicate policy denials at the VPC endpoint level +- **Security monitoring** — complements CloudWatch, GuardDuty, and Security Hub for detecting unauthorized access patterns + +## Exam-Relevant Points + +- Network activity events require **advanced event selectors** — basic event selectors do not support them +- The `eventCategory` value must be **`NetworkActivity`** (not `Management` or `Data`) +- Each event source needs its own **separate field selector** — you cannot combine multiple event sources in one selector +- The only supported `errorCode` filter is **`VpceAccessDenied`** +- Network activity events are **not logged by default** and cost extra +- S3 Multi-Region Access Points are **not supported** for network activity events +- Event data stores must be of type **"CloudTrail events"** to log network activity events +- Maximum of **500 specified values** across all conditions in a selector +- You can combine management event selectors and network activity selectors in the **same `put-event-selectors` call** + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-monitor-cloudtrail-log-files-with-cloudwatch-logs.md b/entries/2026/03/12/awscloudtrail-latest-userguide-monitor-cloudtrail-log-files-with-cloudwatch-logs.md new file mode 100644 index 0000000000000000000000000000000000000000..a23ca1661713f426867c22951bbf472a8dd442be --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-monitor-cloudtrail-log-files-with-cloudwatch-logs.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/monitor-cloudtrail-log-files-with-cloudwatch-logs.html +source: sources/awscloudtrail-latest-userguide-monitor-cloudtrail-log-files-with-cloudwatch-logs.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:30 + + + +## Overview +This page describes how to integrate AWS CloudTrail with Amazon CloudWatch Logs to monitor, search, filter, and alert on CloudTrail log events in near real-time, enabling centralized log analysis and automated responses to specific API activity. + +## Key Concepts +- CloudWatch Logs centralizes logs from all AWS services into a single, time-ordered event stream +- CloudTrail log events can be sent to CloudWatch Logs for real-time monitoring +- **Metric filters** evaluate log events against patterns (terms, phrases, values) — e.g., monitoring for `ConsoleLogin` events +- **CloudWatch metrics** are assigned to metric filters to quantify matches +- **CloudWatch alarms** trigger based on configurable thresholds and time periods, sending notifications or invoking automated actions +- Standard CloudWatch and CloudWatch Logs pricing applies (not free) +- Regional availability governed by CloudWatch Logs region support + +## Commands and Syntax +No specific CLI commands on this page. The integration workflow is: + +1. Configure trail → send log events to CloudWatch Logs +2. Define metric filters (pattern matching on log events) +3. Assign CloudWatch metrics to those filters +4. Create CloudWatch alarms with thresholds/time periods +5. (Optional) Configure automated actions on alarm trigger + +## Relationships +- **CloudTrail → CloudWatch Logs**: Trail sends events to a CloudWatch log group +- **CloudWatch Logs → CloudWatch Metrics**: Metric filters bridge logs to metrics +- **CloudWatch Metrics → CloudWatch Alarms**: Alarms evaluate metrics against thresholds +- **IAM**: Requires a role policy document granting CloudTrail permission to write to CloudWatch Logs +- **Log group/stream naming**: CloudTrail follows specific naming conventions for CloudWatch log groups and streams + +## Exam-Relevant Points +- The 5-step integration flow (configure trail → metric filters → metrics → alarms → automated actions) is a common exam pattern +- CloudTrail-to-CloudWatch Logs integration enables **near real-time alerting** on API activity (vs. S3 delivery which has latency) +- A specific **IAM role policy** is required to authorize CloudTrail to write to CloudWatch Logs +- `ConsoleLogin` is a commonly tested example of a monitorable event +- This integration incurs **additional CloudWatch/CloudWatch Logs charges** +- Regional availability limitations apply — not all regions may support this integration + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-query-create-edit-queryhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-query-create-edit-queryhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..12d1af3ab85bb4f7855eb321c7036de3b4d66e25 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-query-create-edit-queryhtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html +source: sources/awscloudtrail-latest-userguide-query-create-edit-queryhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:30 + + + +## Overview +This page walks through creating and editing CloudTrail Lake queries using the AWS console, demonstrating how to modify a sample query to investigate actions by a specific IAM user and save it for reuse. + +## Key Concepts +- CloudTrail Lake provides a SQL-based query interface for searching event data stores +- Sample queries are provided as starting points and can be customized +- Saved queries are **browser-local** — they do not persist across browsers or devices +- The `FROM` clause uses the event data store ID (ARN portion), auto-populated when you select the data store +- Constraining queries with `eventTime` bounds is recommended to control costs + +## Commands and Syntax +```sql +SELECT + eventID, eventName, eventSource, eventTime, userIdentity.arn AS user +FROM + event-data-store-id +WHERE + userIdentity.arn LIKE '%Alice%' + AND eventTime > '2023-06-23 00:00:00' AND eventTime < '2023-06-26 00:00:00' +``` +- `LIKE '%name%'` for partial matching on user identity ARN +- `eventTime` filters use timestamp strings in `YYYY-MM-DD HH:MM:SS` format +- Queries can be run before saving to verify correctness + +## Relationships +- **CloudTrail Lake** — the query engine this feature belongs to +- **Event data stores** — the data source queries run against +- **IAM / userIdentity** — queried fields for user investigation +- **CloudTrail console** — navigation path: Lake → Query → Sample queries / Editor + +## Exam-Relevant Points +- Saved queries are stored in the browser only, not server-side — they won't appear on other devices +- Always scope queries with `eventTime` to manage Lake query costs +- The `FROM` value is the event data store ID derived from its ARN +- CloudTrail Lake uses SQL syntax with dot-notation for nested fields (e.g., `userIdentity.arn`) + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-query-eds-stop-ingestionhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-query-eds-stop-ingestionhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..dbb3dddc2470348e6b6bc1e05c14e04a03361ce4 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-query-eds-stop-ingestionhtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-eds-stop-ingestion.html +source: sources/awscloudtrail-latest-userguide-query-eds-stop-ingestionhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:31 + + + +## Overview +This page describes how to stop and restart event ingestion on CloudTrail Lake event data stores using the AWS Management Console. By default, event data stores ingest events, but ingestion can be paused and resumed as needed. + +## Key Concepts +- Event data stores are configured to ingest events **by default** +- Stop/Start ingestion is only available for event data stores containing **CloudTrail events** (management, data, network activity) or **AWS Config configuration items** +- Stopping ingestion changes the event data store state to `STOPPED_INGESTION` +- While ingestion is stopped, you can still **run queries** on existing events +- You can still **copy trail events** to a stopped event data store (if it contains only CloudTrail events) +- Ingestion can also be controlled via AWS CLI or APIs (not just console) + +## Commands and Syntax +**Console procedure to stop ingestion:** +1. Open CloudTrail console +2. Navigate to **Lake → Event data stores** +3. Select the event data store +4. **Actions → Stop ingestion** → Confirm + +**Console procedure to restart ingestion:** +1. Open CloudTrail console +2. Navigate to **Lake → Event data stores** +3. Select the event data store +4. **Actions → Start ingestion** + +## Relationships +- **CloudTrail Lake**: This is a Lake feature — event data stores are the core storage construct in CloudTrail Lake +- **Event data stores**: Ingestion control is one aspect of event data store lifecycle management +- **Trail-to-Lake copy**: Stopped event data stores can still receive copied trail events, connecting to the trail migration workflow +- **AWS Config integration**: Ingestion control also applies to Config configuration item event data stores + +## Exam-Relevant Points +- The `STOPPED_INGESTION` state name is specific and testable +- Queries **continue to work** on a stopped event data store — stopping ingestion does not affect read access +- Stop/Start ingestion is **not available** for integration event data stores or other non-CloudTrail/non-Config types +- Trail event copying is still permitted while ingestion is stopped (only for CloudTrail-event-only stores) + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-cloudtrailhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..d58a1c1f933a9ca758087adc95bc6593fbcde345 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-cloudtrailhtml.md @@ -0,0 +1,69 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store-cloudtrail.html +source: sources/awscloudtrail-latest-userguide-query-event-data-store-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:31 + + + +## Overview + +This page describes how to create a CloudTrail Lake event data store via the AWS Management Console. Event data stores can collect management events, data events, and network activity events, with configurable retention periods, encryption, query federation, and advanced event selectors for filtering. + +## Key Concepts + +- **Event data store** — A CloudTrail Lake resource that stores events for querying; supports management, data, and network activity events +- **Two pricing options:** + - **One-year extendable retention** — Default 366 days, max 3,653 days (~10 years); storage included for first 366 days; best for <25 TB/month ingestion + - **Seven-year retention** — Default and max 2,557 days (~7 years); storage included at no additional charge; best for >25 TB/month ingestion +- **Retention** is based on `eventTime` — events are removed when their `eventTime` exceeds the retention period (min 7 days) +- **Copying trail events** — retention period must account for oldest event age plus desired keep duration (`retention = oldest-event-in-days + number-days-to-retain`) +- **Lake query federation** — Enables querying event data via Amazon Athena using AWS Glue Data Catalog metadata; requires an IAM role (auto-created or existing) +- **Resource-based policies** — Control cross-account access to event data stores; supported actions include `StartQuery`, `CancelQuery`, `ListQueries`, `DescribeQuery`, `GetQueryResults`, `GenerateQuery`, `GenerateQueryResultsSummary`, `GetEventDataStore` +- **Organization event data stores** — Collect events from all accounts in an AWS Organization; must be created by management account or delegated administrator +- **Insights events** — Detect unusual API call rate or API error rate; require a separate destination event data store; write events needed for call rate insights, read or write for error rate insights +- **Advanced event selectors** — Filter events by fields: `readOnly`, `eventName`, `eventSource`, `eventType`, `sessionCredentialFromConsole`, `userIdentity.arn`, `resources.ARN` (data events only) +- Wildcards (`*`) not supported in selectors; use `StartsWith`, `EndsWith`, `NotStartsWith`, `NotEndsWith` instead +- Maximum of **500 values** across all selector conditions per event data store +- Up to **50 tags** per event data store +- KMS encryption is optional but **irreversible** once set (cannot remove or change the KMS key) +- Organization event data stores require an **existing** KMS key (not a new one) + +## Commands and Syntax + +This page covers console-only procedures. No CLI commands are shown. The console workflow is: + +1. Navigate to CloudTrail console → Lake → Event data stores → Create event data store +2. Configure: name, pricing option, retention period, optional KMS encryption, optional federation, optional resource policy, tags +3. Choose events: AWS events → CloudTrail events → select management/data/network activity event types +4. Configure event selectors (simple or advanced) with filtering conditions +5. Optionally enable Insights (requires destination event data store) +6. For data events: select resource type, configure selectors per resource type +7. Review and create + +## Relationships + +- **CloudTrail Trails** — Trail events can be copied into Lake event data stores for historical querying +- **AWS KMS** — Optional encryption for event data stores; multi-Region keys supported +- **Amazon Athena / AWS Glue** — Lake query federation enables Athena SQL queries against event data +- **AWS Lake Formation** — Manages permissions for federated event data stores +- **AWS Organizations** — Organization-wide event collection; delegated administrator support +- **CloudTrail Insights** — Requires a source event data store (management events) and a destination event data store (Insights events) +- **IAM** — Resource-based policies for cross-account access; tag-based access control + +## Exam-Relevant Points + +- One-year extendable pricing: max **3,653 days** (~10 years); Seven-year pricing: max **2,557 days** (~7 years) +- Minimum retention for both options: **7 days** +- KMS key **cannot be removed or changed** once associated with an event data store +- Organization event data stores require an **existing** KMS key (cannot create new) +- Only the **management account** can copy trail events or enable Insights for organization event data stores (not delegated admin) +- Insights requires **write** management events for API call rate; **read or write** for API error rate +- Advanced event selectors do **not** support wildcards — use `StartsWith`/`EndsWith` operators +- Maximum **500 values** across all conditions in selectors +- Federation uses **AWS Glue Data Catalog** and requires an IAM role with specific permissions +- Retention is determined by **`eventTime`**, not ingestion time + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-confightml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-confightml.md new file mode 100644 index 0000000000000000000000000000000000000000..e15a7770e8919646b27425cf8e23cf6a837c50b7 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-confightml.md @@ -0,0 +1,85 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store-config.html +source: sources/awscloudtrail-latest-userguide-query-event-data-store-confightml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:32 + + + +## Overview + +This page explains how to create a CloudTrail Lake event data store specifically for AWS Config configuration items using the AWS console. This integration allows you to query configuration items (point-in-time snapshots of resource attributes) alongside CloudTrail events and rule evaluations, enabling investigation of non-compliant changes by correlating rules, users, and resources. + +## Key Concepts + +- **Configuration item (CI)**: A point-in-time view of the attributes of a supported AWS resource; created by AWS Config when it detects a change or captures a snapshot. +- **CloudTrail Lake vs. AWS Config advanced queries**: Config queries cover current state for single/multi-account; CloudTrail Lake queries span diverse data sources including configuration items, compliance history, and CloudTrail events. +- **Creating a CI event data store does NOT impact** existing Config advanced queries, aggregators, or S3 history file delivery. +- **Event data stores only capture forward** — configuration items that occurred before creation are not included. +- **Pricing options**: + - **One-year extendable**: Default 366-day retention (included), extendable up to 3,653 days (pay-as-you-go after 366 days). Best for <25 TB/month. + - **Seven-year**: Fixed 2,557-day retention included. Best for >25 TB/month. +- **Retention is based on `eventTime`**, not ingestion time. +- **Limitations**: No support for custom configuration items; no support for event filtering via advanced event selectors. + +## Commands and Syntax + +**Console procedure** (no CLI shown): +1. Open CloudTrail console → Lake → Event data stores → Create event data store +2. Enter name, choose pricing option, set retention period (7–3,653 or 7–2,557 days) +3. Optional: enable KMS encryption (`alias/MyAliasName` format), Lake query federation (Athena), resource-based policy, tags (up to 50) +4. Choose events → AWS events → **Configuration items** +5. Optionally restrict to current region only; optionally enable for all org accounts +6. Review and create + +**Configuration item schema** (JSON hierarchy): +```json +{ + "eventVersion": "String", + "eventCategory": "ConfigurationItem", + "eventType": "AwsConfigurationItem", + "eventID": "String", + "eventTime": "yyyy-MM-DDTHH:mm:ss", + "awsRegion": "String", + "recipientAccountId": "String", + "eventData": { + "configurationItemStatus": "OK|ResourceDiscovered|ResourceNotRecorded|ResourceDeleted|ResourceDeletedNotRecorded", + "resourceType": "String", + "resourceId": "String", + "arn": "String", + "configuration": { }, + "supplementaryConfiguration": { }, + "relatedEvents": ["String"], + "relationships": [{ "name", "resourceType", "resourceId", "resourceName" }], + "tags": { } + } +} +``` + +## Relationships + +- **AWS Config**: Must have recording enabled (prerequisite); Config rules needed for compliance queries +- **AWS Systems Manager Quick Setup**: Can bootstrap Config recorder across accounts/regions +- **CloudTrail Lake**: Parent feature; CI event data stores are one type of Lake event data store +- **Amazon Athena / AWS Glue Data Catalog**: Optional federation for SQL queries against CI data +- **AWS KMS**: Optional encryption; once set, cannot be changed or removed +- **AWS Organizations**: Org-wide CI collection requires management or delegated admin account; auto-generates resource-based policy for delegated admins +- **AWS Lake Formation**: Manages permissions for federated event data stores +- **Resource-based policies**: Support 8 actions (`StartQuery`, `CancelQuery`, `ListQueries`, `DescribeQuery`, `GetQueryResults`, `GenerateQuery`, `GenerateQueryResultsSummary`, `GetEventDataStore`) + +## Exam-Relevant Points + +- CloudTrail Lake can query Config CIs across accounts/regions with compliance history — Config advanced queries cannot do compliance history the same way +- **Prerequisites**: Config recording must be enabled before creating the event data store +- **Limitations are narrow but testable**: no custom CIs, no advanced event selector filtering +- KMS key for org event data stores must be an **existing** key from the **management account** +- Event data store is regional (created in one region) but collects CIs from **all regions** by default +- Retention is determined by **`eventTime`**, not ingestion time +- One-year pricing: 366 default / 3,653 max; Seven-year pricing: 2,557 fixed +- Only **forward-looking** — no backfill of historical CIs +- `eventCategory` = `ConfigurationItem`, `eventType` = `AwsConfigurationItem` +- Valid `configurationItemStatus` values: `OK`, `ResourceDiscovered`, `ResourceNotRecorded`, `ResourceDeleted`, `ResourceDeletedNotRecorded` + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-insightshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-insightshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ca00d4cdef01395c653b0515a9b722cc4b91c060 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-insightshtml.md @@ -0,0 +1,74 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store-insights.html +source: sources/awscloudtrail-latest-userguide-query-event-data-store-insightshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:32 + + + +## Overview + +This page explains how to create CloudTrail Lake event data stores for capturing Insights events. CloudTrail Insights detects unusual API activity by analyzing call rates and error rates against established baselines. Setting up Insights in CloudTrail Lake requires two event data stores: a **destination** (receives Insights events) and a **source** (logs management events and enables Insights analysis). + +## Key Concepts + +- **CloudTrail Insights** identifies unusual API call rate and API error rate activity by comparing against a learned baseline +- **API call rate Insights** are generated only for **write** management APIs +- **API error rate Insights** are generated for both **read** and **write** management APIs +- **Two event data stores required**: a source (management events) and a destination (Insights events) +- After first enabling Insights, it may take **up to 7 days** to begin delivering events (if unusual activity is detected) +- Insights events are generated **per-Region**, matching the Region of the supporting management event +- For organization event data stores, Insights analyzes per-member-account, per-Region +- **Additional charges** apply for Insights ingestion in CloudTrail Lake; charged separately from trail-based Insights +- Once a KMS key is associated with an event data store, it **cannot be removed or changed** +- Organization event data stores require an **existing KMS key** from the management account (cannot create new) +- Up to **50 tags** can be added to an event data store + +## Commands and Syntax + +No CLI commands shown — this is a console walkthrough. Key procedural steps: + +1. **Create destination event data store**: Console → CloudTrail → Lake → Event data stores → Create → Choose "CloudTrail Insights events" on the Choose events page +2. **Create source event data store**: Console → CloudTrail → Lake → Event data stores → Create → Choose "CloudTrail events" → Keep "Management events" selected → Enable Insights and point to destination + +**Pricing options:** +- **One-year extendable**: default 366 days, max 3,653 days (~10 years); storage included first 366 days +- **Seven-year**: default and max 2,557 days (~7 years); storage included at no extra charge + +**Insights types:** +- `ApiCallRateInsight` — analyzes write-only management API call volume +- `ApiErrorRateInsight` — analyzes management API error codes (read + write) + +**Resource-based policy actions supported on event data stores:** +- `cloudtrail:StartQuery`, `CancelQuery`, `ListQueries`, `DescribeQuery`, `GetQueryResults`, `GenerateQuery`, `GenerateQueryResultsSummary`, `GetEventDataStore` + +**Advanced event selector fields:** `readOnly`, `eventName`, `userIdentity.arn`, `sessionCredentialFromConsole`, `eventSource`, `eventType` + +**Advanced event selector operators:** `StartsWith`, `EndsWith`, `NotStartsWith`, `NotEndsWith` (no wildcards) + +## Relationships + +- **CloudTrail Lake** — Insights event data stores are a specialized type within Lake +- **CloudTrail Trails** — Insights can also be enabled on trails; Lake and trail Insights are charged separately +- **AWS KMS** — optional encryption for event data stores +- **Amazon Athena / AWS Glue Data Catalog** — Lake query federation enables SQL queries against event data +- **AWS Lake Formation** — manages permissions for federated event data stores +- **AWS Organizations** — organization event data stores analyze all member accounts; delegated administrators get auto-generated resource-based policies +- **CloudTrail management events** — the raw input that Insights analyzes to detect anomalies + +## Exam-Relevant Points + +- Insights requires **two** event data stores (source + destination) — not one +- API call rate Insights require **write** management events on the source; API error rate Insights require **read or write** +- Up to **7 days** before first Insights events appear after enabling +- Insights events are **Region-specific** — generated in the same Region as the triggering management event +- KMS key association with an event data store is **irreversible** +- Organization Insights event data stores must be created from the **management account** +- Retention: One-year option allows up to **3,653 days** (~10 years); Seven-year option caps at **2,557 days** +- One-year option is recommended for **< 25 TB/month** ingestion; Seven-year for **> 25 TB/month** +- Advanced event selectors **do not support wildcards** — use `StartsWith`/`EndsWith` operators instead +- Resource-based policies on event data stores support cross-account query access + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-integrationhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-integrationhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..0bb39c542fe8cd1754eb2a02e690109e315f1238 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-integrationhtml.md @@ -0,0 +1,45 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store-integration.html +source: sources/awscloudtrail-latest-userguide-query-event-data-store-integrationhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:32 + + + +## Overview +This page describes how to integrate external (non-AWS) event sources into CloudTrail Lake using **channels**. This enables logging and storing user activity data from hybrid environments—SaaS apps, on-premises systems, VMs, or containers—alongside AWS events, without maintaining separate log aggregators. + +## Key Concepts +- **Channels** are the mechanism for bringing external events into CloudTrail Lake; each channel routes events to one or more event data stores +- Destination event data stores must be configured to log `eventCategory="ActivityAuditLog"` events +- **Maximum one channel per source** is allowed +- A **resource policy** on the channel controls who can send events; without one, only the channel owner can call `PutAuditEvents` +- **Two integration types:** + - **Direct** — the partner calls `PutAuditEvents` directly to deliver events to your account's event data store + - **Solution** — an application runs *in your AWS account* and calls `PutAuditEvents` on your behalf +- **Custom integrations** (`Source: Custom`) let you integrate your own non-partner sources + +## Commands and Syntax +- **`PutAuditEvents` API** — the core API call used by both integration types to deliver events +- **`CreateChannel` API** — creates a channel; requires the `Source` parameter set to the partner's source name (e.g., `OktaSystemLogEvents`, `LaunchDarkly`, `Custom`) +- Partner source names (API values): `Clumio`, `CrowdStrike`, `CyberArk`, `GitHub`, `KongGatewayEnterprise`, `LaunchDarkly`, `NetskopeCloudExchange`, `IBMMulticloud`, `MontyCloud`, `OktaSystemLogEvents`, `OneLogin`, `Shoreline`, `Snyk`, `WizAuditLogs`, `CloudStorageSecurityConsole`, `Custom` + +## Relationships +- **CloudTrail Lake** — channels feed into Lake event data stores; this is the storage/query layer +- **Event data stores** — must have `ActivityAuditLog` event category enabled to receive external events +- **Resource policies** — IAM resource-based policies control channel access for external sources +- **CloudTrail Lake queries** — once ingested, external events can be queried using Lake SQL queries +- Related pages: partner integrations, custom integrations, CLI management of integrations, integration event schema + +## Exam-Relevant Points +- CloudTrail Lake can ingest **non-AWS events** — not just AWS API activity +- The distinction between **direct** vs **solution** integrations: direct = partner calls API externally; solution = app runs in your account +- Only **one channel per source** is permitted +- Channels without a resource policy restrict `PutAuditEvents` to the **channel owner only** +- Event data stores must log `eventCategory="ActivityAuditLog"` to receive channel events +- The `Source` parameter in `CreateChannel` uses specific string values (e.g., `OktaSystemLogEvents`, not `Okta`) +- Partners like **Okta, CrowdStrike, GitHub, Snyk, LaunchDarkly** are named integration partners + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-updatehtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-updatehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..fc811457205805f7327d2d3215650f4bde26604e --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-updatehtml.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store-update.html +source: sources/awscloudtrail-latest-userguide-query-event-data-store-updatehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:33 + +## Overview +This page describes how to update an existing CloudTrail Lake event data store's settings using the AWS Management Console, covering general details, federation, resource policies, event type settings, enrichment options, and tags. + +## Key Concepts +- **Event data store** — A CloudTrail Lake construct that stores event data for querying; settings are editable after creation +- **Pricing options** — Two tiers: **One-year extendable retention** (up to 10 years, recommended for <25 TB/month) and **Seven-year retention**; you can switch from seven-year to one-year but **not** the reverse (must stop ingestion and create a new EDS) +- **Retention period** — 7–3,653 days (one-year pricing) or 7–2,557 days (seven-year pricing); decreasing retention **deletes events** with `eventTime` older than the new period +- **Encryption** — Default CloudTrail encryption or customer-managed KMS key; once associated, **KMS key cannot be removed or changed** +- **Lake query federation** — Enables querying EDS data via Amazon Athena by registering metadata in AWS Glue Data Catalog; requires an IAM role with specific permissions +- **Resource-based policies** — Control which principals can perform actions on the EDS; automatically managed for organization EDS with delegated administrators +- **Event enrichment** — Add up to 50 resource tag keys and 50 IAM global condition keys; metadata appears in `eventContext` field; automatically enables expanded event size (up to 1 MB from 256 KB) +- **Region scoping** — EDS can collect events from all regions or only the current region +- **Organization support** — EDS can collect events from all accounts in an AWS Organizations org (management account required) + +## Commands and Syntax +This page covers console-only procedures. Key supported actions for resource-based policies: +- `cloudtrail:StartQuery` +- `cloudtrail:CancelQuery` +- `cloudtrail:ListQueries` +- `cloudtrail:DescribeQuery` +- `cloudtrail:GetQueryResults` +- `cloudtrail:GenerateQuery` +- `cloudtrail:GenerateQueryResultsSummary` +- `cloudtrail:GetEventDataStore` + +For CLI update procedures, see the companion page on updating via AWS CLI. + +## Relationships +- **CloudTrail Lake** — Parent feature; EDS is the core storage unit +- **AWS Glue Data Catalog / Lake Formation / Athena** — Federation integration for SQL querying outside CloudTrail +- **AWS KMS** — Customer-managed encryption for event data stores +- **AWS Organizations** — Enables org-wide event collection and delegated administrator resource policies +- **CloudTrail event types** — Management events, data events, network activity events, and integration events are independently configurable per EDS +- **IAM** — Resource-based policies control cross-account and cross-principal access to EDS + +## Exam-Relevant Points +- Pricing option change is **one-way only**: seven-year → one-year is allowed; one-year → seven-year requires creating a new EDS +- KMS key association is **irreversible** — cannot be removed or changed after assignment +- Reducing retention period **permanently deletes** older events +- Federation uses AWS Glue Data Catalog + Athena; disabling federation does **not** delete CloudTrail Lake data +- Resource-based policies support exactly 8 actions (listed above) +- Organization EDS resource policies are **automatically updated** when delegated admins change +- Event enrichment expands event payload from 256 KB to 1 MB; enrichment tags are **region-scoped** (cross-region resource tags are not populated) +- Expanded event size fields include: `annotation`, `requestID`, `additionalEventData`, `serviceEventDetails`, `userAgent`, `errorCode`, `responseElements`, `requestParameters`, `errorMessage` +- Maximum of 50 resource tag keys and 50 IAM global condition keys can be added for enrichment + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-query-federationhtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-query-federationhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..604c67b101e204303181cd7e67391cb79d7557a0 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-query-federationhtml.md @@ -0,0 +1,63 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-federation.html +source: sources/awscloudtrail-latest-userguide-query-federationhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:33 + + + +## Overview +CloudTrail Lake event data stores can be federated to enable querying via Amazon Athena. Federation registers event data store metadata in the AWS Glue Data Catalog and AWS Lake Formation, allowing SQL queries against CloudTrail data using Athena's query engine. No CloudTrail charges apply for federation itself, but Athena query costs apply. + +## Key Concepts +- **Federation** creates a managed Glue database (`aws:cloudtrail`) and a federated table named after the event data store ID +- **Lake Formation** manages fine-grained access control for the federated resources +- A **federation IAM role** is required — CloudTrail can auto-create one, or you can supply an existing role with the correct permissions +- Federation can be enabled/disabled via console, CLI, or API (`EnableFederation`/`DisableFederation`) +- Disabling federation does **not** delete CloudTrail Lake data — you can still query in CloudTrail Lake +- A federated event data store **cannot be deleted** until federation (and termination protection) are disabled first +- Athena users must have `lakeformation:GetDataAccess` permission (included in `AmazonAthenaFullAccess`) +- Views on federated tables must use a database other than `aws:cloudtrail` (it's managed by CloudTrail) +- For organization event data stores, only a single delegated admin or management account can **enable** federation; any delegated admin or management account can **disable** it + +## Commands and Syntax +**Federation role permissions policy:** +- `cloudtrail:GetEventDataStoreData` on the event data store ARN +- `kms:Decrypt` and `kms:GenerateDataKey` on the KMS key ARN (only if EDS uses KMS encryption) + +**Federation role trust policy:** +- Principal: `lakeformation.amazonaws.com` with `sts:AssumeRole` + +**Enable federation permissions:** +- `cloudtrail:EnableFederation` on the EDS ARN +- `iam:PassRole`, `iam:GetRole` on the federation role ARN +- `glue:CreateDatabase`, `glue:CreateTable`, `glue:PassConnection` on catalog/database/table/connection resources +- `lakeformation:RegisterResource`, `lakeformation:DeregisterResource` on the catalog + +**Disable federation permissions:** +- `cloudtrail:DisableFederation` on the EDS ARN +- `glue:DeleteTable` on catalog/database/table resources +- `lakeformation:DeregisterResource` on the catalog + +## Relationships +- **AWS Glue Data Catalog**: Stores table metadata that Athena uses to locate and read event data +- **AWS Lake Formation**: Controls fine-grained access to federated resources; manages resource registration +- **Amazon Athena**: Query engine used to run SQL against federated event data stores +- **AWS KMS**: Optional encryption layer; federation role needs decrypt permissions if KMS is used +- **CloudTrail Lake**: Source data remains in CloudTrail Lake regardless of federation status +- **Amazon QuickSight**: Can visualize federated data but requires "Use custom SQL" option for dataset creation +- **AWS Organizations**: Special rules govern which accounts can enable/disable federation on org event data stores + +## Exam-Relevant Points +- No CloudTrail charges for federation; Athena query costs apply separately +- Managed database name is `aws:cloudtrail` — you cannot create views in this database +- Must disable federation before deleting an event data store +- Federation role trust policy must allow `lakeformation.amazonaws.com` to assume it +- `lakeformation:GetDataAccess` is required for Athena users querying federated data +- Only one delegated admin or the management account can enable federation on org event data stores +- KMS permissions (`kms:Decrypt`, `kms:GenerateDataKey`) only needed if EDS uses KMS encryption +- Disabling federation does not delete any CloudTrail Lake data + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-query-limitationshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-query-limitationshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..f7cff9e3b25c045cb8f03761dccc37a482736d02 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-query-limitationshtml.md @@ -0,0 +1,66 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-limitations.html +source: sources/awscloudtrail-latest-userguide-query-limitationshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:33 + + + +## Overview + +This page documents the SQL query constraints and capabilities for CloudTrail Lake, which uses Trino-compatible SQL for querying event data stores. Queries are read-only (`SELECT` only) and support multi-table operations across event data stores. + +## Key Concepts + +- CloudTrail Lake queries are **read-only** — only `SELECT` statements are allowed; no mutations +- The SQL dialect is based on **Trino SQL** — all valid Trino `SELECT` statements, functions, and operators are supported +- The `FROM` clause references an **event data store ID** (the ID portion of the EDS ARN), not a traditional table name +- Multi-table queries allow joining or combining results across **multiple event data stores** +- `UNION` removes duplicates; `UNION ALL` keeps all rows including duplicates + +## Commands and Syntax + +**Basic SELECT syntax:** +```sql +SELECT [ DISTINCT ] columns [ Aggregate ] +[ FROM table event_data_store_ID ] +[ WHERE columns [ Conditions ] ] +[ GROUP BY columns [ DISTINCT | Aggregate ] ] +[ HAVING columns [ Aggregate | Conditions ] ] +[ ORDER BY columns [ Aggregate | ASC | DESC | NULLS | FIRST | LAST ] ] +[ LIMIT [ INT ] ] +``` + +**Condition operators:** `AND`, `OR`, `IN`, `NOT`, `IS (NOT) NULL`, `LIKE`, `BETWEEN`, `GREATEST`, `LEAST`, `IS DISTINCT FROM`, `IS NOT DISTINCT FROM`, `<`, `>`, `<=`, `>=`, `<>`, `!=` + +**Join operators:** `UNION`, `UNION ALL`, `EXCEPT`, `INTERSECT`, `LEFT JOIN`, `RIGHT JOIN`, `INNER JOIN` + +**Running a query via CLI:** +```bash +aws cloudtrail start-query --query-statement "Select eventId, eventName from EDS_ID ORDER BY eventId LIMIT 10;" +``` + +**Checking query status:** `aws cloudtrail describe-query --query-id ` + +**Getting results:** `aws cloudtrail get-query-results --query-id ` + +## Relationships + +- **CloudTrail Lake** — this is a sub-feature defining the query language constraints +- **Event data stores** — the queryable tables; each referenced by its EDS ID +- **Trino** — the upstream SQL engine whose functions and operators CloudTrail Lake supports +- **CloudTrail console** — provides sample queries to help get started +- Relates to query optimization guidance (separate topic) + +## Exam-Relevant Points + +- CloudTrail Lake is **read-only** — `SELECT` only, no data mutation +- The `FROM` clause uses the **event data store ID** (not ARN, not name) +- SQL is **Trino-compatible** — knowing Trino function capabilities applies here +- Multi-table queries support `JOIN` and set operations (`UNION`, `EXCEPT`, `INTERSECT`) across different event data stores +- Query workflow is async: `start-query` → `describe-query` → `get-query-results` +- `UNION` deduplicates; `UNION ALL` does not — standard SQL semantics apply + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-query-supported-event-schemashtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-query-supported-event-schemashtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1cefd5d592f530062d9cb761c7cee40ca33ef5a7 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-query-supported-event-schemashtml.md @@ -0,0 +1,74 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-supported-event-schemas.html +source: sources/awscloudtrail-latest-userguide-query-supported-event-schemashtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:34 + + + +## Overview + +This page documents the SQL schemas used when querying different types of event data stores in AWS CloudTrail Lake. Each event data store type (CloudTrail events, Insights events, AWS Config configuration items, AWS Audit Manager evidence, and non-AWS events) has a distinct schema with specific fields and data types that must be used in CloudTrail Lake SQL queries. + +## Key Concepts + +- **Five distinct schema types** exist, one for each event data store category: CloudTrail events, Insights events, Config configuration items, Audit Manager evidence, and non-AWS (partner/integration) events. +- **Common fields across all schemas**: `eventversion`, `eventcategory`, `eventtype`, `eventid`, `eventtime` (timestamp), `awsregion`, `recipientaccountid`, and `addendum`. +- **`eventcategory` and `eventtype` distinguish record types**: + - CloudTrail events: standard management/data/network activity events + - Insights: `eventcategory=Insight`, `eventtype=AwsCloudTrailInsight` + - Config items: `eventcategory=ConfigurationItem`, `eventtype=AwsConfigurationItem` + - Audit Manager: `eventcategory=Evidence`, `eventtype=AwsAuditManagerEvidence` + - Non-AWS: `eventcategory=ActivityAuditLog`, `eventtype=ActivityLog` +- **Complex nested types** are used extensively — `struct`, `map`, and `array>` for fields like `useridentity`, `resources`, `tlsdetails`, and `eventdata`. +- **`useridentity`** is a deeply nested struct including session context, web identity federation data, on-behalf-of info, and in-scope-of details (CloudTrail events schema only). +- **Insights schema deprecation notice**: The `insightvalue`, `insightaverage`, `baselinevalue`, and `baselineaverage` fields within `insightContext.attributions` begin deprecation on **June 23, 2025** — replaced by nested `insight` and `baseline` structs with `value` and `average` fields. +- **Non-AWS events** include a `metadata` struct with `ingestiontime` and `channelarn`, reflecting their origin from CloudTrail Lake integration channels. +- **`eventjson`** field in the CloudTrail event schema contains the raw JSON of the entire event record; `eventjsonchecksum` provides its integrity hash. + +## Commands and Syntax + +No CLI commands on this page. The schemas define the SQL column names and types for use in CloudTrail Lake queries, e.g.: + +```sql +SELECT eventtime, useridentity.arn, eventname, eventsource +FROM +WHERE eventcategory = 'Management' + +-- Querying nested struct fields: +SELECT useridentity.sessioncontext.sessionissuer.arn +FROM + +-- Querying Insights events: +SELECT insighteventname, insightContext.baselineaverage, insightContext.insightaverage +FROM +WHERE eventcategory = 'Insight' + +-- Querying Config items: +SELECT eventdata.resourcetype, eventdata.resourceid, eventdata.configuration +FROM +WHERE eventcategory = 'ConfigurationItem' +``` + +## Relationships + +- **CloudTrail Lake** — these schemas are the foundation for all Lake SQL queries +- **CloudTrail event records** — the CloudTrail event schema maps directly to the CloudTrail record contents documentation +- **CloudTrail Insights** — the Insights schema maps to Insights-specific record fields for anomaly detection results +- **AWS Config** — Config configuration items can be ingested into CloudTrail Lake event data stores for unified querying +- **AWS Audit Manager** — evidence records can be aggregated in CloudTrail Lake via the evidence finder feature +- **CloudTrail Lake integrations** — non-AWS events come from partner integrations via channels (referenced by `metadata.channelarn`) + +## Exam-Relevant Points + +- Know the **`eventcategory`/`eventtype` pairs** for each data store type — these are the discriminators when querying mixed data. +- The CloudTrail event schema's **`readonly` (boolean)** and **`managementevent` (boolean)** fields are key for filtering read-only vs. mutating calls and management vs. data events. +- **`resources`** is an `array` — each element has `accountid`, `type`, `arn`, and `arnprefix`, enabling cross-account resource queries. +- **`recipientaccountid`** appears in all schemas — critical for multi-account/organization queries. +- **Non-AWS events** use a different `addendum` structure (`struct` with named fields) compared to other schemas (`map`). +- The **Insights `insightContext`** struct contains both baseline and insight averages/durations — understand that the old flat fields are being deprecated in favor of nested `insight`/`baseline` sub-structs. +- **`tlsdetails`** in the CloudTrail event schema captures TLS version, cipher suite, and client-provided host header — relevant for security auditing queries. + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-security_iam_id-based-policy-exampleshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-security_iam_id-based-policy-exampleshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2161cff56c7dcacd910d7c6c155671093db1ad8f --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-security_iam_id-based-policy-exampleshtml.md @@ -0,0 +1,66 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/security_iam_id-based-policy-examples.html +source: sources/awscloudtrail-latest-userguide-security_iam_id-based-policy-exampleshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:34 + +## Overview +This page covers identity-based IAM policy examples for AWS CloudTrail, demonstrating how to grant or restrict permissions for CloudTrail resources (trails, event data stores, channels) using JSON policy documents. It includes best practices, resource-level permissions, tag-based conditions, and managed policy descriptions. + +## Key Concepts +- **Identity-based policies** control who can create, access, or delete CloudTrail resources +- **Least-privilege principle**: grant only permissions required for a task +- **CloudTrail has no service-specific context keys** for use in `Condition` elements +- **Two AWS managed policies**: + - `AWSCloudTrail_FullAccess` — full access to trails, event data stores, channels; also manages S3 buckets, CloudWatch Logs groups, SNS topics (but cannot delete them) + - `AWSCloudTrail_ReadOnlyAccess` — view-only access to console, events, trails, event data stores, channels +- `AWSCloudTrail_FullAccess` should **only be given to account administrators** — it can disable/reconfigure auditing +- CloudTrail admin permissions are **separate from** permissions CloudTrail needs to deliver logs to S3 or send SNS notifications +- Wildcard patterns work in `Action` elements (e.g., `cloudtrail:*Logging`) +- Tag-based conditions can enforce governance on event data stores (e.g., require a `stage` tag, protect `prod` from deletion) + +## Commands and Syntax +- **Trail ARN format**: `arn:aws:cloudtrail:::trail/` +- **Allow specific actions on a specific trail**: +```json +{ + "Effect": "Allow", + "Action": ["cloudtrail:StartLogging", "cloudtrail:StopLogging", "cloudtrail:GetTrail", "cloudtrail:GetTrailStatus", "cloudtrail:GetEventSelectors"], + "Resource": ["arn:aws:cloudtrail:us-east-2:123456789012:trail/My-First-Trail"] +} +``` +- **Deny all CloudTrail actions except on a specific trail** (uses `NotResource`): +```json +{"Effect": "Deny", "Action": ["cloudtrail:*"], "NotResource": ["arn:aws:cloudtrail:us-east-2:123456789012:trail/My-First-Trail"]} +``` +- **Read-only custom policy** (equivalent to managed ReadOnly): +```json +{"Action": ["cloudtrail:Get*", "cloudtrail:Describe*", "cloudtrail:List*", "cloudtrail:LookupEvents"], "Resource": "*"} +``` +- **Tag-based deny for CreateEventDataStore** — require `stage` tag with allowed values (`alpha`, `beta`, `gamma`, `prod`) using `Null` and `ForAnyValue:StringNotEquals` conditions +- **Tag-based deny for DeleteEventDataStore** — protect `prod`-tagged stores using `aws:ResourceTag/stage` condition +- **CloudWatch Logs integration** requires granting IAM role-creation permissions (`iam:CreateRole`, `iam:PutRolePolicy`, `iam:AttachRolePolicy`) to administrators +- **Full access policy** also requires permissions on: SNS (`sns:*` on `aws-cloudtrail-logs*`), S3 (bucket creation/policy), CloudWatch Logs (log group creation), IAM (`iam:PassRole` with condition `iam:PassedToService: cloudtrail.amazonaws.com`), KMS, Lambda, DynamoDB (list operations) + +## Relationships +- **IAM** — all CloudTrail access control is managed through IAM identity-based policies +- **S3** — CloudTrail delivers logs to S3; separate bucket policies required (not covered by admin IAM policies) +- **CloudWatch Logs** — CloudTrail can deliver events to CloudWatch Logs; requires a dedicated IAM role +- **SNS** — trail notifications; full access policy includes SNS topic management for `aws-cloudtrail-logs*` +- **KMS** — full access includes key creation for CloudTrail log encryption +- **AWS Config** — CloudTrail console can link to Config resource timelines; requires separate read-only Config permissions +- **IAM Access Analyzer** — recommended for validating CloudTrail policies + +## Exam-Relevant Points +- `AWSCloudTrail_FullAccess` should be **restricted to account administrators only** — it can disable auditing +- CloudTrail admin permissions ≠ log delivery permissions (S3 bucket policy is separate) +- `NotResource` can be used to deny actions on all trails *except* a named one +- `iam:PassRole` with condition `iam:PassedToService: cloudtrail.amazonaws.com` is required in full-access policies +- Tag-based conditions use `aws:RequestTag` for creation and `aws:ResourceTag` for existing resources +- CloudTrail **does not have service-specific context keys** for policy conditions +- Read-only access uses wildcard actions: `Get*`, `Describe*`, `List*`, `LookupEvents` +- CloudWatch Logs integration requires the admin to create/configure the IAM role that CloudTrail assumes + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-security_iam_resource-based-policy-exampleshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-security_iam_resource-based-policy-exampleshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..46405de835cad21e4a9ac8e1d1067f718998f1d5 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-security_iam_resource-based-policy-exampleshtml.md @@ -0,0 +1,78 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/security_iam_resource-based-policy-examples.html +source: sources/awscloudtrail-latest-userguide-security_iam_resource-based-policy-exampleshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:35 + + + +## Overview + +This page documents resource-based policy examples for AWS CloudTrail Lake resources — specifically channels, event data stores, and dashboards. These policies control which principals can perform actions on CloudTrail Lake resources, enabling cross-account access, external event source integrations, and automated dashboard refresh scheduling. + +## Key Concepts + +- **Three resource types support resource-based policies**: channels (for Lake integrations), event data stores (for cross-account queries), and dashboards (for automated refresh) +- **Channel policies** control who can call `PutAuditEvents` to deliver events from external (non-AWS) sources to an event data store +- **Two integration types for channels**: direct integrations (partner provides account IDs and external ID) and solution integrations (you specify at least one AWS account ID) +- **Channel policy constraints**: max 20 statements, max 50 principals per statement, only one action allowed (`cloudtrail-data:PutAuditEvents`), resource ARN must match the channel ARN +- **Channel owner** can always call `PutAuditEvents` unless the policy explicitly denies access +- **External ID** in channel policies mitigates the confused deputy problem — partner provides a unique string used as a condition +- **Event data store policies** enable cross-account query access and allow CloudTrail to run queries for dashboard widgets +- **Organization event data stores** get a default resource-based policy automatically, derived from delegated administrator permissions in AWS Organizations, and auto-updated on org changes +- **Dashboard policies** allow CloudTrail service (`cloudtrail.amazonaws.com`) to call `StartDashboardRefresh` on a schedule you define + +## Commands and Syntax + +**Attach a resource-based policy via CLI:** +```bash +aws cloudtrail put-resource-policy ... +``` + +**Supported actions for event data store policies:** +- `cloudtrail:StartQuery` +- `cloudtrail:CancelQuery` +- `cloudtrail:ListQueries` +- `cloudtrail:DescribeQuery` +- `cloudtrail:GetQueryResults` +- `cloudtrail:GenerateQuery` +- `cloudtrail:GenerateQueryResultsSummary` +- `cloudtrail:GetEventDataStore` + +**Dashboard refresh policy — principal must be the service, action is `cloudtrail:StartDashboardRefresh`, condition scopes to specific dashboard ARN and account:** +```json +{ + "Principal": { "Service": "cloudtrail.amazonaws.com" }, + "Action": ["cloudtrail:StartDashboardRefresh"], + "Condition": { + "StringEquals": { + "AWS:SourceArn": "arn:aws:cloudtrail:REGION:ACCOUNT:dashboard/NAME", + "AWS:SourceAccount": "ACCOUNT" + } + } +} +``` + +## Relationships + +- **CloudTrail Lake integrations** — channel policies are required when integrating external event sources with Lake +- **Cross-account access** — event data store policies are the mechanism for sharing query access across AWS accounts +- **CloudTrail Lake dashboards** — both event data store and dashboard resource-based policies are needed for automated refresh (EDS policy allows `StartQuery`, dashboard policy allows `StartDashboardRefresh`) +- **AWS Organizations** — organization event data stores automatically get resource-based policies based on delegated administrator configuration +- **Confused deputy prevention** — uses the same external ID pattern as IAM cross-account role assumption +- **IAM policy evaluation** — these resource-based policies work alongside identity-based policies in the standard IAM evaluation logic + +## Exam-Relevant Points + +- Channel resource-based policies only allow **one action**: `cloudtrail-data:PutAuditEvents` (note the `cloudtrail-data` service prefix, not `cloudtrail`) +- Channel policies support max **20 statements** and **50 principals per statement** +- For dashboard auto-refresh, **two** resource-based policies are needed: one on the **event data store** (allowing `StartQuery`) and one on the **dashboard** (allowing `StartDashboardRefresh`) +- The principal for dashboard/refresh policies must be `cloudtrail.amazonaws.com` (the service), not an IAM principal +- Organization event data store resource-based policies are **automatically managed** by CloudTrail based on Organizations delegated administrator settings +- Cross-account event data store access requires at minimum: `StartQuery`, `GetEventDataStore`, and `GetQueryResults` +- External IDs on channel policies prevent the **confused deputy** attack — a key security pattern tested across AWS services +- `put-resource-policy` CLI command is used to attach resource-based policies to CloudTrail Lake resources + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-send-cloudtrail-events-to-cloudwatch-logshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-send-cloudtrail-events-to-cloudwatch-logshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ddb56ee90080fcd9f5a215e002b31db3e330b2e4 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-send-cloudtrail-events-to-cloudwatch-logshtml.md @@ -0,0 +1,110 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/send-cloudtrail-events-to-cloudwatch-logs.html +source: sources/awscloudtrail-latest-userguide-send-cloudtrail-events-to-cloudwatch-logshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:35 + + + +## Overview + +This page explains how to configure AWS CloudTrail to forward trail events (management, data, and Insights events) to Amazon CloudWatch Logs log groups for monitoring. It covers both console and CLI configuration methods, including creating log groups, IAM roles, and policy documents required for the integration. + +## Key Concepts + +- CloudTrail sends only events matching your trail settings to the CloudWatch Logs log group (e.g., if configured for data events only, only data events are forwarded) +- CloudTrail supports sending **data events**, **Insights events**, and **management events** to CloudWatch Logs +- Events are typically delivered to the log group within **~5 minutes** of an API call (not guaranteed) +- The **CloudWatch Logs log group must exist in the same account** as the trail — you cannot use a log group in another account +- A **multi-Region trail** sends log files from all enabled Regions to the specified log group +- The default IAM role is `CloudTrail_CloudWatchLogs_Role` +- **Organization trails**: only the **management account** can configure a CloudWatch Logs log group via the console; **delegated administrators** must use the AWS CLI or `CreateTrail`/`UpdateTrail` API +- **Max event size**: CloudWatch Logs and EventBridge allow a maximum of **256 KB** per event; CloudTrail does not send larger events to these services +- Starting with CloudTrail **event version 1.05**, events are capped at 256 KB + +## Commands and Syntax + +**Create a log group:** +```bash +aws logs create-log-group --log-group-name CloudTrail/logs +``` + +**Retrieve log group ARN:** +```bash +aws logs describe-log-groups +``` + +**Create IAM role (assume role policy):** +```json +{ + "Version": "2012-10-17", + "Statement": [{ + "Effect": "Allow", + "Principal": { "Service": "cloudtrail.amazonaws.com" }, + "Action": "sts:AssumeRole" + }] +} +``` +```bash +aws iam create-role --role-name role_name --assume-role-policy-document file://assume_role_policy_document.json +``` + +**Role policy document (grants `logs:CreateLogStream` and `logs:PutLogEvents`):** +```json +{ + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "AWSCloudTrailCreateLogStream2014110", + "Effect": "Allow", + "Action": ["logs:CreateLogStream"], + "Resource": ["arn:aws:logs:us-east-1:111111111111:log-group:log_group_name:log-stream:111111111111_CloudTrail_us-east-1*"] + }, + { + "Sid": "AWSCloudTrailPutLogEvents20141101", + "Effect": "Allow", + "Action": ["logs:PutLogEvents"], + "Resource": ["arn:aws:logs:us-east-1:111111111111:log-group:log_group_name:log-stream:111111111111_CloudTrail_us-east-1*"] + } + ] +} +``` + +**Attach the policy to the role:** +```bash +aws iam put-role-policy --role-name role_name --policy-name cloudtrail-policy --policy-document file://role-policy-document.json +``` + +**Update trail to send to CloudWatch Logs:** +```bash +aws cloudtrail update-trail --name trail_name --cloud-watch-logs-log-group-arn log_group_arn --cloud-watch-logs-role-arn role_arn +``` + +**Organization trail policy** adds an extra resource pattern for the org ID: +``` +arn:aws:logs:REGION:ACCOUNT:log-group:GROUP:log-stream:o-orgid_* +``` + +## Relationships + +- **CloudTrail → CloudWatch Logs**: CloudTrail acts as producer; CloudWatch Logs log group is the delivery endpoint +- **IAM**: An IAM role with `sts:AssumeRole` trust policy for `cloudtrail.amazonaws.com` plus `logs:CreateLogStream` and `logs:PutLogEvents` permissions is required +- **CloudWatch Alarms/Metrics Filters**: Once events reach CloudWatch Logs, you can create metric filters and alarms for real-time monitoring +- **EventBridge**: Shares the same 256 KB event size limitation as CloudWatch Logs +- **AWS Organizations**: Organization trails require modified policies with org-specific log stream resource ARNs +- **S3 and SNS**: Trail delivery to S3/SNS can target cross-account resources, but CloudWatch Logs log groups must be in the current account + +## Exam-Relevant Points + +- CloudTrail delivers events to CloudWatch Logs in approximately **5 minutes** (not real-time, not guaranteed) +- The IAM role needs exactly two permissions: `logs:CreateLogStream` and `logs:PutLogEvents` +- The trust policy principal is `cloudtrail.amazonaws.com` +- **CloudWatch Logs log group must be in the same account** — unlike S3 buckets and SNS topics which can be cross-account +- Organization trail CloudWatch Logs configuration via **console is management-account only**; delegated admins must use CLI/API +- **256 KB maximum event size** — events exceeding this are not sent to CloudWatch Logs or EventBridge +- The `eventTime` field shows when CloudTrail logged the event; the CloudWatch **Time (UTC)** column shows delivery time — these differ +- Log stream naming convention: `{AccountID}_CloudTrail_{Region}*` + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-events-clihtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-events-clihtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5127cc3e5158de1732f558951a6204aa444cb97e --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-events-clihtml.md @@ -0,0 +1,66 @@ +# Overview + +**Date:** 2026-03-12 +**Time:** 00:36 + + + +## Overview + +This page documents how to use the `aws cloudtrail lookup-events` CLI command to query CloudTrail management events from the last 90 days in the current AWS Region. It covers filtering by attributes, time ranges, pagination, and JSON file-based input. + +## Key Concepts + +- **90-day retention**: `lookup-events` only accesses management events from the last 90 days; older events require CloudTrail Lake or S3 log archives. +- **Region-scoped**: Events are shown for the Region where they occurred; you must query each Region separately. +- **Rate limit**: Lookup requests are limited to **2 per second, per account, per Region**. Exceeding this causes throttling errors. +- **Management events only**: This command looks up management events (control plane operations), not data events or Insights events. +- **Single attribute filter**: Only one `AttributeKey`/`AttributeValue` pair can be specified per `lookup-events` call. +- **Max results per page**: 1–50 events per call (use `--max-items`). +- **CLI commands are case-sensitive**. + +## Commands and Syntax + +```bash +# Basic lookup (10 most recent events) +aws cloudtrail lookup-events --max-items 10 + +# Time range filter (UTC timestamps) +aws cloudtrail lookup-events --start-time 2023-11-01 --end-time 2023-12-12 + +# Filter by attribute +aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=RunInstances +aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventSource,AttributeValue=iam.amazonaws.com +aws cloudtrail lookup-events --lookup-attributes AttributeKey=Username,AttributeValue=root +aws cloudtrail lookup-events --lookup-attributes AttributeKey=ReadOnly,AttributeValue=false +aws cloudtrail lookup-events --lookup-attributes AttributeKey=ResourceType,AttributeValue=AWS::S3::Bucket + +# Pagination +aws cloudtrail lookup-events --lookup-attributes AttributeKey=Username,AttributeValue=root --next-token= + +# JSON file input +aws cloudtrail lookup-events --generate-cli-skeleton > LookupEvents.txt +aws cloudtrail lookup-events --cli-input-json file://LookupEvents.txt +``` + +**Valid AttributeKey values**: `AccessKeyId`, `EventId`, `EventName`, `EventSource`, `ReadOnly`, `ResourceName`, `ResourceType`, `Username` + +## Relationships + +- **CloudTrail trails/Lake**: `lookup-events` is for quick ad-hoc queries; for longer retention or advanced queries, use CloudTrail Lake event data stores or S3-stored trail logs. +- **CloudWatch Logs**: CloudTrail can stream events to CloudWatch Logs for real-time alerting, complementing CLI lookups. +- **IAM**: Username and AccessKeyId lookups tie directly to IAM identity investigation. +- **Event record contents**: Output references the CloudTrail record format documented in the record contents reference. + +## Exam-Relevant Points + +- `lookup-events` is limited to the **last 90 days** and **management events only**. +- Rate limit: **2 requests/second per account per Region**. +- Only **one** lookup attribute can be specified per command invocation. +- `--max-items` accepts values **1 through 50**. +- Events are **Region-specific** — you must query each Region separately. +- `ReadOnly=false` filters to **write** events (excludes Describe*, Get*, List* calls). +- `AttributeValue` max length is **2000 characters**; underscores, spaces, commas, and newlines each count as **two** characters. +- Pagination requires repeating the **same parameters** with the `--next-token` value from the previous response. +- Default start time is the earliest date within the 90-day window; default end time is the most recent event. + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-events-consolehtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-events-consolehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..73f95839becfd38ede49b421fd1121783f35b112 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-events-consolehtml.md @@ -0,0 +1,56 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html +source: sources/awscloudtrail-latest-userguide-view-cloudtrail-events-consolehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:36 + + + +## Overview + +This page explains how to use the CloudTrail console's **Event history** feature to view, filter, compare, and download the last 90 days of management events in an AWS Region. It also covers integration with AWS Config for viewing resource timelines. + +## Key Concepts + +- **Event history** shows only **management events** — not data events (use an event data store or trail for those) +- Events are retained for **90 days** only; cannot be manually deleted +- Default filter excludes read-only events (**Read only = false**) +- You can apply **one attribute filter** plus **one time range filter** at a time — not multiple attribute filters +- Up to **5 events** can be selected and compared side-by-side +- Downloads support **CSV or JSON** format, capped at **200,000 events per file** +- CSV injection warning: always disable links/macros when opening downloaded event history files + +## Commands and Syntax + +No CLI commands on this page — it covers console-only procedures: + +1. **View events**: CloudTrail console → Event history +2. **Filter by attribute**: Choose from Lookup attributes dropdown (Event name, Event source, Resource type, User name, AWS access key, Event ID, Read only, Resource name) +3. **Filter by time range**: Relative (30min, 1h, 12h, 1d, custom) or Absolute (specific start/end) +4. **Compare events**: Select up to 5 checkboxes → Compare event details table +5. **Download**: Download events → Choose CSV or JSON +6. **Customize display**: Gear icon → Page size (10/25/50), wrap lines, striped rows, UTC vs local time, visible columns + +**Available filter attributes**: AWS access key, Event ID, Event name, Event source, Read only, Resource name, Resource type, Time range, User name + +## Relationships + +- **Event data stores / CloudTrail Lake**: Required for events beyond 90 days or for data events +- **Trails**: Alternative for ongoing record of activity past 90 days +- **AWS Config**: Resource timeline integration — clickable icon in "Resources referenced" pane links to Config console; requires Config to be enabled and recording the resource type +- **Per-service CloudTrail documentation**: Each AWS service documents its own CloudTrail event specifics + +## Exam-Relevant Points + +- Event history is **90 days only**, **management events only**, **per-Region** +- You **cannot delete events** from Event history +- Default filter is **Read only = false** (shows only write events) +- Only **one attribute filter** can be applied at a time (plus time range) +- For data events or retention beyond 90 days → create a **trail** or **event data store** +- Download limit is **200,000 events** per file +- AWS Config integration requires Config to be **enabled and recording** the relevant resource type +- "Link not available" in Config column can mean: unsupported resource type, cross-account resource, resource deleted immediately, or owned by another AWS service + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-eventshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-eventshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..2c01b00febdd6dfa9f9075227afd8ba493e6281e --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-eventshtml.md @@ -0,0 +1,55 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events.html +source: sources/awscloudtrail-latest-userguide-view-cloudtrail-eventshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:36 + + + +## Overview + +CloudTrail event history provides a free, automatic, immutable record of the past 90 days of **management events** in each AWS Region. It is enabled by default for every AWS account and can be viewed, searched, and downloaded via the console, CLI (`lookup-events`), or `LookupEvents` API. Event history is independent of any trails or event data stores you create. + +## Key Concepts + +- **Enabled by default** — no setup required; every AWS account gets event history automatically at no charge. +- **90-day retention** — only the most recent 90 days of management events are available; older events require a trail or event data store. +- **Region-scoped** — event history records and returns events per-Region, not globally. +- **Management events only** — event history does **not** include data events, Insights events, or network activity events. +- **Immutable** — the record cannot be altered after capture. +- **Independent of trails/event data stores** — changes to trails or event data stores do not affect what appears in event history. +- **Download limit** — max 200,000 events per downloaded file; console offers additional file downloads if the limit is reached. +- **Cannot exclude KMS or RDS Data API events** — exclusion settings on trails/event data stores do not apply to event history. + +## Commands and Syntax + +```bash +# Look up events via CLI +aws cloudtrail lookup-events + +# API equivalent +LookupEvents # (via SDK or direct API call) +``` + +- Console path: **CloudTrail → Event history** — supports column customization, side-by-side event comparison, and configurable page size. + +## Relationships + +- **CloudTrail Lake** — overcomes event history limitations: supports multi-attribute queries, cross-Region, cross-account (Organizations), and additional event types (data events, Insights, Config items, Audit Manager evidence, non-AWS events). +- **Trails** — provide ongoing, durable storage of events beyond 90 days (to S3). +- **Event data stores** — alternative to trails for long-term retention with SQL-based querying in CloudTrail Lake. +- **AWS Organizations** — event history has no org-level aggregation; use organization trails or organization event data stores instead. + +## Exam-Relevant Points + +- Event history is **free, automatic, and enabled by default** — 90 days, management events only, per-Region. +- Single-attribute filter + time range is the **only** filtering available in event history searches (single account, single Region). +- To query across **multiple Regions, accounts, or event types**, you must use **CloudTrail Lake** (event data store), not event history. +- You **cannot** exclude AWS KMS or RDS Data API events from event history. +- Event history is **immutable** and **separate** from trails and event data stores. +- Download cap: **200,000 events** per file from the console. +- New events added by AWS services will only have a full 90-day record **90 days after** the service begins emitting them. + diff --git a/entries/2026/03/12/awscloudtrail-latest-userguide-view-insights-eventshtml.md b/entries/2026/03/12/awscloudtrail-latest-userguide-view-insights-eventshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..09511a16f630d8320a326af681cd8562aee7c977 --- /dev/null +++ b/entries/2026/03/12/awscloudtrail-latest-userguide-view-insights-eventshtml.md @@ -0,0 +1,44 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-insights-events.html +source: sources/awscloudtrail-latest-userguide-view-insights-eventshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:36 + + + +## Overview +This page describes how to view CloudTrail Insights events for trails, covering both console and CLI/API methods for accessing the last 90 days of Insights event data. + +## Key Concepts +- **Insights events for trails** have a 90-day retention window for lookup/viewing +- Two distinct access paths depending on event type: + - **Management events**: use `lookup-events` CLI command or `LookupEvents` API + - **Data events**: use `list-insights-data` CLI command or `ListInsightsData` API +- Insights must be explicitly enabled on a trail before events appear +- **API call rate** Insights require the trail to log `write` management or data events +- **API error rate** Insights require the trail to log `read` or `write` management or data events + +## Commands and Syntax +```bash +# For trails logging management events +aws cloudtrail lookup-events # retrieves Insights events + +# For trails logging data events +aws cloudtrail list-insights-data # retrieves Insights events +``` + +## Relationships +- **Insights dashboard for event data stores** — parallel feature for CloudTrail Lake (separate viewing mechanism) +- **Enabling Insights** — prerequisite; can be done via console or CLI +- **CloudTrail record contents** — defines the schema/fields of Insights event records for trails +- **Management vs. data events** — determines which CLI command/API to use for retrieval + +## Exam-Relevant Points +- The 90-day retention limit for Insights event lookups on trails is a fixed constraint +- Different APIs are used for management event Insights (`LookupEvents`) vs. data event Insights (`ListInsightsData`) — know which to use +- API call rate Insights require **write** events; API error rate Insights require **read or write** events — this asymmetry is testable +- Insights events won't appear unless Insights is explicitly enabled on the trail first + diff --git a/entries/2026/03/12/awscloudtraildata-latest-APIReference-Welcomehtml.md b/entries/2026/03/12/awscloudtraildata-latest-APIReference-Welcomehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..6c5e410bcd22d98959253bc8b3c2362e73ab5d06 --- /dev/null +++ b/entries/2026/03/12/awscloudtraildata-latest-APIReference-Welcomehtml.md @@ -0,0 +1,36 @@ +--- +source_url: https://docs.aws.amazon.com/awscloudtraildata/latest/APIReference/Welcome.html +source: sources/awscloudtraildata-latest-APIReference-Welcomehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:36 + + + +## Overview +The CloudTrail Data Service API allows ingestion of custom events into CloudTrail from hybrid environments (on-premises, SaaS, VMs, containers) via the `PutAuditEvents` API, enabling centralized logging and analysis through CloudTrail Lake. + +## Key Concepts +- **CloudTrail Data Service** — a separate API surface (`cloudtrail-data`) for *ingesting* events, distinct from the main CloudTrail control-plane API +- Events can originate from **any source**: on-premises apps, SaaS, VMs, containers, cloud workloads +- Eliminates the need for **multiple log aggregators** by centralizing into CloudTrail +- Ingested events are queryable via **CloudTrail Lake** (SQL-based search and analysis) +- Core operation: **`PutAuditEvents`** — the entry point for pushing external activity data into CloudTrail + +## Commands and Syntax +- **`PutAuditEvents`** — the primary (and essentially only) API action; sends application activity records into a CloudTrail Lake event data store configured for integration events + +## Relationships +- **CloudTrail Lake** — the query/analysis layer that consumes data ingested via this API +- **CloudTrail Event Data Stores** — ingested events land in event data stores configured to receive integration/partner events +- **CloudTrail Partner Integrations** — partners use this same API to send events on behalf of customers +- **Hybrid/multi-cloud observability** — this service bridges non-AWS event sources into the AWS audit ecosystem + +## Exam-Relevant Points +- `PutAuditEvents` is the **only way** to ingest non-AWS events into CloudTrail +- Ingested events go to **CloudTrail Lake**, not to standard trails or S3 delivery +- This is a **separate service endpoint** (`cloudtrail-data`) from the main CloudTrail API +- Use case: **unified audit logging** across hybrid environments without third-party aggregators + diff --git a/entries/2026/03/12/awsconsolehelpdocs-latest-gsg-select-regionhtml.md b/entries/2026/03/12/awsconsolehelpdocs-latest-gsg-select-regionhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..869367c5d2c5d79de0897894353bb31d1df029ec --- /dev/null +++ b/entries/2026/03/12/awsconsolehelpdocs-latest-gsg-select-regionhtml.md @@ -0,0 +1,37 @@ +--- +source_url: https://docs.aws.amazon.com/awsconsolehelpdocs/latest/gsg/select-region.html +source: sources/awsconsolehelpdocs-latest-gsg-select-regionhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:37 + + + +## Overview +This page covers how to choose an AWS Region for managing resources, explaining that Regions are geographically grouped sets of AWS resources and that Region selection affects resource visibility and management in the AWS Management Console. + +## Key Concepts +- **AWS Region**: A set of AWS resources located in the same geographical area +- **Region selection is per-service**: Many (but not all) services require you to choose a Region +- **Some services are Region-independent**: The AWS Management Console itself and AWS IAM do not require Region selection (they are global services) +- **Resources are Region-specific**: Resources like EC2 instances exist only in the Region where they were created +- **Console Region mismatch**: If you can't see resources you created, the console may be displaying a different Region than the one where resources were created + +## Commands and Syntax +No CLI commands on this page. Two procedural sub-topics are referenced: +- Choosing a Region from the navigation bar in the console +- Setting a default Region in the console + +## Relationships +- **IAM**: Listed as a global (Region-independent) service +- **EC2**: Used as an example of a Region-specific service +- **AWS General Reference**: Links to "Managing AWS Regions" for deeper detail on Region management + +## Exam-Relevant Points +- IAM is a **global service** — not tied to a specific Region +- EC2 instances are **Region-specific** — they only appear in the Region where created +- Not all AWS services require Region selection +- If resources appear missing in the console, check the currently selected Region first (common troubleshooting step) + diff --git a/entries/2026/03/12/awssupport-latest-user-logging-using-cloudtrail-for-aws-trusted-advisorhtml.md b/entries/2026/03/12/awssupport-latest-user-logging-using-cloudtrail-for-aws-trusted-advisorhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..68769836106b388cef22b6d2900e1a3061d59141 --- /dev/null +++ b/entries/2026/03/12/awssupport-latest-user-logging-using-cloudtrail-for-aws-trusted-advisorhtml.md @@ -0,0 +1,63 @@ +--- +source_url: https://docs.aws.amazon.com/awssupport/latest/user/logging-using-cloudtrail-for-aws-trusted-advisor.html +source: sources/awssupport-latest-user-logging-using-cloudtrail-for-aws-trusted-advisorhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:37 + + + +## Overview +This page documents how AWS Trusted Advisor console actions are logged via AWS CloudTrail. It covers which Trusted Advisor actions are captured as CloudTrail events, how to set up continuous logging to S3, and provides example log entries for common operations like check refreshes, notification updates, and organization report generation. + +## Key Concepts +- **CloudTrail is enabled by default** on every AWS account — no setup needed for basic event history +- **Trusted Advisor logs a subset** of console actions to CloudTrail (not all actions) +- **Event source** for Trusted Advisor is `trustedadvisor.amazonaws.com` +- **Trails** must be created for persistent logging to S3; without a trail, only recent events are visible in Event History +- **Trails are multi-region by default** when created via the console — they log events from all regions in the partition +- **userIdentity element** reveals whether requests used root credentials, IAM user credentials, temporary role/federated credentials, or were made by another AWS service +- Trusted Advisor API operations (via AWS Support API) are logged separately from console actions + +## Commands and Syntax +No CLI commands are shown. Key logged actions include: + +- **Check management**: `RefreshCheck`, `DescribeChecks`, `ListChecks`, `DescribeCheckItems`, `DescribeCheckRefreshStatuses`, `DescribeCheckSummaries` +- **Resource exclusions**: `ExcludeCheckItems`, `IncludeCheckItems`, `BatchUpdateRecommendationResourceExclusion` +- **Recommendations**: `GetRecommendation`, `ListRecommendations`, `ListRecommendationResources`, `UpdateRecommendationLifecycle` +- **Organization-level**: `GetOrganizationRecommendation`, `ListOrganizationRecommendations`, `ListOrganizationRecommendationResources`, `ListOrganizationRecommendationAccounts`, `UpdateOrganizationRecommendationLifecycle` +- **Reporting**: `GenerateReport`, `DescribeReports`, `CreateExcelReport`, `GetExcelReport` +- **Engagements**: `CreateEngagement`, `GetEngagement`, `UpdateEngagement`, `UpdateEngagementStatus`, `ListEngagements` +- **Account/Org access**: `SetAccountAccess`, `SetOrganizationAccess`, `DescribeAccount`, `DescribeAccountAccess`, `DescribeOrganization` +- **Notifications**: `UpdateNotificationPreferences`, `DescribeNotificationPreferences` + +**Example log entry structure** (RefreshCheck): +```json +{ + "eventSource": "trustedadvisor.amazonaws.com", + "eventName": "RefreshCheck", + "requestParameters": { "checkId": "R365s2Qddf" }, + "responseElements": { "status": { "status": "enqueued", "millisUntilNextRefreshable": 3599993 } } +} +``` + +## Relationships +- **CloudTrail**: Core dependency — Trusted Advisor events are a subset of CloudTrail's event capture +- **AWS Support API**: Trusted Advisor API operations are logged under a separate CloudTrail integration (different from console actions) +- **S3**: Destination for persistent CloudTrail log file delivery +- **SNS**: Can be configured for notifications when new CloudTrail log files are delivered +- **IAM**: userIdentity element ties actions to IAM users, roles, or federated identities +- **AWS Organizations**: Organization-level Trusted Advisor actions (reports, recommendations) appear in logs with org-specific parameters + +## Exam-Relevant Points +- CloudTrail is **automatically enabled** on account creation — no manual setup required for basic event visibility +- Without a trail, you can only view **recent** events in Event History (not persistent) +- Trusted Advisor event source is `trustedadvisor.amazonaws.com` +- Trusted Advisor logs only a **subset** of console actions (not everything) +- Trusted Advisor console actions and Trusted Advisor API operations (Support API) are logged **separately** +- Trail created in console applies to **all AWS Regions** by default +- The `millisUntilNextRefreshable` field in RefreshCheck responses indicates the cooldown before the next refresh is allowed +- Log entries include IP address, user identity, timestamp, and request/response details — useful for security auditing + diff --git a/entries/2026/03/12/awssupport-latest-user-logging-using-cloudtrailhtml.md b/entries/2026/03/12/awssupport-latest-user-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5bde8a62e68919ede8e87e7ca58f3bea448de79a --- /dev/null +++ b/entries/2026/03/12/awssupport-latest-user-logging-using-cloudtrailhtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/awssupport/latest/user/logging-using-cloudtrail.html +source: sources/awssupport-latest-user-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:37 + + + +## Overview +This page describes how AWS Support API calls are logged by AWS CloudTrail, enabling auditing of all interactions with AWS Support and Trusted Advisor. CloudTrail captures API calls from both the console and programmatic access, recording who made requests, when, and from where. + +## Key Concepts +- **All AWS Support API operations** are logged by CloudTrail — this is comprehensive, not selective +- **CloudTrail is enabled by default** when you create an AWS account; recent events are viewable in Event History without creating a trail +- A **trail** must be created for ongoing/persistent log delivery to an S3 bucket +- Trails created via console apply to **all AWS Regions** by default +- Log entries include: who made the request (identity), when, from what IP, what operation, and request/response parameters +- **userIdentity** element reveals whether requests used root credentials, IAM user credentials, temporary role credentials, or were made by another AWS service +- **Trusted Advisor** API calls are also logged through the same CloudTrail integration (same `support.amazonaws.com` event source) +- CloudTrail log files are **not ordered** — they don't form a sequential stack trace +- Logs can be **aggregated** from multiple Regions and accounts into a single S3 bucket + +## Commands and Syntax +Key API operations that generate CloudTrail entries: +- **Support**: `CreateCase`, `DescribeCases`, `ResolveCase` +- **Trusted Advisor**: `DescribeTrustedAdvisorCheckRefreshStatuses`, `DescribeTrustedAdvisorCheckResult`, `RefreshTrustedAdvisorCheck` + +Event source in logs: `support.amazonaws.com` + +Log entry key fields: `eventVersion`, `userIdentity`, `eventTime`, `eventSource`, `eventName`, `awsRegion`, `sourceIPAddress`, `requestParameters`, `responseElements`, `requestID`, `eventID`, `eventType`, `recipientAccountId` + +## Relationships +- **CloudTrail** — the underlying logging service; AWS Support is one of many integrated services +- **S3** — destination for persistent CloudTrail log file delivery +- **SNS** — can be configured for notifications on new log delivery +- **IAM** — identity information in logs ties back to IAM users, roles, and federated users +- **Trusted Advisor** — a sub-service of AWS Support; its API calls share the same event source and CloudTrail integration +- **CloudWatch Logs** — CloudTrail events can also be sent here for monitoring/alerting + +## Exam-Relevant Points +- All AWS Support API calls are logged by CloudTrail — no opt-in required for the logging itself, but a trail is needed for persistent storage +- The `eventSource` for both Support and Trusted Advisor is `support.amazonaws.com` +- Trails apply to all Regions by default when created via console +- You can aggregate logs from multiple Regions and multiple accounts into one S3 bucket +- CloudTrail identity tracking distinguishes between root, IAM user, temporary credentials (role/federation), and service-initiated requests +- Trusted Advisor console actions have separate CloudTrail logging (documented on a different page) + diff --git a/entries/2026/03/12/b2bi-latest-userguide-logging-using-cloudtrailhtml.md b/entries/2026/03/12/b2bi-latest-userguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5679cb2376f207978e85beb9538b2144ede9812f --- /dev/null +++ b/entries/2026/03/12/b2bi-latest-userguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/b2bi/latest/userguide/logging-using-cloudtrail.html +source: sources/b2bi-latest-userguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:38 + + + +## Overview +AWS B2B Data Interchange integrates with AWS CloudTrail to log all API calls as events. This enables auditing of who made requests, from where, and when, using trails that deliver log files to S3 buckets across all regions. + +## Key Concepts +- **All B2B Data Interchange API actions** are logged by CloudTrail automatically +- CloudTrail is enabled by default when an AWS account is created +- Without a trail, recent events are still viewable via **Event history** in the CloudTrail console +- A **trail** enables continuous delivery of log files to an S3 bucket and applies to all AWS Regions by default +- Log entries include: requester identity, IP address, timestamp, action, request parameters, and response elements +- Sensitive fields (S3 bucket names, keys, EDI transaction details) are marked `HIDDEN_DUE_TO_SECURITY_REASONS` in logs +- The **userIdentity** element identifies whether requests used root credentials, IAM user credentials, temporary role credentials, or were made by another AWS service +- Log files are **not ordered** — they don't form a sequential stack trace +- The event source is `b2bi.amazonaws.com` + +## Commands and Syntax +No CLI commands specific to this page. Standard CloudTrail log structure applies. Example log entry key fields: +- `eventSource`: `b2bi.amazonaws.com` +- `eventName`: e.g., `CreateCapability` +- `eventCategory`: `Management` +- `managementEvent`: `true` +- `readOnly`: `false` (for write operations) + +## Relationships +- **CloudTrail**: Provides the logging infrastructure; B2B Data Interchange is one of many integrated services +- **Amazon S3**: Destination for CloudTrail log file delivery +- **Amazon SNS**: Can be configured for CloudTrail notifications +- **IAM**: userIdentity element ties actions to IAM principals (users, roles, federated users) +- **CloudTrail Event History**: Provides console-based viewing without requiring a trail + +## Exam-Relevant Points +- CloudTrail is enabled automatically on account creation — no setup required for basic event history +- Trails apply to **all regions** by default when created via the console +- B2B Data Interchange events are classified as **management events** (not data events) +- Sensitive EDI configuration details are redacted in CloudTrail logs for security +- The `userIdentity` element distinguishes between root, IAM user, assumed role, and service-originated requests + diff --git a/entries/2026/03/12/batch-latest-userguide-logging-using-cloudtrailhtml.md b/entries/2026/03/12/batch-latest-userguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1a4483270801e8c6154ea58498212b73d5c5b28d --- /dev/null +++ b/entries/2026/03/12/batch-latest-userguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,37 @@ +--- +source_url: https://docs.aws.amazon.com/batch/latest/userguide/logging-using-cloudtrail.html +source: sources/batch-latest-userguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:38 + + + +## Overview +AWS Batch integrates with AWS CloudTrail to log all API calls as events, including those from the AWS Batch console and programmatic API calls. These logs capture who made requests, from where, and when, enabling auditing and compliance monitoring for batch computing workloads. + +## Key Concepts +- **CloudTrail integration**: All AWS Batch API calls are captured as CloudTrail events automatically +- **Event sources**: Captures calls from both the AWS Batch console and direct API/SDK calls +- **Trail configuration**: Creating a trail enables continuous delivery of events to an S3 bucket; without a trail, only recent events are visible in CloudTrail's Event History +- **Logged metadata**: Request details, source IP address, requester identity, timestamp, and additional context + +## Commands and Syntax +No specific CLI commands or configuration syntax provided on this page. It serves as an overview pointing to two sub-topics: +- **AWS Batch information in CloudTrail** — what gets logged +- **Understanding AWS Batch log file entries** — how to read the log entries + +## Relationships +- **CloudTrail** — the underlying logging service that records AWS Batch events +- **Amazon S3** — destination for continuous delivery of CloudTrail log files when a trail is configured +- **CloudTrail Event History** — provides short-term access to recent events without configuring a trail +- Pattern is consistent across AWS services: each service has a similar CloudTrail integration page + +## Exam-Relevant Points +- CloudTrail captures **all** AWS Batch API calls, not a subset +- Without a trail, you can still view recent events via **Event History** in the CloudTrail console +- A trail must be created to enable **continuous, persistent** delivery of logs to S3 +- Logged information includes: request content, source IP, identity of caller, and timestamp + diff --git a/entries/2026/03/12/bedrock-latest-userguide-logging-using-cloudtrailhtml.md b/entries/2026/03/12/bedrock-latest-userguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9e6807cdac7a589bf8cc899140e320a48d5b521c --- /dev/null +++ b/entries/2026/03/12/bedrock-latest-userguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,86 @@ +--- +source_url: https://docs.aws.amazon.com/bedrock/latest/userguide/logging-using-cloudtrail.html +source: sources/bedrock-latest-userguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:38 + + + +## Overview + +This page describes how Amazon Bedrock integrates with AWS CloudTrail for API call monitoring and auditing. CloudTrail captures all Bedrock API calls as events — both from the console and programmatic access — enabling you to determine who made requests, from where, and when. Events are categorized as either management events (logged by default) or data events (require explicit configuration and incur additional charges). + +## Key Concepts + +- **CloudTrail is enabled by default** on all AWS accounts; recent events are viewable in Event History without creating a trail +- **Trails** enable continuous delivery of CloudTrail events to an S3 bucket; by default they apply to all AWS Regions +- **Management events** (control plane) — logged by default; includes `InvokeModel`, `InvokeModelWithResponseStream`, `Converse`, `ConverseStream`, `ListAsyncInvokes`, plus all Bedrock control plane APIs (`CreateAgent`, `StopModelCustomizationJob`, etc.) +- **Data events** (data plane) — NOT logged by default; requires advanced event selectors; incurs additional charges +- **Data event resource types**: `AWS::Bedrock::AgentAlias`, `AWS::Bedrock::KnowledgeBase`, `AWS::Bedrock::FlowAlias`, `AWS::Bedrock::Guardrail`, `AWS::Bedrock::Model`, `AWS::Bedrock::AsyncInvoke`, `AWS::Bedrock::InlineAgent`, `AWS::Bedrock::Prompt` +- **Data event API operations**: `InvokeAgent`, `InvokeInlineAgent`, `InvokeModelWithBidirectionalStream`, `GetAsyncInvoke`, `StartAsyncInvoke`, `Retrieve`, `RetrieveAndGenerate`, `InvokeFlow`, `RenderPrompt` +- **userIdentity element** reveals whether requests used root credentials, IAM user, temporary role credentials, or were made by another AWS service +- **Amazon GuardDuty** automatically analyzes CloudTrail management events for suspicious Bedrock activity (e.g., removing Guardrails, changing training data S3 buckets) + +## Commands and Syntax + +Configure a trail to log Bedrock data events via CLI: +```bash +aws cloudtrail put-event-selectors --trail-name trailName \ +--advanced-event-selectors \ +'[ + { + "Name": "Log all data events on an alias of an agent in Amazon Bedrock.", + "FieldSelectors": [ + { "Field": "eventCategory", "Equals": ["Data"] }, + { "Field": "resources.type", "Equals": ["AWS::Bedrock::AgentAlias"] } + ] + }, + { + "Name": "Log all data events on a knowledge base in Amazon Bedrock.", + "FieldSelectors": [ + { "Field": "eventCategory", "Equals": ["Data"] }, + { "Field": "resources.type", "Equals": ["AWS::Bedrock::KnowledgeBase"] } + ] + }, + { + "Name": "Log all data events on a flow in Amazon Bedrock.", + "FieldSelectors": [ + { "Field": "eventCategory", "Equals": ["Data"] }, + { "Field": "resources.type", "Equals": ["AWS::Bedrock::FlowAlias"] } + ] + }, + { + "Name": "Log all data events on a guardrail in Amazon Bedrock.", + "FieldSelectors": [ + { "Field": "eventCategory", "Equals": ["Data"] }, + { "Field": "resources.type", "Equals": ["AWS::Bedrock::Guardrail"] } + ] + } +]' +``` + +Additional filtering is possible on `eventName` and `resources.ARN` fields. + +## Relationships + +- **CloudTrail** — core dependency for all Bedrock auditing +- **Amazon S3** — destination for CloudTrail log file delivery +- **Amazon SNS** — can be configured for CloudTrail notifications +- **Amazon GuardDuty** — consumes CloudTrail management events to detect suspicious Bedrock API usage +- **IAM** — userIdentity element ties events to IAM principals (users, roles, federated identities) +- **Bedrock Agents, Knowledge Bases, Flows, Guardrails, Prompts** — each has a distinct CloudTrail resource type for data event logging + +## Exam-Relevant Points + +- `InvokeModel`, `Converse`, `ConverseStream`, and `InvokeModelWithResponseStream` are logged as **management events** (logged by default) +- `InvokeAgent`, `InvokeInlineAgent`, `Retrieve`, `RetrieveAndGenerate`, `InvokeFlow` are **data events** (must be explicitly enabled) +- Data events require **advanced event selectors** — not basic event selectors +- Data events incur **additional CloudTrail charges** +- CloudTrail log files are **not ordered** — they are not a sequential stack trace +- The `eventSource` for Bedrock is `bedrock.amazonaws.com` +- GuardDuty can detect anomalous Bedrock API patterns like removing Guardrails or changing training data buckets +- `RenderPrompt` is a **permission-only action** — it renders prompts created via Prompt management for model invocation + diff --git a/entries/2026/03/12/billingconductor-latest-userguide-logging-using-cloudtrailhtml.md b/entries/2026/03/12/billingconductor-latest-userguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b87391688d05daefc668d3979f8d1eb8c8c3835d --- /dev/null +++ b/entries/2026/03/12/billingconductor-latest-userguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/billingconductor/latest/userguide/logging-using-cloudtrail.html +source: sources/billingconductor-latest-userguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:39 + + + +## Overview +This page documents how AWS Billing Conductor integrates with AWS CloudTrail for API call logging. All Billing Conductor API actions are captured as CloudTrail management events, enabling audit trails for billing group management, pricing rule/plan changes, custom line item operations, and account associations. + +## Key Concepts +- **All Billing Conductor API calls** are logged by CloudTrail as management events +- CloudTrail is automatically enabled on account creation; recent events viewable in **Event history** without creating a trail +- A **trail** must be created for ongoing, persistent log delivery to an S3 bucket +- Trails apply to **all AWS Regions** by default when created via console +- Log entries include: who made the request, source IP, timestamp, action, request parameters +- The **userIdentity** element reveals whether requests used root credentials, IAM user credentials, temporary role credentials, or were made by another AWS service +- CloudTrail log files are **not ordered** — they don't form a sequential stack trace +- The event source is `billingconductor.amazonaws.com` +- Automatic operations (e.g., `AutoAssociateAccount`) appear as `AwsServiceEvent` type with `invokedBy: billingconductor.amazonaws.com`; user-initiated calls appear as `AwsApiCall` + +## Commands and Syntax +No CLI commands specific to this integration. Standard CloudTrail mechanisms apply: +- View events: CloudTrail console → Event history +- Filter by event source: `billingconductor.amazonaws.com` +- Create a trail to deliver logs to S3 + +**Example log structure** (CreateBillingGroup): +```json +{ + "eventSource": "billingconductor.amazonaws.com", + "eventName": "CreateBillingGroup", + "eventType": "AwsApiCall", + "managementEvent": true, + "eventCategory": "Management" +} +``` + +## Relationships +- **CloudTrail** — the logging backend; all Billing Conductor events flow here +- **S3** — destination for persistent CloudTrail log files +- **SNS** — can be configured for CloudTrail event notifications +- **IAM** — userIdentity element tracks credential type (root, IAM user, role, federated) +- **AWS Organizations** — implied by multi-account billing group patterns (AutoAssociateAccount across accounts) + +## Exam-Relevant Points +- All Billing Conductor actions are **management events** (not data events) +- CloudTrail is enabled by default — no setup needed for Event history access +- Automatic service-initiated events use `eventType: AwsServiceEvent` vs user-initiated `AwsApiCall` +- Billing Conductor operates in **us-east-1** (as shown in examples — consistent with billing services being global/us-east-1) +- 30+ distinct CloudTrail events cover CRUD operations for: billing groups, pricing plans, pricing rules, custom line items, account associations, and tagging +- The `Name` field in CreateBillingGroup is redacted (`"***"`) in CloudTrail logs — sensitive parameter masking + diff --git a/entries/2026/03/12/braket-latest-developerguide-braket-ctlogshtml.md b/entries/2026/03/12/braket-latest-developerguide-braket-ctlogshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..be2f8bfa9ae43d48661ae31f32da7017a0fc6ebe --- /dev/null +++ b/entries/2026/03/12/braket-latest-developerguide-braket-ctlogshtml.md @@ -0,0 +1,54 @@ +--- +source_url: https://docs.aws.amazon.com/braket/latest/developerguide/braket-ctlogs.html +source: sources/braket-latest-developerguide-braket-ctlogshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:39 + + + +## Overview +This page describes how Amazon Braket integrates with AWS CloudTrail to log API calls related to quantum computing tasks. CloudTrail captures all Braket API calls—from the console and programmatic access—as events, enabling auditing of who did what, when, and from where. + +## Key Concepts +- **All Amazon Braket actions are logged by CloudTrail** — no opt-in required for basic event logging +- CloudTrail is automatically enabled when you create an AWS account; Braket events appear in **Event history** +- A **trail** must be created for ongoing/persistent log delivery to an S3 bucket +- Trails created via the console apply to **all AWS Regions** by default +- Log entries include: requested action, date/time, request parameters, source IP, user identity, and user agent +- The `userIdentity` element reveals whether requests used temporary credentials, assumed roles, or were made by another AWS service +- CloudTrail log files are **not ordered** — they are not a sequential stack trace +- `eventSource` for Braket is `braket.amazonaws.com` + +## Commands and Syntax +No CLI commands specific to Braket-CloudTrail integration. Key logged API actions include: +- `GetQuantumTask` — retrieves details of a quantum task (identified by `quantumTaskArn`) +- `GetDevice` — retrieves details of a quantum device (identified by `deviceArn`) + +Example log entry fields: +```json +{ + "eventSource": "braket.amazonaws.com", + "eventName": "GetQuantumTask", + "readOnly": true, + "eventType": "AwsApiCall" +} +``` + +## Relationships +- **CloudTrail** — the underlying logging service; Braket is one of many integrated services +- **S3** — destination for CloudTrail log file delivery +- **SNS** — can be configured for notifications on CloudTrail log delivery +- **IAM** — `userIdentity` element tracks which principal (role, federated user, service) made each call +- **CloudTrail Event History** — view recent Braket events without creating a trail + +## Exam-Relevant Points +- CloudTrail logs **all** Braket API actions — not a subset +- No special configuration needed to start seeing Braket events in Event history; a **trail** is needed only for persistent S3 delivery +- Trails default to **multi-region** when created via the console +- Log entries can distinguish between assumed roles, federated users, and service-to-service calls via `userIdentity` +- An `errorCode` field (e.g., `404`) appears in log entries when API calls fail +- `readOnly: true` indicates read operations like `GetQuantumTask` and `GetDevice` + diff --git a/entries/2026/03/12/cdk-v2-guide-work-with-cdk-pythonhtml.md b/entries/2026/03/12/cdk-v2-guide-work-with-cdk-pythonhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..5e01644723a763b41b62735de41e23cf3946d27b --- /dev/null +++ b/entries/2026/03/12/cdk-v2-guide-work-with-cdk-pythonhtml.md @@ -0,0 +1,96 @@ +--- +source_url: https://docs.aws.amazon.com/cdk/v2/guide/work-with-cdk-python.html +source: sources/cdk-v2-guide-work-with-cdk-pythonhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:39 + +## Overview +This page covers how to use the AWS Cloud Development Kit (CDK) v2 with Python, including project setup, dependency management, Python-specific idioms and conventions, and type safety practices. It serves as the primary reference for Python developers working with AWS CDK to define cloud infrastructure as code. + +## Key Concepts +- AWS CDK v2 is the current version; CDK v1 ended support June 1, 2023 +- Python 3.9 or later is required for AWS CDK applications +- CDK uses familiar Python tooling: CPython, `virtualenv`, `pip` +- AWS Construct Library modules are distributed via PyPI (`pypi.org`) +- Python-style identifiers are used throughout (e.g., `snake_case` method names) +- Most constructs live in `aws-cdk-lib`; experimental modules are in separate packages named `aws-cdk..alpha` +- Three levels of constructs exist: L1 (`CfnXxxxxx`), L2, and L3 — mixing types between levels causes errors +- All constructs take three arguments: **scope** (parent in construct tree), **id** (identifier), and **props** (keyword arguments) +- `scope` and `id` must be passed as positional arguments, not keyword arguments +- Virtual environments isolate project dependencies; must be activated each session +- `None` represents missing/undefined values in the CDK + +## Commands and Syntax + +**Project creation:** +```bash +mkdir my-project && cd my-project +cdk init app --language python +source .venv/bin/activate # activate venv (Mac/Linux) +python -m pip install -r requirements.txt +``` + +**Installing construct library modules:** +```bash +python -m pip install aws-cdk.aws-codestar-alpha +``` + +**Import conventions:** +```python +from aws_cdk import App, Construct # individual classes from top-level +import aws_cdk as cdk # namespace alias (don't mix with above) +import aws_cdk.aws_s3 as s3 # short aliases for service modules +import aws_cdk.aws_lambda as lambda_ # trailing underscore for reserved words +``` + +**Dependency management:** +- Applications: pin exact versions in `requirements.txt` using `==` +- Libraries: specify dependencies in `setup.py` with `install_requires` +- Use `~=` in requirements.txt to allow compatible upgrades +- `pip freeze > freeze.txt` for pinning all transitive dependencies (keep separate from `requirements.txt`) +- `python -m pip install -e .` for local library development + +**Extending constructs (kwargs pattern):** +```python +class MyConstruct(Construct): + def __init__(self, id, *, MyProperty=42, **kwargs): + super().__init__(self, id, **kwargs) +``` + +**Implementing interfaces:** +```python +@jsii.implements(IAspect) +class MyAspect(): + def visit(self, node: IConstruct) -> None: + print("Visited", node.node.path) +``` + +**Type checking setup:** +```bash +pip install mypy && mypy app.py # Python-based checker +npm install -g pyright && pyright app.py # faster, JS-based (same engine as Pylance) +``` + +## Relationships +- **Node.js**: Required runtime even for Python CDK (CDK Toolkit dependency) +- **JSII**: Translation layer between Python and CDK's TypeScript core; source of runtime type errors +- **CloudFormation**: CDK synthesizes to CloudFormation templates; L1 constructs map directly to CFN resources +- **PyPI**: Distribution channel for all CDK Python modules +- **virtualenv/pip**: Standard Python dependency management tools used by CDK +- **CDK Toolkit (`cdk` CLI)**: Used for `cdk init`, `cdk synth`, `cdk deploy` — requires Node.js + +## Exam-Relevant Points +- Python 3.9+ is the minimum required version for CDK v2 +- `aws-cdk-lib` is the main package; experimental modules use the `.alpha` suffix +- `lambda` is a reserved word in Python — convention is to use `lambda_` as the alias +- `scope` and `id` must be positional arguments, never keyword arguments +- Applications use `requirements.txt` for dependencies; construct libraries use `setup.py` +- Use `==` for exact version pinning in applications; `~=` for compatible version upgrades +- Virtual environment activation (`source .venv/bin/activate`) is required before each session +- `pip freeze` should go to a separate file (e.g., `freeze.txt`), not replace `requirements.txt` +- Type annotations are included in CDK modules but not enforced at runtime — use mypy/pyright/Pylance +- Common type errors: passing single values where lists are expected, and mixing L1/L2/L3 construct types + diff --git a/entries/2026/03/12/cdk-v2-guide-work-withhtml.md b/entries/2026/03/12/cdk-v2-guide-work-withhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..45d0e592628e139a15d4bec34f21e913b43d661a --- /dev/null +++ b/entries/2026/03/12/cdk-v2-guide-work-withhtml.md @@ -0,0 +1,73 @@ +--- +source_url: https://docs.aws.amazon.com/cdk/v2/guide/work-with.html +source: sources/cdk-v2-guide-work-withhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:40 + +## Overview +This page covers how to import, install, and use the AWS CDK v2 library (`aws-cdk-lib`) across all six supported programming languages (TypeScript, JavaScript, Python, Java, C#, Go). It explains module structure, dependency management, construct instantiation patterns, member access conventions, enum usage, and interface implementation — with side-by-side language comparisons throughout. + +## Key Concepts +- **aws-cdk-lib** is the single consolidated CDK v2 package; experimental constructs ship as separate modules +- The `constructs` library provides the base `Construct` class (separate from `aws-cdk-lib`) +- **L1 constructs** (Cfn-prefixed) map 1:1 to CloudFormation resources, auto-generated each release +- **L2 constructs** are curated higher-level abstractions with sensible defaults +- **L3 constructs** (patterns) compose multiple resources into common architectures +- **Interfaces** (prefixed with `I`, e.g. `IBucket`) represent the minimum functionality for a resource type, including resources defined outside the CDK app (via `fromBucketArn()` etc.) +- Use concrete classes (e.g. `Bucket`) when creating resources; use interfaces (e.g. `IBucket`) for parameter types when accepting external resources +- Every construct takes three arguments: **scope** (parent, typically `this`/`self`), **id** (logical name), and **props** (configuration object, may be optional) +- Naming conventions vary by language: `camelCase` (TS/Java), `snake_case` (Python), `PascalCase` (C#/Go) +- Enum constants use `SCREAMING_SNAKE_CASE` in all languages + +## Commands and Syntax + +**Installation by language:** +| Language | Command | +|----------|---------| +| TypeScript/JS | `npm install aws-cdk-lib` | +| Python | `python -m pip install aws-cdk-lib` | +| Java | Maven dependency: group `software.amazon.awscdk`, artifact `aws-cdk-lib` | +| C# | `dotnet add package Amazon.CDK.Lib` | +| Go | `go get github.com/aws/aws-cdk-go/awscdk/v2` | + +**Python import and instantiation:** +```python +import aws_cdk as cdk +import aws_cdk.aws_s3 as s3 +bucket = s3.Bucket(self, "my-bucket", bucket_name="my-bucket", versioned=True) +``` + +**Python interface implementation:** +```python +from aws_cdk import IAspect, IConstruct +import jsii + +@jsii.implements(IAspect) +class MyAspect(): + def visit(self, node: IConstruct) -> None: + print("Visited", node.node.path) +``` + +**Go pointer helpers:** Use `jsii.String()`, `jsii.Bool()` etc. since all construct params are pointers in Go. + +## Relationships +- **CloudFormation**: L1 constructs are direct CloudFormation resource representations; L2/L3 wrap them +- **Package managers**: NPM/Yarn (TS/JS), PIP (Python), Maven (Java), NuGet (C#), Go modules (Go) +- **`cdk init`**: Auto-configures dependencies for core libraries and stable constructs +- **API Reference**: Organized into Overview, Constructs, Classes, Structs, Interfaces, Enums, CloudFormation Resources, and CloudFormation Property Types +- **Construct tree**: `scope` parameter creates parent-child relationships; `this`/`self` is the conventional scope + +## Exam-Relevant Points +- CDK v2 uses a **single package** (`aws-cdk-lib`) vs. CDK v1's per-service packages +- The `constructs` base class is in a **separate library** from `aws-cdk-lib` +- **L1 = Cfn-prefixed** (auto-generated), **L2 = curated** (high-level defaults), **L3 = patterns** (multi-resource) +- **Interface prefix `I`** indicates minimum functionality; use for accepting external resources as parameters +- `Bucket.fromBucketArn()` imports existing resources — these are **read-only** and have limited CDK functionality +- Python uses `@jsii.implements()` decorator since Python lacks native interfaces +- Go uses `jsii.String()`/`jsii.Bool()` pointer helpers — all construct parameters are pointers +- Supported package managers: NPM/Yarn, PIP, Maven, NuGet, Go modules (one per language, officially supported) +- Property naming: Python → `snake_case`, Java → `camelCase` with getters, C#/Go → `PascalCase` + diff --git a/entries/2026/03/12/chatbot-latest-adminguide-understanding-permissionshtml.md b/entries/2026/03/12/chatbot-latest-adminguide-understanding-permissionshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..0f4c175b4dedc5ba2e68fb99128c6cc61839cf46 --- /dev/null +++ b/entries/2026/03/12/chatbot-latest-adminguide-understanding-permissionshtml.md @@ -0,0 +1,82 @@ +--- +source_url: https://docs.aws.amazon.com/chatbot/latest/adminguide/understanding-permissions.html +source: sources/chatbot-latest-adminguide-understanding-permissionshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:40 + + + +## Overview + +This page explains the permissions model for Amazon Q Developer in chat applications (formerly AWS Chatbot). It describes how IAM roles, organization policies, channel roles, user roles, and channel guardrail policies interact to control what actions channel members can perform from chat clients (Slack, Teams, etc.). The effective permissions are the **intersection** of guardrail policies and the user's assigned roles. + +## Key Concepts + +- **Amazon Q Developer in chat applications** is the rebranded name for AWS Chatbot +- **Permissions are intersectional**: what a user can do = intersection of guardrail policies AND their role permissions +- **Organization policies (chat applications policies)**: control where notifications are delivered and whether Amazon Q responds to mention events, managed across all accounts in an org +- **Service Control Policies (SCPs)**: org-level policies that cap the maximum permissions for all IAM users/roles in the organization +- **Channel role**: a single IAM role applied to all members of a channel; useful for homogeneous teams +- **User roles**: individual roles chosen by each channel member, mapped to their chat client ID; appropriate for diverse teams or when you want to gate new members +- **Channel guardrail policies**: constrain and take precedence over both channel roles and user roles — they are the hard ceiling on permissions +- **User role requirement**: can be enforced at the account level or channel configuration level; individual channels cannot override an account-level requirement +- **Protection policy**: a legacy guardrail automatically applied to configurations that existed before the 11/28/2021 CLI command expansion; restricts permissions to pre-expansion levels (ReadOnlyAccess + Lambda invoke + Support + Incident Manager) +- **AWS Service Roles IAM policies cannot be used as guardrail policies** + +## Commands and Syntax + +**Eight channel role templates available:** +1. Notification permissions +2. Read-only command permissions +3. Lambda-invoke command permissions +4. AWS Support command permissions +5. Incident Manager permissions +6. Resource Explorer permissions +7. Amazon Q permissions +8. Amazon Q operations assistant permissions + +**Non-supported operations** — permanently denied regardless of role: +```json +{ + "Action": [ + "iam:*", "kms:*", "sts:*", "sso:*", "sdb:*", + "secretsmanager:*", "chatbot:*", "cognito-idp:*", "cognito-identity:*", + "identitystore:*", "s3:GetObject", "s3:PutObject", "s3:GetBucketPolicy", + "ec2:GetPasswordData", "ecr:GetAuthorizationToken", + "redshift:GetClusterCredentials", "dynamodb:BatchGetItem", "dynamodb:GetItem", + "lightsail:DownloadDefaultKeyPair", "lightsail:GetKeyPair*", + "lightsail:UpdateRelationalDatabase", "connect:GetFederationToken", + "codecommit:GetFile", "codecommit:GetCommit", "codecommit:GetDifferences", + "gamelift:RequestUploadCredentials", "gamelift:GetInstanceAccess", + "appsync:ListApiKeys", "storagegateway:DescribeChapCredentials", + "snowball:GetJobUnlockCode" + ], + "Effect": "Deny", + "Resource": "*" +} +``` + +**Protection policy** (legacy default guardrail): +- ReadOnlyAccess managed policy PLUS `lambda:Invoke*`, `support:*`, `ssm-incidents:*` + +## Relationships + +- **IAM**: roles and policies are the foundation of the permissions model +- **AWS Organizations / SCPs**: provide org-wide permission ceilings above the chatbot-specific controls +- **Lambda, Support, Incident Manager**: specifically called out in role templates and protection policy +- **Amazon Q Developer**: this is the current product identity; all Chatbot docs now fall under Q Developer +- **Slack/Teams**: the chat client platforms where these permissions are exercised + +## Exam-Relevant Points + +- Effective permissions = **intersection** of guardrail policies and role (not union) +- Guardrail policies **always take precedence** over channel roles and user roles +- Sensitive operations (IAM, KMS, STS, SSO, Secrets Manager, S3 Get/PutObject) are **permanently blocked** — cannot be unblocked by any role +- The **protection policy** was auto-applied to pre-11/28/2021 configurations and should remain until governance review is complete +- User role requirement is enforced at the **account level** — individual channels cannot override it +- Channel roles and user roles are **not mutually exclusive** — members can still choose user roles even when a channel role is set +- Templates can be **combined** (e.g., Notification + Read-only) to compose channel role permissions + diff --git a/entries/2026/03/12/chatbot-latest-adminguide-what-ishtml.md b/entries/2026/03/12/chatbot-latest-adminguide-what-ishtml.md new file mode 100644 index 0000000000000000000000000000000000000000..7fb620fed1e4d97517e5242277423efa408a7326 --- /dev/null +++ b/entries/2026/03/12/chatbot-latest-adminguide-what-ishtml.md @@ -0,0 +1,47 @@ +--- +source_url: https://docs.aws.amazon.com/chatbot/latest/adminguide/what-is.html +source: sources/chatbot-latest-adminguide-what-ishtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:40 + + + +## Overview +Amazon Q Developer in chat applications (formerly AWS Chatbot) enables DevOps teams to monitor and respond to AWS operational events directly from chat channels (Slack, Microsoft Teams, Amazon Chime). It processes AWS service notifications via Amazon SNS and forwards them to chat channels, and also supports running AWS CLI commands directly from chat to manage AWS resources. + +## Key Concepts +- **ChatOps model**: Enables teams to communicate and execute AWS tasks from within chat clients, replacing email-based SNS notification workflows +- **SNS-based notifications**: Events and alarms from AWS services are routed through Amazon SNS topics to configured chat channels and webhooks +- **Supported chat platforms**: Amazon Chime (via webhooks), Microsoft Teams (channels), and Slack (channels) +- **IAM integration**: Uses predefined IAM policy templates for channel-specific permission controls; channel guardrail policies restrict what commands can be run +- **Custom notifications**: Define tailored AWS service notifications using the same SNS-based mechanism as default notifications +- **Custom actions**: Transform notifications into actionable buttons that trigger Lambda functions or CLI commands (e.g., retrieve telemetry, run automation runbooks) +- **Amazon Q Developer integration**: Provides generative AI-powered answers to AWS questions directly in chat channels +- **Service rename**: AWS Chatbot has been renamed to Amazon Q Developer in chat applications + +## Commands and Syntax +- **Running CLI commands in chat**: Use standard AWS CLI syntax directly in chat channels; Amazon Q Developer validates required parameters and checks IAM role permissions plus channel guardrail policies before execution +- **Infrastructure as Code support**: Manageable via AWS SDKs, AWS CDK, CloudFormation, Cloud Control API, and Terraform + +## Relationships +- **Amazon SNS**: Core dependency — all notifications flow through SNS topics mapped to chat channels +- **Amazon CloudWatch**: Formats incident metrics as charts in chat notifications; requires IAM role with permissions policy and trust policy +- **IAM**: Controls what actions can be performed per channel via roles, policies, and guardrail policies +- **AWS CLI**: Full CLI command support for most AWS services from within chat +- **AWS Lambda**: Custom actions can invoke Lambda functions +- **AWS Systems Manager**: Can run SSM runbooks from chat +- **Supported AWS services**: Integrates with services that can publish to SNS (CloudWatch alarms, Security Hub, AWS Budgets, etc.) + +## Exam-Relevant Points +- Amazon Q Developer in chat applications uses **SNS topics** as the mechanism to deliver notifications to chat channels — you must configure SNS topic associations in the console +- **Three supported platforms**: Amazon Chime (webhooks only), Microsoft Teams, Slack +- For **Microsoft Teams and Slack**, an administrator must approve Amazon Q Developer support for the tenant/workspace before anyone can add it to channels +- For **Amazon Chime**, users need IAM permissions for Chime to add webhooks +- **IAM roles with both a permissions policy and a trust policy** are required for accessing CloudWatch metrics +- **Channel guardrail policies** provide an additional layer of access control beyond IAM roles +- CLI commands run from chat are validated against both IAM roles and channel guardrail policies +- The service was **renamed from AWS Chatbot** to Amazon Q Developer in chat applications + diff --git a/entries/2026/03/12/chime-latest-ag-cloudtrailhtml.md b/entries/2026/03/12/chime-latest-ag-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..007b53a2f548e8adb10ada4d34bb7ebefba8a7b6 --- /dev/null +++ b/entries/2026/03/12/chime-latest-ag-cloudtrailhtml.md @@ -0,0 +1,59 @@ +--- +source_url: https://docs.aws.amazon.com/chime/latest/ag/cloudtrail.html +source: sources/chime-latest-ag-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:41 + + + +## Overview + +This page documents how Amazon Chime integrates with AWS CloudTrail for API call logging. It covers how CloudTrail captures all Amazon Chime API calls as events, how to view them, and how to interpret log entries. **Note: Amazon Chime (the service, not the SDK) reached end of support on February 20, 2026.** + +## Key Concepts + +- **CloudTrail integration**: All Amazon Chime API calls are logged by CloudTrail, including console actions and programmatic API calls. +- **Automatic enablement**: CloudTrail is enabled by default when you create an AWS account — recent events are viewable in Event History without creating a trail. +- **Trails**: For ongoing/persistent logging, create a trail to deliver log files to an S3 bucket. Trails apply to all regions by default. +- **Event source identifier**: Amazon Chime log entries use `chime.amazonaws.com` as the event source. +- **Identity tracking**: Each log entry records whether the request was made with root credentials, IAM user credentials, temporary security credentials (role/federated user), or by another AWS service. +- **End of support**: Amazon Chime service ended support on 2026-02-20. The Amazon Chime SDK is unaffected. + +## Commands and Syntax + +No CLI commands specific to this page. The key artifact is the CloudTrail log entry structure: + +```json +{ + "eventSource": "chime.amazonaws.com", + "eventName": "AddDomain", + "userIdentity": { "type": "IAMUser", ... }, + "requestParameters": { "domainName": "example.com", "accountId": "..." }, + "errorCode": "ConflictException", + "errorMessage": "Request could not be completed due to a conflict" +} +``` + +Notable logged API actions include `CreateAccount`, `InviteUsers`, and `ResetPersonalPIN`. + +## Relationships + +- **CloudTrail**: Core dependency — provides the logging infrastructure. +- **Amazon S3**: Destination for CloudTrail log file delivery. +- **Amazon SNS**: Can be configured for CloudTrail event notifications. +- **AWS Directory Service**: If Active Directory is configured for the Chime account, Directory Service CloudTrail logs should also be monitored for sign-in issues. +- **IAM**: userIdentity element ties actions to IAM principals. +- **Amazon Chime SDK**: Separate service that is NOT affected by the Chime end-of-support. + +## Exam-Relevant Points + +- CloudTrail is enabled by default on all AWS accounts — no setup needed for basic Event History access. +- Trails created in the console log events from **all regions** by default. +- The `userIdentity` element determines who/what made a request (root, IAM user, role, federated user, or AWS service). +- CloudTrail log files are **not ordered** — they are not a sequential stack trace. +- Amazon Chime events are identified by event source `chime.amazonaws.com`. +- Amazon Chime (not the SDK) is end-of-life as of February 2026 — unlikely to appear on current exams except as a distractor or in the context of service deprecation/migration planning. + diff --git a/entries/2026/03/12/clean-rooms-latest-userguide-logging-using-cloudtrailhtml.md b/entries/2026/03/12/clean-rooms-latest-userguide-logging-using-cloudtrailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..4510a6206e46db25e68184654a8bfcf6eb060610 --- /dev/null +++ b/entries/2026/03/12/clean-rooms-latest-userguide-logging-using-cloudtrailhtml.md @@ -0,0 +1,52 @@ +--- +source_url: https://docs.aws.amazon.com/clean-rooms/latest/userguide/logging-using-cloudtrail.html +source: sources/clean-rooms-latest-userguide-logging-using-cloudtrailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:41 + + + +## Overview +This page describes how AWS Clean Rooms integrates with AWS CloudTrail for API activity logging. All Clean Rooms API calls are captured as CloudTrail events, enabling audit trails of who made requests, from where, and when. Events can be viewed in CloudTrail Event history or delivered continuously to an S3 bucket via a trail. + +## Key Concepts +- **All Clean Rooms actions are logged** by CloudTrail and documented in the Clean Rooms API Reference +- CloudTrail is **enabled by default** when you create an AWS account +- Without a trail configured, you can still view recent events in **Event history** +- A **trail** enables continuous delivery of log files to an S3 bucket and applies to **all AWS Regions** by default +- Each log entry includes **userIdentity** information revealing whether the request used root credentials, IAM user credentials, temporary role credentials, or was made by another AWS service +- The `eventSource` for Clean Rooms events is **`cleanrooms.amazonaws.com`** +- SQL parameters in CloudTrail logs are **redacted** (shown as `"***"`) — protecting query content from exposure in audit logs +- Clean Rooms events are classified as **management events** (`"managementEvent": true`) +- Failed API calls include an **`errorCode`** field (e.g., `ValidationException`) and an error message in `responseElements` + +## Commands and Syntax +No CLI commands specific to Clean Rooms CloudTrail integration are shown. Standard CloudTrail trail creation applies: +- Create a trail via CloudTrail console or CLI to deliver events to S3 +- Configure SNS notifications for real-time alerting +- Use CloudTrail Event history for ad-hoc queries + +Key fields in Clean Rooms CloudTrail events: +- `eventName`: The API action (e.g., `StartProtectedQuery`) +- `membershipIdentifier`: Identifies the Clean Rooms collaboration membership +- `resultConfiguration.outputConfiguration.s3`: Shows the output bucket/prefix/format +- `protectedQuery.status`: Query status (e.g., `SUBMITTED`) + +## Relationships +- **CloudTrail**: Core dependency for audit logging; Clean Rooms relies on standard CloudTrail infrastructure +- **S3**: Destination for both CloudTrail logs and Clean Rooms query results +- **IAM**: userIdentity element tracks the principal (roles, users, federated identities) making API calls +- **SNS**: Can be configured for CloudTrail event notifications +- **Clean Rooms collaborations**: Events reference `membershipIdentifier` and `membershipArn`, tying audit logs to specific collaboration memberships + +## Exam-Relevant Points +- All Clean Rooms API actions are logged by CloudTrail — no additional configuration needed to start logging +- SQL query parameters are **masked** (`"***"`) in CloudTrail logs, an important privacy/security feature for a data collaboration service +- Clean Rooms events are **management events**, not data events +- Failed API calls are logged with `errorCode` and error `message`, useful for troubleshooting access and query validation issues +- Trails apply to all Regions by default when created via the console +- The `userIdentity` block distinguishes between root, IAM user, assumed role, and federated user access patterns + diff --git a/entries/2026/03/12/cli-latest-genindexhtml.md b/entries/2026/03/12/cli-latest-genindexhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..6a18a65eb67aa1c26af8cbadc68927db43cc9f60 --- /dev/null +++ b/entries/2026/03/12/cli-latest-genindexhtml.md @@ -0,0 +1,13 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/genindex.html +source: sources/cli-latest-genindexhtml.md +--- +# Cli Latest Genindexhtml + +**Date:** 2026-03-12 +**Time:** 00:41 + +This page is just the index/navigation page for the AWS CLI Command Reference with no substantive content. There's nothing meaningful to summarize — it contains only site navigation, search, and feedback links for AWS CLI version 2.34.6. + +No summary document is worth creating from this source. + diff --git a/entries/2026/03/12/cli-latest-indexhtml.md b/entries/2026/03/12/cli-latest-indexhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..fef105dfdf5f609f743ca9860799bf24e93c7f68 --- /dev/null +++ b/entries/2026/03/12/cli-latest-indexhtml.md @@ -0,0 +1,51 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/index.html +source: sources/cli-latest-indexhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:41 + + + +## Overview +This is the top-level index page for the AWS CLI Command Reference (version 2.34.6). It serves as the master directory of all AWS service commands available through the AWS CLI, providing a unified interface for interacting with all parts of AWS from the command line. + +## Key Concepts +- **AWS CLI** is a unified tool providing a consistent interface for interacting with all AWS services +- The CLI organizes commands by **service name** (e.g., `aws ec2`, `aws s3`, `aws lambda`) +- Current version documented: **AWS CLI 2.34.6** +- Some services have multiple CLI command namespaces (e.g., `s3` vs `s3api` vs `s3control`; `waf` vs `waf-regional` vs `wafv2`; `kinesis` vs `kinesisanalytics` vs `kinesisanalyticsv2`) +- Certain services split commands into control-plane and data-plane (e.g., `bedrock` vs `bedrock-runtime`, `iot` vs `iot-data`, `mediastore` vs `mediastore-data`) +- Special utility commands exist: `configure`, `history`, `login`, `logout`, `ddb` (high-level DynamoDB), `deploy` (CodeDeploy) + +## Commands and Syntax +- Base invocation: `aws [options]` +- Configuration: `aws configure` +- Notable service command mappings: + - `ec2` — EC2 instances/VPCs/networking + - `s3` — high-level S3 commands (cp, sync, ls) + - `s3api` — low-level S3 API calls + - `sts` — Security Token Service + - `iam` — Identity and Access Management + - `logs` — CloudWatch Logs + - `events` — EventBridge + - `ce` — Cost Explorer + - `ssm` — Systems Manager + +## Relationships +- **User Guide** provides setup and configuration instructions (prerequisite) +- Each service command links to its own subcommand index +- A **Topic Guide** provides cross-cutting guidance beyond individual services +- The CLI mirrors the AWS SDK/API structure — each CLI service namespace corresponds to an AWS service API endpoint +- `cloudformation` and `cloudcontrol` relate to infrastructure provisioning; relevant to this expert's substrate layer + +## Exam-Relevant Points +- The CLI provides **one unified tool** for all AWS services — not separate tools per service +- Know the difference between high-level commands (`s3 cp`, `s3 sync`) and low-level API commands (`s3api put-object`) +- Some services have versioned command namespaces (v1 vs v2): `waf`→`wafv2`, `kinesisanalytics`→`kinesisanalyticsv2`, `lex-models`→`lexv2-models` +- `sts` is the command for assuming roles and getting temporary credentials +- `configure` is a built-in command for setting up credentials and default region +- The CLI supports **all** AWS services — over 350 service namespaces listed + diff --git a/entries/2026/03/12/cli-latest-reference-activate-organizations-accesshtml.md b/entries/2026/03/12/cli-latest-reference-activate-organizations-accesshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..f0eff8ea0df3a5de63d3f744c3b768e48bf511d9 --- /dev/null +++ b/entries/2026/03/12/cli-latest-reference-activate-organizations-accesshtml.md @@ -0,0 +1,69 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/reference/activate-organizations-access.html +source: sources/cli-latest-reference-activate-organizations-accesshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:42 + + + +## Overview +The AWS CLI (`aws`) is a unified command-line tool for managing all AWS services. This page documents the top-level `aws` command, its global options that apply to every subcommand, and provides a complete index of all available service namespaces (400+). + +## Key Concepts +- **Unified interface**: Single `aws` binary serves as the entry point for all AWS service APIs +- **Command structure**: `aws [options] [parameters]` — hierarchical with service as first-level command +- **Global options** apply to every command regardless of service +- **Output formats**: json, text, table, yaml, yaml-stream, off +- **JMESPath filtering**: `--query` accepts JMESPath expressions to filter/transform response data client-side +- **Named profiles**: `--profile` selects credential/config sets from `~/.aws/credentials` and `~/.aws/config` +- **Binary format handling**: `--cli-binary-format` controls base64 vs raw encoding; `fileb://` always treats content as binary regardless of this setting +- **Error output formats**: enhanced (default), legacy, json, yaml, text, table +- **CLI version shown**: 2.34.6 + +## Commands and Syntax +```bash +# Basic syntax +aws [options] [parameters] + +# Get help +aws help +aws help topics + +# Key global options +aws --debug ... # Enable debug logging +aws --region us-east-1 ... # Override region +aws --profile myprofile ... # Use named profile +aws --output json ... # Set output format (json|text|table|yaml|yaml-stream|off) +aws --query 'Items[0].Name' ... # JMESPath filter +aws --endpoint-url http://localhost:4566 ... # Custom endpoint (e.g., LocalStack) +aws --no-paginate ... # Single page only +aws --no-sign-request ... # Skip auth (public resources) +aws --no-cli-pager ... # Disable pager +aws --cli-read-timeout 120 ... # Socket read timeout (default 60s) +aws --cli-connect-timeout 30 ... # Socket connect timeout (default 60s) +aws --no-verify-ssl ... # Skip SSL certificate verification +aws --ca-bundle /path/to/ca.pem # Custom CA bundle +aws --cli-auto-prompt # Interactive parameter prompting +``` + +## Relationships +- **Profiles/Config**: Works with `~/.aws/config` and `~/.aws/credentials` (managed via `aws configure`) +- **IAM/STS**: Authentication relies on IAM credentials; `--profile` and `--no-sign-request` control auth behavior +- **CloudTrail**: CLI API calls are logged by CloudTrail +- **SDKs**: CLI wraps the same APIs as boto3/SDKs — same endpoint URLs, same operations +- **LocalStack/testing**: `--endpoint-url` enables use with local AWS emulators + +## Exam-Relevant Points +- Default output format is **json**; can be changed per-command or in config +- `--query` uses **JMESPath** (not JSONPath or jq syntax) +- `--no-paginate` returns only the **first page** of results +- Default socket timeouts are **60 seconds** for both read and connect +- `--no-sign-request` is used for accessing **public** resources without credentials +- `fileb://` always sends raw binary regardless of `--cli-binary-format` setting; `file://` respects the setting +- `--cli-binary-format` values: **base64** (default) and **raw-in-base64-out** (V1 compatibility) +- Two high-level S3 command namespaces: `s3` (simplified) and `s3api` (full API); also `s3control` and `s3outposts` +- Service commands map 1:1 to AWS service APIs (e.g., `aws dynamodb` → DynamoDB, `aws ec2` → EC2) + diff --git a/entries/2026/03/12/cli-latest-reference-activate-typehtml.md b/entries/2026/03/12/cli-latest-reference-activate-typehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b4a9de1cc396844e00fa7fefdd793d28cc080e09 --- /dev/null +++ b/entries/2026/03/12/cli-latest-reference-activate-typehtml.md @@ -0,0 +1,70 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/reference/activate-type.html +source: sources/cli-latest-reference-activate-typehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:42 + + + +## Overview +This is the top-level reference page for the AWS CLI (`aws` command), documenting the universal syntax, global options available to all subcommands, and providing a complete index of all available service namespaces (300+) that can be managed through the CLI. + +## Key Concepts +- The AWS CLI is a **unified tool** to manage all AWS services from the command line +- Commands follow the pattern: `aws [options] [parameters]` +- **Global options** apply to every service command (e.g., `--region`, `--profile`, `--output`) +- Output formats supported: `json`, `text`, `table`, `yaml`, `yaml-stream`, `off` +- **JMESPath** queries (`--query`) filter response data client-side +- SSL verification is on by default; `--no-verify-ssl` overrides this +- Automatic pagination is on by default; `--no-paginate` limits to one page of results +- Binary blob format defaults to `base64`; `raw-in-base64-out` preserves CLI v1 behavior +- `fileb://` always treats content as binary regardless of `cli-binary-format` setting +- Default socket read and connect timeouts are both **60 seconds** +- Error output format defaults to `enhanced`; alternatives include `legacy`, `json`, `yaml`, `text`, `table` + +## Commands and Syntax +```bash +# Basic syntax +aws [options] [parameters] + +# Get help +aws help +aws help topics + +# Common global options +aws --region us-east-1 s3 ls +aws --profile myprofile ec2 describe-instances +aws --output json lambda list-functions +aws --query 'Reservations[].Instances[].InstanceId' ec2 describe-instances +aws --debug s3 ls # Enable debug logging +aws --endpoint-url http://localhost:4566 s3 ls # Custom endpoint (e.g., LocalStack) +aws --no-sign-request s3 ls s3://public-bucket # Anonymous access +aws --no-paginate logs describe-log-groups # Single page only +aws --no-cli-pager sts get-caller-identity # Suppress pager +aws --cli-auto-prompt # Interactive prompt mode +``` + +## Relationships +- **Profiles & credentials**: `--profile` ties into `~/.aws/credentials` and `~/.aws/config` +- **Region**: `--region` overrides the `AWS_DEFAULT_REGION` env var and config file settings +- **Endpoint URL**: Used with LocalStack, VPC endpoints, or FIPS endpoints +- **JMESPath (`--query`)**: Client-side filtering — complementary to server-side filtering parameters +- **Pagination**: Interacts with `--page-size` and `--max-items` on individual commands +- **S3 high-level commands** (`aws s3`) vs **low-level API commands** (`aws s3api`) are separate service namespaces +- Some services have multiple CLI namespaces (e.g., `bedrock`, `bedrock-agent`, `bedrock-runtime`) + +## Exam-Relevant Points +- The CLI version shown is **2.34.6** — CLI v2 is the current major version +- `--no-sign-request` allows accessing public resources without credentials +- `--query` uses **JMESPath** syntax (not SQL, not JSONPath) +- Default output format is typically `json` unless configured otherwise +- `--cli-binary-format raw-in-base64-out` is needed for **CLI v1 compatibility** when passing binary data +- `fileb://` prefix forces binary treatment regardless of `cli-binary-format` setting +- Six output formats exist: json, text, table, yaml, yaml-stream, off +- `--no-paginate` only returns the **first page** — it does not aggregate all results +- The `configure` service namespace is used for `aws configure` (credential/config setup) +- `sts` (Security Token Service) is a separate service namespace for temporary credentials + diff --git a/entries/2026/03/12/cli-latest-reference-batch-describe-type-configurationshtml.md b/entries/2026/03/12/cli-latest-reference-batch-describe-type-configurationshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..6e25a7bb6e74ee2767dc6a9fb5224b97f1fae448 --- /dev/null +++ b/entries/2026/03/12/cli-latest-reference-batch-describe-type-configurationshtml.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/reference/batch-describe-type-configurations.html +source: sources/cli-latest-reference-batch-describe-type-configurationshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:43 + + + +## Overview +This is the root reference page for the AWS CLI (`aws` command), documenting the global options available across all service commands and listing every available service namespace. It covers CLI version 2.34.6. + +## Key Concepts +- The AWS CLI is a **unified tool** to manage all AWS services from the command line +- Command structure follows: `aws [options] [parameters]` +- **Global options** apply to any service command (e.g., `--region`, `--profile`, `--output`) +- Output formats supported: `json`, `text`, `table`, `yaml`, `yaml-stream`, `off` +- Error output formats: `legacy`, `json`, `yaml`, `text`, `table`, `enhanced` (default) +- Binary blob formats: `base64` (default) and `raw-in-base64-out` (V1 compatibility) +- `fileb://` always treats content as binary regardless of `cli-binary-format` setting; `file://` respects the setting +- Default socket read and connect timeouts are both **60 seconds**; set to 0 for blocking (no timeout) + +## Commands and Syntax +```bash +aws [options] [parameters] +aws command help # Help for specific command +aws help topics # List available help topics +``` + +**Key global options:** +| Option | Type | Purpose | +|--------|------|---------| +| `--debug` | boolean | Enable debug logging | +| `--endpoint-url` | string | Override default service URL | +| `--no-verify-ssl` | boolean | Skip SSL certificate verification | +| `--no-paginate` | boolean | Disable automatic pagination (single page only) | +| `--output` | string | Set output format (json/text/table/yaml/yaml-stream/off) | +| `--query` | string | JMESPath expression to filter response data | +| `--profile` | string | Use specific credential profile | +| `--region` | string | Override configured region | +| `--no-sign-request` | boolean | Send unsigned requests (no credentials loaded) | +| `--ca-bundle` | string | Custom CA certificate bundle for SSL | +| `--cli-read-timeout` | int | Socket read timeout in seconds (default 60) | +| `--cli-connect-timeout` | int | Socket connect timeout in seconds (default 60) | +| `--no-cli-pager` | boolean | Disable output pager | +| `--cli-auto-prompt` | boolean | Enable interactive parameter prompting | + +## Relationships +- Each listed service (400+) has its own subcommand namespace with service-specific operations +- `--query` uses **JMESPath** query language — a separate skill to learn for filtering JSON output +- `--profile` ties into the **AWS credentials and config files** (`~/.aws/credentials`, `~/.aws/config`) +- `--endpoint-url` is critical for **LocalStack**, **DynamoDB Local**, and other local development environments +- `--no-sign-request` is used for accessing **public resources** (e.g., public S3 buckets) +- Some services have multiple CLI namespaces (e.g., `s3` high-level commands vs `s3api` low-level API calls; `waf` vs `wafv2`) + +## Exam-Relevant Points +- **Output formats**: Know all six — `json` (default), `text`, `table`, `yaml`, `yaml-stream`, `off` +- **`--query`** uses JMESPath, not SQL or JSONPath +- **`--no-paginate`** returns only the first page; without it, CLI automatically paginates through all results +- **`--no-sign-request`** skips authentication entirely — useful for public endpoints +- `file://` vs `fileb://`: `fileb://` is always binary; `file://` behavior depends on `--cli-binary-format` +- Default timeouts are 60 seconds for both read and connect +- The `--endpoint-url` flag enables pointing the CLI at custom/local endpoints +- `--profile` overrides the default profile from `~/.aws/credentials` — essential for multi-account setups +- Notable service pairs: `s3`/`s3api`, `elb`/`elbv2`, `waf`/`wafv2`, `ses`/`sesv2`, `logs` (CloudWatch Logs), `events` (EventBridge), `ce` (Cost Explorer) + diff --git a/entries/2026/03/12/cli-latest-reference-cancel-update-stackhtml.md b/entries/2026/03/12/cli-latest-reference-cancel-update-stackhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..bd2ff002359ab108ab584fcdfa0421141f3a7882 --- /dev/null +++ b/entries/2026/03/12/cli-latest-reference-cancel-update-stackhtml.md @@ -0,0 +1,70 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/reference/cancel-update-stack.html +source: sources/cli-latest-reference-cancel-update-stackhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:43 + + + +## Overview +This is the top-level reference page for the AWS CLI (`aws` command), documenting the global options available across all service commands and listing every available service namespace. It covers CLI version 2.34.6. + +## Key Concepts +- The AWS CLI is a **unified tool** to manage all AWS services from the command line +- Command structure follows: `aws [options] [parameters]` +- Optional parameters are shown in square brackets in synopsis +- Built-in help: `aws command help` for specific commands, `aws help topics` for available topics +- Output formats supported: **json, text, table, yaml, yaml-stream, off** +- Error output formats: **legacy, json, yaml, text, table, enhanced** (enhanced is default) +- Binary blob formats: **base64** (default) vs **raw-in-base64-out** (V1 compatibility) +- `fileb://` always treats content as binary regardless of `cli-binary-format` setting; `file://` respects the setting +- Default socket read and connect timeouts are both **60 seconds**; set to 0 for blocking (no timeout) + +## Commands and Syntax +```bash +# Basic structure +aws [options] [parameters] + +# Key global options +--debug # Enable debug logging +--endpoint-url # Override default service endpoint +--no-verify-ssl # Skip SSL certificate verification +--no-paginate # Disable automatic pagination (single page only) +--output # json | text | table | yaml | yaml-stream | off +--query # JMESPath filter for response data +--profile # Use specific credential profile +--region # Override configured region +--version # Show CLI version +--color on|off|auto # Control color output +--no-sign-request # Skip request signing (no credentials loaded) +--ca-bundle # Custom CA certificate bundle +--cli-read-timeout # Socket read timeout (default 60) +--cli-connect-timeout # Socket connect timeout (default 60) +--cli-binary-format base64|raw-in-base64-out +--no-cli-pager # Disable output pager +--cli-auto-prompt # Enable interactive parameter prompting +--cli-error-format # legacy | json | yaml | text | table | enhanced +``` + +## Relationships +- **JMESPath** (`--query`) is the filtering language used across all CLI output — essential for scripting +- **Profiles** (`--profile`) tie into credentials configured via `aws configure` or `~/.aws/credentials` +- **Regions** (`--region`) override the default from `~/.aws/config` or `AWS_DEFAULT_REGION` env var +- **Endpoint URLs** (`--endpoint-url`) are used for VPC endpoints, LocalStack, or custom service endpoints +- The CLI wraps **all AWS service APIs** — each service listed maps to a corresponding AWS SDK service client +- Notable service groupings: `s3`/`s3api`/`s3control` (high-level vs low-level S3), `elbv2` vs `elb` (ALB/NLB vs Classic), `wafv2` vs `waf`/`waf-regional` + +## Exam-Relevant Points +- **`--no-paginate`** returns only the first page — important when scripting to avoid unexpected multi-page results +- **`--query`** uses JMESPath syntax, not SQL or JSONPath +- **`--no-sign-request`** allows accessing public resources (e.g., public S3 buckets) without credentials +- **`--output table`** is human-readable; **`--output json`** is for programmatic use; **`--output text`** is tab-delimited for `grep`/`awk` +- **`fileb://`** vs **`file://`**: `fileb://` always sends raw binary; `file://` behavior depends on `--cli-binary-format` +- Default timeouts are **60 seconds** for both connect and read +- The `--endpoint-url` flag is how you point the CLI at **VPC interface endpoints** or local testing environments +- **`--cli-auto-prompt`** enables an interactive mode useful for discovering parameters +- There are **400+** available service namespaces in CLI v2.34.6 + diff --git a/entries/2026/03/12/cli-latest-reference-cloudformation.md b/entries/2026/03/12/cli-latest-reference-cloudformation.md new file mode 100644 index 0000000000000000000000000000000000000000..31b497136ebbef80aaf5a2f4ead375da8fc87ce6 --- /dev/null +++ b/entries/2026/03/12/cli-latest-reference-cloudformation.md @@ -0,0 +1,66 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/reference/cloudformation +source: sources/cli-latest-reference-cloudformation.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:43 + + + +## Overview +This page documents the `aws cloudformation` CLI command group, which provides the interface for managing AWS CloudFormation — a service for declaratively provisioning and managing AWS infrastructure as code using templates that define collections of resources as "stacks." + +## Key Concepts +- **CloudFormation** enables predictable, repeatable infrastructure deployments by declaring resources and dependencies in template files +- A **stack** is a single unit comprising all resources defined in a template; resources are created/deleted together +- CloudFormation automatically **manages dependencies** between resources +- The service leverages other AWS products (EC2, EBS, SNS, ELB, Auto Scaling) for building reliable, scalable applications + +## Commands and Syntax +Commands organized by functional category: + +**Stack Lifecycle:** `create-stack`, `update-stack`, `delete-stack`, `deploy`, `rollback-stack`, `cancel-update-stack`, `continue-update-rollback` + +**Change Sets:** `create-change-set`, `describe-change-set`, `execute-change-set`, `delete-change-set`, `list-change-sets` + +**StackSets (multi-account/region):** `create-stack-set`, `update-stack-set`, `delete-stack-set`, `create-stack-instances`, `delete-stack-instances`, `import-stacks-to-stack-set` + +**Drift Detection:** `detect-stack-drift`, `detect-stack-resource-drift`, `detect-stack-set-drift`, `describe-stack-drift-detection-status`, `describe-stack-resource-drifts` + +**Inspection:** `describe-stacks`, `describe-stack-events`, `describe-stack-resources`, `get-template`, `get-template-summary`, `list-stacks`, `list-stack-resources`, `list-exports`, `list-imports` + +**Template/Resource Scanning:** `start-resource-scan`, `describe-resource-scan`, `create-generated-template`, `validate-template`, `estimate-template-cost` + +**Stack Refactoring:** `create-stack-refactor`, `execute-stack-refactor`, `describe-stack-refactor` + +**Type Registry:** `register-type`, `deregister-type`, `activate-type`, `deactivate-type`, `describe-type`, `list-types`, `publish-type`, `test-type` + +**Protection & Policy:** `set-stack-policy`, `get-stack-policy`, `update-termination-protection` + +**Organizations:** `activate-organizations-access`, `deactivate-organizations-access`, `describe-organizations-access` + +**Waiters:** `wait` (poll until stack reaches a desired state) + +## Relationships +- **IAM**: Stack operations require IAM permissions; service roles can be passed to CloudFormation +- **S3**: Templates larger than 51,200 bytes must be uploaded to S3 +- **CloudTrail**: API calls are logged for auditing +- **AWS Organizations**: StackSets can deploy across organizational units +- **EC2, EBS, SNS, ELB, Auto Scaling**: Commonly provisioned resource types +- **CloudFormation Registry**: Custom resource types and modules extend the service + +## Exam-Relevant Points +- Stacks manage resources as a **single unit** — all created/deleted together with automatic dependency ordering +- **Change sets** let you preview changes before executing them (critical for safe updates) +- **Drift detection** identifies when actual resource state diverges from the template +- **StackSets** enable multi-account, multi-region deployments +- **Termination protection** prevents accidental stack deletion +- **Stack policies** protect specific resources from being updated +- `validate-template` checks template syntax but does not guarantee successful deployment +- `continue-update-rollback` resumes a failed rollback +- `signal-resource` is used with wait conditions and CreationPolicy +- The `deploy` command is a higher-level command that creates change sets and executes them automatically +- **Resource scanning** and **generated templates** support importing existing resources into CloudFormation management + diff --git a/entries/2026/03/12/cli-latest-reference-cloudsearchdomain-upload-documentshtml.md b/entries/2026/03/12/cli-latest-reference-cloudsearchdomain-upload-documentshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..665b2638a6e7997c60f89006f92227af69fa18ee --- /dev/null +++ b/entries/2026/03/12/cli-latest-reference-cloudsearchdomain-upload-documentshtml.md @@ -0,0 +1,49 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/reference/cloudsearchdomain/upload-documents.html +source: sources/cli-latest-reference-cloudsearchdomain-upload-documentshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:44 + +## Overview +The `aws cloudsearchdomain upload-documents` command posts a batch of add and delete operations to an Amazon CloudSearch domain for indexing. It accepts document batches in JSON or XML format, with individual documents limited to 1 MB and total batch size limited to 5 MB. + +## Key Concepts +- **Document batch**: A collection of add and delete operations representing documents to add, update, or delete from a search domain +- **Document**: Each item you want returned as a search result, with a unique ID and one or more searchable fields +- **Size limits**: Individual documents max 1 MB; entire batch max 5 MB +- **Performance**: Group operations into batches close to the 5 MB limit; submitting many single-document batches can overload the domain's document service +- **Domain-specific endpoint**: The upload endpoint is unique per domain — retrieve it via `DescribeDomains` or the CloudSearch console dashboard +- **Streaming blob**: The `--documents` parameter is a streaming blob — pass a file path directly (no `file://` or `fileb://` prefix) + +## Commands and Syntax +```bash +# Upload a JSON document batch +aws cloudsearchdomain upload-documents \ + --endpoint-url https://doc-my-domain.us-west-1.cloudsearch.amazonaws.com \ + --content-type application/json \ + --documents document-batch.json +``` + +**Required parameters:** +- `--documents ` — the batch file (JSON or XML) +- `--content-type` — either `application/json` or `application/xml` + +**Output fields:** `status`, `adds` (count), `deletes` (count), `warnings` (list of messages) + +## Relationships +- **CloudSearch configuration service**: Use `DescribeDomains` to obtain the domain-specific document endpoint +- **Data preparation**: Documents must be formatted per the CloudSearch Developer Guide ("Preparing Your Data") +- **`suggest` command**: Previous command in the `cloudsearchdomain` subcommand group (search suggestions) +- **Indexing pipeline**: Uploaded documents must be indexed before they appear in search results + +## Exam-Relevant Points +- Individual document size limit is **1 MB**; batch limit is **5 MB** +- Supported content types are **application/json** and **application/xml** only +- The endpoint URL is **domain-specific**, not a generic CloudSearch endpoint +- The `--documents` argument is a **streaming blob** — provide a raw file path, not `file://` or `fileb://` +- Batching near the 5 MB limit is recommended to avoid overloading the document service +- The response includes counts of adds and deletes, plus any warnings from the document service + diff --git a/entries/2026/03/12/cli-latest-reference-cloudtrail-add-tagshtml.md b/entries/2026/03/12/cli-latest-reference-cloudtrail-add-tagshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..30c6da896fefd366047eecc78801e7932623b5cc --- /dev/null +++ b/entries/2026/03/12/cli-latest-reference-cloudtrail-add-tagshtml.md @@ -0,0 +1,60 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/reference/cloudtrail/add-tags.html +source: sources/cli-latest-reference-cloudtrail-add-tagshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:44 + + + +## Overview +The `aws cloudtrail add-tags` command adds one or more tags to CloudTrail resources including trails, event data stores, dashboards, or channels. It supports up to 50 tags per resource, overwrites existing tag values for duplicate keys, and requires tagging multi-region resources from their home Region. + +## Key Concepts +- **Taggable resources**: Trails, event data stores, dashboards, and channels +- **Tag limit**: Up to 50 tags per resource (tags-list parameter allows max 200 in a single call) +- **Key constraints**: Max 128 Unicode characters, must be unique per resource +- **Value constraints**: Max 256 Unicode characters; value is optional (defaults to null) +- **Overwrite behavior**: Specifying an existing key with a new value overwrites the old value +- **Home Region requirement**: Multi-region trails/event data stores can only be tagged from the Region where they were created + +## Commands and Syntax +```bash +# Basic usage +aws cloudtrail add-tags \ + --resource-id \ + --tags-list Key=,Value= ... + +# Example: add multiple tags to a trail +aws cloudtrail add-tags \ + --resource-id arn:aws:cloudtrail:us-east-1:123456789012:trail/Trail1 \ + --tags-list Key=name,Value=Alice Key=location,Value=us + +# JSON syntax for tags-list +--tags-list '[{"Key":"name","Value":"Alice"},{"Key":"location","Value":"us"}]' +``` + +**ARN formats:** +- Trail: `arn:aws:cloudtrail:::trail/` +- Event data store: `arn:aws:cloudtrail:::eventdatastore/` +- Dashboard: `arn:aws:cloudtrail:::dashboard/` +- Channel: `arn:aws:cloudtrail:::channel/` + +**Output**: None + +## Relationships +- **CloudTrail resource management**: Companion to `remove-tags`, `list-tags`, `create-trail`, `create-event-data-store` +- **Cost allocation**: Tags enable cost tracking via AWS Billing cost allocation tags +- **IAM**: Tag-based access control policies can use CloudTrail resource tags for conditional permissions +- **AWS Organizations**: Home Region restriction is relevant when managing org-wide trails + +## Exam-Relevant Points +- Tags on multi-region trails/event data stores **must be applied from the home Region** +- Tag keys must be **unique per resource** — duplicate keys overwrite values +- Tag key max length: **128 characters**; value max length: **256 characters** +- Maximum **50 tags** per resource +- A tag with no value is created with **value of null** +- Both `--resource-id` and `--tags-list` are **required** parameters + diff --git a/entries/2026/03/12/cli-latest-reference-cloudtrail-cancel-queryhtml.md b/entries/2026/03/12/cli-latest-reference-cloudtrail-cancel-queryhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ed0284470d87d2b7d0f59f0ac31680aee5cf4210 --- /dev/null +++ b/entries/2026/03/12/cli-latest-reference-cloudtrail-cancel-queryhtml.md @@ -0,0 +1,50 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/reference/cloudtrail/cancel-query.html +source: sources/cli-latest-reference-cloudtrail-cancel-queryhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:44 + + + +## Overview +The `aws cloudtrail cancel-query` command cancels a running CloudTrail Lake query that has not yet reached a terminal state. It requires a query ID (obtained from `StartQuery`) and optionally an event data store ARN. The query status may show as `CANCELLED` before the cancellation operation fully completes. + +## Key Concepts +- **Terminal states** that cannot be cancelled: `CANCELLED`, `FAILED`, `TIMED_OUT`, `FINISHED` +- **Non-terminal states** (cancellable): `QUEUED`, `RUNNING` +- The `QueryId` is a UUID (36-character, lowercase hex with hyphens) obtained from `StartQuery` +- Cancellation is **eventually consistent** — status may show `CANCELLED` before the operation finishes +- Supports **cross-account** queries via `--event-data-store-owner-account-id` + +## Commands and Syntax +```bash +# Cancel a running query +aws cloudtrail cancel-query \ + --query-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111" \ + --event-data-store "arn:aws:cloudtrail:us-east-1:123456789012:eventdatastore/EXAMPLE-ds-id" + +# Cross-account cancel +aws cloudtrail cancel-query \ + --query-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111" \ + --event-data-store-owner-account-id "123456789012" +``` + +**Required parameter:** `--query-id` +**Optional parameters:** `--event-data-store`, `--event-data-store-owner-account-id` + +## Relationships +- **StartQuery** → provides the `QueryId` needed for cancellation +- **CloudTrail Lake** → the query engine where queries run against event data stores +- **Event Data Stores** → the data source being queried; identified by ARN or ID suffix +- Related commands: `add-tags` (previous), `create-channel` (next) in the CloudTrail CLI namespace + +## Exam-Relevant Points +- Only queries in `QUEUED` or `RUNNING` state can be cancelled +- The `--event-data-store` parameter accepts either the full ARN or just the ID suffix +- Query IDs are exactly 36 characters (UUID format) +- The response returns the `QueryStatus` which may still show `RUNNING` immediately after cancellation +- Cross-account query cancellation is supported via the owner account ID parameter + diff --git a/entries/2026/03/12/cli-latest-reference-cloudtrail-create-channelhtml.md b/entries/2026/03/12/cli-latest-reference-cloudtrail-create-channelhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..e274b2038c5770cb759f82324a275c966e255049 --- /dev/null +++ b/entries/2026/03/12/cli-latest-reference-cloudtrail-create-channelhtml.md @@ -0,0 +1,57 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/reference/cloudtrail/create-channel.html +source: sources/cli-latest-reference-cloudtrail-create-channelhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:44 + + + +## Overview +The `aws cloudtrail create-channel` CLI command creates a CloudTrail channel for ingesting events from partner or external sources into CloudTrail Lake event data stores. Channels serve as the integration point between third-party/custom event sources and CloudTrail Lake. + +## Key Concepts +- **Channel**: An ingestion pathway that routes events from a partner or external source into CloudTrail Lake event data stores +- **Source**: Either `Custom` (for any non-AWS events) or a named partner event source; limited to one channel per source; immutable after creation +- **Destination**: An event data store (or AWS service) that receives events from the channel; specified by type and location (ARN) +- **Destination types**: `EVENT_DATA_STORE` (for Lake integrations) or `AWS_SERVICE` (for service-linked channels) +- Channel names: 3–128 chars, alphanumeric plus `._-` +- Up to 200 destinations per channel +- Up to 200 tags per channel + +## Commands and Syntax +```bash +# Basic create-channel +aws cloudtrail create-channel \ + --name my-partner-channel \ + --source "Custom" \ + --destinations Type=EVENT_DATA_STORE,Location=arn:aws:cloudtrail:us-east-1:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE + +# With tags +aws cloudtrail create-channel \ + --name my-channel \ + --source "PartnerName" \ + --destinations '[{"Type":"EVENT_DATA_STORE","Location":"arn:aws:cloudtrail:..."}]' \ + --tags Key=Environment,Value=Production +``` + +**Required parameters**: `--name`, `--source`, `--destinations` + +**Output fields**: `ChannelArn`, `Name`, `Source`, `Destinations`, `Tags` + +## Relationships +- **CloudTrail Lake**: Channels feed events into Lake event data stores — requires an existing event data store as destination +- **Partner integrations**: Works with CloudTrail Lake integration partners (source names listed in CloudTrail User Guide) +- **Event data stores**: The `Location` field references an event data store ARN, linking channels to Lake storage +- **Related commands**: `cancel-query` (previous), `create-dashboard` (next) in the CloudTrail CLI command set + +## Exam-Relevant Points +- A channel source **cannot be changed** after creation — it is immutable +- Only **one channel per source** is allowed +- The source value `Custom` is used for all non-AWS event sources +- Destination type `EVENT_DATA_STORE` is used for CloudTrail Lake integrations; `AWS_SERVICE` is for service-linked channels +- Channels are the mechanism for **third-party/external event ingestion** into CloudTrail Lake +- Maximum 200 destinations and 200 tags per channel + diff --git a/entries/2026/03/12/cli-latest-reference-cloudtrail-create-dashboardhtml.md b/entries/2026/03/12/cli-latest-reference-cloudtrail-create-dashboardhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..1051656d43c62ca2a3ab5b0cb16033d09eee060e --- /dev/null +++ b/entries/2026/03/12/cli-latest-reference-cloudtrail-create-dashboardhtml.md @@ -0,0 +1,62 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/reference/cloudtrail/create-dashboard.html +source: sources/cli-latest-reference-cloudtrail-create-dashboardhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:45 + + + +## Overview +The `aws cloudtrail create-dashboard` command creates a CloudTrail Lake dashboard — either a **custom dashboard** (with up to 10 query widgets against any event data store) or the **Highlights dashboard** (a managed summary of key user activities and API usage, auto-refreshed every 6 hours). + +## Key Concepts +- **Two dashboard types**: `CUSTOM` (user-defined queries, manual or scheduled refresh) and `MANAGED` (Highlights dashboard, CloudTrail-managed, 6-hour refresh) +- **Highlights dashboard** must be named exactly `AWSCloudTrail-Highlights` and requires a refresh schedule with `HOURS`/`6`/`ENABLED` +- **Widgets** contain a SQL `QueryStatement`, optional `QueryParameters` (`$StartTime$`, `$EndTime$`, `$Period$`), and required `ViewProperties` +- **Custom dashboards** support up to **10 widgets**; Highlights dashboard does not require widget specification +- **Termination protection** can prevent accidental deletion of a dashboard +- **Resource-based policies** are required: CloudTrail needs `StartQuery` permission on each event data store and `StartDashboardRefresh` permission on the dashboard itself (granted via `PutResourcePolicy`) +- **Tags**: up to 200 tags per dashboard (key max 128 chars, value max 256 chars) +- **Refresh schedule frequency**: HOURS (valid values: 1, 6, 12, 24) or DAYS (only value: 1) + +## Commands and Syntax +```bash +# Create a custom dashboard with a widget +aws cloudtrail create-dashboard \ + --name my-custom-dashboard \ + --widgets '[{"QueryStatement":"SELECT eventName, COUNT(*) FROM eds_id GROUP BY eventName","ViewProperties":{"chartType":"bar"}}]' \ + --refresh-schedule '{"Frequency":{"Unit":"HOURS","Value":6},"Status":"ENABLED","TimeOfDay":"00:00"}' + +# Create the Highlights dashboard (exact name required) +aws cloudtrail create-dashboard \ + --name AWSCloudTrail-Highlights \ + --refresh-schedule '{"Frequency":{"Unit":"HOURS","Value":6},"Status":"ENABLED"}' + +# Enable termination protection +aws cloudtrail create-dashboard \ + --name my-dashboard \ + --termination-protection-enabled \ + --widgets '[...]' +``` + +**Query parameter note**: When using `?` with `eventTime` in widget queries, wrap `?` in single quotes: `'?'`. + +## Relationships +- **CloudTrail Lake** — dashboards visualize data stored in event data stores +- **PutResourcePolicy** — must be called separately to grant CloudTrail permissions for query execution and refresh +- **Event Data Stores** — widgets can query across multiple event data stores within the same account +- **CloudWatch/IAM** — resource-based policies on event data stores and dashboards control access +- **create-event-data-store** — prerequisite; dashboards query against existing event data stores + +## Exam-Relevant Points +- Highlights dashboard name must be exactly `AWSCloudTrail-Highlights` — no other name works +- Highlights dashboard refresh is fixed at 6 hours (`Unit=HOURS`, `Value=6`); custom dashboards allow 1/6/12/24 hours or 1 day +- Dashboard type in output is `MANAGED` (Highlights) or `CUSTOM` +- Resource-based policies are required on **both** the event data store (`StartQuery`) and the dashboard (`StartDashboardRefresh`) for scheduled refresh +- Maximum 10 widgets per custom dashboard, maximum 200 tags +- Dashboard names: 3–128 characters, alphanumeric plus `_` and `-` +- Termination protection must be disabled before a dashboard can be deleted + diff --git a/entries/2026/03/12/cli-latest-reference-cloudtrail-create-event-data-storehtml.md b/entries/2026/03/12/cli-latest-reference-cloudtrail-create-event-data-storehtml.md new file mode 100644 index 0000000000000000000000000000000000000000..ebf2d82a24f773f8e97d85793cfc3fbf09b8ff71 --- /dev/null +++ b/entries/2026/03/12/cli-latest-reference-cloudtrail-create-event-data-storehtml.md @@ -0,0 +1,87 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/reference/cloudtrail/create-event-data-store.html +source: sources/cli-latest-reference-cloudtrail-create-event-data-storehtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:45 + + + +## Overview +The `aws cloudtrail create-event-data-store` CLI command creates a new CloudTrail Lake event data store (EDS), which is the storage component for CloudTrail Lake. It supports advanced event selectors for fine-grained event filtering, configurable retention periods, KMS encryption, multi-region and organization-wide collection, and two billing modes. + +## Key Concepts +- **Event Data Store (EDS)**: A CloudTrail Lake resource that stores events for querying via SQL; replaces/complements traditional trail-based S3 log delivery. +- **Advanced Event Selectors**: Fine-grained filters for management, data, and network activity events. Up to 5 per EDS. Support operators: `Equals`, `StartsWith`, `EndsWith`, `NotEquals`, `NotStartsWith`, `NotEndsWith`. **Wildcards (`*`) are not supported.** +- **Billing Modes**: + - `EXTENDABLE_RETENTION_PRICING` (default) — flexible retention up to 3653 days (~10 years), default 366 days. + - `FIXED_RETENTION_PRICING` — for high-volume ingestion (>25 TB/month), retention up to 2557 days (~7 years), default 2557 days. +- **Retention Period**: Min 7 days, max 3653 days. Events removed when `eventTime` exceeds retention period. +- **Termination Protection**: Prevents accidental deletion of the EDS; must be disabled before deletion. +- **Multi-Region**: Collects events from all regions (or only the creation region). +- **Organization-Enabled**: Collects events across all accounts in an AWS Organization. +- **KMS Encryption**: Optional; once associated, the KMS key cannot be changed or removed. Disabling/deleting the key blocks logging and querying. +- **Start Ingestion**: Defaults to `true`; can be set to `false` to create an EDS without immediately ingesting events. +- **EDS Status Values**: `CREATED`, `ENABLED`, `PENDING_DELETION`, `STARTING_INGESTION`, `STOPPING_INGESTION`, `STOPPED_INGESTION`. + +## Commands and Syntax +```bash +# Basic creation +aws cloudtrail create-event-data-store --name my-event-store + +# With retention, billing mode, and termination protection +aws cloudtrail create-event-data-store \ + --name my-event-store \ + --retention-period 365 \ + --billing-mode EXTENDABLE_RETENTION_PRICING \ + --termination-protection-enabled \ + --multi-region-enabled + +# With advanced event selectors (JSON) +aws cloudtrail create-event-data-store \ + --name my-event-store \ + --advanced-event-selectors '[ + { + "Name": "S3 data events only", + "FieldSelectors": [ + {"Field": "eventCategory", "Equals": ["Data"]}, + {"Field": "resources.type", "Equals": ["AWS::S3::Object"]} + ] + } + ]' + +# With KMS encryption +aws cloudtrail create-event-data-store \ + --name my-event-store \ + --kms-key-id arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012 + +# Create without starting ingestion +aws cloudtrail create-event-data-store --name my-event-store --no-start-ingestion +``` + +**Name constraints**: 3–128 chars, pattern `^[a-zA-Z0-9._\-]+$` + +## Relationships +- **CloudTrail Lake**: EDS is the primary storage unit for CloudTrail Lake, enabling SQL-based querying of events. +- **CloudTrail Trails**: Trail events can be copied into an EDS; retention must account for event age plus desired keep time. +- **AWS Config**: EDS can store Config configuration items via advanced event selectors. +- **AWS Audit Manager**: EDS can store Audit Manager evidence. +- **KMS**: Optional encryption integration; KMS multi-region keys supported. +- **AWS Organizations**: Organization-wide event collection when `--organization-enabled` is set. +- **CloudTrail Dashboards**: Related command `create-dashboard` for visualization; `create-trail` for traditional trail-based logging. + +## Exam-Relevant Points +- **Max 5 advanced event selectors per EDS** — hard limit. +- **Wildcards not supported** in selectors; use `StartsWith`/`EndsWith` operators instead. +- **KMS key is irrevocable** once associated — cannot be changed or removed from an EDS. +- **Retention limits differ by billing mode**: EXTENDABLE = up to 3653 days (10 yr); FIXED = up to 2557 days (7 yr). +- **FIXED_RETENTION_PRICING** is recommended for >25 TB/month ingestion. +- **Default billing mode** is `EXTENDABLE_RETENTION_PRICING` with 366-day default retention. +- **Termination protection** must be explicitly disabled before deleting an EDS. +- **Cannot mix event selectors and advanced event selectors** on the same trail. +- **Multi-region is optional** — EDS can be scoped to a single region. +- **`--no-start-ingestion`** creates the EDS without immediately collecting events. +- **Tags limit**: max 200 tags per EDS. + diff --git a/entries/2026/03/12/cli-latest-reference-cloudtrail-create-trailhtml.md b/entries/2026/03/12/cli-latest-reference-cloudtrail-create-trailhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..c0b55104b3b268f25b090ef9cedcd8404239a4e9 --- /dev/null +++ b/entries/2026/03/12/cli-latest-reference-cloudtrail-create-trailhtml.md @@ -0,0 +1,68 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/reference/cloudtrail/create-trail.html +source: sources/cli-latest-reference-cloudtrail-create-trailhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:45 + + + +## Overview +The `aws cloudtrail create-trail` CLI command creates a CloudTrail trail that specifies settings for delivering API activity log data to an Amazon S3 bucket. It supports options for multi-region logging, log file validation, CloudWatch Logs integration, KMS encryption, SNS notifications, and organization-wide trails. + +## Key Concepts +- **Trail**: A configuration that delivers CloudTrail log files to a specified S3 bucket +- **Multi-region trail**: Logs events in all AWS regions (best practice), vs. single-region default +- **Global service events**: Events from services like IAM that are not region-specific; included by default when multi-region is enabled +- **Log file integrity validation**: Creates digest files to verify log files haven't been tampered with; disabling breaks the digest chain after one hour +- **Organization trail**: Applies to all accounts in an AWS Organization; requires management account or delegated administrator +- **S3 key prefix**: Optional path prefix within the S3 bucket for log file organization (max 200 chars) +- **Trail name constraints**: 3–128 chars, ASCII alphanumeric plus `.`, `_`, `-`; no adjacent special chars; no IP format + +## Commands and Syntax +```bash +# Basic multi-region trail +aws cloudtrail create-trail \ + --name Trail1 \ + --s3-bucket-name amzn-s3-demo-bucket \ + --is-multi-region-trail + +# Full-featured trail with encryption, validation, and CloudWatch +aws cloudtrail create-trail \ + --name MyTrail \ + --s3-bucket-name my-bucket \ + --s3-key-prefix "logs/cloudtrail" \ + --is-multi-region-trail \ + --enable-log-file-validation \ + --kms-key-id alias/MyKey \ + --cloud-watch-logs-log-group-arn arn:aws:logs:us-east-1:123456789012:log-group:CloudTrail \ + --cloud-watch-logs-role-arn arn:aws:iam::123456789012:role/CloudTrailRole \ + --sns-topic-name my-topic \ + --is-organization-trail \ + --tags-list Key=Environment,Value=Production +``` + +**Required parameters**: `--name`, `--s3-bucket-name` + +**KMS key ID formats**: alias name (`alias/Name`), alias ARN, key ARN, or raw key UUID. + +## Relationships +- **S3**: Target bucket for log file delivery; bucket policy must permit CloudTrail writes +- **CloudWatch Logs**: Optional integration for real-time log monitoring and alerting (requires log group ARN + IAM role ARN) +- **SNS**: Optional notifications when log files are delivered +- **KMS**: Optional server-side encryption of log and digest files +- **AWS Organizations**: Organization trails cover all member accounts +- **IAM**: Global service events logging captures IAM API calls + +## Exam-Relevant Points +- Default trail is **single-region only**; best practice is `--is-multi-region-trail` +- `--enable-log-file-validation` is **disabled by default** — must be explicitly enabled +- Disabling log file validation **breaks the digest chain after one hour**; digest files are not retroactively created +- Organization trails require the caller to be the **management account or delegated administrator** +- A trail only delivers logs; it must be **started** separately (`start-logging`) after creation +- Trail names cannot be in IP address format and have specific character adjacency rules +- Tags are limited to **200 per trail**, keys max 128 chars, values max 256 chars +- `SnsTopicName` in output is deprecated; use `SnsTopicARN` instead + diff --git a/entries/2026/03/12/cli-latest-reference-cloudtrail-data-put-audit-eventshtml.md b/entries/2026/03/12/cli-latest-reference-cloudtrail-data-put-audit-eventshtml.md new file mode 100644 index 0000000000000000000000000000000000000000..b299f449b9b2bc5590eb7366592266605db7928b --- /dev/null +++ b/entries/2026/03/12/cli-latest-reference-cloudtrail-data-put-audit-eventshtml.md @@ -0,0 +1,58 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/reference/cloudtrail-data/put-audit-events.html +source: sources/cli-latest-reference-cloudtrail-data-put-audit-eventshtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:46 + + + +## Overview +The `put-audit-events` command is part of the `aws cloudtrail-data` CLI service and allows you to ingest application events from sources outside AWS into CloudTrail Lake. It accepts up to 100 events (or 1 MB) per request, each requiring a JSON payload and a unique event ID, sent to a specified CloudTrail Lake channel. + +## Key Concepts +- **CloudTrail Lake ingestion**: This is the mechanism for getting *external* (non-AWS) events into CloudTrail Lake for unified audit logging +- **Channel**: A CloudTrail Lake resource (identified by ARN) that acts as the ingestion endpoint; required for every `put-audit-events` call +- **Audit event structure**: Each event requires `eventData` (JSON content) and `id` (source event ID); optionally includes `eventDataChecksum` +- **Checksum**: Base64-encoded SHA-256 hash of the event data for integrity verification (`printf %s $eventdata | openssl dgst -binary -sha256 | base64`) +- **External ID**: Conditionally required when the channel's resource policy includes an external ID; adds a layer of cross-account security +- **Batch limits**: 1–100 events per request, max 1 MB total payload +- **Partial success model**: Response separates `successful` and `failed` lists — some events can fail while others succeed in the same batch + +## Commands and Syntax +```bash +# Basic usage +aws cloudtrail-data put-audit-events \ + --audit-events '[{"eventData":"{...}","id":"event-1"}]' \ + --channel-arn arn:aws:cloudtrail:us-east-1:123456789012:channel/abc123 + +# With checksum and external ID +aws cloudtrail-data put-audit-events \ + --audit-events '[{"eventData":"{...}","eventDataChecksum":"base64hash","id":"event-1"}]' \ + --channel-arn arn:aws:cloudtrail:us-east-1:123456789012:channel/abc123 \ + --external-id "my-external-id" + +# Compute checksum +printf %s "$eventdata" | openssl dgst -binary -sha256 | base64 +``` + +**Error codes in failed responses**: `FieldTooLong`, `FieldNotFound`, `InvalidChecksum`, `InvalidData`, `InvalidRecipient`, `InvalidEventSource`, `AccountNotSubscribed`, `Throttling`, `InternalFailure` + +## Relationships +- **CloudTrail Lake**: The storage and query backend that receives these events; events are queryable via CloudTrail Lake SQL queries +- **CloudTrail Lake Channels**: Must be pre-configured before calling `put-audit-events`; channels define the integration point +- **CloudTrail Lake Partner Integrations**: Partners use this same API to send events from SaaS applications +- **Resource Policies**: Channel resource policies control who can call `put-audit-events`, with optional external ID for cross-account access +- **CloudTrail Data API** (`cloudtrail-data-2021-08-11`): This is a separate service from the main CloudTrail API + +## Exam-Relevant Points +- `put-audit-events` is the **only** command in the `cloudtrail-data` service — it exists solely for external event ingestion into CloudTrail Lake +- Maximum **100 events** or **1 MB** per request +- Both `--audit-events` and `--channel-arn` are **required** parameters +- The response uses a **partial success model** — always check both `successful` and `failed` arrays +- The `external-id` parameter is conditionally required based on the **channel's resource policy**, not always +- Event IDs have constraints: max 128 chars, alphanumeric plus hyphens and underscores only (`^[-_A-Za-z0-9]+$`) +- The checksum formula is **base64(SHA-256(eventData))** — not hex-encoded + diff --git a/entries/2026/03/12/cli-latest-reference-cloudtrail-data.md b/entries/2026/03/12/cli-latest-reference-cloudtrail-data.md new file mode 100644 index 0000000000000000000000000000000000000000..f4ac76c8c5d161a09676a1f58e3c64f1752d3597 --- /dev/null +++ b/entries/2026/03/12/cli-latest-reference-cloudtrail-data.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/reference/cloudtrail-data/ +source: sources/cli-latest-reference-cloudtrail-data.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:46 + + + +## Overview +The `cloudtrail-data` AWS CLI command group provides the interface to the CloudTrail Data Service, which enables ingestion of events into CloudTrail from any source in hybrid environments — including on-premises applications, SaaS apps, VMs, and containers. This allows centralized logging and analysis via CloudTrail Lake without maintaining separate log aggregators. + +## Key Concepts +- **CloudTrail Data Service**: A service for ingesting *external* (non-AWS) events into CloudTrail +- **Hybrid environment support**: Covers on-premises, cloud-hosted SaaS, VMs, and containers +- **Single command service**: Only exposes `put-audit-events` — this is a narrowly scoped ingestion API +- **Purpose**: Eliminates need for multiple log aggregators by centralizing application activity in CloudTrail + +## Commands and Syntax +| Command | Purpose | +|---------|---------| +| `aws cloudtrail-data put-audit-events` | Ingest custom audit events into CloudTrail from external sources | + +Note: This is a separate service namespace (`cloudtrail-data`) from `cloudtrail` itself. + +## Relationships +- **CloudTrail Lake**: Ingested events are queried/analyzed using CloudTrail Lake (search, query, analysis) +- **CloudTrail**: Parent logging service; `cloudtrail-data` extends it to non-AWS sources +- **Event Data Stores**: External events land in CloudTrail Lake event data stores (integration event type) +- **IAM**: Requires `cloudtrail-data:PutAuditEvents` permission +- **Channel resources**: Events are ingested through CloudTrail Lake channels configured for external sources + +## Exam-Relevant Points +- `cloudtrail-data` is specifically for **non-AWS, external event sources** — not for AWS service events +- The **only** available command is `put-audit-events` +- This is the mechanism for getting **custom application logs into CloudTrail Lake** from hybrid environments +- This is a *separate* CLI namespace from `aws cloudtrail` — they are distinct services +- After ingestion, data is searchable via **CloudTrail Lake** queries, not standard CloudTrail event history + diff --git a/entries/2026/03/12/cli-latest-reference-cloudtrail-delete-channelhtml.md b/entries/2026/03/12/cli-latest-reference-cloudtrail-delete-channelhtml.md new file mode 100644 index 0000000000000000000000000000000000000000..9f95fd974e457412e04eca4f6c1692994b63dcc9 --- /dev/null +++ b/entries/2026/03/12/cli-latest-reference-cloudtrail-delete-channelhtml.md @@ -0,0 +1,41 @@ +--- +source_url: https://docs.aws.amazon.com/cli/latest/reference/cloudtrail/delete-channel.html +source: sources/cli-latest-reference-cloudtrail-delete-channelhtml.md +--- +# Overview + +**Date:** 2026-03-12 +**Time:** 00:46 + +## Overview +The `aws cloudtrail delete-channel` command deletes a CloudTrail channel. Channels are used for CloudTrail Lake integrations, allowing external event sources (partner or custom) to send events into CloudTrail Lake event data stores. + +## Key Concepts +- **Channel**: A CloudTrail Lake resource that receives events from external (non-AWS) sources; identified by ARN or UUID. +- **Deletion is permanent**: The command produces no output on success, indicating the channel is simply removed. +- **Channel identifier constraints**: Min 3 chars, max 256 chars, pattern `^[a-zA-Z0-9._/\-:]+$` — accepts both ARN format and UUID format. + +## Commands and Syntax +```bash +# Delete a channel by ARN +aws cloudtrail delete-channel \ + --channel arn:aws:cloudtrail:us-east-1:123456789012:channel/abc123-uuid + +# Delete a channel by UUID +aws cloudtrail delete-channel --channel abc123-uuid +``` + +**Output**: None (empty response on success). + +## Relationships +- **CloudTrail Lake**: Channels feed events into Lake event data stores; deleting a channel stops that integration. +- **Partner integrations**: Channels are created via `create-channel` for CloudTrail Lake partner integrations (e.g., third-party security tools). +- **Related commands**: `create-channel`, `get-channel`, `list-channels`, `update-channel`. +- **Adjacent CLI commands**: `create-trail` (previous), `delete-dashboard` (next) in the CloudTrail command set. + +## Exam-Relevant Points +- Channels are specific to **CloudTrail Lake integrations**, not traditional trails. +- The `--channel` parameter is **required** and accepts either an ARN or UUID. +- The command returns **no output** on success. +- Deleting a channel stops external event ingestion into the associated event data store but does not delete the event data store itself. + diff --git a/entries/2026/03/13/exam-strategy-next-rounds.md b/entries/2026/03/13/exam-strategy-next-rounds.md new file mode 100644 index 0000000000000000000000000000000000000000..073963378aaef4135c012f20680b29858b56d7a9 --- /dev/null +++ b/entries/2026/03/13/exam-strategy-next-rounds.md @@ -0,0 +1,78 @@ +# Exam Strategy: Next Rounds + +**Date:** 2026-03-13 +**Time:** 05:30 + +## Context + +Round 1 exams scored 89/90 (99%) across 6 topic areas. The one miss (durable Lambda functions vs Step Functions) was more valuable than the 89 correct answers — it exposed a real ambiguity in the belief set. Perfect scores suggest the questions are too closely aligned with existing beliefs and test recall rather than understanding. + +## Round 2: Scenario-Based Questions + +Questions that describe a real-world situation and ask which AWS service/pattern to use. Multiple answers seem plausible — the correct answer depends on subtle requirements. + +**Examples:** +- "Your application needs to process 10,000 messages/sec with strict ordering per customer. Which architecture?" (SQS FIFO with group IDs vs Kinesis with partition keys) +- "You need to migrate a legacy Oracle database with minimal downtime. Which approach?" (RDS Oracle vs DMS + Aurora PostgreSQL vs Schema Conversion Tool) +- "A Lambda function in a VPC needs to call DynamoDB. Internet access is not acceptable. What do you configure?" (VPC endpoint vs NAT gateway vs PrivateLink) + +**Goal:** Test architectural judgment, not recall. Find beliefs that are correct individually but lead to wrong conclusions when combined. + +## Round 3: Limits & Quotas + +Specific numbers that are easy to confuse between services. These questions validate whether beliefs about limits are precise. + +**Examples:** +- SQS message size (256 KB) vs SNS message size (256 KB) vs Lambda payload (6 MB sync / 256 KB async) +- RDS max storage (64 TB) vs Aurora max storage (128 TB) vs DynamoDB max item (400 KB) +- Lambda timeout (15 min) vs Step Functions max execution (1 year) vs SQS visibility timeout (12 hours max) +- Security groups per ENI (5 default) vs rules per SG (60 inbound default) vs NACLs per subnet (1) +- VPC CIDR range (/16 to /28) vs subnet CIDR minimum (/28) vs reserved IPs per subnet (5) + +**Goal:** Surface imprecise or stale beliefs about numerical limits. + +## Round 4: Anti-Patterns & "NOT True" Questions + +Questions where 3 options are correct and 1 is wrong, or that test common misconceptions. + +**Examples:** +- "Which statement about S3 is NOT true?" (tests belief precision) +- "Which of these is NOT a valid CloudFormation intrinsic function?" +- "Which service does NOT support VPC endpoints?" +- "RDS Multi-AZ does NOT provide which of the following?" (read scaling — it's for HA only) + +**Goal:** Validate that beliefs correctly exclude falsehoods, not just include truths. + +## Round 5: Cross-Service Integration + +Questions about how services work together — the "glue" knowledge a substrate expert needs. + +**Examples:** +- EventBridge vs SNS for event routing (when to use which) +- CloudTrail + Config + Security Hub integration for compliance +- Lambda + SQS vs Lambda + Kinesis for stream processing +- Transit Gateway vs VPC peering vs PrivateLink (when each is appropriate) +- CloudFormation vs CDK vs Terraform trade-offs + +**Goal:** Test integration knowledge that spans multiple belief clusters. Find gaps where individual service beliefs exist but cross-service understanding is missing. + +## Round 6: Operational & Troubleshooting + +Questions about what to do when things go wrong — the operational knowledge a substrate expert needs daily. + +**Examples:** +- "Your RDS instance is at 100% CPU. What do you check first?" +- "A CloudFormation stack update is stuck in UPDATE_ROLLBACK_FAILED. How do you recover?" +- "Lambda functions in your VPC can't reach the internet. What's missing?" +- "S3 replication is configured but objects aren't replicating. What are possible causes?" +- "A DynamoDB table is throttling reads. What are your options?" + +**Goal:** Test troubleshooting knowledge that requires understanding service internals, not just feature descriptions. + +## Priority Order + +1. **Round 2 (Scenarios)** — highest value, most likely to find real gaps +2. **Round 5 (Cross-Service)** — substrate experts need integration knowledge +3. **Round 6 (Operational)** — practical troubleshooting is underrepresented in beliefs +4. **Round 3 (Limits)** — precision testing, useful but lower priority +5. **Round 4 (Anti-Patterns)** — good for belief hygiene but less likely to find new gaps diff --git a/network.json b/network.json new file mode 100644 index 0000000000000000000000000000000000000000..2d14c7c1f397cc4c439b28e0d0c796b11537d519 --- /dev/null +++ b/network.json @@ -0,0 +1,29902 @@ +{ + "meta": { + "schema_version": "1.0", + "project_name": "reasons", + "created_at": "2026-05-28T19:29:39+00:00", + "updated_at": "2026-05-29T14:36:22+00:00", + "node_count": 2775, + "generator": "ftl-reasons/0.41.0" + }, + "nodes": { + "access-analyzer-start-resource-scan-empty-response": { + "text": "`StartResourceScan` returns HTTP 200 with no body on success \u2014 scan results must be retrieved separately via findings APIs (`ListFindings`/`GetFinding`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/access-analyzer-latest-APIReference-API_StartResourceScanhtml.md", + "source_url": "", + "source_hash": "78e26b5dd8604879", + "date": "2026-03-12", + "metadata": {} + }, + "access-analyzer-start-resource-scan-external-only": { + "text": "The `StartResourceScan` API action in IAM Access Analyzer works only with external access analyzers \u2014 not unused access analyzers or other analyzer types.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/access-analyzer-latest-APIReference-API_StartResourceScanhtml.md", + "source_url": "", + "source_hash": "78e26b5dd8604879", + "date": "2026-03-12", + "metadata": {} + }, + "access-analyzer-throttle-retry-after-seconds": { + "text": "IAM Access Analyzer throttling (429) and internal server (500) errors include a `retryAfterSeconds` field for backoff guidance.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/access-analyzer-latest-APIReference-API_StartResourceScanhtml.md", + "source_url": "", + "source_hash": "78e26b5dd8604879", + "date": "2026-03-12", + "metadata": {} + }, + "acm-certificates-are-regional": { + "text": "ACM certificates are regional resources \u2014 you cannot copy a certificate between regions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/acm-overview.md", + "source_url": "", + "source_hash": "b455beda05f0ea42", + "date": "2026-03-08", + "metadata": {} + }, + "acm-cloudfront-requires-us-east-1": { + "text": "For CloudFront, ACM certificates must be requested or imported in the us-east-1 (N. Virginia) region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/acm-overview.md", + "source_url": "", + "source_hash": "b455beda05f0ea42", + "date": "2026-03-08", + "metadata": {} + }, + "acm-elb-separate-cert-per-region": { + "text": "For ELB across multiple regions, you must request or import a separate ACM certificate per region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/acm-overview.md", + "source_url": "", + "source_hash": "b455beda05f0ea42", + "date": "2026-03-08", + "metadata": {} + }, + "acm-imported-certs-support-self-signed": { + "text": "Self-signed certificates are supported in ACM through the import mechanism.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/acm-getting-started.md", + "source_url": "", + "source_hash": "6861e8d35289c8fe", + "date": "2026-03-08", + "metadata": {} + }, + "acm-no-additional-charge": { + "text": "ACM itself is free \u2014 there is no additional charge for SSL/TLS certificate management; you only pay for underlying AWS resources.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/acm-overview.md", + "source_url": "", + "source_hash": "b455beda05f0ea42", + "date": "2026-03-08", + "metadata": {} + }, + "acm-not-for-standalone-ec2": { + "text": "ACM certificates cannot be used directly on standalone EC2 web servers \u2014 only with integrated AWS services (ELB, CloudFront, etc.).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/acm-overview.md", + "source_url": "", + "source_hash": "b455beda05f0ea42", + "date": "2026-03-08", + "metadata": {} + }, + "acm-private-ca-certs-exportable": { + "text": "Certificates signed by AWS Private CA can be exported for use in internal PKI.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/acm-overview.md", + "source_url": "", + "source_hash": "b455beda05f0ea42", + "date": "2026-03-08", + "metadata": {} + }, + "acm-private-ca-cross-account-sharing": { + "text": "AWS Private CA supports cross-account sharing of certificate authorities.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/acm-getting-started.md", + "source_url": "", + "source_hash": "6861e8d35289c8fe", + "date": "2026-03-08", + "metadata": {} + }, + "acm-private-ca-not-trusted-by-default": { + "text": "Certificates signed by AWS Private CA are not publicly trusted by default \u2014 administrators must install them in client trust stores.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/acm-getting-started.md", + "source_url": "", + "source_hash": "6861e8d35289c8fe", + "date": "2026-03-08", + "metadata": {} + }, + "acm-public-cert-ec2-requires-nitro-enclave": { + "text": "Public ACM certificates can only be installed on EC2 instances connected to a Nitro Enclave, or exported for use on any EC2 instance.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/acm-getting-started.md", + "source_url": "", + "source_hash": "6861e8d35289c8fe", + "date": "2026-03-08", + "metadata": {} + }, + "acm-supports-ipv4-and-ipv6": { + "text": "ACM supports both IPv4 and IPv6 on public endpoints.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/acm-overview.md", + "source_url": "", + "source_hash": "b455beda05f0ea42", + "date": "2026-03-08", + "metadata": {} + }, + "acm-supports-multiple-domain-types": { + "text": "ACM certificates can secure singular domain names, multiple specific domains, wildcard domains, or combinations of these on a single certificate.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/acm-overview.md", + "source_url": "", + "source_hash": "b455beda05f0ea42", + "date": "2026-03-08", + "metadata": {} + }, + "acm-supports-wildcard-certificates": { + "text": "ACM wildcard certificates protect an unlimited number of subdomains.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/acm-overview.md", + "source_url": "", + "source_hash": "b455beda05f0ea42", + "date": "2026-03-08", + "metadata": {} + }, + "acm-three-certificate-types": { + "text": "ACM manages three certificate types: public (issued by ACM), private (signed by AWS Private CA), and imported (third-party or self-signed).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/acm-getting-started.md", + "source_url": "", + "source_hash": "6861e8d35289c8fe", + "date": "2026-03-08", + "metadata": {} + }, + "administrator-access-policy-never-updated-v1": { + "text": "The AdministratorAccess managed policy is version v1 and has never been modified since its creation on February 6, 2015.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AdministratorAccesshtml.md", + "source_url": "", + "source_hash": "83d044ad28bcdcbc", + "date": "2026-03-12", + "metadata": {} + }, + "administrator-access-policy-wildcard-action-resource": { + "text": "The AdministratorAccess managed policy uses `\"Action\": \"*\"` and `\"Resource\": \"*\"` in a single Allow statement, granting unrestricted access to every AWS API on every resource.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AdministratorAccesshtml.md", + "source_url": "", + "source_hash": "83d044ad28bcdcbc", + "date": "2026-03-12", + "metadata": {} + }, + "amazon-chime-end-of-support-feb-2026": { + "text": "Amazon Chime (the service, not the SDK) reached end of support on February 20, 2026; the Amazon Chime SDK is unaffected.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/chime-latest-ag-cloudtrailhtml.md", + "source_url": "", + "source_hash": "b3d7e1385dbed110", + "date": "2026-03-12", + "metadata": {} + }, + "amazon-mq-cloudtrail-control-plane-only": { + "text": "Amazon MQ CloudTrail integration logs only control-plane API calls; ActiveMQ data-plane operations (message send/receive) and the ActiveMQ Web Console are NOT logged by CloudTrail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazon-mq-latest-developer-guide-security-logging-monitoring-cloudtrailhtml.md", + "source_url": "", + "source_hash": "249283aa0312bc14", + "date": "2026-03-12", + "metadata": {} + }, + "amazon-mq-cloudtrail-get-responses-redacted": { + "text": "Amazon MQ GET/Describe/List API responses are redacted in CloudTrail logs; only request parameters are recorded.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazon-mq-latest-developer-guide-security-logging-monitoring-cloudtrailhtml.md", + "source_url": "", + "source_hash": "249283aa0312bc14", + "date": "2026-03-12", + "metadata": {} + }, + "amazon-mq-cloudtrail-passwords-masked": { + "text": "Amazon MQ masks `data` and `password` fields (replaced with `***`) in CloudTrail logs for CreateBroker, CreateUser, UpdateConfiguration, and UpdateUser operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazon-mq-latest-developer-guide-security-logging-monitoring-cloudtrailhtml.md", + "source_url": "", + "source_hash": "249283aa0312bc14", + "date": "2026-03-12", + "metadata": {} + }, + "amazon-mq-cloudwatch-for-data-plane-logging": { + "text": "Amazon MQ data-plane and ActiveMQ operation logging requires CloudWatch Logs (general and audit logs), not CloudTrail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazon-mq-latest-developer-guide-security-logging-monitoring-cloudtrailhtml.md", + "source_url": "", + "source_hash": "249283aa0312bc14", + "date": "2026-03-12", + "metadata": {} + }, + "amazon-mq-for-legacy-broker-migration": { + "text": "Amazon MQ is recommended for migrating legacy broker-based applications (ActiveMQ, RabbitMQ); SQS and SNS are recommended for new cloud-native applications.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-overview.md", + "source_url": "", + "source_hash": "13faf36e12b9e289", + "date": "2026-03-08", + "metadata": {} + }, + "amazon-mq-reboot-logging-manual-only": { + "text": "Amazon MQ RebootBroker events are logged in CloudTrail only for manual reboots, not for automatic maintenance window reboots.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazon-mq-latest-developer-guide-security-logging-monitoring-cloudtrailhtml.md", + "source_url": "", + "source_hash": "249283aa0312bc14", + "date": "2026-03-12", + "metadata": {} + }, + "amazonq-developer-event-source": { + "text": "Amazon Q Developer Pro uses `q.amazonaws.com` as the CloudTrail event source; Amazon Q Business uses `qbusiness.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazonq-latest-aws-builder-use-ug-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "69f6e96774cfcd89", + "date": "2026-03-12", + "metadata": {} + }, + "amazonq-dryrun-calls-logged-cloudtrail": { + "text": "Amazon Q makes API calls with `dryRun: true` to verify permissions without executing \u2014 these are logged in CloudTrail and distinguishable from actual actions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazonq-latest-aws-builder-use-ug-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "69f6e96774cfcd89", + "date": "2026-03-12", + "metadata": {} + }, + "amazonq-passrequest-invokedby-masks-user-ip": { + "text": "When Amazon Q calls other AWS APIs on behalf of a user (PassRequest), the CloudTrail event shows both `sourceIPAddress` and `invokedBy` as `q.amazonaws.com`, not the user's IP.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazonq-latest-aws-builder-use-ug-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "69f6e96774cfcd89", + "date": "2026-03-12", + "metadata": {} + }, + "ami-block-device-mapping": { + "text": "The block device mapping in an AMI determines what storage volumes are attached to the instance at launch.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-amis.md", + "source_url": "", + "source_hash": "0ea7bede8cd085c0", + "date": "2026-03-08", + "metadata": {} + }, + "ami-boot-mode-uefi-or-legacy-bios": { + "text": "AMIs specify a boot mode of either UEFI or Legacy BIOS.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-amis.md", + "source_url": "", + "source_hash": "0ea7bede8cd085c0", + "date": "2026-03-08", + "metadata": {} + }, + "ami-create-from-running-instance": { + "text": "A custom AMI can be created from an existing EC2 instance to capture its configuration as a reusable image.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-amis.md", + "source_url": "", + "source_hash": "0ea7bede8cd085c0", + "date": "2026-03-08", + "metadata": {} + }, + "ami-cross-region-copy": { + "text": "AMIs can be copied across AWS Regions to support multi-region deployments.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-amis.md", + "source_url": "", + "source_hash": "0ea7bede8cd085c0", + "date": "2026-03-08", + "metadata": {} + }, + "ami-ebs-backed-vs-instance-store-backed": { + "text": "AMIs can be EBS-backed or instance-store-backed, referring to the root volume type \u2014 this distinction affects instance behavior (persistence, stop/start capability).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-amis.md", + "source_url": "", + "source_hash": "0ea7bede8cd085c0", + "date": "2026-03-08", + "metadata": {} + }, + "ami-five-scoping-attributes": { + "text": "An AMI is scoped by five attributes: Region, Operating System, Processor Architecture, Root Volume Type, and Virtualization Type.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-amis.md", + "source_url": "", + "source_hash": "0ea7bede8cd085c0", + "date": "2026-03-08", + "metadata": {} + }, + "ami-must-match-instance-type": { + "text": "The AMI used to launch an instance must be compatible with the chosen instance type (architecture and virtualization type must match).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-amis.md", + "source_url": "", + "source_hash": "0ea7bede8cd085c0", + "date": "2026-03-08", + "metadata": {} + }, + "ami-one-to-many-instances": { + "text": "A single AMI can be used to launch multiple identical EC2 instances.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-amis.md", + "source_url": "", + "source_hash": "0ea7bede8cd085c0", + "date": "2026-03-08", + "metadata": {} + }, + "ami-preconfigured-template-os-and-software": { + "text": "An Amazon Machine Image (AMI) is a preconfigured template containing the OS and software needed to launch an EC2 instance.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-overview.md", + "source_url": "", + "source_hash": "a05ef19b46dfd005", + "date": "2026-03-08", + "metadata": {} + }, + "ami-region-specific": { + "text": "AMIs are region-specific \u2014 an AMI must be copied to another region before it can be used to launch instances there.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-amis.md", + "source_url": "", + "source_hash": "0ea7bede8cd085c0", + "date": "2026-03-08", + "metadata": {} + }, + "ami-sharing-across-accounts-and-marketplace": { + "text": "AMIs can be shared with other AWS accounts or sold via AWS Marketplace; sources include AWS-provided, public community, shared (from other accounts), and AWS Marketplace AMIs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-amis.md", + "source_url": "", + "source_hash": "0ea7bede8cd085c0", + "date": "2026-03-08", + "metadata": {} + }, + "amplify-three-event-sources": { + "text": "AWS Amplify logs to CloudTrail via three API surfaces with different event sources: `amplify.amazonaws.com` (Console API), `amplifybackend.amazonaws.com` (Admin UI API), and UI Builder API.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amplify-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "10090e7af5a7cb00", + "date": "2026-03-12", + "metadata": {} + }, + "amplify-v6-recommended-appsync-client": { + "text": "Amplify v6 is the AWS-recommended client library for connecting to AppSync GraphQL APIs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-building-a-client-apphtml.md", + "source_url": "", + "source_hash": "5195bb2a0a226402", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-account-resource-one-per-region": { + "text": "The `AWS::ApiGateway::Account` CloudFormation resource configures the IAM role API Gateway uses to write CloudWatch logs, and is configured once per region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_ApiGatewayhtml.md", + "source_url": "", + "source_hash": "bd2c55e101289583", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-account-throttle-10k-rps-5k-burst": { + "text": "API Gateway account-level throttling defaults are 10,000 requests per second steady-state and 5,000 concurrent burst.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-historyhtml.md", + "source_url": "", + "source_hash": "138d236bf2b68cad", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-body-transform-in-integration-not-method": { + "text": "API Gateway body transformations happen in Integration Request/Response, not in Method Request/Response \u2014 the MethodResponse cannot modify the response body.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-rest-api-develophtml.md", + "source_url": "", + "source_hash": "5cef52a4d4dabe6c", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-cache-metrics-hitcount-misscount": { + "text": "API Gateway CacheHitCount and CacheMissCount CloudWatch metrics are used to evaluate cache effectiveness.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-monitoring-cloudwatchhtml.md", + "source_url": "", + "source_hash": "1bc5ac36890fb943", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-client-certificate-backend-mtls": { + "text": "API Gateway ClientCertificate is used for mutual TLS authentication between API Gateway and the backend, not for client-facing TLS.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-api-API_Operationshtml.md", + "source_url": "", + "source_hash": "fcbe41479a1ed1f1", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-cloudwatch-metrics-one-minute-15-month-retention": { + "text": "API Gateway sends metrics to CloudWatch automatically in one-minute periods, retained for 15 months.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-monitoring-cloudwatchhtml.md", + "source_url": "", + "source_hash": "1bc5ac36890fb943", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-custom-domain-requires-acm-cert": { + "text": "API Gateway custom domain names require an ACM certificate (or imported certificate if ACM is unavailable in the Region).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-how-to-custom-domainshtml.md", + "source_url": "", + "source_hash": "5df5bb8152dc054b", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-custom-domain-unique-per-region-all-accounts": { + "text": "API Gateway custom domain names must be unique per Region across all AWS accounts.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-how-to-custom-domainshtml.md", + "source_url": "", + "source_hash": "5df5bb8152dc054b", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-default-endpoint-disable-returns-403": { + "text": "The API Gateway default endpoint (`api-id.execute-api.region.amazonaws.com`) can be disabled, which returns 403 Forbidden (not a connection refusal).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-how-to-custom-domainshtml.md", + "source_url": "", + "source_hash": "5df5bb8152dc054b", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-http-api-endpoint-type-regional-only": { + "text": "HTTP APIs support only regional endpoint types; REST APIs support edge-optimized, regional, and private endpoints.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-http-api-vs-resthtml.md", + "source_url": "", + "source_hash": "c1205c4486d26e9a", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-http-api-only-features": { + "text": "HTTP API exclusive features include: native JWT authorizers, automatic deployments, AWS Cloud Map private integrations, and built-in CORS support.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-http-api-vs-resthtml.md", + "source_url": "", + "source_hash": "c1205c4486d26e9a", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-lambda-core-serverless-pattern": { + "text": "API Gateway combined with AWS Lambda forms the app-facing part of the AWS serverless infrastructure \u2014 this is the core AWS serverless API pattern.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-welcomehtml.md", + "source_url": "", + "source_hash": "3e58097590910c84", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-latency-vs-integration-latency": { + "text": "API Gateway Latency metric measures full round-trip time; IntegrationLatency measures backend-only time. The delta reveals API Gateway overhead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-monitoring-cloudwatchhtml.md", + "source_url": "", + "source_hash": "1bc5ac36890fb943", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-mtls-rest-and-http-apis": { + "text": "API Gateway supports mutual TLS (mTLS) for both REST APIs and HTTP APIs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-historyhtml.md", + "source_url": "", + "source_hash": "138d236bf2b68cad", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-multi-level-mappings-require-regional-tls12": { + "text": "API Gateway multi-level API mappings require a Regional custom domain name with TLS 1.2 security policy.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-how-to-custom-domainshtml.md", + "source_url": "", + "source_hash": "5df5bb8152dc054b", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-proxy-vs-nonproxy-integration": { + "text": "In API Gateway proxy integration, requests/responses pass through unchanged; in non-proxy integration, mapping templates transform requests in Integration Request and responses in Integration Response.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-rest-api-develophtml.md", + "source_url": "", + "source_hash": "5cef52a4d4dabe6c", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-rest-api-caching-get-methods-default": { + "text": "When API Gateway stage caching is enabled, only GET methods have caching enabled by default.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-historyhtml.md", + "source_url": "", + "source_hash": "138d236bf2b68cad", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-rest-api-minimum-five-resources": { + "text": "A CloudFormation REST API deployment requires at minimum five resource types: RestApi, Resource, Method, Deployment, and Stage.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_ApiGatewayhtml.md", + "source_url": "", + "source_hash": "bd2c55e101289583", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-rest-api-only-features": { + "text": "REST APIs exclusively support: API keys, per-client throttling, request validation, WAF integration, caching, canary releases, private endpoints, edge-optimized endpoints, mock integrations, X-Ray tracing, execution logs, and resource policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-http-api-vs-resthtml.md", + "source_url": "", + "source_hash": "c1205c4486d26e9a", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-rest-api-synchronous-only": { + "text": "API Gateway REST API interactions are all synchronous \u2014 there is no async invocation pattern at the API Gateway level.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-rest-api-develophtml.md", + "source_url": "", + "source_hash": "5cef52a4d4dabe6c", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-rest-api-v1-deployment-model": { + "text": "API Gateway REST API (v1) changes don't take effect until a Deployment is created and associated with a Stage \u2014 the deployment is an immutable snapshot.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-api-API_Operationshtml.md", + "source_url": "", + "source_hash": "fcbe41479a1ed1f1", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-rest-api-vs-v2-http-websocket": { + "text": "API Gateway REST API (v1) uses the `apigateway` service namespace; HTTP APIs and WebSocket APIs use API Gateway V2 (`apigatewayv2`) with a different, smaller API surface.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-api-API_Operationshtml.md", + "source_url": "", + "source_hash": "fcbe41479a1ed1f1", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-streaming-8-null-byte-delimiter": { + "text": "API Gateway Lambda streaming output format requires metadata JSON followed by exactly 8 null bytes as a delimiter before the streamed payload, and the metadata must appear within the first 16KB of stream data.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-response-transfer-mode-lambdahtml.md", + "source_url": "", + "source_hash": "41a47397bd0b399a", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-streaming-requires-mode-and-format": { + "text": "API Gateway Lambda response streaming requires both the response transfer mode set to `Stream` and function code adhering to the required metadata+delimiter format \u2014 mismatched combinations return a 500 error or missing response body.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-response-transfer-mode-lambdahtml.md", + "source_url": "", + "source_hash": "41a47397bd0b399a", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-streaming-uses-invoke-with-response-stream": { + "text": "API Gateway Lambda response streaming uses the `InvokeWithResponseStream` Lambda API instead of the standard `Invoke` API.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-response-transfer-mode-lambdahtml.md", + "source_url": "", + "source_hash": "41a47397bd0b399a", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-supports-canary-release-deployments": { + "text": "API Gateway supports canary release deployments for safe rollout of API changes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-welcomehtml.md", + "source_url": "", + "source_hash": "3e58097590910c84", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-three-api-types": { + "text": "API Gateway supports three API types: REST APIs, HTTP APIs, and WebSocket APIs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-historyhtml.md", + "source_url": "", + "source_hash": "138d236bf2b68cad", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-three-auth-mechanisms": { + "text": "API Gateway REST APIs support three authorization mechanisms: IAM permissions, Lambda authorizers, and Amazon Cognito user pools.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-rest-api-develophtml.md", + "source_url": "", + "source_hash": "5cef52a4d4dabe6c", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-tls-1-3-regional-rest-http-websocket": { + "text": "API Gateway supports TLS 1.3 for Regional REST APIs, HTTP APIs, and WebSocket APIs (added February 2024).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-historyhtml.md", + "source_url": "", + "source_hash": "138d236bf2b68cad", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-usage-plan-apikey-three-resources": { + "text": "API Gateway throttling and quota control uses three resources together: UsagePlan (throttle/quota limits), ApiKey (credential), and UsagePlanKey (association between them).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-api-API_Operationshtml.md", + "source_url": "", + "source_hash": "fcbe41479a1ed1f1", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-usage-plans-throttle-meter-api-keys": { + "text": "API Gateway usage plans provide throttling and metering of API requests, associated with API keys and stages.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-rest-api-develophtml.md", + "source_url": "", + "source_hash": "5cef52a4d4dabe6c", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-v1-rest-v2-http-websocket": { + "text": "API Gateway V1 (`AWS::ApiGateway::*`) handles REST APIs; API Gateway V2 (`AWS::ApiGatewayV2::*`) handles HTTP APIs and WebSocket APIs \u2014 they use different CloudFormation namespaces.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_ApiGatewayV2html.md", + "source_url": "", + "source_hash": "61f1a20416790b54", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-v1-rest-websocket-v2-http": { + "text": "API Gateway V1 API covers REST and WebSocket APIs (`apigateway` namespace); V2 API covers HTTP and WebSocket APIs (`apigatewayv2` namespace). CloudFormation uses `AWS::ApiGateway` for V1 and `AWS::ApiGatewayV2` for V2.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigatewayv2-latest-api-reference-api-referencehtml.md", + "source_url": "", + "source_hash": "9d175cf7b77b02d7", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-v2-http-api-lower-cost-lower-latency": { + "text": "HTTP APIs (API Gateway V2) are lower-cost and lower-latency than REST APIs (V1) but have fewer features.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_ApiGatewayV2html.md", + "source_url": "", + "source_hash": "61f1a20416790b54", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-v2-stages-support-auto-deploy": { + "text": "API Gateway V2 stages support auto-deploy, unlike V1 REST APIs which require explicit deployments.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_ApiGatewayV2html.md", + "source_url": "", + "source_hash": "61f1a20416790b54", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-vpclink-required-for-private-integrations": { + "text": "API Gateway VpcLink is required for private integrations connecting API Gateway to backend services inside a VPC (ALB, NLB, ECS).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_ApiGatewayV2html.md", + "source_url": "", + "source_hash": "61f1a20416790b54", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-vpclink-requires-nlb": { + "text": "API Gateway VpcLink connects REST APIs to private VPC resources via Network Load Balancers (NLB) \u2014 required for private integrations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-api-API_Operationshtml.md", + "source_url": "", + "source_hash": "fcbe41479a1ed1f1", + "date": "2026-03-12", + "metadata": {} + }, + "apigateway-websocket-apis-launched-dec-2018": { + "text": "API Gateway WebSocket APIs launched December 2018; HTTP APIs launched December 2019 (beta) and March 2020 (GA).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-historyhtml.md", + "source_url": "", + "source_hash": "138d236bf2b68cad", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-apigateway-vs-execute-api-planes": { + "text": "API Gateway has two service components: `apigateway` (management plane for API creation) and `execute-api` (data plane for API invocation) \u2014 this distinction matters for IAM policy actions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-api-gateway-overview-developer-experiencehtml.md", + "source_url": "", + "source_hash": "75c775fe644a4f70", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-aws-config-four-resource-types": { + "text": "AWS Config supports four API Gateway resource types: `AWS::ApiGateway::RestApi`, `AWS::ApiGateway::Stage`, `AWS::ApiGatewayV2::Api`, and `AWS::ApiGatewayV2::Stage`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-confightml.md", + "source_url": "", + "source_hash": "e8ca87eeb66f1f0e", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-canary-blocks-stage-redeployment": { + "text": "A stage with an active canary cannot be reassociated with a different deployment until the canary is disabled and its settings removed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-canary-releasehtml.md", + "source_url": "", + "source_hash": "db78e5016c4ac2aa", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-canary-cache-separate-when-different-versions": { + "text": "API Gateway canary and production use separate cache keys when pointing to different deployment versions, but share a single cache key when pointing to the same version.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-canary-releasehtml.md", + "source_url": "", + "source_hash": "db78e5016c4ac2aa", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-canary-separate-cloudwatch-logs": { + "text": "API Gateway canary releases produce separate CloudWatch log groups from production, with `/Canary` appended to the standard log group name.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-canary-releasehtml.md", + "source_url": "", + "source_hash": "db78e5016c4ac2aa", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-canary-traffic-percentage-0-to-100": { + "text": "API Gateway canary release traffic percentage is configurable between 0.0 and 100.0 inclusive.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-canary-releasehtml.md", + "source_url": "", + "source_hash": "db78e5016c4ac2aa", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-cleanup-four-resources": { + "text": "Cleaning up a Lambda-backed API Gateway setup requires deleting four separate resources: the API, the Lambda function, the CloudWatch log group, and the IAM execution role.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-getting-startedhtml.md", + "source_url": "", + "source_hash": "2568b755c72aa427", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-client-ssl-verifies-backend-not-client": { + "text": "API Gateway client-side SSL certificates verify that HTTP requests to the backend originate from API Gateway \u2014 they do not verify client-to-API-Gateway connections.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-control-access-to-apihtml.md", + "source_url": "", + "source_hash": "b04d05efed389099", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-cloudtrail-event-source": { + "text": "The CloudTrail eventSource for API Gateway events is `apigateway.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-cloudtrailhtml.md", + "source_url": "", + "source_hash": "f806191a86ac2356", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-cloudtrail-excludes-testinvoke": { + "text": "API Gateway's TestInvokeAuthorizer and TestInvokeMethod operations are not logged in CloudTrail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-cloudtrailhtml.md", + "source_url": "", + "source_hash": "f806191a86ac2356", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-config-changes-require-redeployment": { + "text": "Changing `binaryMediaTypes`, `minimumCompressionSize`, or `apiKeySource` on a REST API (or `apiKeySelectionExpression` on V2) requires redeployment \u2014 AWS Config shows the change immediately but runtime behavior is unchanged until redeployed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-confightml.md", + "source_url": "", + "source_hash": "e8ca87eeb66f1f0e", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-default-endpoint-type-regional": { + "text": "The default API Gateway REST API endpoint type is Regional.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-getting-started-rest-new-consolehtml.md", + "source_url": "", + "source_hash": "c299e6a9f08d2fae", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-deployment-must-associate-stage": { + "text": "An API Gateway deployment must be associated with a stage to be invocable by clients; a deployment is a point-in-time snapshot of the API.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-api-gateway-basic-concepthtml.md", + "source_url": "", + "source_hash": "f6f329540a19bdc6", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-edge-optimized-default-endpoint": { + "text": "Edge-optimized is the default API Gateway endpoint type; it routes through a CloudFront distribution even for same-region clients.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-api-gateway-basic-concepthtml.md", + "source_url": "", + "source_hash": "f6f329540a19bdc6", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-endpoint-hostname-format": { + "text": "API Gateway endpoint hostname format is `{api-id}.execute-api.{region}.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-api-gateway-basic-concepthtml.md", + "source_url": "", + "source_hash": "f6f329540a19bdc6", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-http-api-cheaper-lower-latency-fewer-features": { + "text": "HTTP APIs are cheaper and lower latency than REST APIs but have fewer features (no SDK generation, no API documentation, limited request validation and usage plans).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-api-gateway-overview-developer-experiencehtml.md", + "source_url": "", + "source_hash": "75c775fe644a4f70", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-http-api-integration-targets": { + "text": "HTTP APIs support integrations with Lambda, HTTP endpoints, private VPC resources, and AWS services (SQS, Step Functions, Kinesis).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-getting-startedhtml.md", + "source_url": "", + "source_hash": "2568b755c72aa427", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-http-api-lower-cost-fewer-features": { + "text": "API Gateway HTTP APIs are lower cost than REST APIs but support fewer features.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-getting-startedhtml.md", + "source_url": "", + "source_hash": "2568b755c72aa427", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-invoke-url-format": { + "text": "API Gateway invoke URL format is `https://{api-id}.execute-api.{region}.amazonaws.com/{stage-or-route}`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-getting-startedhtml.md", + "source_url": "", + "source_hash": "2568b755c72aa427", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-lambda-authorizer-two-modes": { + "text": "API Gateway Lambda authorizers support two authorization modes: token-based (bearer token) and request-parameter-based (headers, paths, query strings, stage variables, context variables).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-control-access-to-apihtml.md", + "source_url": "", + "source_hash": "b04d05efed389099", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-lambda-proxy-no-transformation": { + "text": "Lambda proxy integration passes incoming client requests directly to the Lambda function without request/response transformation by API Gateway.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-getting-started-rest-new-consolehtml.md", + "source_url": "", + "source_hash": "c299e6a9f08d2fae", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-lambda-proxy-response-format": { + "text": "Lambda functions used with API Gateway proxy integration must return a response object containing `statusCode` and `body` fields.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-getting-started-rest-new-consolehtml.md", + "source_url": "", + "source_hash": "c299e6a9f08d2fae", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-mapping-templates-use-vtl": { + "text": "API Gateway mapping templates use VTL (Velocity Template Language) to transform request/response bodies between frontend and backend formats.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-api-gateway-basic-concepthtml.md", + "source_url": "", + "source_hash": "f6f329540a19bdc6", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-models-use-json-schema": { + "text": "API Gateway models use JSON Schema to define request/response payload structure; models are required for strongly typed SDK generation but optional for mapping templates.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-api-gateway-basic-concepthtml.md", + "source_url": "", + "source_hash": "f6f329540a19bdc6", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-proxy-integration-default-content-type-json": { + "text": "When using API Gateway proxy integration with passthrough and no content type specified, the default `Content-Type` returned is `application/json`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-api-gateway-set-up-simple-proxyhtml.md", + "source_url": "", + "source_hash": "94d7c56d02d0956a", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-proxy-resource-greedy-path-any-method": { + "text": "A proxy resource uses a greedy path variable `{proxy+}` with the `ANY` method to catch all sub-paths and HTTP verbs with a single integration; `HTTP_PROXY` passes through without transformation, `AWS_PROXY` uses a default mapping template for Lambda.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-api-gateway-set-up-simple-proxyhtml.md", + "source_url": "", + "source_hash": "94d7c56d02d0956a", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-quick-create-http-api-only": { + "text": "Quick create is an HTTP API-only shortcut that creates an API with integration, catch-all route, and auto-deploy default stage.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-api-gateway-basic-concepthtml.md", + "source_url": "", + "source_hash": "f6f329540a19bdc6", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-rest-api-requires-stage-deployment": { + "text": "REST APIs require explicit deployment to a stage before they are accessible to clients.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-getting-started-rest-new-consolehtml.md", + "source_url": "", + "source_hash": "c299e6a9f08d2fae", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-rest-api-six-access-control-mechanisms": { + "text": "API Gateway REST APIs support six access control mechanisms: resource policies, IAM roles/policies, IAM tags, Lambda authorizers, Cognito user pools, and VPC endpoint policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-control-access-to-apihtml.md", + "source_url": "", + "source_hash": "b04d05efed389099", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-rest-api-synchronous-request-response": { + "text": "API Gateway REST APIs use a synchronous request/response model with three backend integration types: HTTP endpoints, Lambda functions, and AWS services.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-rest-apihtml.md", + "source_url": "", + "source_hash": "938849cde4ac5b5a", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-three-api-types": { + "text": "API Gateway supports three API types: REST API (resources + methods), HTTP API (routes + methods, simpler/cheaper), and WebSocket API (routes + route keys, persistent connections).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-api-gateway-basic-concepthtml.md", + "source_url": "", + "source_hash": "f6f329540a19bdc6", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-three-endpoint-types": { + "text": "API Gateway has three endpoint types: edge-optimized (default, uses CloudFront), regional (direct in-region, no CloudFront), and private (VPC interface endpoints only).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-api-gateway-basic-concepthtml.md", + "source_url": "", + "source_hash": "f6f329540a19bdc6", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-usage-plans-api-keys-throttle-quota": { + "text": "API Gateway usage plans configure throttling and quota limits enforced per API key on REST and WebSocket APIs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-api-gateway-basic-concepthtml.md", + "source_url": "", + "source_hash": "f6f329540a19bdc6", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-usage-plans-paired-with-api-keys": { + "text": "API Gateway usage plans are paired with API keys for throttling and quota enforcement on API stages and methods per customer.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-control-access-to-apihtml.md", + "source_url": "", + "source_hash": "b04d05efed389099", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-vpc-endpoint-policies-private-apis-only": { + "text": "VPC endpoint policies in API Gateway apply specifically to private APIs, not to edge-optimized or regional API types.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-control-access-to-apihtml.md", + "source_url": "", + "source_hash": "b04d05efed389099", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-waf-associated-per-stage": { + "text": "WAF web ACL association with API Gateway is per API stage, not per API \u2014 different stages can have different web ACLs, and only Regional web ACLs (not CloudFront-scoped) work with API Gateway.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-control-access-aws-wafhtml.md", + "source_url": "", + "source_hash": "49aaeca05641b725", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-waf-body-inspection-first-64kb": { + "text": "AWS WAF request body inspection for API Gateway is limited to the first 64 KB of the request body.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-control-access-aws-wafhtml.md", + "source_url": "", + "source_hash": "49aaeca05641b725", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-waf-evaluated-first-before-all-auth": { + "text": "AWS WAF is evaluated first in the API Gateway access control chain \u2014 before resource policies, IAM policies, Lambda authorizers, and Cognito authorizers; if WAF blocks, nothing else is evaluated.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-control-access-aws-wafhtml.md", + "source_url": "", + "source_hash": "49aaeca05641b725", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-waf-rate-based-rules-5min-window": { + "text": "AWS WAF rate-based rules limit requests per client IP using a trailing 5-minute window.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-control-access-aws-wafhtml.md", + "source_url": "", + "source_hash": "49aaeca05641b725", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-websocket-at-connections-api-push": { + "text": "The `@connections` API allows backend services to send POST requests to push data to specific connected WebSocket API clients.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-api-overviewhtml.md", + "source_url": "", + "source_hash": "af38591465566714", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-websocket-backend-invoked-per-message": { + "text": "WebSocket API connections are persistent between client and API Gateway only; backend integrations (e.g., Lambda) are invoked on-demand per message, not persistently connected.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-api-gateway-basic-concepthtml.md", + "source_url": "", + "source_hash": "f6f329540a19bdc6", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-websocket-bidirectional-push": { + "text": "API Gateway WebSocket APIs support bidirectional communication \u2014 backends can push messages to connected clients without a client request, unlike REST/HTTP APIs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-apihtml.md", + "source_url": "", + "source_hash": "62daa62bb86cd2e4", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-websocket-client-error-vs-integration-error": { + "text": "In API Gateway WebSocket APIs, ClientError counts 4XX responses generated by API Gateway before reaching the integration, while IntegrationError counts 4XX/5XX responses from the backend integration.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-api-logginghtml.md", + "source_url": "", + "source_hash": "b1d3d50d672f8d13", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-websocket-detailed-metrics-not-default": { + "text": "API Gateway WebSocket API detailed per-route metrics are not enabled by default \u2014 they require explicit opt-in via `detailedMetricsEnabled` and incur additional CloudWatch charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-api-logginghtml.md", + "source_url": "", + "source_hash": "b1d3d50d672f8d13", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-websocket-max-2-hours-idle-10-minutes": { + "text": "API Gateway WebSocket connections have a maximum lifetime of 2 hours and a 10-minute idle timeout (close status 1001).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-api-overviewhtml.md", + "source_url": "", + "source_hash": "af38591465566714", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-websocket-no-binary-frames": { + "text": "API Gateway WebSocket APIs do not support binary media types \u2014 only JSON/text messages are supported (status code 1003 returned for binary frames).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-api-overviewhtml.md", + "source_url": "", + "source_hash": "af38591465566714", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-websocket-route-selection-expression-api-level": { + "text": "The WebSocket API route selection expression is defined at the API level (not per-route) and specifies which JSON property in the message payload determines routing (e.g., `${request.body.action}`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-api-overviewhtml.md", + "source_url": "", + "source_hash": "af38591465566714", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-websocket-three-predefined-routes": { + "text": "API Gateway WebSocket APIs have three predefined routes: `$connect` (connection initiation/auth), `$disconnect` (disconnection), and `$default` (fallback for unmatched routes and non-JSON messages).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-websocket-api-overviewhtml.md", + "source_url": "", + "source_hash": "af38591465566714", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-xray-rest-api-only": { + "text": "API Gateway X-Ray tracing integration applies to REST APIs only \u2014 not HTTP APIs or WebSocket APIs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-xrayhtml.md", + "source_url": "", + "source_hash": "ea7fac1128f48f75", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-xray-trace-passthrough-without-enablement": { + "text": "API Gateway passes through X-Ray traces from upstream callers automatically, even when X-Ray tracing is not explicitly enabled on the API stage.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-xrayhtml.md", + "source_url": "", + "source_hash": "ea7fac1128f48f75", + "date": "2026-03-12", + "metadata": {} + }, + "apigw-xray-tracing-enabled-per-stage": { + "text": "AWS X-Ray tracing for API Gateway is enabled at the stage level, not the API level.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-apigateway-xrayhtml.md", + "source_url": "", + "source_hash": "ea7fac1128f48f75", + "date": "2026-03-12", + "metadata": {} + }, + "app-autoscaling-custom-resources-supported": { + "text": "Application Auto Scaling can scale custom resources via the `aws-auto-scaling-custom-resource` GitHub framework.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/autoscaling-application-userguide-what-is-application-auto-scalinghtml.md", + "source_url": "", + "source_hash": "97f7e1340ebcd90e", + "date": "2026-03-12", + "metadata": {} + }, + "app-autoscaling-four-scaling-policies": { + "text": "Application Auto Scaling supports four scaling policy types: target tracking (metric-driven), step scaling (alarm-breach-driven), scheduled scaling (time-driven), and predictive scaling (ML on historical data).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/autoscaling-application-userguide-what-is-application-auto-scalinghtml.md", + "source_url": "", + "source_hash": "97f7e1340ebcd90e", + "date": "2026-03-12", + "metadata": {} + }, + "app-autoscaling-lambda-provisioned-concurrency-only": { + "text": "Application Auto Scaling manages Lambda provisioned concurrency (not regular concurrency).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/autoscaling-application-userguide-what-is-application-auto-scalinghtml.md", + "source_url": "", + "source_hash": "97f7e1340ebcd90e", + "date": "2026-03-12", + "metadata": {} + }, + "app-autoscaling-logs-management-events-only": { + "text": "Application Auto Scaling logs all control plane operations as management events (not data events) in CloudTrail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/autoscaling-application-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "dea3db58686e8ec9", + "date": "2026-03-12", + "metadata": {} + }, + "app-autoscaling-not-for-ec2-instances": { + "text": "Application Auto Scaling handles non-EC2 resources (DynamoDB, ECS, Lambda, Aurora, ElastiCache, etc.); EC2 Auto Scaling handles EC2 instance fleets via Auto Scaling groups.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/autoscaling-application-userguide-what-is-application-auto-scalinghtml.md", + "source_url": "", + "source_hash": "97f7e1340ebcd90e", + "date": "2026-03-12", + "metadata": {} + }, + "app-mesh-eol-september-2026": { + "text": "AWS App Mesh reaches end of support on September 30, 2026, with AWS recommending migration to Amazon ECS Service Connect.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/app-mesh-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "607809ec4defae58", + "date": "2026-03-12", + "metadata": {} + }, + "appconfig-data-event-resource-type": { + "text": "AppConfig data events use `AWS::AppConfig::Configuration` as the `resources.type` value in CloudTrail advanced event selectors.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appconfig-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "0d3d6f3be33de86d", + "date": "2026-03-12", + "metadata": {} + }, + "appconfig-data-events-require-explicit-enablement": { + "text": "AppConfig data plane operations (GetLatestConfiguration, StartConfigurationSession) are not logged by CloudTrail by default \u2014 they must be explicitly enabled and incur additional charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appconfig-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "0d3d6f3be33de86d", + "date": "2026-03-12", + "metadata": {} + }, + "appflow-response-elements-not-logged": { + "text": "Amazon AppFlow intentionally omits response elements from CloudTrail log entries because they may contain sensitive data.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appflow-latest-userguide-appflow-cloudtrail-logshtml.md", + "source_url": "", + "source_hash": "f7deb9b0bd6b9903", + "date": "2026-03-12", + "metadata": {} + }, + "application-discovery-service-deprecated": { + "text": "AWS Application Discovery Service is no longer open to new customers; AWS Transform is the recommended replacement.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/application-discovery-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "5baea18c318177e3", + "date": "2026-03-12", + "metadata": {} + }, + "apprunner-cloudtrail-event-source": { + "text": "The `eventSource` for AWS App Runner in CloudTrail logs is `apprunner.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apprunner-latest-dg-monitor-cthtml.md", + "source_url": "", + "source_hash": "47ba2f6f00dccfa4", + "date": "2026-03-12", + "metadata": {} + }, + "apprunner-cloudtrail-redacts-sensitive-values": { + "text": "App Runner redacts sensitive property values (build commands, start commands, environment variables) in CloudTrail logs, replacing them with `HIDDEN_DUE_TO_SECURITY_REASONS`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apprunner-latest-dg-monitor-cthtml.md", + "source_url": "", + "source_hash": "47ba2f6f00dccfa4", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-aurora-integration-via-data-api": { + "text": "AppSync integrates with Aurora Serverless (PostgreSQL) specifically via the RDS Data API, not via direct database connections.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-tutorials-jshtml.md", + "source_url": "", + "source_hash": "46542bcb347b409b", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-auth-failures-not-billed": { + "text": "AWS AppSync does not charge for authentication/authorization failures or invalid API key calls.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-what-is-appsynchtml.md", + "source_url": "", + "source_hash": "359730d0ad1501ec", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-auto-provision-dynamodb-from-schema": { + "text": "AppSync supports automatic provisioning of DynamoDB tables from a GraphQL schema, as well as importing existing DynamoDB tables with auto-generated schema and resolvers.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-tutorialshtml.md", + "source_url": "", + "source_hash": "10e83cfb7bfa2279", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-cloudtrail-data-event-resource-type": { + "text": "The CloudTrail resource type for AppSync data event filtering is `AWS::AppSync::GraphQLApi`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-cloudtrail-logginghtml.md", + "source_url": "", + "source_hash": "7fb74dbe192b23e4", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-cloudtrail-field-authorization-results": { + "text": "AppSync CloudTrail data events include field-level authorization results in `additionalEventData.fieldAuthorizationResults`, showing `allowedFields` and `deniedFields`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-cloudtrail-logginghtml.md", + "source_url": "", + "source_hash": "7fb74dbe192b23e4", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-cloudtrail-request-id-unreliable": { + "text": "The `requestID` field in AppSync CloudTrail logs is not authoritative \u2014 it can be overwritten by the client and should not be relied upon for unique identification.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-cloudtrail-logginghtml.md", + "source_url": "", + "source_hash": "7fb74dbe192b23e4", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-cloudtrail-websocket-connect-only": { + "text": "For AppSync real-time endpoints, only the WebSocket connect operation is logged as a CloudTrail data event \u2014 messages sent over the WebSocket are not logged.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-cloudtrail-logginghtml.md", + "source_url": "", + "source_hash": "7fb74dbe192b23e4", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-context-object-carries-resolver-state": { + "text": "The AppSync resolver context object (`ctx`) carries `arguments`, `source`, `identity`, `stash`, and `result` \u2014 it is central to all resolver logic.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-resolver-reference-js-versionhtml.md", + "source_url": "", + "source_hash": "4d8929d07b70e0c5", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-data-events-not-logged-by-default": { + "text": "AppSync GraphQL data events (query/mutation/subscription operations) are not logged by CloudTrail by default \u2014 they must be explicitly enabled and incur additional charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-cloudtrail-logginghtml.md", + "source_url": "", + "source_hash": "7fb74dbe192b23e4", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-dynamodb-three-resolver-patterns": { + "text": "AppSync DynamoDB resolvers have three distinct patterns: standard CRUD, transactions, and batch operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-tutorials-jshtml.md", + "source_url": "", + "source_hash": "46542bcb347b409b", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-events-no-subscription-required-to-publish": { + "text": "Publishing to an AppSync Events channel does not require subscribing to that channel first.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-eventapi-publish-websockethtml.md", + "source_url": "", + "source_hash": "59dde7a4daa9987c", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-events-websocket-batch-limit-5": { + "text": "AppSync Events WebSocket publish requests support a maximum of 5 events per batch.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-eventapi-publish-websockethtml.md", + "source_url": "", + "source_hash": "59dde7a4daa9987c", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-events-websocket-subprotocol": { + "text": "AppSync Events uses the WebSocket subprotocol `aws-appsync-event-ws` and connects via `wss://WS_DOMAIN/event/realtime`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-eventapi-publish-websockethtml.md", + "source_url": "", + "source_hash": "59dde7a4daa9987c", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-four-non-console-provisioning-methods": { + "text": "AppSync APIs can be provisioned outside the console using four methods: AWS Amplify, AWS SAM, CloudFormation, and CDK.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-quickstarthtml.md", + "source_url": "", + "source_hash": "8726123f63479309", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-graphql-api-three-components": { + "text": "An AWS AppSync GraphQL API requires three core components: a schema, data sources, and resolvers.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-quickstarthtml.md", + "source_url": "", + "source_hash": "8726123f63479309", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-introspection-schema-via-aws-cli": { + "text": "The AppSync schema is downloaded using the AWS CLI command `aws appsync get-introspection-schema` with `--format SDL`, not the Amplify CLI.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-building-a-client-apphtml.md", + "source_url": "", + "source_hash": "5195bb2a0a226402", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-js-resolver-eight-data-sources": { + "text": "APPSYNC_JS resolvers support eight data source types: DynamoDB, OpenSearch, Lambda, EventBridge, None, HTTP, RDS, and Bedrock.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-resolver-reference-js-versionhtml.md", + "source_url": "", + "source_hash": "4d8929d07b70e0c5", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-js-runtime-preferred-over-vtl": { + "text": "AWS recommends the APPSYNC_JS (JavaScript) runtime over VTL for new AppSync resolver development; VTL is considered legacy.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-resolver-mapping-template-referencehtml.md", + "source_url": "", + "source_hash": "a0c6e18fe396729f", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-merged-api-combines-source-apis": { + "text": "AppSync Merged API is a feature that combines multiple source APIs into a single endpoint for multi-team or federated API architectures.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-quickstarthtml.md", + "source_url": "", + "source_hash": "8726123f63479309", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-merged-apis-federated-graphql": { + "text": "AppSync Merged APIs combine multiple source GraphQL APIs into a single federated API, enabling multi-team GraphQL architectures.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-what-is-appsynchtml.md", + "source_url": "", + "source_hash": "359730d0ad1501ec", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-none-data-source-local-resolvers": { + "text": "The AppSync None data source is used for local resolvers that don't call an external service, commonly used for pub/sub subscriptions and pass-through operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-resolver-mapping-template-referencehtml.md", + "source_url": "", + "source_hash": "a0c6e18fe396729f", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-pipeline-resolvers-chain-operations": { + "text": "AppSync pipeline resolvers allow chaining multiple resolver functions sequentially in a single field resolution.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-tutorialshtml.md", + "source_url": "", + "source_hash": "10e83cfb7bfa2279", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-pure-websockets-only-since-2022": { + "text": "AWS AppSync supports only pure WebSockets for real-time subscriptions since January 1, 2022 (MQTT over WebSockets was fully deprecated).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-aws-appsync-real-time-datahtml.md", + "source_url": "", + "source_hash": "9ebcb5bfd81ee816", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-resolver-runtimes-js-and-vtl": { + "text": "AppSync resolvers support JavaScript/TypeScript (modern path) and VTL (Velocity Template Language, legacy but still supported) as resolver runtimes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-what-is-appsynchtml.md", + "source_url": "", + "source_hash": "359730d0ad1501ec", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-resolvers-two-languages": { + "text": "AWS AppSync resolvers support two languages: JavaScript (APPSYNC_JS runtime) and VTL (Velocity Template Language).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-quickstarthtml.md", + "source_url": "", + "source_hash": "8726123f63479309", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-serverless-graphql-pubsub-service": { + "text": "AWS AppSync is a managed serverless service that provides GraphQL and Pub/Sub APIs through a single endpoint, supporting real-time data updates via WebSockets.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-what-is-appsynchtml.md", + "source_url": "", + "source_hash": "359730d0ad1501ec", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-six-authorization-modes": { + "text": "AWS AppSync supports six authorization modes: API key, IAM, Amazon Cognito User Pools, OpenID Connect (OIDC), Lambda custom authorizers, and multiple auth on a single API.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-what-is-appsynchtml.md", + "source_url": "", + "source_hash": "359730d0ad1501ec", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-subscribe-directive-accepts-mutation-array": { + "text": "The `@aws_subscribe(mutations: [\"...\"])` directive accepts an array, allowing a single subscription to listen to multiple mutations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-aws-appsync-real-time-datahtml.md", + "source_url": "", + "source_hash": "9ebcb5bfd81ee816", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-subscription-null-vs-omitted-argument": { + "text": "In AppSync subscriptions, passing `null` as an argument filters for records where the field is unset, while omitting the argument entirely means no filtering on that field.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-aws-appsync-real-time-datahtml.md", + "source_url": "", + "source_hash": "9ebcb5bfd81ee816", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-subscriptions-triggered-only-by-mutations": { + "text": "AWS AppSync subscriptions are triggered only by mutations \u2014 not by queries or direct invocations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-aws-appsync-real-time-datahtml.md", + "source_url": "", + "source_hash": "9ebcb5bfd81ee816", + "date": "2026-03-12", + "metadata": {} + }, + "appsync-websocket-max-payload-240kb": { + "text": "AWS AppSync pure WebSocket subscriptions support a maximum payload size of 240 KB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appsync-latest-devguide-aws-appsync-real-time-datahtml.md", + "source_url": "", + "source_hash": "9ebcb5bfd81ee816", + "date": "2026-03-12", + "metadata": {} + }, + "artifact-cloudtrail-event-source": { + "text": "The CloudTrail `eventSource` for AWS Artifact events is `artifact.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/artifact-latest-ug-cloudtrail-logginghtml.md", + "source_url": "", + "source_hash": "ddbff822afbf6685", + "date": "2026-03-12", + "metadata": {} + }, + "athena-can-query-its-own-cloudtrail-logs": { + "text": "Athena can query its own CloudTrail logs stored in S3 \u2014 a circular relationship useful for usage analysis and cost optimization.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/athena-latest-ug-monitor-with-cloudtrailhtml.md", + "source_url": "", + "source_hash": "b64230b7433489ee", + "date": "2026-03-12", + "metadata": {} + }, + "athena-cloudtrail-querystring-always-omitted": { + "text": "In CloudTrail logs, the `queryString` field for Athena `StartQueryExecution` and `CreateNamedQuery` events is always `***OMITTED***`; use `GetQueryExecution` API with the `queryExecutionId` to retrieve actual SQL text.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/athena-latest-ug-monitor-with-cloudtrailhtml.md", + "source_url": "", + "source_hash": "b64230b7433489ee", + "date": "2026-03-12", + "metadata": {} + }, + "athena-queries-cloudtrail-logs-directly-from-s3": { + "text": "Amazon Athena can query CloudTrail logs directly from S3 using standard SQL, without ETL or data loading.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/athena-latest-ug-cloudtrail-logshtml.md", + "source_url": "", + "source_hash": "7cc0fda4b541cad8", + "date": "2026-03-12", + "metadata": {} + }, + "audit-architecture-simultaneously-fragile-and-quota-constrained": { + "text": "Building real-time security audit infrastructure requires a fragile multi-service integration chain (CloudTrail \u2192 CloudWatch Logs \u2192 metric filters \u2192 alarms, each requiring its own IAM and configuration) AND faces hard quota limits (5 trails per region) with incremental costs for additional management event copies \u2014 the architecture needed for real-time alerting is both brittle and bounded.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "real-time-audit-alerting-requires-multi-service-integration-chain", + "cloudtrail-multi-trail-strategy-constrained-by-limits-and-costs" + ], + "outlist": [], + "label": "Multi-service chain fragility (depth-1) meets trail quota constraints (depth-1) \u2014 each additional audit use case (security, compliance, operations) requires both another link in the fragile chain AND consumes a scarce trail slot" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "audit-infrastructure-must-be-proactively-built-within-hard-constraints": { + "text": "Real-time audit infrastructure must be proactively built (Lake requires irrevocable KMS decisions, Insights needs up to 7 days for first delivery) within hard quota constraints (5 trails per region, incremental cost per coverage dimension) using fragile multi-service chains (CloudTrail \u2192 CloudWatch Logs \u2192 metric filters \u2192 alarms) \u2014 there is no fast path to audit readiness at incident time.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "audit-architecture-simultaneously-fragile-and-quota-constrained", + "cloudtrail-advanced-observability-cannot-be-activated-reactively" + ], + "outlist": [], + "label": "reactive audit activation is blocked by cold-start AND proactive build faces quota and fragility constraints simultaneously" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "audit-manager-delegated-admin-cross-account-evidence-search": { + "text": "Audit Manager delegated administrators can search evidence across all member accounts in an AWS Organization using evidence finder.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/audit-manager-latest-userguide-evidence-finderhtml.md", + "source_url": "", + "source_hash": "d826bff2193de0f4", + "date": "2026-03-12", + "metadata": {} + }, + "audit-manager-eventsource-cloudtrail": { + "text": "The CloudTrail `eventSource` for AWS Audit Manager API calls is `auditmanager.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/audit-manager-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "a5d2b23f13719154", + "date": "2026-03-12", + "metadata": {} + }, + "audit-manager-evidence-finder-not-enabled-by-default": { + "text": "AWS Audit Manager's evidence finder must be explicitly enabled from Audit Manager settings before use; it is not enabled by default.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/audit-manager-latest-userguide-evidence-finderhtml.md", + "source_url": "", + "source_hash": "d826bff2193de0f4", + "date": "2026-03-12", + "metadata": {} + }, + "audit-manager-evidence-finder-retention-2yr-default-7yr-max": { + "text": "Audit Manager evidence finder has a default retention of 2 years, configurable up to 7 years (2,555 days); it backfills 2 years of historical evidence upon enablement.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/audit-manager-latest-userguide-evidence-finderhtml.md", + "source_url": "", + "source_hash": "d826bff2193de0f4", + "date": "2026-03-12", + "metadata": {} + }, + "audit-manager-evidence-finder-uses-cloudtrail-lake": { + "text": "Audit Manager's evidence finder uses CloudTrail Lake as its backend, automatically creating an event data store when enabled.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/audit-manager-latest-userguide-evidence-finderhtml.md", + "source_url": "", + "source_hash": "d826bff2193de0f4", + "date": "2026-03-12", + "metadata": {} + }, + "audit-proactive-investment-still-blind-to-automated-cost-mutations": { + "text": "Even proactively built audit infrastructure (requiring irrevocable KMS decisions and multi-day cold-start delays) cannot observe DynamoDB automated operations that simultaneously create cost mutations and audit blind spots \u2014 the observability ceiling is structural, not a configuration gap", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "audit-infrastructure-must-be-proactively-built-within-hard-constraints", + "dynamodb-automated-operations-have-dual-cost-and-audit-blind-spots" + ], + "outlist": [], + "label": "Proactive audit investment (depth-3) still cannot see automated operations (depth-2) \u2014 the hardest-to-build observability tier has inherent blind spots for the hardest-to-detect cost mutations" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "aurora-continuous-backup-snapshots-free-within-retention": { + "text": "Aurora continuous backup snapshots within the configured retention period (up to 35 days) incur no storage charge; snapshots kept beyond that window are charged as full backups.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-metering-and-billinghtml.md", + "source_url": "", + "source_hash": "4f7be19fcb804895", + "date": "2026-03-12", + "metadata": {} + }, + "aurora-dsql-active-active-no-failover": { + "text": "Aurora DSQL clusters are active-active by default with automatic failure recovery \u2014 no traditional primary-secondary failover configuration is needed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aurora-dsql-latest-userguide-disaster-recovery-resiliencyhtml.md", + "source_url": "", + "source_hash": "337363786161cbf0", + "date": "2026-03-12", + "metadata": {} + }, + "aurora-dsql-fis-connection-error-injection": { + "text": "AWS FIS can inject elevated connection error rates into Aurora DSQL clusters for chaos engineering testing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aurora-dsql-latest-userguide-disaster-recovery-resiliencyhtml.md", + "source_url": "", + "source_hash": "337363786161cbf0", + "date": "2026-03-12", + "metadata": {} + }, + "aurora-dsql-multi-az-by-default-three-azs": { + "text": "Aurora DSQL single-Region clusters automatically have Multi-AZ availability across three AZs with no manual configuration required.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aurora-dsql-latest-userguide-disaster-recovery-resiliencyhtml.md", + "source_url": "", + "source_hash": "337363786161cbf0", + "date": "2026-03-12", + "metadata": {} + }, + "aurora-dsql-multi-region-same-continent-only": { + "text": "Aurora DSQL multi-Region clusters cannot span continents \u2014 they must stay within a single Region set (US, APAC, or Europe).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aurora-dsql-latest-userguide-what-is-aurora-dsqlhtml.md", + "source_url": "", + "source_hash": "d950f460dbc370cf", + "date": "2026-03-12", + "metadata": {} + }, + "aurora-dsql-serverless-postgresql-16-compatible": { + "text": "Aurora DSQL is a serverless distributed relational database compatible with PostgreSQL version 16, working with standard PostgreSQL drivers, ORMs, and `psql`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aurora-dsql-latest-userguide-what-is-aurora-dsqlhtml.md", + "source_url": "", + "source_hash": "d950f460dbc370cf", + "date": "2026-03-12", + "metadata": {} + }, + "aurora-dsql-sla-single-multi-region": { + "text": "Aurora DSQL provides 99.99% availability for single-Region clusters and 99.999% availability for multi-Region clusters.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aurora-dsql-latest-userguide-disaster-recovery-resiliencyhtml.md", + "source_url": "", + "source_hash": "337363786161cbf0", + "date": "2026-03-12", + "metadata": {} + }, + "aurora-dsql-snapshot-isolation": { + "text": "Aurora DSQL uses snapshot isolation for ACID transactions with strong consistency, even in multi-Region configurations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aurora-dsql-latest-userguide-what-is-aurora-dsqlhtml.md", + "source_url": "", + "source_hash": "d950f460dbc370cf", + "date": "2026-03-12", + "metadata": {} + }, + "aurora-dsql-synchronous-replication-no-lag": { + "text": "Aurora DSQL uses synchronous replication for all write transactions, eliminating data loss risk from replication lag or async failover.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aurora-dsql-latest-userguide-disaster-recovery-resiliencyhtml.md", + "source_url": "", + "source_hash": "337363786161cbf0", + "date": "2026-03-12", + "metadata": {} + }, + "aurora-dsql-witness-region-logs-only": { + "text": "In Aurora DSQL multi-Region clusters, the witness Region stores only encrypted transaction logs, has no user-accessible endpoint, and its impairment causes slight latency increase but no availability impact.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aurora-dsql-latest-userguide-disaster-recovery-resiliencyhtml.md", + "source_url": "", + "source_hash": "337363786161cbf0", + "date": "2026-03-12", + "metadata": {} + }, + "aurora-eventsource-rds-amazonaws-com": { + "text": "Aurora's CloudTrail `eventSource` is `rds.amazonaws.com` because Aurora shares the RDS API surface \u2014 there is no Aurora-specific event source.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-AuroraUserGuide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "7c2abd4270e2c9ad", + "date": "2026-03-12", + "metadata": {} + }, + "aurora-zero-etl-global-db-failover-breaks-integration": { + "text": "Aurora Global Database failover makes zero-ETL integrations inactive \u2014 they must be deleted and recreated.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-AuroraUserGuide-zero-etlhtml.md", + "source_url": "", + "source_hash": "77b887cfb359920f", + "date": "2026-03-12", + "metadata": {} + }, + "aurora-zero-etl-mysql-innodb-only": { + "text": "Aurora zero-ETL integrations with Aurora MySQL only support the InnoDB storage engine; foreign keys with CASCADE/SET NULL/SET DEFAULT cause table failure.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-AuroraUserGuide-zero-etlhtml.md", + "source_url": "", + "source_hash": "77b887cfb359920f", + "date": "2026-03-12", + "metadata": {} + }, + "aurora-zero-etl-postgresql-primary-keys-required": { + "text": "Aurora zero-ETL integrations with Aurora PostgreSQL require primary keys on all filtered tables, at least one data filter, and UTF-8 encoding.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-AuroraUserGuide-zero-etlhtml.md", + "source_url": "", + "source_hash": "77b887cfb359920f", + "date": "2026-03-12", + "metadata": {} + }, + "aurora-zero-etl-quotas-100-per-account-50-per-target-5-per-source": { + "text": "Aurora zero-ETL integration quotas per Region: 100 integrations per account, 50 per target, 5 per source cluster.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-AuroraUserGuide-zero-etlhtml.md", + "source_url": "", + "source_hash": "77b887cfb359920f", + "date": "2026-03-12", + "metadata": {} + }, + "aurora-zero-etl-source-target-same-region": { + "text": "Aurora zero-ETL integrations require the source Aurora cluster and target (Redshift or SageMaker lakehouse) to be in the same Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-AuroraUserGuide-zero-etlhtml.md", + "source_url": "", + "source_hash": "77b887cfb359920f", + "date": "2026-03-12", + "metadata": {} + }, + "aws-account-closure-10pct-rolling-limit": { + "text": "Organizations have a 10% rolling 30-day limit on closing member accounts (minimum 10, maximum 1000 closures per period).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/accounts-latest-reference-manage-acct-closinghtml.md", + "source_url": "", + "source_hash": "8adb6e2b5661a757", + "date": "2026-03-12", + "metadata": {} + }, + "aws-account-closure-90-day-post-closure-period": { + "text": "After closing an AWS account, there is a 90-day post-closure period during which the account can be reopened; after 90 days, AWS permanently closes the account and deletes all content/resources.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/accounts-latest-reference-manage-acct-closinghtml.md", + "source_url": "", + "source_hash": "8adb6e2b5661a757", + "date": "2026-03-12", + "metadata": {} + }, + "aws-account-closure-hardware-mfa-locked": { + "text": "Hardware TOTP tokens are not automatically removed on AWS account closure and become permanently locked to the closed account unless deactivated beforehand.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/accounts-latest-reference-manage-acct-closinghtml.md", + "source_url": "", + "source_hash": "8adb6e2b5661a757", + "date": "2026-03-12", + "metadata": {} + }, + "aws-account-closure-root-user-only-standalone": { + "text": "Only the root user can close standalone and management AWS accounts \u2014 IAM users and roles cannot perform this action; there is no CLI/API support for closing these account types.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/accounts-latest-reference-manage-acct-closinghtml.md", + "source_url": "", + "source_hash": "8adb6e2b5661a757", + "date": "2026-03-12", + "metadata": {} + }, + "aws-account-id-never-reused": { + "text": "After permanent closure, an AWS account ID can never be reused.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/accounts-latest-reference-manage-acct-closinghtml.md", + "source_url": "", + "source_hash": "8adb6e2b5661a757", + "date": "2026-03-12", + "metadata": {} + }, + "aws-account-reopen-60-day-limit": { + "text": "Reopening a closed AWS account requires contacting AWS Support and paying the outstanding balance within 60 days of closure.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/accounts-latest-reference-manage-acct-closinghtml.md", + "source_url": "", + "source_hash": "8adb6e2b5661a757", + "date": "2026-03-12", + "metadata": {} + }, + "aws-alternate-contact-types-three": { + "text": "AWS accounts support three alternate contact types: SECURITY, BILLING, and OPERATIONS.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/accounts-latest-reference-monitoring-cloudtrailhtml.md", + "source_url": "", + "source_hash": "78656e271d790a49", + "date": "2026-03-12", + "metadata": {} + }, + "aws-autoscaling-plans-distinct-api-from-ec2-autoscaling": { + "text": "AWS Auto Scaling scaling plans use a distinct API namespace (`autoscaling-plans`) from EC2 Auto Scaling, though both share the eventSource `autoscaling.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/autoscaling-plans-APIReference-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "355391e4dd9c0413", + "date": "2026-03-12", + "metadata": {} + }, + "aws-backup-dynamodb-cross-account-cross-region": { + "text": "AWS Backup enables cross-account and cross-Region backup copying for DynamoDB \u2014 native DynamoDB on-demand backups do not support this.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-backuprestore_HowItWorksAWShtml.md", + "source_url": "", + "source_hash": "27813d824116c2e7", + "date": "2026-03-12", + "metadata": {} + }, + "aws-backup-dynamodb-opt-in-per-account-region": { + "text": "AWS Backup requires explicit opt-in per account and per Region before it can manage DynamoDB backups.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-backuprestore_HowItWorksAWShtml.md", + "source_url": "", + "source_hash": "27813d824116c2e7", + "date": "2026-03-12", + "metadata": {} + }, + "aws-backup-first-backup-full-subsequent-incremental": { + "text": "AWS Backup performs a full copy for the first backup of a resource; subsequent backups are incremental (changes only), reducing storage costs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-about-backup-planshtml.md", + "source_url": "", + "source_hash": "aaa64b2dd390c63a", + "date": "2026-03-12", + "metadata": {} + }, + "aws-backup-plan-defines-schedule-lifecycle-retention": { + "text": "An AWS Backup backup plan is a policy expression that defines backup schedule, lifecycle transitions, and retention for assigned AWS resources.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-about-backup-planshtml.md", + "source_url": "", + "source_hash": "aaa64b2dd390c63a", + "date": "2026-03-12", + "metadata": {} + }, + "aws-backup-scheduled-backups-not-native-dynamodb": { + "text": "Scheduled automatic backups of DynamoDB tables require AWS Backup \u2014 this capability is not available natively in DynamoDB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-backuprestore_HowItWorksAWShtml.md", + "source_url": "", + "source_hash": "27813d824116c2e7", + "date": "2026-03-12", + "metadata": {} + }, + "aws-backup-vault-independent-kms-key": { + "text": "Backups stored in AWS Backup vaults can use a KMS key independent from the source resource's (e.g., DynamoDB table's) encryption key.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-backuprestore_HowItWorksAWShtml.md", + "source_url": "", + "source_hash": "27813d824116c2e7", + "date": "2026-03-12", + "metadata": {} + }, + "aws-backup-vault-lock-worm-immutability": { + "text": "AWS Backup Vault Lock provides WORM (write-once-read-many) immutability, protecting backups against both accidental and malicious deletion, recovery period changes, or lifecycle modifications.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-backuprestore_HowItWorksAWShtml.md", + "source_url": "", + "source_hash": "27813d824116c2e7", + "date": "2026-03-12", + "metadata": {} + }, + "aws-backup-window-optimized-by-default": { + "text": "AWS Backup optimizes the backup window by default; it can be customized via the console or programmatically.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-about-backup-planshtml.md", + "source_url": "", + "source_hash": "aaa64b2dd390c63a", + "date": "2026-03-12", + "metadata": {} + }, + "aws-cli-command-structure-options-command-subcommand": { + "text": "The AWS CLI command structure follows: `aws [options] [parameters]`", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cancel-update-stackhtml.md", + "source_url": "", + "source_hash": "4b04b970c46cf0ea", + "date": "2026-03-12", + "metadata": {} + }, + "aws-cli-default-timeout-60-seconds": { + "text": "The AWS CLI default socket read and connect timeouts are both 60 seconds; set to 0 for blocking (no timeout)", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cancel-update-stackhtml.md", + "source_url": "", + "source_hash": "4b04b970c46cf0ea", + "date": "2026-03-12", + "metadata": {} + }, + "aws-cli-fileb-always-binary-file-respects-setting": { + "text": "The `fileb://` prefix always treats content as raw binary regardless of `--cli-binary-format` setting; `file://` behavior depends on the `--cli-binary-format` setting", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cancel-update-stackhtml.md", + "source_url": "", + "source_hash": "4b04b970c46cf0ea", + "date": "2026-03-12", + "metadata": {} + }, + "aws-cli-no-sign-request-public-resources": { + "text": "The AWS CLI `--no-sign-request` flag skips request signing, allowing access to public resources (e.g., public S3 buckets) without credentials", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cancel-update-stackhtml.md", + "source_url": "", + "source_hash": "4b04b970c46cf0ea", + "date": "2026-03-12", + "metadata": {} + }, + "aws-cli-output-formats-six-types": { + "text": "The AWS CLI supports six output formats: json, text, table, yaml, yaml-stream, and off", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cancel-update-stackhtml.md", + "source_url": "", + "source_hash": "4b04b970c46cf0ea", + "date": "2026-03-12", + "metadata": {} + }, + "aws-cli-query-uses-jmespath": { + "text": "The AWS CLI `--query` parameter uses JMESPath syntax (not SQL or JSONPath) for filtering response data", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cancel-update-stackhtml.md", + "source_url": "", + "source_hash": "4b04b970c46cf0ea", + "date": "2026-03-12", + "metadata": {} + }, + "aws-config-dedicated-host-license-tracking": { + "text": "AWS Config is the service used for tracking Dedicated Host configuration changes for license compliance (per-socket, per-core BYOL), not CloudTrail or CloudWatch.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-hosts-aws-confightml.md", + "source_url": "", + "source_hash": "75e930a9d71b6685", + "date": "2026-03-12", + "metadata": {} + }, + "aws-config-dedicated-host-resource-type": { + "text": "The AWS Config resource type for EC2 Dedicated Hosts is `AWS::EC2::Host`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-hosts-aws-confightml.md", + "source_url": "", + "source_hash": "75e930a9d71b6685", + "date": "2026-03-12", + "metadata": {} + }, + "aws-config-s3-bucket-policy-source-account-condition": { + "text": "When granting AWS Config access to an S3 bucket, the bucket policy should use the `AWS:SourceAccount` condition key to prevent confused deputy attacks by ensuring access is only on behalf of expected accounts.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-sampletemplateshtml.md", + "source_url": "", + "source_hash": "b2b5cfc64f03ff39", + "date": "2026-03-12", + "metadata": {} + }, + "aws-config-three-recording-conditions-dedicated-hosts": { + "text": "AWS Config requires all three recording conditions enabled for Dedicated Host tracking: Config recording status, host recording status, and instance recording status.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-hosts-aws-confightml.md", + "source_url": "", + "source_hash": "75e930a9d71b6685", + "date": "2026-03-12", + "metadata": {} + }, + "aws-console-cli-defaults-diverge-creating-drift-risk": { + "text": "AWS automation defaults differ between console and CLI/API interfaces \u2014 auto-scaling enabled by default in console but not CLI \u2014 creating configuration drift when teams mix interfaces.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-autoscaling-default-console-not-cli", + "dynamodb-autoscaling-new-gsi-no-auto-scaling" + ], + "outlist": [], + "label": "Infrastructure-as-code deployments silently omit defaults that console users take for granted" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "unnecessary" + } + }, + "aws-cost-explorer-13-months-history-12-months-forecast": { + "text": "AWS Cost Explorer shows up to 13 months of historical cost data and forecasts up to 12 months ahead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-overview.md", + "source_url": "", + "source_hash": "a05ef19b46dfd005", + "date": "2026-03-08", + "metadata": {} + }, + "aws-database-services-hide-billing-complexity-behind-simple-interfaces": { + "text": "AWS database services systematically hide billing complexity behind simple provisioning interfaces \u2014 RDS abstracts EBS volume striping and three storage types behind instance selection while DynamoDB hides per-item indexing overhead, KB rounding penalties, and GSI storage costs behind capacity unit pricing \u2014 creating a structural gap between perceived and actual cost across the data tier.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "rds-storage-architecture-complex-behind-simple-provisioning-interface", + "dynamodb-capacity-billing-has-hidden-overhead-multipliers" + ], + "outlist": [], + "label": "Both major database services exhibit the same pattern of abstraction-hidden cost, making it a systematic AWS data-tier property" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "insufficient" + } + }, + "aws-default-path-fails-independently-across-cost-migration-and-security": { + "text": "AWS default-path deployments fail independently across three orthogonal dimensions \u2014 cost lock-in forms an inescapable DR cycle, RDBMS migration degradation is perpetual and undetectable, and serverless security/cost posture is jointly unverifiable \u2014 and since each dimension's failure is independently invisible, organizations cannot prioritize remediation across them.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cost-lock-in-and-dr-reset-form-inescapable-cycle", + "rdbms-migration-degradation-perpetual-and-undetectable", + "serverless-security-and-cost-posture-jointly-unverifiable" + ], + "outlist": [], + "label": "Three independent depth-7 catastrophic failure modes (cost, migration, security) combine into a triple-bind where fixing one cannot reveal or remediate the others" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "aws-default-regions-pre-march-2019-cannot-disable": { + "text": "AWS Regions launched before March 20, 2019 are default Regions \u2014 always enabled and cannot be disabled; Regions launched after that date are opt-in and must be explicitly enabled.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/accounts-latest-reference-manage-acct-regionshtml.md", + "source_url": "", + "source_hash": "f2c5034b7e63e324", + "date": "2026-03-12", + "metadata": {} + }, + "aws-defaults-require-systematic-hardening-across-dimensions": { + "text": "AWS default configurations systematically favor ease-of-use over security across operations (console/CLI auto-scaling drift), auditing (90-day retention, no data events), and access control (legacy S3 ACLs enabled) \u2014 hardening must be applied across ALL dimensions because each has independent default gaps.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "aws-console-cli-defaults-diverge-creating-drift-risk", + "cloudtrail-default-audit-posture-has-significant-gaps", + "s3-access-control-requires-three-layer-lockdown" + ], + "outlist": [], + "label": "Defaults are consistently permissive across ops, audit, and security \u2014 requiring systematic review" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "aws-defaults-simultaneously-suboptimal-for-resilience-and-security": { + "text": "AWS defaults are simultaneously suboptimal for resilience (single-AZ for EBS and DAX, eventual consistency for cross-region replication) AND security (90-day audit retention, no data events, no Block Public Access), requiring production hardening across both orthogonal dimensions before any workload is production-ready.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "aws-resilience-defaults-suboptimal-at-every-geographic-scope", + "aws-defaults-require-systematic-hardening-across-dimensions" + ], + "outlist": [], + "label": "resilience defaults bad at every geographic scope + security defaults bad across operations/auditing/access = both dimensions require simultaneous hardening" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "aws-deletion-safety-semantics-inconsistent-across-services": { + "text": "AWS deletion safety semantics are inconsistent across services \u2014 DynamoDB table deletion is permanent and irreversible with no default protection, CloudTrail Lake enables termination protection by default, and DynamoDB global table deletion protection must be configured independently per replica region \u2014 organizations cannot rely on uniform deletion safety behavior.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-delete-table-removes-all-data-permanently", + "cloudtrail-lake-termination-protection-default-on", + "dynamodb-global-table-deletion-protection-per-replica" + ], + "outlist": [], + "label": "Three base beliefs from different services show deletion protection ranges from absent to default-on to per-replica-manual, with no consistent pattern" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "aws-disable-region-does-not-delete-resources": { + "text": "Disabling an opt-in AWS Region deactivates IAM access but does not delete resources \u2014 charges continue for any resources remaining in the disabled Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/accounts-latest-reference-manage-acct-regionshtml.md", + "source_url": "", + "source_hash": "f2c5034b7e63e324", + "date": "2026-03-12", + "metadata": {} + }, + "aws-feature-toggle-resets-associated-state": { + "text": "Toggling AWS features off and back on resets associated state rather than preserving it \u2014 PITR windows reset, new GSIs don't inherit auto-scaling, and PITR isn't auto-enabled on restores.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-pitr-disable-reenable-resets-window", + "dynamodb-autoscaling-new-gsi-no-auto-scaling", + "dynamodb-pitr-must-reconfig-pitr-itself" + ], + "outlist": [], + "label": "\"Disable then re-enable\" is not equivalent to \"no change\" \u2014 state is lost at each toggle boundary" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "aws-global-default-path-creates-permanent-irrecoverable-suboptimality": { + "text": "Following AWS defaults when deploying global architectures produces configurations that are both permanently suboptimal AND permanently irrecoverable \u2014 defaults trigger creation-time immutable decisions that propagate unchanged across all regions and tiers with no remediation path short of full rebuild.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "creation-time-errors-propagate-permanently-across-all-tiers-and-regions", + "default-configurations-create-permanently-suboptimal-global-architectures" + ], + "outlist": [], + "label": "defaults create suboptimal configs that are then frozen by creation-time immutability and replicated globally \u2014 the default path IS the worst-case path" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "aws-managed-policy-arn-empty-account-field": { + "text": "AWS managed policy ARNs use an empty account field: `arn:aws:iam::aws:policy/PolicyName`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AdministratorAccesshtml.md", + "source_url": "", + "source_hash": "83d044ad28bcdcbc", + "date": "2026-03-12", + "metadata": {} + }, + "aws-managed-policy-max-five-versions": { + "text": "AWS managed policies can have up to 5 versions with one designated as the default.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSCloudTrail_FullAccesshtml.md", + "source_url": "", + "source_hash": "454d33fc9804931f", + "date": "2026-03-12", + "metadata": {} + }, + "aws-partitions-hard-iam-boundaries": { + "text": "AWS partitions (`aws`, `aws-cn`, `aws-us-gov`) are hard IAM boundaries \u2014 credentials and IAM data do not cross partition boundaries.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/accounts-latest-reference-manage-acct-regionshtml.md", + "source_url": "", + "source_hash": "f2c5034b7e63e324", + "date": "2026-03-12", + "metadata": {} + }, + "aws-recommends-cognito-over-direct-sts-for-mobile": { + "text": "For mobile apps, AWS recommends Amazon Cognito over direct STS web identity federation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-temporary-credentials.md", + "source_url": "", + "source_hash": "ce85495c84417561", + "date": "2026-03-08", + "metadata": {} + }, + "aws-recommends-savings-plans-over-reserved-instances": { + "text": "AWS officially recommends Savings Plans over Reserved Instances for new commitments due to greater flexibility.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-reserved-instances.md", + "source_url": "", + "source_hash": "9daa6c73cef9d554", + "date": "2026-03-08", + "metadata": {} + }, + "aws-region-enable-disable-cli-commands": { + "text": "Opt-in Regions are managed via `aws account enable-region --region-name ` and `aws account disable-region --region-name `; status checked with `aws account get-region-opt-status`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/accounts-latest-reference-manage-acct-regionshtml.md", + "source_url": "", + "source_hash": "f2c5034b7e63e324", + "date": "2026-03-12", + "metadata": {} + }, + "aws-resilience-defaults-suboptimal-at-every-geographic-scope": { + "text": "AWS resilience defaults are suboptimal at both AZ scope (single-AZ default for EBS volumes and DAX clusters) and region scope (eventual consistency default for DynamoDB global tables and RDS cross-region replication), requiring explicit opt-in at every geographic level for production-grade resilience.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "az-failure-protection-requires-explicit-multi-az-for-all-data-tiers", + "cross-region-replication-defaults-eventual-consistency-across-services" + ], + "outlist": [], + "label": "Resilience defaults fail independently at both AZ and region scope \u2014 no geographic level provides production-grade defaults" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "aws-resource-configuration-brittle-at-both-mutability-extremes": { + "text": "AWS resource configuration is brittle at both ends of the mutability spectrum: immutable properties (LSIs, consistency mode, Lake KMS keys) can never be corrected after creation, while mutable properties (PITR, auto-scaling, GSIs) silently lose associated state when toggled \u2014 neither extreme provides safe, idempotent configuration management.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "aws-resource-properties-split-into-creation-immutable-and-runtime-mutable", + "aws-feature-toggle-resets-associated-state" + ], + "outlist": [], + "label": "Immutable = permanently uncorrectable; mutable = lossy toggle \u2014 both fail the safe reconfiguration expectation" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "aws-resource-lifecycle-fragile-at-all-mutability-points": { + "text": "AWS resource configuration is fragile at every point in the mutability spectrum and lifecycle: immutable properties can never be corrected after creation, mutable toggles silently reset associated state, and lifecycle transitions (restore, toggle, scale) degrade DR posture \u2014 there is no safe zone where configuration naturally maintains integrity.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "aws-resource-configuration-brittle-at-both-mutability-extremes", + "lifecycle-transitions-silently-degrade-dr-posture" + ], + "outlist": [], + "label": "immutable = uncorrectable errors + mutable = silent state resets + lifecycle = DR degradation; brittleness at all three points" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "aws-resource-properties-split-into-creation-immutable-and-runtime-mutable": { + "text": "AWS resource properties consistently divide into creation-time immutable (DynamoDB LSI/consistency mode, CloudTrail Lake KMS keys, SLR names) and runtime-mutable (DynamoDB GSI/table class) categories.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-global-tables-consistency-mode-immutable", + "dynamodb-lsi-must-create-at-table-creation", + "dynamodb-gsi-can-add-remove-after-creation", + "dynamodb-table-class-changeable-after-creation", + "cloudtrail-eds-kms-key-irrevocable", + "iam-service-linked-role-name-immutable" + ], + "outlist": [], + "label": "Cross-service pattern: the most architecturally significant decisions (indexing strategy, consistency model, encryption keys) are the ones locked at creation" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "aws-support-all-api-calls-logged-by-cloudtrail": { + "text": "All AWS Support API operations are logged by CloudTrail comprehensively \u2014 this is not selective logging.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awssupport-latest-user-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "902e919fbb4d9a4f", + "date": "2026-03-12", + "metadata": {} + }, + "az-code-to-physical-zone-mapping-is-per-account": { + "text": "Availability Zone code-to-physical-zone mapping is account-specific \u2014 the same AZ code (e.g., us-east-1a) can represent different physical zones in different AWS accounts.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-spot-instances.md", + "source_url": "", + "source_hash": "b1460a1f8386ee93", + "date": "2026-03-08", + "metadata": {} + }, + "az-failure-protection-requires-explicit-multi-az-for-all-data-tiers": { + "text": "Single-AZ is the default scope for EBS volumes and DAX clusters; surviving AZ failure requires explicit multi-AZ configuration across every data tier (EBS, DAX, RDS).", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "ebs-volumes-az-scoped", + "dax-fault-tolerant-cluster-minimum-3-nodes-3-azs", + "rds-multi-az-and-read-replicas-simultaneously" + ], + "outlist": [], + "label": "No single \"enable HA\" switch \u2014 each data service must be independently configured for cross-AZ resilience" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "b2bi-cloudtrail-redacts-sensitive-fields": { + "text": "AWS B2B Data Interchange redacts sensitive fields (S3 bucket names, keys, EDI transaction details) in CloudTrail logs, marking them `HIDDEN_DUE_TO_SECURITY_REASONS`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/b2bi-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "0e601fa5aa6ac914", + "date": "2026-03-12", + "metadata": {} + }, + "b2bi-events-management-events-in-cloudtrail": { + "text": "AWS B2B Data Interchange events are classified as management events (not data events) in CloudTrail, with event source `b2bi.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/b2bi-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "0e601fa5aa6ac914", + "date": "2026-03-12", + "metadata": {} + }, + "backup-air-gapped-vault-all-charges-to-backup": { + "text": "AWS Backup Logically Air-Gapped Vaults shift all backup charges to the AWS Backup bill regardless of whether the resource supports full AWS Backup management.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-metering-and-billinghtml.md", + "source_url": "", + "source_hash": "4f7be19fcb804895", + "date": "2026-03-12", + "metadata": {} + }, + "backup-aurora-neptune-documentdb-always-require-opt-in": { + "text": "Aurora, Neptune, and Amazon DocumentDB always require explicit AWS Backup service opt-in \u2014 they are exceptions to the rule that explicitly assigned resource types bypass opt-in settings.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-getting-startedhtml.md", + "source_url": "", + "source_hash": "17139cc1228756d1", + "date": "2026-03-12", + "metadata": {} + }, + "backup-cloudtrail-service-events-not-api-calls": { + "text": "AWS Backup generates CloudTrail events that are not tied to public API calls (e.g., `BackupJobCompleted` has eventType `AwsServiceEvent`, not `AwsApiCall`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "2f8b414f2cf236a0", + "date": "2026-03-12", + "metadata": {} + }, + "backup-cloudwatch-namespace-aws-backup": { + "text": "AWS Backup publishes metrics to CloudWatch under the `AWS/Backup` namespace with a 5-minute update interval.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-cloudwatchhtml.md", + "source_url": "", + "source_hash": "459e33dceeeab829", + "date": "2026-03-12", + "metadata": {} + }, + "backup-cold-storage-90-day-minimum-immutable": { + "text": "AWS Backup cold storage has a minimum retention of 90 days, which cannot be changed after transition; the total retention period must exceed the cold storage transition value by more than 90 days.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-cross-region-backuphtml.md", + "source_url": "", + "source_hash": "87da961872b2c0c5", + "date": "2026-03-12", + "metadata": {} + }, + "backup-cold-storage-minimum-90-days-beyond-warm": { + "text": "AWS Backup cold storage requires a minimum 90-day retention beyond the warm-to-cold transition point; `DeleteAfterDays` must be at least `MoveToColdStorageAfterDays + 90`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-plan-options-and-configurationhtml.md", + "source_url": "", + "source_hash": "c530d109878ebaf8", + "date": "2026-03-12", + "metadata": {} + }, + "backup-completed-with-issues-console-only": { + "text": "The \"Completed with issues\" backup job status exists only in the AWS Backup console and is not trackable via CloudWatch metrics.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-cloudwatchhtml.md", + "source_url": "", + "source_hash": "459e33dceeeab829", + "date": "2026-03-12", + "metadata": {} + }, + "backup-continuous-pitr-retention-1-to-35-days": { + "text": "AWS Backup continuous backups (PITR) have a retention limit of 1\u201335 days and cannot be scheduled with cron expressions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-plan-options-and-configurationhtml.md", + "source_url": "", + "source_hash": "c530d109878ebaf8", + "date": "2026-03-12", + "metadata": {} + }, + "backup-copy-job-uses-destination-vault-dimension": { + "text": "AWS Backup copy job CloudWatch metrics use the destination vault name (not source) as their vault dimension.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-cloudwatchhtml.md", + "source_url": "", + "source_hash": "459e33dceeeab829", + "date": "2026-03-12", + "metadata": {} + }, + "backup-cross-account-aws-managed-key-not-supported": { + "text": "Cross-account AWS Backup copies require customer managed KMS keys for resources not fully managed by AWS Backup \u2014 AWS managed keys cannot be used because their key policies are immutable and cannot be shared.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-encryptionhtml.md", + "source_url": "", + "source_hash": "993244b621161c16", + "date": "2026-03-12", + "metadata": {} + }, + "backup-cross-account-copy-billing-differs-by-management": { + "text": "For AWS Backup cross-account/cross-Region copies, fully managed resources bill data transfer to the source account, while non-fully managed resources bill to the destination account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-metering-and-billinghtml.md", + "source_url": "", + "source_hash": "4f7be19fcb804895", + "date": "2026-03-12", + "metadata": {} + }, + "backup-cross-account-copy-into-vault-action": { + "text": "The `backup:CopyIntoBackupVault` action must be explicitly allowed on the destination vault via resource-based policy for cross-account backup copies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-create-cross-account-backuphtml.md", + "source_url": "", + "source_hash": "4754aafeb5452a79", + "date": "2026-03-12", + "metadata": {} + }, + "backup-cross-account-dest-vault-requires-cmk": { + "text": "The destination vault for cross-account backup must use a customer managed KMS key \u2014 the default vault (with AWS managed key) cannot be used because its key cannot be shared across accounts.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-create-cross-account-backuphtml.md", + "source_url": "", + "source_hash": "4754aafeb5452a79", + "date": "2026-03-12", + "metadata": {} + }, + "backup-cross-account-disable-15min-eventual-consistency": { + "text": "After disabling cross-account backup in AWS Backup, jobs may still run for up to 15 minutes due to eventual consistency.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-create-cross-account-backuphtml.md", + "source_url": "", + "source_hash": "4754aafeb5452a79", + "date": "2026-03-12", + "metadata": {} + }, + "backup-cross-account-no-cold-tier": { + "text": "AWS Backup cross-account copies do not support cold tier storage.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-create-cross-account-backuphtml.md", + "source_url": "", + "source_hash": "4754aafeb5452a79", + "date": "2026-03-12", + "metadata": {} + }, + "backup-cross-account-no-direct-restore": { + "text": "AWS Backup does not support restoring directly across accounts \u2014 backups must be copied to the target account first, then restored locally.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-create-cross-account-backuphtml.md", + "source_url": "", + "source_hash": "4754aafeb5452a79", + "date": "2026-03-12", + "metadata": {} + }, + "backup-cross-account-requires-organizations": { + "text": "AWS Backup cross-account backup requires AWS Organizations to be configured first.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-whatisbackuphtml.md", + "source_url": "", + "source_hash": "2eeeb5864a8e36bf", + "date": "2026-03-12", + "metadata": {} + }, + "backup-cross-account-requires-same-org": { + "text": "AWS Backup cross-account backup requires all accounts to belong to the same AWS Organizations organization.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-create-cross-account-backuphtml.md", + "source_url": "", + "source_hash": "4754aafeb5452a79", + "date": "2026-03-12", + "metadata": {} + }, + "backup-cross-region-copy-reencrypts-destination-key": { + "text": "AWS Backup cross-Region copies are re-encrypted using the destination vault's customer managed KMS key.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-cross-region-backuphtml.md", + "source_url": "", + "source_hash": "87da961872b2c0c5", + "date": "2026-03-12", + "metadata": {} + }, + "backup-delegated-admin-cannot-override-opt-in": { + "text": "AWS Backup delegated administrator accounts can manage backup policies and monitor cross-account jobs but cannot override service opt-in settings of other member accounts \u2014 only the management account can.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-manage-cross-accounthtml.md", + "source_url": "", + "source_hash": "4f95c1a16ea9c1c6", + "date": "2026-03-12", + "metadata": {} + }, + "backup-ebs-encryption-change-forces-full-copy": { + "text": "Changing the encryption status during an Amazon EBS snapshot copy forces a full (non-incremental) copy.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-cross-region-backuphtml.md", + "source_url": "", + "source_hash": "87da961872b2c0c5", + "date": "2026-03-12", + "metadata": {} + }, + "backup-ebs-incremental-becomes-full-in-cold": { + "text": "EBS incremental backups become full backups when transitioned to cold storage in AWS Backup.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-plan-options-and-configurationhtml.md", + "source_url": "", + "source_hash": "c530d109878ebaf8", + "date": "2026-03-12", + "metadata": {} + }, + "backup-ec2-restore-requires-passrole-instance-profile": { + "text": "EC2 restores via AWS Backup require an additional `iam:PassRole` statement for the EC2 instance profile role, not the Backup service role.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-security-iam-awsmanpolhtml.md", + "source_url": "", + "source_hash": "1d526fa19beb8a5b", + "date": "2026-03-12", + "metadata": {} + }, + "backup-encrypted-restore-needs-kms-permissions": { + "text": "Restoring encrypted AWS Backup recovery points requires either KMS key policy allowlisting or explicit KMS permissions (`KMSDescribePermissions`, `KMSPermissions`, `KMSCreateGrantPermissions`) on the restore role.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-security-iam-awsmanpolhtml.md", + "source_url": "", + "source_hash": "1d526fa19beb8a5b", + "date": "2026-03-12", + "metadata": {} + }, + "backup-event-source-aws-backup": { + "text": "All AWS Backup EventBridge events use `\"source\": \"aws.backup\"` and all CloudTrail events use `eventSource: backup.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-eventbridgehtml.md", + "source_url": "", + "source_hash": "3ece42eb92abd3f2", + "date": "2026-03-12", + "metadata": {} + }, + "backup-eventbridge-best-effort-5-minutes": { + "text": "AWS Backup emits events to Amazon EventBridge on a best-effort basis every 5 minutes \u2014 not real-time delivery.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-eventbridgehtml.md", + "source_url": "", + "source_hash": "3ece42eb92abd3f2", + "date": "2026-03-12", + "metadata": {} + }, + "backup-eventbridge-more-event-types-than-sns": { + "text": "AWS Backup EventBridge integration covers more event types than the SNS notification API, including vault changes, copy jobs, region settings, and cold/warm recovery point counts.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-eventbridgehtml.md", + "source_url": "", + "source_hash": "3ece42eb92abd3f2", + "date": "2026-03-12", + "metadata": {} + }, + "backup-expired-recovery-points-still-billed": { + "text": "Expired AWS Backup recovery points that couldn't be automatically deleted still incur storage charges and must be manually deleted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-cloudwatchhtml.md", + "source_url": "", + "source_hash": "459e33dceeeab829", + "date": "2026-03-12", + "metadata": {} + }, + "backup-expired-state-concurrent-job-conflict": { + "text": "AWS Backup job EXPIRED state occurs when a job couldn't start because another backup job for the same resource was already running.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-eventbridgehtml.md", + "source_url": "", + "source_hash": "3ece42eb92abd3f2", + "date": "2026-03-12", + "metadata": {} + }, + "backup-failed-copy-jobs-not-charged": { + "text": "Failed AWS Backup copy jobs incur no charge \u2014 billing only occurs when a recovery point is successfully created in the destination vault.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-metering-and-billinghtml.md", + "source_url": "", + "source_hash": "4f7be19fcb804895", + "date": "2026-03-12", + "metadata": {} + }, + "backup-first-cross-region-copy-always-full": { + "text": "The first AWS Backup cross-Region copy is always a full copy; subsequent copies are incremental for services that support it.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-cross-region-backuphtml.md", + "source_url": "", + "source_hash": "87da961872b2c0c5", + "date": "2026-03-12", + "metadata": {} + }, + "backup-full-management-own-arn-independent-kms": { + "text": "Full AWS Backup management gives backups their own `arn:aws:backup` ARNs (enabling backup-specific IAM policies) and independent KMS encryption using the vault key rather than the source resource key.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-whatisbackuphtml.md", + "source_url": "", + "source_hash": "2eeeb5864a8e36bf", + "date": "2026-03-12", + "metadata": {} + }, + "backup-fullaccess-vs-operatoraccess": { + "text": "AWSBackupOperatorAccess can assign resources to plans and create on-demand backups but cannot create/edit backup plans or delete scheduled backups; AWSBackupFullAccess can do all of these.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-security-iam-awsmanpolhtml.md", + "source_url": "", + "source_hash": "1d526fa19beb8a5b", + "date": "2026-03-12", + "metadata": {} + }, + "backup-fully-managed-incremental-same-vault": { + "text": "For fully-managed AWS Backup resource types, incremental backups require an earlier backup in the same vault; non-fully-managed types only need one in the same Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-creating-a-backuphtml.md", + "source_url": "", + "source_hash": "a4d591d9f03895e5", + "date": "2026-03-12", + "metadata": {} + }, + "backup-incremental-allows-full-restore-after-base-deleted": { + "text": "AWS Backup incremental backups retain enough reference data to perform a full restore even after the original full backup has been deleted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-creating-a-backuphtml.md", + "source_url": "", + "source_hash": "a4d591d9f03895e5", + "date": "2026-03-12", + "metadata": {} + }, + "backup-independent-encryption-fully-managed-only": { + "text": "AWS Backup independent encryption (using vault's KMS key instead of source resource's key) is only available for fully-managed resource types: S3, VMware VMs, DynamoDB (Advanced), EFS, Timestream, CloudFormation, and SAP HANA on EC2.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-encryptionhtml.md", + "source_url": "", + "source_hash": "993244b621161c16", + "date": "2026-03-12", + "metadata": {} + }, + "backup-job-created-to-expired-start-window": { + "text": "AWS Backup jobs transition from CREATED to EXPIRED if the backup cannot begin within the configured start window.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-cloudwatchhtml.md", + "source_url": "", + "source_hash": "459e33dceeeab829", + "date": "2026-03-12", + "metadata": {} + }, + "backup-job-nine-statuses": { + "text": "AWS Backup jobs have 9 possible statuses: CREATED, PENDING, RUNNING, ABORTING, ABORTED, COMPLETED, FAILED, EXPIRED, and PARTIAL.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-creating-a-backuphtml.md", + "source_url": "", + "source_hash": "a4d591d9f03895e5", + "date": "2026-03-12", + "metadata": {} + }, + "backup-kms-three-minimum-permissions": { + "text": "The three minimum KMS key policy permissions required for AWS Backup operations are `kms:CreateGrant`, `kms:GenerateDataKey`, and `kms:Decrypt`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-encryptionhtml.md", + "source_url": "", + "source_hash": "993244b621161c16", + "date": "2026-03-12", + "metadata": {} + }, + "backup-maintenance-window-block-1hr-fsx-4hr-aurora-exempt": { + "text": "AWS database services cannot start backups 1 hour before or during maintenance windows; FSx blocks 4 hours before/during; Aurora is exempt from this restriction.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-plan-options-and-configurationhtml.md", + "source_url": "", + "source_hash": "c530d109878ebaf8", + "date": "2026-03-12", + "metadata": {} + }, + "backup-max-5-delegated-admins": { + "text": "Up to 5 delegated administrator accounts can be registered for AWS Backup via the console.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-manage-cross-accounthtml.md", + "source_url": "", + "source_hash": "4f95c1a16ea9c1c6", + "date": "2026-03-12", + "metadata": {} + }, + "backup-new-services-not-auto-opted-in": { + "text": "When AWS Backup adds support for new services in a Region after initial account setup, those services are not automatically opted in \u2014 manual opt-in is required.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-getting-startedhtml.md", + "source_url": "", + "source_hash": "17139cc1228756d1", + "date": "2026-03-12", + "metadata": {} + }, + "backup-on-demand-cannot-use-pitr": { + "text": "On-demand AWS Backup backups cannot be used with Point-in-Time Recovery (PITR) \u2014 PITR requires continuous backups.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-creating-a-backuphtml.md", + "source_url": "", + "source_hash": "a4d591d9f03895e5", + "date": "2026-03-12", + "metadata": {} + }, + "backup-only-governs-backups-created-through-service": { + "text": "AWS Backup only governs backups created through AWS Backup \u2014 native service snapshots created independently are not centralized or managed by AWS Backup.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-whatisbackuphtml.md", + "source_url": "", + "source_hash": "2eeeb5864a8e36bf", + "date": "2026-03-12", + "metadata": {} + }, + "backup-opt-in-per-account-per-region": { + "text": "AWS Backup service opt-in is configured per account and per Region \u2014 not globally.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-getting-startedhtml.md", + "source_url": "", + "source_hash": "17139cc1228756d1", + "date": "2026-03-12", + "metadata": {} + }, + "backup-org-policy-mgmt-account-opt-in-overrides": { + "text": "For backup plans created by AWS Organizations-level policies, the management account's opt-in settings override member account settings; locally-created backup plans follow the member account's own opt-in settings.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-manage-cross-accounthtml.md", + "source_url": "", + "source_hash": "4f95c1a16ea9c1c6", + "date": "2026-03-12", + "metadata": {} + }, + "backup-overlapping-rules-longer-retention-wins": { + "text": "When two AWS Backup plan rules have overlapping start windows, AWS Backup keeps only the backup with the longer retention period.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-plan-options-and-configurationhtml.md", + "source_url": "", + "source_hash": "c530d109878ebaf8", + "date": "2026-03-12", + "metadata": {} + }, + "backup-plan-name-max-50-chars": { + "text": "AWS Backup plan names have a maximum of 50 characters, allowing alphanumeric characters, dashes, underscores, and periods.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-plan-options-and-configurationhtml.md", + "source_url": "", + "source_hash": "c530d109878ebaf8", + "date": "2026-03-12", + "metadata": {} + }, + "backup-retention-semantics-conflict-across-storage-tiers": { + "text": "AWS Backup cold storage requires a minimum 90-day retention beyond the warm-to-cold transition while continuous PITR backups max out at 35 days \u2014 organizations must plan for fundamentally different retention windows across backup tiers, and cannot unify continuous and archival retention into a single policy", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "backup-cold-storage-minimum-90-days-beyond-warm", + "backup-continuous-pitr-retention-1-to-35-days" + ], + "outlist": [], + "label": "Cold storage minimum (90 days) and PITR maximum (35 days) create non-overlapping retention windows that resist unified lifecycle management" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "backup-s3-always-encrypted": { + "text": "S3 backups created by AWS Backup are always encrypted, even if the source bucket is unencrypted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-encryptionhtml.md", + "source_url": "", + "source_hash": "993244b621161c16", + "date": "2026-03-12", + "metadata": {} + }, + "backup-s3-dedicated-iam-policies": { + "text": "AWS Backup S3 backup and restore have dedicated IAM policies (`AWSBackupServiceRolePolicyForS3Backup` and `AWSBackupServiceRolePolicyForS3Restore`) separate from the general backup/restore service role policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-security-iam-awsmanpolhtml.md", + "source_url": "", + "source_hash": "1d526fa19beb8a5b", + "date": "2026-03-12", + "metadata": {} + }, + "backup-snapshot-retention-1-day-to-100-years": { + "text": "AWS Backup snapshot retention ranges from 1 day to 100 years (or indefinite).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-plan-options-and-configurationhtml.md", + "source_url": "", + "source_hash": "c530d109878ebaf8", + "date": "2026-03-12", + "metadata": {} + }, + "backup-strategy-faces-conflicting-retention-and-state-reset": { + "text": "AWS backup strategy faces compounding structural conflicts: cold storage demands 90+ day retention while PITR maxes at 35 days, AND recovery restores do not preserve PITR configuration \u2014 organizations must bridge a retention gap while manually re-enabling the very protection that would cover it.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "backup-retention-semantics-conflict-across-storage-tiers", + "pitr-recovery-does-not-preserve-pitr-configuration" + ], + "outlist": [], + "label": "Retention tier mismatch AND state reset on restore create a gap where recovered resources lack the protection that justified the recovery" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "backup-tag-based-respects-opt-in-explicit-does-not": { + "text": "AWS Backup tag-based resource assignments respect service opt-in settings, while explicitly assigned resource types are backed up regardless of opt-in (except Aurora, Neptune, and DocumentDB).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-getting-startedhtml.md", + "source_url": "", + "source_hash": "17139cc1228756d1", + "date": "2026-03-12", + "metadata": {} + }, + "backup-unencrypted-aurora-docdb-neptune-stays-unencrypted": { + "text": "Copies of unencrypted Aurora, DocumentDB, and Neptune clusters remain unencrypted even when copied by AWS Backup.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-encryptionhtml.md", + "source_url": "", + "source_hash": "993244b621161c16", + "date": "2026-03-12", + "metadata": {} + }, + "backup-vault-compliance-ready-for-financial-regulation": { + "text": "AWS Backup vault provides compliance-ready immutable storage meeting SEC 17a-4, CFTC, and FINRA requirements when vault lock and KMS encryption are both configured", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "backup-vault-lock-sec-17a4-cftc-finra", + "backup-vault-requires-kms-key" + ], + "outlist": [ + "backup-encrypted-restore-needs-kms-permissions" + ], + "label": "Vault lock plus encryption achieves regulatory compliance UNLESS KMS key permissions break during restore \u2014 immutability is enforced for writes but restore requires active KMS access that may not survive key rotation, account closure, or cross-account permission changes" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "backup-vault-content-immutable": { + "text": "AWS Backup vault content is immutable \u2014 no one can alter the content of backups stored in a vault.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-whatisbackuphtml.md", + "source_url": "", + "source_hash": "2eeeb5864a8e36bf", + "date": "2026-03-12", + "metadata": {} + }, + "backup-vault-lock-governance-vs-compliance-mode": { + "text": "AWS Backup Vault Lock has two modes: Governance (removable by users with sufficient IAM permissions) and Compliance (immutable after grace time expires); the `ChangeableForDays` parameter creates Compliance mode, omitting it creates Governance mode.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-vault-lockhtml.md", + "source_url": "", + "source_hash": "9c22106762d1de12", + "date": "2026-03-12", + "metadata": {} + }, + "backup-vault-lock-grace-time-3-to-36500-days": { + "text": "AWS Backup Vault Lock Compliance mode grace time (cooling-off period) ranges from a minimum of 3 days to a maximum of 36,500 days (~100 years); after it expires, the lock is permanently immutable.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-vault-lockhtml.md", + "source_url": "", + "source_hash": "9c22106762d1de12", + "date": "2026-03-12", + "metadata": {} + }, + "backup-vault-lock-not-glacier-vault-lock": { + "text": "AWS Backup Vault Lock is a different feature from Amazon S3 Glacier Vault Lock \u2014 they have different scope and functionality.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-vault-lockhtml.md", + "source_url": "", + "source_hash": "9c22106762d1de12", + "date": "2026-03-12", + "metadata": {} + }, + "backup-vault-lock-retention-only-new-jobs": { + "text": "AWS Backup Vault Lock retention period enforcement (min/max days) only affects new backup/copy jobs; existing recovery points are not affected retroactively.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-vault-lockhtml.md", + "source_url": "", + "source_hash": "9c22106762d1de12", + "date": "2026-03-12", + "metadata": {} + }, + "backup-vault-lock-root-cannot-override": { + "text": "AWS Backup Vault Lock prevents recovery point deletion by any user including the AWS account root user; however, account closure overrides vault lock after the 90-day suspension period.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-vault-lockhtml.md", + "source_url": "", + "source_hash": "9c22106762d1de12", + "date": "2026-03-12", + "metadata": {} + }, + "backup-vault-lock-sec-17a4-cftc-finra": { + "text": "AWS Backup Vault Lock is assessed for compliance with SEC 17a-4, CFTC, and FINRA regulations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-vault-lockhtml.md", + "source_url": "", + "source_hash": "9c22106762d1de12", + "date": "2026-03-12", + "metadata": {} + }, + "backup-vault-requires-kms-key": { + "text": "Each AWS Backup vault requires an AWS KMS encryption key at creation time; some backups are encrypted by the vault's KMS key while others are encrypted by their source AWS service.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-vaultshtml.md", + "source_url": "", + "source_hash": "ebdb3314f807e059", + "date": "2026-03-12", + "metadata": {} + }, + "backup-warm-storage-minimum-one-week": { + "text": "AWS Backup warm storage retention of less than one week can force daily full backups instead of incremental, significantly increasing costs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-metering-and-billinghtml.md", + "source_url": "", + "source_hash": "4f7be19fcb804895", + "date": "2026-03-12", + "metadata": {} + }, + "batch-cloudtrail-event-history-without-trail": { + "text": "AWS Batch events are visible in CloudTrail Event History without creating a trail; a trail is required only for continuous persistent delivery to S3.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/batch-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "6e0c2a6d4f898b52", + "date": "2026-03-12", + "metadata": {} + }, + "batch-cloudtrail-logs-all-api-calls": { + "text": "AWS Batch integrates with CloudTrail to log all API calls as events, including calls from the console and programmatic API/SDK calls.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/batch-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "6e0c2a6d4f898b52", + "date": "2026-03-12", + "metadata": {} + }, + "bedrock-cloudtrail-data-event-resource-types": { + "text": "Amazon Bedrock supports eight CloudTrail data event resource types: AgentAlias, KnowledgeBase, FlowAlias, Guardrail, Model, AsyncInvoke, InlineAgent, and Prompt.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/bedrock-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "2cc36170134b85e8", + "date": "2026-03-12", + "metadata": {} + }, + "bedrock-data-events-require-advanced-selectors": { + "text": "Amazon Bedrock data events (InvokeAgent, Retrieve, RetrieveAndGenerate, InvokeFlow, etc.) require advanced event selectors to enable and incur additional CloudTrail charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/bedrock-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "2cc36170134b85e8", + "date": "2026-03-12", + "metadata": {} + }, + "bedrock-eventsource-bedrock-amazonaws-com": { + "text": "The CloudTrail `eventSource` for Amazon Bedrock is `bedrock.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/bedrock-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "2cc36170134b85e8", + "date": "2026-03-12", + "metadata": {} + }, + "bedrock-guardduty-monitors-management-events": { + "text": "Amazon GuardDuty automatically analyzes CloudTrail management events for suspicious Bedrock API activity, such as removing Guardrails or changing training data S3 buckets.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/bedrock-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "2cc36170134b85e8", + "date": "2026-03-12", + "metadata": {} + }, + "bedrock-invokemodel-converse-are-management-events": { + "text": "Amazon Bedrock's `InvokeModel`, `InvokeModelWithResponseStream`, `Converse`, and `ConverseStream` are logged as CloudTrail management events (logged by default), not data events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/bedrock-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "2cc36170134b85e8", + "date": "2026-03-12", + "metadata": {} + }, + "billing-cloudtrail-events-logged-in-us-east-1": { + "text": "AWS Billing CloudTrail events are logged in us-east-1 because billing is a global service routed through that region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awsaccountbilling-latest-aboutv2-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "2d80388d42612c0f", + "date": "2026-03-12", + "metadata": {} + }, + "billing-cloudtrail-payment-data-auto-redacted": { + "text": "Sensitive payment instrument details (card numbers, CVV, addresses) are automatically redacted as `HIDDEN_DUE_TO_SECURITY_REASONS` in billing-related CloudTrail logs \u2014 no configuration required.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awsaccountbilling-latest-aboutv2-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "2d80388d42612c0f", + "date": "2026-03-12", + "metadata": {} + }, + "billing-conductor-all-management-events": { + "text": "All AWS Billing Conductor API calls are logged by CloudTrail as management events (not data events).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/billingconductor-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "09b19f2e2f3dd8dc", + "date": "2026-03-12", + "metadata": {} + }, + "billing-conductor-auto-events-awsserviceevent-type": { + "text": "AWS Billing Conductor automatic operations (e.g., AutoAssociateAccount) appear in CloudTrail as `eventType: AwsServiceEvent` with `invokedBy: billingconductor.amazonaws.com`, while user-initiated calls appear as `AwsApiCall`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/billingconductor-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "09b19f2e2f3dd8dc", + "date": "2026-03-12", + "metadata": {} + }, + "billing-conductor-does-not-change-actual-bill": { + "text": "AWS Billing Conductor generates an alternative billing view for showback/chargeback workflows \u2014 it does not modify the actual AWS bill.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awsaccountbilling-latest-aboutv2-billing-what-ishtml.md", + "source_url": "", + "source_hash": "24025f12de9df753", + "date": "2026-03-12", + "metadata": {} + }, + "billing-conductor-sensitive-parameter-masking": { + "text": "AWS Billing Conductor redacts sensitive parameters (e.g., the `Name` field in CreateBillingGroup appears as `\"***\"`) in CloudTrail log entries.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/billingconductor-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "09b19f2e2f3dd8dc", + "date": "2026-03-12", + "metadata": {} + }, + "billing-console-iam-access-must-be-activated": { + "text": "By default, IAM users and roles cannot access the AWS Billing console \u2014 the **Activate IAM Access** setting must be enabled by the root user first.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awsaccountbilling-latest-aboutv2-billing-what-ishtml.md", + "source_url": "", + "source_hash": "24025f12de9df753", + "date": "2026-03-12", + "metadata": {} + }, + "braket-cloudtrail-logs-all-api-actions": { + "text": "All Amazon Braket API actions are logged by CloudTrail with no opt-in required; the `eventSource` is `braket.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/braket-latest-developerguide-braket-ctlogshtml.md", + "source_url": "", + "source_hash": "860db5b485c244b5", + "date": "2026-03-12", + "metadata": {} + }, + "budgets-actions-can-apply-iam-deny-policies": { + "text": "AWS Budget actions can automatically enforce IAM policies (e.g., deny resource provisioning) when budget thresholds are crossed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awsaccountbilling-latest-aboutv2-budgets-managing-costshtml.md", + "source_url": "", + "source_hash": "12de8a3ff11c965a", + "date": "2026-03-12", + "metadata": {} + }, + "budgets-six-types": { + "text": "AWS Budgets supports six budget types: Cost, Usage, RI utilization, RI coverage, Savings Plans utilization, and Savings Plans coverage.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awsaccountbilling-latest-aboutv2-budgets-managing-costshtml.md", + "source_url": "", + "source_hash": "12de8a3ff11c965a", + "date": "2026-03-12", + "metadata": {} + }, + "budgets-support-forecasted-alerts": { + "text": "AWS Budgets supports forecasted alerts (triggered before costs actually accrue), not just actual-spend alerts.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awsaccountbilling-latest-aboutv2-budgets-managing-costshtml.md", + "source_url": "", + "source_hash": "12de8a3ff11c965a", + "date": "2026-03-12", + "metadata": {} + }, + "budgets-update-frequency-three-times-per-day": { + "text": "AWS Budgets updates up to 3 times per day (typically 8\u201312 hours between updates) \u2014 notifications are not real-time and costs may exceed thresholds before alerts arrive.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awsaccountbilling-latest-aboutv2-budgets-managing-costshtml.md", + "source_url": "", + "source_hash": "12de8a3ff11c965a", + "date": "2026-03-12", + "metadata": {} + }, + "byoip-aws-checks-ip-reputation": { + "text": "AWS checks IP reputation for BYOIP ranges and may reject ranges with poor history.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-byoiphtml.md", + "source_url": "", + "source_hash": "5b83fbc8c66145e6", + "date": "2026-03-12", + "metadata": {} + }, + "byoip-limit-5-ranges-per-region": { + "text": "BYOIP has a limit of 5 address ranges per Region (IPv4 + IPv6 combined); increases require AWS Support.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-byoiphtml.md", + "source_url": "", + "source_hash": "5b83fbc8c66145e6", + "date": "2026-03-12", + "metadata": {} + }, + "byoip-most-specific-ipv4-slash-24-ipv6-slash-48": { + "text": "BYOIP most specific address range is /24 for IPv4 and /48 for publicly advertisable IPv6 (/60 for non-publicly advertisable IPv6).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-byoiphtml.md", + "source_url": "", + "source_hash": "5b83fbc8c66145e6", + "date": "2026-03-12", + "metadata": {} + }, + "byoip-not-wavelength-or-outposts": { + "text": "BYOIP is not supported in Wavelength Zones or AWS Outposts; BYOIPv6 is also not supported in Local Zones.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-byoiphtml.md", + "source_url": "", + "source_hash": "5b83fbc8c66145e6", + "date": "2026-03-12", + "metadata": {} + }, + "byoip-one-region-at-a-time": { + "text": "Each BYOIP address range can only be brought to one AWS Region at a time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-byoiphtml.md", + "source_url": "", + "source_hash": "5b83fbc8c66145e6", + "date": "2026-03-12", + "metadata": {} + }, + "byoip-requires-business-entity-registration": { + "text": "BYOIP address ranges must be registered to a business or institutional entity, not an individual person.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-byoiphtml.md", + "source_url": "", + "source_hash": "5b83fbc8c66145e6", + "date": "2026-03-12", + "metadata": {} + }, + "capacity-block-expiration-warning-40-minutes": { + "text": "EC2 Capacity Block reservations emit an expiration warning event 40 minutes before reservation end; instances begin terminating 30 minutes before end (10 minutes after the warning).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-capacity-blocks-monitorhtml.md", + "source_url": "", + "source_hash": "f0b7531058b9ffa7", + "date": "2026-03-12", + "metadata": {} + }, + "capacity-block-instance-lifecycle-field": { + "text": "Capacity Block instance interruption events use `instance-lifecycle: capacity-block` and `instance-action: terminate` \u2014 distinguishing them from Spot Instance interruption events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-capacity-blocks-monitorhtml.md", + "source_url": "", + "source_hash": "f0b7531058b9ffa7", + "date": "2026-03-12", + "metadata": {} + }, + "cdc-pipeline-fragility-invisible-to-audit-and-dr-layers": { + "text": "DynamoDB CDC pipelines face simultaneous capacity constraints and four independent reliability hazards (ordering, duplication, size limits, auto-disable) AND those pipeline failures are invisible to the audit layer that would otherwise detect data synchronization drift \u2014 event-driven architectures can silently desynchronize with no alert from any monitoring tier", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-event-processing-simultaneously-constrained-and-unreliable", + "silent-data-layer-degradation-invisible-to-audit-layer" + ], + "outlist": [], + "label": "Depth-2 CDC fragility meets depth-3 audit-layer invisibility \u2014 the most failure-prone data plane is monitored by the most gap-ridden audit plane" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "cdk-construct-three-arguments": { + "text": "Every CDK construct takes three arguments: scope (parent, typically `this`/`self`), id (logical name), and props (configuration object, may be optional).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cdk-v2-guide-work-withhtml.md", + "source_url": "", + "source_hash": "e229b6f046f15435", + "date": "2026-03-12", + "metadata": {} + }, + "cdk-constructs-base-class-separate-library": { + "text": "The `Construct` base class is in a separate `constructs` library, not bundled within `aws-cdk-lib`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cdk-v2-guide-work-withhtml.md", + "source_url": "", + "source_hash": "e229b6f046f15435", + "date": "2026-03-12", + "metadata": {} + }, + "cdk-constructs-three-positional-args": { + "text": "All CDK constructs take three arguments: scope (parent), id (identifier), and props (keyword arguments); scope and id must be positional arguments, never keyword arguments.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cdk-v2-guide-work-with-cdk-pythonhtml.md", + "source_url": "", + "source_hash": "590902e2ea6f78e5", + "date": "2026-03-12", + "metadata": {} + }, + "cdk-interface-prefix-i-for-external-resources": { + "text": "CDK interfaces prefixed with `I` (e.g., `IBucket`) represent minimum functionality for a resource type; use concrete classes when creating resources, interfaces when accepting external resources (imported via `fromBucketArn()` etc.).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cdk-v2-guide-work-withhtml.md", + "source_url": "", + "source_hash": "e229b6f046f15435", + "date": "2026-03-12", + "metadata": {} + }, + "cdk-l1-l2-l3-construct-levels": { + "text": "CDK L1 constructs (Cfn-prefixed) map 1:1 to CloudFormation resources and are auto-generated; L2 constructs are curated higher-level abstractions with defaults; L3 constructs (patterns) compose multiple resources into common architectures.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cdk-v2-guide-work-withhtml.md", + "source_url": "", + "source_hash": "e229b6f046f15435", + "date": "2026-03-12", + "metadata": {} + }, + "cdk-python-jsii-implements-decorator": { + "text": "Python CDK apps use the `@jsii.implements()` decorator to implement CDK interfaces since Python lacks native interface syntax.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cdk-v2-guide-work-withhtml.md", + "source_url": "", + "source_hash": "e229b6f046f15435", + "date": "2026-03-12", + "metadata": {} + }, + "cdk-python-lambda-alias-trailing-underscore": { + "text": "In CDK Python, the `aws_cdk.aws_lambda` module must be aliased with a trailing underscore (`lambda_`) because `lambda` is a Python reserved word.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cdk-v2-guide-work-with-cdk-pythonhtml.md", + "source_url": "", + "source_hash": "590902e2ea6f78e5", + "date": "2026-03-12", + "metadata": {} + }, + "cdk-requires-nodejs-runtime": { + "text": "AWS CDK requires Node.js as a runtime dependency even when using Python, because the CDK Toolkit is built on Node.js.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cdk-v2-guide-work-with-cdk-pythonhtml.md", + "source_url": "", + "source_hash": "590902e2ea6f78e5", + "date": "2026-03-12", + "metadata": {} + }, + "cdk-v1-end-of-support-june-2023": { + "text": "AWS CDK v1 ended support on June 1, 2023; CDK v2 is the current version.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cdk-v2-guide-work-with-cdk-pythonhtml.md", + "source_url": "", + "source_hash": "590902e2ea6f78e5", + "date": "2026-03-12", + "metadata": {} + }, + "cdk-v2-main-package-aws-cdk-lib": { + "text": "AWS CDK v2 consolidates most constructs into the `aws-cdk-lib` package; experimental modules use separate packages with the `.alpha` suffix (e.g., `aws-cdk..alpha`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cdk-v2-guide-work-with-cdk-pythonhtml.md", + "source_url": "", + "source_hash": "590902e2ea6f78e5", + "date": "2026-03-12", + "metadata": {} + }, + "cdk-v2-python-requires-3-9-plus": { + "text": "AWS CDK v2 requires Python 3.9 or later for Python applications.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cdk-v2-guide-work-with-cdk-pythonhtml.md", + "source_url": "", + "source_hash": "590902e2ea6f78e5", + "date": "2026-03-12", + "metadata": {} + }, + "cdk-v2-single-package-aws-cdk-lib": { + "text": "AWS CDK v2 uses a single consolidated package (`aws-cdk-lib`) instead of CDK v1's per-service packages; experimental constructs ship as separate modules.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cdk-v2-guide-work-withhtml.md", + "source_url": "", + "source_hash": "e229b6f046f15435", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-adding-removing-replacement-property-triggers-replacement": { + "text": "Adding or removing a CloudFormation property that requires replacement triggers replacement even if the effective value doesn't change.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-update-behaviorshtm.md", + "source_url": "", + "source_hash": "919d2ee102f953d6", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-auto-resolves-resource-dependencies": { + "text": "CloudFormation automatically resolves resource dependencies and determines creation order \u2014 users do not manually sequence resource creation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-Welcomehtml.md", + "source_url": "", + "source_hash": "46024f369ffd0512", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-capability-named-iam-for-custom-names": { + "text": "`CAPABILITY_NAMED_IAM` is required when CloudFormation templates include custom names for IAM resources; `CAPABILITY_IAM` suffices for IAM resources without custom names.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-control-access-with-iamhtml.md", + "source_url": "", + "source_hash": "7e4e2f9997122a85", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-change-set-execute-deletes-all-change-sets": { + "text": "After executing a CloudFormation change set, all change sets associated with that stack are automatically deleted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-changesetshtml.md", + "source_url": "", + "source_hash": "bc6ac8c6495474f0", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-change-set-no-stack-modification-until-execute": { + "text": "CloudFormation does not modify the stack when creating a change set \u2014 changes only happen on explicit execution.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-changesetshtml.md", + "source_url": "", + "source_hash": "bc6ac8c6495474f0", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-change-set-no-success-guarantee": { + "text": "CloudFormation change sets do not validate whether an update will succeed \u2014 they only preview changes, not check permissions, quotas, or resource update support.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-changesetshtml.md", + "source_url": "", + "source_hash": "bc6ac8c6495474f0", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-change-sets-do-not-validate-success": { + "text": "CloudFormation change sets do not validate whether an update will succeed \u2014 they don't check account quotas, permissions, or whether a resource supports the proposed update.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-overviewhtml.md", + "source_url": "", + "source_hash": "89792205c7152ac1", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-change-sets-preview-before-execute": { + "text": "CloudFormation change sets let you preview proposed changes before executing them; the `deploy` command automatically creates and executes change sets", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudformation.md", + "source_url": "", + "source_hash": "8f85a73aa161eec8", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-cloudtrail-parameter-values-never-logged": { + "text": "CloudFormation parameter values are never logged in CloudTrail \u2014 only parameter key names appear in log entries (security measure to protect secrets).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cfn-api-logging-cloudtrailhtml.md", + "source_url": "", + "source_hash": "89241f85d29309a2", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-console-requires-create-upload-bucket-s3": { + "text": "CloudFormation console users need `cloudformation:CreateUploadBucket` plus `s3:PutObject`, `s3:ListBucket`, `s3:GetObject`, and `s3:CreateBucket` permissions for template uploads.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-control-access-with-iamhtml.md", + "source_url": "", + "source_hash": "7e4e2f9997122a85", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-continue-update-rollback-resumes-failed": { + "text": "CloudFormation `continue-update-rollback` resumes a stack update rollback that has previously failed", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudformation.md", + "source_url": "", + "source_hash": "8f85a73aa161eec8", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-create-failed-rolls-back-by-default": { + "text": "On `CREATE_FAILED`, CloudFormation rolls back by default and deletes created resources.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-gettingstartedwalkthroughhtml.md", + "source_url": "", + "source_hash": "60d4a3d65037949f", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-custom-named-iam-globally-unique-no-reuse": { + "text": "Custom-named IAM resources in CloudFormation templates are globally unique \u2014 do not reuse the same template with custom-named IAM resources across multiple stacks or regions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-control-access-with-iamhtml.md", + "source_url": "", + "source_hash": "7e4e2f9997122a85", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-default-2000-stacks-per-account": { + "text": "The default CloudFormation limit is 2,000 stacks per account (soft limit, can be increased via Service Quotas).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-limitshtml.md", + "source_url": "", + "source_hash": "eac52bba8f2ac068", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-delegated-admin-requires-call-as-flag": { + "text": "Delegated administrators must pass `--call-as DELEGATED_ADMIN` in CLI commands for CloudFormation StackSet operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-deletehtml.md", + "source_url": "", + "source_hash": "08625f072c4f8099", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-delete-stack-does-not-delete-template-s3-bucket": { + "text": "Deleting a CloudFormation stack deletes its resources but does not delete the S3 bucket storing the template \u2014 that requires separate cleanup.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-gettingstartedwalkthroughhtml.md", + "source_url": "", + "source_hash": "60d4a3d65037949f", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-deleted-stackset-shows-deleted-status": { + "text": "Deleted CloudFormation StackSets appear with a `DELETED` status in `list-stack-sets` output rather than being immediately purged.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-deletehtml.md", + "source_url": "", + "source_hash": "08625f072c4f8099", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-deleting-stack-deletes-all-resources": { + "text": "Deleting a CloudFormation stack deletes all resources within it, unless deletion policies are configured to retain specific resources.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-Welcomehtml.md", + "source_url": "", + "source_hash": "46024f369ffd0512", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-dual-layer-permissions-required": { + "text": "CloudFormation users need permissions for both CloudFormation actions (e.g., `cloudformation:CreateStack`) AND permissions for the underlying AWS services referenced in templates (e.g., `sqs:*` for SQS queues).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-control-access-with-iamhtml.md", + "source_url": "", + "source_hash": "7e4e2f9997122a85", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-get-federation-token-cannot-use-iam": { + "text": "Temporary credentials from STS `GetFederationToken` cannot be used to work with IAM \u2014 use role-based temporary credentials instead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-control-access-with-iamhtml.md", + "source_url": "", + "source_hash": "7e4e2f9997122a85", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-get-template-retrieves-existing-template": { + "text": "The `aws cloudformation get-template --stack-name ` command retrieves the current template of an existing stack.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-get-templatehtml.md", + "source_url": "", + "source_hash": "382a7eacc18b3655", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-helper-scripts-four-tools": { + "text": "CloudFormation helper scripts consist of four Python-based tools: `cfn-init` (apply configuration), `cfn-signal` (report completion), `cfn-get-metadata` (retrieve metadata), and `cfn-hup` (detect metadata updates).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-deployingapplicationshtml.md", + "source_url": "", + "source_hash": "d75cd184724f0fd2", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-iac-generator-uses-cloud-control-api": { + "text": "CloudFormation IaC generator creates templates from existing unmanaged resources using the Cloud Control API.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-template-guidehtml.md", + "source_url": "", + "source_hash": "fce281d534014137", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-infrastructure-composer-lambda-not-in-console-mode": { + "text": "Lambda-related cards and local sync are not available in Infrastructure Composer's CloudFormation console mode \u2014 they require the standalone Infrastructure Composer console or VS Code Toolkit.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-infrastructure-composer-for-cloudformationhtm.md", + "source_url": "", + "source_hash": "33601e464cdfb257", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-infrastructure-composer-replaces-designer": { + "text": "AWS Infrastructure Composer (formerly Application Composer) is the recommended visual tool for CloudFormation templates, replacing the deprecated CloudFormation Designer.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-infrastructure-composer-for-cloudformationhtm.md", + "source_url": "", + "source_hash": "33601e464cdfb257", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-init-fixed-processing-order": { + "text": "`cfn-init` processes metadata sections in a fixed order: packages \u2192 groups \u2192 users \u2192 sources \u2192 files \u2192 commands \u2192 services, regardless of template ordering.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-deployingapplicationshtml.md", + "source_url": "", + "source_hash": "d75cd184724f0fd2", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-init-metadata-key-aws-cloudformation-init": { + "text": "`cfn-init` reads configuration from the `AWS::CloudFormation::Init` metadata key, placed in the resource's `Metadata` section (not `Properties`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-deployingapplicationshtml.md", + "source_url": "", + "source_hash": "d75cd184724f0fd2", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-local-templates-auto-uploaded-to-s3": { + "text": "Local CloudFormation template files are automatically uploaded to a per-region S3 bucket in the user's account when creating or updating stacks.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-overviewhtml.md", + "source_url": "", + "source_hash": "89792205c7152ac1", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-marketing-names-differ-from-namespaces": { + "text": "Some CloudFormation namespaces differ from AWS marketing names: Cloud Map = `AWS::ServiceDiscovery`, IAM Identity Center = `AWS::SSO`, Data Firehose = `AWS::KinesisFirehose`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-template-resource-type-refhtml.md", + "source_url": "", + "source_hash": "185cb2b309db622a", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-max-200-parameters-outputs-mappings": { + "text": "CloudFormation templates are limited to 200 parameters, 200 outputs, and 200 mappings each per template.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-limitshtml.md", + "source_url": "", + "source_hash": "eac52bba8f2ac068", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-max-500-resources-per-template": { + "text": "CloudFormation templates support a maximum of 500 resources; nested stacks are the standard workaround for exceeding this limit.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-limitshtml.md", + "source_url": "", + "source_hash": "eac52bba8f2ac068", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-max-60-dynamic-references-per-template": { + "text": "CloudFormation templates support a maximum of 60 dynamic references (SSM Parameter Store, Secrets Manager) per template.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-limitshtml.md", + "source_url": "", + "source_hash": "eac52bba8f2ac068", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-nested-stack-update-always-initiated": { + "text": "CloudFormation nested stacks always get an update initiated to check for changes during a parent stack update, but only modified resources within them are actually updated.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-update-behaviorshtm.md", + "source_url": "", + "source_hash": "919d2ee102f953d6", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-ref-returns-physical-id-getatt-returns-attributes": { + "text": "`!Ref` on a CloudFormation resource returns its physical ID; `!GetAtt` retrieves specific attributes (e.g., `PublicDnsName`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-gettingstartedwalkthroughhtml.md", + "source_url": "", + "source_hash": "60d4a3d65037949f", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-renaming-logical-name-causes-replacement": { + "text": "Changing a resource's logical name in a CloudFormation template is equivalent to deleting and replacing that resource, and cascades to dependent resources.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-get-templatehtml.md", + "source_url": "", + "source_hash": "382a7eacc18b3655", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-replacement-creates-before-delete": { + "text": "CloudFormation replacement creates the new resource first, updates references from dependent resources to the new physical ID, then deletes the old resource (create-before-delete).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-update-behaviorshtm.md", + "source_url": "", + "source_hash": "919d2ee102f953d6", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-replacement-only-behavior-new-physical-id": { + "text": "Only the Replacement update behavior produces a new physical resource ID; No Interruption and Some Interruption updates preserve the existing physical ID.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-update-behaviorshtm.md", + "source_url": "", + "source_hash": "919d2ee102f953d6", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-resource-type-triple-colon-format": { + "text": "CloudFormation resource type identifiers follow the format `service-provider::service-name::data-type-name` (e.g., `AWS::EC2::Instance`, `AWS::Lambda::Function`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-template-resource-type-refhtml.md", + "source_url": "", + "source_hash": "185cb2b309db622a", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-rollback-on-creation-and-update-failure": { + "text": "CloudFormation automatically rolls back on failure for both stack creation (deletes created resources) and stack update operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-overviewhtml.md", + "source_url": "", + "source_hash": "89792205c7152ac1", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-self-managed-stackset-two-iam-roles": { + "text": "Self-managed CloudFormation StackSets require two pre-created IAM roles: `AWSCloudFormationStackSetAdministrationRole` (administrator account) and `AWSCloudFormationStackSetExecutionRole` (target accounts).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-getting-startedhtml.md", + "source_url": "", + "source_hash": "bf77bf8cdde9da74", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-service-is-free": { + "text": "CloudFormation itself is a free service \u2014 you pay only for the AWS resources it creates and manages.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-Welcomehtml.md", + "source_url": "", + "source_hash": "46024f369ffd0512", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-service-itself-no-cost": { + "text": "CloudFormation itself has no cost \u2014 charges apply only to the AWS resources it provisions (EC2, S3, etc.).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-gettingstartedwalkthroughhtml.md", + "source_url": "", + "source_hash": "60d4a3d65037949f", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-service-managed-stackset-role-naming": { + "text": "Service-managed StackSet roles follow a naming convention: `CloudFormationStackSetsOrgAdmin` (management account) and `CloudFormationStackSetsOrgMember` (target accounts).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-deletehtml.md", + "source_url": "", + "source_hash": "08625f072c4f8099", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-source-ip-condition-does-not-work": { + "text": "The `aws:SourceIp` condition key does not work with CloudFormation \u2014 CloudFormation uses its own IP address to provision resources, not the caller's IP.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-control-access-with-iamhtml.md", + "source_url": "", + "source_hash": "7e4e2f9997122a85", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-ssm-parameter-value-resolves-at-creation": { + "text": "`AWS::SSM::Parameter::Value` resolves SSM Parameter Store values at stack creation time, not at template authoring time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-gettingstartedwalkthroughhtml.md", + "source_url": "", + "source_hash": "60d4a3d65037949f", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-sso-abac-separate-resource": { + "text": "IAM Identity Center ABAC configuration is managed through a dedicated CloudFormation resource (`AWS::SSO::InstanceAccessControlAttributeConfiguration`), not as a property of the `AWS::SSO::Instance` resource.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_SSOhtml.md", + "source_url": "", + "source_hash": "960076791d1179b8", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-sso-assignment-account-vs-application": { + "text": "`AWS::SSO::Assignment` maps users/groups to AWS accounts with a permission set (account-level access), while `AWS::SSO::ApplicationAssignment` maps users/groups to an application (application-level access).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_SSOhtml.md", + "source_url": "", + "source_hash": "960076791d1179b8", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-sso-namespace-six-resource-types": { + "text": "AWS CloudFormation provides exactly 6 resource types under the `AWS::SSO::` namespace for IAM Identity Center: Application, ApplicationAssignment, Assignment, Instance, InstanceAccessControlAttributeConfiguration, and PermissionSet.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_SSOhtml.md", + "source_url": "", + "source_hash": "960076791d1179b8", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stack-atomic-rollback-on-create-failure": { + "text": "If any resource fails to create in a CloudFormation stack, CloudFormation rolls back and deletes all resources that were created.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackshtml.md", + "source_url": "", + "source_hash": "446b872ac035d8d9", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stack-belongs-to-one-stackset-only": { + "text": "A CloudFormation stack can belong to only one StackSet at a time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-importhtml.md", + "source_url": "", + "source_hash": "c8fe756c84cb2f2b", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stack-failed-delete-retains-remaining-resources": { + "text": "If a CloudFormation resource fails to delete, remaining resources are retained until the stack can be successfully deleted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackshtml.md", + "source_url": "", + "source_hash": "446b872ac035d8d9", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stack-is-unit-of-management": { + "text": "A CloudFormation stack is the unit of management \u2014 resources are created, updated, and deleted together as a single unit from a template.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-Welcomehtml.md", + "source_url": "", + "source_hash": "46024f369ffd0512", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stack-name-max-128-chars": { + "text": "CloudFormation stack names have a maximum length of 128 characters, shorter than the 255-character limit for resource, parameter, output, and mapping names.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-limitshtml.md", + "source_url": "", + "source_hash": "eac52bba8f2ac068", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stack-resources-charged-while-existing": { + "text": "CloudFormation stack resources are billed for the time they exist, even if the stack is deleted immediately after creation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackshtml.md", + "source_url": "", + "source_hash": "446b872ac035d8d9", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stack-updates-only-changed-resources": { + "text": "CloudFormation only updates changed resources during a stack update \u2014 it compares submitted changes against the current stack state.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackshtml.md", + "source_url": "", + "source_hash": "446b872ac035d8d9", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-account-gate-lambda-name": { + "text": "StackSet account gate Lambda functions must be named exactly `AWSCloudFormationStackSetAccountGate`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-account-gatinghtml.md", + "source_url": "", + "source_hash": "c206564e58a6abae", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-account-gate-skipped-without-permission": { + "text": "If the StackSet execution role lacks `lambda:InvokeFunction` permission, CloudFormation silently skips the account gate check rather than failing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-account-gatinghtml.md", + "source_url": "", + "source_hash": "c206564e58a6abae", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-default-strict-failure-tolerance": { + "text": "CloudFormation StackSet operations default to Strict Failure Tolerance mode, where concurrency decreases proportionally with failures; Soft Failure Tolerance maintains full concurrency regardless of failures but may result in more total failures.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-concurrency-modehtml.md", + "source_url": "", + "source_hash": "ed371149eb9947b4", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-delegated-admin-call-as-flag": { + "text": "Delegated administrators must include `--call-as DELEGATED_ADMIN` when running StackSet CLI commands.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-deletehtml.md", + "source_url": "", + "source_hash": "d8d01bec7be20281", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-delete-instances-not-stackset": { + "text": "Deleting stack instances from a StackSet removes provisioned stacks from target accounts/regions but does not delete the StackSet itself.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-deletehtml.md", + "source_url": "", + "source_hash": "d8d01bec7be20281", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-delete-requires-empty-stackset": { + "text": "A CloudFormation StackSet cannot be deleted until all stack instances have been removed from it first.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-deletehtml.md", + "source_url": "", + "source_hash": "08625f072c4f8099", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-delete-requires-zero-instances": { + "text": "A StackSet cannot be deleted until all of its stack instances have been removed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-conceptshtml.md", + "source_url": "", + "source_hash": "0140613249e95868", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-drift-detects-out-of-band-only": { + "text": "CloudFormation StackSet drift detection only identifies changes made outside CloudFormation; changes made via CloudFormation directly to a stack (not at StackSet level) are not considered drift.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-drifthtml.md", + "source_url": "", + "source_hash": "dabd779e5a94f568", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-drift-respects-parameter-overrides": { + "text": "CloudFormation StackSet drift detection respects parameter overrides \u2014 each stack instance is evaluated against its own effective parameters.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-drifthtml.md", + "source_url": "", + "source_hash": "dabd779e5a94f568", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-drift-status-values": { + "text": "CloudFormation StackSet drift status values are `DRIFTED`, `IN_SYNC`, and `NOT_CHECKED`; resource-level drift statuses include `MODIFIED` and `DELETED`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-drifthtml.md", + "source_url": "", + "source_hash": "dabd779e5a94f568", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-failed-gate-counts-against-failure-tolerance": { + "text": "A failed account gate check counts against the StackSet operation's failure tolerance threshold.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-account-gatinghtml.md", + "source_url": "", + "source_hash": "c206564e58a6abae", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-failure-tolerance-per-region": { + "text": "StackSet failure tolerance is evaluated per Region; exceeding it in any Region sets the overall operation to FAILED and cancels remaining Regions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-conceptshtml.md", + "source_url": "", + "source_hash": "0140613249e95868", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-global-resources-naming-conflicts": { + "text": "IAM roles and S3 buckets (global resources) can cause naming conflicts when deployed via StackSets to multiple regions in the same account \u2014 names must be unique.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-bestpracticeshtml.md", + "source_url": "", + "source_hash": "97f210b0e7bcc4ee", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-import-limits-10-inline-200-s3": { + "text": "CloudFormation StackSet import supports up to 10 stacks via inline stack IDs or up to 200 stacks via S3 object.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-importhtml.md", + "source_url": "", + "source_hash": "c8fe756c84cb2f2b", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-imported-params-require-override": { + "text": "Imported stack instance parameters in a CloudFormation StackSet can only be changed via parameter overrides, not via editing the StackSet directly.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-importhtml.md", + "source_url": "", + "source_hash": "c8fe756c84cb2f2b", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-inoperable-fix-delete-retain-then-manual": { + "text": "To fix an INOPERABLE stack instance, call `DeleteStackInstances` with `RetainStacks=true`, then delete the stack manually in the target account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-conceptshtml.md", + "source_url": "", + "source_hash": "0140613249e95868", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-is-regional-resource": { + "text": "A StackSet is a regional resource \u2014 it can only be viewed and modified from the AWS Region where it was created.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-conceptshtml.md", + "source_url": "", + "source_hash": "0140613249e95868", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-management-region-independent-of-targets": { + "text": "The Region from which a CloudFormation StackSet is managed does not affect which Regions can be targeted for deployment.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-getting-startedhtml.md", + "source_url": "", + "source_hash": "bf77bf8cdde9da74", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-max-10-dependencies": { + "text": "Service-managed CloudFormation StackSets support a maximum of 10 dependencies (dependent StackSet ARNs).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-updatehtml.md", + "source_url": "", + "source_hash": "913b37b5aa0e5366", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-max-concurrent-lte-failure-tolerance-plus-one": { + "text": "In StackSet operations, `MaxConcurrentCount` must not exceed `FailureToleranceCount` + 1.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-deletehtml.md", + "source_url": "", + "source_hash": "d8d01bec7be20281", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-noecho-blocks-new-import": { + "text": "The `NoEcho` property blocks importing a stack into a new CloudFormation StackSet (but does not block import into an existing StackSet).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-importhtml.md", + "source_url": "", + "source_hash": "c8fe756c84cb2f2b", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-one-drift-operation-at-a-time": { + "text": "Only one drift detection operation can run on a given CloudFormation StackSet at a time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-drifthtml.md", + "source_url": "", + "source_hash": "dabd779e5a94f568", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-one-operation-at-a-time": { + "text": "Only one operation is permitted on a StackSet at a time \u2014 concurrent operations on the same StackSet are not allowed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-bestpracticeshtml.md", + "source_url": "", + "source_hash": "97f210b0e7bcc4ee", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-org-overrides-current-members-only": { + "text": "For Organizations-managed StackSets, parameter overrides only affect accounts currently in the target OU \u2014 new accounts added later receive StackSet defaults, not overridden values.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-overridehtml.md", + "source_url": "", + "source_hash": "68afce9a10e9c0d0", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-overrides-survive-updates": { + "text": "Overridden StackSet parameter values are sticky \u2014 StackSet updates do not revert them; they must be explicitly reset to StackSet values.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-overridehtml.md", + "source_url": "", + "source_hash": "68afce9a10e9c0d0", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-overrides-via-update-stack-instances": { + "text": "StackSet parameter overrides are applied via `update-stack-instances`, not `update-stack-set`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-overridehtml.md", + "source_url": "", + "source_hash": "68afce9a10e9c0d0", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-percentage-settings-round-down": { + "text": "Percentage-based StackSet operation settings (failure tolerance, max concurrent accounts) round down to the nearest whole number.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-conceptshtml.md", + "source_url": "", + "source_hash": "0140613249e95868", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-retain-stacks-disassociates": { + "text": "Using `--retain-stacks` when deleting stack instances keeps the stacks and resources in the account but disassociates them from the StackSet; `--no-retain-stacks` fully deletes stacks and resources.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-deletehtml.md", + "source_url": "", + "source_hash": "d8d01bec7be20281", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-self-vs-service-managed-permissions": { + "text": "Self-managed StackSet permissions require manually creating IAM roles for cross-account trust; service-managed permissions leverage AWS Organizations to create IAM roles automatically.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-conceptshtml.md", + "source_url": "", + "source_hash": "0140613249e95868", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-service-managed-cascades-child-ous": { + "text": "With service-managed permissions, deleting stack instances from a parent OU automatically cascades deletion to all child OUs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-deletehtml.md", + "source_url": "", + "source_hash": "d8d01bec7be20281", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-strict-initial-concurrency-formula": { + "text": "In Strict Failure Tolerance mode, initial StackSet concurrency equals the lower of `MaxConcurrentAccounts` or `FailureTolerance + 1`, not simply `MaxConcurrentAccounts`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-concurrency-modehtml.md", + "source_url": "", + "source_hash": "ed371149eb9947b4", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-strict-vs-soft-failure-tolerance": { + "text": "CloudFormation StackSet strict failure tolerance reduces concurrency when failures occur (staying within FailureToleranceCount + 1), while soft failure tolerance maintains the specified concurrency level regardless of failures.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-updatehtml.md", + "source_url": "", + "source_hash": "913b37b5aa0e5366", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-template-updates-affect-all-stacks": { + "text": "Template updates to a StackSet always affect all stacks in the StackSet \u2014 you cannot selectively update only some stack instances.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-conceptshtml.md", + "source_url": "", + "source_hash": "0140613249e95868", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stackset-updates-sequential-by-region-default": { + "text": "CloudFormation StackSet updates proceed Region by Region sequentially by default; parallel Region concurrency must be explicitly chosen.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-updatehtml.md", + "source_url": "", + "source_hash": "913b37b5aa0e5366", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-account-move-triggers-delete-and-create": { + "text": "When an account moves between OUs, CloudFormation StackSets automatic deployment deletes the old OU's StackSet stack and creates the new OU's StackSet stack.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-manage-auto-deploymenthtml.md", + "source_url": "", + "source_hash": "dd9fca79420ab42e", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-auto-deploy-ignores-account-filters": { + "text": "Automatic deployments in CloudFormation StackSets ignore account-level targeting filters \u2014 new accounts added to the organization still receive deployments.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-manage-auto-deploymenthtml.md", + "source_url": "", + "source_hash": "dd9fca79420ab42e", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-auto-deploy-new-org-accounts": { + "text": "Service-managed CloudFormation StackSets support automatic deployments \u2014 stacks are automatically provisioned when new accounts are added to an organizational unit.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-what-is-cfnstacksetshtml.md", + "source_url": "", + "source_hash": "991c120f1741b3ea", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-auto-deploy-uses-stackset-defaults-not-overrides": { + "text": "When automatic deployment adds stacks for new accounts joining a target OU, the stacks receive StackSet default parameter values \u2014 overridden parameter values do not propagate.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-manage-auto-deploymenthtml.md", + "source_url": "", + "source_hash": "dd9fca79420ab42e", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-create-stack-instances-cli-command": { + "text": "The CLI command to add stack instances to a StackSet is `create-stack-instances`; self-managed uses `--accounts`, service-managed uses `--deployment-targets OrganizationalUnitIds=...`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-createhtml.md", + "source_url": "", + "source_hash": "d22ab8d7066f4653", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-delegated-admin-call-as-flag": { + "text": "Delegated administrators must use `--call-as DELEGATED_ADMIN` when managing CloudFormation StackSets.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-createhtml.md", + "source_url": "", + "source_hash": "d22ab8d7066f4653", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-delegated-admin-cannot-be-restricted-to-specific-ous": { + "text": "Delegated administrators for CloudFormation StackSets have full permissions to deploy to any account in the organization; the management account cannot restrict them to specific OUs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-associate-stackset-with-orghtm.md", + "source_url": "", + "source_hash": "0ed777cf3d62d623", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-dependency-limits-10-per-stackset-100-per-account": { + "text": "CloudFormation StackSets dependency limits are 10 per StackSet and 100 per account (the per-account limit is increasable via Service Quotas).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-manage-auto-deploymenthtml.md", + "source_url": "", + "source_hash": "dd9fca79420ab42e", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-failed-instance-status-outdated": { + "text": "A failed CloudFormation StackSet instance shows status `OUTDATED`; the underlying stack shows `DELETED` (failed create) or `FAILED` (failed update).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-troubleshootinghtml.md", + "source_url": "", + "source_hash": "b33be8ccf3ae75dd", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-four-account-filter-types": { + "text": "CloudFormation StackSets support four account filter types for deployment targeting: None (default, all accounts), Intersection (only specified accounts), Difference (exclude specified accounts), and Union (OU accounts plus additional accounts).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-associate-stackset-with-orghtm.md", + "source_url": "", + "source_hash": "0ed777cf3d62d623", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-import-existing-stacks": { + "text": "Existing CloudFormation stacks can be imported into a StackSet.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-what-is-cfnstacksetshtml.md", + "source_url": "", + "source_hash": "991c120f1741b3ea", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-max-10-dependencies": { + "text": "CloudFormation StackSets support a maximum of 10 StackSet dependencies per StackSet.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-associate-stackset-with-orghtm.md", + "source_url": "", + "source_hash": "0ed777cf3d62d623", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-max-concurrency-lte-failure-tolerance-plus-one": { + "text": "In CloudFormation StackSets, `MaxConcurrentCount` must not exceed `FailureToleranceCount` + 1.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-associate-stackset-with-orghtm.md", + "source_url": "", + "source_hash": "0ed777cf3d62d623", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-multi-account-multi-region": { + "text": "CloudFormation StackSets enable creating, updating, or deleting stacks across multiple AWS accounts and Regions in a single operation from an administrator account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-what-is-cfnstacksetshtml.md", + "source_url": "", + "source_hash": "991c120f1741b3ea", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-no-macros-with-service-managed": { + "text": "CloudFormation StackSets do not support macros/transforms when using service-managed permissions (AWS Organizations).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-limitshtml.md", + "source_url": "", + "source_hash": "eac52bba8f2ac068", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-ou-includes-child-ous": { + "text": "Selecting an OU for a CloudFormation StackSet automatically includes all child OUs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-createhtml.md", + "source_url": "", + "source_hash": "d22ab8d7066f4653", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-parameter-overrides-per-instance": { + "text": "CloudFormation StackSets allow parameter overrides on individual stack instances, enabling customization within a single StackSet deployment.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-what-is-cfnstacksetshtml.md", + "source_url": "", + "source_hash": "991c120f1741b3ea", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-parent-ou-includes-child-ous": { + "text": "Targeting a parent OU in a CloudFormation StackSet automatically includes all child OUs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-associate-stackset-with-orghtm.md", + "source_url": "", + "source_hash": "0ed777cf3d62d623", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-revert-failed-import-retain-then-retry": { + "text": "To revert a failed CloudFormation StackSet import, delete stack instances with `RetainStacks` enabled, then fix the issue and retry the import.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-troubleshootinghtml.md", + "source_url": "", + "source_hash": "b33be8ccf3ae75dd", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-sample-templates-governance-baseline": { + "text": "AWS provides sample CloudFormation StackSet templates for enterprise governance baselines including enabling CloudTrail, enabling AWS Config, AWS Config rules (CloudTrail enabled, root MFA, EIP attachment, EBS encryption), and Data Lifecycle Manager default policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-sampletemplateshtml.md", + "source_url": "", + "source_hash": "b2b5cfc64f03ff39", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-self-managed-requires-two-named-roles": { + "text": "Self-managed CloudFormation StackSets require two IAM roles: `AWSCloudFormationStackSetAdministrationRole` in the admin account and `AWSCloudFormationStackSetExecutionRole` in each target account, with a trust relationship between them.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-troubleshootinghtml.md", + "source_url": "", + "source_hash": "b33be8ccf3ae75dd", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-service-is-free": { + "text": "CloudFormation StackSets itself is free; charges apply only for the AWS resources created by the stacks.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-getting-startedhtml.md", + "source_url": "", + "source_hash": "bf77bf8cdde9da74", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-service-managed-no-deploy-to-management-account": { + "text": "CloudFormation StackSets with service-managed permissions never deploy stacks to the AWS Organizations management account, even if it is in the target OU.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-associate-stackset-with-orghtm.md", + "source_url": "", + "source_hash": "0ed777cf3d62d623", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-service-managed-no-nested-stacks-no-macros": { + "text": "CloudFormation StackSets with service-managed permissions do not support nested stacks or macros/transforms.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-orgs-associate-stackset-with-orghtm.md", + "source_url": "", + "source_hash": "0ed777cf3d62d623", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-strict-vs-soft-failure-tolerance": { + "text": "CloudFormation StackSets concurrency mode has two options: strict failure tolerance (reduces concurrency when failures occur) and soft failure tolerance (maintains configured concurrency regardless of failures).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stackinstances-createhtml.md", + "source_url": "", + "source_hash": "d22ab8d7066f4653", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-termination-protection-blocks-instance-deletion": { + "text": "If termination protection is enabled on a CloudFormation stack, it blocks stack instance deletion from a StackSet; termination protection must be disabled first.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-troubleshootinghtml.md", + "source_url": "", + "source_hash": "b33be8ccf3ae75dd", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-stacksets-two-permission-models": { + "text": "CloudFormation StackSets has two permission models: self-managed (manually create IAM roles in each target account) and service-managed (AWS auto-creates roles via AWS Organizations trusted access).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-stacksets-prereqshtml.md", + "source_url": "", + "source_hash": "c90fcab7d43a5edb", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-template-only-resources-section-required": { + "text": "The only required section in a CloudFormation template is the Resources section (must declare at least one resource).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-template-guidehtml.md", + "source_url": "", + "source_hash": "fce281d534014137", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-template-s3-required-over-51200-bytes": { + "text": "CloudFormation templates larger than 51,200 bytes must be uploaded to S3 rather than passed inline", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudformation.md", + "source_url": "", + "source_hash": "8f85a73aa161eec8", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-template-size-51200-inline-1mb-s3": { + "text": "CloudFormation templates have a maximum size of 51,200 bytes when passed inline in API requests, or up to 1 MB when stored in and referenced from S3.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-limitshtml.md", + "source_url": "", + "source_hash": "eac52bba8f2ac068", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-templates-support-yaml-and-json": { + "text": "CloudFormation templates can be written in either YAML or JSON format, with any file extension (`.yaml`, `.json`, `.template`, `.txt`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cloudformation-overviewhtml.md", + "source_url": "", + "source_hash": "89792205c7152ac1", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-templates-yaml-or-json": { + "text": "CloudFormation templates can be written in YAML or JSON \u2014 both are fully supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-gettingstartedwalkthroughhtml.md", + "source_url": "", + "source_hash": "60d4a3d65037949f", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-three-update-behavior-types": { + "text": "Each CloudFormation resource property has an update behavior: No interruption (no disruption), Some interruptions (partial disruption), or Replacement (resource deleted and recreated).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-get-templatehtml.md", + "source_url": "", + "source_hash": "382a7eacc18b3655", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-three-update-behaviors": { + "text": "CloudFormation resource updates have three behaviors: Update with No Interruption (in-place, no downtime), Update with Some Interruption (partial disruption), and Replacement (new physical ID, old resource deleted after).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-update-behaviorshtm.md", + "source_url": "", + "source_hash": "919d2ee102f953d6", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-update-behavior-per-property-not-resource": { + "text": "CloudFormation update behavior is per-property, not per-resource type \u2014 different properties on the same resource type can have different update behaviors (No Interruption, Some Interruption, or Replacement).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-using-cfn-updating-stacks-update-behaviorshtm.md", + "source_url": "", + "source_hash": "919d2ee102f953d6", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-userdata-must-be-base64-encoded": { + "text": "EC2 `UserData` in CloudFormation templates must be Base64-encoded using `!Base64`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-gettingstartedwalkthroughhtml.md", + "source_url": "", + "source_hash": "60d4a3d65037949f", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-validate-template-syntax-only": { + "text": "The `aws cloudformation validate-template` command checks template syntax only, not property value correctness; use cfn-lint for deeper validation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-template-guidehtml.md", + "source_url": "", + "source_hash": "fce281d534014137", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-vpc-cidr-change-requires-replacement": { + "text": "Changing the `CidrBlock` or `Ipv4IpamPoolId` on an `AWS::EC2::VPC` resource requires replacement \u2014 a new VPC is created.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-resource-ec2-vpchtml.md", + "source_url": "", + "source_hash": "a2ee1634d69ad9c2", + "date": "2026-03-12", + "metadata": {} + }, + "cfn-vpc-ipv6-requires-separate-cidr-resource": { + "text": "IPv6 is not a direct property of `AWS::EC2::VPC` \u2014 it requires a separate `AWS::EC2::VPCCidrBlock` resource with `AmazonProvidedIpv6CidrBlock: true`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-resource-ec2-vpchtml.md", + "source_url": "", + "source_hash": "a2ee1634d69ad9c2", + "date": "2026-03-12", + "metadata": {} + }, + "chatbot-permanently-blocked-operations": { + "text": "Amazon Q Developer in chat applications permanently blocks sensitive operations (IAM, KMS, STS, SSO, Secrets Manager, S3 Get/PutObject, and others) regardless of any role configuration.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/chatbot-latest-adminguide-understanding-permissionshtml.md", + "source_url": "", + "source_hash": "0f5261830af9ec32", + "date": "2026-03-12", + "metadata": {} + }, + "chatbot-permissions-intersection-not-union": { + "text": "In Amazon Q Developer chat applications (formerly AWS Chatbot), effective permissions equal the intersection of channel guardrail policies and the user's role permissions \u2014 guardrail policies always take precedence.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/chatbot-latest-adminguide-understanding-permissionshtml.md", + "source_url": "", + "source_hash": "0f5261830af9ec32", + "date": "2026-03-12", + "metadata": {} + }, + "chatbot-renamed-from-aws-chatbot": { + "text": "AWS Chatbot was renamed to Amazon Q Developer in chat applications.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/chatbot-latest-adminguide-what-ishtml.md", + "source_url": "", + "source_hash": "71731e26fa0a211a", + "date": "2026-03-12", + "metadata": {} + }, + "chatbot-sns-notification-mechanism": { + "text": "Amazon Q Developer in chat applications (formerly AWS Chatbot) uses Amazon SNS topics as the mechanism to deliver AWS service notifications to chat channels (Slack, Microsoft Teams, Amazon Chime).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/chatbot-latest-adminguide-what-ishtml.md", + "source_url": "", + "source_hash": "71731e26fa0a211a", + "date": "2026-03-12", + "metadata": {} + }, + "chatbot-three-supported-platforms": { + "text": "Amazon Q Developer in chat applications supports three platforms: Amazon Chime (webhooks only), Microsoft Teams (channels), and Slack (channels).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/chatbot-latest-adminguide-what-ishtml.md", + "source_url": "", + "source_hash": "71731e26fa0a211a", + "date": "2026-03-12", + "metadata": {} + }, + "chatbot-user-role-account-level-enforcement": { + "text": "Amazon Q Developer chat application user role requirements can be enforced at the account level; individual channels cannot override an account-level requirement.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/chatbot-latest-adminguide-understanding-permissionshtml.md", + "source_url": "", + "source_hash": "0f5261830af9ec32", + "date": "2026-03-12", + "metadata": {} + }, + "clean-rooms-events-are-management-events": { + "text": "AWS Clean Rooms CloudTrail events are classified as management events, not data events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/clean-rooms-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "40178140235b5667", + "date": "2026-03-12", + "metadata": {} + }, + "clean-rooms-sql-redacted-in-cloudtrail": { + "text": "AWS Clean Rooms SQL query parameters are redacted (shown as `\"***\"`) in CloudTrail logs, protecting query content from exposure in audit logs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/clean-rooms-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "40178140235b5667", + "date": "2026-03-12", + "metadata": {} + }, + "cli-control-plane-data-plane-split-namespaces": { + "text": "Some AWS services split CLI commands into separate control-plane and data-plane namespaces (e.g., `bedrock` vs `bedrock-runtime`, `iot` vs `iot-data`, `mediastore` vs `mediastore-data`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-indexhtml.md", + "source_url": "", + "source_hash": "5ce648f2bdd16b30", + "date": "2026-03-12", + "metadata": {} + }, + "cli-default-output-format-json": { + "text": "The AWS CLI default output format is `json`; six formats are supported: `json`, `text`, `table`, `yaml`, `yaml-stream`, and `off`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-batch-describe-type-configurationshtml.md", + "source_url": "", + "source_hash": "9b69452f0b16ad61", + "date": "2026-03-12", + "metadata": {} + }, + "cli-default-socket-timeout-60-seconds": { + "text": "AWS CLI default socket read and connect timeouts are both 60 seconds; setting to 0 enables blocking (no timeout).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-batch-describe-type-configurationshtml.md", + "source_url": "", + "source_hash": "9b69452f0b16ad61", + "date": "2026-03-12", + "metadata": {} + }, + "cli-endpoint-url-for-local-development": { + "text": "The AWS CLI `--endpoint-url` flag enables pointing commands at custom/local endpoints such as LocalStack or DynamoDB Local for local development.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-activate-organizations-accesshtml.md", + "source_url": "", + "source_hash": "bcaba4aae999e171", + "date": "2026-03-12", + "metadata": {} + }, + "cli-error-output-format-default-enhanced": { + "text": "The AWS CLI error output format defaults to `enhanced`; alternatives include `legacy`, `json`, `yaml`, `text`, and `table`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-batch-describe-type-configurationshtml.md", + "source_url": "", + "source_hash": "9b69452f0b16ad61", + "date": "2026-03-12", + "metadata": {} + }, + "cli-fileb-always-binary-file-respects-format": { + "text": "The `fileb://` prefix always treats content as raw binary regardless of `--cli-binary-format` setting; `file://` respects the `--cli-binary-format` setting (default: `base64`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-activate-organizations-accesshtml.md", + "source_url": "", + "source_hash": "bcaba4aae999e171", + "date": "2026-03-12", + "metadata": {} + }, + "cli-no-paginate-returns-first-page-only": { + "text": "The AWS CLI `--no-paginate` flag returns only the first page of results; without it, the CLI automatically paginates through all results.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-activate-typehtml.md", + "source_url": "", + "source_hash": "7fadac6903e3b8a7", + "date": "2026-03-12", + "metadata": {} + }, + "cli-no-sign-request-for-public-resources": { + "text": "The AWS CLI `--no-sign-request` flag skips authentication entirely, allowing access to public resources (e.g., public S3 buckets) without credentials.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-activate-typehtml.md", + "source_url": "", + "source_hash": "7fadac6903e3b8a7", + "date": "2026-03-12", + "metadata": {} + }, + "cli-query-uses-jmespath-syntax": { + "text": "The AWS CLI `--query` option uses JMESPath expression syntax for client-side filtering and transformation of JSON response data.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-activate-organizations-accesshtml.md", + "source_url": "", + "source_hash": "bcaba4aae999e171", + "date": "2026-03-12", + "metadata": {} + }, + "cli-s3-vs-s3api-high-vs-low-level": { + "text": "The AWS CLI has separate `s3` (high-level commands like `cp`, `sync`, `ls`) and `s3api` (low-level API calls like `put-object`) service namespaces for S3.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-indexhtml.md", + "source_url": "", + "source_hash": "5ce648f2bdd16b30", + "date": "2026-03-12", + "metadata": {} + }, + "cli-some-services-have-versioned-namespaces": { + "text": "Some AWS CLI services have versioned command namespaces where v2 supersedes v1: `waf`\u2192`wafv2`, `kinesisanalytics`\u2192`kinesisanalyticsv2`, `lex-models`\u2192`lexv2-models`, `ses`\u2192`sesv2`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-indexhtml.md", + "source_url": "", + "source_hash": "5ce648f2bdd16b30", + "date": "2026-03-12", + "metadata": {} + }, + "cloud-financial-management-organizational-practice": { + "text": "Cloud Financial Management is an organizational practice requiring culture, processes, and dedicated ownership \u2014 not just a technical exercise.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-cost-optimization.md", + "source_url": "", + "source_hash": "18ae872b3f4f6613", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-acm-cert-must-be-us-east-1": { + "text": "ACM certificates used with CloudFront must be requested or imported in the US East (N. Virginia) / us-east-1 region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-ssl.md", + "source_url": "", + "source_hash": "bc4eb719adb8a73e", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-anycast-static-ips": { + "text": "CloudFront anycast static IPs can be requested for allowlisting use cases.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-distributions.md", + "source_url": "", + "source_hash": "b27f976005121037", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-auto-configures-based-on-origin-type": { + "text": "CloudFront auto-configures most distribution settings based on the selected origin type; manual editing is optional.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-distributions.md", + "source_url": "", + "source_hash": "b27f976005121037", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-cache-key-identifies-cached-files": { + "text": "The CloudFront cache key uniquely identifies each file in the cache for a given distribution; its composition (headers, cookies, query strings) affects cache behavior.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-distributions.md", + "source_url": "", + "source_hash": "b27f976005121037", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-cloudtrail-events-us-east-1-only": { + "text": "CloudFront is a global service whose CloudTrail events are always recorded in the US East (N. Virginia / us-east-1) region, regardless of where the action originated.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudFront-latest-DeveloperGuide-logging_using_cloudtrailhtml.md", + "source_url": "", + "source_hash": "daea31f07819ec1b", + "date": "2026-03-12", + "metadata": {} + }, + "cloudfront-concurrent-invalidation-limit": { + "text": "There is a maximum number of concurrent invalidation requests per CloudFront distribution.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-invalidation.md", + "source_url": "", + "source_hash": "a263253390028133", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-continuous-deployment-support": { + "text": "CloudFront supports continuous deployment for safely testing configuration changes before full rollout.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-distributions.md", + "source_url": "", + "source_hash": "b27f976005121037", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-ddos-resilient-architecture-component": { + "text": "CloudFront is a key component in AWS DDoS-resilient architectures, working alongside AWS Shield and AWS WAF.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-security.md", + "source_url": "", + "source_hash": "6213429e4f19d733", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-default-ttl-24-hours": { + "text": "CloudFront default cache expiration is 24 hours per file; minimum TTL is 0 seconds with no maximum limit.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-overview.md", + "source_url": "", + "source_hash": "6ee608425deb58eb", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-distribution-configurable-settings": { + "text": "CloudFront distribution configurable settings include: origin, access (public/restricted), security (WAF, HTTPS), cache key, origin request settings, geographic restrictions, and logging (standard or real-time).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-distributions.md", + "source_url": "", + "source_hash": "b27f976005121037", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-do-not-delete-cert-while-associated": { + "text": "An ACM or IAM certificate must not be deleted until it is removed from all CloudFront distributions and those distributions are fully deployed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-ssl.md", + "source_url": "", + "source_hash": "bc4eb719adb8a73e", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-domain-format": { + "text": "CloudFront assigns each distribution a domain in the format `d111111abcdef8.cloudfront.net`; alternate domain names (CNAMEs) can be configured for custom URLs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-overview.md", + "source_url": "", + "source_hash": "6ee608425deb58eb", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-edge-layer-provides-simultaneous-security-cost-performance-benefit": { + "text": "CloudFront simultaneously provides DDoS protection (Shield/WAF integration), cost elimination (free data transfer from AWS origins), and latency optimization (lowest-latency edge routing) \u2014 the edge layer is a structural improvement across three independent operational dimensions rather than a single-purpose CDN", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudfront-ddos-resilient-architecture-component", + "cloudfront-free-data-transfer-from-aws-origins", + "cloudfront-routes-to-lowest-latency-edge" + ], + "outlist": [], + "label": "Three independent benefits (security, cost, latency) from a single architectural decision \u2014 CloudFront is one of the rare AWS services where the default path improves all dimensions simultaneously" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "cloudfront-field-level-encryption-at-edge": { + "text": "CloudFront field-level encryption encrypts specific form fields at the edge, and data stays encrypted through to the application, providing protection beyond standard HTTPS.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-security.md", + "source_url": "", + "source_hash": "6213429e4f19d733", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-free-data-transfer-from-aws-origins": { + "text": "Data transfer from AWS origins (S3, ELB, API Gateway) to CloudFront is free; you pay only for edge-to-viewer transfer.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-overview.md", + "source_url": "", + "source_hash": "6ee608425deb58eb", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-http-redirect-double-charges": { + "text": "CloudFront HTTP-to-HTTPS redirects incur double charges: one for the HTTP request and one for the subsequent HTTPS request.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-ssl.md", + "source_url": "", + "source_hash": "bc4eb719adb8a73e", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-https-enforcement-has-method-dependent-gaps": { + "text": "CloudFront's two HTTPS enforcement options both have method-dependent behavior gaps: \"Redirect HTTP to HTTPS\" returns 301 only for GET/HEAD (other methods like POST get different handling), and \"HTTPS Only\" returns 403 for all HTTP requests \u2014 neither option provides clean HTTPS migration for API traffic using non-GET methods.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudfront-redirect-http-returns-301-get-head-only", + "cloudfront-https-only-returns-403" + ], + "outlist": [], + "label": "Both HTTPS enforcement modes handle non-GET methods differently than GET/HEAD" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "cloudfront-https-only-returns-403": { + "text": "CloudFront's \"HTTPS Only\" viewer protocol policy returns 403 Forbidden for any HTTP request.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-ssl.md", + "source_url": "", + "source_hash": "bc4eb719adb8a73e", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-iam-cert-path-must-start-with-cloudfront": { + "text": "When uploading a third-party certificate to the IAM certificate store for CloudFront, the --path must start with /cloudfront/ and end with /.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-ssl.md", + "source_url": "", + "source_hash": "bc4eb719adb8a73e", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-invalidation-does-not-clear-browser-cache": { + "text": "CloudFront cache invalidation does not clear files cached in a user's browser or behind corporate caching proxies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-invalidation.md", + "source_url": "", + "source_hash": "a263253390028133", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-invalidation-has-cost": { + "text": "CloudFront cache invalidation has an associated cost; file versioning avoids invalidation fees.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-invalidation.md", + "source_url": "", + "source_hash": "a263253390028133", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-invalidation-triggers-origin-fetch": { + "text": "After cache invalidation, CloudFront returns to the origin server on the next viewer request to fetch the latest version of the file.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-invalidation.md", + "source_url": "", + "source_hash": "a263253390028133", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-keyvaluestore-data-events-resource-type": { + "text": "CloudFront KeyValueStore is the only CloudFront resource type supporting CloudTrail data events, using resource type `AWS::CloudFront::KeyValueStore` with operations DeleteKeys, DescribeKeyValueStore, GetKey, ListKeys, PutKeys, UpdateKeys.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudFront-latest-DeveloperGuide-logging_using_cloudtrailhtml.md", + "source_url": "", + "source_hash": "daea31f07819ec1b", + "date": "2026-03-12", + "metadata": {} + }, + "cloudfront-live-streaming-via-cloudformation": { + "text": "CloudFront live streaming distributions can be provisioned via CloudFormation stacks using AWS Media Services.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-distributions.md", + "source_url": "", + "source_hash": "b27f976005121037", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-max-100-certs-console-dropdown": { + "text": "CloudFront console dropdown supports associating up to 100 certificates; beyond that, the certificate ARN must be specified directly.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-ssl.md", + "source_url": "", + "source_hash": "bc4eb719adb8a73e", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-max-25-origins-per-distribution": { + "text": "A CloudFront distribution supports up to 25 origins.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-distributions.md", + "source_url": "", + "source_hash": "b27f976005121037", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-mtls-both-directions": { + "text": "CloudFront supports mutual TLS (mTLS) in both directions: viewer-to-CloudFront and CloudFront-to-origin.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-security.md", + "source_url": "", + "source_hash": "6213429e4f19d733", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-multi-tenant-waf-v2-only": { + "text": "Multi-tenant CloudFront distributions only support WAF V2 web ACLs (not V1) and do not support Smooth Streaming.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-distributions.md", + "source_url": "", + "source_hash": "b27f976005121037", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-no-file-limit-per-distribution": { + "text": "There is no maximum number of files per CloudFront distribution, but there are account-level limits on number of distributions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-distributions.md", + "source_url": "", + "source_hash": "b27f976005121037", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-origin-access-restriction-s3-alb": { + "text": "CloudFront origin access can be restricted for both S3 origins (OAC/OAI) and ALB origins, preventing direct access to the origin.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-security.md", + "source_url": "", + "source_hash": "6213429e4f19d733", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-pricing-varies-by-region-usage-feature": { + "text": "CloudFront pricing varies by usage type, geographic region, and feature selection.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-overview.md", + "source_url": "", + "source_hash": "6ee608425deb58eb", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-private-content-signed-urls-cookies": { + "text": "CloudFront private content access is controlled via signed URLs and signed cookies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-overview.md", + "source_url": "", + "source_hash": "6ee608425deb58eb", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-provides-complete-edge-security-layer": { + "text": "CloudFront provides a complete edge security layer combining DDoS protection, AWS backbone routing, and free origin data transfer into a unified perimeter with simultaneous security, cost, and performance benefits.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudfront-edge-layer-provides-simultaneous-security-cost-performance-benefit", + "cloudfront-uses-aws-backbone-network" + ], + "outlist": [ + "cloudfront-https-enforcement-has-method-dependent-gaps" + ], + "label": "Edge security is complete only when HTTPS enforcement covers all HTTP methods \u2014 method-dependent gaps in 301 redirects and 403 responses undermine the perimeter" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "cloudfront-redirect-http-returns-301-get-head-only": { + "text": "CloudFront's \"Redirect HTTP to HTTPS\" viewer protocol policy returns 301 Moved Permanently only for GET/HEAD requests; DELETE, OPTIONS, PATCH, POST, and PUT return 403 Forbidden.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-ssl.md", + "source_url": "", + "source_hash": "bc4eb719adb8a73e", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-routes-to-lowest-latency-edge": { + "text": "CloudFront delivers content from the lowest-latency edge location, not necessarily the geographically closest one.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-overview.md", + "source_url": "", + "source_hash": "6ee608425deb58eb", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-signed-urls-vs-cookies": { + "text": "CloudFront signed URLs are for individual file access control; signed cookies are for multiple files or when URLs should not change.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-security.md", + "source_url": "", + "source_hash": "6213429e4f19d733", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-six-security-mechanisms": { + "text": "CloudFront offers six primary security mechanisms: HTTPS, geo-restriction, signed URLs/cookies, field-level encryption, AWS WAF integration, and origin access restriction.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-security.md", + "source_url": "", + "source_hash": "6213429e4f19d733", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-supported-origin-types": { + "text": "CloudFront supports five origin types: S3 bucket, MediaPackage channel, MediaStore container, ELB load balancer, and HTTP server (custom origin).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-distributions.md", + "source_url": "", + "source_hash": "b27f976005121037", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-supports-static-and-dynamic-content": { + "text": "CloudFront supports both static content (HTML, CSS, JS, images) and dynamic web content, as well as video on demand (HLS, Smooth Streaming) and live streaming.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-overview.md", + "source_url": "", + "source_hash": "6ee608425deb58eb", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-supports-websockets-grpc-ipv6": { + "text": "CloudFront distributions support WebSocket, gRPC, and IPv6 protocols.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-distributions.md", + "source_url": "", + "source_hash": "b27f976005121037", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-two-distribution-types": { + "text": "CloudFront has two distribution types: Standard (single site) and Multi-tenant/CloudFront SaaS Manager (multi-customer).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-overview.md", + "source_url": "", + "source_hash": "6ee608425deb58eb", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-uses-aws-backbone-network": { + "text": "CloudFront routes requests through AWS's own backbone network, reducing hops and improving latency compared to the public internet.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-overview.md", + "source_url": "", + "source_hash": "6ee608425deb58eb", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-versioning-five-advantages-over-invalidation": { + "text": "File versioning has five advantages over cache invalidation: bypasses local/corporate caches, easier log analysis, supports per-user file versions, enables easy rollback, and avoids invalidation costs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-invalidation.md", + "source_url": "", + "source_hash": "a263253390028133", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-versioning-preferred-over-invalidation": { + "text": "AWS recommends file versioning over cache invalidation for frequently updated CloudFront content.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-invalidation.md", + "source_url": "", + "source_hash": "a263253390028133", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-viewer-protocol-policy-two-options": { + "text": "CloudFront Viewer Protocol Policy has two HTTPS enforcement options: \"Redirect HTTP to HTTPS\" (returns 301 for GET/HEAD) and \"HTTPS Only\" (returns 403 for all HTTP).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-ssl.md", + "source_url": "", + "source_hash": "bc4eb719adb8a73e", + "date": "2026-03-08", + "metadata": {} + }, + "cloudfront-waf-integration-request-filtering": { + "text": "AWS WAF integrates directly with CloudFront for request filtering, rate limiting, and access control based on IP, geo, and request patterns.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudfront-security.md", + "source_url": "", + "source_hash": "6213429e4f19d733", + "date": "2026-03-08", + "metadata": {} + }, + "cloudsearch-document-limit-1mb-batch-5mb": { + "text": "Amazon CloudSearch individual documents are limited to 1 MB and document batch uploads are limited to 5 MB total", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudsearchdomain-upload-documentshtml.md", + "source_url": "", + "source_hash": "338d4362f5ce76c7", + "date": "2026-03-12", + "metadata": {} + }, + "cloudsearch-upload-endpoint-domain-specific": { + "text": "The CloudSearch document upload endpoint is unique per domain and must be retrieved via `DescribeDomains` or the console dashboard", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudsearchdomain-upload-documentshtml.md", + "source_url": "", + "source_hash": "338d4362f5ce76c7", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-additional-management-event-copies-cost": { + "text": "Only the first copy of management events per Region is free; additional trails delivering the same management events incur extra CloudTrail charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-create-multiple-trailshtml.md", + "source_url": "", + "source_hash": "4cc0dd08578b64b3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-admin-permissions-separate-from-log-delivery": { + "text": "CloudTrail administrator IAM permissions are separate from the permissions CloudTrail needs to deliver logs to S3 or send SNS notifications (which require separate bucket/topic policies).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-security_iam_id-based-policy-exampleshtml.md", + "source_url": "", + "source_hash": "0eb0fda6dd15bd17", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-advanced-basic-selectors-mutually-exclusive": { + "text": "Advanced and basic event selectors are mutually exclusive on a trail \u2014 applying advanced event selectors overwrites any existing basic event selectors.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-filtering-data-eventshtml.md", + "source_url": "", + "source_hash": "cdecb95903bcab54", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-advanced-event-selectors-max-500-values": { + "text": "Advanced event selectors support a maximum of 500 values across all conditions on a trail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-a-trail-using-the-console-first.md", + "source_url": "", + "source_hash": "7f20607408e6098d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-advanced-event-selectors-required-fields": { + "text": "Advanced event selectors require exactly two fields: `eventCategory` (e.g., `\"Data\"`) and `resources.type` (e.g., `AWS::S3::Object`); all other fields are optional.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-filtering-data-eventshtml.md", + "source_url": "", + "source_hash": "cdecb95903bcab54", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-advanced-features-have-cold-start-penalties": { + "text": "CloudTrail Insights may take up to 7 days for first delivery and re-enabling resets the timer; Lake highlights refresh every 6 hours \u2014 advanced observability features trade immediacy for analytical depth.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-insights-up-to-7-days-first-delivery", + "cloudtrail-insights-re-enable-resets-delay", + "cloudtrail-lake-highlights-dashboard-every-6-hours" + ], + "outlist": [], + "label": "Cannot rely on Insights or highlights for near-real-time incident response after initial enablement" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "cloudtrail-advanced-observability-cannot-be-activated-reactively": { + "text": "CloudTrail advanced observability requires proactive investment: Lake demands irrevocable upfront decisions (KMS keys, pricing tier) and Insights has up to 7-day cold-start delays, meaning the full advanced observability stack cannot be spun up reactively during an incident.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-lake-operational-readiness-requires-upfront-planning", + "cloudtrail-advanced-features-have-cold-start-penalties" + ], + "outlist": [], + "label": "Irrevocable planning decisions + multi-day cold starts = advanced observability is proactive-only, never reactive" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "cloudtrail-advanced-selectors-deselect-precedence": { + "text": "In CloudTrail advanced event selectors, DESELECT operators (NotEquals, NotStartsWith, NotEndsWith) are AND'd and take precedence over SELECT operators (Equals, StartsWith, EndsWith) which are OR'd.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-filtering-data-eventshtml.md", + "source_url": "", + "source_hash": "cdecb95903bcab54", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-advanced-selectors-no-wildcards": { + "text": "CloudTrail advanced event selectors do not support wildcards (`*`); use `StartsWith`, `EndsWith`, `NotStartsWith`, `NotEndsWith` operators instead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-filtering-data-eventshtml.md", + "source_url": "", + "source_hash": "cdecb95903bcab54", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-all-iam-sts-actions-logged": { + "text": "All IAM and AWS STS API actions are logged by CloudTrail \u2014 there are no unlogged IAM/STS API operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-cloudtrail-integrationhtml.md", + "source_url": "", + "source_hash": "cb7bc3bfff11f21a", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-assume-role-readonly-true": { + "text": "AssumeRole, AssumeRoleWithSAML, and AssumeRoleWithWebIdentity are logged as `readOnly: true` in CloudTrail despite generating credentials; GetSessionToken and GetFederationToken are `readOnly: false`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-cloudtrail-integrationhtml.md", + "source_url": "", + "source_hash": "cb7bc3bfff11f21a", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-audit-blind-spots-exist-for-automated-operations": { + "text": "Certain automated and system-initiated operations create audit gaps: DynamoDB TTL deletions produce no CloudTrail records, and API Gateway test invocations are excluded from CloudTrail logging.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-ttl-deletions-not-logged-cloudtrail", + "apigw-cloudtrail-excludes-testinvoke", + "dynamodb-streams-noop-writes-skipped" + ], + "outlist": [], + "label": "Data mutations can occur with no audit trail, requiring supplementary monitoring (e.g., DynamoDB Streams, CloudWatch) to close gaps" + }, + { + "type": "SL", + "antecedents": [ + "dynamodb-ttl-deletions-not-logged-cloudtrail", + "apigw-cloudtrail-excludes-testinvoke" + ], + "outlist": [], + "label": "" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "cloudtrail-audit-chain-trustworthy-when-integrity-and-encryption-configured": { + "text": "CloudTrail audit chain is trustworthy for forensics only when log file integrity validation is enabled and KMS encryption is configured at event data store creation.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-eds-kms-key-irrevocable", + "cloudtrail-lake-kms-key-cannot-change-or-remove" + ], + "outlist": [ + "cloudtrail-trail-log-validation-disabled-by-default" + ], + "label": "Spans security + observability + lifecycle: integrity validation defaults to off, and KMS key choice is permanent \u2014 both must be correct at setup time or the audit chain is forensically unreliable" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "cloudtrail-audit-completeness-requires-both-scope-and-fidelity": { + "text": "Complete CloudTrail audit coverage requires addressing two independent dimensions: scope (cross-account event linking via sharedEventID, multi-region awareness for root sign-ins, delegated admin configuration) AND fidelity (inconsistent sensitive data redaction across services means investigation may encounter redacted fields in B2BI/Clean Rooms but full values elsewhere) \u2014 closing either gap alone leaves the other open.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-cross-account-audit-requires-multi-region-awareness", + "cloudtrail-sensitive-data-redaction-inconsistent-across-services" + ], + "outlist": [], + "label": "Cross-account scope requirements (depth-1) and redaction inconsistency (depth-1) are independent audit gaps \u2014 an organization can achieve full multi-region scope but still face inconsistent field visibility across services during forensic investigation" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "cloudtrail-audit-three-dimensional-with-independent-ceilings": { + "text": "CloudTrail audit completeness has three independent dimensions \u2014 scope (cross-account event linking, multi-region awareness), fidelity (consistent redaction, event type coverage), and depth (automated operation visibility) \u2014 each with its own irreducible ceiling, meaning closing gaps in any two dimensions still leaves the third as a permanent blind spot.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-audit-completeness-requires-both-scope-and-fidelity", + "full-observability-has-hard-ceiling-despite-investment" + ], + "outlist": [], + "label": "scope and fidelity are two achievable dimensions but depth ceiling from automated operations is irreducible regardless of investment" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "cloudtrail-basic-event-selectors-three-types": { + "text": "CloudTrail basic event selectors support only three resource types for data events: S3 objects (general purpose buckets), Lambda functions, and DynamoDB tables; advanced event selectors are required for all other resource types.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-logging-data-events-with-cloudtrailhtml.md", + "source_url": "", + "source_hash": "5fdf8a1be286542e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-captures-api-calls-not-performance-metrics": { + "text": "CloudTrail captures EC2 API calls (who, what, when, source IP) and stores them in S3; it does not capture performance metrics (that is CloudWatch's role).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-monitoring.md", + "source_url": "", + "source_hash": "174f334ed7a457d7", + "date": "2026-03-08", + "metadata": {} + }, + "cloudtrail-channel-custom-source-for-non-aws": { + "text": "The CloudTrail Lake channel source value `Custom` is used for all non-AWS event sources; named partner sources are used for specific integration partners.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-create-channelhtml.md", + "source_url": "", + "source_hash": "145af15e3d062fe8", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-channel-for-lake-integrations-only": { + "text": "CloudTrail channels are specific to CloudTrail Lake integrations (partner or custom external sources), not traditional trails.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-delete-channelhtml.md", + "source_url": "", + "source_hash": "05c9133b0770b915", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-channel-max-200-destinations": { + "text": "A CloudTrail Lake channel supports up to 200 destinations per channel.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-create-channelhtml.md", + "source_url": "", + "source_hash": "145af15e3d062fe8", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-channel-one-per-source": { + "text": "Only one CloudTrail Lake channel is allowed per source (partner or custom).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-create-channelhtml.md", + "source_url": "", + "source_hash": "145af15e3d062fe8", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-channel-policy-action-putauditevents": { + "text": "CloudTrail Lake channel resource-based policies only allow one action: `cloudtrail-data:PutAuditEvents` (note the `cloudtrail-data` service prefix, not `cloudtrail`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-security_iam_resource-based-policy-exampleshtml.md", + "source_url": "", + "source_hash": "8e62421969847824", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-channel-policy-limits-20-statements-50-principals": { + "text": "CloudTrail Lake channel resource-based policies support a maximum of 20 statements and 50 principals per statement.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-security_iam_resource-based-policy-exampleshtml.md", + "source_url": "", + "source_hash": "8e62421969847824", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-channel-source-immutable-after-creation": { + "text": "A CloudTrail Lake channel's source cannot be changed after creation \u2014 it is immutable.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-create-channelhtml.md", + "source_url": "", + "source_hash": "145af15e3d062fe8", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-cloudwatch-default-role-name": { + "text": "The default IAM role for CloudTrail-to-CloudWatch Logs integration is named `CloudTrail_CloudWatchLogs_Role`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-required-policy-for-cloudwatch-logshtm.md", + "source_url": "", + "source_hash": "4eb795cdfc3550a9", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-cloudwatch-logs-near-real-time-alerting": { + "text": "CloudTrail can send log events to CloudWatch Logs for near real-time monitoring and alerting via metric filters, CloudWatch metrics, and CloudWatch alarms \u2014 unlike S3 delivery which has higher latency.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-monitor-cloudtrail-log-files-with-cloudwatch-logs.md", + "source_url": "", + "source_hash": "0639ae7fedb2abfa", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-cloudwatch-logs-org-trail-management-account-console": { + "text": "CloudWatch Logs log group configuration for organization trails can only be done via the console by the management account; delegated administrators must use CLI/API.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-a-trail-using-the-console-first.md", + "source_url": "", + "source_hash": "7f20607408e6098d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-cloudwatch-logs-requires-iam-role": { + "text": "Integrating CloudTrail with CloudWatch Logs requires a specific IAM role policy granting CloudTrail permission to write to the CloudWatch log group.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-monitor-cloudtrail-log-files-with-cloudwatch-logs.md", + "source_url": "", + "source_hash": "0639ae7fedb2abfa", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-cloudwatch-role-two-permissions": { + "text": "CloudTrail requires only two CloudWatch Logs permissions to deliver events: `logs:CreateLogStream` and `logs:PutLogEvents` \u2014 notably not `logs:CreateLogGroup`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-required-policy-for-cloudwatch-logshtm.md", + "source_url": "", + "source_hash": "4eb795cdfc3550a9", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-console-trail-all-regions-default": { + "text": "Trails created in the CloudTrail console apply to all AWS regions by default.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/ARG-latest-userguide-security_logging-monitoringhtml.md", + "source_url": "", + "source_hash": "d1b19303205f1541", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-console-trail-multi-region-default": { + "text": "CloudTrail trails created via the AWS console are multi-Region by default; one free copy of management events is delivered to S3 (S3 storage charges still apply).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-developerguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "91085e68a788a669", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-console-trails-all-regions-default": { + "text": "CloudTrail trails created via the AWS Console apply to all AWS Regions by default; CLI-created trails can be single-Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazonswf-latest-developerguide-ct-logginghtml.md", + "source_url": "", + "source_hash": "697081f6ac8c0d96", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-console-trails-always-multi-region": { + "text": "CloudTrail trails created via the console are always multi-Region; single-Region trails can only be created via the CLI.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "7247837b64d682fe", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-console-trails-default-multi-region": { + "text": "Trails created in the AWS Console default to multi-region logging.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apprunner-latest-dg-monitor-cthtml.md", + "source_url": "", + "source_hash": "47ba2f6f00dccfa4", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-console-trails-multi-region-by-default": { + "text": "CloudTrail trails created via the console are multi-Region by default; CLI-created trails can be single-Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudFront-latest-DeveloperGuide-logging_using_cloudtrailhtml.md", + "source_url": "", + "source_hash": "daea31f07819ec1b", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-console-trails-multi-region-default": { + "text": "Trails created via the AWS Console default to multi-region logging (all AWS Regions).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazonglacier-latest-dev-audit-logginghtml.md", + "source_url": "", + "source_hash": "b3d703814a7b3a0d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-control-tower-auto-creates-org-trail": { + "text": "Control Tower automatically creates an organization trail on landing zone setup; existing organization trails may cause duplicate billing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-aws-service-specific-topicshtml.md", + "source_url": "", + "source_hash": "8e9318f9a943e9aa", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-copy-ignores-destination-selectors": { + "text": "CloudTrail copies all trail events regardless of the destination event data store's event type configuration, advanced event selectors, or region settings.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-copy-trail-to-lake-edshtml.md", + "source_url": "", + "source_hash": "1ca39d629a077288", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-copy-only-gzip-compressed-logs": { + "text": "CloudTrail trail-to-Lake copy only processes gzip-compressed log files; uncompressed or other compression formats are skipped.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-copy-trail-to-lake-edshtml.md", + "source_url": "", + "source_hash": "1ca39d629a077288", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-copy-retention-formula": { + "text": "CloudTrail Lake event data store retention period for copied events must be set to: oldest_event_age_in_days + desired_retention_days.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-copy-trail-to-lake-edshtml.md", + "source_url": "", + "source_hash": "1ca39d629a077288", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-copy-trail-management-account-only-for-org": { + "text": "Only the management account can copy trail events to an organization event data store \u2014 delegated administrator accounts cannot perform this operation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-copy-trail-to-lake-edshtml.md", + "source_url": "", + "source_hash": "1ca39d629a077288", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-copy-trail-uncompressed-10x-s3-size": { + "text": "Copying trail events to CloudTrail Lake charges based on uncompressed data size, which is approximately 10x the compressed S3 log storage size.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-copy-trail-to-lake-edshtml.md", + "source_url": "", + "source_hash": "1ca39d629a077288", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-cross-account-audit-requires-multi-region-awareness": { + "text": "CloudTrail cross-account audit requires multi-region awareness: AssumeRole events are linked via sharedEventID across accounts, root sign-ins always appear in us-east-1 regardless of location, delegated admins can manage org-wide resources, but Lake dashboards are limited to same-account event data stores.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-shared-event-id-cross-account", + "cloudtrail-root-signin-always-us-east-1", + "cloudtrail-delegated-admin-can-manage-org-resources", + "cloudtrail-lake-dashboards-same-account-only" + ], + "outlist": [], + "label": "four cross-account audit constraints each bound to specific regions or account boundaries \u2014 missing any one creates a blind spot" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "unnecessary" + } + }, + "cloudtrail-cross-account-denied-not-logged-target": { + "text": "Cross-account AssumeRole denied requests are NOT logged in the target account's CloudTrail \u2014 only the source (caller's) account sees the denial.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-cloudtrail-integrationhtml.md", + "source_url": "", + "source_hash": "cb7bc3bfff11f21a", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-custom-dashboard-max-50-tags": { + "text": "CloudTrail Lake custom dashboards support up to 50 tags.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-managedhtml.md", + "source_url": "", + "source_hash": "7273991f0477618f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-cwl-delivery-approximately-5-minutes": { + "text": "CloudTrail delivers events to CloudWatch Logs within approximately 5 minutes of an API call; delivery is not real-time and not guaranteed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-send-cloudtrail-events-to-cloudwatch-logshtml.md", + "source_url": "", + "source_hash": "a8a95276c07618d8", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-cwl-log-group-same-account-only": { + "text": "CloudWatch Logs log groups for CloudTrail must exist in the same account as the trail \u2014 unlike S3 buckets and SNS topics which support cross-account delivery.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-send-cloudtrail-events-to-cloudwatch-logshtml.md", + "source_url": "", + "source_hash": "a8a95276c07618d8", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-cwl-max-event-size-256kb": { + "text": "CloudTrail does not send events larger than 256 KB to CloudWatch Logs or EventBridge; starting with event version 1.05, events are capped at 256 KB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-send-cloudtrail-events-to-cloudwatch-logshtml.md", + "source_url": "", + "source_hash": "a8a95276c07618d8", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-cwl-role-two-permissions": { + "text": "The IAM role for CloudTrail-to-CloudWatch Logs integration requires exactly two permissions: `logs:CreateLogStream` and `logs:PutLogEvents`, with a trust policy for `cloudtrail.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-send-cloudtrail-events-to-cloudwatch-logshtml.md", + "source_url": "", + "source_hash": "a8a95276c07618d8", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-dashboard-auto-refresh-two-policies-required": { + "text": "For CloudTrail Lake dashboard auto-refresh, two resource-based policies are needed: one on the event data store (allowing `StartQuery`) and one on the dashboard (allowing `StartDashboardRefresh`), both with principal `cloudtrail.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-security_iam_resource-based-policy-exampleshtml.md", + "source_url": "", + "source_hash": "8e62421969847824", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-dashboard-max-10-widgets": { + "text": "CloudTrail Lake custom dashboards support a maximum of 10 query widgets.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-create-dashboardhtml.md", + "source_url": "", + "source_hash": "039c4738c356e5be", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-dashboard-refresh-frequency-values": { + "text": "CloudTrail Lake dashboard refresh schedule supports HOURS (1, 6, 12, 24) or DAYS (1); the Highlights dashboard is fixed at 6 hours.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-create-dashboardhtml.md", + "source_url": "", + "source_hash": "039c4738c356e5be", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-dashboard-resource-policies-required": { + "text": "CloudTrail Lake dashboards with scheduled refresh require resource-based policies granting `StartQuery` on each event data store and `StartDashboardRefresh` on the dashboard itself.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-create-dashboardhtml.md", + "source_url": "", + "source_hash": "039c4738c356e5be", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-data-events-available-in-eventbridge": { + "text": "Data events logged by CloudTrail trails are also available as events in Amazon EventBridge.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-logging-data-events-with-cloudtrailhtml.md", + "source_url": "", + "source_hash": "5fdf8a1be286542e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-data-events-go-to-lake-not-trails": { + "text": "Events ingested via the CloudTrail Data Service `PutAuditEvents` API go to CloudTrail Lake event data stores, not to standard trails or S3 delivery.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtraildata-latest-APIReference-Welcomehtml.md", + "source_url": "", + "source_hash": "6c13b02057cb959d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-data-events-insights-trail-only": { + "text": "CloudTrail Data events Insights are only supported on trails, not on event data stores.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-logging-insights-events-with-cloudtrailhtml.md", + "source_url": "", + "source_hash": "9a6caba201025fd9", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-data-events-not-in-event-history": { + "text": "CloudTrail data events do not appear in the CloudTrail Event History console \u2014 only management events are shown there.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSSimpleQueueService-latest-SQSDeveloperGuide-sqs-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "1d3337c92193200c", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-data-events-off-by-default": { + "text": "CloudTrail data events (data plane operations) are not logged by default in trails or event data stores and incur additional charges when enabled.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-logging-data-events-with-cloudtrailhtml.md", + "source_url": "", + "source_hash": "5fdf8a1be286542e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-data-events-over-150-resource-types": { + "text": "CloudTrail supports data event logging for over 150 resource types across dozens of AWS services, using the `resources.type` field in advanced event selectors.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-logging-data-events-with-cloudtrailhtml.md", + "source_url": "", + "source_hash": "5fdf8a1be286542e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-data-events-queried-via-lake-not-event-history": { + "text": "Events ingested via `cloudtrail-data` are searchable only through CloudTrail Lake queries, not through standard CloudTrail event history.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-data.md", + "source_url": "", + "source_hash": "d4c1b3289b03d9f2", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-data-events-require-advanced-event-selectors": { + "text": "Logging CloudTrail data events requires advanced event selectors (not basic event selectors), with filtering available on `eventCategory`, `resources.type`, `eventName`, and `resources.ARN`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazonq-latest-business-use-dg-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "55769309e0f1dc36", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-data-ingestion-uses-lake-channels": { + "text": "External events are ingested into CloudTrail Lake through channel resources configured for external sources.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-data.md", + "source_url": "", + "source_hash": "d4c1b3289b03d9f2", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-data-only-command-put-audit-events": { + "text": "The `cloudtrail-data` service exposes only a single command: `put-audit-events`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-data.md", + "source_url": "", + "source_hash": "d4c1b3289b03d9f2", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-data-putauditevents-ingests-non-aws-events": { + "text": "The CloudTrail Data Service API `PutAuditEvents` is the only way to ingest non-AWS events (from on-premises, SaaS, VMs, containers) into CloudTrail Lake.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtraildata-latest-APIReference-Welcomehtml.md", + "source_url": "", + "source_hash": "6c13b02057cb959d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-data-requires-put-audit-events-permission": { + "text": "Ingesting external events via `cloudtrail-data` requires the `cloudtrail-data:PutAuditEvents` IAM permission.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-data.md", + "source_url": "", + "source_hash": "d4c1b3289b03d9f2", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-data-separate-endpoint-from-control-plane": { + "text": "The CloudTrail Data Service uses a separate service endpoint (`cloudtrail-data`) from the main CloudTrail control-plane API.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtraildata-latest-APIReference-Welcomehtml.md", + "source_url": "", + "source_hash": "6c13b02057cb959d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-data-service-ingests-external-events": { + "text": "The `cloudtrail-data` CLI namespace is a separate service from `cloudtrail` that enables ingestion of events from non-AWS external sources (on-premises apps, SaaS, VMs, containers) into CloudTrail Lake.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-data.md", + "source_url": "", + "source_hash": "d4c1b3289b03d9f2", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-default-audit-posture-has-significant-gaps": { + "text": "CloudTrail's default configuration provides only management-event coverage with 90-day retention and ~5-minute delivery latency \u2014 data events, network events, and long-term retention all require explicit opt-in and additional cost.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-event-history-90-day-default", + "cloudtrail-trail-required-beyond-90-days", + "cloudtrail-log-delivery-approx-5-minutes", + "cloudtrail-network-events-not-default-extra-charge" + ], + "outlist": [], + "label": "Default audit posture is insufficient for compliance; each gap requires separate remediation" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "cloudtrail-default-posture-sufficient-for-basic-operational-visibility": { + "text": "CloudTrail's default configuration (management events across all regions with 90-day retention) provides sufficient operational visibility for basic incident awareness when comprehensive audit coverage is not a regulatory or security requirement.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-management-events-default-data-events-not", + "cloudtrail-trails-all-regions-by-default" + ], + "outlist": [ + "comprehensive-audit-requires-cost-proportional-to-coverage" + ], + "label": "Defaults do provide cross-region management event coverage, which is genuinely useful for basic operational awareness \u2014 currently OUT because comprehensive audit requirements (data events, network events, long-term retention) are typically load-bearing in production environments" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "cloudtrail-default-trail-scope-all-regions": { + "text": "When a CloudTrail trail is created via the console, the default scope is all Regions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-AuroraUserGuide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "7c2abd4270e2c9ad", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-delegated-admin-can-manage-org-resources": { + "text": "A delegated administrator can manage CloudTrail resources for an organization, not just the management account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-aws-service-specific-topicshtml.md", + "source_url": "", + "source_hash": "8e9318f9a943e9aa", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-delegated-admin-policy-auto-generated": { + "text": "Delegated administrator accounts in AWS Organizations get an automatically generated resource policy for CloudTrail Lake resources that is evaluated alongside any user-submitted policy and cannot be overridden.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-API_PutResourcePolicyhtml.md", + "source_url": "", + "source_hash": "8b0d36667cc76dd6", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-delegated-admin-slr-creation-difference": { + "text": "Adding a CloudTrail delegated administrator via CloudTrail console/CLI/API auto-creates service-linked roles (AWSServiceRoleForCloudTrail, AWSServiceRoleForCloudTrailEventContext), but adding via Organizations CLI/API does not.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-delegated-administratorhtml.md", + "source_url": "", + "source_hash": "1de003ff27e5a875", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-delete-channel-accepts-arn-or-uuid": { + "text": "The `aws cloudtrail delete-channel` command's `--channel` parameter accepts either an ARN or a UUID to identify the channel.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-delete-channelhtml.md", + "source_url": "", + "source_hash": "05c9133b0770b915", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-delete-channel-does-not-delete-event-data-store": { + "text": "Deleting a CloudTrail channel stops external event ingestion but does not delete the associated event data store.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-delete-channelhtml.md", + "source_url": "", + "source_hash": "05c9133b0770b915", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-delete-channel-no-output-on-success": { + "text": "The `aws cloudtrail delete-channel` command returns no output on success.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-delete-channelhtml.md", + "source_url": "", + "source_hash": "05c9133b0770b915", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-delete-trail-keeps-s3-bucket": { + "text": "Deleting a CloudTrail trail does not delete the associated S3 bucket or its log files.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-and-update-a-trail-by-using-the.md", + "source_url": "", + "source_hash": "4c4991da36188723", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-dynamodb-streams-included-in-table-data-events": { + "text": "When DynamoDB Streams is enabled, specifying `AWS::DynamoDB::Table` for CloudTrail data events logs both table and stream events by default; use `eventName` filter to separate them.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-logging-data-events-with-cloudtrailhtml.md", + "source_url": "", + "source_hash": "5fdf8a1be286542e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-eds-default-billing-mode-extendable": { + "text": "The default billing mode for a CloudTrail Lake event data store is EXTENDABLE_RETENTION_PRICING with a 366-day default retention period.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-create-event-data-storehtml.md", + "source_url": "", + "source_hash": "52146536787d53e2", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-eds-event-categories-five-types": { + "text": "CloudTrail Lake advanced event selectors support five `eventCategory` values: `Management`, `Data`, `ConfigurationItem`, `NetworkActivity`, and `Insight`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-create-edshtml.md", + "source_url": "", + "source_hash": "f5a315b62dd6ebd3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-eds-kms-key-irrevocable": { + "text": "Once a KMS key is associated with a CloudTrail Lake event data store, it cannot be changed or removed; disabling/deleting the key blocks logging and querying.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-create-event-data-storehtml.md", + "source_url": "", + "source_hash": "52146536787d53e2", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-eds-max-5-advanced-event-selectors": { + "text": "A CloudTrail Lake event data store supports a maximum of 5 advanced event selectors, with no wildcard support (use StartsWith/EndsWith instead).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-create-event-data-storehtml.md", + "source_url": "", + "source_hash": "52146536787d53e2", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-eds-multi-region-enabled-by-default": { + "text": "CloudTrail Lake event data stores have multi-region enabled by default; use `--no-multi-region-enabled` to disable.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-create-edshtml.md", + "source_url": "", + "source_hash": "f5a315b62dd6ebd3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-eds-only-name-required": { + "text": "The only required parameter for `create-event-data-store` is `--name`; all others are optional with defaults.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-create-edshtml.md", + "source_url": "", + "source_hash": "f5a315b62dd6ebd3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-eds-retention-limits-by-billing-mode": { + "text": "CloudTrail Lake EDS retention limits differ by billing mode: EXTENDABLE_RETENTION_PRICING allows up to 3653 days (default 366), FIXED_RETENTION_PRICING allows up to 2557 days (default 2557, recommended for >25 TB/month).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-create-event-data-storehtml.md", + "source_url": "", + "source_hash": "52146536787d53e2", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-eds-two-billing-modes": { + "text": "CloudTrail Lake event data stores have two billing modes: `EXTENDABLE_RETENTION_PRICING` (default, \u226425 TB/month, up to 3653 days/~10 years) and `FIXED_RETENTION_PRICING` (>25 TB/month, up to 2557 days/~7 years).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-create-edshtml.md", + "source_url": "", + "source_hash": "f5a315b62dd6ebd3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-enabled-by-default-90-days-free": { + "text": "CloudTrail is enabled by default on all AWS accounts and provides 90 days of management event history at no charge.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-monitoring-logging_cw_api_callshtml.md", + "source_url": "", + "source_hash": "e54a10d77fa3d415", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-enabled-by-default-all-accounts": { + "text": "AWS CloudTrail is automatically enabled when you create an AWS account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/ARG-latest-userguide-security_logging-monitoringhtml.md", + "source_url": "", + "source_hash": "d1b19303205f1541", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-enabled-by-default-on-account-creation": { + "text": "CloudTrail is automatically enabled when an AWS account is created \u2014 no manual setup is required to start capturing events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appfabric-latest-adminguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "9ab4738b71f4111e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-enabled-by-default-on-all-accounts": { + "text": "CloudTrail is enabled by default on every AWS account at creation time; recent events are viewable in Event history without creating a trail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cfn-api-logging-cloudtrailhtml.md", + "source_url": "", + "source_hash": "89241f85d29309a2", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-event-history-90-day-default": { + "text": "CloudTrail Event History retains events for only 90 days without a trail configured.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-and-update-a-trailhtml.md", + "source_url": "", + "source_hash": "2ed0970dc22963d5", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-event-history-90-days-free": { + "text": "CloudTrail Event history provides 90 days of management events at no charge \u2014 viewable, searchable, downloadable, and immutable.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "7247837b64d682fe", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-event-history-90-days-free-no-trail": { + "text": "CloudTrail Event history is automatic, free, and provides 90 days of searchable management events per Region without creating a trail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/autoscaling-application-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "dea3db58686e8ec9", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-event-history-90-days-no-trail": { + "text": "CloudTrail Event History retains the last 90 days of API activity per Region without any trail configuration.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-AuroraUserGuide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "7c2abd4270e2c9ad", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-event-history-90-days-no-trail-required": { + "text": "CloudTrail Event History is available by default without creating a trail, capturing 90 days of management events per Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-multi-region-trailshtml.md", + "source_url": "", + "source_hash": "1c5bda036ca8942d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-event-history-cannot-exclude-kms-rds-data-api": { + "text": "KMS and RDS Data API events cannot be excluded from CloudTrail event history \u2014 exclusion settings on trails/event data stores do not apply to event history.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-eventshtml.md", + "source_url": "", + "source_hash": "ee9e7c082f96effe", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-event-history-default-filter-write-only": { + "text": "The CloudTrail console Event history default filter is Read only = false, showing only write events by default.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-events-consolehtml.md", + "source_url": "", + "source_hash": "ebc640c4d1d0296f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-event-history-doubly-scoped-per-account-and-region": { + "text": "CloudTrail event history is doubly scoped (per-account AND per-region), requiring accounts \u00d7 regions combinatorial queries for comprehensive cross-account incident investigation \u2014 a 10-account, 5-region organization needs 50 independent lookups.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-event-history-per-account", + "cloudtrail-event-history-region-scoped" + ], + "outlist": [], + "label": "Double scoping creates multiplicative query burden for cross-boundary investigations" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "cloudtrail-event-history-download-limit-200k": { + "text": "CloudTrail event history console downloads are capped at 200,000 events per file in CSV or JSON format.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-events-consolehtml.md", + "source_url": "", + "source_hash": "ebc640c4d1d0296f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-event-history-free-90-days": { + "text": "CloudTrail Event history provides a free, searchable record of the past 90 days of management events per Region with no trail required.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-backup-latest-devguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "2f8b414f2cf236a0", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-event-history-free-90-days-management-only": { + "text": "CloudTrail Event history is free, automatic, covers the past 90 days, and records management events only \u2014 no trail or event data store configuration required.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-how-cloudtrail-workshtml.md", + "source_url": "", + "source_hash": "bfbd92acfd20dc5c", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-event-history-free-automatic-immutable": { + "text": "CloudTrail event history is free, automatic, enabled by default for every AWS account, and immutable \u2014 it provides 90 days of management events per Region with no setup required.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-eventshtml.md", + "source_url": "", + "source_hash": "ee9e7c082f96effe", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-event-history-independent-of-trails": { + "text": "CloudTrail event history is independent of any trails or event data stores \u2014 changes to trails or event data stores do not affect what appears in event history.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-eventshtml.md", + "source_url": "", + "source_hash": "ee9e7c082f96effe", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-event-history-no-trail-needed": { + "text": "CloudTrail Event History shows recent events without creating a trail; a trail is required for long-term delivery to S3.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "c5da484e3165407f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-event-history-per-account": { + "text": "CloudTrail Event history is per-account \u2014 the management account cannot see member account events in Event history; you must sign into each account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-creating-trail-organizationhtml.md", + "source_url": "", + "source_hash": "1fd446ea232ea630", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-event-history-region-scoped": { + "text": "CloudTrail event history records and returns events per-Region \u2014 you must query each Region separately; for cross-Region queries use CloudTrail Lake.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-eventshtml.md", + "source_url": "", + "source_hash": "ee9e7c082f96effe", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-eventbridge-requires-active-trail": { + "text": "EventBridge integration with CloudTrail requires an active trail logging the appropriate event type (management, data, or Insights) for matching rules to trigger.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-aws-service-specific-topicshtml.md", + "source_url": "", + "source_hash": "8e9318f9a943e9aa", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-failed-signin-username-hidden": { + "text": "CloudTrail masks incorrect usernames in sign-in failure events as `HIDDEN_DUE_TO_SECURITY_REASONS` to prevent sensitive data leakage.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-cloudtrail-integrationhtml.md", + "source_url": "", + "source_hash": "cb7bc3bfff11f21a", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-federated-user-mfa-always-false": { + "text": "Federated user sign-in events always show `mfaAuthenticated: \"false\"` and `MFAUsed: \"No\"` because MFA is evaluated at the federation/STS level, not at console sign-in.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-event-reference-aws-console-sign-in-ev.md", + "source_url": "", + "source_hash": "e0db43e03ee3996f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-first-management-event-copy-free": { + "text": "The first copy of management events delivered to S3 via a CloudTrail trail is free (S3 storage charges still apply).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-cloudtrail-logginghtml.md", + "source_url": "", + "source_hash": "046c6aef6c86dc4d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-first-management-event-trail-free": { + "text": "One copy of ongoing management events delivered to S3 via a CloudTrail trail is free; S3 storage charges still apply separately.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/app-mesh-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "607809ec4defae58", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-four-event-types": { + "text": "CloudTrail logs four event types: management events (control plane), data events (data plane), network activity events (VPC endpoint calls), and Insights events (anomaly detection).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-working-with-log-fileshtml.md", + "source_url": "", + "source_hash": "138403e9a87417db", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-fullaccess-admin-only": { + "text": "The `AWSCloudTrail_FullAccess` managed policy should only be granted to account administrators because it can disable or reconfigure auditing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-security_iam_id-based-policy-exampleshtml.md", + "source_url": "", + "source_hash": "0eb0fda6dd15bd17", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-fullaccess-lambda-dynamodb-list-only": { + "text": "The `AWSCloudTrail_FullAccess` policy grants only list permissions for Lambda and DynamoDB, enabling the CloudTrail console to display resources available for data event logging.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSCloudTrail_FullAccesshtml.md", + "source_url": "", + "source_hash": "454d33fc9804931f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-fullaccess-passrole-conditioned": { + "text": "The `AWSCloudTrail_FullAccess` policy restricts `iam:PassRole` with condition `iam:PassedToService: cloudtrail.amazonaws.com`, preventing role passing to other services.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSCloudTrail_FullAccesshtml.md", + "source_url": "", + "source_hash": "454d33fc9804931f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-fullaccess-policy-arn": { + "text": "The `AWSCloudTrail_FullAccess` managed policy ARN is `arn:aws:iam::aws:policy/AWSCloudTrail_FullAccess` and grants `cloudtrail:*` on all resources.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSCloudTrail_FullAccesshtml.md", + "source_url": "", + "source_hash": "454d33fc9804931f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-fullaccess-s3-sns-scoped-to-prefix": { + "text": "The `AWSCloudTrail_FullAccess` policy scopes S3 and SNS write permissions to resources matching `aws-cloudtrail-logs*` \u2014 not all buckets/topics.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSCloudTrail_FullAccesshtml.md", + "source_url": "", + "source_hash": "454d33fc9804931f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-highlights-auto-enables-termination-protection": { + "text": "Enabling the CloudTrail Lake Highlights dashboard automatically enables termination protection on it; termination protection must be disabled before the Highlights dashboard can be disabled.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-highlightshtml.md", + "source_url": "", + "source_hash": "ad9affa6f5a13e3d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-highlights-dashboard-6hr-refresh-24hr-data": { + "text": "The CloudTrail Lake Highlights dashboard refreshes automatically every 6 hours (not configurable) and displays the last 24 hours of data from the most recent update.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-highlightshtml.md", + "source_url": "", + "source_hash": "ad9affa6f5a13e3d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-highlights-dashboard-exact-name": { + "text": "The CloudTrail Lake Highlights dashboard must be named exactly `AWSCloudTrail-Highlights` \u2014 no other name is accepted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-create-dashboardhtml.md", + "source_url": "", + "source_hash": "039c4738c356e5be", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-highlights-widgets-managed-not-customizable": { + "text": "CloudTrail Highlights dashboard widgets are unique per account and managed entirely by CloudTrail \u2014 users cannot add, remove, or modify them.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-highlightshtml.md", + "source_url": "", + "source_hash": "ad9affa6f5a13e3d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-analyzes-per-region-not-globally": { + "text": "CloudTrail Insights analyzes events per-region, not globally; for organizations, analysis is per-member-account, not aggregated.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-create-edshtml.md", + "source_url": "", + "source_hash": "f5a315b62dd6ebd3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-api-call-rate-write-only-mgmt": { + "text": "CloudTrail API call rate Insights only analyzes write management events (not read), while API error rate Insights analyzes both read and write management events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-costshtml.md", + "source_url": "", + "source_hash": "632e2ee381249373", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-baseline-28-days-free": { + "text": "CloudTrail Insights analyzes the past 28 days of events to establish a baseline at no charge; the baseline is recalculated daily.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-costshtml.md", + "source_url": "", + "source_hash": "632e2ee381249373", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-billed-per-events-analyzed": { + "text": "CloudTrail Insights charges are based on the number of events analyzed, not the number of Insights events generated.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-costshtml.md", + "source_url": "", + "source_hash": "632e2ee381249373", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-call-rate-requires-write-error-rate-requires-read-or-write": { + "text": "CloudTrail Insights API call rate analysis requires the trail to log write events, while API error rate analysis requires the trail to log read or write events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-view-insights-eventshtml.md", + "source_url": "", + "source_hash": "b1a8205fa134fd7f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-call-rate-write-mgmt-only": { + "text": "CloudTrail Insights API call rate analysis for management events only analyzes write management events; API error rate analysis can use read, write, or both.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-logging-insights-events-with-cloudtrailhtml.md", + "source_url": "", + "source_hash": "9a6caba201025fd9", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-call-rate-write-only-error-rate-read-write": { + "text": "CloudTrail Insights on API call rate monitors write management APIs only; Insights on API error rate monitors both read and write management APIs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-how-cloudtrail-workshtml.md", + "source_url": "", + "source_hash": "bfbd92acfd20dc5c", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-dashboard-max-30-days": { + "text": "The CloudTrail Lake Insights events dashboard displays up to 30 days of Insights events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-view-lakehtml.md", + "source_url": "", + "source_hash": "c383b09df6003af7", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-data-events-trail-only": { + "text": "CloudTrail Insights on data events is only supported on trails, not on event data stores.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-costshtml.md", + "source_url": "", + "source_hash": "632e2ee381249373", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-delay-36h-trails-7d-lake": { + "text": "CloudTrail Insights events have an initial delivery delay of up to 36 hours for trails and up to 7 days for CloudTrail Lake event data stores after first enablement.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-how-cloudtrail-workshtml.md", + "source_url": "", + "source_hash": "bfbd92acfd20dc5c", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-detects-unusual-api-activity": { + "text": "CloudTrail Insights detects unusual API activity by analyzing CloudTrail events to establish baseline patterns, then generating Insights events when API call rates or error rates deviate significantly from those baselines.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-logging-insights-events-with-cloudtrailhtml.md", + "source_url": "", + "source_hash": "9a6caba201025fd9", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-different-api-management-vs-data": { + "text": "CloudTrail Insights events for management events use `LookupEvents` API, while Insights events for data events use `ListInsightsData` API \u2014 different APIs for different event types.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-view-insights-eventshtml.md", + "source_url": "", + "source_hash": "b1a8205fa134fd7f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-double-counting-both-types": { + "text": "When both Insights types (API call rate and API error rate) are enabled, write management events are analyzed twice and data events are always analyzed twice.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-costshtml.md", + "source_url": "", + "source_hash": "632e2ee381249373", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-eds-delivery-delay-7-days": { + "text": "After first enabling Insights on an event data store, delivery of Insights events may take up to 7 days to begin.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-enablehtml.md", + "source_url": "", + "source_hash": "bae06d3775bd5f12", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-management-events-only": { + "text": "CloudTrail Insights events are generated only for management API events, not data events; they detect anomalous API call rates and error rates.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-working-with-log-fileshtml.md", + "source_url": "", + "source_hash": "138403e9a87417db", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-re-enable-resets-delay": { + "text": "Re-enabling Insights or restarting logging/ingestion resets the delivery delay timer (36 hours for trails, 7 days for event data stores).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-understandinghtml.md", + "source_url": "", + "source_hash": "5c1de8d0425f238f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-region-scoped": { + "text": "CloudTrail Insights events are generated per-Region, in the same Region as the source event that triggered them.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-logging-insights-events-with-cloudtrailhtml.md", + "source_url": "", + "source_hash": "9a6caba201025fd9", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-requires-source-destination-eds-pair": { + "text": "CloudTrail Lake Insights requires two event data stores (a source for management events and a destination for Insight events) linked via `put-insight-selectors`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-create-edshtml.md", + "source_url": "", + "source_hash": "f5a315b62dd6ebd3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-requires-two-event-data-stores": { + "text": "CloudTrail Insights in Lake requires two event data stores: a source (management events with Insights enabled) and a separate destination (receives Insights events).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-insightshtml.md", + "source_url": "", + "source_hash": "57269d26a0332e1e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-s3-delivery-folder": { + "text": "CloudTrail Insights events from trails are delivered to a `/CloudTrail-Insight` folder in the trail's destination S3 bucket.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-understandinghtml.md", + "source_url": "", + "source_hash": "5c1de8d0425f238f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-trail-delivery-delay-36-hours": { + "text": "After first enabling Insights on a trail, delivery of Insights events may take up to 36 hours to begin.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-enablehtml.md", + "source_url": "", + "source_hash": "bae06d3775bd5f12", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-two-event-types": { + "text": "CloudTrail Insights has two event types: `ApiCallRateInsight` (detects unusual API call volume) and `ApiErrorRateInsight` (detects unusual API error volume).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-CLI-enablehtml.md", + "source_url": "", + "source_hash": "5ec6a740d4b50c75", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-two-types": { + "text": "CloudTrail Insights has two event types: `ApiCallRateInsight` (unusual API call volume) and `ApiErrorRateInsight` (unusual error rates).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-view-lakehtml.md", + "source_url": "", + "source_hash": "c383b09df6003af7", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-insights-up-to-7-days-first-delivery": { + "text": "After first enabling CloudTrail Insights, it may take up to 7 days before Insights events begin being delivered (if unusual activity is detected).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-insightshtml.md", + "source_url": "", + "source_hash": "57269d26a0332e1e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-integration-eds-single-region-only": { + "text": "CloudTrail Lake integration event data stores (for external sources) must be single-Region only.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-how-cloudtrail-workshtml.md", + "source_url": "", + "source_hash": "bfbd92acfd20dc5c", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-internal-getmetricdata-no-cw-charge": { + "text": "Internal CloudWatch GetMetricData calls (from dashboards, cross-account observability) appear in CloudTrail and count toward CloudTrail event charges but do not incur CloudWatch charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-monitoring-logging_cw_api_callshtml.md", + "source_url": "", + "source_hash": "e54a10d77fa3d415", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-kms-encrypt-decrypt-over-99pct-volume": { + "text": "AWS KMS actions (Encrypt, Decrypt, GenerateDataKey) account for over 99% of KMS event volume in CloudTrail and are classified as Read management events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-a-trail-using-the-console-first.md", + "source_url": "", + "source_hash": "7f20607408e6098d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-kms-events-over-99-percent": { + "text": "KMS events (Encrypt, Decrypt, GenerateDataKey) typically generate over 99% of CloudTrail events; filtering these via advanced event selectors is a key cost optimization.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-conceptshtml.md", + "source_url": "", + "source_hash": "e141963ee668f026", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-14-managed-dashboards": { + "text": "CloudTrail Lake provides 14 pre-built managed dashboards that are read-only with manual refresh.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-conceptshtml.md", + "source_url": "", + "source_hash": "e141963ee668f026", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-25tb-pricing-threshold": { + "text": "The 25 TB/month ingestion threshold is the decision point between one-year extendable pricing (<25 TB) and seven-year fixed retention pricing (>25 TB) for CloudTrail Lake.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-manage-costshtml.md", + "source_url": "", + "source_hash": "af57d5880f93049e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-advanced-selectors-no-wildcards": { + "text": "CloudTrail Lake advanced event selectors do not support wildcards \u2014 use `StartsWith`, `EndsWith`, `NotStartsWith`, `NotEndsWith` operators instead, with a maximum of 500 values across all selector conditions per event data store.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-cloudtrailhtml.md", + "source_url": "", + "source_hash": "55e0b25834bc9232", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-apache-orc-columnar-format": { + "text": "CloudTrail Lake stores events in Apache ORC columnar format in event data stores, supporting SQL-based querying with configurable retention and ingestion/storage costs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudFront-latest-DeveloperGuide-logging_using_cloudtrailhtml.md", + "source_url": "", + "source_hash": "daea31f07819ec1b", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-apache-orc-sql-queries": { + "text": "CloudTrail Lake stores events in Apache ORC columnar format and supports SQL-based queries with advanced event selectors for filtering.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "7247837b64d682fe", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-billing-mode-change-one-way": { + "text": "CloudTrail Lake event data store billing mode can only be changed from FIXED_RETENTION_PRICING to EXTENDABLE_RETENTION_PRICING, not the reverse; reverting requires stopping ingestion and creating a new event data store.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-update-edshtml.md", + "source_url": "", + "source_hash": "f32ccf5d0bd004fb", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-billing-mode-one-way": { + "text": "CloudTrail Lake event data store billing mode cannot be switched from `EXTENDABLE_RETENTION_PRICING` to `FIXED_RETENTION_PRICING` \u2014 you must create a new event data store instead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-API_UpdateEventDataStorehtml.md", + "source_url": "", + "source_hash": "43ed3e3cecc97a67", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-cancel-query-queued-or-running-only": { + "text": "CloudTrail Lake queries can only be cancelled when in QUEUED or RUNNING state; terminal states (CANCELLED, FAILED, TIMED_OUT, FINISHED) cannot be cancelled", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-cancel-queryhtml.md", + "source_url": "", + "source_hash": "3e2442f1fc6f0421", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-channels-one-per-source": { + "text": "CloudTrail Lake channels (for external non-AWS event integration) allow a maximum of one channel per source; events are delivered via the `PutAuditEvents` API with `eventCategory=\"ActivityAuditLog\"`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-integrationhtml.md", + "source_url": "", + "source_hash": "8cd95935db6a6ae3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-config-items-forward-only": { + "text": "CloudTrail Lake event data stores for AWS Config configuration items only capture events going forward \u2014 no backfill of historical configuration items that occurred before creation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-confightml.md", + "source_url": "", + "source_hash": "feddbfb8e00704d0", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-config-requires-recording-enabled": { + "text": "Creating a CloudTrail Lake event data store for AWS Config configuration items requires that AWS Config recording is already enabled as a prerequisite.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-confightml.md", + "source_url": "", + "source_hash": "feddbfb8e00704d0", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-copy-trail-events-while-stopped": { + "text": "Trail events can still be copied to a stopped CloudTrail Lake event data store, provided it contains only CloudTrail events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-eds-stop-ingestionhtml.md", + "source_url": "", + "source_hash": "caccad37f8b28b0e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-cross-account-cross-region-no-athena": { + "text": "CloudTrail Lake aggregates events into an event data store (not S3) supporting cross-account, cross-region SQL queries directly in the CloudTrail console without requiring Athena.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/athena-latest-ug-cloudtrail-logshtml.md", + "source_url": "", + "source_hash": "7cc0fda4b541cad8", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-custom-dashboard-max-10-widgets": { + "text": "CloudTrail Lake custom dashboards support a maximum of 10 widgets each.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-customhtml.md", + "source_url": "", + "source_hash": "67ddd84e5b1e4554", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-custom-dashboards-max-10-widgets": { + "text": "CloudTrail Lake custom dashboards support up to 10 widgets, each backed by a SQL query.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-conceptshtml.md", + "source_url": "", + "source_hash": "e141963ee668f026", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-dashboard-auto-attaches-resource-policies": { + "text": "When creating a CloudTrail Lake custom dashboard via the console, CloudTrail automatically attaches resource-based policies to selected event data stores to authorize dashboard queries.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-customhtml.md", + "source_url": "", + "source_hash": "67ddd84e5b1e4554", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-dashboard-max-50-tags": { + "text": "CloudTrail Lake dashboards support up to 50 tag key pairs for identification and sorting.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-customhtml.md", + "source_url": "", + "source_hash": "67ddd84e5b1e4554", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-dashboard-queries-incur-charges": { + "text": "CloudTrail Lake dashboard queries (both managed and Highlights) incur standard CloudTrail Lake query charges based on the amount of data scanned.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-highlightshtml.md", + "source_url": "", + "source_hash": "ad9affa6f5a13e3d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-dashboard-refresh-incurs-query-costs": { + "text": "Each CloudTrail Lake dashboard refresh runs queries against event data stores and incurs standard Lake query costs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-refreshhtml.md", + "source_url": "", + "source_hash": "cd55e91c127ec833", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-dashboard-refresh-intervals": { + "text": "CloudTrail Lake custom dashboard automatic refresh intervals are limited to 1, 6, 12, or 24 hours \u2014 arbitrary cron expressions are not supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-refreshhtml.md", + "source_url": "", + "source_hash": "cd55e91c127ec833", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-dashboard-refresh-resource-policy": { + "text": "CloudTrail automatically attaches a resource-based policy to a custom dashboard when an automatic refresh schedule is configured, granting CloudTrail permission to refresh on the user's behalf.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-refreshhtml.md", + "source_url": "", + "source_hash": "cd55e91c127ec833", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-dashboard-resource-policies-both-required": { + "text": "CloudTrail Lake dashboard scheduled refresh requires resource-based policies on both the dashboard itself (for `StartDashboardRefresh`) and every associated event data store (for `StartQuery`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-cli-managehtml.md", + "source_url": "", + "source_hash": "0d442d36868d2310", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-dashboard-termination-protection-blocks-delete": { + "text": "CloudTrail Lake custom dashboards cannot be deleted until termination protection is explicitly disabled first.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-deletehtml.md", + "source_url": "", + "source_hash": "8fdb49ec1c623c65", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-dashboard-two-types-custom-managed": { + "text": "CloudTrail Lake dashboards have two types: CUSTOM (user-created) and MANAGED (configured by CloudTrail).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-cli-managehtml.md", + "source_url": "", + "source_hash": "0d442d36868d2310", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-dashboard-update-widgets-must-include-all": { + "text": "When updating CloudTrail Lake dashboard widgets via CLI, the complete widgets array (existing plus new) must be passed \u2014 not just the new widget.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-cli-managehtml.md", + "source_url": "", + "source_hash": "0d442d36868d2310", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-dashboards-same-account-event-data-stores-only": { + "text": "CloudTrail Lake dashboards (including Highlights and managed) can only query event data stores within the same AWS account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-highlightshtml.md", + "source_url": "", + "source_hash": "ad9affa6f5a13e3d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-dashboards-same-account-only": { + "text": "CloudTrail Lake dashboards only operate on event data stores within the same AWS account; delegated administrators cannot view or manage dashboards owned by the management account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboardhtml.md", + "source_url": "", + "source_hash": "be14a24ef79791f6", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-dashboards-use-resource-based-policies": { + "text": "CloudTrail Lake attaches resource-based policies (not identity-based policies) to event data stores and dashboards to grant itself permission to run automated queries and refreshes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-highlightshtml.md", + "source_url": "", + "source_hash": "ad9affa6f5a13e3d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-eds-event-source-type-immutable": { + "text": "A CloudTrail Lake event data store's event source type (AWS events vs. external events) cannot be changed after creation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-update-edshtml.md", + "source_url": "", + "source_hash": "f32ccf5d0bd004fb", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-eds-termination-protection-default-enabled": { + "text": "CloudTrail Lake event data store termination protection is enabled by default and must be explicitly disabled (`--no-termination-protection-enabled`) before the event data store can be deleted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-update-edshtml.md", + "source_url": "", + "source_hash": "f32ccf5d0bd004fb", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-eds-two-pricing-options": { + "text": "CloudTrail Lake event data stores have two pricing options: one-year extendable retention (default 366 days, max 3,653 days, best for <25 TB/month) and seven-year retention (default/max 2,557 days, best for >25 TB/month).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-cloudtrailhtml.md", + "source_url": "", + "source_hash": "55e0b25834bc9232", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-enrichment-expands-event-size-to-1mb": { + "text": "CloudTrail Lake event enrichment allows adding up to 50 resource tag keys and 50 IAM global condition keys to events (in the `eventContext` field), automatically expanding maximum event size from 256 KB to 1 MB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-updatehtml.md", + "source_url": "", + "source_hash": "908eb0a38af3ef78", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-event-data-stores-immutable": { + "text": "CloudTrail Lake event data stores are immutable collections of events filtered by advanced event selectors.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-conceptshtml.md", + "source_url": "", + "source_hash": "e141963ee668f026", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-event-delivery-latency-5-minutes": { + "text": "CloudTrail Lake average event delivery latency is approximately 5 minutes from the API call, but delivery timing is not guaranteed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lakehtml.md", + "source_url": "", + "source_hash": "998a1b79e8c710ff", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-eventcategory-discriminator-values": { + "text": "CloudTrail Lake event categories distinguish schema types: Management/Data for CloudTrail events, `Insight` for Insights, `ConfigurationItem` for Config items, `Evidence` for Audit Manager, and `ActivityAuditLog` for non-AWS events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-supported-event-schemashtml.md", + "source_url": "", + "source_hash": "0a6ba3bd3ca5f59d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-events-immutably-stored": { + "text": "Events stored in CloudTrail Lake are immutably stored, supporting audit and compliance use cases.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-partner-onboarding-cloudtrail-lake-partner-onboardinghtml.md", + "source_url": "", + "source_hash": "91e6276bf7228816", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-eventtime-reduces-query-cost": { + "text": "Including `eventTime` constraints in CloudTrail Lake queries directly reduces query costs by limiting the amount of compressed data scanned.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-manage-costshtml.md", + "source_url": "", + "source_hash": "af57d5880f93049e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-eventtime-scope-controls-cost": { + "text": "Constraining CloudTrail Lake queries with `eventTime` bounds is recommended to control query costs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-create-edit-queryhtml.md", + "source_url": "", + "source_hash": "7cc1c9bfd31c27c7", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-extendable-retention-max-3653-days": { + "text": "CloudTrail Lake EXTENDABLE_RETENTION_PRICING supports retention up to 3653 days and is recommended when ingesting less than 25 TB/month.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-update-edshtml.md", + "source_url": "", + "source_hash": "f32ccf5d0bd004fb", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-external-events-putauditevents-api": { + "text": "External (non-AWS) events are ingested into CloudTrail Lake via the PutAuditEvents API, with two integration types: direct (partner calls API) and solution (app runs in your account).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lakehtml.md", + "source_url": "", + "source_hash": "998a1b79e8c710ff", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-external-events-via-putauditevents": { + "text": "External (non-AWS) events are ingested into CloudTrail Lake via the PutAuditEvents API through channels that target event data stores logging `eventCategory=\"ActivityAuditLog\"`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-conceptshtml.md", + "source_url": "", + "source_hash": "e141963ee668f026", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-external-integration-direct-vs-solution": { + "text": "CloudTrail Lake has two integration types for external events: direct (partner calls `PutAuditEvents` from outside your account) and solution (application runs in your AWS account and calls `PutAuditEvents` on your behalf).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-integrationhtml.md", + "source_url": "", + "source_hash": "8cd95935db6a6ae3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-federation-athena-requires-lakeformation-getdataaccess": { + "text": "Athena users querying federated CloudTrail Lake data must have the `lakeformation:GetDataAccess` permission (included in `AmazonAthenaFullAccess`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-federationhtml.md", + "source_url": "", + "source_hash": "0a17301cfdf29a21", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-federation-glue-lakeformation-athena": { + "text": "CloudTrail Lake federation enables Athena queries over event data stores by registering metadata in AWS Glue Data Catalog and AWS Lake Formation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-conceptshtml.md", + "source_url": "", + "source_hash": "e141963ee668f026", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-federation-managed-glue-database": { + "text": "CloudTrail Lake federation creates a managed AWS Glue database named `aws:cloudtrail` with a federated table named after the event data store ID; views cannot be created in this managed database.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-federationhtml.md", + "source_url": "", + "source_hash": "0a17301cfdf29a21", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-federation-must-disable-before-delete": { + "text": "A federated CloudTrail Lake event data store cannot be deleted until federation (and termination protection) are disabled first; disabling federation does not delete any CloudTrail Lake data.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-federationhtml.md", + "source_url": "", + "source_hash": "0a17301cfdf29a21", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-federation-no-cloudtrail-charges": { + "text": "CloudTrail Lake federation to Athena incurs no CloudTrail charges; only Athena query costs apply.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-federationhtml.md", + "source_url": "", + "source_hash": "0a17301cfdf29a21", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-federation-role-trust-lakeformation": { + "text": "The CloudTrail Lake federation IAM role trust policy must allow `lakeformation.amazonaws.com` to assume it via `sts:AssumeRole`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-federationhtml.md", + "source_url": "", + "source_hash": "0a17301cfdf29a21", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-federation-to-glue-athena": { + "text": "CloudTrail Lake event data stores can be federated to AWS Glue Data Catalog, enabling querying via Amazon Athena.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lakehtml.md", + "source_url": "", + "source_hash": "998a1b79e8c710ff", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-federation-uses-glue-athena": { + "text": "CloudTrail Lake query federation enables querying event data stores via Amazon Athena by registering metadata in AWS Glue Data Catalog; disabling federation does not delete CloudTrail Lake data.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-updatehtml.md", + "source_url": "", + "source_hash": "908eb0a38af3ef78", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-five-schema-types": { + "text": "CloudTrail Lake has five distinct event data store schema types: CloudTrail events, Insights events, AWS Config configuration items, AWS Audit Manager evidence, and non-AWS (partner/integration) events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-supported-event-schemashtml.md", + "source_url": "", + "source_hash": "0a6ba3bd3ca5f59d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-from-clause-uses-eds-id": { + "text": "CloudTrail Lake SQL FROM clause references the event data store ID (the ID portion of the EDS ARN), not a table name or full ARN.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-limitationshtml.md", + "source_url": "", + "source_hash": "2e8b126cfccf923c", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-highlights-dashboard-6-hour-updates": { + "text": "CloudTrail Lake Highlights dashboards auto-update every 6 hours and show the last 24 hours of data, surfacing anomalies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lakehtml.md", + "source_url": "", + "source_hash": "998a1b79e8c710ff", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-highlights-dashboard-every-6-hours": { + "text": "The CloudTrail Lake Highlights dashboard auto-updates every 6 hours and shows the last 24 hours of data, surfacing anomalies like abnormal cross-account access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-conceptshtml.md", + "source_url": "", + "source_hash": "e141963ee668f026", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-ingestion-uncompressed-queries-compressed": { + "text": "CloudTrail Lake charges for ingestion based on uncompressed data size, but charges for queries based on optimized and compressed (ORC) data scanned.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-manage-costshtml.md", + "source_url": "", + "source_hash": "af57d5880f93049e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-ingests-aws-config-items": { + "text": "AWS Config configuration items can be ingested into CloudTrail Lake event data stores for unified querying using `eventCategory: ConfigurationItem`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-create-edshtml.md", + "source_url": "", + "source_hash": "f5a315b62dd6ebd3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-insights-requires-two-event-data-stores": { + "text": "CloudTrail Lake Insights requires two separate event data stores: a source (logs management events) and a destination (receives Insights events with `eventCategory` set to `Insight`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-CLI-enablehtml.md", + "source_url": "", + "source_hash": "5ec6a740d4b50c75", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-integrations-ingest-external-events": { + "text": "CloudTrail Lake can ingest events from outside AWS (on-premises apps, SaaS, VMs, containers) via integration channels and the `PutAuditEvents` API from the `cloudtrail-data` service.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-event-data-store-integration-eventshtml.md", + "source_url": "", + "source_hash": "464f5baebc171a5d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-kms-decrypt-for-encrypted-eds": { + "text": "If CloudTrail Lake event data stores are KMS-encrypted, the KMS key policy must grant `kms:Decrypt` to the `cloudtrail.amazonaws.com` service principal for dashboards to function.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboardhtml.md", + "source_url": "", + "source_hash": "be14a24ef79791f6", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-kms-key-cannot-be-removed-or-changed": { + "text": "Once a KMS key is associated with a CloudTrail Lake event data store, it cannot be removed or changed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-event-data-store-integration-eventshtml.md", + "source_url": "", + "source_hash": "464f5baebc171a5d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-kms-key-cannot-change-or-remove": { + "text": "Once a customer-managed KMS key is associated with a CloudTrail Lake event data store, it cannot be removed or changed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lakehtml.md", + "source_url": "", + "source_hash": "998a1b79e8c710ff", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-kms-key-irreversible": { + "text": "Once a KMS key is associated with a CloudTrail Lake event data store, it cannot be removed or changed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-cloudtrailhtml.md", + "source_url": "", + "source_hash": "55e0b25834bc9232", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-kms-key-irrevocable": { + "text": "Once a KMS key is associated with a CloudTrail Lake event data store, it cannot be removed or changed; disabling or deleting the key prevents both logging and querying.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-API_UpdateEventDataStorehtml.md", + "source_url": "", + "source_hash": "43ed3e3cecc97a67", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-managed-dashboard-requires-eds-id-param": { + "text": "Managed dashboard refreshes require passing `$EventDataStoreId$` in query parameters; custom dashboard refreshes do not.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-cli-managehtml.md", + "source_url": "", + "source_hash": "0d442d36868d2310", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-managed-dashboards-not-modifiable": { + "text": "CloudTrail Lake managed dashboards cannot be modified (no adding, removing, or editing widgets) \u2014 they must be saved as custom dashboards for customization.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-managedhtml.md", + "source_url": "", + "source_hash": "7273991f0477618f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-managed-dashboards-read-only": { + "text": "CloudTrail Lake managed dashboards cannot be modified \u2014 they must be saved as a custom dashboard to edit widgets.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboardhtml.md", + "source_url": "", + "source_hash": "be14a24ef79791f6", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-max-5-advanced-event-selectors": { + "text": "CloudTrail Lake event data stores support up to 5 advanced event selectors with a maximum of 500 total condition values across all selectors.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-API_UpdateEventDataStorehtml.md", + "source_url": "", + "source_hash": "43ed3e3cecc97a67", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-max-retention-10-years": { + "text": "CloudTrail Lake event data stores support up to 3,653 days (~10 years) retention with one-year extendable pricing, or up to 2,557 days (~7 years) with seven-year pricing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-user-guidehtml.md", + "source_url": "", + "source_hash": "14c9e6ff5317a29b", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-metrics-namespace-aws-cloudtrail": { + "text": "CloudTrail Lake publishes metrics to CloudWatch under the `AWS/CloudTrail` namespace, including HourlyDataIngested (hourly), TotalDataRetained (nightly), TotalStorageBytes, TotalPaidStorageBytes, and HourlyEventsAnalyzed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-cloudwatch-metricshtml.md", + "source_url": "", + "source_hash": "677b33730bf85ce0", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-one-event-category-per-eds": { + "text": "Each CloudTrail Lake event data store holds only one event category (management events, data events, network activity events, Insights events, Config items, Audit Manager evidence, or external events).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lakehtml.md", + "source_url": "", + "source_hash": "998a1b79e8c710ff", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-operational-readiness-requires-upfront-planning": { + "text": "CloudTrail Lake demands careful upfront planning: KMS keys are irrevocable once set, pricing tier changes are one-way only (seven-year to one-year but not reverse), retention is based on eventTime not ingestion, and saved queries are browser-local \u2014 operational missteps in any of these are permanent or lossy.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-lake-pricing-change-one-way-only", + "cloudtrail-lake-retention-based-on-eventtime", + "cloudtrail-lake-saved-queries-browser-local", + "cloudtrail-eds-kms-key-irrevocable" + ], + "outlist": [], + "label": "Multiple one-way decisions and non-obvious defaults make Lake setup high-stakes" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "cloudtrail-lake-orc-columnar-format": { + "text": "CloudTrail Lake converts events from row-based JSON to Apache ORC columnar format for optimized storage and retrieval (not Parquet, not JSON at rest).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lakehtml.md", + "source_url": "", + "source_hash": "998a1b79e8c710ff", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-orc-format": { + "text": "CloudTrail Lake stores event data in Apache ORC columnar format for SQL-based querying.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-cloudtrailhtml.md", + "source_url": "", + "source_hash": "f806191a86ac2356", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-orc-format-not-json": { + "text": "CloudTrail Lake converts JSON events to Apache ORC columnar format for storage and fast retrieval; queries are charged by data scanned.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-user-guidehtml.md", + "source_url": "", + "source_hash": "14c9e6ff5317a29b", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-orc-format-sql-queries": { + "text": "CloudTrail Lake stores events in Apache ORC columnar format in immutable event data stores and supports SQL-based queries.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-monitoring-logging_cw_api_callshtml.md", + "source_url": "", + "source_hash": "e54a10d77fa3d415", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-orc-sql-queryable": { + "text": "CloudTrail Lake stores event data in Apache ORC columnar format and supports SQL queries with advanced event selectors.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-developerguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "91085e68a788a669", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-org-eds-defaults": { + "text": "Organization event data stores default to: MultiRegionEnabled=true, TerminationProtectionEnabled=true, RetentionPeriod=366, BillingMode=EXTENDABLE_RETENTION_PRICING.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-organizationshtml.md", + "source_url": "", + "source_hash": "f069e1e80fa28397", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-org-eds-management-only-actions": { + "text": "Only the management account can: convert between account-level and organization-level event data stores, enable Insights, copy trail events, view managed dashboards, and enable Highlights dashboards on organization event data stores.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-organizationshtml.md", + "source_url": "", + "source_hash": "f069e1e80fa28397", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-org-eds-members-cannot-see-or-query": { + "text": "Member accounts cannot see, modify, delete, or query organization event data stores by default in CloudTrail Lake.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-organizationshtml.md", + "source_url": "", + "source_hash": "f069e1e80fa28397", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-org-eds-requires-existing-kms-key": { + "text": "Organization event data stores in CloudTrail Lake must use an existing KMS key from the management account \u2014 a new key cannot be created during setup.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-event-data-store-integration-eventshtml.md", + "source_url": "", + "source_hash": "464f5baebc171a5d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-org-eds-resides-in-management-account": { + "text": "Organization event data stores in CloudTrail Lake always reside in the management account, even when created by a delegated administrator.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-organizationshtml.md", + "source_url": "", + "source_hash": "f069e1e80fa28397", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-partner-events-activity-audit-log": { + "text": "Partner events ingested into CloudTrail Lake use `eventCategory: ActivityAuditLog`, distinct from AWS management and data events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-partner-onboarding-cloudtrail-lake-partner-onboardinghtml.md", + "source_url": "", + "source_hash": "91e6276bf7228816", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-partner-two-integration-types": { + "text": "CloudTrail Lake partner integrations have two types: direct integration (partner calls `PutAuditEvents` from their own infrastructure) and solution integration (partner app runs inside the customer's AWS account).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-partner-onboarding-cloudtrail-lake-partner-onboardinghtml.md", + "source_url": "", + "source_hash": "91e6276bf7228816", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-pricing-change-one-way-only": { + "text": "CloudTrail Lake event data store pricing can be changed from seven-year to one-year extendable, but not the reverse \u2014 switching to seven-year requires stopping ingestion and creating a new event data store.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-updatehtml.md", + "source_url": "", + "source_hash": "908eb0a38af3ef78", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-provides-durable-queryable-audit-archive": { + "text": "CloudTrail Lake provides a durable SQL-queryable audit archive with up to 10-year retention and cost-free Athena federation via Glue Data Catalog integration.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-lake-max-retention-10-years", + "cloudtrail-lake-sql-dot-notation-nested-fields", + "cloudtrail-lake-federation-no-cloudtrail-charges" + ], + "outlist": [ + "cloudtrail-lake-operational-readiness-requires-upfront-planning" + ], + "label": "durable queryable archive is real but gated by irrevocable upfront KMS and pricing decisions that block reactive adoption" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "cloudtrail-lake-queries-billed-by-data-scanned": { + "text": "CloudTrail Lake queries are billed based on data scanned; using `eventTime` filters reduces costs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-insights-events-view-lakehtml.md", + "source_url": "", + "source_hash": "c383b09df6003af7", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-queries-charged-by-data-scanned": { + "text": "CloudTrail Lake queries are charged based on the amount of data scanned, not the number of queries; using eventTime filters reduces costs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-console-querieshtml.md", + "source_url": "", + "source_hash": "134978baecbd1e86", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-queries-use-trino-sql": { + "text": "CloudTrail Lake queries use Trino-compatible SQL SELECT statements, not standard MySQL or PostgreSQL syntax.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-conceptshtml.md", + "source_url": "", + "source_hash": "e141963ee668f026", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-query-async-three-step-workflow": { + "text": "CloudTrail Lake query workflow is asynchronous: `start-query` \u2192 `describe-query` (check status) \u2192 `get-query-results` (retrieve results).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-limitationshtml.md", + "source_url": "", + "source_hash": "2e8b126cfccf923c", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-query-engine-trino-sql": { + "text": "CloudTrail Lake queries use Trino-compatible SQL (not standard MySQL/PostgreSQL), supporting all valid Trino SELECT statements and functions including cross-event-data-store JOINs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lakehtml.md", + "source_url": "", + "source_hash": "998a1b79e8c710ff", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-query-generator-english-only": { + "text": "CloudTrail Lake natural language query generator only supports English-language prompts (3\u2013500 characters).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-query-generatorhtml.md", + "source_url": "", + "source_hash": "ccbeb90c912855e8", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-query-generator-free-generation": { + "text": "CloudTrail Lake query generation from natural language prompts is free; charges only apply when running the generated queries, based on compressed data scanned.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-query-generatorhtml.md", + "source_url": "", + "source_hash": "ccbeb90c912855e8", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-query-generator-opt-out-deny-action": { + "text": "Users can opt out of CloudTrail Lake query generation by denying the `cloudtrail:GenerateQuery` IAM action.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-query-generatorhtml.md", + "source_url": "", + "source_hash": "ccbeb90c912855e8", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-query-generator-seven-regions": { + "text": "CloudTrail Lake query generator is available in 7 regions: ap-south-1, ap-southeast-2, ap-northeast-1, ca-central-1, eu-west-2, us-east-1, us-west-2.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-query-generatorhtml.md", + "source_url": "", + "source_hash": "ccbeb90c912855e8", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-query-results-retained-7-days": { + "text": "CloudTrail Lake query results are viewable for up to 7 days and can be saved to S3.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lakehtml.md", + "source_url": "", + "source_hash": "998a1b79e8c710ff", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-query-select-only-trino-sql": { + "text": "CloudTrail Lake queries are read-only (SELECT only, no mutations) and use Trino-compatible SQL.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-limitationshtml.md", + "source_url": "", + "source_hash": "2e8b126cfccf923c", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-reduce-retention-deletes-immediately": { + "text": "Reducing a CloudTrail Lake event data store's retention period immediately removes events with `eventTime` older than the new retention period.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-API_UpdateEventDataStorehtml.md", + "source_url": "", + "source_hash": "43ed3e3cecc97a67", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-retention-based-on-event-time": { + "text": "CloudTrail Lake retention period is based on `eventTime`, not ingestion time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-conceptshtml.md", + "source_url": "", + "source_hash": "e141963ee668f026", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-retention-based-on-eventtime": { + "text": "CloudTrail Lake event data store retention is determined by the event's `eventTime` field, not ingestion time \u2014 events are removed when their `eventTime` exceeds the retention period.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-event-data-store-cloudtrailhtml.md", + "source_url": "", + "source_hash": "55e0b25834bc9232", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-retention-by-event-time-not-ingestion": { + "text": "CloudTrail Lake event data store retention is based on the event's `eventTime`, not when the event was ingested.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-event-data-store-integration-eventshtml.md", + "source_url": "", + "source_hash": "464f5baebc171a5d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-retention-limits-by-billing-mode": { + "text": "CloudTrail Lake retention limits differ by billing mode: 7\u20133,653 days (~10 years) for extendable retention pricing vs. 7\u20132,557 days (~7 years) for fixed retention pricing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-API_UpdateEventDataStorehtml.md", + "source_url": "", + "source_hash": "43ed3e3cecc97a67", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-retention-reduction-deletes-immediately": { + "text": "Reducing a CloudTrail Lake event data store's retention period immediately and irreversibly deletes events with eventTime older than the new retention period.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-cli-update-edshtml.md", + "source_url": "", + "source_hash": "f32ccf5d0bd004fb", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-saved-queries-browser-local": { + "text": "CloudTrail Lake saved queries are stored in the browser only (browser-local) \u2014 they do not persist across browsers or devices.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-create-edit-queryhtml.md", + "source_url": "", + "source_hash": "7cc1c9bfd31c27c7", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-search-sample-queries-iam-action": { + "text": "The `cloudtrail:SearchSampleQueries` IAM action is required for enhanced search functionality on the CloudTrail Lake sample queries page; it is included in the `AWSCloudTrail_FullAccess` managed policy.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-console-querieshtml.md", + "source_url": "", + "source_hash": "134978baecbd1e86", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-seven-to-one-year-in-place-not-reverse": { + "text": "CloudTrail Lake pricing can be changed from seven-year to one-year extendable in-place, but switching from one-year to seven-year requires stopping ingestion and creating a new event data store.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-manage-costshtml.md", + "source_url": "", + "source_hash": "af57d5880f93049e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-sql-dot-notation-nested-fields": { + "text": "CloudTrail Lake uses SQL syntax with dot-notation for nested fields (e.g., `userIdentity.arn`) and queries run against event data stores identified by their ARN-derived ID.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-create-edit-queryhtml.md", + "source_url": "", + "source_hash": "7cc1c9bfd31c27c7", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-sql-queries-additional-charges": { + "text": "CloudTrail Lake provides SQL-based querying of events and incurs separate charges beyond standard CloudTrail pricing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-aws-service-specific-topicshtml.md", + "source_url": "", + "source_hash": "8e9318f9a943e9aa", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-stop-ingestion-cloudtrail-config-only": { + "text": "Stop/Start ingestion is only available for event data stores containing CloudTrail events (management, data, network activity) or AWS Config configuration items \u2014 not for integration event data stores.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-eds-stop-ingestionhtml.md", + "source_url": "", + "source_hash": "caccad37f8b28b0e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-stop-ingestion-queries-still-work": { + "text": "Stopping ingestion on a CloudTrail Lake event data store (state `STOPPED_INGESTION`) does not affect read access \u2014 queries continue to work on existing events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-query-eds-stop-ingestionhtml.md", + "source_url": "", + "source_hash": "caccad37f8b28b0e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-storage-free-first-366-days": { + "text": "Under CloudTrail Lake one-year extendable retention pricing, storage for the first 366 days is included at no extra cost with ingestion pricing; storage beyond 366 days is pay-as-you-go.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-cloudwatch-metricshtml.md", + "source_url": "", + "source_hash": "677b33730bf85ce0", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-supported-31-regions-including-govcloud": { + "text": "CloudTrail Lake is available in 31 AWS regions including both GovCloud (US) regions, but China regions are not supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-supported-regionshtml.md", + "source_url": "", + "source_hash": "07d1c3185fee65ec", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-termination-protection-before-delete": { + "text": "Termination protection must be disabled on a CloudTrail Lake dashboard before it can be deleted; it applies to both custom and Highlights dashboards.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboard-termination-protectionhtml.md", + "source_url": "", + "source_hash": "7283668d3d4aaa36", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-termination-protection-default-on": { + "text": "Termination protection is enabled by default on CloudTrail Lake event data stores and must be explicitly disabled before deletion.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-conceptshtml.md", + "source_url": "", + "source_hash": "e141963ee668f026", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-termination-protection-on-by-default": { + "text": "CloudTrail Lake event data store termination protection is enabled by default.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-API_UpdateEventDataStorehtml.md", + "source_url": "", + "source_hash": "43ed3e3cecc97a67", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-three-dashboard-types": { + "text": "CloudTrail Lake has three dashboard types: managed (14 pre-built, read-only), custom (up to 10 widgets, optional scheduled refresh), and Highlights (auto-updated every 6 hours, surfaces anomalies).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-lake-dashboardhtml.md", + "source_url": "", + "source_hash": "be14a24ef79791f6", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-three-resource-types-support-resource-policies": { + "text": "Three CloudTrail Lake resource types support resource-based policies: channels, event data stores, and dashboards.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-security_iam_resource-based-policy-exampleshtml.md", + "source_url": "", + "source_hash": "8e62421969847824", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-two-pricing-options": { + "text": "CloudTrail Lake offers two pricing options: one-year extendable retention (default, up to 3,653 days/~10 years, storage included first 366 days) and seven-year fixed retention (up to 2,557 days/~7 years, storage included at no additional cost).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-manage-costshtml.md", + "source_url": "", + "source_hash": "af57d5880f93049e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-two-pricing-tiers": { + "text": "CloudTrail Lake has two pricing options: one-year extendable retention (max ~10 years, recommended for <25 TB/month) and seven-year retention (max ~7 years, recommended for >25 TB/month).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-event-data-store-integration-eventshtml.md", + "source_url": "", + "source_hash": "464f5baebc171a5d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lake-uncompressed-10x-s3-gzip": { + "text": "Uncompressed CloudTrail trail data is approximately 10x the S3 gzip-compressed size, which is critical for cost estimation when copying trail events to Lake.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-lake-manage-costshtml.md", + "source_url": "", + "source_hash": "af57d5880f93049e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-limit-5-trails-per-region": { + "text": "CloudTrail has a limit of 5 trails per AWS Region; a multi-Region trail counts as one trail in each Region it covers.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-create-multiple-trailshtml.md", + "source_url": "", + "source_hash": "4cc0dd08578b64b3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-log-delivery-approx-5-minutes": { + "text": "CloudTrail delivers log files within approximately 5 minutes on average, not in real-time, and delivery time is not guaranteed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-working-with-log-fileshtml.md", + "source_url": "", + "source_hash": "138403e9a87417db", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-log-delivery-within-15-minutes": { + "text": "CloudTrail typically delivers log files to S3 within 15 minutes of API activity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-AuroraUserGuide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "7c2abd4270e2c9ad", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-log-entry-captures-identity-time-ip-params-response": { + "text": "Each CloudTrail log entry captures caller identity, call start time, source IP address, request parameters, and response elements.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-Welcomehtml.md", + "source_url": "", + "source_hash": "292f10b11c327750", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-log-files-not-ordered": { + "text": "CloudTrail log files are not ordered \u2014 they do not form a sequential stack trace of events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/application-discovery-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "5baea18c318177e3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-log-files-published-every-5-minutes": { + "text": "CloudTrail publishes log files to S3 approximately every 5 minutes (not guaranteed per SLA).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-how-cloudtrail-workshtml.md", + "source_url": "", + "source_hash": "bfbd92acfd20dc5c", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-log-files-unordered": { + "text": "CloudTrail log files are not ordered \u2014 they are not a sequential stack trace.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/ARG-latest-userguide-security_logging-monitoringhtml.md", + "source_url": "", + "source_hash": "d1b19303205f1541", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-log-group-name-max-512-chars": { + "text": "CloudWatch log group names for CloudTrail must be unique per Region per account, with a maximum length of 512 characters and allowed characters `a-z, A-Z, 0-9, _ - / . #`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudwatch-log-group-log-stream-naming-for-cloudt.md", + "source_url": "", + "source_hash": "f9661d4eb366f832", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-log-stream-naming-format": { + "text": "CloudTrail CloudWatch log streams are automatically named `{account_ID}_CloudTrail_{region}`, with a numeric suffix appended for high-volume trails.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudwatch-log-group-log-stream-naming-for-cloudt.md", + "source_url": "", + "source_hash": "f9661d4eb366f832", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-logs-all-cfn-api-calls-automatically": { + "text": "CloudTrail logs all CloudFormation API calls automatically with no additional configuration required; the eventSource is `cloudformation.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-cfn-api-logging-cloudtrailhtml.md", + "source_url": "", + "source_hash": "89241f85d29309a2", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-logs-delivered-to-s3": { + "text": "CloudTrail records AWS API calls and delivers log files to Amazon S3 as its primary storage target.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-Welcomehtml.md", + "source_url": "", + "source_hash": "292f10b11c327750", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-logs-itself": { + "text": "CloudTrail logs its own API calls \u2014 all CloudTrail API operations are recorded by CloudTrail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-aws-service-specific-topicshtml.md", + "source_url": "", + "source_hash": "8e9318f9a943e9aa", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-logs-multi-account-multi-region-single-bucket": { + "text": "CloudTrail logs can be aggregated from multiple AWS Regions and multiple accounts into a single S3 bucket.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awssupport-latest-user-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "902e919fbb4d9a4f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-logs-request-params-not-responses": { + "text": "CloudTrail logs capture request parameters but not response data for Account Management API calls (`responseElements: null` for read operations).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/accounts-latest-reference-monitoring-cloudtrailhtml.md", + "source_url": "", + "source_hash": "78656e271d790a49", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lookup-events-90-days-management-only": { + "text": "The `lookup-events` CLI command only accesses management events from the last 90 days; older events require CloudTrail Lake or S3 log archives.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-events-clihtml.md", + "source_url": "", + "source_hash": "e0093f65dbaf1e89", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lookup-events-rate-limit-2-per-second": { + "text": "CloudTrail `lookup-events` requests are rate-limited to 2 per second, per account, per Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-events-clihtml.md", + "source_url": "", + "source_hash": "e0093f65dbaf1e89", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lookup-events-single-attribute-filter": { + "text": "Only one AttributeKey/AttributeValue pair can be specified per `lookup-events` call; valid keys are AccessKeyId, EventId, EventName, EventSource, ReadOnly, ResourceName, ResourceType, and Username.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-view-cloudtrail-events-clihtml.md", + "source_url": "", + "source_hash": "e0093f65dbaf1e89", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lookupevents-90-day-limit": { + "text": "`LookupEvents` API retrieves management events or CloudTrail Insights events within a single Region, limited to the last 90 days.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-API_LookupEventshtml.md", + "source_url": "", + "source_hash": "e5a121ae01c9ffb9", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lookupevents-insight-requires-explicit-category": { + "text": "To retrieve Insights events via `LookupEvents`, `EventCategory` must be explicitly set to `\"insight\"`; otherwise only management events are returned.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-API_LookupEventshtml.md", + "source_url": "", + "source_hash": "e5a121ae01c9ffb9", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lookupevents-max-50-results-per-page": { + "text": "`LookupEvents` returns a default and maximum of 50 results per page; pagination requires `NextToken`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-API_LookupEventshtml.md", + "source_url": "", + "source_hash": "e5a121ae01c9ffb9", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lookupevents-no-data-events": { + "text": "`LookupEvents` does not return data events \u2014 it only supports management events and Insights events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-API_LookupEventshtml.md", + "source_url": "", + "source_hash": "e5a121ae01c9ffb9", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lookupevents-one-attribute-per-request": { + "text": "`LookupEvents` accepts only one lookup attribute per request \u2014 multiple filters cannot be combined in a single call.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-API_LookupEventshtml.md", + "source_url": "", + "source_hash": "e5a121ae01c9ffb9", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-lookupevents-rate-limit-2-per-second": { + "text": "`LookupEvents` has a rate limit of 2 requests per second, per account, per Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-API_LookupEventshtml.md", + "source_url": "", + "source_hash": "e5a121ae01c9ffb9", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-management-account-owns-org-resources": { + "text": "The management account always owns all CloudTrail organization resources (trails, event data stores) regardless of which delegated administrator created them.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-delegated-administratorhtml.md", + "source_url": "", + "source_hash": "1de003ff27e5a875", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-management-events-default-data-events-not": { + "text": "CloudTrail logs management events (control plane) by default; data events (data plane) are NOT logged by default and require explicit configuration via advanced event selectors, incurring additional charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazonq-latest-business-use-dg-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "55769309e0f1dc36", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-masks-sensitive-fields": { + "text": "CloudTrail automatically redacts sensitive fields (e.g., `masterUserPassword` appears as `\"****\"`) in log entries.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-AuroraUserGuide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "7c2abd4270e2c9ad", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-max-3-delegated-admins": { + "text": "A maximum of 3 CloudTrail delegated administrators can be registered per AWS Organization.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-delegated-administratorhtml.md", + "source_url": "", + "source_hash": "1de003ff27e5a875", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-max-50-tags-per-resource": { + "text": "CloudTrail resources (trails, event data stores, dashboards, channels) support a maximum of 50 tags per resource", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-add-tagshtml.md", + "source_url": "", + "source_hash": "f057aa406f23ab0e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-mfa-status-in-session-context": { + "text": "MFA authentication status is recorded in CloudTrail logs at `sessionContext.attributes.mfaAuthenticated` (true/false).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-cloudtrail-integrationhtml.md", + "source_url": "", + "source_hash": "cb7bc3bfff11f21a", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-misconfigured-trail-30-day-redelivery": { + "text": "CloudTrail attempts redelivery for 30 days if a trail's S3 bucket is unreachable, incurring standard charges; the trail must be deleted to stop charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-and-update-a-trailhtml.md", + "source_url": "", + "source_hash": "2ed0970dc22963d5", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-misconfigured-trail-retries-30-days-incurs-charges": { + "text": "A misconfigured CloudTrail trail (e.g., unreachable S3 bucket) retries delivery for 30 days and still incurs charges; the trail must be deleted to stop costs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-working-with-log-fileshtml.md", + "source_url": "", + "source_hash": "138403e9a87417db", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-misconfigured-trail-retries-30-days-with-charges": { + "text": "A misconfigured CloudTrail trail retries log delivery for 30 days and still incurs charges; the trail must be deleted to stop billing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-how-cloudtrail-workshtml.md", + "source_url": "", + "source_hash": "bfbd92acfd20dc5c", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-multi-region-tags-from-home-region": { + "text": "Multi-region CloudTrail trails and event data stores can only be tagged from the Region where they were created (home Region)", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-add-tagshtml.md", + "source_url": "", + "source_hash": "f057aa406f23ab0e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-multi-region-trail-modify-home-region-only": { + "text": "Multi-Region CloudTrail trails can only be modified in their home Region (the Region where they were created), though they are visible in all enabled Regions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-multi-region-trailshtml.md", + "source_url": "", + "source_hash": "1c5bda036ca8942d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-multi-trail-strategy-constrained-by-limits-and-costs": { + "text": "Multi-trail audit architectures (separate trails for security, compliance, and operations) face both a hard quota (5 trails per region) and incremental costs (only first management event copy is free), forcing organizations to choose between audit separation and cost/quota efficiency.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-limit-5-trails-per-region", + "cloudtrail-additional-management-event-copies-cost" + ], + "outlist": [], + "label": "5-trail hard cap + duplicate management event charges = architectural tradeoff between audit granularity and cost" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "cloudtrail-network-activity-events-vpc-endpoints": { + "text": "CloudTrail network activity events record API calls made through VPC endpoints from private VPCs, filterable by eventName, errorCode (VpceAccessDenied), and vpcEndpointId.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-a-trail-using-the-console-first.md", + "source_url": "", + "source_hash": "7f20607408e6098d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-network-events-no-s3-multi-region-access-points": { + "text": "Amazon S3 Multi-Region Access Points are not supported for CloudTrail network activity events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-logging-network-events-with-cloudtrailhtml.md", + "source_url": "", + "source_hash": "b2bbf66d7b5ba26e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-network-events-not-default-extra-charge": { + "text": "CloudTrail network activity events are not logged by default and incur additional charges beyond standard CloudTrail pricing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-logging-network-events-with-cloudtrailhtml.md", + "source_url": "", + "source_hash": "b2bbf66d7b5ba26e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-network-events-only-vpceaccessdenied-error": { + "text": "The only supported `errorCode` filter for CloudTrail network activity events is `VpceAccessDenied`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-logging-network-events-with-cloudtrailhtml.md", + "source_url": "", + "source_hash": "b2bbf66d7b5ba26e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-network-events-require-advanced-selectors": { + "text": "CloudTrail network activity events require advanced event selectors \u2014 basic event selectors cannot log them; each event source needs its own separate field selector.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-logging-network-events-with-cloudtrailhtml.md", + "source_url": "", + "source_hash": "b2bbf66d7b5ba26e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-no-logs-for-vpc-endpoint-denied-requests": { + "text": "CloudTrail does not deliver log entries for S3 requests denied by a VPC endpoint policy.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-cloudtrail-logginghtml.md", + "source_url": "", + "source_hash": "046c6aef6c86dc4d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-no-service-specific-condition-keys": { + "text": "CloudTrail does not have service-specific context keys for use in IAM policy Condition elements.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-security_iam_id-based-policy-exampleshtml.md", + "source_url": "", + "source_hash": "0eb0fda6dd15bd17", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-oidc-verification-method-logged": { + "text": "CloudTrail logs the OIDC provider verification method in `additionalEventData.identityProviderConnectionVerificationMethod` \u2014 value is either `IAMTrustStore` or `Thumbprint`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-cloudtrail-integrationhtml.md", + "source_url": "", + "source_hash": "cb7bc3bfff11f21a", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-one-free-copy-management-events-to-s3": { + "text": "One copy of ongoing management events is delivered to S3 at no CloudTrail charge (S3 storage charges still apply).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-how-cloudtrail-workshtml.md", + "source_url": "", + "source_hash": "bfbd92acfd20dc5c", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-opt-in-region-auto-replicates-trails": { + "text": "When an opt-in Region is enabled, CloudTrail automatically creates copies of existing multi-Region trails there; when disabled, it continues attempting to deliver events until trails are deleted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-multi-region-trailshtml.md", + "source_url": "", + "source_hash": "1c5bda036ca8942d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-org-eds-policy-auto-managed": { + "text": "Organization event data store resource-based policies are automatically managed by CloudTrail based on AWS Organizations delegated administrator settings and auto-updated on organization changes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-security_iam_resource-based-policy-exampleshtml.md", + "source_url": "", + "source_hash": "8e62421969847824", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-org-governance-delegation-incomplete": { + "text": "CloudTrail organization trails support delegated administrator management but trail-to-Lake event copying requires the management account \u2014 governance delegation breaks at the analytics boundary, forcing the management account back into the operational path for long-term audit storage", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-org-trail-requires-management-or-delegated", + "cloudtrail-copy-trail-management-account-only-for-org" + ], + "outlist": [], + "label": "Delegated admin can manage trails but not copy events to Lake \u2014 delegation is incomplete at exactly the point where compliance retention matters most" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "cloudtrail-org-trail-created-despite-validation-failures": { + "text": "Organization trail copies are created in member accounts even if resource validation fails (S3 policy, SNS policy, CloudWatch Logs, KMS permissions).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-creating-trail-organizationhtml.md", + "source_url": "", + "source_hash": "1fd446ea232ea630", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-org-trail-cwl-console-management-account-only": { + "text": "Organization trail CloudWatch Logs configuration via the console is restricted to the management account; delegated administrators must use the AWS CLI or CreateTrail/UpdateTrail API.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-send-cloudtrail-events-to-cloudwatch-logshtml.md", + "source_url": "", + "source_hash": "a8a95276c07618d8", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-org-trail-log-stream-org-id-prefix": { + "text": "Organization trail CloudWatch log stream resource ARNs use the `o-_*` prefix pattern, requiring separate resource entries in the IAM policy alongside the standard account-based entries.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-required-policy-for-cloudwatch-logshtm.md", + "source_url": "", + "source_hash": "4eb795cdfc3550a9", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-org-trail-management-account-or-delegated-admin-only": { + "text": "Only the management account or a delegated administrator can create, modify, or delete organization trails; member accounts have read-only visibility of trail copies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-creating-trail-organizationhtml.md", + "source_url": "", + "source_hash": "1fd446ea232ea630", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-org-trail-management-or-delegated-admin": { + "text": "Only the management account or a delegated administrator can create organization trails in CloudTrail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-and-update-a-trailhtml.md", + "source_url": "", + "source_hash": "2ed0970dc22963d5", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-org-trail-requires-management-or-delegated": { + "text": "CloudTrail organization trails require the caller to be the management account or a delegated administrator.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-create-trailhtml.md", + "source_url": "", + "source_hash": "f1f7b2cfc748b357", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-org-trail-service-linked-role-auto-managed": { + "text": "Organization trails automatically create a service-linked role `AWSServiceRoleForCloudTrail` in member accounts; the role is removed if the account leaves the organization.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-creating-trail-organizationhtml.md", + "source_url": "", + "source_hash": "1fd446ea232ea630", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-organizational-audit-coverage-sufficient": { + "text": "CloudTrail organizational audit achieves comprehensive cross-account visibility when multi-region awareness addresses the doubly-scoped (per-account AND per-region) event history limitation through combinatorial queries.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-cross-account-audit-requires-multi-region-awareness", + "cloudtrail-event-history-doubly-scoped-per-account-and-region" + ], + "outlist": [ + "cloudtrail-org-governance-delegation-incomplete" + ], + "label": "Cross-account audit coverage requires multi-region awareness and combinatorial scoping, but governance delegation is structurally incomplete (trail-to-Lake copying requires management account, not delegated admin)" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "cloudtrail-provides-actionable-cross-service-audit-trail": { + "text": "CloudTrail provides an actionable cross-service audit trail when all four event types are configured and data events are routed through EventBridge for real-time response.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-four-event-types", + "cloudtrail-data-events-available-in-eventbridge" + ], + "outlist": [ + "cloudtrail-audit-blind-spots-exist-for-automated-operations" + ], + "label": "four event types plus EventBridge integration cover most operations, but automated/system-initiated operations (TTL deletes, noop writes) create inherent blind spots that no configuration can close" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "cloudtrail-removed-member-logs-persist-in-s3": { + "text": "When an account is removed from an organization, CloudTrail logging stops and the trail/SLR are deleted, but existing log files remain in S3.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-creating-trail-organizationhtml.md", + "source_url": "", + "source_hash": "1fd446ea232ea630", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-resource-policy-max-8192-chars": { + "text": "CloudTrail resource-based policies have a maximum size of 8,192 characters.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-API_PutResourcePolicyhtml.md", + "source_url": "", + "source_hash": "8b0d36667cc76dd6", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-resource-policy-three-resource-types": { + "text": "CloudTrail resource-based policies can be attached to event data stores, dashboards, and channels \u2014 not trails.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-APIReference-API_PutResourcePolicyhtml.md", + "source_url": "", + "source_hash": "8b0d36667cc76dd6", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-root-signin-always-us-east-1": { + "text": "Root user ConsoleLogin events are always logged in us-east-1 regardless of the user's location.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-event-reference-aws-console-sign-in-ev.md", + "source_url": "", + "source_hash": "e0db43e03ee3996f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-security-lake-requires-multi-region-org-trail": { + "text": "Security Lake requires a multi-Region organization trail collecting both read and write management events to ingest CloudTrail management events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-aws-service-specific-topicshtml.md", + "source_url": "", + "source_hash": "8e9318f9a943e9aa", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-sensitive-data-masked-in-logs": { + "text": "CloudTrail masks sensitive data (user utterances, conversation tokens, response bodies) with `***` in log entries for services like Amazon Q.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazonq-latest-aws-builder-use-ug-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "69f6e96774cfcd89", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-sensitive-data-redaction-inconsistent-across-services": { + "text": "Sensitive data handling in CloudTrail logs varies by service \u2014 some redact fields (B2BI, Clean Rooms), some never log values (CFN parameters) \u2014 with no platform-wide redaction policy.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "b2bi-cloudtrail-redacts-sensitive-fields", + "clean-rooms-sql-redacted-in-cloudtrail", + "cfn-cloudtrail-parameter-values-never-logged" + ], + "outlist": [], + "label": "Security teams cannot assume uniform data protection across CloudTrail and must audit per-service redaction behavior" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "cloudtrail-shared-event-id-cross-account": { + "text": "Cross-account AssumeRole events are linked across both accounts' CloudTrail logs using a `sharedEventID` field.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-cloudtrail-integrationhtml.md", + "source_url": "", + "source_hash": "cb7bc3bfff11f21a", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-signin-event-source-signin-amazonaws": { + "text": "Console sign-in events use event source `signin.amazonaws.com` with event name `ConsoleLogin` and event type `AwsConsoleSignIn`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-event-reference-aws-console-sign-in-ev.md", + "source_url": "", + "source_hash": "e0db43e03ee3996f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-signin-events-are-management-events": { + "text": "Console sign-in events are management events (`managementEvent: true`, `eventCategory: \"Management\"`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-event-reference-aws-console-sign-in-ev.md", + "source_url": "", + "source_hash": "e0db43e03ee3996f", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-sns-notification-per-log-file-not-event": { + "text": "CloudTrail SNS notifications are sent per log file delivery, not per individual event.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-a-trail-using-the-console-first.md", + "source_url": "", + "source_hash": "7f20607408e6098d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-sse-kms-enabled-by-default": { + "text": "CloudTrail trail log file encryption uses SSE-KMS by default (not SSE-S3) when creating a trail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-a-trail-using-the-console-first.md", + "source_url": "", + "source_hash": "7f20607408e6098d", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-start-logging-required-after-creation": { + "text": "A CloudTrail trail must have `start-logging` called to begin capturing events after creation via CLI.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-and-update-a-trail-by-using-the.md", + "source_url": "", + "source_hash": "4c4991da36188723", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-tag-key-max-128-value-max-256": { + "text": "CloudTrail tag keys have a maximum length of 128 Unicode characters and tag values have a maximum of 256 Unicode characters", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-add-tagshtml.md", + "source_url": "", + "source_hash": "f057aa406f23ab0e", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-trail-all-regions-by-default": { + "text": "A CloudTrail trail created via the console applies to all AWS Regions by default.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/artifact-latest-ug-cloudtrail-logginghtml.md", + "source_url": "", + "source_hash": "ddbff822afbf6685", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-trail-delivers-events-to-s3": { + "text": "A CloudTrail trail delivers API activity events as log files to a specified S3 bucket, extending retention beyond the default 90-day Event History.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-create-and-update-a-trailhtml.md", + "source_url": "", + "source_hash": "2ed0970dc22963d5", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-trail-log-validation-disabled-by-default": { + "text": "CloudTrail log file integrity validation is disabled by default and must be explicitly enabled with `--enable-log-file-validation`; disabling it breaks the digest chain after one hour.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-create-trailhtml.md", + "source_url": "", + "source_hash": "f1f7b2cfc748b357", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-trail-required-beyond-90-days": { + "text": "A CloudTrail trail is required to retain event records beyond 90 days; trails deliver log files to S3 (first copy of management events is free from CloudTrail, S3 storage charges apply).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/autoscaling-application-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "dea3db58686e8ec9", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-trail-required-for-continuous-s3-delivery": { + "text": "A CloudTrail trail is required for continuous, long-term delivery of events to S3; without one, only recent events are viewable via Event History.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/appstream2-latest-developerguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "c23ffaa088896c98", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-trail-required-for-persistent-logging": { + "text": "Without creating a CloudTrail trail, only recent events are viewable in Event History; a trail must be created for persistent log delivery to S3.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awssupport-latest-user-logging-using-cloudtrail-for-aws-trusted-advisorhtml.md", + "source_url": "", + "source_hash": "d8c31b893e849929", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-trail-required-for-persistent-logs": { + "text": "Without a configured trail, CloudTrail only provides access to recent events via Event History (90-day retention); a trail must be configured for persistent long-term delivery of events to S3.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/acm-latest-userguide-cloudtrailhtml.md", + "source_url": "", + "source_hash": "f214505ce1a3c98c", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-trail-requires-start-logging": { + "text": "A CloudTrail trail only delivers logs after `start-logging` is called \u2014 creating a trail does not automatically start log delivery.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-create-trailhtml.md", + "source_url": "", + "source_hash": "f1f7b2cfc748b357", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-trail-single-region-by-default": { + "text": "A CloudTrail trail is single-region by default; `--is-multi-region-trail` must be explicitly set for all-region logging.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-create-trailhtml.md", + "source_url": "", + "source_hash": "f1f7b2cfc748b357", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-trails-all-regions-by-default": { + "text": "CloudTrail trails created in the console apply to all AWS Regions by default.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/chime-latest-ag-cloudtrailhtml.md", + "source_url": "", + "source_hash": "b3d7e1385dbed110", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-trails-cross-region-s3-delivery": { + "text": "CloudTrail trails can deliver log files to S3 buckets in a different Region from where the trail is created, and multiple trails can share the same S3 bucket.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-create-multiple-trailshtml.md", + "source_url": "", + "source_hash": "4cc0dd08578b64b3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-trails-default-all-regions-console": { + "text": "CloudTrail trails created via the AWS Console apply to all AWS Regions by default.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/braket-latest-developerguide-braket-ctlogshtml.md", + "source_url": "", + "source_hash": "860db5b485c244b5", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-trails-deliver-s3-cloudwatch-eventbridge": { + "text": "CloudTrail trails can deliver events simultaneously to S3, CloudWatch Logs, and EventBridge.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-user-guidehtml.md", + "source_url": "", + "source_hash": "14c9e6ff5317a29b", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-trails-survive-account-closure": { + "text": "CloudTrail trails can persist even after AWS account closure unless explicitly deleted beforehand.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/accounts-latest-reference-manage-acct-closinghtml.md", + "source_url": "", + "source_hash": "8adb6e2b5661a757", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-useridentity-identifies-credential-type": { + "text": "The CloudTrail `userIdentity` element reveals whether a request used root credentials, IAM user credentials, temporary role/federated credentials, or was made by another AWS service.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/ARG-latest-userguide-security_logging-monitoringhtml.md", + "source_url": "", + "source_hash": "d1b19303205f1541", + "date": "2026-03-12", + "metadata": {} + }, + "cloudtrail-vpc-api-logged-as-ec2-subset": { + "text": "Amazon VPC API calls are logged in CloudTrail as a subset of EC2 API calls (supported since 11/13/2013).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awscloudtrail-latest-userguide-cloudtrail-aws-service-specific-topicshtml.md", + "source_url": "", + "source_hash": "8e9318f9a943e9aa", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-agent-required-for-os-level-metrics": { + "text": "The CloudWatch agent is required for OS-level metrics (memory, disk usage) and log collection; default EC2 monitoring provides only hypervisor-level metrics (CPU, network, disk I/O).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-monitoring.md", + "source_url": "", + "source_hash": "174f334ed7a457d7", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-agent-required-for-os-metrics": { + "text": "The CloudWatch Agent is required for detailed OS-level metrics (memory, disk, processes) on EC2 \u2014 these are not sent automatically.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-overview.md", + "source_url": "", + "source_hash": "1b77d5e99e566540", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-agent-supports-on-premises-servers": { + "text": "The CloudWatch agent can collect system-level metrics and logs from both EC2 instances and on-premises servers.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-monitoring.md", + "source_url": "", + "source_hash": "174f334ed7a457d7", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-alarm-actions-five-targets": { + "text": "CloudWatch metric alarms can trigger five types of actions: SNS notifications, EC2 actions (stop/terminate/reboot/recover), Auto Scaling policies, Systems Manager OpsItems/incidents, and CloudWatch Investigations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-alarms.md", + "source_url": "", + "source_hash": "a6308d64d7a39571", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-alarm-actions-on-state-change-only": { + "text": "CloudWatch alarms invoke actions only on state change, except Auto Scaling actions which continue invoking once per minute while in the new state.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-alarms.md", + "source_url": "", + "source_hash": "a6308d64d7a39571", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-alarm-can-precede-custom-metric": { + "text": "A CloudWatch alarm can be created for a custom metric before the metric exists, provided all dimensions, namespace, and metric name are specified.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-alarms.md", + "source_url": "", + "source_hash": "a6308d64d7a39571", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-alarm-eval-period-max-7-days": { + "text": "CloudWatch alarm evaluation period maximum is 7 days (for period \u2265 1 hour) or 1 day (for shorter periods or Lambda data source).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-alarms.md", + "source_url": "", + "source_hash": "a6308d64d7a39571", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-alarm-history-30-days": { + "text": "CloudWatch alarm history is retained for 30 days.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-alarms.md", + "source_url": "", + "source_hash": "a6308d64d7a39571", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-alarm-missing-data-configurable": { + "text": "When resources stop sending metric data (e.g., unattached EBS volumes), CloudWatch alarms enter INSUFFICIENT_DATA state; behavior is configurable via missing data treatment settings.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-alarms.md", + "source_url": "", + "source_hash": "a6308d64d7a39571", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-alarm-no-action-validation": { + "text": "CloudWatch does not validate that alarm action targets (SNS topics, Auto Scaling groups) actually exist; nonexistent targets will silently fail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-alarms.md", + "source_url": "", + "source_hash": "a6308d64d7a39571", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-alarm-three-states": { + "text": "A CloudWatch alarm has exactly three possible states: OK, ALARM, and INSUFFICIENT_DATA.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-alarms.md", + "source_url": "", + "source_hash": "a6308d64d7a39571", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-alarms-trigger-on-sustained-state-changes": { + "text": "CloudWatch alarms act only on sustained state changes, not momentary spikes \u2014 the threshold must be breached for the configured number of evaluation periods before an action triggers.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-monitoring.md", + "source_url": "", + "source_hash": "174f334ed7a457d7", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-application-signals-no-instrumentation": { + "text": "CloudWatch Application Signals provides automatic APM (latency, error rates, request rates) without manual instrumentation or code changes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-overview.md", + "source_url": "", + "source_hash": "1b77d5e99e566540", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-composite-alarm-no-ec2-autoscaling-actions": { + "text": "CloudWatch composite alarms cannot perform EC2 or Auto Scaling actions; they support only SNS notifications, OpsItems, incidents, and investigations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-alarms.md", + "source_url": "", + "source_hash": "a6308d64d7a39571", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-container-insights-ecs-eks-k8s": { + "text": "CloudWatch Container Insights works with ECS, EKS, and self-managed Kubernetes on EC2.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-overview.md", + "source_url": "", + "source_hash": "1b77d5e99e566540", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-cross-account-composite-alarms-not-supported": { + "text": "Cross-account composite alarms are not supported in CloudWatch; cross-account metric alarms are supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-alarms.md", + "source_url": "", + "source_hash": "a6308d64d7a39571", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-cross-account-math-no-anomaly-insight-quota": { + "text": "Cross-account CloudWatch math expression alarms do not support ANOMALY_DETECTION_BAND, INSIGHT_RULE, or SERVICE_QUOTA functions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-alarms.md", + "source_url": "", + "source_hash": "a6308d64d7a39571", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-cross-account-observability-central-monitoring": { + "text": "CloudWatch cross-account observability uses a central monitoring account with linked source accounts; can be automated via AWS Organizations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-overview.md", + "source_url": "", + "source_hash": "1b77d5e99e566540", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-custom-metrics-via-putmetricdata": { + "text": "Custom application metrics are published to CloudWatch via the PutMetricData API and are treated the same as AWS resource metrics.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-metrics.md", + "source_url": "", + "source_hash": "ddcb0ec903c3160b", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-dashboard-accountid-metric-overrides-widget": { + "text": "In CloudWatch dashboard JSON, the `accountId` parameter can be set at widget level or individual metric level, with metric-level overriding widget-level.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-monitoring-CloudWatch_Dashboardshtml.md", + "source_url": "", + "source_hash": "b131870acac56b75", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-dashboard-putdashboard-api": { + "text": "CloudWatch dashboards are created or modified programmatically using the `PutDashboard` API with a JSON-based dashboard body definition.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-monitoring-CloudWatch_Dashboardshtml.md", + "source_url": "", + "source_hash": "b131870acac56b75", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-dashboard-three-iam-permissions": { + "text": "CloudWatch dashboard access requires three specific IAM permissions: `GetDashboard`/`ListDashboards` (view), `PutDashboard` (create/modify), and `DeleteDashboards` (delete).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-monitoring-CloudWatch_Dashboardshtml.md", + "source_url": "", + "source_hash": "b131870acac56b75", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-dashboards-cross-account-cross-region": { + "text": "CloudWatch dashboards can be shared across accounts and Regions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-overview.md", + "source_url": "", + "source_hash": "1b77d5e99e566540", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-data-events-not-logged-by-default": { + "text": "CloudWatch data plane operations (GetMetricData, PutMetricData, GetMetricWidgetImage, GetMetricStatistics, ListMetrics) are CloudTrail data events not logged by default; enabling them incurs additional charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-monitoring-logging_cw_api_callshtml.md", + "source_url": "", + "source_hash": "e54a10d77fa3d415", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-internet-monitor-uses-aws-global-network-data": { + "text": "CloudWatch Internet Monitor analyzes internet performance using AWS global networking data and VPC flow logs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-overview.md", + "source_url": "", + "source_hash": "1b77d5e99e566540", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-log-outlier-detection": { + "text": "CloudWatch provides Log Outlier Detection to find unusual patterns in log events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-overview.md", + "source_url": "", + "source_hash": "1b77d5e99e566540", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-logs-1-active-export-task-limit": { + "text": "CloudWatch Logs allows only 1 active export task at a time \u2014 this limit is not adjustable.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-logs-cloudwatch_limits_cwlhtml.md", + "source_url": "", + "source_hash": "d2397a10619c0b67", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-logs-1-million-log-groups-per-account-region": { + "text": "CloudWatch Logs allows up to 1,000,000 log groups per account per region (adjustable).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-logs-cloudwatch_limits_cwlhtml.md", + "source_url": "", + "source_hash": "d2397a10619c0b67", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-logs-10-resource-policies-per-account-region": { + "text": "CloudWatch Logs allows a maximum of 10 resource policies per account per region \u2014 this limit is not adjustable.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-logs-cloudwatch_limits_cwlhtml.md", + "source_url": "", + "source_hash": "d2397a10619c0b67", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-logs-cloudtrail-management-events-only": { + "text": "CloudWatch Logs records only management events (not data events like PutLogEvents) in CloudTrail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-logs-logging_cw_api_calls_cwlhtml.md", + "source_url": "", + "source_hash": "7c6b3490f6447053", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-logs-data-protection-masks-sensitive-data": { + "text": "CloudWatch Logs data protection policies audit and mask sensitive data in logs using configurable data identifiers; data is masked by default when the policy is enabled.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-logs-WhatIsCloudWatchLogshtml.md", + "source_url": "", + "source_hash": "57a3cab704cf8ec3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-logs-default-retention-indefinite": { + "text": "CloudWatch Logs default retention is indefinite (never expires); retention is configurable from 1 day to 10 years per log group.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-logs-WhatIsCloudWatchLogshtml.md", + "source_url": "", + "source_hash": "57a3cab704cf8ec3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-logs-encrypted-in-transit-and-at-rest": { + "text": "CloudWatch Logs data is encrypted both in transit and at rest.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-logs-WhatIsCloudWatchLogshtml.md", + "source_url": "", + "source_hash": "57a3cab704cf8ec3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-logs-eventsource-logs-amazonaws-com": { + "text": "CloudWatch Logs standard API calls use `logs.amazonaws.com` as the CloudTrail eventSource; Query Generator console events use `monitoring.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-logs-logging_cw_api_calls_cwlhtml.md", + "source_url": "", + "source_hash": "7c6b3490f6447053", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-logs-insights-cross-account-multi-log-group-query": { + "text": "A single CloudWatch Logs Insights query in a monitoring account can query multiple log groups across multiple source accounts simultaneously.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-monitoring-CloudWatch_Dashboardshtml.md", + "source_url": "", + "source_hash": "b131870acac56b75", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-logs-insights-sql-ppl": { + "text": "CloudWatch Logs Insights supports SQL and PPL query languages in addition to its native syntax.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-overview.md", + "source_url": "", + "source_hash": "1b77d5e99e566540", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-logs-max-100-metric-filters-per-group": { + "text": "CloudWatch Logs allows a maximum of 100 metric filters per log group \u2014 this limit is not adjustable.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-logs-cloudwatch_limits_cwlhtml.md", + "source_url": "", + "source_hash": "d2397a10619c0b67", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-logs-max-2-subscription-filters-per-group": { + "text": "CloudWatch Logs allows a maximum of 2 subscription filters per log group \u2014 this limit is not adjustable.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-logs-cloudwatch_limits_cwlhtml.md", + "source_url": "", + "source_hash": "d2397a10619c0b67", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-logs-max-event-size-1mb": { + "text": "CloudWatch Logs maximum log event size is 1,024 KB (1 MB), and the PutLogEvents batch size limit is also 1 MB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-logs-cloudwatch_limits_cwlhtml.md", + "source_url": "", + "source_hash": "d2397a10619c0b67", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-logs-putlogevents-5000-tps-adjustable": { + "text": "CloudWatch Logs PutLogEvents has a default throttle limit of 5,000 TPS (adjustable) \u2014 the highest default API throttle limit for CloudWatch Logs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-logs-cloudwatch_limits_cwlhtml.md", + "source_url": "", + "source_hash": "d2397a10619c0b67", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-logs-two-classes-standard-infrequent-access": { + "text": "CloudWatch Logs has two log classes: Standard (full features, higher cost) and Infrequent Access (lower ingestion cost, subset of features).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-logs-WhatIsCloudWatchLogshtml.md", + "source_url": "", + "source_hash": "57a3cab704cf8ec3", + "date": "2026-03-12", + "metadata": {} + }, + "cloudwatch-many-aws-services-free-basic-metrics": { + "text": "Many AWS services (EC2, EBS, RDS, etc.) provide free basic CloudWatch metrics by default; detailed monitoring is available at additional cost.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-metrics.md", + "source_url": "", + "source_hash": "ddcb0ec903c3160b", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-metric-filters-extract-metrics-from-logs": { + "text": "CloudWatch metric filters extract numerical values from log data to generate CloudWatch metrics for alerting and dashboards.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-overview.md", + "source_url": "", + "source_hash": "1b77d5e99e566540", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-metric-retention-15-months": { + "text": "CloudWatch metric data is retained for 15 months.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-metrics.md", + "source_url": "", + "source_hash": "ddcb0ec903c3160b", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-metric-streams-continuous-export": { + "text": "CloudWatch Metric Streams provide continuous streaming of metrics to external destinations (e.g., S3, Datadog via Firehose).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-metrics.md", + "source_url": "", + "source_hash": "ddcb0ec903c3160b", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-metrics-insights-max-2-weeks": { + "text": "CloudWatch Metrics Insights queries support up to 2 weeks of historical data, not the full 15-month retention period.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-metrics.md", + "source_url": "", + "source_hash": "ddcb0ec903c3160b", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-network-flow-monitor-nhi": { + "text": "CloudWatch Network Flow Monitor uses lightweight agents on instances and produces a Network Health Indicator (NHI).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-overview.md", + "source_url": "", + "source_hash": "1b77d5e99e566540", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-network-synthetic-monitor-direct-connect": { + "text": "CloudWatch Network Synthetic Monitor is specifically for testing Direct Connect connectivity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-overview.md", + "source_url": "", + "source_hash": "1b77d5e99e566540", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-no-limit-alarms-per-account": { + "text": "There is no limit on the number of CloudWatch alarms per AWS account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-alarms.md", + "source_url": "", + "source_hash": "a6308d64d7a39571", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-set-alarm-state-testing-only": { + "text": "CloudWatch SetAlarmState is for testing only; the state change is temporary until the next evaluation cycle.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-alarms.md", + "source_url": "", + "source_hash": "a6308d64d7a39571", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-slo-error-budgets": { + "text": "CloudWatch supports defining Service Level Objectives (SLOs) with reliability targets, error budgets, and compliance monitoring over time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-overview.md", + "source_url": "", + "source_hash": "1b77d5e99e566540", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-solutions-catalog-prebuilt-configs": { + "text": "CloudWatch Solutions Catalog provides pre-built monitoring configurations for common workloads including JVM, NVIDIA GPU, Kafka, Tomcat, and NGINX.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-overview.md", + "source_url": "", + "source_hash": "1b77d5e99e566540", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-synthetics-vs-rum": { + "text": "CloudWatch Synthetics (canaries) proactively test endpoints with configurable scripts simulating user behavior; CloudWatch RUM gathers performance data from actual user sessions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-overview.md", + "source_url": "", + "source_hash": "1b77d5e99e566540", + "date": "2026-03-08", + "metadata": {} + }, + "cloudwatch-tag-based-alarms-metrics-insights": { + "text": "CloudWatch supports tag-based alarms using Metrics Insights queries with resource tags for context-aware monitoring.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-alarms.md", + "source_url": "", + "source_hash": "a6308d64d7a39571", + "date": "2026-03-08", + "metadata": {} + }, + "cognito-identity-pools-use-assume-role-with-web-identity": { + "text": "Amazon Cognito identity pools use the STS `AssumeRoleWithWebIdentity` API under the hood to acquire temporary IAM credentials for mobile/web app users.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-id_roles_providershtml.md", + "source_url": "", + "source_hash": "78747ec1b61bdd8f", + "date": "2026-03-12", + "metadata": {} + }, + "comprehensive-audit-requires-cost-proportional-to-coverage": { + "text": "Closing CloudTrail's default audit gaps (TTL deletions, data events, network events, long-term retention, Lake queries) requires incrementally adding paid features \u2014 observability completeness scales linearly with spend.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-event-history-90-day-default", + "cloudtrail-network-events-not-default-extra-charge", + "dynamodb-ttl-deletions-not-logged-cloudtrail", + "cloudtrail-lake-queries-charged-by-data-scanned", + "cloudtrail-data-events-over-150-resource-types" + ], + "outlist": [], + "label": "Spans cost + observability: each audit blind spot has a separate price tag with no \"enable everything\" bundle" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "consolidated-billing-combines-usage-for-volume-discounts": { + "text": "AWS Organizations consolidated billing combines usage across all member accounts for volume pricing discounts, RI discounts, and Savings Plans benefits at no additional fee.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awsaccountbilling-latest-aboutv2-billing-what-ishtml.md", + "source_url": "", + "source_hash": "24025f12de9df753", + "date": "2026-03-12", + "metadata": {} + }, + "cost-allocation-tags-24-hour-propagation": { + "text": "Cost allocation tags can take up to 24 hours to appear in the Billing and Cost Management console after activation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awsaccountbilling-latest-aboutv2-cost-alloc-tagshtml.md", + "source_url": "", + "source_hash": "a880ad0aebea6341", + "date": "2026-03-12", + "metadata": {} + }, + "cost-allocation-tags-management-account-only": { + "text": "Only the management account in an AWS Organization (or a standalone account) can manage cost allocation tags.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awsaccountbilling-latest-aboutv2-cost-alloc-tagshtml.md", + "source_url": "", + "source_hash": "a880ad0aebea6341", + "date": "2026-03-12", + "metadata": {} + }, + "cost-allocation-tags-two-types-both-require-activation": { + "text": "AWS cost allocation tags come in two types: AWS-generated (prefixed `aws:`) and user-defined (prefixed `user`), and both must be separately activated before appearing in cost reports.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awsaccountbilling-latest-aboutv2-cost-alloc-tagshtml.md", + "source_url": "", + "source_hash": "a880ad0aebea6341", + "date": "2026-03-12", + "metadata": {} + }, + "cost-anomaly-detection-automated-vs-budgets-threshold": { + "text": "AWS Cost Anomaly Detection provides automated alerting for unexpected cost spikes, distinct from AWS Budgets which uses user-defined thresholds.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awsaccountbilling-latest-aboutv2-billing-what-ishtml.md", + "source_url": "", + "source_hash": "24025f12de9df753", + "date": "2026-03-12", + "metadata": {} + }, + "cost-lock-in-and-dr-reset-form-inescapable-cycle": { + "text": "Creation-time cost lock-in is invisible during normal operations AND disaster recovery resets to the same suboptimal defaults, forming a closed loop where neither steady-state monitoring nor DR can surface or correct accumulated cost penalties \u2014 the escape hatch recreates the trap.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "creation-cost-lock-in-invisible-across-entire-lifecycle", + "dr-recovery-from-suboptimal-defaults-creates-doom-loop" + ], + "outlist": [], + "label": "The recovery path leads back to the same broken starting point, making the cycle closed and inescapable" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "cost-opacity-compounds-multiplicative-penalties-with-undetectable-defaults": { + "text": "DynamoDB cost penalties multiply across six independent dimensions AND the default-path catch-22 ensures organizations cannot detect they are paying them \u2014 cost opacity and detection impossibility are co-reinforcing", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-cost-multiplicative-and-structurally-unoptimizable", + "defaults-suboptimality-undetectable-catch-22" + ], + "outlist": [], + "label": "Depth-4 cost multiplication meets depth-4 detection impossibility \u2014 organizations bleed cost silently because the same defaults that create penalties hide them" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "cost-optimization-five-focus-areas": { + "text": "The Cost Optimization pillar has five focus areas: Practice Cloud Financial Management, Expenditure and usage awareness, Cost-effective resources, Manage demand and supply resources, and Optimize over time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-cost-optimization.md", + "source_url": "", + "source_hash": "18ae872b3f4f6613", + "date": "2026-03-08", + "metadata": {} + }, + "cost-optimization-not-minimizing-spend": { + "text": "Cost optimization does not mean minimizing spend at all costs \u2014 it means achieving the best price for the required outcome while meeting functional requirements.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-cost-optimization.md", + "source_url": "", + "source_hash": "18ae872b3f4f6613", + "date": "2026-03-08", + "metadata": {} + }, + "creation-cost-lock-in-invisible-across-entire-lifecycle": { + "text": "Creation-time misconfigurations permanently lock in unoptimizable cost penalties AND the lifecycle fragility that propagates them is structurally invisible \u2014 organizations cannot see, correct, or optimize the damage at any point in the resource lifecycle", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "creation-errors-lock-in-unoptimizable-cost-permanently", + "resource-lifecycle-fragility-structurally-invisible" + ], + "outlist": [], + "label": "Depth-5 cost lock-in meets depth-4 lifecycle invisibility \u2014 the cost damage is permanent AND the fragility path that sustains it is unobservable" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "creation-errors-lock-in-unoptimizable-cost-permanently": { + "text": "Creation-time misconfigurations permanently lock in cost penalties across all tiers and replica regions AND those penalties cannot be recovered through cost optimization because reserved capacity is structurally incompatible with the global/on-demand modes needed for resilience \u2014 the error is permanent and the cost model offers no escape hatch.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "creation-errors-permanently-lock-in-global-cost-penalties", + "dynamodb-cost-model-adversarial-to-resilience-best-practices" + ], + "outlist": [], + "label": "permanent cost penalties from creation errors compound with structural impossibility of cost optimization on resilience-mode tables" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "creation-errors-permanently-lock-in-global-cost-penalties": { + "text": "A single creation-time misconfiguration cascades permanently across data and observability tiers AND across all global table replica regions \u2014 when the misconfiguration affects item structure (wrong key design, unnecessary LSIs), the triple cost penalty for small items in global tables is permanently locked in across every region with no migration path.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "creation-time-errors-propagate-permanently-across-all-tiers-and-regions", + "dynamodb-global-table-small-item-cost-triply-penalized" + ], + "outlist": [], + "label": "Permanent cross-tier/cross-region error propagation (depth-3) meets triple cost penalty for small items in global tables (depth-3) \u2014 the emergent property is that schema errors at creation time produce permanently compounding cost penalties that multiply with every added region" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "creation-time-errors-irreversible-across-global-replication": { + "text": "Creation-time immutable decisions (consistency mode, LSI structure, KMS keys) are catastrophically amplified in global architectures \u2014 a wrong choice requires recreating the table across ALL replica regions, not just one, making the blast radius proportional to replication breadth.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "creation-time-immutability-has-permanent-cost-and-dr-implications", + "global-replication-settings-immutable-at-creation" + ], + "outlist": [], + "label": "Immutability constraints compound multiplicatively when combined with cross-region replication scope" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "creation-time-errors-propagate-permanently-across-all-tiers-and-regions": { + "text": "A single creation-time misconfiguration cascades permanently across both data tier (consistency mode, LSIs, KMS) and observability tier (Lake KMS keys, pricing tier) into every global replica region, making the error irrecoverable at multi-region scale without full rebuild.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "irrevocable-decisions-span-both-data-and-observability-tiers", + "creation-time-errors-irreversible-across-global-replication" + ], + "outlist": [], + "label": "Cross-tier immutability span combined with global replication amplification \u2014 one wrong choice poisons both data and observability everywhere" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "creation-time-immutability-has-permanent-cost-and-dr-implications": { + "text": "Creation-time immutable decisions (consistency mode, LSI structure, KMS keys) permanently affect both capacity costs and disaster recovery options \u2014 incorrect choices require full resource recreation.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-global-tables-consistency-mode-immutable", + "dynamodb-lsi-must-create-at-table-creation", + "cloudtrail-eds-kms-key-irrevocable", + "dynamodb-read-consistency-costs" + ], + "outlist": [], + "label": "Spans lifecycle + cost + DR: immutable consistency mode locks in the RCU cost tier forever; immutable KMS keys lock in the encryption/backup chain" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "insufficient" + } + }, + "cross-account-dynamodb-access-achievable-with-kms-and-policy-coordination": { + "text": "Cross-account DynamoDB access is achievable when resource-based policies grant table access AND customer-managed KMS keys satisfy the encryption prerequisite that AWS-managed keys cannot fulfill.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-resource-based-policy-cross-account-access", + "dynamodb-cross-account-requires-customer-managed-kms" + ], + "outlist": [ + "dynamodb-global-table-security-governance-fragmented-by-design" + ], + "label": "Cross-account access works for single-region tables but global table governance fragmentation (per-replica policies, FGAC incompatibility) undermines unified cross-account security posture" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "cross-account-dynamodb-cost-attribution-structurally-incomplete": { + "text": "Cross-account DynamoDB deployments have structurally incomplete cost attribution: resource owners pay for operations initiated by other accounts (billing-audit asymmetry) AND automated operations like TTL create dual blind spots invisible to both cost monitoring and CloudTrail audit \u2014 cross-account billing cannot be reconciled against operational audit records.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-cross-account-billing-audit-asymmetry", + "dynamodb-automated-operations-have-dual-cost-and-audit-blind-spots" + ], + "outlist": [], + "label": "Billing asymmetry (depth-1) compounds with audit blind spots (depth-2) to make cross-account cost reconciliation impossible" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "cross-region-replication-defaults-eventual-consistency-across-services": { + "text": "Cross-region data replication defaults to eventual consistency across AWS's major data services \u2014 DynamoDB global tables default to MREC, RDS cross-region replicas are asynchronous, and Aurora DSQL requires same-continent for multi-region \u2014 making strong cross-region consistency an opt-in exception rather than the norm.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-global-tables-mrec-default", + "rds-cross-region-replication-async-multi-az-sync", + "aurora-dsql-multi-region-same-continent-only" + ], + "outlist": [], + "label": "Eventual consistency is the universal default for cross-region replication in AWS" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "unnecessary" + } + }, + "cross-service-kms-irrevocability-creates-permanent-operational-constraints": { + "text": "Multiple AWS services make KMS key decisions irrevocable through different mechanisms \u2014 DynamoDB archives data after 7 days if a CMK is disabled, CloudTrail Lake KMS keys cannot be changed or removed \u2014 creating a cross-cutting pattern where encryption key management permanently constrains operational flexibility across unrelated service tiers", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-cmk-inaccessible-7-day-archive", + "cloudtrail-lake-kms-key-irreversible" + ], + "outlist": [], + "label": "KMS irrevocability pattern spans data tier (DynamoDB) and audit tier (CloudTrail Lake) \u2014 key management errors propagate permanently across independent service boundaries" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "database-strategy-dilemma-both-paths-unobservably-broken": { + "text": "Organizations face a database strategy dilemma where both available paths fail unobservably \u2014 migrating to DynamoDB via AWS defaults produces the maximally bad outcome across every dimension AND retaining relational databases with serverless compute faces unverifiable VPC security cascades \u2014 neither the NoSQL migration failure nor the relational security failure can be observed.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "rdbms-dynamodb-migration-defaults-worst-and-undiscoverable", + "serverless-data-path-unverifiable-security-cascades-across-vpc" + ], + "outlist": [], + "label": "Two depth-6 conclusions from different branches show that the choice between NoSQL migration and relational retention both fail unobservably via defaults" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "insufficient" + } + }, + "dax-actions-use-dax-prefix-not-dynamodb": { + "text": "DAX IAM actions use the `dax:` prefix (e.g., `dax:GetItem`, `dax:PutItem`) not the `dynamodb:` prefix, and the resource ARN format is `arn:aws:dax:::cache/`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXaccess-controlhtml.md", + "source_url": "", + "source_hash": "64d22f107b1e36a6", + "date": "2026-03-12", + "metadata": {} + }, + "dax-attribute-name-metadata-retained-indefinitely": { + "text": "DAX retains attribute name metadata indefinitely in the cluster even after items expire or are evicted \u2014 using unbounded unique values as top-level attribute names (timestamps, UUIDs) causes memory exhaustion.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXhtml.md", + "source_url": "", + "source_hash": "747cb0b92fd1db02", + "date": "2026-03-12", + "metadata": {} + }, + "dax-best-cache-hit-rate-above-90-percent": { + "text": "DAX performs best when cache hit rates exceed 90%; it is ideal for read-heavy, hot-key, or bursty workloads.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXhtml.md", + "source_url": "", + "source_hash": "747cb0b92fd1db02", + "date": "2026-03-12", + "metadata": {} + }, + "dax-bypassing-writes-causes-stale-reads": { + "text": "Writing directly to DynamoDB (bypassing DAX) causes DAX to serve stale data until TTL expiry or LRU eviction \u2014 there is no automatic cache invalidation from DynamoDB-side writes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconsistencyhtml.md", + "source_url": "", + "source_hash": "f2deba32a608008b", + "date": "2026-03-12", + "metadata": {} + }, + "dax-cannot-manage-tables": { + "text": "DAX cannot perform table management operations (CreateTable, UpdateTable, etc.) \u2014 applications must call DynamoDB directly for these.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptshtml.md", + "source_url": "", + "source_hash": "351df7a61ad15e9d", + "date": "2026-03-12", + "metadata": {} + }, + "dax-cannot-warm-item-cache-with-scan": { + "text": "You cannot warm the DAX item cache with a Scan operation \u2014 Scan results go only to the query cache, not the item cache.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconsistencyhtml.md", + "source_url": "", + "source_hash": "f2deba32a608008b", + "date": "2026-03-12", + "metadata": {} + }, + "dax-client-drop-in-replacement-same-vpc": { + "text": "The DAX client SDK is a drop-in replacement for the standard DynamoDB client requiring minimal code changes, and the client must be in the same VPC as the DAX cluster (DAX is not accessible over the public internet).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXclienthtml.md", + "source_url": "", + "source_hash": "c4fbc512bcf22799", + "date": "2026-03-12", + "metadata": {} + }, + "dax-cluster-same-region-as-tables": { + "text": "A DAX cluster can only interact with DynamoDB tables in the same AWS Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptsclusterhtml.md", + "source_url": "", + "source_hash": "ff6d018222ecfbea", + "date": "2026-03-12", + "metadata": {} + }, + "dax-console-auto-creates-service-role-cli-does-not": { + "text": "The AWS Console automatically detects and creates a DAX service role if none exists; the CLI requires you to create the service role manually before cluster creation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcreate-clusterhtml.md", + "source_url": "", + "source_hash": "3dd738b75822d6d5", + "date": "2026-03-12", + "metadata": {} + }, + "dax-consumed-rcu-only-counts-cache-misses": { + "text": "When DAX is in front of DynamoDB, the `ConsumedReadCapacityUnits` CloudWatch metric only reflects cache misses; divide by (1 - hit rate) to estimate total DAX read throughput.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXsizing-guidehtml.md", + "source_url": "", + "source_hash": "b77ecebd3d19776e", + "date": "2026-03-12", + "metadata": {} + }, + "dax-cross-account-client-only-not-dynamodb": { + "text": "DAX cannot access a DynamoDB table in a different account \u2014 cross-account access only applies to clients accessing a DAX cluster, not DAX accessing DynamoDB cross-account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcross-account-accesshtml.md", + "source_url": "", + "source_hash": "9abc9f245143703e", + "date": "2026-03-12", + "metadata": {} + }, + "dax-cross-account-requires-iam-and-vpc-peering": { + "text": "Cross-account DAX access requires both IAM role chaining (STS AssumeRole) and VPC peering with non-overlapping CIDRs \u2014 neither alone is sufficient.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcross-account-accesshtml.md", + "source_url": "", + "source_hash": "9abc9f245143703e", + "date": "2026-03-12", + "metadata": {} + }, + "dax-daxs-scheme-indicates-encryption-in-transit": { + "text": "DAX cluster endpoints use `dax://` for unencrypted connections and `daxs://` for encryption-in-transit connections.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptsclusterhtml.md", + "source_url": "", + "source_hash": "ff6d018222ecfbea", + "date": "2026-03-12", + "metadata": {} + }, + "dax-describe-table-required-in-service-role": { + "text": "The `dynamodb:DescribeTable` action must be included in the DAX service role policy for DAX to maintain table metadata.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXaccess-controlhtml.md", + "source_url": "", + "source_hash": "64d22f107b1e36a6", + "date": "2026-03-12", + "metadata": {} + }, + "dax-does-not-enforce-user-level-permissions": { + "text": "DAX does not enforce user-level permissions on DynamoDB data \u2014 all users of a DAX cluster inherit the cluster's IAM service role permissions, which can subvert existing DynamoDB IAM policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXaccess-controlhtml.md", + "source_url": "", + "source_hash": "64d22f107b1e36a6", + "date": "2026-03-12", + "metadata": {} + }, + "dax-dynamodb-compatible-drop-in-client": { + "text": "DAX is DynamoDB-compatible \u2014 applications use a DAX client that is a drop-in replacement for the standard DynamoDB client.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-dax-prescriptive-guidancehtml.md", + "source_url": "", + "source_hash": "3269420a0e24ee10", + "date": "2026-03-12", + "metadata": {} + }, + "dax-encryption-at-rest-aes-256-aws-managed-key-only": { + "text": "DAX encryption at rest uses AES-256 encryption with the AWS KMS managed service default key; customer-managed KMS keys are not supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXEncryptionAtResthtml.md", + "source_url": "", + "source_hash": "68801306cdee43d5", + "date": "2026-03-12", + "metadata": {} + }, + "dax-encryption-at-rest-aws-managed-key-only": { + "text": "DAX clusters with encryption at rest always use an AWS managed key \u2014 customer managed keys and AWS owned keys are not supported for DAX.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-EncryptionAtResthtml.md", + "source_url": "", + "source_hash": "28218c124c391615", + "date": "2026-03-12", + "metadata": {} + }, + "dax-encryption-cannot-change-after-creation": { + "text": "DAX encryption at rest and encryption in transit cannot be enabled or disabled after cluster creation \u2014 the cluster must be recreated.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXEncryptionAtResthtml.md", + "source_url": "", + "source_hash": "68801306cdee43d5", + "date": "2026-03-12", + "metadata": {} + }, + "dax-encryption-in-transit-tls-all-or-nothing": { + "text": "DAX encryption in transit uses TLS with x509 certificate verification; once enabled, unencrypted traffic is rejected (no mixed-mode support).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXEncryptionInTransithtml.md", + "source_url": "", + "source_hash": "db1bc15c1f77897a", + "date": "2026-03-12", + "metadata": {} + }, + "dax-fault-tolerant-cluster-minimum-3-nodes-3-azs": { + "text": "A fault-tolerant DAX cluster requires at least 3 nodes distributed across 3 Availability Zones.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXsizing-guidehtml.md", + "source_url": "", + "source_hash": "b77ecebd3d19776e", + "date": "2026-03-12", + "metadata": {} + }, + "dax-iam-role-creation-excluded-from-managed-policies": { + "text": "The four IAM permissions needed to create a DAX service role (iam:CreateRole, iam:CreatePolicy, iam:AttachRolePolicy, iam:PassRole) are intentionally excluded from AWS managed DynamoDB policies to prevent privilege escalation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcreate-clusterhtml.md", + "source_url": "", + "source_hash": "3dd738b75822d6d5", + "date": "2026-03-12", + "metadata": {} + }, + "dax-is-inmemory-cache-not-database": { + "text": "DAX (DynamoDB Accelerator) is an in-memory caching layer for DynamoDB, not a separate database.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-NextStepshtml.md", + "source_url": "", + "source_hash": "187be3b740a0e671", + "date": "2026-03-12", + "metadata": {} + }, + "dax-isolation-requires-separate-clusters": { + "text": "To isolate user-level access to specific DynamoDB tables through DAX, separate DAX clusters with different service roles scoped to specific tables must be created.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXaccess-controlhtml.md", + "source_url": "", + "source_hash": "64d22f107b1e36a6", + "date": "2026-03-12", + "metadata": {} + }, + "dax-item-cache-default-ttl-5-minutes": { + "text": "The DAX item cache has a default TTL of 5 minutes, configurable at cluster creation time; with TTL=0, items are only refreshed via LRU eviction or write-through operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptshtml.md", + "source_url": "", + "source_hash": "351df7a61ad15e9d", + "date": "2026-03-12", + "metadata": {} + }, + "dax-item-cache-query-cache-independent": { + "text": "DAX's item cache (GetItem/BatchGetItem) and query cache (Query/Scan) are completely independent \u2014 writing an item does not invalidate query cache results containing that item.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconsistencyhtml.md", + "source_url": "", + "source_hash": "f2deba32a608008b", + "date": "2026-03-12", + "metadata": {} + }, + "dax-kms-key-used-only-at-cluster-launch": { + "text": "DAX uses the KMS encryption key only at cluster launch, not per-operation; revoking KMS access does not immediately cut off data access until the cluster is shut down.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXEncryptionAtResthtml.md", + "source_url": "", + "source_hash": "68801306cdee43d5", + "date": "2026-03-12", + "metadata": {} + }, + "dax-management-api-cannot-scope-to-resource": { + "text": "DAX management API actions (e.g., `DescribeClusters`, `CreateCluster`) cannot be scoped to specific cluster ARNs \u2014 the IAM `Resource` element must be `\"*\"`; data plane actions can be scoped to specific cluster ARNs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcluster-managementhtml.md", + "source_url": "", + "source_hash": "455f495055fac926", + "date": "2026-03-12", + "metadata": {} + }, + "dax-max-10-read-replicas-per-cluster": { + "text": "A DAX cluster supports up to 10 read replicas (11 nodes total: 1 primary + 10 replicas), and the `--new-replication-factor` parameter specifies total nodes including the primary.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcluster-managementhtml.md", + "source_url": "", + "source_hash": "455f495055fac926", + "date": "2026-03-12", + "metadata": {} + }, + "dax-max-500-tables-per-cluster": { + "text": "A DAX cluster supports a maximum of 500 DynamoDB tables; exceeding this degrades availability and performance.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptsclusterhtml.md", + "source_url": "", + "source_hash": "ff6d018222ecfbea", + "date": "2026-03-12", + "metadata": {} + }, + "dax-microsecond-latency-eventually-consistent": { + "text": "DAX delivers microsecond latency for eventually consistent reads, compared to single-digit milliseconds for standard DynamoDB reads.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXhtml.md", + "source_url": "", + "source_hash": "747cb0b92fd1db02", + "date": "2026-03-12", + "metadata": {} + }, + "dax-microsecond-read-latency": { + "text": "DAX (DynamoDB Accelerator) provides microsecond response times for read-heavy workloads, compared to single-digit millisecond latency for standard DynamoDB reads.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-dax-prescriptive-guidancehtml.md", + "source_url": "", + "source_hash": "3269420a0e24ee10", + "date": "2026-03-12", + "metadata": {} + }, + "dax-minimum-3-nodes-multi-az-for-ha": { + "text": "The recommended DAX high-availability configuration is a minimum of 3 nodes deployed across multiple Availability Zones.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconsistencyhtml.md", + "source_url": "", + "source_hash": "f2deba32a608008b", + "date": "2026-03-12", + "metadata": {} + }, + "dax-monitoring-cloudwatch-and-cloudtrail": { + "text": "DAX monitoring uses two primary AWS tools: CloudWatch for real-time metrics/alarms and CloudTrail for API call logging/auditing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXMonitoringhtml.md", + "source_url": "", + "source_hash": "dc7c09ea29d43d2a", + "date": "2026-03-12", + "metadata": {} + }, + "dax-negative-caching-empty-results": { + "text": "DAX caches negative results (empty/missing items) which persist until TTL expires, LRU evicts them, or the item is modified via DAX.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconsistencyhtml.md", + "source_url": "", + "source_hash": "f2deba32a608008b", + "date": "2026-03-12", + "metadata": {} + }, + "dax-only-caches-eventually-consistent-reads": { + "text": "DAX only caches eventually consistent reads; strongly consistent reads (ConsistentRead=true) always pass through to DynamoDB and are never cached.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptshtml.md", + "source_url": "", + "source_hash": "351df7a61ad15e9d", + "date": "2026-03-12", + "metadata": {} + }, + "dax-parameter-group-change-affects-new-entries-only": { + "text": "Modifying a DAX parameter group on a running cluster only affects newly written cache entries \u2014 existing cached items retain their original TTL values.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcluster-managementhtml.md", + "source_url": "", + "source_hash": "455f495055fac926", + "date": "2026-03-12", + "metadata": {} + }, + "dax-port-8111": { + "text": "DAX uses TCP port 8111 for client connections \u2014 this port must be opened in security groups for cross-account or any DAX access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcross-account-accesshtml.md", + "source_url": "", + "source_hash": "9abc9f245143703e", + "date": "2026-03-12", + "metadata": {} + }, + "dax-production-minimum-3-nodes-3-azs": { + "text": "DAX production best practice requires at least 3 nodes deployed across 3 different Availability Zones; 1\u20132 node clusters are not fault-tolerant and are suitable only for dev/test.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptsclusterhtml.md", + "source_url": "", + "source_hash": "ff6d018222ecfbea", + "date": "2026-03-12", + "metadata": {} + }, + "dax-provides-consistent-microsecond-reads": { + "text": "DAX provides consistent microsecond-latency reads within VPC isolation, with up to 10x improvement over base DynamoDB.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-dax-microsecond-latency", + "dax-runs-exclusively-within-vpc" + ], + "outlist": [ + "dax-bypassing-writes-causes-stale-reads" + ], + "label": "microsecond reads + VPC isolation are reliable UNLESS writes bypass DAX and go directly to DynamoDB, causing stale reads with no detection mechanism" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "dax-query-cache-ttl-zero-means-no-caching": { + "text": "DAX query cache with TTL=0 means query responses are not cached at all, unlike item cache TTL=0 which retains items until LRU eviction or write-through.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptshtml.md", + "source_url": "", + "source_hash": "351df7a61ad15e9d", + "date": "2026-03-12", + "metadata": {} + }, + "dax-r3-no-encryption-at-rest": { + "text": "DAX `dax.r3.*` node types do not support encryption at rest.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXEncryptionAtResthtml.md", + "source_url": "", + "source_hash": "68801306cdee43d5", + "date": "2026-03-12", + "metadata": {} + }, + "dax-read-replicas-do-not-write-to-dynamodb": { + "text": "DAX read replicas handle reads and cache eviction only \u2014 they do not write to DynamoDB; only the primary node writes to DynamoDB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptsclusterhtml.md", + "source_url": "", + "source_hash": "ff6d018222ecfbea", + "date": "2026-03-12", + "metadata": {} + }, + "dax-requires-aws-provided-client": { + "text": "DAX requires AWS-provided DAX client SDKs (Go, Java, Node.js, Python, .NET) \u2014 the standard DynamoDB SDK client cannot be used with DAX.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXhtml.md", + "source_url": "", + "source_hash": "747cb0b92fd1db02", + "date": "2026-03-12", + "metadata": {} + }, + "dax-runs-exclusively-within-vpc": { + "text": "DAX clusters run exclusively within a VPC \u2014 there is no public endpoint option, and access is controlled via VPC security groups, subnets, and routing tables.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptshtml.md", + "source_url": "", + "source_hash": "351df7a61ad15e9d", + "date": "2026-03-12", + "metadata": {} + }, + "dax-service-linked-role-auto-created": { + "text": "The AWSServiceRoleForDAX service-linked role is auto-created when you create a DAX cluster and cannot be deleted while any DAX clusters exist.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-using-service-linked-roleshtml.md", + "source_url": "", + "source_hash": "c78f9bc819204735", + "date": "2026-03-12", + "metadata": {} + }, + "dax-service-linked-role-ec2-not-dynamodb": { + "text": "The DAX service-linked role (AWSServiceRoleForDAX) grants EC2 networking permissions (security groups, network interfaces, VPCs, subnets), not DynamoDB permissions \u2014 DynamoDB access must be configured separately.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-using-service-linked-roleshtml.md", + "source_url": "", + "source_hash": "c78f9bc819204735", + "date": "2026-03-12", + "metadata": {} + }, + "dax-service-role-trusts-dax-service": { + "text": "The DAX service role must include a trust relationship allowing `dax.amazonaws.com` to call `sts:AssumeRole`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXaccess-controlhtml.md", + "source_url": "", + "source_hash": "64d22f107b1e36a6", + "date": "2026-03-12", + "metadata": {} + }, + "dax-t2-nodes-not-suitable-sustained-workloads": { + "text": "DAX T2 node types use burstable CPU and are not suitable for sustained workloads due to CPU credit depletion.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXsizing-guidehtml.md", + "source_url": "", + "source_hash": "b77ecebd3d19776e", + "date": "2026-03-12", + "metadata": {} + }, + "dax-t2-standard-t3-unlimited-burst-modes": { + "text": "DAX T2 instances use standard burst mode (CPU capped at baseline when credits exhausted), while T3 instances use unlimited mode (can burst beyond baseline at extra cost).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXBurstablehtml.md", + "source_url": "", + "source_hash": "e216061c404fe256", + "date": "2026-03-12", + "metadata": {} + }, + "dax-t3-burst-free-if-average-below-baseline-24h": { + "text": "DAX T3 bursting is free if average CPU usage stays at or below the baseline over a 24-hour window; surplus usage is billed per vCPU-hour.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXBurstablehtml.md", + "source_url": "", + "source_hash": "e216061c404fe256", + "date": "2026-03-12", + "metadata": {} + }, + "dax-traffic-stays-within-vpc": { + "text": "DAX traffic between the application and cluster always stays within the VPC via ENIs with private IPs, regardless of whether encryption in transit is enabled.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXEncryptionInTransithtml.md", + "source_url": "", + "source_hash": "db1bc15c1f77897a", + "date": "2026-03-12", + "metadata": {} + }, + "dax-transactgetitems-not-cached": { + "text": "TransactGetItems are not cached by DAX \u2014 they are passed through to DynamoDB like strongly consistent reads.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconsistencyhtml.md", + "source_url": "", + "source_hash": "f2deba32a608008b", + "date": "2026-03-12", + "metadata": {} + }, + "dax-transactwriteitems-async-cache-population": { + "text": "DAX handles TransactWriteItems by forwarding the transaction to DynamoDB, returning success, then asynchronously issuing TransactGetItems for each item to populate the item cache with serializable isolation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconsistencyhtml.md", + "source_url": "", + "source_hash": "f2deba32a608008b", + "date": "2026-03-12", + "metadata": {} + }, + "dax-two-caches-default-ttl-5-minutes": { + "text": "DAX has two separate caches \u2014 item cache (`GetItem`/`BatchGetItem`) and query cache (`Query`/`Scan`) \u2014 both with a default TTL of 5 minutes, configured via parameter group settings `record-ttl-millis` and `query-ttl-millis` in milliseconds.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcluster-managementhtml.md", + "source_url": "", + "source_hash": "455f495055fac926", + "date": "2026-03-12", + "metadata": {} + }, + "dax-two-policies-govern-access": { + "text": "Two IAM policies govern DAX access: a user access policy controlling `dax:*` actions on the cluster ARN, and a DAX service role policy controlling `dynamodb:*` actions on DynamoDB table ARNs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXaccess-controlhtml.md", + "source_url": "", + "source_hash": "64d22f107b1e36a6", + "date": "2026-03-12", + "metadata": {} + }, + "dax-typical-cache-hit-rate-85-95-percent": { + "text": "Typical cache hit rates for DAX applications are 85\u201395%.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXsizing-guidehtml.md", + "source_url": "", + "source_hash": "b77ecebd3d19776e", + "date": "2026-03-12", + "metadata": {} + }, + "dax-vertical-scaling-requires-new-cluster": { + "text": "DAX vertical scaling (changing node type) requires creating a new cluster \u2014 node types cannot be changed on a running cluster, and all nodes must be the same type.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXcluster-managementhtml.md", + "source_url": "", + "source_hash": "455f495055fac926", + "date": "2026-03-12", + "metadata": {} + }, + "dax-vertical-vs-horizontal-scaling": { + "text": "DAX vertical scaling (larger node type) addresses high CPU, high eviction, and high memory usage; horizontal scaling (more nodes) addresses read-heavy workloads with high cache hit rates.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXsizing-guidehtml.md", + "source_url": "", + "source_hash": "b77ecebd3d19776e", + "date": "2026-03-12", + "metadata": {} + }, + "dax-vpc-only-port-8111": { + "text": "DAX runs inside a VPC and requires an inbound security group rule on TCP port 8111; it is only accessible from resources within the VPC.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptsclusterhtml.md", + "source_url": "", + "source_hash": "ff6d018222ecfbea", + "date": "2026-03-12", + "metadata": {} + }, + "dax-write-through-dynamodb-first": { + "text": "DAX uses a write-through model where writes go to DynamoDB first, then to the DAX item cache; the operation succeeds only if both succeed, and failed DynamoDB writes are never cached.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DAXconceptshtml.md", + "source_url": "", + "source_hash": "351df7a61ad15e9d", + "date": "2026-03-12", + "metadata": {} + }, + "dedicated-host-cannot-mix-virtualized-and-metal": { + "text": "You cannot mix virtualized and `.metal` instance types on the same allocated Dedicated Host.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-hosts-overviewhtml.md", + "source_url": "", + "source_hash": "2df468d382f9d74e", + "date": "2026-03-12", + "metadata": {} + }, + "dedicated-host-no-capacity-reservations": { + "text": "Capacity Reservations are NOT supported on Dedicated Hosts; they are only supported on Dedicated Instances.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-hosts-overviewhtml.md", + "source_url": "", + "source_hash": "2df468d382f9d74e", + "date": "2026-03-12", + "metadata": {} + }, + "dedicated-host-no-placement-groups": { + "text": "Dedicated Hosts cannot be launched into placement groups.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-hosts-overviewhtml.md", + "source_url": "", + "source_hash": "2df468d382f9d74e", + "date": "2026-03-12", + "metadata": {} + }, + "dedicated-host-reservation-up-to-70pct-discount": { + "text": "Dedicated Host Reservations offer up to 70% discount vs On-Demand pricing, available in 1-year or 3-year terms.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-hosts-overviewhtml.md", + "source_url": "", + "source_hash": "2df468d382f9d74e", + "date": "2026-03-12", + "metadata": {} + }, + "dedicated-instance-ebs-not-single-tenant": { + "text": "EBS volumes attached to Dedicated Instances do NOT run on single-tenant hardware; the isolation boundary is compute only.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-instancehtml.md", + "source_url": "", + "source_hash": "b36f4b74f26ec69d", + "date": "2026-03-12", + "metadata": {} + }, + "dedicated-instance-may-share-host-same-account": { + "text": "Dedicated Instances are isolated at the account level \u2014 instances from the same AWS account (including non-dedicated instances) can share the same physical host.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-instancehtml.md", + "source_url": "", + "source_hash": "b36f4b74f26ec69d", + "date": "2026-03-12", + "metadata": {} + }, + "dedicated-vpc-tenancy-forces-all-instances-dedicated": { + "text": "Setting VPC tenancy to `dedicated` forces all instances in that VPC to run as Dedicated Instances.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-dedicated-instancehtml.md", + "source_url": "", + "source_hash": "b36f4b74f26ec69d", + "date": "2026-03-12", + "metadata": {} + }, + "default-configurations-create-permanently-suboptimal-global-architectures": { + "text": "AWS's ease-of-use defaults combined with creation-time immutability mean the default deployment path produces permanently suboptimal global architectures \u2014 defaults that merely need hardening in single-region become irreversible mistakes when replicated globally.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "aws-defaults-require-systematic-hardening-across-dimensions", + "creation-time-errors-irreversible-across-global-replication" + ], + "outlist": [], + "label": "ease-of-use defaults lock in before hardening, global replication amplifies the lock-in permanently" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "insufficient" + } + }, + "default-deployments-lock-in-undetectable-permanent-suboptimality": { + "text": "Following AWS defaults produces configurations that are simultaneously permanently irrecoverable (immutable creation-time decisions propagated globally) AND permanently undetectable (silent degradation across data, DR, and audit layers means the organization cannot discover the suboptimality through any operational signal).", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "aws-global-default-path-creates-permanent-irrecoverable-suboptimality", + "silent-degradation-spans-data-dr-and-audit-independently" + ], + "outlist": [], + "label": "Default-path irrecoverability (depth-4) meets cross-layer silent degradation (depth-4) \u2014 the emergent property is that the problem can neither be fixed nor detected" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "default-nacl-allows-all-custom-nacl-denies-all": { + "text": "The default VPC Network ACL allows all inbound and outbound traffic; custom NACLs deny all traffic by default until rules are added.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-subnets.md", + "source_url": "", + "source_hash": "d4faa1e970199eeb", + "date": "2026-03-08", + "metadata": {} + }, + "default-subnets-auto-assign-public-ipv4": { + "text": "Default subnets auto-assign public IPv4 addresses to launched instances; nondefault subnets do not.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-internet-gateway.md", + "source_url": "", + "source_hash": "28ebaa8888ed923b", + "date": "2026-03-08", + "metadata": {} + }, + "default-vpc-has-igw-ipv4-route-not-ipv6": { + "text": "The default VPC comes with an internet gateway and a route table entry for IPv4 (0.0.0.0/0) but not for IPv6 (::/0).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-internet-gateway.md", + "source_url": "", + "source_hash": "28ebaa8888ed923b", + "date": "2026-03-08", + "metadata": {} + }, + "default-vpc-per-region": { + "text": "Every AWS account includes a default VPC in each Region with default subnets already configured.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-overview.md", + "source_url": "", + "source_hash": "bf7b79e62bf79dd0", + "date": "2026-03-08", + "metadata": {} + }, + "default-vpc-security-group-used-when-none-specified": { + "text": "If no security group is specified at instance launch, the default security group for the VPC is used.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-security-groups.md", + "source_url": "", + "source_hash": "84edf14aea8ab364", + "date": "2026-03-08", + "metadata": {} + }, + "defaults-suboptimality-undetectable-catch-22": { + "text": "AWS defaults are simultaneously suboptimal for resilience and security AND detecting that suboptimality requires proactive observability investment (Lake KMS decisions, Insights cold-start up to 7 days) that organizations using defaults have not made \u2014 creating a catch-22 where the posture that most needs monitoring is the one least equipped to monitor itself.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "aws-defaults-simultaneously-suboptimal-for-resilience-and-security", + "observability-investment-faces-cold-start-barrier-and-hard-ceiling" + ], + "outlist": [], + "label": "detection of default-configuration gaps requires precisely the proactive investment that default-reliant organizations defer" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "insufficient" + } + }, + "delegated-cloudtrail-governance-bounded-by-delegation-gaps-and-audit-ceilings": { + "text": "CloudTrail organizational governance is simultaneously incomplete (trail-to-Lake copying requires the management account, not the delegated admin) AND bounded by three independent audit ceilings (scope, fidelity, time) \u2014 delegated administrators face both functional gaps in their delegation AND hard limits on audit completeness even with maximum investment.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-org-governance-delegation-incomplete", + "cloudtrail-audit-three-dimensional-with-independent-ceilings" + ], + "outlist": [], + "label": "Incomplete delegation (depth-1) meets hard audit ceilings (depth-3), meaning even full delegation wouldn't achieve complete coverage" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dr-posture-degradation-undetectable-until-disaster": { + "text": "Silent DR posture degradation from feature toggling and restores combined with inherent observability ceiling means organizations cannot detect compromised DR capability \u2014 PITR windows reset, auto-scaling is lost, backup state reverts, and even maximum CloudTrail investment cannot surface these gaps.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "lifecycle-transitions-silently-degrade-dr-posture", + "full-observability-has-hard-ceiling-despite-investment" + ], + "outlist": [], + "label": "Silent degradation + hard observability ceiling = DR compromise is invisible until the actual disaster triggers recovery" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dr-recovery-creates-maximum-vulnerability-window-across-all-planes": { + "text": "DR recovery creates a maximum-vulnerability window where the multiplicative security surface across all network and identity planes resets to unhardened defaults exactly when the system is under disaster stress, requiring simultaneous re-hardening of NACLs, security groups, Block Public Access, identity policies, resource policies, and permission boundaries.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dr-recovery-resets-to-unhardened-defaults-requiring-full-rehardening", + "security-attack-surface-multiplicative-across-network-and-identity-planes" + ], + "outlist": [], + "label": "DR resets compound with multiplicative attack surface \u2014 worst-case security posture coincides with worst-case operational scenario" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dr-recovery-from-suboptimal-defaults-creates-doom-loop": { + "text": "Organizations locked into permanently suboptimal default configurations face a doom loop: DR recovery resets to unhardened defaults (recreating the suboptimality), both the original degradation and the recovery vulnerability window are undetectable, and no operational layer can canary another \u2014 the fix reintroduces the problem it was meant to solve.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "default-deployments-lock-in-undetectable-permanent-suboptimality", + "dr-vulnerability-window-undetectable-by-design" + ], + "outlist": [], + "label": "DR recovery from bad defaults recreates the bad defaults, forming an undetectable fix-reintroduces-problem cycle" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dr-recovery-resets-to-unhardened-defaults-requiring-full-rehardening": { + "text": "After disaster recovery, restored resources return to default configurations that require the same systematic hardening applied during initial deployment \u2014 DR is not merely restore, it's re-harden across operations, auditing, and access control dimensions.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "lifecycle-transitions-silently-degrade-dr-posture", + "aws-defaults-require-systematic-hardening-across-dimensions" + ], + "outlist": [], + "label": "DR restores lose hardened state and defaults require systematic hardening, so every DR event demands a full re-hardening pass" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dr-vulnerability-window-undetectable-by-design": { + "text": "DR recovery creates a maximum-vulnerability window that is itself undetectable \u2014 the same observability gaps that hide pre-disaster posture degradation also hide post-recovery security exposure, meaning organizations cannot know when they are most vulnerable.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dr-recovery-creates-maximum-vulnerability-window-across-all-planes", + "dr-posture-degradation-undetectable-until-disaster" + ], + "outlist": [], + "label": "depth-4 DR vulnerability window + depth-3 undetectable degradation both stem from observability ceiling that persists across the disaster boundary" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-100-byte-per-item-storage-overhead": { + "text": "DynamoDB billing includes a 100-byte per-item storage overhead not reflected in DescribeTable or capacity calculations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithTablesBasicshtml.md", + "source_url": "", + "source_hash": "2391f0f105c07e2e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-10000-table-hard-limit-per-account": { + "text": "DynamoDB has a hard cap of 10,000 tables per account that cannot be increased; exceeding this requires distributing tables across multiple AWS accounts.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-table-designhtml.md", + "source_url": "", + "source_hash": "2583d01d2e2173b4", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-2500-tables-per-account-soft-limit": { + "text": "DynamoDB has a soft quota of 2,500 tables per account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteTablehtml.md", + "source_url": "", + "source_hash": "9714e2e9f75d4190", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-2500-tables-soft-quota": { + "text": "DynamoDB has a soft account quota of 2,500 tables per account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_RestoreTableFromBackuphtml.md", + "source_url": "", + "source_hash": "3fac2697fa4db09e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-500-concurrent-table-operations-limit": { + "text": "DynamoDB has a soft limit of 500 simultaneous table operations per account (shared across CreateTable, UpdateTable, DeleteTable, UpdateTimeToLive, RestoreTableFromBackup, RestoreTableToPointInTime), reduced to 250 when creating tables with secondary indexes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_RestoreTableFromBackuphtml.md", + "source_url": "", + "source_hash": "3fac2697fa4db09e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-500-simultaneous-table-operations-limit": { + "text": "DynamoDB allows up to 500 simultaneous table operations (CreateTable, UpdateTable, DeleteTable, UpdateTimeToLive, RestoreTableFromBackup, RestoreTableToPointInTime) per account, reduced to 250 when creating tables with secondary indexes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteTablehtml.md", + "source_url": "", + "source_hash": "9714e2e9f75d4190", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-account-deletion-overrides-deletion-protection": { + "text": "AWS account deletion overrides DynamoDB deletion protection \u2014 all data is removed within 90 days.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithTablesBasicshtml.md", + "source_url": "", + "source_hash": "2391f0f105c07e2e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-account-limit-2500-tables-500-concurrent-ops": { + "text": "DynamoDB has a soft limit of 2,500 tables per account and up to 500 simultaneous table operations (reduced to 250 when creating tables with secondary indexes).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DisableKinesisStreamingDestinationhtml.md", + "source_url": "", + "source_hash": "b89671ec044e4089", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-account-limit-2500-tables-500-ops": { + "text": "DynamoDB soft account quotas: 2,500 tables per account; 500 simultaneous table operations (CreateTable, UpdateTable, DeleteTable, UpdateTimeToLive, restore operations), reduced to 250 when creating tables with secondary indexes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateBackuphtml.md", + "source_url": "", + "source_hash": "89dc9132eca6d738", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-add-action-number-and-set-only": { + "text": "The `ADD` action in DynamoDB UpdateExpression only supports Number and Set types; it initializes a non-existent numeric attribute to 0 before adding.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateItemhtml.md", + "source_url": "", + "source_hash": "3e4e050a17f9475f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-adjacency-list-many-to-many": { + "text": "The adjacency list pattern is DynamoDB's recommended approach for modeling many-to-many relationships: partition key holds entity IDs, sort key holds related entity IDs, and a GSI on the sort key enables reverse lookups.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-adjacency-graphshtml.md", + "source_url": "", + "source_hash": "dccdeb5d762ea057", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-api-three-categories": { + "text": "DynamoDB's low-level API is organized into three categories: table/index management, data CRUD operations, and DynamoDB Streams record processing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-Welcomehtml.md", + "source_url": "", + "source_hash": "269969a145801d0e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ats-certificate-migration-december-2017": { + "text": "In December 2017, DynamoDB endpoints migrated to Amazon Trust Services (ATS) certificates for SSL/TLS; legacy clients may need certificate store updates.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Programminghtml.md", + "source_url": "", + "source_hash": "0b2c640b7c765d00", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-automated-operations-have-dual-cost-and-audit-blind-spots": { + "text": "DynamoDB automated operations (TTL deletions) are simultaneously invisible to both cost monitoring (no local WCU consumed, but WCU charged on replicas) and audit logging (no CloudTrail entries for TTL or noop writes) \u2014 creating a dual blind spot where the same class of operations evades both financial and security observability.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-ttl-creates-invisible-asymmetric-cost-mutations", + "cloudtrail-audit-blind-spots-exist-for-automated-operations" + ], + "outlist": [], + "label": "TTL cost invisibility (depth-1) and audit blind spots (depth-1) overlap specifically on TTL deletions \u2014 the same operation is invisible in both monitoring dimensions, not just one" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "unnecessary" + } + }, + "dynamodb-autoscaling-8-alarms-per-event": { + "text": "A full DynamoDB auto scaling event creates 8 CloudWatch alarms total (4 for read capacity, 4 for write capacity) and 8 AWS Config configuration items.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-AutoScalinghtml.md", + "source_url": "", + "source_hash": "244c601547753cd6", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-autoscaling-default-console-not-cli": { + "text": "DynamoDB auto scaling is enabled by default when creating tables via the AWS Management Console, but not when using CLI or SDK.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-AutoScalinghtml.md", + "source_url": "", + "source_hash": "244c601547753cd6", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-autoscaling-delete-table-no-cleanup": { + "text": "Deleting a DynamoDB table does not automatically delete associated auto scaling resources (scalable targets, scaling policies, or CloudWatch alarms).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-AutoScalinghtml.md", + "source_url": "", + "source_hash": "244c601547753cd6", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-autoscaling-four-independent-failure-modes": { + "text": "DynamoDB auto-scaling has four independent failure modes: a 2-minute reaction delay with request throttling during the breach window, throttling during the capacity change itself, new GSIs not inheriting scaling configuration, and orphaned scaling resources on table deletion \u2014 each failure operates independently and can compound during routine operations.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-autoscaling-triggers-after-2min-breach", + "dynamodb-autoscaling-throttles-during-update", + "dynamodb-autoscaling-new-gsi-no-auto-scaling", + "dynamodb-autoscaling-delete-table-no-cleanup" + ], + "outlist": [], + "label": "Four base beliefs about auto-scaling failures combine into a thematic conclusion that auto-scaling is unreliable across its entire lifecycle" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-autoscaling-new-gsi-no-auto-scaling": { + "text": "Creating a GSI on an existing DynamoDB table does not auto-enable scaling on the GSI; capacity must be managed manually until the GSI backfill completes and reaches active status.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-AutoScalinghtml.md", + "source_url": "", + "source_hash": "244c601547753cd6", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-autoscaling-scale-up-2-scale-down-15-datapoints": { + "text": "DynamoDB auto scaling triggers scale-up after 2 consecutive one-minute data points breaching target utilization, and scale-down after 15 consecutive data points below target.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-AutoScalinghtml.md", + "source_url": "", + "source_hash": "244c601547753cd6", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-autoscaling-target-tracking-only": { + "text": "DynamoDB auto-scaling uses target tracking scaling policies exclusively \u2014 step scaling is not supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeGlobalTableSettingshtml.md", + "source_url": "", + "source_hash": "67de956d12f3bd43", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-autoscaling-target-utilization-20-to-90": { + "text": "DynamoDB auto scaling target utilization percentage must be between 20% and 90%.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-AutoScalinghtml.md", + "source_url": "", + "source_hash": "244c601547753cd6", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-autoscaling-throttles-during-update": { + "text": "During DynamoDB auto scaling capacity changes, requests exceeding the previous provisioned capacity are throttled while the UpdateTable operation takes effect.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-metrics-dimensionshtml.md", + "source_url": "", + "source_hash": "940f8513ae8d9e97", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-autoscaling-trigger-2min-scaledown-15min": { + "text": "DynamoDB auto scaling triggers scale-up after consumed capacity breaches target utilization for 2 consecutive minutes; scale-down requires 15 consecutive data points below target.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-metrics-dimensionshtml.md", + "source_url": "", + "source_hash": "940f8513ae8d9e97", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-autoscaling-triggers-after-2min-breach": { + "text": "DynamoDB auto scaling triggers when consumed capacity breaches the target utilization for two consecutive minutes; recommended target utilization is 70%.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-provisioned-capacity-modehtml.md", + "source_url": "", + "source_hash": "a48b7f82df21f99c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-autoscaling-uses-application-auto-scaling": { + "text": "DynamoDB auto scaling is implemented via Application Auto Scaling with target tracking scaling policies, using a dedicated IAM role (`AutoScalingRoleArn`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTableReplicaAutoScalinghtml.md", + "source_url": "", + "source_hash": "91fd3808dea886a2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-aws-owned-key-free-no-kms-quota": { + "text": "DynamoDB AWS owned encryption keys have zero cost and do not count against KMS request quotas.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionhowitworkshtml.md", + "source_url": "", + "source_hash": "4ced9ba839135ceb", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-backup-billing-spike-1st-normal": { + "text": "The DynamoDB `TimedBackupStorage-ByteHrs` metric spike on the 1st of each month is normal behavior \u2014 it reflects front-loaded full-month charges for all carried-over backups, which decrease as backups expire or are deleted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-backup-restore-billinghtml.md", + "source_url": "", + "source_hash": "a5f28d3e415dca47", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-backup-consistency-window-1-minute": { + "text": "DynamoDB on-demand backup consistency window: data committed up to 1 minute before the request is guaranteed included; data committed more than 1 minute after is excluded; data within ~2 minutes of the request may or may not be included (no causal consistency).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateBackuphtml.md", + "source_url": "", + "source_hash": "89dc9132eca6d738", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-backup-cross-account-requires-same-org": { + "text": "AWS Backup cross-account backup/restore for DynamoDB requires both accounts to be in the same AWS Organization.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-migrating-table-between-accountshtml.md", + "source_url": "", + "source_hash": "e1fb342d2207a68e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-backup-encrypted-with-key-at-creation": { + "text": "DynamoDB on-demand backups are encrypted with the key that was active when the backup was created; changing the table key does not re-encrypt existing backups, and the original key is needed to restore.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionhowitworkshtml.md", + "source_url": "", + "source_hash": "4ced9ba839135ceb", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-backup-includes-table-data-indexes-streams-config": { + "text": "DynamoDB on-demand backups include table data, GSIs, LSIs, Streams configuration, and provisioned capacity settings.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateBackuphtml.md", + "source_url": "", + "source_hash": "89dc9132eca6d738", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-backup-restore-operationally-complete": { + "text": "DynamoDB backup and restore is operationally complete \u2014 on-demand backups capture full feature configuration (GSIs, LSIs, SSE, Streams) and continuous backups are always enabled, providing reliable DR foundations.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-on-demand-backup-captures-feature-config", + "dynamodb-continuous-backups-always-enabled" + ], + "outlist": [ + "dynamodb-backup-tags-not-preserved" + ], + "label": "backups capture config and continuous backups are always on, but tag loss on restore breaks operational completeness for tagged-resource governance workflows" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "dynamodb-backup-tags-not-preserved": { + "text": "Tags are not preserved on restored DynamoDB tables \u2014 they must be re-added manually after restore.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Backup-and-Restorehtml.md", + "source_url": "", + "source_hash": "c246fa36922e789e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-batch-execute-http-200-not-full-success": { + "text": "DynamoDB `BatchExecuteStatement` HTTP 200 does not guarantee all statements succeeded \u2014 individual statement errors must be checked in each `BatchStatementResponse.Error` field.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchExecuteStatementhtml.md", + "source_url": "", + "source_hash": "450b15fa95f5d3d1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-batch-execute-select-equality-all-keys": { + "text": "DynamoDB `BatchExecuteStatement` SELECT statements must specify equality conditions on all key attributes (partition key + sort key if present), returning at most one item per statement.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchExecuteStatementhtml.md", + "source_url": "", + "source_hash": "450b15fa95f5d3d1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-batch-execute-statement-max-25-same-type": { + "text": "DynamoDB `BatchExecuteStatement` supports 1\u201325 PartiQL statements per batch, but all must be the same type (all reads or all writes \u2014 no mixing).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchExecuteStatementhtml.md", + "source_url": "", + "source_hash": "450b15fa95f5d3d1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-batch-get-item-max-100-items-16mb": { + "text": "DynamoDB `BatchGetItem` supports a maximum of 100 items and 16 MB per request; partial results are returned via `UnprocessedKeys` when limits are exceeded.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchGetItemhtml.md", + "source_url": "", + "source_hash": "2251eca7f52a117a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-batch-get-nonexistent-items-consume-rcu": { + "text": "DynamoDB `BatchGetItem` silently omits nonexistent items from results but still consumes minimum read capacity units for each.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchGetItemhtml.md", + "source_url": "", + "source_hash": "2251eca7f52a117a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-batch-operations-require-dual-defensive-handling": { + "text": "DynamoDB batch operations impose both size constraints (25 items per BatchWriteItem, put/delete only) and partial failure semantics (HTTP 200 does not guarantee all statements succeeded) \u2014 clients must implement capacity-limit pagination AND per-item error checking simultaneously.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-batch-write-max-25-items-put-delete-only", + "dynamodb-batch-execute-http-200-not-full-success" + ], + "outlist": [], + "label": "Size limits and partial failure create two independent defensive coding requirements" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "insufficient" + } + }, + "dynamodb-batch-write-max-25-items-put-delete-only": { + "text": "DynamoDB `BatchWriteItem` supports up to 25 put or delete operations per call (max 16 MB total, max 400 KB per item) \u2014 it cannot update items and does not support condition expressions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchWriteItemhtml.md", + "source_url": "", + "source_hash": "e37c2a38e15494e3", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-batch-write-no-duplicate-keys-in-batch": { + "text": "DynamoDB `BatchWriteItem` rejects the entire batch if it contains multiple operations on the same item or two puts with identical hash and range keys.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchWriteItemhtml.md", + "source_url": "", + "source_hash": "e37c2a38e15494e3", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-batch-write-not-atomic-as-whole": { + "text": "DynamoDB `BatchWriteItem` is not atomic as a whole \u2014 individual operations are atomic but partial failures are possible; failed operations are returned in `UnprocessedItems` for retry with exponential backoff.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_BatchWriteItemhtml.md", + "source_url": "", + "source_hash": "e37c2a38e15494e3", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-batchgetitem-rounds-each-item-individually": { + "text": "`BatchGetItem` rounds each item individually to the next 4 KB boundary then sums, while `Query` sums all returned items first then rounds the total to 4 KB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-read-write-operationshtml.md", + "source_url": "", + "source_hash": "411d1faaffb2b2bc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-batchwriteitem-25-items-no-auto-retry": { + "text": "DynamoDB BatchWriteItem supports up to 25 items per call and does not include automatic SDK retries \u2014 you must handle UnprocessedItems yourself.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-migration-guidehtml.md", + "source_url": "", + "source_hash": "2804ded7d8a8b388", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-batchwriteitem-25-items-no-update": { + "text": "`BatchWriteItem` supports up to 25 `PutItem` and `DeleteItem` requests per call but does not support `UpdateItem`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-BestPractices_BulkDataOperationshtml.md", + "source_url": "", + "source_hash": "5594379aca39d4fa", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-batchwriteitem-puts-deletes-no-updates": { + "text": "BatchWriteItem supports PutItem and DeleteItem operations (up to 25 per call) but does not support UpdateItem.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDBhtml.md", + "source_url": "", + "source_hash": "eadb65303b7f57de", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-billing-mode-switch-auto-estimates-capacity": { + "text": "When switching DynamoDB billing mode to provisioned, initial capacity values are auto-estimated from the last 30 minutes of consumption.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTablehtml.md", + "source_url": "", + "source_hash": "af403068d9b58313", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-billing-modes-provisioned-vs-on-demand": { + "text": "DynamoDB has two billing modes: PROVISIONED (specify ReadCapacityUnits/WriteCapacityUnits) and PAY_PER_REQUEST (on-demand, no capacity planning needed); PAY_PER_REQUEST sets capacity units to 0 in the response.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-1html.md", + "source_url": "", + "source_hash": "eed13122388b9f71", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-billingmode-provisioned-or-pay-per-request": { + "text": "DynamoDB supports two billing modes: `PAY_PER_REQUEST` (on-demand, recommended for most workloads) and `PROVISIONED` (for steady, predictable workloads); `ProvisionedThroughput` is required for `PROVISIONED` and must not be specified for `PAY_PER_REQUEST`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateTablehtml.md", + "source_url": "", + "source_hash": "40ef2c64dc2312ba", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-binary-size-raw-bytes-not-base64": { + "text": "DynamoDB binary attribute size is calculated using raw byte length, not the base64-encoded length used for transmission.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-CapacityUnitCalculationshtml.md", + "source_url": "", + "source_hash": "98de9e7ab60e8767", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-bpa-15-trusted-condition-keys": { + "text": "There are 15 trusted condition keys (e.g., `aws:PrincipalAccount`, `aws:SourceVpc`, `aws:PrincipalOrgID`) that can make a `Principal: \"*\"` DynamoDB resource-based policy non-public; values must not contain wildcards or variables.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-bpa-rbphtml.md", + "source_url": "", + "source_hash": "975fa22b535dfcd4", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-bpa-blocks-public-resource-policies": { + "text": "DynamoDB Block Public Access (BPA) uses automated reasoning to analyze resource-based policies at creation/modification time and blocks policies that would grant public access to tables, indexes, or streams.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-bpa-rbphtml.md", + "source_url": "", + "source_hash": "975fa22b535dfcd4", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-bpa-does-not-cover-identity-policies": { + "text": "DynamoDB BPA only analyzes resource-based policies directly attached to DynamoDB resources \u2014 it does not cover identity-based policies or policies on associated resources like KMS keys.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-bpa-rbphtml.md", + "source_url": "", + "source_hash": "975fa22b535dfcd4", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-bulk-data-round-trip-requires-table-recreation": { + "text": "DynamoDB bulk data operations have an asymmetric round-trip: export to S3 efficiently extracts data without consuming table capacity, but import from S3 can only create new tables \u2014 bulk transformation workflows (export \u2192 process \u2192 reload) require full table recreation with re-provisioning of all settings rather than in-place updates.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-export-preferred-over-scan-for-analytics", + "dynamodb-s3-import-creates-new-table-only" + ], + "outlist": [], + "label": "efficient extraction path paired with new-table-only loading path creates forced table recreation on every round-trip" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-cannot-delete-source-table-within-24h-of-replica-creation": { + "text": "A DynamoDB source table used to create a global table replica cannot be deleted until 24 hours after creation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-CoreConceptshtml.md", + "source_url": "", + "source_hash": "42769a4a14b03c5d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-capacity-billing-has-hidden-overhead-multipliers": { + "text": "DynamoDB capacity billing includes hidden overhead beyond raw item size: 100 bytes of indexing overhead per item, rounding up to 4 KB for reads and 1 KB for writes, and a minimum 200-byte storage cost per GSI-projected item \u2014 small items pay disproportionately more per byte than large items.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-item-100-bytes-indexing-overhead", + "dynamodb-read-4kb-write-1kb-rounding", + "dynamodb-gsi-storage-overhead-200-bytes-minimum-per-projected-item" + ], + "outlist": [], + "label": "Three overhead mechanisms disproportionately penalize small-item workloads" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-capacity-billing-penalizes-small-items-disproportionately": { + "text": "DynamoDB capacity billing includes three hidden overhead mechanisms beyond raw item size: 100 bytes of indexing overhead per item, rounding up to 4 KB for reads and 1 KB for writes, and a minimum 200-byte storage cost per GSI-projected item \u2014 collectively making small-item workloads (e.g., IoT telemetry, session tokens) pay dramatically more per byte than large-item workloads.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-item-100-bytes-indexing-overhead", + "dynamodb-read-4kb-write-1kb-rounding", + "dynamodb-gsi-storage-overhead-200-bytes-minimum-per-projected-item" + ], + "outlist": [], + "label": "Three overhead mechanisms \u2014 indexing, rounding, GSI projection \u2014 compound against small items" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-capacity-metrics-1min-others-5min": { + "text": "DynamoDB capacity consumption metrics are aggregated at 1-minute intervals; most other DynamoDB CloudWatch metrics are aggregated at 5-minute intervals.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-metrics-dimensionshtml.md", + "source_url": "", + "source_hash": "940f8513ae8d9e97", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-capacity-mode-switch-limit-4-per-24h": { + "text": "DynamoDB tables can switch from provisioned to on-demand capacity mode up to 4 times per 24-hour rolling window; switching from on-demand to provisioned has no limit.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-switching-capacity-modeshtml.md", + "source_url": "", + "source_hash": "ed3711c35ec0948b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-capacity-pre-warming-survives-mode-transitions": { + "text": "DynamoDB has two independent capacity memory mechanisms \u2014 pre-warming survives capacity mode changes without requiring a mode switch, and on-demand mode remembers historical peak provisioned capacity even after capacity reductions \u2014 making capacity transitions less disruptive than expected.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-warm-throughput-no-capacity-mode-change", + "dynamodb-on-demand-remembers-historical-peak" + ], + "outlist": [], + "label": "Capacity pre-warming and historical peak memory provide state continuity across mode transitions \u2014 a notable exception to AWS's general pattern of feature toggles resetting associated state" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "dynamodb-cdc-fragile-across-both-streams-and-kinesis-paths": { + "text": "Both DynamoDB CDC paths are independently fragile: Streams requires a multi-step client protocol with expiring iterators and rate limits, while Kinesis has four independent reliability hazards (out-of-order, duplication, 1MB skip, 168-hour auto-disable) \u2014 no CDC path offers inherently reliable change data capture.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-streams-consumption-requires-fragile-client-protocol", + "dynamodb-kinesis-cdc-has-four-independent-reliability-hazards" + ], + "outlist": [], + "label": "Both available CDC mechanisms fail in different ways, meaning reliable consumption requires defending against both fragility profiles" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-cdc-not-on-views": { + "text": "Change Data Capture (CDC) does not work on SQL VIEWs \u2014 online migrations combining relational tables into DynamoDB require a physical staging table with triggers or stored procedures.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-migration-guidehtml.md", + "source_url": "", + "source_hash": "2804ded7d8a8b388", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-cdc-unit-1kb-larger-image": { + "text": "DynamoDB change data capture billing uses 1 KB change data capture units, sized from the larger of the before/after item images, with no provisioned throughput required.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-kdshtml.md", + "source_url": "", + "source_hash": "6cc5fd7d6b0a1d11", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-cfn-no-drift-detection-resource-policies": { + "text": "CloudFormation does not detect drift on DynamoDB resource-based policies and does not reconcile out-of-band policy changes unless the template itself contains a policy change.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-considerationshtml.md", + "source_url": "", + "source_hash": "38849ffee9ba1039", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-cfn-table-to-globaltable-type-change-deletes": { + "text": "Changing a CloudFormation resource type from `AWS::DynamoDB::Table` to `AWS::DynamoDB::GlobalTable` can delete the table \u2014 a safe migration requires Retain deletion policy, stack removal, console conversion, then import.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-bestpracticeshtml.md", + "source_url": "", + "source_hash": "d1ff5040f905a71c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-client-complexity-compounds-across-pagination-and-filtering": { + "text": "DynamoDB clients must simultaneously implement defensive multi-page iteration (checking LastEvaluatedKey, handling parallel scan segments) AND capacity-aware query design (avoiding post-read filtering), with filter expressions reducing useful items per page while consuming the same RCU per page.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-pagination-requires-defensive-client-implementation", + "dynamodb-filter-expressions-waste-capacity-on-filtered-items" + ], + "outlist": [], + "label": "Two independent client-side burdens that interact adversely \u2014 filters worsen pagination by reducing useful items per page without reducing cost" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-cloudtrail-audits-control-and-data-plane": { + "text": "CloudTrail can audit both DynamoDB control plane and data plane operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-walhtml.md", + "source_url": "", + "source_hash": "784f91fe5e3cfc72", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-cloudtrail-table-resource-type-includes-streams": { + "text": "When filtering DynamoDB data plane events by resource type `AWS::DynamoDB::Table`, CloudTrail logs both table and stream events for tables with streams enabled; use `AWS::DynamoDB::Stream` to capture only stream API calls.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "c5da484e3165407f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-cmk-disabled-streams-24h-ttl-30m": { + "text": "When a DynamoDB CMK is disabled, streams data has a 24-hour lifetime and TTL deletes continue for 30 minutes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionusagenoteshtml.md", + "source_url": "", + "source_hash": "18b3511ccd99e0c0", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-cmk-inaccessible-7-day-archive": { + "text": "If a DynamoDB customer managed key is disabled or scheduled for deletion, the table becomes inaccessible; after 7 days, DynamoDB creates an on-demand backup and archives the table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionhowitworkshtml.md", + "source_url": "", + "source_hash": "4ced9ba839135ceb", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-cmk-not-supported-global-table-v2017": { + "text": "Customer managed KMS keys are not supported on DynamoDB Global Table Version 2017 \u2014 must use Version 2019 or later.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionusagenoteshtml.md", + "source_url": "", + "source_hash": "18b3511ccd99e0c0", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-cmk-not-supported-with-dax": { + "text": "Customer managed KMS keys cannot be used with DynamoDB Accelerator (DAX) clusters.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionusagenoteshtml.md", + "source_url": "", + "source_hash": "18b3511ccd99e0c0", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-complex-graph-queries-use-neptune": { + "text": "For real-time multi-hop queries, complex edge traversals, or second/third-level relationship aggregations, Amazon Neptune should be used instead of DynamoDB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-adjacency-graphshtml.md", + "source_url": "", + "source_hash": "dccdeb5d762ea057", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-composite-sort-key-delimiter-hierarchy": { + "text": "DynamoDB composite sort keys use a delimiter-separated structure (e.g., `[country]#[region]#[state]#[county]#[city]#[neighborhood]`) to define hierarchical relationships queryable at any level via `begins_with`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-sort-keyshtml.md", + "source_url": "", + "source_hash": "9f98c10286b5428b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-compressed-attributes-binary-no-filter": { + "text": "Compressed DynamoDB attributes are stored as Binary type and cannot be used for filtering.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-use-s3-toohtml.md", + "source_url": "", + "source_hash": "312009ef79e08686", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-concurrent-table-operations-limit-500": { + "text": "DynamoDB has a 500 concurrent table operations limit shared across `CreateTable`, `UpdateTable`, `DeleteTable`, `UpdateTimeToLive`, `RestoreTableFromBackup`, and `RestoreTableToPointInTime` (reduced to 250 when creating tables with secondary indexes).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTimeToLivehtml.md", + "source_url": "", + "source_hash": "f77b597a0c27cd4d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-conditional-check-failed-exception": { + "text": "A failed condition expression on PutItem, UpdateItem, or DeleteItem throws `ConditionalCheckFailedException`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-2html.md", + "source_url": "", + "source_hash": "650604b8ee8752c4", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-conditional-check-failed-not-user-errors": { + "text": "DynamoDB ConditionalCheckFailedRequests return HTTP 400 but are NOT counted in the UserErrors CloudWatch metric.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-metrics-dimensionshtml.md", + "source_url": "", + "source_hash": "940f8513ae8d9e97", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-conditioncheck-read-only-validation": { + "text": "ConditionCheck is a read-only action within TransactWriteItems that validates a condition without modifying data \u2014 used to assert preconditions in a transaction.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-examplehtml.md", + "source_url": "", + "source_hash": "1bbdd05415ed6e67", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-conditioncheckitem-only-transaction-specific-action": { + "text": "`dynamodb:ConditionCheckItem` is the only transaction-specific IAM action in DynamoDB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-apis-iamhtml.md", + "source_url": "", + "source_hash": "edb526083e2d1cc5", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-consistency-mode-immutable-after-creation": { + "text": "DynamoDB global table consistency mode (MREC or MRSC) cannot be changed after table creation; modes cannot be mixed within a table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-global-table-designhtml.md", + "source_url": "", + "source_hash": "d469a51155b62f93", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-console-deletes-autoscaling-on-demand-switch": { + "text": "When switching a DynamoDB table to on-demand mode via the console, auto scaling settings are deleted; switching via CLI/SDK preserves them.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-switching-capacity-modeshtml.md", + "source_url": "", + "source_hash": "ed3711c35ec0948b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-console-to-code-output-formats": { + "text": "Console-to-Code generates CDK (TypeScript, Python, Java) and CloudFormation (YAML, JSON) templates from DynamoDB console actions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-console-to-codehtml.md", + "source_url": "", + "source_hash": "602172fc3e09c4a7", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-consumed-capacity-use-sum-divide-60": { + "text": "For DynamoDB ConsumedReadCapacityUnits and ConsumedWriteCapacityUnits, Sum is the most useful statistic \u2014 divide Sum by 60 to get per-second average; Average is skewed by periods of inactivity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-metrics-dimensionshtml.md", + "source_url": "", + "source_hash": "940f8513ae8d9e97", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-contains-filter-only-not-key-condition": { + "text": "The `contains` function is available only in DynamoDB filter expressions, not in key condition expressions; `begins_with` is available in both.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-QueryKeyConditionExpressionshtml.md", + "source_url": "", + "source_hash": "4120980cc853ce07", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-continuous-backups-always-enabled": { + "text": "Continuous backups are enabled on all DynamoDB tables at creation automatically and cannot be disabled; only PITR is an optional separate setting.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeContinuousBackupshtml.md", + "source_url": "", + "source_hash": "ee02cc1b1811ed77", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-contributor-insights-exposes-keys-plaintext": { + "text": "DynamoDB Contributor Insights displays partition and sort key values in plaintext \u2014 it should not be enabled on tables where KMS encryption of key data is required.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateContributorInsightshtml.md", + "source_url": "", + "source_hash": "c813c11a77e2f0c8", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-contributor-insights-identifies-hot-throttled-keys": { + "text": "DynamoDB Contributor Insights integrates with CloudWatch Contributor Insights to identify the most accessed or throttled partition keys in a table or GSI, with two modes: `ACCESSED_AND_THROTTLED_KEYS` and `THROTTLED_KEYS`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeContributorInsightshtml.md", + "source_url": "", + "source_hash": "7d931db9fd9c9453", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-contributor-insights-per-table-and-gsi": { + "text": "DynamoDB Contributor Insights tracks hot keys independently for both the base table and each global secondary index.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListContributorInsightshtml.md", + "source_url": "", + "source_hash": "66d53015c5dfb0fb", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-contributor-insights-two-modes": { + "text": "DynamoDB Contributor Insights has two tracking modes: `ACCESSED_AND_THROTTLED_KEYS` (all access plus throttles) and `THROTTLED_KEYS` (throttled events only); it can target a table or a specific GSI.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateContributorInsightshtml.md", + "source_url": "", + "source_hash": "c813c11a77e2f0c8", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-contributor-insights-uses-cloudwatch": { + "text": "DynamoDB Contributor Insights uses CloudWatch Contributor Insights rules under the hood to identify the most accessed (hot) keys and items.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListContributorInsightshtml.md", + "source_url": "", + "source_hash": "66d53015c5dfb0fb", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-control-plane-cache-results": { + "text": "DynamoDB best practice: cache control plane results (e.g., DescribeTable) rather than polling repeatedly, and do not mix control plane and data plane calls in the same code path.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-control-planehtml.md", + "source_url": "", + "source_hash": "dd1c73f87cc154af", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-control-plane-logged-by-default": { + "text": "DynamoDB control plane events (CreateTable, DeleteTable, UpdateTable) are logged by CloudTrail by default; data plane events (GetItem, PutItem, Query, Scan) require explicit enablement.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "c5da484e3165407f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-control-plane-throttle-2500-rps": { + "text": "DynamoDB enforces a control plane throttle limit of 2,500 requests per second.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-control-planehtml.md", + "source_url": "", + "source_hash": "dd1c73f87cc154af", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-control-plane-throttled-across-three-independent-dimensions": { + "text": "DynamoDB control plane enforces three independent throttle limits \u2014 2,500 RPS general, 500 TPS cross-account, and 500 simultaneous table operations \u2014 that compound in multi-account architectures managing large table estates.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-control-plane-throttle-2500-rps", + "dynamodb-cross-account-control-plane-500-tps", + "dynamodb-500-simultaneous-table-operations-limit" + ], + "outlist": [], + "label": "Three independent rate limits means the effective ceiling is whichever is hit first in a given access pattern" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-cost-compounds-across-three-independent-dimensions": { + "text": "DynamoDB costs multiply across three independent dimensions \u2014 consistency choice (4x between eventual and transactional), query efficiency (wasted RCU from filter expressions on unindexed access patterns), and extraction method (scan vs export for analytics) \u2014 and optimizing only one dimension leaves the other multipliers in place.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-transactional-reads-quadruple-cost-vs-eventually-consistent", + "dynamodb-filter-expressions-waste-capacity-on-filtered-items", + "dynamodb-export-preferred-over-scan-for-analytics" + ], + "outlist": [], + "label": "Three independent cost multipliers compound multiplicatively, not additively" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-cost-model-adversarial-to-resilience-best-practices": { + "text": "DynamoDB's cost optimization mechanism (reserved capacity) is structurally incompatible with its resilience mechanism (global tables/on-demand), while costs simultaneously compound across three independent dimensions (consistency, query efficiency, extraction method) \u2014 the cost model actively penalizes the architectures recommended for production resilience.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-cost-optimization-incompatible-with-global-availability", + "dynamodb-cost-compounds-across-three-independent-dimensions" + ], + "outlist": [], + "label": "Reserved capacity excludes on-demand/global tables (depth-1) while the alternative on-demand pricing compounds across consistency/query/extraction dimensions (depth-2) \u2014 organizations choosing resilience forfeit cost optimization AND face compounding costs" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-cost-multiplicative-and-structurally-unoptimizable": { + "text": "DynamoDB cost compounds across multiple dimensions (consistency, transactions, GSI projections, small item overhead) and the primary optimization path \u2014 reserved capacity \u2014 is unavailable in on-demand mode, limiting cost management options for on-demand workloads.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-total-cost-multiplies-across-six-independent-dimensions", + "dynamodb-cost-model-adversarial-to-resilience-best-practices" + ], + "outlist": [], + "label": "six multiplicative cost dimensions plus structural inability to optimize for global/on-demand workloads" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "dynamodb-cost-optimization-incompatible-with-global-availability": { + "text": "DynamoDB's primary cost optimization mechanism (reserved capacity) is structurally incompatible with its primary availability mechanism (global tables) \u2014 reserved capacity excludes replicated write capacity units, on-demand mode, and Standard-IA, while global tables charge rWCUs in every replica region, making the dominant write cost in multi-region architectures ineligible for reservation discounts.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-reserved-capacity-excludes-ondemand-ia-rwcu", + "dynamodb-global-table-writes-charged-every-replica-region" + ], + "outlist": [], + "label": "reserved capacity scope explicitly excludes rWCU + global tables charge rWCU per region = cost optimization and availability are structurally opposed" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-cost-unobservable-from-both-passive-and-active-monitoring": { + "text": "DynamoDB cost optimization is structurally impossible from both directions \u2014 multiplicative cost penalties across six dimensions are undetectable under default configurations AND proactive audit investment is still blind to automated cost mutations like TTL replica charges \u2014 passive monitoring cannot see the penalties and active monitoring cannot see the mutations.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cost-opacity-compounds-multiplicative-penalties-with-undetectable-defaults", + "audit-proactive-investment-still-blind-to-automated-cost-mutations" + ], + "outlist": [], + "label": "Combines the passive undetectability of cost defaults (depth-5) with the active blindness of proactive audit (depth-4) to close both observation paths" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-create-table-policy-no-consistency-delay": { + "text": "Resource-based policies attached via `CreateTable` are guaranteed to apply to all requests immediately with no eventual consistency delay for authorization.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_GetResourcePolicyhtml.md", + "source_url": "", + "source_hash": "1521b6d93a53bb7d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-createbackup-rate-limit-50-per-second": { + "text": "The DynamoDB `CreateBackup` API is rate-limited to 50 calls per second.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateBackuphtml.md", + "source_url": "", + "source_hash": "89dc9132eca6d738", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-createtable-async-poll-describetable": { + "text": "DynamoDB `CreateTable` is asynchronous \u2014 it returns immediately with `TableStatus: CREATING` and the table is usable only when status reaches `ACTIVE`; poll with `DescribeTable`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateTablehtml.md", + "source_url": "", + "source_hash": "40ef2c64dc2312ba", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-cross-account-billing-audit-asymmetry": { + "text": "DynamoDB cross-account operations create a billing-audit asymmetry: the resource owner pays for all operations (including those initiated by other accounts) while CloudTrail logs appear in both accounts \u2014 billing responsibility concentrates on the resource owner but audit visibility is distributed", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-cross-account-resource-owner-pays", + "dynamodb-cross-account-cloudtrail-both-accounts" + ], + "outlist": [], + "label": "Cost attribution and audit visibility follow different distribution patterns in cross-account DynamoDB access" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-cross-account-cloudtrail-both-accounts": { + "text": "DynamoDB cross-account requests are logged in CloudTrail in both the resource owner's and the requestor's accounts.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-cross-account-accesshtml.md", + "source_url": "", + "source_hash": "ec30c61ef2c89bea", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-cross-account-control-plane-500-tps": { + "text": "Cross-account access of DynamoDB control plane APIs has a lower TPS limit of 500 requests per second.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-cross-account-accesshtml.md", + "source_url": "", + "source_hash": "ec30c61ef2c89bea", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-cross-account-lambda-stream-four-actions": { + "text": "Cross-account Lambda triggers on DynamoDB Streams require four stream actions in the resource-based policy: `DescribeStream`, `GetRecords`, `GetShardIterator`, and `ListShards`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-cross-account-accesshtml.md", + "source_url": "", + "source_hash": "ec30c61ef2c89bea", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-cross-account-migration-two-methods": { + "text": "DynamoDB tables can be migrated between AWS accounts using two methods: AWS Backup cross-account backup/restore, and DynamoDB Export/Import via S3.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-migrating-table-between-accountshtml.md", + "source_url": "", + "source_hash": "e1fb342d2207a68e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-cross-account-requires-customer-managed-kms": { + "text": "Cross-account access to DynamoDB tables via resource-based policies does not work with AWS managed KMS keys \u2014 customer-managed KMS keys are required because AWS managed key policies cannot grant cross-account access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-considerationshtml.md", + "source_url": "", + "source_hash": "38849ffee9ba1039", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-cross-account-requires-full-table-arn": { + "text": "DynamoDB cross-account API calls require the full table ARN in the `TableName` parameter; if only a table name is provided, the operation targets the caller's own account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-cross-account-accesshtml.md", + "source_url": "", + "source_hash": "ec30c61ef2c89bea", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-cross-account-resource-owner-pays": { + "text": "The resource owner's account is billed for all DynamoDB operations, including those from cross-account principals.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-cross-account-accesshtml.md", + "source_url": "", + "source_hash": "ec30c61ef2c89bea", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-csv-empty-columns-omitted": { + "text": "Empty CSV columns in DynamoDB imports are omitted from the item entirely, not stored as empty strings.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportFormathtml.md", + "source_url": "", + "source_hash": "d9b68dd080460c8b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-csv-import-non-key-columns-as-strings": { + "text": "CSV imports into DynamoDB store all non-key, non-index columns as DynamoDB strings \u2014 no automatic type inference for numbers, booleans, or other types.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportFormathtml.md", + "source_url": "", + "source_hash": "d9b68dd080460c8b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-cur-no-region-prefix-means-us-east-1": { + "text": "In AWS Cost and Usage Reports, an absent region prefix in DynamoDB UsageType codes means `us-east-1`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-understanding-billinghtml.md", + "source_url": "", + "source_hash": "2af811c386010b1d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-dax-cloudwatch-backup-separate-product-codes": { + "text": "DAX charges appear under `AmazonDAX`, CloudWatch Contributor Insights under `AmazonCloudWatch`, and managed backups under `AWSBackup` \u2014 not under the `AmazonDynamoDB` product code in CUR.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-understanding-billinghtml.md", + "source_url": "", + "source_hash": "2af811c386010b1d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-dax-ipv6-resource-policy-exemption": { + "text": "In IPv6-only environments with IP-based DynamoDB resource policies, an `ArnNotEquals` condition must exempt the DAX cluster's IAM role.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-exampleshtml.md", + "source_url": "", + "source_hash": "6981136ab210319f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-dax-microsecond-latency": { + "text": "DynamoDB Accelerator (DAX) provides microsecond response times, up to 10x improvement over base DynamoDB single-digit millisecond latency.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Introductionhtml.md", + "source_url": "", + "source_hash": "d8bff1fab0d99ba3", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-default-20-gsi-5-lsi-per-table": { + "text": "DynamoDB defaults to a maximum of 20 GSIs (adjustable) and 5 LSIs (hard limit) per table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-SecondaryIndexeshtml.md", + "source_url": "", + "source_hash": "523e6bf1bd55e95c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-default-encryption-aws-owned-cmk": { + "text": "DynamoDB tables are encrypted at rest by default using an AWS-owned CMK at no extra charge; customer-managed KMS keys can optionally be specified via `--sse-specification`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-1html.md", + "source_url": "", + "source_hash": "eed13122388b9f71", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-default-provisioned-quota-20000-rcu-wcu": { + "text": "DynamoDB default provisioned capacity quotas are 20,000 RCU/WCU at the account level and 10,000 RCU/WCU per table per Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeLimitshtml.md", + "source_url": "", + "source_hash": "57d98d1a8ae89e77", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-default-table-throughput-limit-40k": { + "text": "DynamoDB's default table-level throughput limit is 40,000 RCUs and 40,000 WCUs per table (can request increase).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-provisioned-capacity-modehtml.md", + "source_url": "", + "source_hash": "a48b7f82df21f99c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-delete-resource-policy-api": { + "text": "The `DeleteResourcePolicy` API removes a resource-based policy from a DynamoDB table; the only required parameter is `--resource-arn`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-delete-resource-based-policyhtml.md", + "source_url": "", + "source_hash": "6b137e47203655e7", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-delete-resource-policy-async": { + "text": "`DeleteResourcePolicy` is asynchronous \u2014 a `GetResourcePolicy` call immediately after deletion may still return the old policy.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteResourcePolicyhtml.md", + "source_url": "", + "source_hash": "cee8ddf9ade7e259", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-delete-resource-policy-idempotent": { + "text": "`DeleteResourcePolicy` is idempotent \u2014 repeated calls on the same resource produce no error unless `ExpectedRevisionId` is specified.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteResourcePolicyhtml.md", + "source_url": "", + "source_hash": "cee8ddf9ade7e259", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-delete-table-async-deleting-status": { + "text": "DynamoDB table deletion is asynchronous \u2014 the `DeleteTable` API returns immediately with `TableStatus: \"DELETING\"`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-6html.md", + "source_url": "", + "source_hash": "697088745782f10b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-delete-table-cli-only-requires-table-name": { + "text": "The `aws dynamodb delete-table` CLI command only requires `--table-name` as a parameter.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-6html.md", + "source_url": "", + "source_hash": "697088745782f10b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-delete-table-irreversible": { + "text": "DynamoDB DeleteTable is irreversible \u2014 there is no undo or recovery mechanism.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithTablesBasicshtml.md", + "source_url": "", + "source_hash": "2391f0f105c07e2e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-delete-table-removes-all-data-permanently": { + "text": "Deleting a DynamoDB table removes the table and all of its data permanently; the operation is irreversible.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-6html.md", + "source_url": "", + "source_hash": "697088745782f10b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-delete-table-requires-active-state": { + "text": "A DynamoDB table must be in `ACTIVE` state to be deleted; tables in `CREATING` or `UPDATING` state return `ResourceInUseException`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteTablehtml.md", + "source_url": "", + "source_hash": "9714e2e9f75d4190", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-deletebackup-rate-limit-10-per-second": { + "text": "The DynamoDB `DeleteBackup` API is rate-limited to 10 calls per second.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteBackuphtml.md", + "source_url": "", + "source_hash": "6d29a7785714d7b1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-deleteitem-idempotent-without-conditions": { + "text": "DynamoDB `DeleteItem` is idempotent without conditions \u2014 deleting a non-existent item succeeds silently without error.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteItemhtml.md", + "source_url": "", + "source_hash": "12da850090812708", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-deleteitem-returnvalues-none-or-all-old-only": { + "text": "DynamoDB `DeleteItem` only supports `NONE` and `ALL_OLD` for `ReturnValues`; returning old values does not consume additional read capacity units.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteItemhtml.md", + "source_url": "", + "source_hash": "12da850090812708", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-deletion-protection-enabled-setting": { + "text": "DynamoDB tables have a `DeletionProtectionEnabled` boolean setting that safeguards against accidental table deletion.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTablehtml.md", + "source_url": "", + "source_hash": "d10921acd4385a19", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-deletion-protection-off-by-default": { + "text": "DynamoDB deletion protection is off by default for all tables, including global replicas and restored tables; when enabled, no one can delete the table regardless of IAM permissions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithTablesBasicshtml.md", + "source_url": "", + "source_hash": "2391f0f105c07e2e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-deletion-protection-toggle": { + "text": "DynamoDB `DeletionProtectionEnabled` is a table-level toggle set via `UpdateTable` that prevents accidental table deletion.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTablehtml.md", + "source_url": "", + "source_hash": "af403068d9b58313", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-denormalization-eliminates-joins": { + "text": "DynamoDB's core modeling principle is denormalization to eliminate JOINs, storing data so queries are answered in a single request with constant runtime complexity regardless of data size.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-relational-modelinghtml.md", + "source_url": "", + "source_hash": "4722296008e0bb1c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-describe-backup-rate-limit-10-per-second": { + "text": "The DynamoDB `DescribeBackup` API is rate-limited to 10 calls per second.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeBackuphtml.md", + "source_url": "", + "source_hash": "bab9c1290f181ff4", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-describe-endpoints-no-parameters": { + "text": "The DynamoDB `DescribeEndpoints` API takes no input parameters and returns regional endpoint information including address and cache duration.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeEndpointshtml.md", + "source_url": "", + "source_hash": "0e50e372c950c9be", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-describe-kinesis-streaming-table-scoped": { + "text": "The `DescribeKinesisStreamingDestination` API is table-scoped \u2014 it queries one table at a time and requires only `TableName` (or table ARN) as input.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeKinesisStreamingDestinationhtml.md", + "source_url": "", + "source_hash": "77f7f9e09256d697", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-describe-table-eventually-consistent": { + "text": "DynamoDB DescribeTable is eventually consistent and may throw ResourceNotFoundException immediately after CreateTable.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithTablesBasicshtml.md", + "source_url": "", + "source_hash": "2391f0f105c07e2e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-describelimits-four-values": { + "text": "`DescribeLimits` returns four values: `AccountMaxReadCapacityUnits`, `AccountMaxWriteCapacityUnits`, `TableMaxReadCapacityUnits`, and `TableMaxWriteCapacityUnits`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeLimitshtml.md", + "source_url": "", + "source_hash": "57d98d1a8ae89e77", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-describelimits-throttle-once-per-minute": { + "text": "`DescribeLimits` should be called at most once per minute; more frequent calls will be throttled.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeLimitshtml.md", + "source_url": "", + "source_hash": "57d98d1a8ae89e77", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-describetable-eventually-consistent": { + "text": "`DescribeTable` is eventually consistent \u2014 calling it immediately after `CreateTable` may throw `ResourceNotFoundException`; retry after a few seconds.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTablehtml.md", + "source_url": "", + "source_hash": "d10921acd4385a19", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-design-philosophy-inverts-rdbms-normalization": { + "text": "DynamoDB's core design philosophy is the inverse of RDBMS: start from access patterns (not entities), denormalize to eliminate joins, and optimize for locality of reference \u2014 violating any one principle (normalizing data, designing schema-first, or scattering related items) undermines the entire model.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-schema-design-access-pattern-driven", + "dynamodb-denormalization-eliminates-joins", + "dynamodb-locality-of-reference-top-performance-factor" + ], + "outlist": [], + "label": "Three interconnected design principles form a coherent anti-RDBMS philosophy" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-disable-kinesis-streaming-preserves-resources": { + "text": "DisableKinesisStreamingDestination stops replication from a DynamoDB table to a Kinesis Data Stream without deleting either resource.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DisableKinesisStreamingDestinationhtml.md", + "source_url": "", + "source_hash": "b89671ec044e4089", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-dual-stack-endpoints-use-api-aws-domain": { + "text": "DynamoDB dual-stack endpoints (IPv4/IPv6) use the `api.aws` domain suffix (e.g., `dynamodb..api.aws`), not `amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-AccessingDynamoDBhtml.md", + "source_url": "", + "source_hash": "3ad029f4f930dc76", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-eight-cost-optimization-dimensions": { + "text": "DynamoDB has eight cost optimization dimensions: table-level cost analysis, capacity mode, auto scaling settings, table class selection, unused resources, usage patterns, streams usage, and right-sized provisioning.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-cost-optimizationhtml.md", + "source_url": "", + "source_hash": "55934f3532ae003a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-encryption-aes-256": { + "text": "DynamoDB encryption at rest uses AES-256 encryption standard with envelope encryption via AWS KMS key hierarchy.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionhowitworkshtml.md", + "source_url": "", + "source_hash": "4ced9ba839135ceb", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-encryption-at-rest-always-enabled": { + "text": "DynamoDB encryption at rest is always enabled and cannot be disabled \u2014 you choose which key type, not whether to encrypt.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionusagenoteshtml.md", + "source_url": "", + "source_hash": "18b3511ccd99e0c0", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-encryption-at-rest-always-on": { + "text": "DynamoDB encryption at rest is always enabled and cannot be disabled; you can only choose between AWS owned key (free), AWS managed key, or customer managed key.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-EncryptionAtResthtml.md", + "source_url": "", + "source_hash": "28218c124c391615", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-encryption-at-rest-default-aws-owned-key": { + "text": "DynamoDB encryption at rest is enabled by default using AWS-owned keys at no extra charge; also supports AWS managed keys and customer managed KMS keys.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Introductionhtml.md", + "source_url": "", + "source_hash": "d8bff1fab0d99ba3", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-encryption-context-table-name-account-id": { + "text": "DynamoDB encryption context includes `aws:dynamodb:tableName` (table name) and `aws:dynamodb:subscriberId` (account ID), usable for audit and policy conditions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionusagenoteshtml.md", + "source_url": "", + "source_hash": "18b3511ccd99e0c0", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-encryption-defense-extends-to-all-global-table-versions": { + "text": "DynamoDB encryption defense-in-depth with customer-managed KMS keys extends to all global table deployment patterns, including backup encryption key inheritance.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-encryption-defense-in-depth-with-zero-cost-baseline", + "dynamodb-backup-encrypted-with-key-at-creation" + ], + "outlist": [ + "dynamodb-cmk-not-supported-global-table-v2017" + ], + "label": "Customer-managed KMS keys are unavailable on legacy 2017 global tables, limiting encryption control to AWS owned keys for that version" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "dynamodb-encryption-defense-in-depth-with-zero-cost-baseline": { + "text": "DynamoDB encryption provides defense-in-depth with a zero-cost baseline: AWS owned keys are free with no KMS quota impact, customer-managed keys add audit trails via encryption context (table name + account ID), and KMS key caching with 5-minute refresh limits operational overhead.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-aws-owned-key-free-no-kms-quota", + "dynamodb-encryption-context-table-name-account-id", + "dynamodb-kms-cache-refresh-5-minutes" + ], + "outlist": [], + "label": "zero-cost baseline encryption + auditable customer keys + KMS caching = layered encryption with minimal operational overhead" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-encryption-key-switchable-no-downtime": { + "text": "DynamoDB encryption key type can be changed on existing tables at any time with no downtime or service degradation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-encryptiontutorialhtml.md", + "source_url": "", + "source_hash": "6fa01f0dde8f97b1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-encryption-key-type-switchable-anytime": { + "text": "DynamoDB allows switching between encryption key types (AWS owned, AWS managed, customer managed) at any time on an existing table without downtime or code changes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-EncryptionAtResthtml.md", + "source_url": "", + "source_hash": "28218c124c391615", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-endpoint-cache-period-in-minutes": { + "text": "DynamoDB `DescribeEndpoints` returns a `CachePeriodInMinutes` field (e.g., 1440) indicating how long clients should cache the endpoint before re-querying.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeEndpointshtml.md", + "source_url": "", + "source_hash": "0e50e372c950c9be", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-event-processing-simultaneously-constrained-and-unreliable": { + "text": "DynamoDB event processing faces simultaneous capacity and reliability failures: stream fan-out is constrained by ordering requirements (parent-before-child) and consumer limits (max 2 Lambda consumers), while Kinesis CDC pipelines independently face four reliability hazards (out-of-order, duplication, size limits, auto-disable) \u2014 addressing capacity constraints by moving to Kinesis introduces reliability hazards, and neither path is sufficient alone.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-stream-fan-out-constrained-by-ordering-and-capacity", + "dynamodb-kinesis-cdc-has-four-independent-reliability-hazards" + ], + "outlist": [], + "label": "Streams are capacity-constrained (depth-1) and Kinesis CDC is unreliable (depth-1) \u2014 the two event processing paths each fail on a different dimension, and switching between them trades one failure mode for another" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-eventually-consistent-reads-half-cost": { + "text": "DynamoDB eventually consistent reads consume half the RCUs of strongly consistent reads.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksReadConsistencyhtml.md", + "source_url": "", + "source_hash": "3cbfb3127fb499ed", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-executestatement-singleton-writes-only": { + "text": "DynamoDB ExecuteStatement supports reads and singleton writes only (one item at a time); use BatchExecuteStatement for batch operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExecuteStatementhtml.md", + "source_url": "", + "source_hash": "905187d602cf709a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-executetransaction-max-100-statements": { + "text": "DynamoDB ExecuteTransaction supports a maximum of 100 PartiQL statements per transaction, and all statements must be either reads or writes (cannot mix).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExecuteTransactionhtml.md", + "source_url": "", + "source_hash": "0c0e2dfe20ee8d50", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-export-billed-size-and-item-count": { + "text": "DynamoDB export metadata includes both `BilledSizeBytes` (what you pay for) and `ItemCount` as separate metrics.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeExporthtml.md", + "source_url": "", + "source_hash": "1c5f23da454dda68", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-export-cross-account-requires-s3bucketowner": { + "text": "DynamoDB cross-account exports to S3 require the S3BucketOwner parameter (12-digit account ID).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExportTableToPointInTimehtml.md", + "source_url": "", + "source_hash": "58c0ecf29940ab4c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-export-formats-dynamodb-json-and-ion": { + "text": "DynamoDB table exports support two formats: DYNAMODB_JSON and ION, with two export types: FULL_EXPORT (default) and INCREMENTAL_EXPORT.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExportTableToPointInTimehtml.md", + "source_url": "", + "source_hash": "58c0ecf29940ab4c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-export-kms-key-same-region-as-s3": { + "text": "When using KMS encryption for DynamoDB exports, the KMS key must be in the same Region as the destination S3 bucket.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataExport_Requestinghtml.md", + "source_url": "", + "source_hash": "13d04fd34d5bcf0c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-export-limit-500-tables-50-imports": { + "text": "DynamoDB `LimitExceededException` covers: up to 500 simultaneous table operations, 250 with secondary indexes, 50 simultaneous imports, and a soft limit of 2,500 tables.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeExporthtml.md", + "source_url": "", + "source_hash": "1c5f23da454dda68", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-export-metadata-retained-90-days": { + "text": "DynamoDB export task metadata is retained for 90 days; S3 objects persist according to bucket policies and are never deleted by DynamoDB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataExport_Requestinghtml.md", + "source_url": "", + "source_hash": "13d04fd34d5bcf0c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-export-no-requester-pays-buckets": { + "text": "DynamoDB exports to S3 do not support requester pays buckets as the destination.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataExport_Requestinghtml.md", + "source_url": "", + "source_hash": "13d04fd34d5bcf0c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-export-no-table-read-capacity-consumed": { + "text": "DynamoDB ExportTableToPointInTime does not consume table read capacity \u2014 it works from PITR snapshots.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExportTableToPointInTimehtml.md", + "source_url": "", + "source_hash": "58c0ecf29940ab4c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-export-not-found-returns-400": { + "text": "DynamoDB `ExportNotFoundException` returns HTTP 400 (client error), not 404.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeExporthtml.md", + "source_url": "", + "source_hash": "1c5f23da454dda68", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-export-not-transactionally-consistent": { + "text": "DynamoDB exports to S3 are not transactionally consistent (transactions can be torn across exports), but contiguous exports are eventually consistent and capture all changes without duplicates.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataExport_Requestinghtml.md", + "source_url": "", + "source_hash": "13d04fd34d5bcf0c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-export-preferred-over-scan-for-analytics": { + "text": "DynamoDB export to S3 is strictly superior to Scan for bulk data extraction \u2014 exports consume zero table read capacity while scans consume RCUs for full 1 MB pages including filtered items.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-export-no-table-read-capacity-consumed", + "dynamodb-scan-1mb-page-limit", + "dynamodb-filter-expression-does-not-reduce-rcu" + ], + "outlist": [], + "label": "Three cost penalties of Scan (page-level reads, no filter reduction, capacity consumption) are all absent from export" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-export-requires-pitr-enabled": { + "text": "DynamoDB ExportTableToPointInTime requires Point-in-Time Recovery (PITR) to be enabled on the source table; otherwise PointInTimeRecoveryUnavailableException is thrown.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExportTableToPointInTimehtml.md", + "source_url": "", + "source_hash": "58c0ecf29940ab4c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-export-two-formats-json-ion": { + "text": "DynamoDB table exports to S3 support two formats: DynamoDB JSON and Amazon Ion; both are gzip-compressed and use newline-delimited items.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataExportOutputhtml.md", + "source_url": "", + "source_hash": "91dedf9bb9d135c2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-export-uses-pitr-no-read-capacity": { + "text": "ExportTableToPointInTime exports DynamoDB data to S3 without consuming read capacity units \u2014 it uses PITR snapshots.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDBhtml.md", + "source_url": "", + "source_hash": "eadb65303b7f57de", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-failed-conditional-writes-consume-wcus": { + "text": "DynamoDB conditional writes that fail (condition evaluates to false) still consume WCUs based on the larger of the existing or new item size.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-read-write-operationshtml.md", + "source_url": "", + "source_hash": "411d1faaffb2b2bc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-fgac-attribute-level-condition-keys": { + "text": "DynamoDB supports attribute-level access control using the `dynamodb:Attributes` condition key with `ForAllValues:StringEquals` to restrict which attributes can be read or written, and `dynamodb:Select` set to `SPECIFIC_ATTRIBUTES` to prevent leaking disallowed attributes through index projections.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_examples_dynamodb_attributeshtml.md", + "source_url": "", + "source_hash": "9c1e099ef43cc3b6", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-fgac-attributes-checks-request-not-response": { + "text": "The `dynamodb:Attributes` IAM condition key evaluates only request parameters (e.g., ProjectionExpression), not response attributes \u2014 omitting ProjectionExpression returns all attributes regardless of the policy.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-specifying-conditionshtml.md", + "source_url": "", + "source_hash": "a371d793f7470557", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-fgac-incompatible-global-tables-replication": { + "text": "DynamoDB fine-grained access control conditions must not be applied to global tables replication service-linked roles, as it may break replication.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-specifying-conditionshtml.md", + "source_url": "", + "source_hash": "a371d793f7470557", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-fgac-leadingkeys-requires-forallvalues": { + "text": "The `dynamodb:LeadingKeys` IAM condition key requires the `ForAllValues` set operator even for single-item actions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-specifying-conditionshtml.md", + "source_url": "", + "source_hash": "a371d793f7470557", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-fgac-putitem-deleteitem-bypass-attribute-restrictions": { + "text": "`PutItem` and `DeleteItem` replace entire items, so they bypass attribute-level restrictions \u2014 `UpdateItem` should be used instead for attribute-restricted writes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-specifying-conditionshtml.md", + "source_url": "", + "source_hash": "a371d793f7470557", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-fgac-three-conditions-for-attribute-security": { + "text": "To properly restrict DynamoDB attribute-level access, you must combine all three condition keys: `dynamodb:Attributes`, `dynamodb:Select`, and `dynamodb:ReturnValues`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-specifying-conditionshtml.md", + "source_url": "", + "source_hash": "a371d793f7470557", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-filter-cannot-contain-key-attributes": { + "text": "DynamoDB filter expressions cannot contain partition key or sort key attributes \u2014 those must be specified in the key condition expression.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-QueryFilterExpressionhtml.md", + "source_url": "", + "source_hash": "341e9b3a1829d142", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-filter-expression-does-not-reduce-capacity": { + "text": "DynamoDB filter expressions are applied after the read operation completes, so they do not reduce read capacity consumption.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Queryhtml.md", + "source_url": "", + "source_hash": "9ac0bd02d320146e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-filter-expression-does-not-reduce-consumed-capacity": { + "text": "Filter expressions are applied after items are read and do not reduce ScannedCount or ConsumedCapacity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-5html.md", + "source_url": "", + "source_hash": "2d878d2f889fae36", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-filter-expression-does-not-reduce-rcu": { + "text": "DynamoDB filter expressions are applied after the Query completes and do not reduce read capacity unit (RCU) consumption \u2014 you pay for all items read regardless of filtering.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-QueryFilterExpressionhtml.md", + "source_url": "", + "source_hash": "341e9b3a1829d142", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-filter-expressions-waste-capacity-on-filtered-items": { + "text": "DynamoDB queries using filter expressions pay full RCU cost for all scanned data (up to 1 MB per page) even when most items are filtered out post-read.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-filter-expression-does-not-reduce-rcu", + "dynamodb-scan-1mb-page-limit" + ], + "outlist": [], + "label": "Filters are cosmetic \u2014 capacity is consumed before filtering, so poor key design with compensating filters is a silent cost multiplier" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-free-tier-25gb-25rcu-25wcu-always-free": { + "text": "DynamoDB free tier includes 25 GB storage + 25 RCU/25 WCU (~200M requests/month) and is always free (not 12-month limited).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Introductionhtml.md", + "source_url": "", + "source_hash": "d8bff1fab0d99ba3", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-free-tier-25gb-25wcu-25rcu": { + "text": "DynamoDB AWS Free Tier includes 25 GB storage, 25 WCU, and 25 RCU of provisioned capacity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GettingStartedDynamoDBhtml.md", + "source_url": "", + "source_hash": "85f2c5869989a9a1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-full-access-arn": { + "text": "The ARN for the AmazonDynamoDBFullAccess managed policy is `arn:aws:iam::aws:policy/AmazonDynamoDBFullAccess`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AmazonDynamoDBFullAccesshtml.md", + "source_url": "", + "source_hash": "7c48bf475c8b783e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-full-access-excludes-s3-glue-export-import": { + "text": "The `AmazonDynamoDBFullAccess` policy does not include S3, Glue, or other export/import-related permissions \u2014 features like Export to S3 or Import from S3 require separate grants.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AmazonDynamoDBFullAccesshtml.md", + "source_url": "", + "source_hash": "7c48bf475c8b783e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-full-access-iam-passrole-condition-restricted": { + "text": "The `AmazonDynamoDBFullAccess` policy restricts `iam:PassRole` with the `iam:PassedToService` condition, allowing roles to be passed only to `application-autoscaling.amazonaws.com` and `dax.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AmazonDynamoDBFullAccesshtml.md", + "source_url": "", + "source_hash": "7c48bf475c8b783e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-full-access-policy-includes-cross-service-permissions": { + "text": "The `AmazonDynamoDBFullAccess` managed policy grants permissions beyond DynamoDB \u2014 it includes `dax:*`, Application Auto Scaling, CloudWatch, Data Pipeline, EC2 (VPC describe), IAM (read roles), KMS, SNS, Lambda, Resource Groups, Tagging, and Kinesis.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AmazonDynamoDBFullAccesshtml.md", + "source_url": "", + "source_hash": "7c48bf475c8b783e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gateway-free-interface-billed": { + "text": "DynamoDB gateway VPC endpoints are free but don't support on-premises or cross-region access; interface endpoints are billed but support both \u2014 both can coexist in the same VPC.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-privatelink-interface-endpointshtml.md", + "source_url": "", + "source_hash": "f3b01141a879fddf", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-getitem-eventually-consistent-by-default": { + "text": "GetItem defaults to eventually consistent reads (0.5 RCU for items \u2264 4 KB); use `--consistent-read` for strongly consistent reads (1.0 RCU for items \u2264 4 KB).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-3html.md", + "source_url": "", + "source_hash": "6a57c3c610e9d840", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-getitem-eventually-consistent-default": { + "text": "DynamoDB `GetItem` defaults to eventually consistent reads; set `ConsistentRead: true` for strongly consistent reads.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_GetItemhtml.md", + "source_url": "", + "source_hash": "5998059feae4cd70", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-getitem-missing-item-not-error": { + "text": "When `GetItem` finds no matching item, the HTTP response is still 200 but the `Item` element is omitted \u2014 it is not an error.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_GetItemhtml.md", + "source_url": "", + "source_hash": "5998059feae4cd70", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-getitem-no-secondary-index-access": { + "text": "`GetItem` does not access secondary indexes \u2014 specifying `INDEXES` for `ReturnConsumedCapacity` still only returns table-level capacity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_GetItemhtml.md", + "source_url": "", + "source_hash": "5998059feae4cd70", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-getitem-rcu-cost": { + "text": "A strongly consistent `GetItem` read consumes 1 RCU per 4 KB; an eventually consistent read consumes 0.5 RCU per 4 KB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_GetItemhtml.md", + "source_url": "", + "source_hash": "5998059feae4cd70", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-getitem-requires-full-primary-key": { + "text": "`GetItem` requires all primary key components \u2014 partition key alone for simple keys, both partition key and sort key for composite keys; omitting the sort key is an error.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_GetItemhtml.md", + "source_url": "", + "source_hash": "5998059feae4cd70", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-getitem-returns-empty-if-not-found": { + "text": "If no matching item exists, GetItem returns an empty result \u2014 no error is thrown.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-3html.md", + "source_url": "", + "source_hash": "6a57c3c610e9d840", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-99999-availability-sla": { + "text": "DynamoDB global tables offer 99.999% availability SLA (five nines) compared to 99.99% for single-Region tables.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-CoreConceptshtml.md", + "source_url": "", + "source_hash": "42769a4a14b03c5d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-cfn-single-stack-all-replicas": { + "text": "All DynamoDB global table replicas must be defined in a single Region's CloudFormation stack; using separate Regional stacks causes drift errors.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-bestpracticeshtml.md", + "source_url": "", + "source_hash": "d1ff5040f905a71c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-cmk-inaccessible-20-hours": { + "text": "DynamoDB global table replicas are removed from the replication group after 20 hours of inaccessible CMK.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionhowitworkshtml.md", + "source_url": "", + "source_hash": "4ced9ba839135ceb", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-deletion-protection-per-replica": { + "text": "DynamoDB global table deletion protection must be enabled individually on each replica \u2014 it is not inherited across replicas.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-bestpracticeshtml.md", + "source_url": "", + "source_hash": "d1ff5040f905a71c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-equal-write-capacity-without-autoscaling": { + "text": "For DynamoDB global tables without auto scaling, equal replicated write capacity units must be provisioned across all replicas and matching secondary indexes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateGlobalTablehtml.md", + "source_url": "", + "source_hash": "914656ec2a6cf328", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-gsi-updates-use-standard-write-units": { + "text": "GSI updates on DynamoDB global table replicas are always billed as standard WRUs/WCUs, not replicated write units (rWRUs/rWCUs).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-global-tables-billinghtml.md", + "source_url": "", + "source_hash": "848147980e503d0e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-not-found-returns-400": { + "text": "DynamoDB `GlobalTableNotFoundException` returns HTTP 400 (client error), not 404.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeGlobalTablehtml.md", + "source_url": "", + "source_hash": "b57bb4f6209cbcd5", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-one-replica-per-region": { + "text": "Only one replica per AWS Region is allowed in a DynamoDB global table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-CoreConceptshtml.md", + "source_url": "", + "source_hash": "42769a4a14b03c5d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-per-replica-read-capacity-override": { + "text": "DynamoDB global tables allow per-replica throughput overrides, enabling different read capacity settings in each region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeGlobalTablehtml.md", + "source_url": "", + "source_hash": "b57bb4f6209cbcd5", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-replication-sub-second": { + "text": "DynamoDB Global Tables replicate changes across regions typically within one second using eventual consistency.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksReadConsistencyhtml.md", + "source_url": "", + "source_hash": "3cbfb3127fb499ed", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-requires-streams-new-and-old-images": { + "text": "DynamoDB global tables require DynamoDB Streams enabled with both new and old images on all replica tables.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateGlobalTablehtml.md", + "source_url": "", + "source_hash": "914656ec2a6cf328", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-resource-policies-per-replica": { + "text": "For DynamoDB Global Tables, resource-based policies are configured per-replica (each replica region can have its own policy), not globally across all replicas.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-create-tablehtml.md", + "source_url": "", + "source_hash": "7c4cf5a02829fc21", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-rwcu-gsi-standard-wcu": { + "text": "DynamoDB global table writes use replicated write units (rWCU for provisioned, rWRU for on-demand), but GSI writes on global tables use standard WCU/WRU.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-understanding-billinghtml.md", + "source_url": "", + "source_hash": "2af811c386010b1d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-security-governance-fragmented-by-design": { + "text": "DynamoDB global table security governance is fragmented by design: resource-based policies must be independently configured per replica region AND fine-grained access control conditions must explicitly exclude replication service-linked roles \u2014 security administration scales linearly with replica count and carries replication-specific exclusion requirements that are easy to miss.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-global-table-resource-policies-per-replica", + "dynamodb-fgac-incompatible-global-tables-replication" + ], + "outlist": [], + "label": "per-replica policy management plus FGAC replication exclusions fragment security governance across regions" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-global-table-small-item-cost-triply-penalized": { + "text": "DynamoDB global tables with small items face compounding cost penalties across three independent dimensions: per-item overhead is disproportionately large relative to item size, writes replicate to every region multiplying cost, and transactional writes double it again.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-capacity-billing-penalizes-small-items-disproportionately", + "dynamodb-global-table-write-costs-multiply-across-regions-and-transactions" + ], + "outlist": [], + "label": "small-item overhead penalty \u00d7 region replication \u00d7 transaction doubling = triple cost compound on the smallest writes" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-global-table-unified-governance-achievable": { + "text": "DynamoDB table-level resource-based policies with implicit index coverage and 20KB size budget provide a unified governance mechanism for global tables", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-resource-based-policy-max-20kb", + "dynamodb-table-policy-covers-indexes" + ], + "outlist": [ + "dynamodb-global-table-security-governance-fragmented-by-design" + ], + "label": "Table policies cover indexes and have 20KB budget UNLESS global table per-replica policy fragmentation makes unified governance impossible \u2014 each replica requires independent policy management, defeating the consolidation benefit of implicit index coverage" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "dynamodb-global-table-version-2019-current": { + "text": "DynamoDB global tables have two versions: 2019.11.21 (Current) and 2017.11.29 (Legacy); the Current version should always be used.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-bestpracticeshtml.md", + "source_url": "", + "source_hash": "d1ff5040f905a71c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-warm-throughput-propagates": { + "text": "For DynamoDB global tables (version 2019.11.21/Current), warm throughput settings automatically propagate to all replicas.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-warm-throughputhtml.md", + "source_url": "", + "source_hash": "7a8619578a96bd5e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-witness-replicas-free": { + "text": "Witness replicas in DynamoDB global tables (MRSC mode) do not incur replicated write unit costs, storage costs, or data transfer costs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-global-tables-billinghtml.md", + "source_url": "", + "source_hash": "848147980e503d0e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-write-costs-multiply-across-regions-and-transactions": { + "text": "DynamoDB global table write costs are subject to triple multiplication: replicated write units charge in every replica region, transactions double the per-item cost, and GSI writes on global tables use standard (non-replicated) WCUs billed separately \u2014 making global transactional workloads with GSIs dramatically more expensive than single-region equivalents.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-global-table-writes-charged-every-replica-region", + "dynamodb-transaction-2x-capacity-cost", + "dynamodb-global-table-rwcu-gsi-standard-wcu" + ], + "outlist": [], + "label": "Region replication, transaction overhead, and GSI billing each independently multiply write costs" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-global-table-write-global-read-per-replica": { + "text": "In DynamoDB Global Tables (legacy 2017.11.29), write capacity is set globally across all replicas while read capacity is configured per-replica \u2014 an asymmetric design.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateGlobalTableSettingshtml.md", + "source_url": "", + "source_hash": "1b1c6bb2188ef8f5", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-table-writes-charged-every-replica-region": { + "text": "Writes to DynamoDB global tables are charged in every region containing a replica using replicated write units (rWRU/rWCU), which are priced identically to standard write units \u2014 the cost increase comes from per-region charging, not higher per-unit price.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-global-tables-billinghtml.md", + "source_url": "", + "source_hash": "848147980e503d0e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-48-bytes-per-item-overhead": { + "text": "DynamoDB Global Tables add 48 bytes per item in system-created attributes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-CapacityUnitCalculationshtml.md", + "source_url": "", + "source_hash": "98de9e7ab60e8767", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-99999-sla": { + "text": "DynamoDB global tables offer 99.999% availability SLA compared to 99.99% for single-Region tables.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-V2globaltables_HowItWorkshtml.md", + "source_url": "", + "source_hash": "e66a1a96242ddf81", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-consistency-mode-immutable": { + "text": "DynamoDB Global Tables consistency mode (MREC or MRSC) is set at creation and cannot be changed afterward.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GlobalTableshtml.md", + "source_url": "", + "source_hash": "46f43001d620e1ec", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-current-half-rwru-cost": { + "text": "DynamoDB global tables Current version consumes 1 rWRU per replicated write vs Legacy's 2 rWRUs for PutItem, yielding up to 50% cost savings.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-V2globaltables_versionshtml.md", + "source_url": "", + "source_hash": "a9bc79e68849d475", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-current-vs-legacy-version": { + "text": "DynamoDB global tables have two versions: 2019.11.21 (Current, recommended) and 2017.11.29 (Legacy); Current uses standard UpdateTable API, produces 1 stream record per write, and synchronizes settings across replicas; Legacy uses dedicated APIs, produces 2 stream records per write, and does not sync settings.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-V2globaltables_versionshtml.md", + "source_url": "", + "source_hash": "a9bc79e68849d475", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-dax-cache-staleness": { + "text": "DynamoDB global table writes bypass DAX cache, causing cache staleness until DAX TTL expires.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-V2globaltables_HowItWorkshtml.md", + "source_url": "", + "source_hash": "e66a1a96242ddf81", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-last-writer-wins": { + "text": "DynamoDB Global Tables use \"last writer wins\" reconciliation \u2014 optimistic locking with version numbers does not work across Regions because a write in one Region can overwrite a concurrent write in another without a version check.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-BestPractices_ImplementingVersionControlhtm.md", + "source_url": "", + "source_hash": "e12efb1bbbeddeaa", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-legacy-v2017-vs-current-v2019": { + "text": "DynamoDB has two global tables versions: legacy (v2017.11.29) and current (v2019.11.21); AWS strongly recommends using the current version for greater flexibility, higher efficiency, and lower write capacity consumption.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateGlobalTablehtml.md", + "source_url": "", + "source_hash": "914656ec2a6cf328", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-mrec-default": { + "text": "DynamoDB Global Tables default consistency mode is MREC (Multi-Region Eventual Consistency); MRSC (Multi-Region Strong Consistency) is restricted to same-account configurations only.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GlobalTableshtml.md", + "source_url": "", + "source_hash": "46f43001d620e1ec", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-mrec-default-mrsc-optional": { + "text": "DynamoDB global tables default to MREC (multi-Region eventually consistent) with async replication and last-writer-wins conflict resolution; MRSC (multi-Region strongly consistent) provides synchronous replication with RPO=0 but requires exactly 3 Regions from the same Region set.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-V2globaltables_HowItWorkshtml.md", + "source_url": "", + "source_hash": "e66a1a96242ddf81", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-mrsc-constraints": { + "text": "DynamoDB MRSC global tables require exactly 3 Regions from the same set, table must be empty at creation, and do not support TTL, LSIs, or transactions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-V2globaltables_HowItWorkshtml.md", + "source_url": "", + "source_hash": "e66a1a96242ddf81", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-multi-account-requires-current-version": { + "text": "DynamoDB multi-account global tables require version 2019.11.21 (current); legacy version 2017.11.29 supports same-account only.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GlobalTableshtml.md", + "source_url": "", + "source_hash": "46f43001d620e1ec", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-multi-active-no-primary": { + "text": "DynamoDB global tables use multi-active replication across AWS Regions with no primary table concept and no failover delay.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Introductionhtml.md", + "source_url": "", + "source_hash": "d8bff1fab0d99ba3", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-multi-active-replication": { + "text": "DynamoDB Global Tables use multi-active replication \u2014 every replica can accept both reads and writes (not primary/secondary).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GlobalTableshtml.md", + "source_url": "", + "source_hash": "46f43001d620e1ec", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-never-synced-settings": { + "text": "DynamoDB global table settings that never synchronize between replicas: deletion protection, point-in-time recovery, tags, resource policies, and Kinesis Data Streams configuration.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-V2globaltables_HowItWorkshtml.md", + "source_url": "", + "source_hash": "e66a1a96242ddf81", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-prefer-2019-version": { + "text": "AWS strongly recommends using Global Tables version 2019.11.21 (Current) instead of the legacy 2017.11.29 version; the `UpdateGlobalTableSettings` API is for the legacy version only.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateGlobalTableSettingshtml.md", + "source_url": "", + "source_hash": "1b1c6bb2188ef8f5", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-provide-seamless-multi-region-availability": { + "text": "DynamoDB global tables provide seamless multi-region availability with multi-active replication, no primary table concept, and no failover delay \u2014 workloads can read and write in any replica region transparently.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-global-tables-multi-active-no-primary", + "dynamodb-replicates-across-three-azs" + ], + "outlist": [ + "dynamodb-global-tables-dax-cache-staleness" + ], + "label": "Multi-active replication is seamless UNLESS DAX caching introduces staleness from bypassed cache invalidation" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "dynamodb-global-tables-sla-99999": { + "text": "DynamoDB with global tables provides an availability SLA of up to 99.999%.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-migration-guidehtml.md", + "source_url": "", + "source_hash": "2804ded7d8a8b388", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-strong-consistency-available": { + "text": "DynamoDB global tables can achieve multi-region strong consistency (MRSC) with 99.999% availability SLA when deployed across exactly 3 regions from the same region set.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-global-tables-99999-sla", + "dynamodb-mrsc-exactly-3-regions-same-set" + ], + "outlist": [ + "dynamodb-multi-account-global-tables-mrec-only" + ], + "label": "MRSC + 99.999% SLA available for single-account deployments UNLESS multi-account global tables are needed \u2014 multi-account only supports MREC (eventual consistency), removing the strongest consistency guarantee for a common enterprise deployment pattern" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "dynamodb-global-tables-transactions-local-only": { + "text": "DynamoDB global table transactions (MREC) are atomic only within the invoking Region \u2014 partial results may be visible in other Regions during replication. MRSC does not support transactions at all.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-V2globaltables_HowItWorkshtml.md", + "source_url": "", + "source_hash": "e66a1a96242ddf81", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-global-tables-two-versions": { + "text": "DynamoDB has two versions of global tables: v2017.11.29 (Legacy) and v2019.11.21 (Current); the current version consumes less write capacity and should be preferred.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeGlobalTableSettingshtml.md", + "source_url": "", + "source_hash": "67de956d12f3bd43", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-100-bytes-overhead-per-item": { + "text": "Each item stored in a GSI includes 100 bytes of storage overhead in addition to the key and projected attribute sizes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GSIhtml.md", + "source_url": "", + "source_hash": "e5a89fef6810208a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-autoscaling-independent-from-base-table": { + "text": "DynamoDB GSI auto scaling is configured independently from the base table's auto scaling on each replica.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTableReplicaAutoScalinghtml.md", + "source_url": "", + "source_hash": "91fd3808dea886a2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-backfill-no-read-charges": { + "text": "During GSI backfill on an existing table, base table reads use internal system capacity and do not incur read charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GSIOnlineOpshtml.md", + "source_url": "", + "source_hash": "08dc0cc4522ceea7", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-can-add-remove-after-creation": { + "text": "Global Secondary Indexes can be added to or removed from a DynamoDB table after table creation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-SecondaryIndexeshtml.md", + "source_url": "", + "source_hash": "523e6bf1bd55e95c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-during-import-no-write-charges": { + "text": "Creating a GSI during a DynamoDB S3 import incurs no write charges, whereas adding a GSI after import does incur write charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportBestPracticeshtml.md", + "source_url": "", + "source_hash": "daee54940979942a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-eventual-consistency-only": { + "text": "Global Secondary Indexes (GSIs) in DynamoDB support only eventual consistency for read operations; strong consistency is not available.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-SecondaryIndexeshtml.md", + "source_url": "", + "source_hash": "523e6bf1bd55e95c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-eventually-consistent-only": { + "text": "GSI reads are always eventually consistent; strongly consistent reads are not supported on Global Secondary Indexes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GSIhtml.md", + "source_url": "", + "source_hash": "e5a89fef6810208a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-independent-provisioned-throughput": { + "text": "Each GSI has its own independent provisioned throughput (RCUs and WCUs) separate from the base table; GSI write capacity should be \u2265 base table write capacity to prevent throttling.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GSIhtml.md", + "source_url": "", + "source_hash": "e5a89fef6810208a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-key-change-costs-two-wcus": { + "text": "Changing an indexed key attribute on a GSI costs 2 WCUs (one delete of the old item + one put of the new item in the index).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GSIhtml.md", + "source_url": "", + "source_hash": "e5a89fef6810208a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-keys-must-be-scalar-types": { + "text": "GSI key attributes must be top-level scalar types: String, Number, or Binary only \u2014 document and set types are not allowed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GSIhtml.md", + "source_url": "", + "source_hash": "e5a89fef6810208a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-max-20-per-table": { + "text": "DynamoDB supports up to 20 Global Secondary Indexes per table (default quota).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GSIOnlineOpshtml.md", + "source_url": "", + "source_hash": "08dc0cc4522ceea7", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-multi-attribute-keys-max-8": { + "text": "GSI partition keys can be composed from up to 4 attributes and sort keys from up to 4 attributes (max 8 total), eliminating the need for manually concatenated synthetic keys.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GSIhtml.md", + "source_url": "", + "source_hash": "e5a89fef6810208a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-no-getitem-batchgetitem": { + "text": "GetItem and BatchGetItem operations cannot be used on Global Secondary Indexes \u2014 only Query and Scan are supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GSIhtml.md", + "source_url": "", + "source_hash": "e5a89fef6810208a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-no-strongly-consistent-reads": { + "text": "DynamoDB GSIs do not support strongly consistent reads \u2014 setting ConsistentRead=true on a GSI query causes ValidationException.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Queryhtml.md", + "source_url": "", + "source_hash": "4f9332372782fdf1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-no-table-fetch-lsi-auto-fetches": { + "text": "GSI queries can only return projected attributes (no fetching from base table), while LSI queries can request non-projected attributes and DynamoDB auto-fetches them from the base table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-SecondaryIndexeshtml.md", + "source_url": "", + "source_hash": "523e6bf1bd55e95c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-nonunique-partition-key-sort-key-disambiguates": { + "text": "When a DynamoDB GSI partition key is non-unique (e.g., same URL bookmarked by multiple customers), the sort key is used to disambiguate \u2014 as demonstrated by the Bookmarks model's ByUrl index using customerId as sort key.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchSampleModelshtml.md", + "source_url": "", + "source_hash": "2584c372aeb1871e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-one-add-or-delete-per-update-table": { + "text": "Only one GSI can be added or deleted per `UpdateTable` operation in DynamoDB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GSIOnlineOpshtml.md", + "source_url": "", + "source_hash": "08dc0cc4522ceea7", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-overloading-multiple-attributes": { + "text": "DynamoDB GSI overloading allows a single GSI to index multiple different attribute types (e.g., Dates, Names, Places, Skills) by storing different attribute values in the same indexed attribute.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-adjacency-graphshtml.md", + "source_url": "", + "source_hash": "dccdeb5d762ea057", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-overloading-single-table-pattern": { + "text": "GSI overloading uses a single GSI to serve multiple access patterns by storing different entity types with the same index key attribute names but different semantic meanings \u2014 a core technique in single-table design.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-indexeshtml.md", + "source_url": "", + "source_hash": "d1a749e71d86799d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-own-throughput-lsi-base-table": { + "text": "GSI reads and writes consume capacity from the index's own provisioned throughput, while LSI operations consume capacity from the base table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-SecondaryIndexeshtml.md", + "source_url": "", + "source_hash": "523e6bf1bd55e95c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-query-projected-attributes-only": { + "text": "Querying a DynamoDB GSI can only return projected attributes; querying an LSI can fetch non-projected attributes from the base table at additional cost.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Queryhtml.md", + "source_url": "", + "source_hash": "4f9332372782fdf1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-quota-20-lsi-quota-5": { + "text": "DynamoDB default quota is 20 Global Secondary Indexes (GSIs) and 5 Local Secondary Indexes (LSIs) per table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksCoreComponentshtml.md", + "source_url": "", + "source_hash": "992998a83a24eb51", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-sparse-index-missing-keys-omitted": { + "text": "Items missing the GSI key attributes are not propagated to the index, enabling sparse index patterns.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GSIhtml.md", + "source_url": "", + "source_hash": "e5a89fef6810208a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-gsi-storage-overhead-200-bytes-minimum-per-projected-item": { + "text": "Each item projected into a DynamoDB GSI incurs at least 200 bytes of storage overhead (100 bytes base table + 100 bytes GSI), making GSIs disproportionately expensive for small items.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-100-byte-per-item-storage-overhead", + "dynamodb-gsi-100-bytes-overhead-per-item" + ], + "outlist": [], + "label": "The overhead compounds per-GSI, so a table with 20 GSIs on small items can have overhead exceeding actual data" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-gsi-throttling-back-pressures-base-table": { + "text": "DynamoDB GSI throttling can back-pressure the base table, causing writes to the base table to be throttled even if the base table has available capacity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-TroubleshootingThrottlinghtml.md", + "source_url": "", + "source_hash": "5568654e9e8a2a61", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-hash-partition-range-sort-key-types": { + "text": "In DynamoDB key schema, KeyType=HASH designates the partition key and KeyType=RANGE designates the sort key.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-1html.md", + "source_url": "", + "source_hash": "eed13122388b9f71", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-iam-policy-version-2012-for-variables": { + "text": "IAM policy version must be `2012-10-17` (not the default `2008-10-17`) when using policy variables such as web identity federation substitutions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-specifying-conditionshtml.md", + "source_url": "", + "source_hash": "a371d793f7470557", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-if-not-exists-list-append-set-only": { + "text": "DynamoDB `if_not_exists()` and `list_append()` are functions available only within the `SET` action of UpdateExpression.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateItemhtml.md", + "source_url": "", + "source_hash": "3e4e050a17f9475f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-import-csv-configurable-delimiter-headers": { + "text": "DynamoDB import supports CSV input with configurable delimiters and header lists via `InputFormatOptions`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeImporthtml.md", + "source_url": "", + "source_hash": "c3dba026fb1d11c2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-import-from-s3-new-table-only": { + "text": "DynamoDB Import from S3 creates a new table only \u2014 it cannot load into an existing table and performs no data transformations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-migration-guidehtml.md", + "source_url": "", + "source_hash": "2804ded7d8a8b388", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-import-not-found-returns-400": { + "text": "DynamoDB `ImportNotFoundException` returns HTTP 400 (client error), not 404.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeImporthtml.md", + "source_url": "", + "source_hash": "c3dba026fb1d11c2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-import-source-always-s3": { + "text": "DynamoDB table imports always use S3 as the source; cross-account imports are possible by specifying `S3BucketOwner`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeImporthtml.md", + "source_url": "", + "source_hash": "c3dba026fb1d11c2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-import-tracks-processed-vs-imported-count": { + "text": "DynamoDB import tracks both `ProcessedItemCount` (attempted) and `ImportedItemCount` (succeeded), plus `ErrorCount` for monitoring progress and failures.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeImporthtml.md", + "source_url": "", + "source_hash": "c3dba026fb1d11c2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-importtable-creates-new-table": { + "text": "The `ImportTable` API creates a new DynamoDB table as part of the import \u2014 you cannot import into an existing table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ImportTablehtml.md", + "source_url": "", + "source_hash": "b68a7cdf977e41bc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-importtable-creates-new-table-only": { + "text": "DynamoDB ImportTable creates a new table from S3 data \u2014 it cannot import into an existing table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDBhtml.md", + "source_url": "", + "source_hash": "eadb65303b7f57de", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-importtable-formats-csv-json-ion": { + "text": "`ImportTable` supports three input formats: `CSV`, `DYNAMODB_JSON`, and `ION`, with optional `GZIP`, `ZSTD`, or `NONE` compression.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ImportTablehtml.md", + "source_url": "", + "source_hash": "b68a7cdf977e41bc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-importtable-idempotency-8-hours": { + "text": "`ImportTable` client token idempotency window is 8 hours; resubmitting with the same token and changed parameters raises `IdempotentParameterMismatch`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ImportTablehtml.md", + "source_url": "", + "source_hash": "b68a7cdf977e41bc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-importtable-max-50-concurrent": { + "text": "DynamoDB allows a maximum of 50 concurrent `ImportTable` operations per account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ImportTablehtml.md", + "source_url": "", + "source_hash": "b68a7cdf977e41bc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-incremental-export-insert-delete-same-window-no-output": { + "text": "In DynamoDB incremental exports, an item inserted and deleted within the same export window produces no output.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataExportOutputhtml.md", + "source_url": "", + "source_hash": "91dedf9bb9d135c2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-incremental-export-min-15min-max-24hr": { + "text": "DynamoDB incremental export period has a minimum duration of 15 minutes and a maximum of 24 hours.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataExport_Requestinghtml.md", + "source_url": "", + "source_hash": "13d04fd34d5bcf0c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-incremental-export-shared-data-folder": { + "text": "DynamoDB incremental exports store data files in a shared `AWSDynamoDB/data/` folder (not under each ExportId), unlike full exports which store data under `ExportId/data/`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataExportOutputhtml.md", + "source_url": "", + "source_hash": "91dedf9bb9d135c2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-index-key-must-be-scalar": { + "text": "DynamoDB secondary index key attributes must be top-level scalar types (String, Number, or Binary) \u2014 document types and sets are not allowed as index keys.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-SecondaryIndexeshtml.md", + "source_url": "", + "source_hash": "523e6bf1bd55e95c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-index-storage-refresh-every-6-hours": { + "text": "DynamoDB secondary index storage size and item counts (returned by DescribeTable) refresh approximately every 6 hours, not in real time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-SecondaryIndexeshtml.md", + "source_url": "", + "source_hash": "523e6bf1bd55e95c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-indexes-streams-backups-same-key": { + "text": "DynamoDB indexes (LSI/GSI), streams, and backups are all encrypted with the same key as the base table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionusagenoteshtml.md", + "source_url": "", + "source_hash": "18b3511ccd99e0c0", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-individual-writes-atomic": { + "text": "Individual DynamoDB write operations (e.g., UpdateItem) are atomic and always operate on the most recent item version \u2014 concurrency control is only needed for read-modify-write cycles.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-BestPractices_ImplementingVersionControlhtm.md", + "source_url": "", + "source_hash": "e12efb1bbbeddeaa", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-interface-endpoint-50k-rps-limit": { + "text": "DynamoDB PrivateLink interface endpoints have a throughput limit of 50,000 requests per second per endpoint.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-privatelink-interface-endpointshtml.md", + "source_url": "", + "source_hash": "f3b01141a879fddf", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-interface-endpoint-min-3-azs": { + "text": "DynamoDB PrivateLink interface endpoints should be deployed across a minimum of 3 AZs for optimal reliability.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-privatelink-interface-endpointshtml.md", + "source_url": "", + "source_hash": "f3b01141a879fddf", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-invisible-costs-span-ttl-and-capacity-overhead": { + "text": "DynamoDB has multiple independent invisible cost mechanisms operating simultaneously: TTL deletes appear free locally but consume WCU on global table replicas (with no CloudTrail visibility), while capacity billing has hidden per-item overhead (100 bytes indexing, rounding penalties, GSI minimums) that disproportionately penalizes the small items TTL is most commonly applied to \u2014 the two invisible mechanisms compound on the same workload pattern.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-ttl-creates-invisible-asymmetric-cost-mutations", + "dynamodb-capacity-billing-penalizes-small-items-disproportionately" + ], + "outlist": [], + "label": "TTL cost asymmetry (depth-1) compounds with small-item billing penalties (depth-2) because TTL-managed items (session tokens, cache entries) are typically small \u2014 the items most affected by hidden overhead are the same items whose deletion costs are invisible" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "dynamodb-ion-set-annotations-required": { + "text": "Amazon Ion lists require type annotations (`$dynamodb_SS`, `$dynamodb_NS`, `$dynamodb_BS`) to import as DynamoDB Sets; without annotations, Ion lists become DynamoDB Lists.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportFormathtml.md", + "source_url": "", + "source_hash": "d9b68dd080460c8b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ip-ranges-exclude-streams-and-dax": { + "text": "DynamoDB IP address ranges published in `ip-ranges.json` (filtered by `\"service\": \"DYNAMODB\"`) apply to tables/indexes only \u2014 they do not cover DynamoDB Streams or DAX.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-AccessingDynamoDBhtml.md", + "source_url": "", + "source_hash": "3ad029f4f930dc76", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-item-100-bytes-indexing-overhead": { + "text": "Every DynamoDB item has 100 bytes of indexing overhead added for storage billing purposes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-CapacityUnitCalculationshtml.md", + "source_url": "", + "source_hash": "98de9e7ab60e8767", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-item-collection-10gb-lsi-only": { + "text": "`ItemCollectionSizeLimitExceededException` only applies to DynamoDB tables with local secondary indexes, enforcing a 10 GB limit per partition key collection.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateItemhtml.md", + "source_url": "", + "source_hash": "3e4e050a17f9475f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-item-collection-one-to-many-mechanism": { + "text": "Item collections are the primary mechanism for modeling one-to-many relationships in DynamoDB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithItemCollectionshtml.md", + "source_url": "", + "source_hash": "ad849e481dc81368", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-item-collection-requires-composite-key": { + "text": "DynamoDB item collections (groups of items sharing the same partition key value) only exist on tables or indexes with composite primary keys (partition key + sort key), not on tables with only a partition key.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithItemCollectionshtml.md", + "source_url": "", + "source_hash": "ad849e481dc81368", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-item-collection-size-limit-10gb-lsi": { + "text": "DynamoDB item collection size limit is 10 GB, enforced only on tables with local secondary indexes (ItemCollectionSizeLimitExceededException).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_PutItemhtml.md", + "source_url": "", + "source_hash": "bb016de9e0628e59", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-item-size-limit-400kb": { + "text": "DynamoDB items have a maximum size limit of 400 KB; exceeding it during a transaction causes TransactionCanceledException.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExecuteTransactionhtml.md", + "source_url": "", + "source_hash": "0c0e2dfe20ee8d50", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-itemcount-tablesize-approximate-6-hour-update": { + "text": "DynamoDB `ItemCount` and `TableSizeBytes` from `DescribeTable` are approximate values updated approximately every 6 hours, not in real time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTablehtml.md", + "source_url": "", + "source_hash": "d10921acd4385a19", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-kds-168-hour-auto-disable": { + "text": "If `AgeOfOldestUnreplicatedRecord` exceeds 168 hours (7 days), DynamoDB-to-Kinesis replication is automatically disabled.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-kds_using-shards-and-metricshtml.md", + "source_url": "", + "source_hash": "71e2254ce2572e2a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-kds-1mb-record-limit-skip": { + "text": "Items larger than ~34 KB may exceed the 1 MB Kinesis record limit due to serialization expansion (Boolean/empty attributes: 1 byte in DynamoDB \u2192 up to 5 bytes in JSON) and are silently skipped (not retried).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-kds_using-shards-and-metricshtml.md", + "source_url": "", + "source_hash": "71e2254ce2572e2a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-kds-binary-double-base64-encoding": { + "text": "Binary values in DynamoDB CDC records are double base64-encoded (DynamoDB encodes once, Kinesis encodes again) \u2014 consumers must decode twice.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-kdshtml.md", + "source_url": "", + "source_hash": "6cc5fd7d6b0a1d11", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-kds-enable-requires-cross-service-permissions": { + "text": "Enabling KDS for DynamoDB requires both DynamoDB permissions (`EnableKinesisStreamingDestination`) and Kinesis permissions (`ListStreams`, `PutRecords`, `DescribeStream`) plus `iam:CreateServiceLinkedRole`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-kds_iamhtml.md", + "source_url": "", + "source_hash": "56181979a39c2dbe", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-kds-records-may-be-out-of-order-or-duplicated": { + "text": "DynamoDB CDC records in Kinesis may arrive out of order or duplicated; consumers should use `ApproximateCreationDateTime` for ordering and deduplication.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-kdshtml.md", + "source_url": "", + "source_hash": "6cc5fd7d6b0a1d11", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-kds-same-account-region-one-stream": { + "text": "A DynamoDB table can stream to only one Kinesis data stream, and both must be in the same AWS account and Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-kdshtml.md", + "source_url": "", + "source_hash": "6cc5fd7d6b0a1d11", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-kds-service-linked-role-auto-created": { + "text": "The service-linked role `AWSServiceRoleForDynamoDBKinesisDataStreamsReplication` is automatically created on first KDS enable and is assumed by `kinesisreplication.dynamodb.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-kds_iamhtml.md", + "source_url": "", + "source_hash": "56181979a39c2dbe", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-kds-three-cloudwatch-metrics": { + "text": "The three key CloudWatch metrics for DynamoDB-to-KDS replication health are `ThrottledPutRecordCount`, `AgeOfOldestUnreplicatedRecord`, and `FailedToReplicateRecordCount`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-kds_using-shards-and-metricshtml.md", + "source_url": "", + "source_hash": "71e2254ce2572e2a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-kds-timestamp-precision-configurable": { + "text": "DynamoDB Kinesis Data Streams `ApproximateCreationDateTimePrecision` is configurable to millisecond (default) or microsecond granularity, and can be changed on an active streaming destination.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-kds_gettingstartedhtml.md", + "source_url": "", + "source_hash": "b462d56dc4f719f7", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-kds-update-takes-5-minutes": { + "text": "Updating DynamoDB Kinesis streaming configuration (e.g., timestamp precision) transitions through `UPDATING` status and typically takes up to 5 minutes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-kds_gettingstartedhtml.md", + "source_url": "", + "source_hash": "b462d56dc4f719f7", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-kinesis-and-streams-can-coexist": { + "text": "DynamoDB Kinesis streaming destination and DynamoDB Streams are separate CDC mechanisms that can both be active simultaneously on the same table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_EnableKinesisStreamingDestinationhtml.md", + "source_url": "", + "source_hash": "d7fa1c09035bc509", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-kinesis-cdc-has-four-independent-reliability-hazards": { + "text": "DynamoDB-to-Kinesis CDC pipelines face four independent reliability hazards: records may arrive out of order or duplicated, binary values are double base64-encoded requiring consumer-side correction, items over ~34 KB may silently skip the 1 MB record limit, and replication auto-disables after 168 hours of lag \u2014 each requiring separate mitigation.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-kds-records-may-be-out-of-order-or-duplicated", + "dynamodb-kds-binary-double-base64-encoding", + "dynamodb-kds-1mb-record-limit-skip", + "dynamodb-kds-168-hour-auto-disable" + ], + "outlist": [], + "label": "Four independent failure modes in DynamoDB-Kinesis pipeline each require distinct handling" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-kinesis-cdc-reliable-for-event-driven-architectures": { + "text": "DynamoDB Kinesis streaming provides a reliable CDC foundation for event-driven architectures with well-defined status lifecycle and async enablement semantics.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-kinesis-streaming-destination-status-lifecycle", + "dynamodb-kinesis-streaming-enable-is-async" + ], + "outlist": [ + "dynamodb-kds-168-hour-auto-disable", + "dynamodb-kds-records-may-be-out-of-order-or-duplicated" + ], + "label": "CDC reliability claim holds only when auto-disable and ordering hazards are mitigated" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "dynamodb-kinesis-streaming-destination-status-lifecycle": { + "text": "The DynamoDB Kinesis streaming destination status follows the lifecycle: ENABLING \u2192 ACTIVE \u2192 DISABLING \u2192 DISABLED, with additional states ENABLE_FAILED and UPDATING (six total states).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DisableKinesisStreamingDestinationhtml.md", + "source_url": "", + "source_hash": "b89671ec044e4089", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-kinesis-streaming-enable-is-async": { + "text": "EnableKinesisStreamingDestination is asynchronous \u2014 it returns immediately but streaming may not be active; poll with DescribeKinesisStreamingDestination until status is ACTIVE.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_EnableKinesisStreamingDestinationhtml.md", + "source_url": "", + "source_hash": "d7fa1c09035bc509", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-kinesis-streaming-newer-than-streams": { + "text": "DynamoDB Kinesis streaming is the newer, higher-throughput change-data-capture option compared to DynamoDB Streams.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeKinesisStreamingDestinationhtml.md", + "source_url": "", + "source_hash": "77f7f9e09256d697", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-kinesis-timestamp-precision-setting": { + "text": "DynamoDB's `ApproximateCreationDateTimePrecision` setting controls whether timestamps on Kinesis streaming records are at second or millisecond granularity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateKinesisStreamingDestinationhtml.md", + "source_url": "", + "source_hash": "086154eb6dd7338f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-kms-cache-refresh-5-minutes": { + "text": "DynamoDB caches the plaintext table key from KMS and refreshes it every 5 minutes per caller with active traffic, not per operation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionhowitworkshtml.md", + "source_url": "", + "source_hash": "4ced9ba839135ceb", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-lambda-stream-consumer-no-getrecords-charge": { + "text": "Using Lambda (not KCL) as a DynamoDB Streams consumer avoids `GetRecords` API charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-time-to-live-ttl-streamshtml.md", + "source_url": "", + "source_hash": "2310a25924d8dfc7", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-large-item-three-strategies": { + "text": "Three strategies for handling large DynamoDB items: compress attributes (stored as Binary type), vertical partition (split across sort keys), or offload to Amazon S3.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-use-s3-toohtml.md", + "source_url": "", + "source_hash": "312009ef79e08686", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-leading-keys-condition-row-level-security": { + "text": "The `dynamodb:LeadingKeys` condition key in resource-based policies restricts access to specific partition key values, enabling row-level security.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-exampleshtml.md", + "source_url": "", + "source_hash": "6981136ab210319f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-legacy-global-table-more-write-capacity": { + "text": "Legacy global tables (version 2017.11.29) consume more write capacity than the current version (2019.11.21).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateGlobalTablehtml.md", + "source_url": "", + "source_hash": "8c1ea5cf0073c652", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-legacy-global-table-replicas-must-be-empty": { + "text": "In legacy DynamoDB global tables (v2017.11.29), replica tables must be empty before being added to a global table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateGlobalTablehtml.md", + "source_url": "", + "source_hash": "914656ec2a6cf328", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-legacy-global-tables-no-resource-policies": { + "text": "DynamoDB legacy global tables (version 2017.11.29) do not support resource-based policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-considerationshtml.md", + "source_url": "", + "source_hash": "38849ffee9ba1039", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-legacy-global-tables-separate-apis": { + "text": "Legacy global tables (v2017.11.29) use separate APIs (`DescribeGlobalTable`, `DescribeGlobalTableSettings`, `UpdateGlobalTable`, `UpdateGlobalTableSettings`); the current version (v2019.11.21) folds this into standard table APIs like `DescribeTable`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeGlobalTableSettingshtml.md", + "source_url": "", + "source_hash": "67de956d12f3bd43", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-limit-caps-items-read-not-returned": { + "text": "The DynamoDB Query `Limit` parameter caps the number of items read (before filtering), not the number of items returned \u2014 a query with a filter may return fewer items than the limit value.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-QueryOtherhtml.md", + "source_url": "", + "source_hash": "b6f63def0d5722bc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-list-exports-90-day-window": { + "text": "The DynamoDB `ListExports` API only returns exports completed within the last 90 days.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListExportshtml.md", + "source_url": "", + "source_hash": "7f201b5adb3bd193", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-list-exports-max-25-per-page": { + "text": "The DynamoDB `ListExports` API returns a maximum of 25 results per page.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListExportshtml.md", + "source_url": "", + "source_hash": "7f201b5adb3bd193", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-list-global-tables-legacy-api": { + "text": "The `ListGlobalTables` API is a legacy API (version 2017.11.29); new global tables should use version 2019.11.21 which relies on standard table APIs like `DescribeTable`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListGlobalTableshtml.md", + "source_url": "", + "source_hash": "d3dc54b1d79f86c6", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-list-imports-90-day-window-max-50-concurrent": { + "text": "The DynamoDB `ListImports` API only returns imports from the last 90 days; accounts support up to 50 simultaneous import operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListImportshtml.md", + "source_url": "", + "source_hash": "3a75f126d26702da", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-list-map-3-bytes-plus-1-per-element": { + "text": "DynamoDB List and Map attributes have 3 bytes of overhead (even if empty) plus 1 byte per nested element.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-CapacityUnitCalculationshtml.md", + "source_url": "", + "source_hash": "98de9e7ab60e8767", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-list-tables-cursor-based-pagination": { + "text": "DynamoDB `ListTables` uses cursor-based pagination via `ExclusiveStartTableName`/`LastEvaluatedTableName` (actual table names, not opaque tokens).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListTableshtml.md", + "source_url": "", + "source_hash": "52fac50db2b1e7fb", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-list-tables-max-100-per-page": { + "text": "The DynamoDB `ListTables` API returns a maximum of 100 table names per page, scoped to the current account and region endpoint.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListTableshtml.md", + "source_url": "", + "source_hash": "52fac50db2b1e7fb", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-list-tags-rate-limit-10-tps": { + "text": "The DynamoDB `ListTagsOfResource` API is rate-limited to 10 requests per second per account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListTagsOfResourcehtml.md", + "source_url": "", + "source_hash": "f4aa92055404fb04", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-listbackups-5-tps-limit": { + "text": "`ListBackups` has a rate limit of 5 calls per second.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListBackupshtml.md", + "source_url": "", + "source_hash": "145242c730527d53", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-listbackups-excludes-aws-backup-by-default": { + "text": "`ListBackups` does not include AWS Backup-created backups by default (default type is `USER`); use `BackupType: AWS_BACKUP` or the AWS Backup `ListBackupJobs` API to list them.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListBackupshtml.md", + "source_url": "", + "source_hash": "145242c730527d53", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-liststreams-no-resource-based-policy": { + "text": "`ListStreams` is the only DynamoDB Streams API that does not support resource-based policies; the other three (`DescribeStream`, `GetRecords`, `GetShardIterator`) support both resource-based policies and cross-account access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-iam-actionshtml.md", + "source_url": "", + "source_hash": "286807257f5c56ad", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-local-dev-only-endpoint-swap-to-production": { + "text": "DynamoDB Local is for development and testing only; migrating to production requires only changing the endpoint configuration.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DynamoDBLocalhtml.md", + "source_url": "", + "source_hash": "a3520763b4cc48c5", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-local-dev-testing-only": { + "text": "DynamoDB Local is a downloadable version for development and testing only \u2014 not a production deployment option \u2014 and uses the same API as the web service.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-SettingUphtml.md", + "source_url": "", + "source_hash": "092a22d4e3b2e2dc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-local-offline-development": { + "text": "DynamoDB Local is a downloadable version that enables offline development and testing without AWS credentials or network access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-GettingStartedDynamoDBhtml.md", + "source_url": "", + "source_hash": "85f2c5869989a9a1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-local-requires-endpoint-url-every-command": { + "text": "DynamoDB Local requires `--endpoint-url http://localhost:8000` on every CLI command; there is no way to set it as a default endpoint override.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-AccessingDynamoDBhtml.md", + "source_url": "", + "source_hash": "3ad029f4f930dc76", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-local-requires-jre-17": { + "text": "DynamoDB Local (bundled with NoSQL Workbench) requires JRE 17.x or newer to run.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchsettinguphtml.md", + "source_url": "", + "source_hash": "caaf021c063d371c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-local-three-distribution-methods": { + "text": "DynamoDB Local is available as a downloadable JAR (requires JRE), an Apache Maven dependency, or a Docker image.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-DynamoDBLocalhtml.md", + "source_url": "", + "source_hash": "a3520763b4cc48c5", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-locality-of-reference-top-performance-factor": { + "text": "Keeping related data together (locality of reference) is the single most important performance factor in DynamoDB design.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-general-nosql-designhtml.md", + "source_url": "", + "source_hash": "c137af28cb60fb42", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-lock-client-dedicated-table-lease-heartbeat": { + "text": "DynamoDB pessimistic locking via a lock client uses a dedicated lock table with lease duration and heartbeat mechanisms for long-running distributed coordination, with automatic lock expiry for process failure handling.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-BestPractices_ImplementingVersionControlhtm.md", + "source_url": "", + "source_hash": "e12efb1bbbeddeaa", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-lsi-10gb-item-collection-limit": { + "text": "Tables with LSIs have a 10 GB item collection size limit per partition key value (includes base table items + all LSI items for that partition key).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-LSIhtml.md", + "source_url": "", + "source_hash": "b6fc14c065bb8079", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-lsi-10gb-limit-per-partition-key": { + "text": "DynamoDB Local Secondary Indexes have a 10 GB size limit per partition key value; GSIs do not have this limit.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateTablehtml.md", + "source_url": "", + "source_hash": "40ef2c64dc2312ba", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-lsi-10gb-per-partition-key": { + "text": "Local Secondary Indexes have a 10 GB size limit per partition key value.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-SecondaryIndexeshtml.md", + "source_url": "", + "source_hash": "523e6bf1bd55e95c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-lsi-item-collection-10gb-limit": { + "text": "DynamoDB tables with local secondary indexes (LSIs) have a 10 GB limit per item collection; exceeding it raises ItemCollectionSizeLimitExceededException.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExecuteStatementhtml.md", + "source_url": "", + "source_hash": "905187d602cf709a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-lsi-must-be-created-at-table-creation": { + "text": "Local Secondary Indexes (LSIs) must be created at table creation time and cannot be added later; Global Secondary Indexes (GSIs) can be added after table creation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-1html.md", + "source_url": "", + "source_hash": "eed13122388b9f71", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-lsi-must-be-created-with-table": { + "text": "Local Secondary Indexes must be defined at table creation time and cannot be added or removed after the table is created.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-SecondaryIndexeshtml.md", + "source_url": "", + "source_hash": "523e6bf1bd55e95c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-lsi-must-create-at-table-creation": { + "text": "DynamoDB local secondary indexes (LSIs) must be created at table creation time \u2014 they cannot be added or removed later.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-LSIhtml.md", + "source_url": "", + "source_hash": "b6fc14c065bb8079", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-lsi-no-getitem-batchgetitem": { + "text": "GetItem and BatchGetItem operations cannot be used on DynamoDB local secondary indexes \u2014 only Query and Scan are supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-LSIhtml.md", + "source_url": "", + "source_hash": "b6fc14c065bb8079", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-lsi-queries-consume-base-table-capacity": { + "text": "DynamoDB LSI queries consume the base table's read capacity, while GSI queries consume the index's own provisioned capacity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-QueryOtherhtml.md", + "source_url": "", + "source_hash": "b6f63def0d5722bc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-lsi-supports-strong-consistency": { + "text": "Local Secondary Indexes (LSIs) in DynamoDB support both eventual and strong consistency for read operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-SecondaryIndexeshtml.md", + "source_url": "", + "source_hash": "523e6bf1bd55e95c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-lsi-supports-strongly-consistent-reads": { + "text": "DynamoDB LSIs support both strongly consistent and eventually consistent reads (unlike GSIs which only support eventually consistent).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-LSIhtml.md", + "source_url": "", + "source_hash": "b6fc14c065bb8079", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-lsi-triggers-itemcollectionsizelimitexceeded": { + "text": "`ItemCollectionSizeLimitExceededException` only applies to DynamoDB tables with Local Secondary Indexes (triggered by the 10 GB per partition key limit).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteItemhtml.md", + "source_url": "", + "source_hash": "12da850090812708", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-max-20-gsi-5-lsi-per-table": { + "text": "DynamoDB tables support a maximum of 20 Global Secondary Indexes and 5 Local Secondary Indexes per table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateTablehtml.md", + "source_url": "", + "source_hash": "40ef2c64dc2312ba", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-max-20-gsi-per-table": { + "text": "DynamoDB supports a maximum of 20 Global Secondary Indexes per table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-indexeshtml.md", + "source_url": "", + "source_hash": "d1a749e71d86799d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-max-5-lsis-per-table": { + "text": "DynamoDB supports a maximum of 5 local secondary indexes per table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-LSIhtml.md", + "source_url": "", + "source_hash": "b6fc14c065bb8079", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-max-500-simultaneous-table-operations": { + "text": "DynamoDB allows up to 500 simultaneous table operations (CreateTable, UpdateTable, DeleteTable, etc.) per account, dropping to 250 when creating tables with secondary indexes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListExportshtml.md", + "source_url": "", + "source_hash": "7f201b5adb3bd193", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-max-tables-2500-per-account-region": { + "text": "The default maximum number of DynamoDB tables per account per Region is 2,500 (can be increased to 10,000; beyond that requires multiple accounts).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-ServiceQuotashtml.md", + "source_url": "", + "source_hash": "ee89a040c06a392b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-mrec-last-writer-wins-silent": { + "text": "DynamoDB global tables MREC (default mode) uses last-writer-wins conflict resolution based on write timestamp; conflicts are not logged in CloudWatch or CloudTrail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-global-table-designhtml.md", + "source_url": "", + "source_hash": "d469a51155b62f93", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-mrec-vs-mrsc-feature-differences": { + "text": "DynamoDB global table MREC uses Streams for replication, supports TTL, supports transactions (region-local atomicity only), and publishes ReplicationLatency metric; MRSC does not use Streams for replication, does not support TTL, does not support transactions, and has no ReplicationLatency metric.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-CoreConceptshtml.md", + "source_url": "", + "source_hash": "42769a4a14b03c5d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-mrsc-exactly-3-regions-same-set": { + "text": "DynamoDB MRSC (Multi-Region Strong Consistency) requires exactly 3 Regions from the same Region set (US, EU, or AP); cannot span sets. Supports 3 replicas or 2 replicas + 1 witness.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-global-table-designhtml.md", + "source_url": "", + "source_hash": "d469a51155b62f93", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-mrsc-no-transactions-ttl-lsi": { + "text": "DynamoDB MRSC does not support transaction APIs, TTL, or local secondary indexes (LSIs).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-global-table-designhtml.md", + "source_url": "", + "source_hash": "d469a51155b62f93", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-mrsc-rpo-zero-mrec-rpo-seconds": { + "text": "DynamoDB MRSC provides RPO of zero (no data loss on Region failure); MREC RPO equals replication delay (typically seconds).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-global-table-designhtml.md", + "source_url": "", + "source_hash": "d469a51155b62f93", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-mrsc-witnesses-cheaper-than-replicas": { + "text": "MRSC (multi-region strong consistency) global tables support witnesses as a cheaper alternative to full replicas \u2014 witnesses maintain replicated change data but do not support read/write operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTablehtml.md", + "source_url": "", + "source_hash": "af403068d9b58313", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-multi-account-global-tables-mrec-only": { + "text": "DynamoDB multi-account global tables support only MREC (Multi-Region Eventual Consistency); MRSC is not supported for multi-account configurations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-MultiAccounthtml.md", + "source_url": "", + "source_hash": "42607c73ae633357", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-multi-account-global-tables-per-account-billing": { + "text": "Each replica in a DynamoDB multi-account global table is billed to its respective AWS account, simplifying cost attribution.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-MultiAccounthtml.md", + "source_url": "", + "source_hash": "42607c73ae633357", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-native-backup-no-abac": { + "text": "Attribute-based access control (ABAC) is not supported with DynamoDB-native backups; AWS Backup must be used if ABAC is needed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Backup-and-Restorehtml.md", + "source_url": "", + "source_hash": "c246fa36922e789e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-nested-attributes-32-levels-deep": { + "text": "DynamoDB document types (List, Map) can be nested up to 32 levels deep.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksCoreComponentshtml.md", + "source_url": "", + "source_hash": "992998a83a24eb51", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-no-global-endpoint-regional-only": { + "text": "DynamoDB has no global endpoint; all requests go to Regional endpoints accessing the local replica.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-global-table-designhtml.md", + "source_url": "", + "source_hash": "d469a51155b62f93", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-no-item-count-limit-per-table": { + "text": "There is no limit on the number of items in a DynamoDB table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksCoreComponentshtml.md", + "source_url": "", + "source_hash": "992998a83a24eb51", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-no-native-date-type": { + "text": "DynamoDB has no native date/time data type \u2014 use epoch time (Number) or ISO 8601 (String) instead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksNamingRulesDataTypeshtml.md", + "source_url": "", + "source_hash": "1634d50a610092d4", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-no-scan-index-forward-descending-order": { + "text": "The `--no-scan-index-forward` flag on Query reverses traversal to descending sort key order.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-5html.md", + "source_url": "", + "source_hash": "2d878d2f889fae36", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-no-separate-transact-iam-action": { + "text": "There is no separate `TransactWriteItems` or `TransactGetItems` IAM action \u2014 transactions are controlled via underlying item-level actions (`PutItem`, `UpdateItem`, `DeleteItem`, `GetItem`) plus the `dynamodb:EnclosingOperation` condition key.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-apis-iamhtml.md", + "source_url": "", + "source_hash": "edb526083e2d1cc5", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-no-tag-based-iam-conditions": { + "text": "DynamoDB does not support tag-based conditions for IAM policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-kds_iamhtml.md", + "source_url": "", + "source_hash": "56181979a39c2dbe", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-nonkeyattributes-max-100-across-indexes": { + "text": "The total number of `NonKeyAttributes` across all secondary indexes on a DynamoDB table must not exceed 100 (applies to `INCLUDE` projection type).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateTablehtml.md", + "source_url": "", + "source_hash": "40ef2c64dc2312ba", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-nosql-workbench-no-2fa-support": { + "text": "NoSQL Workbench does not support AWS logins with two-factor authentication (2FA).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-AccessingDynamoDBhtml.md", + "source_url": "", + "source_hash": "3ad029f4f930dc76", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-nosql-workbench-three-functions": { + "text": "NoSQL Workbench is the unified visual tool for DynamoDB supporting three functions: data modeling, visualization, and query development.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-dynamodb-resources-first-time-usershtml.md", + "source_url": "", + "source_hash": "1687953170adcab3", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-number-precision-38-digits": { + "text": "DynamoDB Number type supports up to 38 digits of precision with a range of 1E-130 to ~1E+125.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksNamingRulesDataTypeshtml.md", + "source_url": "", + "source_hash": "1634d50a610092d4", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-numbers-sent-as-strings-in-json": { + "text": "DynamoDB numbers are passed as strings in the JSON wire format (e.g., `\"N\": \"10\"`, not `\"N\": 10`) but stored as numbers.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-2html.md", + "source_url": "", + "source_hash": "650604b8ee8752c4", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-on-demand-backup-captures-feature-config": { + "text": "DynamoDB on-demand backups capture table data and feature configuration including GSIs, LSIs, SSE settings, Streams config, and TTL settings.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeBackuphtml.md", + "source_url": "", + "source_hash": "bab9c1290f181ff4", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-on-demand-backup-no-limit-no-throughput": { + "text": "On-demand DynamoDB backups have no limit on count and do not consume any provisioned read/write capacity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateBackuphtml.md", + "source_url": "", + "source_hash": "89dc9132eca6d738", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-on-demand-default-mode": { + "text": "On-demand is the default and recommended throughput capacity mode for DynamoDB tables.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-capacity-modehtml.md", + "source_url": "", + "source_hash": "85cdb55dff7360f2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-on-demand-default-throughput-mode": { + "text": "DynamoDB on-demand mode is the default and recommended throughput option for most workloads.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-dynamodb-resources-first-time-usershtml.md", + "source_url": "", + "source_hash": "1687953170adcab3", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-on-demand-describe-shows-zero-rcu-wcu": { + "text": "On-demand DynamoDB tables report RCU/WCU as 0 in DescribeTable output \u2014 this is expected behavior, not an error.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithTablesBasicshtml.md", + "source_url": "", + "source_hash": "2391f0f105c07e2e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-on-demand-floor-4000wcu-12000rcu": { + "text": "When switching to on-demand mode, DynamoDB tables below 4,000 WCU / 12,000 RCU are scaled up to at least those minimums as the initial throughput floor.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-switching-capacity-modeshtml.md", + "source_url": "", + "source_hash": "ed3711c35ec0948b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-on-demand-no-account-level-quota": { + "text": "DynamoDB on-demand mode has no account-level throughput quota \u2014 only per-table limits of 40,000 RRU/WRU apply.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-ServiceQuotashtml.md", + "source_url": "", + "source_hash": "ee89a040c06a392b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-on-demand-not-immune-to-throttling": { + "text": "DynamoDB on-demand mode is not immune to throttling \u2014 it has both account-level service quotas and configurable maximum throughput limits that can cause throttling.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-TroubleshootingThrottlinghtml.md", + "source_url": "", + "source_hash": "5568654e9e8a2a61", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-on-demand-pay-per-request": { + "text": "DynamoDB on-demand mode uses pay-per-request pricing with no capacity planning; provisioned mode bills hourly for specified RCUs/WCUs regardless of usage.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-capacity-modehtml.md", + "source_url": "", + "source_hash": "85cdb55dff7360f2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-on-demand-provides-worry-free-scaling": { + "text": "DynamoDB on-demand mode provides worry-free scaling as the default throughput option with no account-level quota and sensible initial capacity (4,000 writes/sec, 12,000 reads/sec) for new tables.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-on-demand-default-throughput-mode", + "dynamodb-on-demand-no-account-level-quota", + "dynamodb-ondemand-new-table-initial-capacity" + ], + "outlist": [ + "dynamodb-ondemand-exceeding-max-throttling-exception" + ], + "label": "on-demand appears unlimited but per-table max throughput can still trigger ThrottlingException" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "dynamodb-on-demand-remembers-historical-peak": { + "text": "DynamoDB remembers the historical peak provisioned capacity when switching to on-demand \u2014 even if capacity was reduced before switching, the previous peak is used as the on-demand baseline.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-switching-capacity-modeshtml.md", + "source_url": "", + "source_hash": "ed3711c35ec0948b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ondemand-backup-billing-monthly-prorated": { + "text": "DynamoDB on-demand backup charges are applied on the day of creation (prorated for remaining month) and on the 1st of each subsequent month (full month assumed), with retroactive adjustment when backups are deleted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-backup-restore-billinghtml.md", + "source_url": "", + "source_hash": "a5f28d3e415dca47", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ondemand-backup-full-not-incremental": { + "text": "DynamoDB on-demand backups are full table backups, not incremental.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-backuprestore_HowItWorkshtml.md", + "source_url": "", + "source_hash": "405ea9ef8034e383", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ondemand-backup-zero-performance-impact": { + "text": "DynamoDB on-demand backups have zero impact on table performance or availability during backup and restore operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-backuprestore_HowItWorkshtml.md", + "source_url": "", + "source_hash": "405ea9ef8034e383", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ondemand-default-quota-40000-per-table": { + "text": "The default account-level on-demand throughput quota for DynamoDB is 40,000 RRU/WRU per table, increasable via service quota request.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-on-demand-capacity-mode-max-throughputhtml.md", + "source_url": "", + "source_hash": "b00a0f0ffbf88acb", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ondemand-doubles-previous-peak": { + "text": "DynamoDB on-demand mode instantly accommodates up to double the previous peak traffic without throttling; exceeding double the peak within 30 minutes can cause throttling.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-on-demand-capacity-modehtml.md", + "source_url": "", + "source_hash": "4eedcf4c9b10ae95", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ondemand-exceeding-max-throttling-exception": { + "text": "Exceeding the configured on-demand max throughput returns a ThrottlingException (not ProvisionedThroughputExceededException).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-on-demand-capacity-mode-max-throughputhtml.md", + "source_url": "", + "source_hash": "b00a0f0ffbf88acb", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ondemand-max-throughput-best-effort": { + "text": "DynamoDB on-demand maximum throughput setting is best-effort, not a hard ceiling \u2014 burst capacity can temporarily allow traffic above the configured maximum.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-on-demand-capacity-mode-max-throughputhtml.md", + "source_url": "", + "source_hash": "b00a0f0ffbf88acb", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ondemand-max-throughput-global-table-propagation": { + "text": "Setting max on-demand throughput on one DynamoDB global table replica automatically applies to all replicas.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-on-demand-capacity-mode-max-throughputhtml.md", + "source_url": "", + "source_hash": "b00a0f0ffbf88acb", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ondemand-new-table-initial-capacity": { + "text": "New DynamoDB on-demand tables can sustain up to 4,000 writes/sec and 12,000 reads/sec initially.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-on-demand-capacity-modehtml.md", + "source_url": "", + "source_hash": "4eedcf4c9b10ae95", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-one-table-with-indexes-creating-at-a-time": { + "text": "Only one DynamoDB table with secondary indexes can be in `CREATING` state at a time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateTablehtml.md", + "source_url": "", + "source_hash": "40ef2c64dc2312ba", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-only-key-attributes-require-definition": { + "text": "Only key attributes (partition key, sort key, and index keys) require AttributeDefinitions at table creation; DynamoDB is schemaless for non-key attributes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-1html.md", + "source_url": "", + "source_hash": "eed13122388b9f71", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-only-symmetric-kms-keys": { + "text": "DynamoDB supports only symmetric KMS keys for encryption \u2014 asymmetric keys cannot be used.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionusagenoteshtml.md", + "source_url": "", + "source_hash": "18b3511ccd99e0c0", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-opensearch-zero-etl-no-table-throughput-impact": { + "text": "The DynamoDB-to-OpenSearch zero-ETL integration does not consume table read/write throughput capacity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-OpenSearchIngestionForDynamoDBhtml.md", + "source_url": "", + "source_hash": "56d8596f404b23e3", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-opensearch-zero-etl-requires-pitr-and-streams": { + "text": "DynamoDB zero-ETL integration with OpenSearch requires both PITR and DynamoDB Streams (with new & old images) enabled on the table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-OpenSearchIngestionForDynamoDBhtml.md", + "source_url": "", + "source_hash": "56d8596f404b23e3", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-operations-require-defensive-implementation-across-both-planes": { + "text": "DynamoDB data plane operations require defensive client implementation (pagination, partial-failure handling in batch ops, filter-expression awareness), and control plane operations are subject to per-account, per-region, and per-table throttle limits that must be anticipated in automation.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-control-plane-throttled-across-three-independent-dimensions", + "dynamodb-batch-operations-require-dual-defensive-handling" + ], + "outlist": [], + "label": "Control-plane throttling and data-plane partial failures independently require defensive implementation \u2014 neither plane provides reliable success signals" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "dynamodb-optimistic-locking-version-conditional-write": { + "text": "DynamoDB optimistic locking uses a version attribute combined with conditional writes to detect conflicts at write time; on conflict the write fails and the application retries.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-BestPractices_ImplementingVersionControlhtm.md", + "source_url": "", + "source_hash": "e12efb1bbbeddeaa", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pagination-lastevaluatedkey-mechanism": { + "text": "DynamoDB pagination uses `LastEvaluatedKey` in the response and `ExclusiveStartKey` in the next request; absence of `LastEvaluatedKey` is the only reliable signal that all results have been retrieved.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-QueryPaginationhtml.md", + "source_url": "", + "source_hash": "6af6d3c029b08f96", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pagination-requires-defensive-client-implementation": { + "text": "DynamoDB pagination across Query and Scan operations requires explicit defensive client implementation: checking LastEvaluatedKey presence, passing ExclusiveStartKey on subsequent requests, and coordinating parallel scan via Segment/TotalSegments \u2014 none of this is automatic.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-pagination-lastevaluatedkey-mechanism", + "dynamodb-query-pagination-last-evaluated-key", + "dynamodb-parallel-scan-segment-and-total-segments" + ], + "outlist": [], + "label": "three independent pagination mechanisms all require explicit client-side loop handling; omitting any one silently truncates results" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "unnecessary" + } + }, + "dynamodb-parallel-scan-1-segment-per-2gb": { + "text": "DynamoDB parallel scan recommended starting ratio is 1 segment per 2 GB of data (e.g., 30 GB table \u2192 TotalSegments = 15), with TotalSegments between 1 and 1,000,000.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-query-scanhtml.md", + "source_url": "", + "source_hash": "94858936e878934f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-parallel-scan-segment-and-total-segments": { + "text": "DynamoDB parallel scan requires both `Segment` (0-based worker ID) and `TotalSegments` (1\u20131,000,000) parameters; each segment's pagination must use the same segment ID.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Scanhtml.md", + "source_url": "", + "source_hash": "04d6475164f7814b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-partiql-executestatement-1mb-limit": { + "text": "DynamoDB ExecuteStatement (PartiQL) results are subject to a 1 MB dataset size limit per response, applied to processed items before filtering.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExecuteStatementhtml.md", + "source_url": "", + "source_hash": "905187d602cf709a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-partiql-insert-fails-if-exists": { + "text": "PartiQL INSERT fails if an item with the same primary key already exists, unlike PutItem which overwrites by default.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-2html.md", + "source_url": "", + "source_hash": "650604b8ee8752c4", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-partiql-no-cross-account-access": { + "text": "DynamoDB PartiQL operations support resource-based policies but do not support cross-account access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-iam-actionshtml.md", + "source_url": "", + "source_hash": "286807257f5c56ad", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-partiql-statement-max-8192-chars": { + "text": "DynamoDB PartiQL statement maximum length is 8,192 characters.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExecuteStatementhtml.md", + "source_url": "", + "source_hash": "905187d602cf709a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-partiql-via-executestatement": { + "text": "ExecuteStatement and BatchExecuteStatement use PartiQL syntax as an alternative to the native DynamoDB JSON API.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDBhtml.md", + "source_url": "", + "source_hash": "eadb65303b7f57de", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-partition-key-equality-only": { + "text": "DynamoDB Query key condition expressions require the partition key to be an equality condition (`=`); range operators (`<`, `<=`, `>`, `>=`, `BETWEEN`, `begins_with`) are only available for the sort key.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-QueryKeyConditionExpressionshtml.md", + "source_url": "", + "source_hash": "4120980cc853ce07", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-partition-key-max-2048-sort-key-max-1024-bytes": { + "text": "DynamoDB partition key maximum size is 2048 bytes; sort key maximum size is 1024 bytes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksNamingRulesDataTypeshtml.md", + "source_url": "", + "source_hash": "1634d50a610092d4", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-per-partition-3000-rcu-1000-wcu": { + "text": "DynamoDB has per-partition throughput limits of 3,000 RCUs and 1,000 WCUs per second.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-partition-key-designhtml.md", + "source_url": "", + "source_hash": "83fe2e2f7fb6cec7", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-per-table-quota-creation-only": { + "text": "DynamoDB per-table provisioned capacity quotas apply only at table creation time (including GSIs); existing tables are constrained only by the account-level aggregate quota when scaling up.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeLimitshtml.md", + "source_url": "", + "source_hash": "57d98d1a8ae89e77", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-1-to-35-days-per-second-granularity": { + "text": "DynamoDB point-in-time recovery (PITR) provides continuous backups with per-second granularity, configurable between 1\u201335 days, starting from 5 minutes before the current time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Backup-and-Restorehtml.md", + "source_url": "", + "source_hash": "c246fa36922e789e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-35-day-window-per-second-granularity": { + "text": "DynamoDB PITR provides continuous backups with per-second granularity for a configurable recovery window of 1\u201335 days (default 35 days).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Point-in-time-recoveryhtml.md", + "source_url": "", + "source_hash": "897f452294ebf764", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-cost-same-regardless-of-recovery-window": { + "text": "DynamoDB PITR billing is based on table size (data + LSIs); changing the recovery window between 1 and 35 days does not change the price.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-PointInTimeRecovery_Howitworkshtml.md", + "source_url": "", + "source_hash": "20e4843e62237d6d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-decrease-window-immediately-loses-data": { + "text": "Decreasing the DynamoDB PITR recovery period immediately shrinks `EarliestRestorePoint` and older backups become unrecoverable; increasing the period does not instantly extend the earliest restore point.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-PointInTimeRecovery_Howitworkshtml.md", + "source_url": "", + "source_hash": "20e4843e62237d6d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-delete-creates-system-backup-35-days": { + "text": "When a PITR-enabled DynamoDB table is deleted, a system backup named `$DeletedTableBackup` is automatically created and retained for 35 days at no extra cost (single snapshot, not continuous recovery).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-PointInTimeRecovery_Howitworkshtml.md", + "source_url": "", + "source_hash": "20e4843e62237d6d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-disable-reenable-resets-recovery-window": { + "text": "Disabling and re-enabling DynamoDB PITR resets the recovery start time \u2014 the previous recovery window is lost.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Point-in-time-recoveryhtml.md", + "source_url": "", + "source_hash": "897f452294ebf764", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-disable-reenable-resets-window": { + "text": "Disabling and re-enabling DynamoDB PITR resets the `EarliestRestorableDateTime` \u2014 you can only restore from the re-enable point onward.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-pointintimerecovery_restoreshtml.md", + "source_url": "", + "source_hash": "ccae052f3f201cda", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-export-reimportable": { + "text": "DynamoDB point-in-time recovery exports (DynamoDB JSON format) are directly usable as import sources for round-trip compatibility.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportFormathtml.md", + "source_url": "", + "source_hash": "d9b68dd080460c8b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-latest-restorable-5-minutes-before-current": { + "text": "DynamoDB PITR `LatestRestorableDateTime` is typically 5 minutes before the current time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-PointInTimeRecovery_Howitworkshtml.md", + "source_url": "", + "source_hash": "20e4843e62237d6d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-latest-restorable-5min-lag": { + "text": "DynamoDB PITR `LatestRestorableDateTime` is typically 5 minutes before the current time \u2014 you cannot restore to the exact current moment.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeContinuousBackupshtml.md", + "source_url": "", + "source_hash": "ee02cc1b1811ed77", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-max-35-days-latest-5min-lag": { + "text": "DynamoDB Point-in-Time Recovery supports restoring to any point within the last 35 days (configurable 1\u201335 days); `LatestRestorableDateTime` is typically ~5 minutes before the current time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_RestoreTableToPointInTimehtml.md", + "source_url": "", + "source_hash": "d7144ad6e829e9a2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-max-35-days-recovery": { + "text": "DynamoDB PITR recovery window is configurable between 1 and 35 days; `LatestRestorableDateTime` lags approximately 5 minutes behind the current time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateContinuousBackupshtml.md", + "source_url": "", + "source_hash": "1bd751814636429f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-must-be-explicitly-enabled": { + "text": "DynamoDB continuous backups are automatically enabled on all tables, but point-in-time recovery (PITR) must be explicitly enabled via `UpdateContinuousBackups`; PITR is not on by default.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateContinuousBackupshtml.md", + "source_url": "", + "source_hash": "1bd751814636429f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-must-reconfig-pitr-itself": { + "text": "When restoring a table via PITR, Point-in-Time Recovery itself is not automatically enabled on the restored table and must be manually reconfigured.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_RestoreTableToPointInTimehtml.md", + "source_url": "", + "source_hash": "d7144ad6e829e9a2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-not-enabled-by-default": { + "text": "DynamoDB Point-in-Time Recovery (PITR) is a best practice but is not enabled by default and incurs additional cost.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-1html.md", + "source_url": "", + "source_hash": "eed13122388b9f71", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-provides-continuous-data-protection": { + "text": "DynamoDB PITR provides continuous data protection with configurable recovery periods between 1 and 35 days, though it must be explicitly enabled since it is not on by default", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-pitr-recovery-period-1-to-35-days", + "dynamodb-pitr-not-enabled-by-default" + ], + "outlist": [ + "pitr-recovery-does-not-preserve-pitr-configuration" + ], + "label": "PITR provides continuous protection within its retention window UNLESS a recovery event occurs \u2014 restored tables do not re-enable PITR automatically, and re-enabling resets the recovery window, creating a post-disaster gap where the safety net does not re-arm itself" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "dynamodb-pitr-recovery-period-1-to-35-days": { + "text": "DynamoDB Point-in-Time Recovery (PITR) supports a configurable recovery period between 1 and 35 days via the `RecoveryPeriodInDays` parameter.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-PointInTimeRecovery_Howitworkshtml.md", + "source_url": "", + "source_hash": "20e4843e62237d6d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-recovery-window-1-to-35-days": { + "text": "DynamoDB PITR recovery window is configurable between 1 and 35 days via `RecoveryPeriodInDays`, with 35 days as the default and maximum.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeContinuousBackupshtml.md", + "source_url": "", + "source_hash": "ee02cc1b1811ed77", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-restore-creates-independent-table": { + "text": "DynamoDB PITR restores create an independent, standalone table \u2014 not part of any global table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Point-in-time-recoveryhtml.md", + "source_url": "", + "source_hash": "897f452294ebf764", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-restore-creates-new-table": { + "text": "DynamoDB point-in-time recovery (PITR) and on-demand backup restores always create a new table \u2014 you cannot restore in-place to an existing table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-pointintimerecovery_restoreshtml.md", + "source_url": "", + "source_hash": "ccae052f3f201cda", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-restores-current-settings-not-point-in-time": { + "text": "PITR restores use the source table's current settings (GSIs, LSIs, capacity, encryption) \u2014 not the settings as they existed at the restore point in time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_RestoreTableToPointInTimehtml.md", + "source_url": "", + "source_hash": "d7144ad6e829e9a2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-restores-to-new-table-only": { + "text": "DynamoDB PITR always restores to a new table \u2014 it never overwrites the existing table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-PointInTimeRecovery_Howitworkshtml.md", + "source_url": "", + "source_hash": "20e4843e62237d6d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-pitr-shorter-retention-no-cost-savings": { + "text": "Shortening the DynamoDB PITR RecoveryPeriodinDays does not reduce pricing \u2014 PITR pricing is based on table + LSI size, not retention duration.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Point-in-time-recoveryhtml.md", + "source_url": "", + "source_hash": "897f452294ebf764", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-primary-key-types-string-number-binary": { + "text": "DynamoDB primary key attributes (partition key and sort key) must be String, Number, or Binary \u2014 no other data types are allowed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksCoreComponentshtml.md", + "source_url": "", + "source_hash": "992998a83a24eb51", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-projected-attributes-max-100-include-type": { + "text": "The maximum number of projected attributes across all secondary indexes on a DynamoDB table is 100, applying only to INCLUDE projection type (not KEYS_ONLY or ALL).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-ServiceQuotashtml.md", + "source_url": "", + "source_hash": "ee89a040c06a392b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-projection-expressions-no-capacity-reduction": { + "text": "Using projection expressions to request a subset of attributes does not reduce DynamoDB capacity consumption \u2014 the full item size is always read internally.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-read-write-operationshtml.md", + "source_url": "", + "source_hash": "411d1faaffb2b2bc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-provisioned-account-level-80k-rcu-wcu": { + "text": "DynamoDB provisioned mode has account-level throughput quotas of 80,000 RCU and 80,000 WCU across all tables and GSIs in a Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-ServiceQuotashtml.md", + "source_url": "", + "source_hash": "ee89a040c06a392b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-provisioned-decrease-max-27-per-day": { + "text": "DynamoDB provisioned capacity decreases are limited to 27 per day (4 available at start of day UTC, plus 1 earned per hour, max 4 banked).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-ServiceQuotashtml.md", + "source_url": "", + "source_hash": "ee89a040c06a392b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-provisioned-to-ondemand-max-4-per-day": { + "text": "Switching a DynamoDB table from provisioned to on-demand mode is limited to 4 times in a 24-hour rolling window; switching from on-demand to provisioned can be done at any time with no limit.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-on-demand-capacity-modehtml.md", + "source_url": "", + "source_hash": "4eedcf4c9b10ae95", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-put-resource-policy-optimistic-locking": { + "text": "DynamoDB's `PutResourcePolicy` API supports optimistic concurrency control via the `--expected-revision-id` parameter \u2014 the update only succeeds if the current revision ID matches.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-attach-resource-based-policyhtml.md", + "source_url": "", + "source_hash": "e66c5f61e1808998", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-putitem-1-wcu-per-1kb": { + "text": "PutItem consumes 1 WCU per item up to 1 KB; larger items consume additional WCUs proportionally.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-2html.md", + "source_url": "", + "source_hash": "650604b8ee8752c4", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-putitem-full-replace-not-merge": { + "text": "PutItem replaces the entire item if a matching primary key exists \u2014 non-specified attributes on the old item are lost; use UpdateItem for partial updates.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_PutItemhtml.md", + "source_url": "", + "source_hash": "bb016de9e0628e59", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-putitem-prevent-overwrite-condition": { + "text": "PutItem can prevent overwrites using `ConditionExpression: \"attribute_not_exists()\"` to insert only if the item doesn't already exist.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_PutItemhtml.md", + "source_url": "", + "source_hash": "bb016de9e0628e59", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-putitem-replaces-entire-item": { + "text": "PutItem replaces the entire item if the primary key already exists \u2014 it does not merge attributes; use UpdateItem for partial updates.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-2html.md", + "source_url": "", + "source_hash": "650604b8ee8752c4", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-putitem-returnvalues-none-or-all-old": { + "text": "PutItem only supports `NONE` (default) and `ALL_OLD` for ReturnValues \u2014 not UPDATED_OLD, ALL_NEW, or UPDATED_NEW.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_PutItemhtml.md", + "source_url": "", + "source_hash": "bb016de9e0628e59", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-query-1mb-limit-before-filter": { + "text": "The DynamoDB Query 1 MB result size limit applies before filter expressions and projection expressions are evaluated.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-QueryKeyConditionExpressionshtml.md", + "source_url": "", + "source_hash": "4120980cc853ce07", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-query-1mb-page-limit": { + "text": "A single DynamoDB Query call reads up to 1 MB of data; pagination is required via LastEvaluatedKey/ExclusiveStartKey for larger result sets.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Queryhtml.md", + "source_url": "", + "source_hash": "4f9332372782fdf1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-query-eventually-consistent-by-default": { + "text": "DynamoDB Query operations are eventually consistent by default; set `ConsistentRead=true` for strongly consistent reads (which doubles RCU cost).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-QueryOtherhtml.md", + "source_url": "", + "source_hash": "b6f63def0d5722bc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-query-filter-does-not-reduce-rcu": { + "text": "DynamoDB Query FilterExpression is applied after data is read but before returning results \u2014 it does NOT reduce read capacity consumed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Queryhtml.md", + "source_url": "", + "source_hash": "4f9332372782fdf1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-query-operation-for-item-collections": { + "text": "The Query operation (not Scan) is used to efficiently retrieve items from an item collection in DynamoDB, supporting partition key lookup and sort key filtering.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithItemCollectionshtml.md", + "source_url": "", + "source_hash": "ad849e481dc81368", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-query-pagination-1mb-page-limit": { + "text": "DynamoDB Query operation results are paginated in pages of 1 MB or less; this is a hard limit per response.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-QueryPaginationhtml.md", + "source_url": "", + "source_hash": "6af6d3c029b08f96", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-query-pagination-last-evaluated-key": { + "text": "Query results are paginated; the presence of `LastEvaluatedKey` in the response signals that more pages exist, and it should be passed as `ExclusiveStartKey` in the next request.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-5html.md", + "source_url": "", + "source_hash": "2d878d2f889fae36", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-query-requires-partition-key": { + "text": "DynamoDB Query always requires a partition key value; it operates on a single partition key value, unlike Scan which reads the entire table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Queryhtml.md", + "source_url": "", + "source_hash": "9ac0bd02d320146e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-query-secondary-index-requires-table-name": { + "text": "When querying a secondary index, both `--index-name` and `--table-name` must be specified.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-5html.md", + "source_url": "", + "source_hash": "2d878d2f889fae36", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-query-sort-ascending-default-scanindexforward": { + "text": "DynamoDB Query results are automatically sorted by sort key value in ascending order by default; setting `ScanIndexForward=false` reverses the order.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Queryhtml.md", + "source_url": "", + "source_hash": "9ac0bd02d320146e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-rcu-4kb-wcu-1kb": { + "text": "One DynamoDB RCU provides one strongly consistent read/sec (or two eventually consistent reads/sec) for items up to 4 KB; one WCU provides one write/sec for items up to 1 KB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-partition-key-designhtml.md", + "source_url": "", + "source_hash": "83fe2e2f7fb6cec7", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-read-4kb-write-1kb-rounding": { + "text": "DynamoDB rounds item sizes up to the next 4 KB boundary for reads and the next 1 KB boundary for writes when calculating capacity unit consumption.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-read-write-operationshtml.md", + "source_url": "", + "source_hash": "411d1faaffb2b2bc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-read-committed-isolation": { + "text": "DynamoDB provides read-committed isolation \u2014 reads always return committed values and never return data from an unsuccessful write.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksReadConsistencyhtml.md", + "source_url": "", + "source_hash": "3cbfb3127fb499ed", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-read-consistency-costs": { + "text": "DynamoDB read costs per 4 KB: eventually consistent = 0.5 RCU, strongly consistent = 1 RCU, transactional = 2 RCU.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-read-write-operationshtml.md", + "source_url": "", + "source_hash": "411d1faaffb2b2bc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-reading-nonexistent-item-consumes-rcus": { + "text": "Reading a non-existent item in DynamoDB still consumes read capacity units.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-read-write-operationshtml.md", + "source_url": "", + "source_hash": "411d1faaffb2b2bc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-reads-writes-may-succeed-during-deleting-state": { + "text": "DynamoDB may continue to accept read/write operations on a table in `DELETING` state until deletion fully completes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteTablehtml.md", + "source_url": "", + "source_hash": "9714e2e9f75d4190", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-region-disable-converts-replicas-after-20-hours": { + "text": "Disabling an AWS Region converts its DynamoDB global table replicas to single-Region tables after 20 hours.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-CoreConceptshtml.md", + "source_url": "", + "source_hash": "42769a4a14b03c5d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-replica-autoscaling-independent-per-replica": { + "text": "Each DynamoDB global table replica can have different auto scaling settings (different min/max capacity, target utilization values) configured independently.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTableReplicaAutoScalinghtml.md", + "source_url": "", + "source_hash": "91fd3808dea886a2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-replicates-across-three-azs": { + "text": "DynamoDB automatically replicates data across three Availability Zones, providing 99.99% SLA (99.999% with global tables).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Introductionhtml.md", + "source_url": "", + "source_hash": "d8bff1fab0d99ba3", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-reserved-capacity-100-unit-minimum": { + "text": "DynamoDB reserved capacity is purchased in minimum allocations of 100 WCUs or 100 RCUs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-reserved-capacityhtml.md", + "source_url": "", + "source_hash": "57c1170e6d2347d1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-reserved-capacity-excludes-ondemand-ia-rwcu": { + "text": "DynamoDB reserved capacity does not apply to on-demand capacity mode, Standard-IA table class, or replicated write capacity units (rWCUs).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-reserved-capacityhtml.md", + "source_url": "", + "source_hash": "57c1170e6d2347d1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-reserved-capacity-provisioned-standard-single-region-only": { + "text": "DynamoDB reserved capacity applies only to provisioned capacity mode, standard table class, and single-region (not on-demand, Standard-IA, or global tables).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-understanding-billinghtml.md", + "source_url": "", + "source_hash": "2af811c386010b1d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-reserved-capacity-region-scoped-non-transferable": { + "text": "DynamoDB reserved capacity is region-specific and cannot be sold, cancelled, or transferred to another Region or account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-reserved-capacityhtml.md", + "source_url": "", + "source_hash": "57c1170e6d2347d1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-reserved-capacity-savings-1yr-54-3yr-77": { + "text": "DynamoDB reserved capacity offers up to 54% savings on a one-year term and up to 77% savings on a three-year term.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-reserved-capacityhtml.md", + "source_url": "", + "source_hash": "57c1170e6d2347d1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-resource-based-policies-always-inline": { + "text": "DynamoDB resource-based policies are always inline \u2014 there are no managed resource-based policies for DynamoDB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-auth-iam-id-based-policies-DDBhtml.md", + "source_url": "", + "source_hash": "4b0c1aba8b545d1e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-resource-based-policies-tables-and-streams-only": { + "text": "DynamoDB resource-based policies can only be attached to tables and streams, not to backups, imports, or other resource types.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-iam-actionshtml.md", + "source_url": "", + "source_hash": "286807257f5c56ad", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-resource-based-policy-cross-account-access": { + "text": "Resource-based policies are the primary mechanism for granting cross-account DynamoDB table access, using `PutResourcePolicy` API with standard IAM policy syntax.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-attach-resource-based-policyhtml.md", + "source_url": "", + "source_hash": "e66c5f61e1808998", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-resource-based-policy-max-20kb": { + "text": "DynamoDB resource-based policies have a maximum size of 20 KB per resource and can be attached to tables, indexes, and streams.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-access-control-resource-basedhtml.md", + "source_url": "", + "source_hash": "666bcea63e4b8051", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-resource-policies-on-tables-indexes-streams": { + "text": "DynamoDB resource-based policies can be attached to tables, indexes, and streams.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-best-practiceshtml.md", + "source_url": "", + "source_hash": "178e1ca26d7f6731", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-resource-policy-15-second-update-cooldown": { + "text": "After a successful DynamoDB resource-based policy update, subsequent updates to the same resource are blocked for 15 seconds.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-considerationshtml.md", + "source_url": "", + "source_hash": "38849ffee9ba1039", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-resource-policy-attachable-at-creation": { + "text": "DynamoDB resource-based policies can be attached at table creation time via `--resource-policy` on `create-table` CLI, not only post-creation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-create-tablehtml.md", + "source_url": "", + "source_hash": "7c4cf5a02829fc21", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-resource-policy-covers-table-and-indexes": { + "text": "A resource-based policy attached to a DynamoDB table also covers its associated indexes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-auth-iam-id-based-policies-DDBhtml.md", + "source_url": "", + "source_hash": "4b0c1aba8b545d1e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-resource-policy-eventually-consistent": { + "text": "`GetResourcePolicy` is eventually consistent \u2014 it may return stale data or `PolicyNotFoundException` immediately after `PutResourcePolicy`, `DeleteResourcePolicy`, or `CreateTable`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_GetResourcePolicyhtml.md", + "source_url": "", + "source_hash": "1521b6d93a53bb7d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-resource-policy-max-20kb": { + "text": "DynamoDB resource-based policies have a maximum size of 20 KB including whitespace.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_PutResourcePolicyhtml.md", + "source_url": "", + "source_hash": "e0be6bc11a918c70", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-resource-policy-requires-createtable-and-putresourcepolicy": { + "text": "Attaching a resource-based policy at DynamoDB table creation requires both `CreateTable` and `PutResourcePolicy` IAM actions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateTablehtml.md", + "source_url": "", + "source_hash": "40ef2c64dc2312ba", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-resource-policy-simplifies-cross-account": { + "text": "DynamoDB resource-based policies are the simplest way to grant cross-account access to DynamoDB resources, without requiring IAM roles or assume-role patterns.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-access-control-resource-basedhtml.md", + "source_url": "", + "source_hash": "666bcea63e4b8051", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-resource-policy-tables-and-streams": { + "text": "DynamoDB resource-based policies can be attached to tables and streams; index permissions are controlled through the base table's policy.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_PutResourcePolicyhtml.md", + "source_url": "", + "source_hash": "e0be6bc11a918c70", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-restore-50-concurrent-limit": { + "text": "DynamoDB allows up to 50 concurrent table restores (any type \u2014 on-demand backup or PITR) per account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_RestoreTableFromBackuphtml.md", + "source_url": "", + "source_hash": "3fac2697fa4db09e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-restore-creates-new-table": { + "text": "DynamoDB `RestoreTableFromBackup` and `RestoreTableToPointInTime` both create a new table \u2014 they cannot restore in-place, and `TableAlreadyExistsException` is thrown if the target table name already exists.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_RestoreTableFromBackuphtml.md", + "source_url": "", + "source_hash": "3fac2697fa4db09e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-restore-no-source-throughput-consumed": { + "text": "DynamoDB restores do not consume provisioned throughput on the source table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-pointintimerecovery_restoreshtml.md", + "source_url": "", + "source_hash": "ccae052f3f201cda", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-restore-six-settings-not-carried-over": { + "text": "DynamoDB restores do not carry over six settings that must be manually reconfigured: auto scaling policies, IAM policies, CloudWatch metrics/alarms, tags, stream settings, and TTL settings (plus PITR on the new table).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-pointintimerecovery_restoreshtml.md", + "source_url": "", + "source_hash": "ccae052f3f201cda", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-restore-six-settings-not-preserved": { + "text": "DynamoDB restores (both from backup and PITR) do not preserve six settings that must be manually reconfigured: auto scaling policies, IAM policies, CloudWatch metrics/alarms, tags, stream settings, and TTL settings.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_RestoreTableFromBackuphtml.md", + "source_url": "", + "source_hash": "3fac2697fa4db09e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-restore-uses-capacity-from-restore-point": { + "text": "A full DynamoDB PITR restore uses the provisioned capacity settings from the point-in-time being restored, not the table's current settings.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-pointintimerecovery_restoreshtml.md", + "source_url": "", + "source_hash": "ccae052f3f201cda", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-returnvalues-no-extra-rcu": { + "text": "DynamoDB `ReturnValues` does not consume additional read capacity units; returned values are strongly consistent.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateItemhtml.md", + "source_url": "", + "source_hash": "3e4e050a17f9475f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-root-can-always-delete-resource-policy": { + "text": "The AWS account root principal can always call `DeleteResourcePolicy` on DynamoDB, even if the resource-based policy explicitly denies root access, preventing accidental lockout.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteResourcePolicyhtml.md", + "source_url": "", + "source_hash": "cee8ddf9ade7e259", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-rru-wru-sizing": { + "text": "One DynamoDB Read Request Unit (RRU) = 1 strongly consistent read or 2 eventually consistent reads for items up to 4 KB; one Write Request Unit (WRU) = 1 write for items up to 1 KB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-on-demand-capacity-modehtml.md", + "source_url": "", + "source_hash": "4eedcf4c9b10ae95", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-50-concurrent-jobs-per-account": { + "text": "DynamoDB supports up to 50 concurrent S3 import jobs per account across all regions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportValidationhtml.md", + "source_url": "", + "source_hash": "26528a688ae7166e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-billed-on-uncompressed-size": { + "text": "DynamoDB S3 import pricing is based on uncompressed size of source data processed, including items that fail to load.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportHowItWorkshtml.md", + "source_url": "", + "source_hash": "2acbaf2c5d8fe1e8", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-compression-zstd-gzip": { + "text": "DynamoDB S3 import supports ZSTD, GZIP, or no compression.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportHowItWorkshtml.md", + "source_url": "", + "source_hash": "2acbaf2c5d8fe1e8", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-constrained-to-clean-initial-loads": { + "text": "DynamoDB S3 import is constrained to clean initial table loads: it only creates new tables (no merge into existing), silently overwrites duplicate keys in random order, and does not support tables with LSIs \u2014 making it unsuitable for incremental migration, data reconciliation, or tables requiring local secondary indexes.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-s3-import-creates-new-table-only", + "dynamodb-s3-import-duplicate-keys-last-write-wins", + "dynamodb-s3-import-no-lsi-supports-gsi" + ], + "outlist": [], + "label": "three independent constraints limit import to clean one-shot loads on LSI-free tables" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-s3-import-creates-new-table-only": { + "text": "DynamoDB S3 import always creates a new table \u2014 importing into an existing table is not supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportHowItWorkshtml.md", + "source_url": "", + "source_hash": "2acbaf2c5d8fe1e8", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-cross-account-cross-region": { + "text": "DynamoDB S3 import supports cross-account imports (with S3BucketOwner parameter and bucket policy) and cross-region imports (source bucket and target table in different regions).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportHowItWorkshtml.md", + "source_url": "", + "source_hash": "2acbaf2c5d8fe1e8", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-csv-headers-case-sensitive": { + "text": "CSV headers for DynamoDB S3 import are case-sensitive and must include the table's key attributes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportRequestinghtml.md", + "source_url": "", + "source_hash": "c2646284a4ebf0fe", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-duplicate-keys-last-write-wins": { + "text": "Duplicate primary keys in DynamoDB S3 imports cause overwrites \u2014 only one item per key survives, in random order; duplicates are not counted as errors.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportHowItWorkshtml.md", + "source_url": "", + "source_hash": "2acbaf2c5d8fe1e8", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-error-logs-cloudwatch": { + "text": "DynamoDB S3 import publishes error details to CloudWatch Logs under the `/aws-dynamodb/imports` log group with stream name `/error`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportValidationhtml.md", + "source_url": "", + "source_hash": "26528a688ae7166e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-failure-before-processing-no-table": { + "text": "When a DynamoDB S3 import fails before data processing begins (e.g., bucket doesn't exist), no table is created; when it fails after processing starts, a partially-filled table may remain.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportValidationhtml.md", + "source_url": "", + "source_hash": "26528a688ae7166e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-file-extensions-ignored": { + "text": "S3 object file extensions (.csv, .json, .gz) are ignored by DynamoDB import \u2014 the `InputFormat` API parameter controls format interpretation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportValidationhtml.md", + "source_url": "", + "source_hash": "26528a688ae7166e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-max-50000-objects": { + "text": "Each DynamoDB S3 import job supports a maximum of 50,000 S3 objects.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportBestPracticeshtml.md", + "source_url": "", + "source_hash": "daee54940979942a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-metadata-retained-90-days": { + "text": "DynamoDB import metadata is available via `list-imports` for 90 days after the import completes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportRequestinghtml.md", + "source_url": "", + "source_hash": "c2646284a4ebf0fe", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-no-lsi-supports-gsi": { + "text": "DynamoDB Import from S3 does not support tables with Local Secondary Indexes (LSIs), but does support Global Secondary Indexes (GSIs).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-migrating-table-between-accountshtml.md", + "source_url": "", + "source_hash": "e1fb342d2207a68e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-no-write-capacity-consumed": { + "text": "DynamoDB S3 import does not consume write capacity on the target table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportHowItWorkshtml.md", + "source_url": "", + "source_hash": "2acbaf2c5d8fe1e8", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-regional-size-limits": { + "text": "DynamoDB S3 import total source size limit is 15 TB in us-east-1, us-west-2, and eu-west-1; 1 TB in all other regions (based on raw S3 object size, not uncompressed).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportBestPracticeshtml.md", + "source_url": "", + "source_hash": "daee54940979942a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-sorted-data-hot-partition": { + "text": "Sorted data in DynamoDB S3 imports causes rolling hot partitions (sequential writes hitting one partition at a time); randomizing item order avoids this.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportBestPracticeshtml.md", + "source_url": "", + "source_hash": "daee54940979942a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-sse-c-not-supported": { + "text": "SSE-C encrypted S3 objects are not supported for DynamoDB S3 import; SSE-KMS and SSE-S3 are supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportRequestinghtml.md", + "source_url": "", + "source_hash": "c2646284a4ebf0fe", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-import-three-formats": { + "text": "DynamoDB S3 import supports three data formats: CSV, DynamoDB JSON, and Amazon Ion.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-S3DataImportFormathtml.md", + "source_url": "", + "source_hash": "d9b68dd080460c8b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-s3-offload-no-cross-service-transactions": { + "text": "DynamoDB does not support transactions spanning S3 and DynamoDB; applications must handle orphaned S3 objects themselves.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-use-s3-toohtml.md", + "source_url": "", + "source_hash": "312009ef79e08686", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-same-account-global-table-consistency-chosen-at-creation": { + "text": "DynamoDB same-account global tables require choosing between MREC and MRSC consistency mode at creation time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-SameAccounthtml.md", + "source_url": "", + "source_hash": "a00e537380e1541f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-scan-1mb-page-128-rcu-eventual-256-strong": { + "text": "A 1 MB eventually consistent DynamoDB Scan of 4 KB items consumes 128 RCUs; strongly consistent consumes 256 RCUs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-query-scanhtml.md", + "source_url": "", + "source_hash": "94858936e878934f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-scan-1mb-page-limit": { + "text": "Each DynamoDB Scan request reads up to 1 MB of data before returning; pagination via `LastEvaluatedKey`/`ExclusiveStartKey` is required for larger datasets.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Scanhtml.md", + "source_url": "", + "source_hash": "04d6475164f7814b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-scan-charges-evaluated-not-returned": { + "text": "DynamoDB `Scan` charges capacity based on items evaluated, not items returned after filtering.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-read-write-operationshtml.md", + "source_url": "", + "source_hash": "411d1faaffb2b2bc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-scan-consistent-read-not-on-gsi": { + "text": "DynamoDB Scan supports `ConsistentRead=true` for strongly consistent reads on base tables and LSIs, but setting it on a GSI throws `ValidationException`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Scanhtml.md", + "source_url": "", + "source_hash": "04d6475164f7814b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-scan-filter-does-not-reduce-rcu": { + "text": "DynamoDB Scan `FilterExpression` is applied after items are read \u2014 it does not reduce consumed read capacity units, only reduces data returned to the caller.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Scanhtml.md", + "source_url": "", + "source_hash": "04d6475164f7814b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-scan-index-forward-false-descending": { + "text": "Setting `ScanIndexForward=false` on a DynamoDB Query reverses the sort key order to descending.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-QueryKeyConditionExpressionshtml.md", + "source_url": "", + "source_hash": "4120980cc853ce07", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-scan-limit-controls-evaluated-not-returned": { + "text": "The DynamoDB Scan `Limit` parameter caps items evaluated, not items returned \u2014 fewer matching items may come back than the Limit value.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Scanhtml.md", + "source_url": "", + "source_hash": "04d6475164f7814b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-scan-no-snapshot-isolation": { + "text": "Even with `ConsistentRead=true`, a DynamoDB Scan does not guarantee a consistent snapshot across the entire table \u2014 consistency is at the item level only.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Scanhtml.md", + "source_url": "", + "source_hash": "04d6475164f7814b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-scan-reads-entire-table-then-filters": { + "text": "DynamoDB Scan always reads the entire table or secondary index then filters out unwanted results \u2014 you pay for reading everything, not just what matches.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-query-scanhtml.md", + "source_url": "", + "source_hash": "94858936e878934f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-scan-same-pagination-as-query": { + "text": "DynamoDB Scan operations use the same `LastEvaluatedKey`/`ExclusiveStartKey` pagination pattern as Query operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-QueryPaginationhtml.md", + "source_url": "", + "source_hash": "6af6d3c029b08f96", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-scanindexforward-false-descending": { + "text": "DynamoDB Query parameter ScanIndexForward defaults to true (ascending sort key order); setting it to false returns results in descending order.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Queryhtml.md", + "source_url": "", + "source_hash": "4f9332372782fdf1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-schema-design-access-pattern-driven": { + "text": "DynamoDB schema design must start from known access patterns before designing the schema \u2014 the opposite of RDBMS where you normalize first and optimize later.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-general-nosql-designhtml.md", + "source_url": "", + "source_hash": "c137af28cb60fb42", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-schema-design-starts-with-access-patterns": { + "text": "DynamoDB schema design requires identifying all access patterns before designing the table structure, unlike RDBMS where you normalize first \u2014 each access pattern should be servable by a single query.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-modeling-nosqlhtml.md", + "source_url": "", + "source_hash": "521d6f30aa5898dc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-schemaless-beyond-primary-key": { + "text": "DynamoDB is schemaless beyond the primary key \u2014 items in the same table can have different attributes and data types with no schema definition required.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksCoreComponentshtml.md", + "source_url": "", + "source_hash": "992998a83a24eb51", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-sdk-builtin-retry-logic": { + "text": "AWS SDKs for DynamoDB provide built-in retry logic and error handling, handling request formatting and response parsing automatically.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-dynamodb-resources-first-time-usershtml.md", + "source_url": "", + "source_hash": "1687953170adcab3", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-sdks-recommended-over-low-level-api": { + "text": "AWS recommends using SDKs rather than calling the DynamoDB low-level API directly; SDKs handle authentication, serialization, and connection management automatically.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-Welcomehtml.md", + "source_url": "", + "source_hash": "269969a145801d0e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-secondary-indexes-inherit-table-class": { + "text": "DynamoDB secondary indexes (GSI/LSI) inherit the table class of their parent table \u2014 you cannot set a different class per index.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksTableClasseshtml.md", + "source_url": "", + "source_hash": "16b593e1c1025515", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-select-count-same-rcu-as-read": { + "text": "DynamoDB `SELECT COUNT` in a Scan still consumes the same RCUs as reading the full items.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Scanhtml.md", + "source_url": "", + "source_hash": "04d6475164f7814b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-sets-unique-same-type-no-empty": { + "text": "DynamoDB Set types require all elements to be the same type with unique values; empty sets are not allowed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksNamingRulesDataTypeshtml.md", + "source_url": "", + "source_hash": "1634d50a610092d4", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-shorter-attribute-names-reduce-costs": { + "text": "Shorter DynamoDB attribute names reduce both storage costs and RCU/WCU consumption because attribute name length is included in item size calculations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-CapacityUnitCalculationshtml.md", + "source_url": "", + "source_hash": "98de9e7ab60e8767", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-single-table-design-preferred": { + "text": "DynamoDB best practice is to maintain as few tables as possible (single-table design preferred); exceptions include high-volume time series data or datasets with very different access patterns.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-general-nosql-designhtml.md", + "source_url": "", + "source_hash": "c137af28cb60fb42", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-single-table-design-recommended": { + "text": "DynamoDB best practices recommend minimizing the number of tables, with single-table design as the default recommendation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-table-designhtml.md", + "source_url": "", + "source_hash": "2583d01d2e2173b4", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-slr-deny-breaks-global-table-replication": { + "text": "Denying the DynamoDB service-linked role's replication action in a resource-based policy causes global table replica add/delete operations to fail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-considerationshtml.md", + "source_url": "", + "source_hash": "38849ffee9ba1039", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-soft-limit-2500-tables": { + "text": "DynamoDB has a soft account quota of 2,500 tables.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateKinesisStreamingDestinationhtml.md", + "source_url": "", + "source_hash": "086154eb6dd7338f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-soft-quota-2500-tables-per-account": { + "text": "DynamoDB has a soft account quota of 2,500 tables.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListExportshtml.md", + "source_url": "", + "source_hash": "7f201b5adb3bd193", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-soft-table-quota-2500": { + "text": "DynamoDB has a soft account quota of 2,500 tables.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTimeToLivehtml.md", + "source_url": "", + "source_hash": "f77b597a0c27cd4d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-sort-key-defines-physical-ordering": { + "text": "DynamoDB sort keys define the physical ordering of items within a partition, making range queries on the sort key very efficient.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-sort-keyshtml.md", + "source_url": "", + "source_hash": "9f98c10286b5428b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-sort-key-range-boundaries-plaintext": { + "text": "Some DynamoDB sort key values marking range boundaries are stored in plaintext in table metadata, even with encryption at rest enabled.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-EncryptionAtResthtml.md", + "source_url": "", + "source_hash": "28218c124c391615", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-sort-key-range-operators": { + "text": "DynamoDB sort keys support range queries using the operators `begins_with`, `between`, `>`, `<`, and `=` in Query key conditions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-sort-keyshtml.md", + "source_url": "", + "source_hash": "9f98c10286b5428b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-sparse-index-omits-items-without-key": { + "text": "DynamoDB sparse indexes only contain items that have the index key attributes \u2014 items without those attributes are automatically omitted from the index.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-indexeshtml.md", + "source_url": "", + "source_hash": "d1a749e71d86799d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-sse-false-means-aws-owned-key": { + "text": "Setting `--sse-specification Enabled=false` on a DynamoDB table switches to the AWS owned key \u2014 it does not disable encryption.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-encryptiontutorialhtml.md", + "source_url": "", + "source_hash": "6fa01f0dde8f97b1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-standard-ia-table-class-lower-storage-higher-rw": { + "text": "DynamoDB Standard-IA table class lowers storage costs but has higher read/write costs compared to Standard, suitable for infrequently accessed tables.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-cost-optimizationhtml.md", + "source_url": "", + "source_hash": "55934f3532ae003a", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-storage-in-cur-higher-than-describe-table": { + "text": "DynamoDB storage values in Cost and Usage Reports are higher than those from `DescribeTable` because CUR includes per-item storage overhead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-understanding-billinghtml.md", + "source_url": "", + "source_hash": "2af811c386010b1d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-stream-arn-includes-timestamp": { + "text": "DynamoDB stream ARNs include a timestamp component in the format `arn:aws:dynamodb:::table//stream/`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-attach-resource-policy-streamshtml.md", + "source_url": "", + "source_hash": "78eefb852218e369", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-stream-fan-out-constrained-by-ordering-and-capacity": { + "text": "DynamoDB Streams impose simultaneous ordering constraints (parent shards must be processed before child shards) and capacity constraints (maximum 2 Lambda consumers per stream before throttling), limiting event-driven architectures that require both high fan-out and strictly ordered processing to at most 2 ordered consumers.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-stream-max-2-lambda-consumers", + "dynamodb-streams-parent-before-child-ordering" + ], + "outlist": [], + "label": "2-consumer cap + parent-before-child ordering = architecturally constrained fan-out for ordered stream processing" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-stream-filter-numeric-comparison-broken": { + "text": "Numeric comparison operators do not work for DynamoDB stream event filters because DynamoDB stores numbers as strings (e.g., `\"quantity\": {\"N\": \"50\"}`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaTutorial2html.md", + "source_url": "", + "source_hash": "c34f9437fb98e60c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-stream-filter-requires-new-and-old-images": { + "text": "StreamViewType `NEW_AND_OLD_IMAGES` is required to filter on `NewImage` or `OldImage` data properties in Lambda event source mapping filters.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaTutorial2html.md", + "source_url": "", + "source_hash": "c34f9437fb98e60c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-stream-lambda-four-iam-permissions": { + "text": "Lambda functions consuming DynamoDB Streams require four specific permissions: `dynamodb:DescribeStream`, `dynamodb:GetRecords`, `dynamodb:GetShardIterator`, and `dynamodb:ListStreams`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaTutorialhtml.md", + "source_url": "", + "source_hash": "cb7be162d27e92cb", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-stream-max-2-lambda-consumers": { + "text": "A maximum of 2 Lambda functions can subscribe to a single DynamoDB stream before read throttling occurs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdahtml.md", + "source_url": "", + "source_hash": "1c62ebec05f590b1", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-stream-policy-cannot-attach-at-creation": { + "text": "Resource-based policies cannot be attached to a DynamoDB stream during `CreateTable` or `UpdateTable` \u2014 only after the stream exists via `PutResourcePolicy`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-attach-resource-policy-streamshtml.md", + "source_url": "", + "source_hash": "78eefb852218e369", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-stream-policy-persists-after-table-deletion": { + "text": "DynamoDB stream resource-based policies persist and can be modified or deleted even after the parent table is deleted or the stream is disabled.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-attach-resource-policy-streamshtml.md", + "source_url": "", + "source_hash": "78eefb852218e369", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-24-hour-data-retention": { + "text": "DynamoDB Streams retains stream records for 24 hours only; accessing data older than 24 hours raises `TrimmedDataAccessException`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_GetRecordshtml.md", + "source_url": "", + "source_hash": "04a89dd2eeaf9f10", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-24-hour-retention": { + "text": "DynamoDB Streams retains stream records for exactly 24 hours with no configurable retention and no manual deletion mechanism.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Streamshtml.md", + "source_url": "", + "source_hash": "e2ebbf0fe92f38f2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-apache-flink-connector": { + "text": "DynamoDB Streams can be consumed by Apache Flink via a dedicated connector, using Amazon Managed Service for Apache Flink (formerly Kinesis Data Analytics for Apache Flink).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsApacheFlinkxmlhtml.md", + "source_url": "", + "source_hash": "62cf6fca912e56ea", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-api-separate-endpoint": { + "text": "DynamoDB Streams uses a separate API with its own endpoint (`streams.dynamodb..amazonaws.com`) and service name (`dynamodbstreams`), distinct from the main DynamoDB API.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDB_Streamshtml.md", + "source_url": "", + "source_hash": "5cec3c949049791e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-api-similar-not-identical-to-kinesis": { + "text": "The DynamoDB Streams API is intentionally similar but not 100% identical to the Kinesis Data Streams API \u2014 both have ListStreams, DescribeStream, GetShards, and GetShardIterator.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsKCLAdapterhtml.md", + "source_url": "", + "source_hash": "440cfed23e9849be", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-auto-delete-24h-after-table-deletion": { + "text": "When a DynamoDB table is deleted, associated streams enter `DISABLED` state and are automatically deleted after 24 hours.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteTablehtml.md", + "source_url": "", + "source_hash": "9714e2e9f75d4190", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-consumption-requires-fragile-client-protocol": { + "text": "DynamoDB Streams consumption requires implementing a fragile multi-step client protocol: obtain shard iterators (which expire after 15 minutes of inactivity), issue GetRecords calls (bounded by 1 MB or 1,000 records), and respect API rate limits (DescribeStream at 10 TPS) \u2014 each constraint independently causes data loss or processing stalls if not handled defensively.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-streams-shard-iterator-expires-15-minutes", + "dynamodb-streams-getrecords-max-1mb-or-1000", + "dynamodb-streams-read-two-step-iterator-records", + "dynamodb-streams-describe-stream-rate-limit-10tps" + ], + "outlist": [], + "label": "four independent operational constraints each independently cause failure if not handled in client code" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "unnecessary" + } + }, + "dynamodb-streams-data-plane-requires-explicit-logging": { + "text": "DynamoDB Streams control plane operations (DescribeStream, ListStreams) are logged by default; data plane operations (GetRecords, GetShardIterator) require explicit data event logging in CloudTrail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "c5da484e3165407f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-describe-stream-rate-limit-10tps": { + "text": "The DynamoDB Streams `DescribeStream` API is rate-limited to 10 calls per second.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_DescribeStreamhtml.md", + "source_url": "", + "source_hash": "7534019f095c19fd", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-disable-reenable-new-arn": { + "text": "Disabling and re-enabling a DynamoDB stream creates a completely new stream with a different ARN.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Streamshtml.md", + "source_url": "", + "source_hash": "e2ebbf0fe92f38f2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-exactly-four-actions": { + "text": "The DynamoDB Streams API has exactly four actions: DescribeStream, GetRecords, GetShardIterator, and ListStreams.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDB_Streamshtml.md", + "source_url": "", + "source_hash": "5cec3c949049791e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-four-iterator-types": { + "text": "`GetShardIterator` supports four iterator types: `TRIM_HORIZON` (oldest untrimmed), `LATEST` (only new), `AT_SEQUENCE_NUMBER` (exact), and `AFTER_SEQUENCE_NUMBER` (immediately after).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_GetShardIteratorhtml.md", + "source_url": "", + "source_hash": "1e8b91a948162bc0", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-four-view-types": { + "text": "DynamoDB Streams `StreamViewType` controls captured data: `KEYS_ONLY`, `NEW_IMAGE`, `OLD_IMAGE`, or `NEW_AND_OLD_IMAGES`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_GetRecordshtml.md", + "source_url": "", + "source_hash": "04a89dd2eeaf9f10", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-getrecords-max-1mb-or-1000": { + "text": "`GetRecords` returns up to 1 MB of data or 1,000 stream records per call, whichever limit is reached first.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_GetRecordshtml.md", + "source_url": "", + "source_hash": "04a89dd2eeaf9f10", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-kcl-recommended-consumer": { + "text": "The recommended way to consume DynamoDB Streams is via the Kinesis Adapter + KCL, not raw API calls.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsKCLAdapterhtml.md", + "source_url": "", + "source_hash": "440cfed23e9849be", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-kcl-recommended-over-low-level": { + "text": "AWS recommends using the Kinesis Client Library (KCL) adapter instead of the low-level DynamoDB Streams API for production use, as KCL handles shard management, checkpointing, and failover automatically.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLowLevelWalkthroughhtml.md", + "source_url": "", + "source_hash": "79b70837eea6788d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-kinesis-adapter-redirects-to-streams-endpoint": { + "text": "The DynamoDB Streams Kinesis Adapter implements the Kinesis Data Streams interface, redirecting KCL API calls to the DynamoDB Streams endpoint transparently.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsKCLAdapterhtml.md", + "source_url": "", + "source_hash": "440cfed23e9849be", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-lambda-and-replication-reads-free": { + "text": "DynamoDB Streams `GetRecords` calls invoked by Lambda triggers or global table replication are not charged.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-understanding-billinghtml.md", + "source_url": "", + "source_hash": "2af811c386010b1d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-lambda-not-exactly-once": { + "text": "DynamoDB Streams + Lambda does not guarantee exactly-once delivery \u2014 duplicate records are possible, so Lambda function code must be idempotent.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaBestPracticesWithDynamoDBhtml.md", + "source_url": "", + "source_hash": "90668e33fbe14605", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-list-streams-rate-limit-5tps": { + "text": "The DynamoDB Streams `ListStreams` API is rate-limited to 5 calls per second, returning up to 100 streams per response.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_ListStreamshtml.md", + "source_url": "", + "source_hash": "6002db377d2dcf02", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-low-level-api-separate-client": { + "text": "DynamoDB Streams requires a separate `DynamoDbStreamsClient` from the standard `DynamoDbClient`, connecting to a different endpoint.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLowLevelWalkthroughhtml.md", + "source_url": "", + "source_hash": "79b70837eea6788d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-max-2-concurrent-readers-per-shard": { + "text": "DynamoDB Streams supports a maximum of 2 concurrent readers per shard before throttling occurs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_TagResourcehtml.md", + "source_url": "", + "source_hash": "3e3d49bbe0b23664", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-max-2-concurrent-shard-readers": { + "text": "DynamoDB Streams allows a maximum of 2 processes reading from the same shard concurrently; exceeding this causes throttling.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListExportshtml.md", + "source_url": "", + "source_hash": "7f201b5adb3bd193", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-max-2-readers-per-shard": { + "text": "DynamoDB Streams supports a maximum of 2 simultaneous readers per shard (1 for global tables).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-ServiceQuotashtml.md", + "source_url": "", + "source_hash": "ee89a040c06a392b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-noop-writes-skipped": { + "text": "DynamoDB PutItem/UpdateItem operations that don't change data produce no stream record.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Streamshtml.md", + "source_url": "", + "source_hash": "e2ebbf0fe92f38f2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-null-iterator-shard-sealed": { + "text": "A DynamoDB Streams shard iterator becomes null when the shard is sealed (READ_ONLY); child shards must be fetched to continue reading.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLowLevelWalkthroughhtml.md", + "source_url": "", + "source_hash": "79b70837eea6788d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-parent-before-child-ordering": { + "text": "DynamoDB Streams parent shards must be processed before child shards to preserve correct item-level ordering.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Streamshtml.md", + "source_url": "", + "source_hash": "e2ebbf0fe92f38f2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-read-two-step-iterator-records": { + "text": "Reading from DynamoDB Streams requires a two-step process: GetShardIterator to obtain an iterator, then GetRecords to retrieve stream records.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDB_Streamshtml.md", + "source_url": "", + "source_hash": "5cec3c949049791e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-records-retained-24-hours": { + "text": "DynamoDB Streams records are retained for 24 hours.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDB_Streamshtml.md", + "source_url": "", + "source_hash": "5cec3c949049791e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-separate-api-endpoint": { + "text": "DynamoDB Streams has its own API endpoint (`streams.dynamodb..amazonaws.com`) and service model (`DynamoDBStreams_20120810`), separate from the main DynamoDB API.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_DescribeStreamhtml.md", + "source_url": "", + "source_hash": "7534019f095c19fd", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-shard-iterator-expires-15-minutes": { + "text": "DynamoDB Streams shard iterators expire after 15 minutes of inactivity and must be re-acquired via `GetShardIterator`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_GetRecordshtml.md", + "source_url": "", + "source_hash": "04a89dd2eeaf9f10", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-shard-open-vs-closed": { + "text": "A DynamoDB Streams shard with only a `StartingSequenceNumber` is open (still receiving records); a shard with both `StartingSequenceNumber` and `EndingSequenceNumber` is closed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_streams_DescribeStreamhtml.md", + "source_url": "", + "source_hash": "7534019f095c19fd", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-streams-view-type-immutable": { + "text": "DynamoDB StreamViewType (KEYS_ONLY, NEW_IMAGE, OLD_IMAGE, NEW_AND_OLD_IMAGES) cannot be changed after stream creation; the stream must be disabled and a new one created.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Streamshtml.md", + "source_url": "", + "source_hash": "e2ebbf0fe92f38f2", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-strong-consistency-tables-and-lsis-only": { + "text": "DynamoDB strongly consistent reads are supported on tables and Local Secondary Indexes (LSIs) only \u2014 not on GSIs or DynamoDB Streams.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksReadConsistencyhtml.md", + "source_url": "", + "source_hash": "3cbfb3127fb499ed", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-table-and-stream-policies-separate": { + "text": "DynamoDB table and stream resource-based policies are separate \u2014 they must be attached independently as distinct policy documents.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-create-tablehtml.md", + "source_url": "", + "source_hash": "7c4cf5a02829fc21", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-table-class-changeable-after-creation": { + "text": "DynamoDB table class can be changed after table creation via Console, CLI, or SDK \u2014 it is not a permanent decision.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksTableClasseshtml.md", + "source_url": "", + "source_hash": "16b593e1c1025515", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-table-multiple-kinesis-streaming-destinations": { + "text": "A single DynamoDB table can have multiple Kinesis Data Streams streaming destinations simultaneously.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeKinesisStreamingDestinationhtml.md", + "source_url": "", + "source_hash": "77f7f9e09256d697", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-table-name-3-255-chars-alphanumeric": { + "text": "DynamoDB table names must be 3\u2013255 characters matching the pattern `[a-zA-Z0-9_.-]+`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeGlobalTablehtml.md", + "source_url": "", + "source_hash": "b57bb4f6209cbcd5", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-table-name-constraints-3-255-chars": { + "text": "DynamoDB table names must be 3\u2013255 characters matching the pattern `[a-zA-Z0-9_.-]+`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ListGlobalTableshtml.md", + "source_url": "", + "source_hash": "d3dc54b1d79f86c6", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-table-names-unique-per-account-region": { + "text": "DynamoDB table names must be unique per AWS account and Region combination; identically named tables in different Regions are entirely separate.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithTablesBasicshtml.md", + "source_url": "", + "source_hash": "2391f0f105c07e2e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-table-names-unique-per-region": { + "text": "DynamoDB table names must be unique per Region but can be duplicated across Regions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CreateTablehtml.md", + "source_url": "", + "source_hash": "40ef2c64dc2312ba", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-table-policy-cascades-to-indexes": { + "text": "Removing a DynamoDB table's resource-based policy also removes permissions for that table's indexes, since index permissions are defined within the table's policy.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DeleteResourcePolicyhtml.md", + "source_url": "", + "source_hash": "cee8ddf9ade7e259", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-table-policy-covers-indexes": { + "text": "A DynamoDB resource-based policy attached to a table also implicitly covers its indexes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-access-control-resource-basedhtml.md", + "source_url": "", + "source_hash": "666bcea63e4b8051", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-table-size-unlimited": { + "text": "DynamoDB tables have no practical size limit \u2014 table size is unlimited in terms of items and bytes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-ServiceQuotashtml.md", + "source_url": "", + "source_hash": "ee89a040c06a392b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-table-status-must-be-active-before-use": { + "text": "DynamoDB tables transition from CREATING to ACTIVE status; the table must be ACTIVE before it can accept read/write operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-1html.md", + "source_url": "", + "source_hash": "eed13122388b9f71", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-tablename-dimension-excludes-gsi": { + "text": "The CloudWatch TableName dimension alone returns capacity metrics for the base table only, not GSIs \u2014 you must specify both TableName and GlobalSecondaryIndexName dimensions for GSI metrics.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-metrics-dimensionshtml.md", + "source_url": "", + "source_hash": "940f8513ae8d9e97", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-tag-resource-eventually-consistent-5tps": { + "text": "DynamoDB `TagResource` is asynchronous and eventually consistent; it has a rate limit of 5 calls per second per account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_TagResourcehtml.md", + "source_url": "", + "source_hash": "3e3d49bbe0b23664", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-tagging-eventually-consistent": { + "text": "DynamoDB tagging operations (TagResource, UntagResource, ListTagsOfResource) are eventually consistent \u2014 tag changes may not be immediately reflected.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UntagResourcehtml.md", + "source_url": "", + "source_hash": "170ee2beb9d844a9", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-tagging-rate-limit-5-per-second": { + "text": "DynamoDB tagging operations (TagResource/UntagResource) are rate-limited to 5 calls per second per account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UntagResourcehtml.md", + "source_url": "", + "source_hash": "170ee2beb9d844a9", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-tags-for-cost-allocation-not-access-control": { + "text": "DynamoDB tags are used for cost allocation tracking in the Billing and Cost Management console, not for access control (unlike IAM tags/ABAC).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_TagResourcehtml.md", + "source_url": "", + "source_hash": "3e3d49bbe0b23664", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-three-encryption-key-types": { + "text": "DynamoDB supports three encryption key types: AWS owned keys (free, no audit), AWS managed keys (`aws/dynamodb`, auditable via CloudTrail), and customer managed keys (full control over policies, rotation, grants).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-encryptionhowitworkshtml.md", + "source_url": "", + "source_hash": "4ced9ba839135ceb", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-three-table-design-approaches": { + "text": "DynamoDB has three table design approaches: single-table design (composite sort keys, overloaded GSIs), multi-table design (separate tables for independent operational needs), and aggregate design (embed related data accessed together).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-modeling-nosqlhtml.md", + "source_url": "", + "source_hash": "521d6f30aa5898dc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-throttling-four-scenarios": { + "text": "DynamoDB has four throttling scenarios: (1) key range throughput exceeded (both modes), (2) provisioned throughput exceeded (provisioned only), (3) account-level service quotas exceeded (on-demand only), and (4) on-demand max throughput exceeded (on-demand only).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-TroubleshootingThrottlinghtml.md", + "source_url": "", + "source_hash": "5568654e9e8a2a61", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-time-series-special-table-design": { + "text": "DynamoDB time-series data requires special table design to avoid hot partitions (e.g., separate tables per time period or sharded partition keys).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-best-practiceshtml.md", + "source_url": "", + "source_hash": "24bc5790583be985", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-time-series-table-per-period-pattern": { + "text": "For time series data, DynamoDB recommends one table per time period (an exception to the single-table guideline), with prebuilt next-period tables, capacity scale-down on older tables (e.g., to 1 WCU), and eventual archival/deletion.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-time-serieshtml.md", + "source_url": "", + "source_hash": "a7bee9b46a3b750b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-total-cost-multiplies-across-six-independent-dimensions": { + "text": "DynamoDB cost is affected by multiple billing factors \u2014 capacity overhead from rounding and GSI minimums, consistency mode choice, transaction multipliers, and item size calculations \u2014 that apply sequentially to the same operations, compounding the effective cost.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-capacity-billing-penalizes-small-items-disproportionately", + "dynamodb-cost-compounds-across-three-independent-dimensions" + ], + "outlist": [], + "label": "Three hidden per-item overhead mechanisms (depth-2) are independent of three operational cost multipliers (depth-2) \u2014 the six dimensions have no shared antecedents, meaning they multiply rather than overlap" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "dynamodb-transact-get-conflict-cancels-not-retries": { + "text": "Concurrent write operations on items being read by `TransactGetItems` cause `TransactionCanceledException` \u2014 this is a hard failure, not an automatically retried error.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_TransactGetItemshtml.md", + "source_url": "", + "source_hash": "f39c891a64f38889", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transact-get-items-100-items-4mb": { + "text": "`TransactGetItems` supports up to 100 items per request with a 4 MB aggregate size limit, across one or more tables within a single account and Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_TransactGetItemshtml.md", + "source_url": "", + "source_hash": "f39c891a64f38889", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transact-get-items-no-indexes": { + "text": "`TransactGetItems` cannot read from indexes (GSI or LSI) \u2014 only base tables are supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_TransactGetItemshtml.md", + "source_url": "", + "source_hash": "f39c891a64f38889", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transaction-100-items-4mb-limit": { + "text": "DynamoDB transactions (`TransactWriteItems` and `TransactGetItems`) support up to 100 actions targeting up to 100 distinct items with a 4 MB aggregate size limit.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-apishtml.md", + "source_url": "", + "source_hash": "87e1819a926641ef", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transaction-2x-capacity-cost": { + "text": "Each item in a DynamoDB transaction consumes 2x capacity (one prepare phase + one commit phase) \u2014 2 WCUs per write or 2 RCUs per read.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-apishtml.md", + "source_url": "", + "source_hash": "87e1819a926641ef", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transaction-all-or-nothing": { + "text": "DynamoDB transactions are all-or-nothing \u2014 if any action's condition fails, the entire transaction is canceled with no partial execution.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-transactionshtml.md", + "source_url": "", + "source_hash": "7aafc71a6036955c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transaction-canceled-exception": { + "text": "TransactionCanceledException is thrown when one or more conditions in a DynamoDB transaction are not met, canceling the entire transaction.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-examplehtml.md", + "source_url": "", + "source_hash": "1bbdd05415ed6e67", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transaction-cancellation-reasons-positional": { + "text": "DynamoDB `CancellationReason` entries in `TransactionCanceledException` are positionally ordered to match the original request items; successful items show Null code/message (not omitted).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CancellationReasonhtml.md", + "source_url": "", + "source_hash": "c4f7b728241b97d5", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transaction-cancelled-exception-no-auto-retry": { + "text": "SDKs do not automatically retry `TransactionCanceledException` in DynamoDB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-apishtml.md", + "source_url": "", + "source_hash": "87e1819a926641ef", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transaction-cannot-target-same-item-twice": { + "text": "A single DynamoDB transaction cannot target the same item with multiple operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-apishtml.md", + "source_url": "", + "source_hash": "87e1819a926641ef", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transaction-four-action-types": { + "text": "TransactWriteItems supports four action types: Put (write new item), Update (modify existing), Delete (remove item), and ConditionCheck (validate without modifying).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_TransactWriteItemshtml.md", + "source_url": "", + "source_hash": "3b51ff6249b8b17d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transaction-idempotency-token-10-minutes": { + "text": "TransactWriteItems supports idempotency via `ClientRequestToken` (1\u201336 chars), valid for 10 minutes; reusing a token with different parameters raises `IdempotentParameterMismatch`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_TransactWriteItemshtml.md", + "source_url": "", + "source_hash": "3b51ff6249b8b17d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transaction-max-100-actions": { + "text": "DynamoDB transactions support up to 100 actions per request \u2014 both TransactWriteItems (100 write actions) and TransactGetItems (100 read actions).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-transactionshtml.md", + "source_url": "", + "source_hash": "7aafc71a6036955c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transaction-no-duplicate-items": { + "text": "No two actions within a single DynamoDB transaction can target the same item.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_TransactWriteItemshtml.md", + "source_url": "", + "source_hash": "3b51ff6249b8b17d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transaction-region-local-acid-only": { + "text": "DynamoDB transaction ACID guarantees apply only within the Region where the write was invoked \u2014 cross-region replicas in global tables may show partial transactions during replication.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-apishtml.md", + "source_url": "", + "source_hash": "87e1819a926641ef", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transaction-same-account-region-only": { + "text": "DynamoDB transactions (TransactWriteItems/TransactGetItems) can span multiple tables but are limited to the same AWS account and Region \u2014 no cross-account or cross-Region transactions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_TransactWriteItemshtml.md", + "source_url": "", + "source_hash": "3b51ff6249b8b17d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transaction-serializable-individual-read-committed-batch": { + "text": "DynamoDB provides serializable isolation between transactions and individual standard operations (`GetItem`, `PutItem`, etc.), but only read-committed isolation between transactions and multi-item reads (`Query`, `Scan`, `BatchGetItem`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-apishtml.md", + "source_url": "", + "source_hash": "87e1819a926641ef", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transaction-streams-not-atomic": { + "text": "DynamoDB Streams does not preserve transaction atomicity \u2014 stream records from a transaction may appear at different times and interleave with other transactions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-transaction-apishtml.md", + "source_url": "", + "source_hash": "87e1819a926641ef", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transactional-reads-quadruple-cost-vs-eventually-consistent": { + "text": "DynamoDB transactional reads cost 4x more than eventually consistent reads (2 RCU vs 0.5 RCU per 4 KB), making consistency choice the single largest per-read cost lever.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-read-consistency-costs", + "dynamodb-transaction-2x-capacity-cost" + ], + "outlist": [], + "label": "Combining baseline read cost tiers with the transaction 2x multiplier reveals a 4x spread between cheapest and most expensive read mode" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "unnecessary" + } + }, + "dynamodb-transactional-writes-2x-cost": { + "text": "DynamoDB transactional writes cost 2 WCU per 1 KB (double the standard 1 WCU per 1 KB).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-read-write-operationshtml.md", + "source_url": "", + "source_hash": "411d1faaffb2b2bc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transactions-100-item-limit-no-begin-end": { + "text": "DynamoDB transactions (TransactWriteItems and TransactGetItems) are limited to 100 items per transaction call and have no begin/end semantics unlike RDBMS transactions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-relational-modelinghtml.md", + "source_url": "", + "source_hash": "4722296008e0bb1c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transactions-all-or-nothing": { + "text": "DynamoDB transactions (`TransactWriteItems`/`TransactGetItems`) are all-or-nothing: if any item fails, the entire transaction is cancelled and all cancellation reasons are reported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_CancellationReasonhtml.md", + "source_url": "", + "source_hash": "c4f7b728241b97d5", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transactions-bounded-atomicity-envelope": { + "text": "DynamoDB transactions provide cross-table ACID guarantees within a fixed envelope: maximum 100 actions per transaction, 4 MB aggregate size, no duplicate item targeting, and exactly four action types \u2014 schema design must ensure all atomic business operations fit within these constraints or forfeit transactional guarantees.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-transactwriteitems-max-100-actions-4mb", + "dynamodb-transaction-cannot-target-same-item-twice", + "dynamodb-transactions-cross-table-support", + "dynamodb-transactwriteitems-four-action-types" + ], + "outlist": [], + "label": "ACID holds within bounded constraints that schema design must respect" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "dynamodb-transactions-consume-read-and-write-capacity": { + "text": "DynamoDB transactions consume both read and write capacity \u2014 reads for condition checks and writes for mutations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_TransactWriteItemshtml.md", + "source_url": "", + "source_hash": "3b51ff6249b8b17d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transactions-cross-table-support": { + "text": "DynamoDB transactions can span multiple tables within a single atomic operation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-transactionshtml.md", + "source_url": "", + "source_hash": "7aafc71a6036955c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transactions-no-cross-account-cross-region": { + "text": "DynamoDB transactions do not support cross-account or cross-region operations \u2014 a table in a different account or region causes TransactionCanceledException.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_ExecuteTransactionhtml.md", + "source_url": "", + "source_hash": "0c0e2dfe20ee8d50", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transactions-provide-full-acid-with-downstream-visibility": { + "text": "DynamoDB transactions provide full ACID guarantees with downstream visibility \u2014 all-or-nothing semantics ensure consistency and up to 100 items per transaction provides practical scope.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-transactions-up-to-100-items-acid", + "dynamodb-transaction-all-or-nothing" + ], + "outlist": [ + "dynamodb-transaction-streams-not-atomic" + ], + "label": "ACID guarantees hold at the API level but Streams breaks atomicity for downstream consumers \u2014 event-driven systems see non-atomic views of atomic transactions" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "dynamodb-transactions-up-to-100-items-acid": { + "text": "DynamoDB transactions (TransactGetItems, TransactWriteItems) provide ACID guarantees across up to 100 items.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_Operations_Amazon_DynamoDBhtml.md", + "source_url": "", + "source_hash": "eadb65303b7f57de", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transactwriteitems-100-items": { + "text": "`TransactWriteItems` supports up to 100 items per transaction and is all-or-nothing (transactional), unlike `BatchWriteItem` which allows partial failures.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-BestPractices_BulkDataOperationshtml.md", + "source_url": "", + "source_hash": "5594379aca39d4fa", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transactwriteitems-all-or-nothing": { + "text": "TransactWriteItems provides multi-item atomic writes with all-or-nothing semantics, suited for moderate contention scenarios.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-BestPractices_ImplementingVersionControlhtm.md", + "source_url": "", + "source_hash": "e12efb1bbbeddeaa", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transactwriteitems-four-action-types": { + "text": "TransactWriteItems supports four action types: Put, Update, Delete, and ConditionCheck.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-transactionshtml.md", + "source_url": "", + "source_hash": "7aafc71a6036955c", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-transactwriteitems-max-100-actions-4mb": { + "text": "TransactWriteItems supports up to 100 actions per transaction with a maximum aggregate size of 4 MB; individual items are limited to 400 KB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_TransactWriteItemshtml.md", + "source_url": "", + "source_hash": "3b51ff6249b8b17d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ttl-creates-invisible-asymmetric-cost-mutations": { + "text": "DynamoDB TTL deletions appear free (no local WCU consumed, no CloudTrail log entries) but actually consume WCU on global table replicas, creating a category of mutations that is cost-free in one region, cost-bearing in all others, and audit-invisible everywhere \u2014 a hidden cost vector undetectable by either billing analysis or security audit.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-ttl-no-write-throughput-consumed", + "dynamodb-ttl-delete-no-wcu-local-but-wcu-on-replicas", + "dynamodb-ttl-deletions-not-logged-cloudtrail" + ], + "outlist": [], + "label": "free locally + charged on replicas + invisible to CloudTrail = asymmetric cost/audit blind spot unique to TTL mutations" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "unnecessary" + } + }, + "dynamodb-ttl-delete-no-wcu-local-but-wcu-on-replicas": { + "text": "DynamoDB TTL deletes do not consume WCU in the region where the delete occurred, but do consume WCU on replicated replicas.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-globaltables-CoreConceptshtml.md", + "source_url": "", + "source_hash": "42769a4a14b03c5d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ttl-deletes-at-no-cost": { + "text": "DynamoDB TTL deletes aged-out items at no cost, relevant for both cost optimization and sustainability.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-walhtml.md", + "source_url": "", + "source_hash": "784f91fe5e3cfc72", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ttl-deletion-within-48-hours": { + "text": "DynamoDB TTL-expired items are deleted on a best-effort basis, typically within 48 hours of expiration; until deleted, expired items remain visible in reads, queries, and scans.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTimeToLivehtml.md", + "source_url": "", + "source_hash": "f77b597a0c27cd4d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ttl-deletions-generate-stream-records": { + "text": "DynamoDB TTL deletions can generate stream records for downstream processing via DynamoDB Streams.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTimeToLivehtml.md", + "source_url": "", + "source_hash": "c57dacfdd7243272", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ttl-deletions-not-logged-cloudtrail": { + "text": "DynamoDB TTL data plane deletion actions are NOT logged by CloudTrail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "c5da484e3165407f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ttl-epoch-seconds-format": { + "text": "The DynamoDB TTL attribute must store values in epoch second format (seconds since 1970-01-01 00:00:00 UTC), not milliseconds.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTimeToLivehtml.md", + "source_url": "", + "source_hash": "f77b597a0c27cd4d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ttl-four-statuses": { + "text": "DynamoDB TTL has four possible statuses: `ENABLED`, `DISABLED`, `ENABLING`, and `DISABLING` \u2014 it has transitional states, not just on/off.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeTimeToLivehtml.md", + "source_url": "", + "source_hash": "c57dacfdd7243272", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ttl-no-write-throughput-consumed": { + "text": "DynamoDB TTL deletions do not consume write throughput \u2014 they are performed as a background, best-effort process.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTimeToLivehtml.md", + "source_url": "", + "source_hash": "f77b597a0c27cd4d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ttl-one-update-per-table-per-hour": { + "text": "Only one `UpdateTimeToLive` call per DynamoDB table per hour is allowed; additional calls during the propagation window raise `ValidationException`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTimeToLivehtml.md", + "source_url": "", + "source_hash": "f77b597a0c27cd4d", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ttl-stream-useridentity-only-source-region": { + "text": "In DynamoDB global tables, the `userIdentity` field on TTL stream records is set only in the region where the TTL deletion occurred \u2014 replicated deletes in other regions do not have this field.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-time-to-live-ttl-streamshtml.md", + "source_url": "", + "source_hash": "2310a25924d8dfc7", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-ttl-stream-useridentity-service-principal": { + "text": "TTL-deleted items in DynamoDB Streams are identifiable by `userIdentity.type = \"Service\"` and `userIdentity.principalId = \"dynamodb.amazonaws.com\"`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-time-to-live-ttl-streamshtml.md", + "source_url": "", + "source_hash": "2310a25924d8dfc7", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-two-cdc-options-streams-and-kinesis": { + "text": "DynamoDB offers two change data capture (CDC) options: DynamoDB Streams and Kinesis Data Streams for DynamoDB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-Introductionhtml.md", + "source_url": "", + "source_hash": "d8bff1fab0d99ba3", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-two-table-classes-standard-and-ia": { + "text": "DynamoDB has two table classes: STANDARD (default) and STANDARD_INFREQUENT_ACCESS.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithTablesBasicshtml.md", + "source_url": "", + "source_hash": "2391f0f105c07e2e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-two-table-classes-standard-and-standard-ia": { + "text": "DynamoDB offers two table classes: Standard (default) and Standard-Infrequent Access (Standard-IA), where Standard-IA has lower storage costs but higher read/write costs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-HowItWorksTableClasseshtml.md", + "source_url": "", + "source_hash": "16b593e1c1025515", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-unconditional-allow-overrides-conditional-resource-policy": { + "text": "An unconditional Allow in an identity-based policy overrides conditional Allow statements in a DynamoDB resource-based policy \u2014 use explicit Deny instead of conditional Allow to enforce restrictions like attribute-level access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-rbac-auth-iam-id-based-policies-DDBhtml.md", + "source_url": "", + "source_hash": "4b0c1aba8b545d1e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-update-capacity-based-on-larger-size": { + "text": "Consumed capacity for an UpdateItem is based on the larger of the item size before or after the update, rounded up to 1 KB for standard tables.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-4html.md", + "source_url": "", + "source_hash": "cc5ab662ee112412", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-update-expression-four-actions": { + "text": "Update expressions support four actions: SET, REMOVE, ADD, and DELETE.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-getting-started-step-4html.md", + "source_url": "", + "source_hash": "cc5ab662ee112412", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-update-table-fully-available": { + "text": "DynamoDB tables remain fully available during UpdateTable operations (UPDATING status does not block reads/writes).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-WorkingWithTablesBasicshtml.md", + "source_url": "", + "source_hash": "2391f0f105c07e2e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-updateexpression-four-actions": { + "text": "DynamoDB `UpdateExpression` supports four action types: `SET` (add/replace attributes), `REMOVE` (delete attributes), `ADD` (increment numbers or add to sets), and `DELETE` (remove elements from sets).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateItemhtml.md", + "source_url": "", + "source_hash": "3e4e050a17f9475f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-updateglobaltable-legacy-2017-api": { + "text": "`UpdateGlobalTable` is a legacy API (version 2017.11.29) for adding/removing replicas; current global tables (version 2019.11.21) use `UpdateTable` instead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateGlobalTablehtml.md", + "source_url": "", + "source_hash": "8c1ea5cf0073c652", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-updateitem-charges-larger-of-before-after": { + "text": "DynamoDB `UpdateItem` consumes capacity based on the larger of the before or after item size, even if only updating one small attribute on a large item.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-read-write-operationshtml.md", + "source_url": "", + "source_hash": "411d1faaffb2b2bc", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-updateitem-upsert-behavior": { + "text": "DynamoDB `UpdateItem` creates the item if the primary key doesn't exist (upsert behavior); otherwise it modifies the existing item's attributes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateItemhtml.md", + "source_url": "", + "source_hash": "3e4e050a17f9475f", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-updatetable-blocked-during-updating": { + "text": "DynamoDB table is blocked from further `UpdateTable` calls while in `UPDATING` state (transitions ACTIVE \u2192 UPDATING \u2192 ACTIVE).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTablehtml.md", + "source_url": "", + "source_hash": "af403068d9b58313", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-updatetable-one-gsi-change-per-call": { + "text": "DynamoDB `UpdateTable` allows only one GSI create or delete per call; throughput updates on existing GSIs can be batched in a single call.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_UpdateTablehtml.md", + "source_url": "", + "source_hash": "af403068d9b58313", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-version-control-v0-prefix-pattern": { + "text": "DynamoDB version control pattern maintains two copies per item: a `v0_` prefixed sort key (always overwritten with latest revision) and versioned copies (`v1_`, `v2_`, etc.) for history, enabling latest-version retrieval via `begins_with(SK, \"v0_\")`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-bp-sort-keyshtml.md", + "source_url": "", + "source_hash": "9f98c10286b5428b", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-vpc-endpoint-returns-private-address": { + "text": "When using interface VPC endpoints for DynamoDB, `DescribeEndpoints` returns the private endpoint address instead of the public one.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_DescribeEndpointshtml.md", + "source_url": "", + "source_hash": "0e50e372c950c9be", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-warm-throughput-cannot-decrease": { + "text": "DynamoDB warm throughput values cannot be decreased once increased \u2014 pre-warming is irreversible.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-warm-throughputhtml.md", + "source_url": "", + "source_hash": "7a8619578a96bd5e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-warm-throughput-default-free": { + "text": "Default DynamoDB warm throughput (based on historical usage) is provided at no additional cost; only proactive pre-warming incurs charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-warm-throughputhtml.md", + "source_url": "", + "source_hash": "7a8619578a96bd5e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-warm-throughput-no-capacity-mode-change": { + "text": "DynamoDB pre-warming works with both on-demand and provisioned capacity modes without requiring a mode change.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-warm-throughputhtml.md", + "source_url": "", + "source_hash": "7a8619578a96bd5e", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-wcu-1kb-standard-2kb-transactional": { + "text": "DynamoDB write capacity is based on item size: 1 WCU = 1 KB for standard writes, 2 WCUs per KB for transactional writes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-APIReference-API_PutItemhtml.md", + "source_url": "", + "source_hash": "bb016de9e0628e59", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-write-cost-full-item-size": { + "text": "DynamoDB write cost is proportional to the full item size, not just the changed attributes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-migration-guidehtml.md", + "source_url": "", + "source_hash": "2804ded7d8a8b388", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-zero-etl-no-aws-managed-key": { + "text": "DynamoDB zero-ETL integration with Redshift requires the source table encryption to use an Amazon-owned key or customer-managed KMS key; AWS managed keys are not supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-RedshiftforDynamoDB-zero-etlhtml.md", + "source_url": "", + "source_hash": "6991c1ae03a63f42", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-zero-etl-redshift-15-30-min-sync": { + "text": "DynamoDB zero-ETL integration with Redshift replicates incremental updates every 15\u201330 minutes using DynamoDB incremental exports, not in real-time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-RedshiftforDynamoDB-zero-etlhtml.md", + "source_url": "", + "source_hash": "6991c1ae03a63f42", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-zero-etl-redshift-requires-pitr": { + "text": "DynamoDB zero-ETL integration with Redshift requires Point-in-Time Recovery (PITR) to be enabled on the source table as a hard prerequisite.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-RedshiftforDynamoDB-zero-etlhtml.md", + "source_url": "", + "source_hash": "6991c1ae03a63f42", + "date": "2026-03-12", + "metadata": {} + }, + "dynamodb-zero-etl-redshift-same-region-only": { + "text": "DynamoDB zero-ETL integration with Redshift requires the source table and target Redshift database to be in the same AWS Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-RedshiftforDynamoDB-zero-etlhtml.md", + "source_url": "", + "source_hash": "6991c1ae03a63f42", + "date": "2026-03-12", + "metadata": {} + }, + "ebs-accessed-via-ec2-console": { + "text": "EBS is not a standalone service in the AWS console \u2014 it is accessed through the EC2 console.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-ebs.md", + "source_url": "", + "source_hash": "270a2874df8536fb", + "date": "2026-03-08", + "metadata": {} + }, + "ebs-backed-spot-can-be-stopped-restarted": { + "text": "EBS-backed Spot Instances can be stopped and restarted, not just terminated.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-spot-instances.md", + "source_url": "", + "source_hash": "b1460a1f8386ee93", + "date": "2026-03-08", + "metadata": {} + }, + "ebs-data-lifecycle-manager-automates-snapshots": { + "text": "Amazon Data Lifecycle Manager automates the creation, retention, and deletion of EBS snapshots and EBS-backed AMIs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-ebs.md", + "source_url": "", + "source_hash": "270a2874df8536fb", + "date": "2026-03-08", + "metadata": {} + }, + "ebs-direct-apis-snapshot-operations": { + "text": "EBS Direct APIs allow creating snapshots, reading/writing snapshot data, and diffing two snapshots programmatically.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-ebs.md", + "source_url": "", + "source_hash": "270a2874df8536fb", + "date": "2026-03-08", + "metadata": {} + }, + "ebs-elastic-volumes-live-resize": { + "text": "Elastic Volumes allow live capacity increases and performance tuning of EBS volumes with no downtime.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-ebs.md", + "source_url": "", + "source_hash": "270a2874df8536fb", + "date": "2026-03-08", + "metadata": {} + }, + "ebs-encryption-at-rest-and-transit": { + "text": "EBS encryption covers data-at-rest on the volume, data-in-transit between the instance and the volume, and all subsequent snapshots.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-ebs.md", + "source_url": "", + "source_hash": "270a2874df8536fb", + "date": "2026-03-08", + "metadata": {} + }, + "ebs-io2-durability-five-nines": { + "text": "io2 Block Express volumes have 99.999% durability (0.001% annual failure rate), significantly higher than other EBS volume types at 99.8%\u201399.9%.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-ebs.md", + "source_url": "", + "source_hash": "270a2874df8536fb", + "date": "2026-03-08", + "metadata": {} + }, + "ebs-other-volume-durability-99-8-to-99-9": { + "text": "Non-io2 EBS volume types have 99.8%\u201399.9% durability (0.1%\u20130.2% annual failure rate).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-ebs.md", + "source_url": "", + "source_hash": "270a2874df8536fb", + "date": "2026-03-08", + "metadata": {} + }, + "ebs-pay-only-for-provisioned": { + "text": "EBS billing is based on provisioned capacity \u2014 you pay only for what you provision, not what you consume.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-ebs.md", + "source_url": "", + "source_hash": "270a2874df8536fb", + "date": "2026-03-08", + "metadata": {} + }, + "ebs-recycle-bin-recover-deleted-snapshots": { + "text": "Recycle Bin can recover accidentally deleted EBS snapshots and EBS-backed AMIs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-ebs.md", + "source_url": "", + "source_hash": "270a2874df8536fb", + "date": "2026-03-08", + "metadata": {} + }, + "ebs-snapshot-archive-90-day-minimum": { + "text": "EBS Snapshots Archive is a low-cost storage tier that requires a minimum 90-day retention period.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-ebs.md", + "source_url": "", + "source_hash": "270a2874df8536fb", + "date": "2026-03-08", + "metadata": {} + }, + "ebs-snapshots-cross-region-account-az": { + "text": "EBS snapshots can be used to migrate data across accounts, Regions, and Availability Zones.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-ebs.md", + "source_url": "", + "source_hash": "270a2874df8536fb", + "date": "2026-03-08", + "metadata": {} + }, + "ebs-snapshots-persist-independently": { + "text": "EBS snapshots persist independently from the source volume \u2014 the volume can be deleted and the snapshot remains.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-ebs.md", + "source_url": "", + "source_hash": "270a2874df8536fb", + "date": "2026-03-08", + "metadata": {} + }, + "ebs-ssd-iops-hdd-throughput": { + "text": "EBS volume types fall into two categories: SSD-backed (optimized for transactional workloads with high IOPS) and HDD-backed (optimized for throughput-intensive workloads).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-ebs.md", + "source_url": "", + "source_hash": "270a2874df8536fb", + "date": "2026-03-08", + "metadata": {} + }, + "ebs-volumes-az-scoped": { + "text": "EBS volumes are AZ-scoped \u2014 data is automatically replicated across multiple servers within a single Availability Zone, not across AZs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-ebs.md", + "source_url": "", + "source_hash": "270a2874df8536fb", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-all-api-actions-management-events": { + "text": "All EC2 API actions are logged as CloudTrail management events \u2014 there are no EC2-specific data events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "7247837b64d682fe", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-api-query-based-not-restful": { + "text": "The EC2 API is action-based (Query API) where each operation is a distinct named action invoked via HTTP query parameters, not RESTful resource paths.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_Operationshtml.md", + "source_url": "", + "source_hash": "e45b54e62e9a0bdc", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-bare-metal-instances-longer-launch-time": { + "text": "Bare metal EC2 instances take longer to launch than virtualized instances.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-WindowsGuide-LaunchingAndUsingInstanceshtml.md", + "source_url": "", + "source_hash": "ae6facfc22bbf53e", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-basic-monitoring-5min-detailed-1min": { + "text": "EC2 basic monitoring provides metrics at 5-minute intervals; detailed monitoring provides 1-minute intervals at additional cost.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/cloudwatch-metrics.md", + "source_url": "", + "source_hash": "ddcb0ec903c3160b", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-billing-starts-at-running-state": { + "text": "EC2 billing starts when an instance enters the `running` state (not at launch request time) and stops at `stopped` state (for stop) or `shutting-down` state (for terminate).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-Instanceshtml.md", + "source_url": "", + "source_hash": "aef845c6db90ebc0", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-client-internal-error-means-kms-key-issue": { + "text": "The termination reason `Client.InternalError: Client error on launch` indicates missing KMS key permissions on encrypted EBS volumes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-troubleshooting-launchhtml.md", + "source_url": "", + "source_hash": "37542050e5886363", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-create-snapshot-vs-create-snapshots": { + "text": "EC2 `CreateSnapshot` creates one snapshot of one volume; `CreateSnapshots` (plural) creates multi-volume snapshots for point-in-time consistency across volumes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_Operationshtml.md", + "source_url": "", + "source_hash": "e45b54e62e9a0bdc", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-dedicated-hosts-for-byol": { + "text": "EC2 Dedicated Hosts provide a physical server for compliance requirements and bring-your-own-license (BYOL) scenarios.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-overview.md", + "source_url": "", + "source_hash": "a05ef19b46dfd005", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-force-stop-requires-fsck": { + "text": "EC2 `StopInstances` with `Force=true` forcibly stops an instance stuck in the `stopping` state but requires subsequent file system check and repair.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_StopInstanceshtml.md", + "source_url": "", + "source_hash": "66e36e241de51a0a", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-free-tier-differs-by-account-creation-date": { + "text": "EC2 Free Tier depends on account creation date: before July 15, 2025 gets t2.micro for 12 months; on/after July 15, 2025 gets t3.micro, t3.small, t4g.micro, t4g.small, c7i-flex.large, m7i-flex.large for 6 months or until credits exhausted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-WindowsGuide-LaunchingAndUsingInstanceshtml.md", + "source_url": "", + "source_hash": "ae6facfc22bbf53e", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-graviton-arm-best-price-performance": { + "text": "AWS Graviton instances (denoted by 'g' in the type name, e.g., M7g, C7g) are ARM-based processors designed for best price-performance.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-instance-types.md", + "source_url": "", + "source_hash": "b590aa128a7cf971", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-guardduty-threat-detection": { + "text": "Amazon GuardDuty provides threat detection for EC2 instances.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-overview.md", + "source_url": "", + "source_hash": "a05ef19b46dfd005", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-hibernate-preserves-ram-to-ebs": { + "text": "EC2 hibernation (`Hibernate=true` on StopInstances) preserves RAM contents to the root EBS volume; normal stop does not preserve RAM. Requires pre-enabled hibernation and an encrypted root volume.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_StopInstanceshtml.md", + "source_url": "", + "source_hash": "66e36e241de51a0a", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-hpc-series-dedicated-family": { + "text": "Hpc-series is a dedicated EC2 instance family for high-performance computing workloads.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-instance-types.md", + "source_url": "", + "source_hash": "b590aa128a7cf971", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-hvm-preferred-over-pv": { + "text": "HVM virtualization is always preferred over PV; HVM is required for enhanced networking and all current-generation instance types.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-instance-types.md", + "source_url": "", + "source_hash": "b590aa128a7cf971", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-imdsv2-enforcement-modify-instance-metadata-defaults": { + "text": "Account-level IMDSv2 enforcement uses the `ModifyInstanceMetadataDefaults` API with `httpTokensEnforced`; instances must launch with `httpTokens=required` when enforcement is enabled.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-troubleshooting-launchhtml.md", + "source_url": "", + "source_hash": "37542050e5886363", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-instance-connect-audit-via-cloudtrail": { + "text": "EC2 Instance Connect SSH sessions can be audited by filtering CloudTrail events by source `ec2-instance-connect.amazonaws.com` and event name `SendSSHPublicKey`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "7247837b64d682fe", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-instance-limit-exceeded-vs-insufficient-capacity": { + "text": "`InstanceLimitExceeded` is an account-side per-region limit (fix: request quota increase); `InsufficientInstanceCapacity` is an AWS-side capacity shortage (fix: try different AZ, smaller batch, or different instance type).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-troubleshooting-launchhtml.md", + "source_url": "", + "source_hash": "37542050e5886363", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-instance-naming-convention": { + "text": "EC2 instance type naming encodes family + generation + processor suffix + capabilities + size (e.g., c7gn.2xlarge = Compute optimized, 7th gen, Graviton, network-optimized, 2xlarge).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-instance-types.md", + "source_url": "", + "source_hash": "b590aa128a7cf971", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-instance-roles-deliver-creds-via-metadata": { + "text": "EC2 instances should use instance roles instead of embedded access keys \u2014 temporary credentials are delivered via the instance metadata service.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-temporary-credentials.md", + "source_url": "", + "source_hash": "ce85495c84417561", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-instance-status-check-monitors-guest-os": { + "text": "EC2 instance status checks monitor the instance's software and network configuration and require customer action (reboot, OS-level fixes) to resolve.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-monitoring.md", + "source_url": "", + "source_hash": "174f334ed7a457d7", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-instance-store-backed-cannot-stop": { + "text": "Instance store-backed EC2 instances cannot be stopped \u2014 they can only be terminated. EBS-backed instances can be stopped, started, and terminated.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_TerminateInstanceshtml.md", + "source_url": "", + "source_hash": "3f2f093f0aa16a7a", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-instance-store-data-lost-on-stop-hibernate-terminate": { + "text": "EC2 instance store volumes are ephemeral \u2014 data is deleted when you stop, hibernate, or terminate the instance. EBS volumes persist.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-overview.md", + "source_url": "", + "source_hash": "a05ef19b46dfd005", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-instance-type-change-requires-stop": { + "text": "EC2 instance type can be changed after launch but requires stopping and restarting the instance.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-instance-types.md", + "source_url": "", + "source_hash": "b590aa128a7cf971", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-instances-region-specific": { + "text": "EC2 instances are Region-specific \u2014 they exist only in the Region where they were created and only appear in that Region's console view.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awsconsolehelpdocs-latest-gsg-select-regionhtml.md", + "source_url": "", + "source_hash": "25db8f0c0b83d6f0", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-key-pair-public-stored-private-user": { + "text": "EC2 stores the public key; the user is responsible for the private key \u2014 EC2 has no way to recover a lost private key.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-key-pairs.md", + "source_url": "", + "source_hash": "f5a17d847e28a0b5", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-key-pairs-asymmetric-aws-holds-public": { + "text": "EC2 key pairs use asymmetric encryption for secure login \u2014 AWS stores the public key and the user retains the private key.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-WindowsGuide-conceptshtml.md", + "source_url": "", + "source_hash": "e4ac69ac05f1e1cc", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-key-pairs-aws-stores-public-key-only": { + "text": "EC2 key pairs use public/private key cryptography \u2014 AWS stores the public key, the user stores the private key.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-overview.md", + "source_url": "", + "source_hash": "a05ef19b46dfd005", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-launch-requires-runinstances-and-passrole": { + "text": "Launching an EC2 instance requires both `ec2:RunInstances` (with wildcard resource) and `iam:PassRole` (scoped to the role ARN) IAM permissions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-troubleshooting-launchhtml.md", + "source_url": "", + "source_hash": "37542050e5886363", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-linux-public-key-authorized-keys": { + "text": "On Linux instances, the public key is placed in ~/.ssh/authorized_keys at first boot.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-key-pairs.md", + "source_url": "", + "source_hash": "f5a17d847e28a0b5", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-mac-billing-at-dedicated-host-level": { + "text": "EC2 Mac instance billing is at the Dedicated Host level \u2014 instances running on the host incur no additional charge.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-mac-instanceshtml.md", + "source_url": "", + "source_hash": "033824d940dc1e00", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-mac-dedicated-host-24-hour-minimum": { + "text": "EC2 Mac Dedicated Hosts have a minimum 24-hour allocation period before they can be released.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-mac-instanceshtml.md", + "source_url": "", + "source_hash": "033824d940dc1e00", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-mac-instances-bare-metal-dedicated-host-only": { + "text": "EC2 Mac instances are bare-metal instances that run exclusively on Dedicated Hosts, with exactly one Mac instance per Dedicated Host.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-mac-instanceshtml.md", + "source_url": "", + "source_hash": "033824d940dc1e00", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-mac-no-filevault-use-ebs-encryption": { + "text": "FileVault must never be enabled on EC2 Mac instances (causes boot failure); use EBS encryption instead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-mac-instanceshtml.md", + "source_url": "", + "source_hash": "033824d940dc1e00", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-mac-no-spot-no-reserved-savings-plans-only": { + "text": "EC2 Mac instances are not available as Spot or Reserved Instances; only On-Demand pricing with Savings Plans is supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-mac-instanceshtml.md", + "source_url": "", + "source_hash": "033824d940dc1e00", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-mac-system-monitor-not-on-apple-silicon": { + "text": "EC2 System Monitor for macOS sends CPU metrics to CloudWatch every 1 minute but is not supported on Apple Silicon instances.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ec2-mac-instanceshtml.md", + "source_url": "", + "source_hash": "033824d940dc1e00", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-managed-instances-cannot-modify": { + "text": "EC2 managed instances (e.g., from EKS Auto Mode) are identified by `Managed = true` and cannot be directly modified by the user.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-Instanceshtml.md", + "source_url": "", + "source_hash": "aef845c6db90ebc0", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-mtu-1500-standard-9001-jumbo": { + "text": "EC2 standard Ethernet frames support 1500 MTU; jumbo frames support 9001 MTU and are available on all current-generation instance types.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-network_mtuhtml.md", + "source_url": "", + "source_hash": "2a5ba8fb82b39ee9", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-nitro-current-gen-xen-previous": { + "text": "Current-generation EC2 instances (5th gen+) use the Nitro hypervisor; previous generations (M1-M4, C1-C4, T1-T2, R3-R4, etc.) use Xen.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-instance-types.md", + "source_url": "", + "source_hash": "b590aa128a7cf971", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-on-demand-billing-per-second-60s-minimum": { + "text": "EC2 On-Demand billing is per-second with a 60-second minimum.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-overview.md", + "source_url": "", + "source_hash": "a05ef19b46dfd005", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-on-demand-capacity-reservations-no-term": { + "text": "EC2 On-Demand Capacity Reservations reserve capacity in a specific Availability Zone without requiring a term commitment.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-overview.md", + "source_url": "", + "source_hash": "a05ef19b46dfd005", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-p-series-gpu-training-g-series-graphics": { + "text": "P-series instances (P4d, P5, P6) are GPU instances for ML training and HPC; G-series instances are GPU instances optimized for graphics and inference workloads.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-instance-types.md", + "source_url": "", + "source_hash": "b590aa128a7cf971", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-pay-per-instance-second": { + "text": "EC2 billing is per instance-second.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-instance-types.md", + "source_url": "", + "source_hash": "b590aa128a7cf971", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-pci-dss-level-1-compliant": { + "text": "Amazon EC2 is validated as PCI DSS Level 1 compliant.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-overview.md", + "source_url": "", + "source_hash": "a05ef19b46dfd005", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-pending-to-terminated-four-causes": { + "text": "An EC2 instance going directly from pending to terminated is caused by: EBS volume limit exceeded, corrupted EBS snapshot, missing KMS decrypt permissions on encrypted root/snapshot volumes, or missing instance-store-backed AMI parts in S3.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-troubleshooting-launchhtml.md", + "source_url": "", + "source_hash": "37542050e5886363", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-per-second-billing-one-minute-minimum": { + "text": "EC2 per-second billing applies with a one-minute minimum each time an instance is started.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_StopInstanceshtml.md", + "source_url": "", + "source_hash": "66e36e241de51a0a", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-reboot-asynchronous-queued": { + "text": "EC2 `RebootInstances` is asynchronous \u2014 it queues a reboot request and returns immediately; the API returning success does not mean the reboot is complete.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_RebootInstanceshtml.md", + "source_url": "", + "source_hash": "25dd8150144c981d", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-reboot-hard-reboot-fallback": { + "text": "EC2 performs a hard reboot automatically if an instance doesn't cleanly shut down within a few minutes of a reboot request \u2014 no separate API call is needed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_RebootInstanceshtml.md", + "source_url": "", + "source_hash": "25dd8150144c981d", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-reboot-preserves-instance-store": { + "text": "EC2 reboot preserves instance store volumes, unlike stop/start which loses instance store data.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_RebootInstanceshtml.md", + "source_url": "", + "source_hash": "25dd8150144c981d", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-reboot-terminated-silently-ignored": { + "text": "Requests to reboot terminated EC2 instances are silently ignored \u2014 no error is returned.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_RebootInstanceshtml.md", + "source_url": "", + "source_hash": "25dd8150144c981d", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-replace-public-key-on-running-instance": { + "text": "A public key can be added or replaced on a running Linux instance without needing the original key pair.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-key-pairs.md", + "source_url": "", + "source_hash": "f5a17d847e28a0b5", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-savings-plans-commit-dollar-per-hour": { + "text": "EC2 Savings Plans commit to a USD/hour spend level for 1 or 3 years; Reserved Instances commit to a specific instance configuration for 1 or 3 years.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-overview.md", + "source_url": "", + "source_hash": "a05ef19b46dfd005", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-security-groups-are-stateful-virtual-firewalls": { + "text": "EC2 security groups act as stateful virtual firewalls at the instance level, controlling inbound and outbound traffic by protocol, port, and IP range.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-overview.md", + "source_url": "", + "source_hash": "a05ef19b46dfd005", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-shared-vs-dedicated-resources": { + "text": "EC2 dedicates CPU, memory, and instance storage to each instance; network and disk subsystem are shared among instances on the same host with equal-share fairness and burst capability.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-instance-types.md", + "source_url": "", + "source_hash": "b590aa128a7cf971", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-six-access-methods": { + "text": "EC2 can be accessed via the EC2 Console, AWS CLI (`aws ec2`), CloudFormation templates, AWS SDKs, AWS Tools for PowerShell, and the Query API (direct HTTP GET/POST).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-overview.md", + "source_url": "", + "source_hash": "a05ef19b46dfd005", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-six-instance-families": { + "text": "EC2 instance families are grouped into six categories: General Purpose, Compute Optimized, Memory Optimized, Storage Optimized, Accelerated Computing, and High-Performance Computing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-instance-types.md", + "source_url": "", + "source_hash": "b590aa128a7cf971", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-spot-instances-up-to-90-percent-savings": { + "text": "EC2 Spot Instances can provide up to 90% cost savings compared to On-Demand pricing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/aws-features-essential-vs-convenience-classification.md", + "source_url": "", + "source_hash": "c79d9c24f3ae393d", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-ssm-session-manager-alternative": { + "text": "AWS Systems Manager Session Manager is an alternative to key pairs for connecting to instances, eliminating the need to manage SSH keys or open port 22.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-key-pairs.md", + "source_url": "", + "source_hash": "f5a17d847e28a0b5", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-statereason-field-reveals-termination-cause": { + "text": "The `StateReason` field in `describe-instances` output contains `Message` and `Code` fields that reveal why an instance transitioned to terminated state (e.g., `Client.VolumeLimitExceeded`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-troubleshooting-launchhtml.md", + "source_url": "", + "source_hash": "37542050e5886363", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-stop-ebs-backed-only": { + "text": "EC2 `StopInstances` works exclusively on EBS-backed instances; instance store-backed instances cannot be stopped.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_StopInstanceshtml.md", + "source_url": "", + "source_hash": "66e36e241de51a0a", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-stop-start-may-change-host": { + "text": "A stopped EC2 instance may be migrated to a different underlying physical host on restart, unlike a reboot which stays on the same host.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_StopInstanceshtml.md", + "source_url": "", + "source_hash": "66e36e241de51a0a", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-stopped-no-compute-charge-ebs-continues": { + "text": "Stopped EC2 instances are not charged for compute or data transfer, but attached EBS volumes continue to incur storage charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_StopInstanceshtml.md", + "source_url": "", + "source_hash": "66e36e241de51a0a", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-system-status-check-monitors-aws-infrastructure": { + "text": "EC2 system status checks monitor the underlying AWS infrastructure (physical host, network, power) and require AWS involvement or instance stop/start/terminate to resolve.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-monitoring.md", + "source_url": "", + "source_hash": "174f334ed7a457d7", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-t-series-burstable": { + "text": "T-series instances (T3, T3a, T4g) are burstable with a CPU credit model; all other instance families provide fixed/dedicated CPU performance.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-instance-types.md", + "source_url": "", + "source_hash": "b590aa128a7cf971", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-terminate-deletes-launch-attached-ebs-by-default": { + "text": "By default, EBS volumes attached at instance launch are deleted on termination (`DeleteOnTermination=true`), while EBS volumes attached after launch are preserved.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_TerminateInstanceshtml.md", + "source_url": "", + "source_hash": "3f2f093f0aa16a7a", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-terminate-idempotent": { + "text": "The TerminateInstances API is idempotent \u2014 terminating an already-terminated instance succeeds without error.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_TerminateInstanceshtml.md", + "source_url": "", + "source_hash": "3f2f093f0aa16a7a", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-terminate-invalid-id-fails-entire-request": { + "text": "If any single instance ID in a TerminateInstances request is invalid, the entire request fails and no instances are terminated.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_TerminateInstanceshtml.md", + "source_url": "", + "source_hash": "3f2f093f0aa16a7a", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-terminate-max-batch-1000": { + "text": "The TerminateInstances API accepts up to 1000 instance IDs per request.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_TerminateInstanceshtml.md", + "source_url": "", + "source_hash": "3f2f093f0aa16a7a", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-terminate-protection-per-az-partial-failure": { + "text": "When terminating a batch of instances across AZs, termination protection causes per-AZ partial failure: AZs containing a protected instance fail entirely (even unprotected instances in that AZ are not terminated), while AZs with no protected instances succeed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_TerminateInstanceshtml.md", + "source_url": "", + "source_hash": "3f2f093f0aa16a7a", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-terminated-instances-visible-one-hour": { + "text": "Terminated EC2 instances remain visible in the console and API responses for approximately one hour after termination.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-API_TerminateInstanceshtml.md", + "source_url": "", + "source_hash": "3f2f093f0aa16a7a", + "date": "2026-03-12", + "metadata": {} + }, + "ec2-trainium-training-inferentia-inference": { + "text": "AWS Trainium (Trn1, Trn2) is for ML training; AWS Inferentia (Inf1, Inf2) is for ML inference \u2014 they are distinct chip families.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-instance-types.md", + "source_url": "", + "source_hash": "b590aa128a7cf971", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-u-series-high-memory-instances": { + "text": "U-series instances (e.g., U-6tb1, U7i-12tb) are high-memory instance types designed for large in-memory workloads such as SAP HANA.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-instance-types.md", + "source_url": "", + "source_hash": "b590aa128a7cf971", + "date": "2026-03-08", + "metadata": {} + }, + "ec2-windows-private-key-decrypts-password": { + "text": "On Windows instances, the private key is used to decrypt the administrator password, not for direct login.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-key-pairs.md", + "source_url": "", + "source_hash": "f5a17d847e28a0b5", + "date": "2026-03-08", + "metadata": {} + }, + "ecr-cross-account-requires-region-enabled": { + "text": "ECR cross-account image sharing requires the target account to have the repository's Region enabled, in addition to the repository policy granting access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECR-latest-userguide-set-repository-policyhtml.md", + "source_url": "", + "source_hash": "5f5d4ed7ff6d8f27", + "date": "2026-03-12", + "metadata": {} + }, + "ecr-get-authorization-token-prerequisite": { + "text": "Users must have `ecr:GetAuthorizationToken` permission via IAM identity-based policy before they can authenticate to an ECR registry or push/pull images \u2014 repository policies alone are insufficient.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECR-latest-userguide-set-repository-policyhtml.md", + "source_url": "", + "source_hash": "5f5d4ed7ff6d8f27", + "date": "2026-03-12", + "metadata": {} + }, + "ecr-getauthorizationtoken-iam-policy-only": { + "text": "The `ecr:GetAuthorizationToken` permission must be granted via an IAM identity-based policy \u2014 it cannot be granted via an ECR repository policy.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECR-latest-userguide-repository-policieshtml.md", + "source_url": "", + "source_hash": "51d7bfeeeaf47c26", + "date": "2026-03-12", + "metadata": {} + }, + "ecr-image-restore-from-archive-asynchronous": { + "text": "ECR image restore from archive is asynchronous \u2014 initial status is `ACTIVATING` and completion is a separate service event.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECR-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "1c8dac9ca6d2754e", + "date": "2026-03-12", + "metadata": {} + }, + "ecr-kms-encrypted-repo-two-creategrant-entries": { + "text": "Creating a KMS-encrypted ECR repository generates two `CreateGrant` CloudTrail log entries (via `kms.amazonaws.com` event source).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECR-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "1c8dac9ca6d2754e", + "date": "2026-03-12", + "metadata": {} + }, + "ecr-lifecycle-10plus-images-multiple-cloudtrail-events": { + "text": "When ECR lifecycle policies expire 10 or more images, ECR sends multiple CloudTrail events due to event size limits (max 100 tags per image per event).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECR-latest-userguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "1c8dac9ca6d2754e", + "date": "2026-03-12", + "metadata": {} + }, + "ecr-repo-default-access-creating-account-only": { + "text": "By default, only the AWS account that created an ECR repository has access to it.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECR-latest-userguide-repository-policieshtml.md", + "source_url": "", + "source_hash": "51d7bfeeeaf47c26", + "date": "2026-03-12", + "metadata": {} + }, + "ecr-repo-policy-or-iam-policy-either-grants": { + "text": "For ECR repository access, a user only needs to be allowed by one policy type (repository policy OR IAM policy), not both \u2014 but an explicit deny in either takes precedence.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECR-latest-userguide-repository-policieshtml.md", + "source_url": "", + "source_hash": "51d7bfeeeaf47c26", + "date": "2026-03-12", + "metadata": {} + }, + "ecr-repository-resource-based-policies": { + "text": "ECR private repositories support resource-based policies with multiple policy statements per repository, controlling which principals can perform which ECR API operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECR-latest-userguide-set-repository-policyhtml.md", + "source_url": "", + "source_hash": "5f5d4ed7ff6d8f27", + "date": "2026-03-12", + "metadata": {} + }, + "ecr-set-repository-policy-cli-for-advanced": { + "text": "The `aws ecr set-repository-policy` CLI command supports more complex repository policies than the ECR console UI.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECR-latest-userguide-set-repository-policyhtml.md", + "source_url": "", + "source_hash": "5f5d4ed7ff6d8f27", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-account-settings-per-region": { + "text": "ECS account settings are per-Region, per-account and can be set for individual IAM users/roles or as account-wide defaults; federated users always inherit root user settings with no individual override.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-developerguide-ecs-account-settingshtml.md", + "source_url": "", + "source_hash": "dd85400668c629ba", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-awsvpc-trunking-increases-task-density": { + "text": "ECS `awsvpcTrunking` account setting increases ENI density on EC2 container instances via trunk ENI (e.g., c5.large goes from 2 tasks to 10 tasks).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-developerguide-ecs-account-settingshtml.md", + "source_url": "", + "source_hash": "dd85400668c629ba", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-cloudtrail-data-events-container-instance-only": { + "text": "The only ECS resource type supporting CloudTrail data events is `AWS::ECS::ContainerInstance` \u2014 not services, tasks, or clusters \u2014 and data events are not logged by default.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-developerguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "91085e68a788a669", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-cloudtrail-management-events-logged-by-default": { + "text": "Amazon ECS control plane API calls (e.g., `CreateService`, `RunTask`, `DeleteCluster`) are logged as CloudTrail management events by default with no additional configuration.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-developerguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "91085e68a788a669", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-clusters-region-specific": { + "text": "ECS clusters are Region-specific \u2014 `ClusterNotFoundException` indicates the wrong region or a nonexistent cluster.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-APIReference-API_StopTaskhtml.md", + "source_url": "", + "source_hash": "fc4f598ff1217601", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-data-event-apis-poll-telemetry-syslog": { + "text": "ECS CloudTrail data event APIs are agent-level operations: `ecs:Poll`, `ecs:StartTelemetrySession` (EC2 and ECS Managed Instances), and `ecs:PutSystemLogEvents` (ECS Managed Instances only).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-developerguide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "91085e68a788a669", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-default-log-driver-mode-nonblocking": { + "text": "ECS default log driver mode changed from `blocking` to `non-blocking` on June 25, 2025; non-blocking prioritizes task availability over logging completeness.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-developerguide-ecs-account-settingshtml.md", + "source_url": "", + "source_hash": "dd85400668c629ba", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-draining-deployment-config-interaction": { + "text": "During ECS container instance draining, `minimumHealthyPercent` and `maximumPercent` deployment configuration control whether replacement tasks must be healthy before draining tasks stop, governing the speed vs. availability tradeoff.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-APIReference-API_UpdateContainerInstancesStatehtml.md", + "source_url": "", + "source_hash": "c6daed497036fc93", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-draining-replaces-service-tasks-only": { + "text": "When an ECS container instance is set to DRAINING, only service tasks are stopped and replaced on other instances; standalone (non-service) tasks are not drained automatically and must finish or be stopped manually.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-APIReference-API_UpdateContainerInstancesStatehtml.md", + "source_url": "", + "source_hash": "c6daed497036fc93", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-draining-requires-active-state": { + "text": "An ECS container instance must be in ACTIVE state before it can transition to DRAINING; instances in REGISTERING, DEREGISTERING, or REGISTRATION_FAILED cannot be updated.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-APIReference-API_UpdateContainerInstancesStatehtml.md", + "source_url": "", + "source_hash": "c6daed497036fc93", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-fargate-task-retirement-default-7-days": { + "text": "Fargate task retirement wait period defaults to 7 days, with options of 0, 7, or 14 days; shorter periods pick up patches sooner.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-developerguide-ecs-account-settingshtml.md", + "source_url": "", + "source_hash": "dd85400668c629ba", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-fault-injection-custom-ami-tc-netem": { + "text": "Custom (non-ECS-optimized) AMIs require manual installation of `tc` (traffic control) and `sch_netem` kernel module for ECS fault injection to work.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-developerguide-fault-injectionhtml.md", + "source_url": "", + "source_hash": "43c72cdc0c78b7f1", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-fault-injection-opt-in-awsvpc-host-only": { + "text": "ECS fault injection requires `enableFaultInjection: true` in the task definition (disabled by default), only works with `awsvpc` or `host` network modes, is not available on Windows, and works on both EC2 and Fargate launch types.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-developerguide-fault-injectionhtml.md", + "source_url": "", + "source_hash": "43c72cdc0c78b7f1", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-fips-dualstack-api-cli-only": { + "text": "ECS `fargateFIPSMode` and `dualStackIPv6` account settings can only be changed via API/CLI, not the AWS Console.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-developerguide-ecs-account-settingshtml.md", + "source_url": "", + "source_hash": "dd85400668c629ba", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-guardduty-activate-read-only-aws-managed": { + "text": "The ECS `guardDutyActivate` account setting is read-only and `aws-managed` type \u2014 it is controlled by GuardDuty Runtime Monitoring, not ECS directly.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-developerguide-ecs-account-settingshtml.md", + "source_url": "", + "source_hash": "dd85400668c629ba", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-put-account-setting-vs-default": { + "text": "`put-account-setting` applies to the calling user/role while `put-account-setting-default` sets account-wide defaults and requires root/admin privileges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-developerguide-ecs-account-settingshtml.md", + "source_url": "", + "source_hash": "dd85400668c629ba", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-stop-task-deletes-tags": { + "text": "All tags associated with an ECS task are deleted when the task is stopped.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-APIReference-API_StopTaskhtml.md", + "source_url": "", + "source_hash": "fc4f598ff1217601", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-stop-task-sigterm-30s-sigkill": { + "text": "ECS `StopTask` sends SIGTERM (or custom STOPSIGNAL) to containers with a 30-second grace period, then SIGKILL if the container hasn't exited; the timeout is configurable via `ECS_CONTAINER_STOP_TIMEOUT` agent variable.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-APIReference-API_StopTaskhtml.md", + "source_url": "", + "source_hash": "fc4f598ff1217601", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-tagging-authorization-mandatory-march-2024": { + "text": "ECS tagging authorization became mandatory on March 29, 2024 \u2014 `ecs:TagResource` permission is required when creating resources with tags.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-developerguide-ecs-account-settingshtml.md", + "source_url": "", + "source_hash": "dd85400668c629ba", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-update-container-instances-state-batch-10": { + "text": "The `UpdateContainerInstancesState` API accepts up to 10 container instance IDs or ARNs per call.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-APIReference-API_UpdateContainerInstancesStatehtml.md", + "source_url": "", + "source_hash": "c6daed497036fc93", + "date": "2026-03-12", + "metadata": {} + }, + "ecs-windows-containers-ctrl-shutdown-event": { + "text": "ECS Windows containers receive `CTRL_SHUTDOWN_EVENT` instead of POSIX signals (SIGTERM/SIGKILL) when stopped.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonECS-latest-APIReference-API_StopTaskhtml.md", + "source_url": "", + "source_hash": "fc4f598ff1217601", + "date": "2026-03-12", + "metadata": {} + }, + "egress-only-igw-for-ipv6-outbound": { + "text": "For outbound-only IPv6 internet access, use an egress-only internet gateway instead of a NAT gateway (unless using DNS64/NAT64).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-nat-gateway.md", + "source_url": "", + "source_hash": "0561f5f1eb06f3fc", + "date": "2026-03-08", + "metadata": {} + }, + "eip-account-scoped-until-released": { + "text": "An Elastic IP belongs to an AWS account until explicitly released; a disassociated EIP remains allocated (and incurs charges) until released.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-elastic-ips.md", + "source_url": "", + "source_hash": "867e3fc7ceab6773", + "date": "2026-03-08", + "metadata": {} + }, + "eip-all-public-ipv4-charged": { + "text": "All public IPv4 addresses are charged, including EIPs whether associated or not.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-elastic-ips.md", + "source_url": "", + "source_hash": "867e3fc7ceab6773", + "date": "2026-03-08", + "metadata": {} + }, + "eip-association-releases-original-public-ip": { + "text": "Associating an EIP with an instance that already has a public IPv4 address permanently releases that original public IP back to Amazon's pool.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-elastic-ips.md", + "source_url": "", + "source_hash": "867e3fc7ceab6773", + "date": "2026-03-08", + "metadata": {} + }, + "eip-byoip-no-quota-count": { + "text": "BYOIP-sourced Elastic IPs do not count toward the default EIP quota.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-elastic-ips.md", + "source_url": "", + "source_hash": "867e3fc7ceab6773", + "date": "2026-03-08", + "metadata": {} + }, + "eip-default-quota-5-per-region": { + "text": "The default quota is 5 Elastic IP addresses per Region per account, increasable via the Service Quotas console.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-elastic-ips.md", + "source_url": "", + "source_hash": "867e3fc7ceab6773", + "date": "2026-03-08", + "metadata": {} + }, + "eip-dns-resolves-private-internally": { + "text": "Public DNS for an EIP resolves to the EIP externally but to the private IPv4 address internally within the VPC.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-elastic-ips.md", + "source_url": "", + "source_hash": "867e3fc7ceab6773", + "date": "2026-03-08", + "metadata": {} + }, + "eip-dual-association-instance-and-eni": { + "text": "Associating an EIP with an instance also associates it with the primary ENI, and vice versa.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-elastic-ips.md", + "source_url": "", + "source_hash": "867e3fc7ceab6773", + "date": "2026-03-08", + "metadata": {} + }, + "eip-ipv4-only": { + "text": "Elastic IP addresses are IPv4 only \u2014 there is no Elastic IP concept for IPv6.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-elastic-ips.md", + "source_url": "", + "source_hash": "867e3fc7ceab6773", + "date": "2026-03-08", + "metadata": {} + }, + "eip-region-scoped": { + "text": "Elastic IP addresses are Region-scoped and cannot be moved to another Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-elastic-ips.md", + "source_url": "", + "source_hash": "867e3fc7ceab6773", + "date": "2026-03-08", + "metadata": {} + }, + "eip-transferable-between-accounts": { + "text": "Elastic IP addresses can be transferred between AWS accounts.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-elastic-ips.md", + "source_url": "", + "source_hash": "867e3fc7ceab6773", + "date": "2026-03-08", + "metadata": {} + }, + "eks-access-control-rbac-and-iam": { + "text": "EKS access control uses both Kubernetes RBAC and AWS IAM.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-overview.md", + "source_url": "", + "source_hash": "e84943aef13a22f6", + "date": "2026-03-08", + "metadata": {} + }, + "eks-add-subnets-after-creation": { + "text": "Subnets can be added to an existing EKS cluster after creation, but they must be in the same VPC.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-networking.md", + "source_url": "", + "source_hash": "09bfdf81554e1984", + "date": "2026-03-08", + "metadata": {} + }, + "eks-anywhere-on-premises-clusters": { + "text": "EKS Anywhere allows running EKS clusters in your own data centers, separate from EKS Hybrid Nodes which connect on-premises nodes to cloud EKS clusters.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-overview.md", + "source_url": "", + "source_hash": "e84943aef13a22f6", + "date": "2026-03-08", + "metadata": {} + }, + "eks-auto-mode-ebs-storage-classes": { + "text": "EKS Auto Mode automatically creates EBS-backed storage classes; other storage types use CSI drivers.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-overview.md", + "source_url": "", + "source_hash": "e84943aef13a22f6", + "date": "2026-03-08", + "metadata": {} + }, + "eks-capabilities-managed-controllers": { + "text": "EKS Capabilities (Argo CD, ACK, kro) run as managed services in EKS infrastructure, not in the customer's cluster, with automated patching/scaling/monitoring.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-overview.md", + "source_url": "", + "source_hash": "e84943aef13a22f6", + "date": "2026-03-08", + "metadata": {} + }, + "eks-certified-kubernetes-conformant": { + "text": "EKS is certified Kubernetes-conformant; existing Kubernetes applications deploy without refactoring.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-overview.md", + "source_url": "", + "source_hash": "e84943aef13a22f6", + "date": "2026-03-08", + "metadata": {} + }, + "eks-clusters-always-within-vpc": { + "text": "EKS clusters are always created within a VPC; networking is not optional or separate.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-networking.md", + "source_url": "", + "source_hash": "09bfdf81554e1984", + "date": "2026-03-08", + "metadata": {} + }, + "eks-fargate-serverless-compute": { + "text": "EKS supports AWS Fargate for serverless container compute in addition to EC2 instances (including Nitro and Graviton instance types).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-overview.md", + "source_url": "", + "source_hash": "e84943aef13a22f6", + "date": "2026-03-08", + "metadata": {} + }, + "eks-guardduty-threat-detection": { + "text": "Amazon GuardDuty provides threat detection for EKS clusters as part of EKS security integrations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-overview.md", + "source_url": "", + "source_hash": "e84943aef13a22f6", + "date": "2026-03-08", + "metadata": {} + }, + "eks-hybrid-nodes-different-cni": { + "text": "EKS hybrid nodes (on-premises infrastructure) require a different CNI configuration than standard AWS-hosted nodes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-networking.md", + "source_url": "", + "source_hash": "09bfdf81554e1984", + "date": "2026-03-08", + "metadata": {} + }, + "eks-management-interfaces": { + "text": "EKS can be managed via AWS Console, AWS CLI, eksctl CLI, EKS API/SDKs, CDK, CloudFormation, and Terraform.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-overview.md", + "source_url": "", + "source_hash": "e84943aef13a22f6", + "date": "2026-03-08", + "metadata": {} + }, + "eks-monitoring-cloudwatch-prometheus-cloudtrail": { + "text": "EKS monitoring and observability integrates with Amazon CloudWatch, Amazon Managed Prometheus, AWS CloudTrail, ADOT Operator, and Metrics Server.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-overview.md", + "source_url": "", + "source_hash": "e84943aef13a22f6", + "date": "2026-03-08", + "metadata": {} + }, + "eks-pricing-per-cluster": { + "text": "EKS pricing is per-cluster based on Kubernetes version support tier, plus separate charges for compute (EC2/Fargate), storage (EBS), and networking (public IPv4).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-overview.md", + "source_url": "", + "source_hash": "e84943aef13a22f6", + "date": "2026-03-08", + "metadata": {} + }, + "eks-requires-setup-prerequisites": { + "text": "EKS requires completing setup prerequisites before cluster creation via either path.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-getting-started.md", + "source_url": "", + "source_hash": "9d9e6a2d8d54002b", + "date": "2026-03-08", + "metadata": {} + }, + "eks-savings-plans-apply-to-compute": { + "text": "AWS Savings Plans can be applied to EKS compute costs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-overview.md", + "source_url": "", + "source_hash": "e84943aef13a22f6", + "date": "2026-03-08", + "metadata": {} + }, + "eks-shared-responsibility-model": { + "text": "EKS follows the AWS shared responsibility model for security.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-overview.md", + "source_url": "", + "source_hash": "e84943aef13a22f6", + "date": "2026-03-08", + "metadata": {} + }, + "eks-standard-and-extended-version-support": { + "text": "EKS offers standard and extended Kubernetes version support tiers.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-overview.md", + "source_url": "", + "source_hash": "e84943aef13a22f6", + "date": "2026-03-08", + "metadata": {} + }, + "eks-standard-vs-auto-mode": { + "text": "EKS Standard: AWS manages the control plane only. EKS Auto Mode: AWS manages both control plane and data plane (node provisioning, scaling, patching, cost optimization).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-overview.md", + "source_url": "", + "source_hash": "e84943aef13a22f6", + "date": "2026-03-08", + "metadata": {} + }, + "eks-storage-csi-drivers-ebs-s3-efs-fsx": { + "text": "EKS integrates with Amazon EBS, S3, EFS, FSx, and Amazon File Cache for persistent storage via CSI drivers.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-overview.md", + "source_url": "", + "source_hash": "e84943aef13a22f6", + "date": "2026-03-08", + "metadata": {} + }, + "eks-two-getting-started-paths": { + "text": "EKS offers two getting started paths: eksctl (automated) and AWS Management Console + AWS CLI (manual resource creation).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-getting-started.md", + "source_url": "", + "source_hash": "9d9e6a2d8d54002b", + "date": "2026-03-08", + "metadata": {} + }, + "eks-vpc-cni-plugin-pod-networking": { + "text": "EKS uses the Amazon VPC CNI plugin for pod networking, giving pods real VPC IP addresses (not overlay IPs).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-networking.md", + "source_url": "", + "source_hash": "09bfdf81554e1984", + "date": "2026-03-08", + "metadata": {} + }, + "eksctl-simplest-eks-cluster-creation": { + "text": "eksctl is the simplest and fastest CLI tool for creating and managing Amazon EKS clusters.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/eks-getting-started.md", + "source_url": "", + "source_hash": "9d9e6a2d8d54002b", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-500-node-cluster-range": { + "text": "A 500-node ElastiCache cluster can range from 83 shards (1 primary + 5 replicas each = 498 nodes) to 500 shards (primary only, no replicas).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-replication.md", + "source_url": "", + "source_hash": "34ac5a1c8ece02ba", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-500-shard-limit-version-5-0-6": { + "text": "The 500 node/shard limit is available for ElastiCache Valkey and Redis OSS version 5.0.6+; older versions are limited to 250.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-replication.md", + "source_url": "", + "source_hash": "34ac5a1c8ece02ba", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-cloudtrail-describe-response-null": { + "text": "ElastiCache `Describe*` API calls have `responseElements` set to `null` in CloudTrail logs \u2014 only mutating actions include response details.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonElastiCache-latest-red-ug-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "88b3698457af230a", + "date": "2026-03-12", + "metadata": {} + }, + "elasticache-cloudtrail-event-source": { + "text": "The `eventSource` for ElastiCache events in CloudTrail logs is `elasticache.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonElastiCache-latest-red-ug-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "88b3698457af230a", + "date": "2026-03-12", + "metadata": {} + }, + "elasticache-cluster-mode-disabled-one-shard": { + "text": "ElastiCache cluster mode disabled = exactly 1 shard; cluster mode enabled = up to 500 shards.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-replication.md", + "source_url": "", + "source_hash": "34ac5a1c8ece02ba", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-cluster-mode-horizontal-scaling": { + "text": "ElastiCache cluster mode enables horizontal scaling (sharding); without cluster mode, only vertical scaling is available (applies to Valkey and Redis OSS).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-overview.md", + "source_url": "", + "source_hash": "61e7fb73cd215fea", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-connect-policy-requires-cache-and-user-arn": { + "text": "The `elasticache:Connect` IAM policy must reference both the serverless cache ARN and the user ARN to grant IAM-based authentication access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonElastiCache-latest-dg-LambdaRedishtml.md", + "source_url": "", + "source_hash": "c9f0efce643f545b", + "date": "2026-03-12", + "metadata": {} + }, + "elasticache-fully-managed-hardware-patching": { + "text": "ElastiCache is fully managed: AWS handles hardware provisioning, monitoring, node replacement, and software patching in both Serverless and Node-based deployment models.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-overview.md", + "source_url": "", + "source_hash": "61e7fb73cd215fea", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-iam-auth-presigned-url-strip-https": { + "text": "When using IAM authentication for ElastiCache, the presigned URL must have the `https://` prefix stripped before being used as the auth token password.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonElastiCache-latest-dg-LambdaRedishtml.md", + "source_url": "", + "source_hash": "c9f0efce643f545b", + "date": "2026-03-12", + "metadata": {} + }, + "elasticache-iam-auth-token-15-min-validity": { + "text": "IAM auth tokens for ElastiCache are generated via SigV4 presigned URLs and are valid for 15 minutes; they should be cached (e.g., with `cachetools.TTLCache`) to avoid regeneration overhead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonElastiCache-latest-dg-LambdaRedishtml.md", + "source_url": "", + "source_hash": "c9f0efce643f545b", + "date": "2026-03-12", + "metadata": {} + }, + "elasticache-iam-user-authentication-mode-type-iam": { + "text": "IAM-enabled ElastiCache users are created with `--authentication-mode Type=iam` (not `Type=password` or `Type=no-password-required`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonElastiCache-latest-dg-LambdaRedishtml.md", + "source_url": "", + "source_hash": "c9f0efce643f545b", + "date": "2026-03-12", + "metadata": {} + }, + "elasticache-max-90-nodes-per-cluster": { + "text": "ElastiCache allows a maximum of 90 nodes per cluster (e.g., 90 shards \u00d7 0 replicas, or 15 shards \u00d7 5 replicas).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-replication.md", + "source_url": "", + "source_hash": "34ac5a1c8ece02ba", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-multi-az-automatic-failover": { + "text": "ElastiCache Multi-AZ enables automatic failover from primary to a read replica; without it, primary failure requires manual intervention.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-replication.md", + "source_url": "", + "source_hash": "34ac5a1c8ece02ba", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-replication-asynchronous": { + "text": "ElastiCache replication is asynchronous; some data loss is possible if the primary node fails before replication completes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-replication.md", + "source_url": "", + "source_hash": "34ac5a1c8ece02ba", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-replication-group-max-6-nodes": { + "text": "ElastiCache replication groups consist of 2\u20136 nodes per shard: 1 read/write primary + 1\u20135 read-only replicas.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-replication.md", + "source_url": "", + "source_hash": "34ac5a1c8ece02ba", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-serverless-cache-under-one-minute": { + "text": "ElastiCache Serverless creates a cache in under a minute with a single endpoint, requiring only a cache name.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-overview.md", + "source_url": "", + "source_hash": "61e7fb73cd215fea", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-serverless-min-versions": { + "text": "ElastiCache Serverless supports Valkey 7.2, Memcached 1.6.22+, and Redis OSS 7.1+.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-overview.md", + "source_url": "", + "source_hash": "61e7fb73cd215fea", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-serverless-patching-automatic": { + "text": "In ElastiCache Serverless, software patching is fully automatic; in node-based clusters, users control when patches are applied.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-overview.md", + "source_url": "", + "source_hash": "61e7fb73cd215fea", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-shard-equals-node-group": { + "text": "In the ElastiCache API/CLI, a shard is called a \"node group.\"", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-replication.md", + "source_url": "", + "source_hash": "34ac5a1c8ece02ba", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-single-node-all-data-lost": { + "text": "A single-node ElastiCache cluster has no replication; all data is lost on node failure.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-replication.md", + "source_url": "", + "source_hash": "34ac5a1c8ece02ba", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-subnet-cidr-sizing-pitfall": { + "text": "Subnet CIDR range must have sufficient IP addresses to accommodate ElastiCache node count increases; shared or small subnets are a common pitfall when scaling.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-replication.md", + "source_url": "", + "source_hash": "34ac5a1c8ece02ba", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-three-engines": { + "text": "Amazon ElastiCache supports three engines: Valkey, Memcached, and Redis OSS.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-overview.md", + "source_url": "", + "source_hash": "61e7fb73cd215fea", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-two-deployment-models": { + "text": "ElastiCache has two deployment models: Serverless (auto-scaling, no capacity planning) and Node-based (manual control over node type, count, and AZ placement).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/elasticache-overview.md", + "source_url": "", + "source_hash": "61e7fb73cd215fea", + "date": "2026-03-08", + "metadata": {} + }, + "elasticache-user-group-requires-default-user": { + "text": "Every ElastiCache user group must include a default user, even if that user is disabled (e.g., with access string `\"off +get ~keys*\"`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonElastiCache-latest-dg-LambdaRedishtml.md", + "source_url": "", + "source_hash": "c9f0efce643f545b", + "date": "2026-03-12", + "metadata": {} + }, + "eni-eip-one-per-private-ipv4": { + "text": "An Elastic IP address is associated with a specific private IPv4 address on an ENI, with one EIP allowed per private IPv4 address.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-elastic-network-interfaces.md", + "source_url": "", + "source_hash": "3c4748cede79f5e1", + "date": "2026-03-08", + "metadata": {} + }, + "eni-is-foundational-network-primitive-across-services": { + "text": "ENIs serve as the network attachment point for multiple VPC-integrated services including Lambda, DAX, and RDS Proxy, making ENI security group configuration important for service-level network controls.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "privatelink-interface-endpoints-use-enis", + "lambda-vpc-execution-role-needs-eni-permissions", + "eni-move-redirects-traffic-failover", + "eni-source-dest-check-disable-for-nat" + ], + "outlist": [], + "label": "Four distinct services rely on ENI semantics; ENI capacity, permissions, and configuration affect all of them" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "eni-max-count-varies-by-instance-type": { + "text": "The maximum number of ENIs and IP addresses per ENI varies by EC2 instance type.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-elastic-network-interfaces.md", + "source_url": "", + "source_hash": "3c4748cede79f5e1", + "date": "2026-03-08", + "metadata": {} + }, + "eni-move-redirects-traffic-failover": { + "text": "Moving an ENI between instances automatically redirects network traffic to the new instance, enabling failover patterns.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-elastic-network-interfaces.md", + "source_url": "", + "source_hash": "3c4748cede79f5e1", + "date": "2026-03-08", + "metadata": {} + }, + "eni-network-cards-multiple-over-100gbps": { + "text": "Some large EC2 instance types support multiple network cards for over 100 Gbps bandwidth; the primary ENI must be on card index 0.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-elastic-network-interfaces.md", + "source_url": "", + "source_hash": "3c4748cede79f5e1", + "date": "2026-03-08", + "metadata": {} + }, + "eni-prefix-delegation-cidr-range-on-eni": { + "text": "ENI prefix delegation assigns a CIDR range as a single prefix to an ENI, enabling faster service launches.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-elastic-network-interfaces.md", + "source_url": "", + "source_hash": "3c4748cede79f5e1", + "date": "2026-03-08", + "metadata": {} + }, + "eni-primary-cannot-be-detached": { + "text": "Every EC2 instance has a primary network interface (ENI) that cannot be detached from the instance.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-elastic-network-interfaces.md", + "source_url": "", + "source_hash": "3c4748cede79f5e1", + "date": "2026-03-08", + "metadata": {} + }, + "eni-public-ipv4-released-on-stop": { + "text": "An ENI's public IPv4 address is released on stop/hibernate/terminate and a new one is assigned on restart \u2014 use an Elastic IP for a persistent public address.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-elastic-network-interfaces.md", + "source_url": "", + "source_hash": "3c4748cede79f5e1", + "date": "2026-03-08", + "metadata": {} + }, + "eni-public-ipv4-setting-from-subnet-at-creation": { + "text": "An ENI's public IPv4 auto-assign setting is determined at creation time from the subnet attribute and does not change if the subnet setting is later modified.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-elastic-network-interfaces.md", + "source_url": "", + "source_hash": "3c4748cede79f5e1", + "date": "2026-03-08", + "metadata": {} + }, + "eni-requester-managed-cannot-manage": { + "text": "Requester-managed ENIs (created by AWS services like ELB, RDS, Lambda) appear in your account but cannot be managed by you directly.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-elastic-network-interfaces.md", + "source_url": "", + "source_hash": "3c4748cede79f5e1", + "date": "2026-03-08", + "metadata": {} + }, + "eni-same-az-only": { + "text": "Elastic Network Interfaces can only be attached to EC2 instances in the same Availability Zone.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-elastic-network-interfaces.md", + "source_url": "", + "source_hash": "3c4748cede79f5e1", + "date": "2026-03-08", + "metadata": {} + }, + "eni-secondary-private-ip-reassignable-primary-not": { + "text": "Secondary private IPv4 addresses on an ENI can be reassigned between instances; the primary private IPv4 cannot.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-elastic-network-interfaces.md", + "source_url": "", + "source_hash": "3c4748cede79f5e1", + "date": "2026-03-08", + "metadata": {} + }, + "eni-security-posture-cascades-across-vpc-integrated-services": { + "text": "Since ENIs are the shared network primitive for PrivateLink endpoints, Lambda VPC integration, and instance failover, security group and NACL configurations on ENIs simultaneously affect all VPC-integrated services, making ENI misconfiguration a cross-service vulnerability vector.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "eni-is-foundational-network-primitive-across-services", + "vpc-security-enforced-at-two-independent-layers" + ], + "outlist": [], + "label": "ENI as shared primitive means security posture at ENI layer cascades to all dependent services simultaneously" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "eni-source-dest-check-disable-for-nat": { + "text": "Source/destination checking is enabled by default on ENIs and must be disabled for NAT instances, routers, and firewalls.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-elastic-network-interfaces.md", + "source_url": "", + "source_hash": "3c4748cede79f5e1", + "date": "2026-03-08", + "metadata": {} + }, + "event-driven-dynamodb-architectures-operationally-and-economically-blind": { + "text": "DynamoDB event-driven architectures are simultaneously operationally fragile and economically opaque \u2014 CDC pipeline fragility (capacity constraints AND four reliability hazards) is invisible to audit and DR layers AND invisible cost mechanisms (TTL, capacity overhead) exceed the audit ceiling \u2014 organizations cannot observe either the reliability or cost of their event pipelines.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cdc-pipeline-fragility-invisible-to-audit-and-dr-layers", + "global-dynamodb-invisible-costs-exceed-audit-ceiling" + ], + "outlist": [], + "label": "Two independent depth-4 invisibility conclusions (operational fragility + economic opacity) combine to show event-driven DynamoDB architectures are blind on both axes" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "event-driven-observability-gaps-at-source-and-audit-layers": { + "text": "Event-driven AWS architectures face observability gaps at two independent layers: DynamoDB CDC pipelines have four reliability hazards (ordering, duplication, encoding, auto-disable), while CloudTrail has blind spots for automated operations \u2014 events may be lost or invisible at both the data change layer and the audit layer simultaneously.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-kinesis-cdc-has-four-independent-reliability-hazards", + "cloudtrail-audit-blind-spots-exist-for-automated-operations" + ], + "outlist": [], + "label": "CDC reliability hazards at the data layer + audit blind spots at the control layer = two-layer observability gap in event-driven systems" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "event-pipeline-ordering-fragile-at-both-source-and-destination": { + "text": "Event-driven pipelines from DynamoDB through SQS face cascading ordering fragility \u2014 CDC sources produce out-of-order and duplicated records across both Streams and Kinesis paths AND SQS FIFO ordering holds only within message groups and breaks on DLQ routing \u2014 the full pipeline has no end-to-end ordering guarantee because both endpoints independently fail to maintain order.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-cdc-fragile-across-both-streams-and-kinesis-paths", + "sqs-fifo-ordering-guarantees-fragile-across-two-dimensions" + ], + "outlist": [], + "label": "Source fragility (DynamoDB CDC, depth-2) compounds with destination fragility (SQS FIFO, depth-1) to eliminate any end-to-end ordering guarantee" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "eventbridge-delivers-events-near-real-time": { + "text": "Amazon EventBridge delivers AWS service events in near real time, enabling automated remediation workflows via rules.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-monitoring.md", + "source_url": "", + "source_hash": "174f334ed7a457d7", + "date": "2026-03-08", + "metadata": {} + }, + "fis-ebs-all-volume-types-supported": { + "text": "AWS FIS supports all EBS volume types (gp2, gp3, io1, io2, st1, sc1, standard) for fault injection experiments.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ebs-fishtml.md", + "source_url": "", + "source_hash": "b700dd3ba03ba3b2", + "date": "2026-03-12", + "metadata": {} + }, + "fis-ebs-max-5-volumes-per-az": { + "text": "AWS FIS can test a maximum of 5 EBS volumes simultaneously per AZ when specifying volume ARNs in the console.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ebs-fishtml.md", + "source_url": "", + "source_hash": "b700dd3ba03ba3b2", + "date": "2026-03-12", + "metadata": {} + }, + "fis-ebs-multi-attach-affects-all-instances": { + "text": "FIS experiments on Multi-Attach EBS volumes (io1/io2) affect all attached instances \u2014 per-attachment targeting is not supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ebs-fishtml.md", + "source_url": "", + "source_hash": "b700dd3ba03ba3b2", + "date": "2026-03-12", + "metadata": {} + }, + "fis-ebs-not-local-zones-outposts-wavelength": { + "text": "AWS FIS EBS experiments are not available in Local Zones, Outposts, or Wavelength Zones.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ebs-fishtml.md", + "source_url": "", + "source_hash": "b700dd3ba03ba3b2", + "date": "2026-03-12", + "metadata": {} + }, + "fis-ebs-requires-nitro-instances": { + "text": "AWS FIS EBS fault injection experiments require volumes to be attached to Nitro-based instances; non-Nitro instances are not supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-ebs-fishtml.md", + "source_url": "", + "source_hash": "b700dd3ba03ba3b2", + "date": "2026-03-12", + "metadata": {} + }, + "fis-ec2-kms-creategrant-for-encrypted-ebs": { + "text": "The FIS EC2 access policy includes `kms:CreateGrant` conditioned on `kms:ViaService` and `kms:GrantIsForAWSResource` to handle stop/start of instances with encrypted EBS volumes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorEC2Accesshtml.md", + "source_url": "", + "source_hash": "0a4d10b14b32c922", + "date": "2026-03-12", + "metadata": {} + }, + "fis-ec2-policy-includes-spot-interruption-simulation": { + "text": "The `AWSFaultInjectionSimulatorEC2Access` policy includes `ec2:SendSpotInstanceInterruptions`, enabling FIS to simulate Spot Instance interruptions for resilience testing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorEC2Accesshtml.md", + "source_url": "", + "source_hash": "0a4d10b14b32c922", + "date": "2026-03-12", + "metadata": {} + }, + "fis-ecs-destructive-actions-stop-task-drain-instance": { + "text": "FIS ECS experiments can stop tasks (`ecs:StopTask`) and change container instance state to DRAINING (`ecs:UpdateContainerInstancesState`) as destructive fault injection actions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorECSAccesshtml.md", + "source_url": "", + "source_hash": "1ba601d7fd24ba09", + "date": "2026-03-12", + "metadata": {} + }, + "fis-ecs-ssm-sendcommand-os-level-faults": { + "text": "FIS can inject OS-level faults on EC2-backed ECS container instances via `ssm:SendCommand` integration.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorECSAccesshtml.md", + "source_url": "", + "source_hash": "1ba601d7fd24ba09", + "date": "2026-03-12", + "metadata": {} + }, + "fis-eks-terminates-ec2-not-k8s-api": { + "text": "FIS EKS experiments operate by terminating the EC2 instances backing nodegroups, not by interacting with Kubernetes APIs directly; the EKS policy is read-only for EKS and destructive only at the EC2 layer.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorEKSAccesshtml.md", + "source_url": "", + "source_hash": "ca238155531a1641", + "date": "2026-03-12", + "metadata": {} + }, + "fis-network-disruption-nacl-route-table-swap": { + "text": "FIS disrupts networking by creating replacement NACLs/route tables with deny rules, swapping them onto subnets, then restoring originals after the experiment completes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorNetworkAccesshtml.md", + "source_url": "", + "source_hash": "2ea5606604b871d1", + "date": "2026-03-12", + "metadata": {} + }, + "fis-network-managedbyfis-tag-safety-mechanism": { + "text": "The FIS Network access policy uses the `managedByFIS=true` tag to track resources FIS creates, ensuring cleanup and mutation only affects FIS-managed resources.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorNetworkAccesshtml.md", + "source_url": "", + "source_hash": "2ea5606604b871d1", + "date": "2026-03-12", + "metadata": {} + }, + "fis-rds-failover-targets-clusters-reboot-targets-instances": { + "text": "FIS RDS failover targets Aurora clusters (`arn:aws:rds:*:*:cluster:*`) while reboot targets individual DB instances (`arn:aws:rds:*:*:db:*`) \u2014 different resource ARN patterns.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorRDSAccesshtml.md", + "source_url": "", + "source_hash": "ebc03b3f17d28e48", + "date": "2026-03-12", + "metadata": {} + }, + "fis-rds-policy-two-disruptive-actions": { + "text": "The AWSFaultInjectionSimulatorRDSAccess managed policy permits exactly two disruptive RDS actions: `rds:FailoverDBCluster` (scoped to `cluster:*`) and `rds:RebootDBInstance` (scoped to `db:*`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorRDSAccesshtml.md", + "source_url": "", + "source_hash": "ebc03b3f17d28e48", + "date": "2026-03-12", + "metadata": {} + }, + "fis-ssm-passrole-scoped-to-ssm-service": { + "text": "The AWSFaultInjectionSimulatorSSMAccess policy scopes `iam:PassRole` with a condition restricting it to `\"iam:PassedToService\": \"ssm.amazonaws.com\"` only.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorSSMAccesshtml.md", + "source_url": "", + "source_hash": "7ff37c919baa9a8f", + "date": "2026-03-12", + "metadata": {} + }, + "fis-ssm-requires-ssm-agent-on-ec2": { + "text": "FIS requires SSM Agent running on target EC2 instances for SendCommand-based fault injection experiments to work.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorSSMAccesshtml.md", + "source_url": "", + "source_hash": "7ff37c919baa9a8f", + "date": "2026-03-12", + "metadata": {} + }, + "fis-ssm-two-execution-mechanisms": { + "text": "FIS uses two SSM execution mechanisms: SSM Automation (start/stop/get automation execution) and SSM Run Command (send/list/cancel command).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorSSMAccesshtml.md", + "source_url": "", + "source_hash": "7ff37c919baa9a8f", + "date": "2026-03-12", + "metadata": {} + }, + "fis-tag-get-resources-required-for-target-resolution": { + "text": "All FIS managed policies include `tag:GetResources` permission on `Resource: \"*\"` to enable tag-based target resolution during experiment execution.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorRDSAccesshtml.md", + "source_url": "", + "source_hash": "ebc03b3f17d28e48", + "date": "2026-03-12", + "metadata": {} + }, + "fis-tag-getresources-for-target-resolution": { + "text": "FIS uses `tag:GetResources` from the Resource Groups Tagging API to resolve experiment targets by tag filters defined in experiment templates.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorEKSAccesshtml.md", + "source_url": "", + "source_hash": "ca238155531a1641", + "date": "2026-03-12", + "metadata": {} + }, + "fis-two-cloudformation-resource-types": { + "text": "AWS FIS has two CloudFormation resource types: `AWS::FIS::ExperimentTemplate` (defines fault injection experiments) and `AWS::FIS::TargetAccountConfiguration` (configures cross-account targeting).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-AWS_FIShtml.md", + "source_url": "", + "source_hash": "702fd298786d74cc", + "date": "2026-03-12", + "metadata": {} + }, + "fis-uses-service-role-policies": { + "text": "FIS managed policies (EC2, ECS, EKS, Network, RDS, SSM) are service role policies attached to the FIS execution role, not directly to end-user IAM identities.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSFaultInjectionSimulatorEC2Accesshtml.md", + "source_url": "", + "source_hash": "0a4d10b14b32c922", + "date": "2026-03-12", + "metadata": {} + }, + "full-observability-has-hard-ceiling-despite-investment": { + "text": "Even after paying to close CloudTrail's configurable gaps (data events, network events, long-term retention), inherent blind spots from automated operations (TTL deletions, noop writes) remain unaddressable \u2014 full observability has a hard ceiling that no amount of spending can reach.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "comprehensive-audit-requires-cost-proportional-to-coverage", + "cloudtrail-audit-blind-spots-exist-for-automated-operations", + "cloudtrail-default-audit-posture-has-significant-gaps" + ], + "outlist": [], + "label": "Configurable audit gaps are closeable with spend but inherent blind spots are structural" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "unnecessary" + } + }, + "gateway-route-tables-igw-and-vgw": { + "text": "Gateway route tables can be associated with internet gateways and virtual private gateways, not just subnets.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-route-tables.md", + "source_url": "", + "source_hash": "c59fc3da90d3e192", + "date": "2026-03-08", + "metadata": {} + }, + "glacier-eventsource-glacier-amazonaws-com": { + "text": "The CloudTrail eventSource for the legacy Amazon Glacier vault service is `glacier.amazonaws.com`, distinct from the S3 event source.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazonglacier-latest-dev-audit-logginghtml.md", + "source_url": "", + "source_hash": "b3d703814a7b3a0d", + "date": "2026-03-12", + "metadata": {} + }, + "glacier-standalone-deprecated-new-customers": { + "text": "Amazon Glacier (the standalone vault-based archival service) is no longer accepting new customers \u2014 AWS recommends S3 Glacier storage classes (Instant Retrieval, Flexible Retrieval, Deep Archive) for all new workloads.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazonglacier-latest-dev-audit-logginghtml.md", + "source_url": "", + "source_hash": "b3d703814a7b3a0d", + "date": "2026-03-12", + "metadata": {} + }, + "global-dynamodb-invisible-costs-exceed-audit-ceiling": { + "text": "DynamoDB's invisible cost mechanisms (TTL replica WCU charges, capacity overhead multipliers) operate below both CloudTrail's audit ceiling AND its three-dimensional observability limits \u2014 no combination of scope, fidelity, or retention investment can surface the full cost picture", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-invisible-costs-span-ttl-and-capacity-overhead", + "cloudtrail-audit-three-dimensional-with-independent-ceilings" + ], + "outlist": [], + "label": "Depth-3 invisible costs span mechanisms that depth-3 audit ceilings cannot observe \u2014 DynamoDB cost is structurally below the observability floor" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "global-replication-settings-immutable-at-creation": { + "text": "Cross-region replication features require correct initial configuration \u2014 DynamoDB global table consistency mode, synced settings list, and Aurora DSQL region selection are all locked at creation time.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-global-tables-consistency-mode-immutable", + "dynamodb-global-tables-never-synced-settings", + "aurora-dsql-multi-region-same-continent-only" + ], + "outlist": [], + "label": "Incorrect initial choices require table/cluster recreation; no in-place migration path exists" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "iac-dynamodb-lifecycle-transitions-risk-data-loss": { + "text": "Infrastructure-as-code operations on DynamoDB carry data-loss risk at two independent lifecycle transitions: changing a CloudFormation resource type from Table to GlobalTable can delete the table, AND stack creation rollback deletes all created resources including populated tables \u2014 both IaC lifecycle events threaten data persistence.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-cfn-table-to-globaltable-type-change-deletes", + "cfn-stack-atomic-rollback-on-create-failure" + ], + "outlist": [], + "label": "Two independent CFN lifecycle events (type migration and rollback) can destroy DynamoDB data, making IaC a data-loss vector" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "iac-operations-simultaneously-risk-data-and-recovery-posture": { + "text": "Routine infrastructure-as-code operations simultaneously risk data loss (CloudFormation resource type changes trigger deletion, rollback deletes created resources) AND silently degrade the recovery posture for surviving data (PITR windows reset, auto-scaling configuration lost) \u2014 IaC lifecycle transitions damage both data integrity and the ability to recover from that damage.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "iac-dynamodb-lifecycle-transitions-risk-data-loss", + "lifecycle-transitions-silently-degrade-dr-posture" + ], + "outlist": [], + "label": "IaC data-loss risk (depth-1) compounds with silent DR degradation (depth-2) \u2014 a single IaC operation can both destroy data and degrade recovery for what remains" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "insufficient" + } + }, + "iam-access-analyzer-control-tower-trails-not-supported": { + "text": "AWS Control Tower trails are not supported for IAM Access Analyzer policy generation because logs are in the Log Archive account and S3 bucket permissions are restricted by SCPs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-policy-generationhtml.md", + "source_url": "", + "source_hash": "0f1241ca12af3c80", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-custom-policy-checks-paid": { + "text": "IAM Access Analyzer custom policy checks (check-no-new-access, check-access-not-granted, check-no-public-access) are a paid feature with a per-invocation charge, unlike standard policy validation which is free.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-custom-policy-checkshtml.md", + "source_url": "", + "source_hash": "31a4db7960809c88", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-dashboard-two-views": { + "text": "IAM Access Analyzer has two separate dashboard views: one for external/internal access findings, and one for unused access findings.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-dashboardhtml.md", + "source_url": "", + "source_hash": "ea2b66e64c578793", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-error-findings-removed-not-resolved": { + "text": "IAM Access Analyzer error findings are removed entirely when the underlying issue is fixed, not moved to Resolved status like resource findings.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-findings-remediatehtml.md", + "source_url": "", + "source_hash": "ac1122ae2d4b49ca", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-external-regional-unused-not": { + "text": "External access analyzers are regional \u2014 one must be created in each Region with supported resources. Unused access analyzers are NOT regional \u2014 one analyzer suffices regardless of Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-what-is-access-analyzerhtml.md", + "source_url": "", + "source_hash": "c8fbc0fcae81736b", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-internal-six-resource-types": { + "text": "IAM Access Analyzer internal access analyzers support only 6 resource types: S3 buckets, S3 directory buckets, RDS DB snapshots, RDS DB cluster snapshots, DynamoDB streams, and DynamoDB tables.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-resourceshtml.md", + "source_url": "", + "source_hash": "05418769f0e1068e", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-lambda-functions-layers-only": { + "text": "IAM Access Analyzer generates findings for Lambda functions and layers only \u2014 not for aliases or specific versions via qualified ARN.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-resourceshtml.md", + "source_url": "", + "source_hash": "05418769f0e1068e", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-max-one-external-one-internal-dashboard": { + "text": "The IAM Access Analyzer dashboard allows selecting at most one external access analyzer and one internal access analyzer simultaneously.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-dashboardhtml.md", + "source_url": "", + "source_hash": "ea2b66e64c578793", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-policy-gen-available-7-days": { + "text": "Generated policies from IAM Access Analyzer are viewable in the IAM console for up to 7 days, with only one generated policy at a time per console session.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-policy-generationhtml.md", + "source_url": "", + "source_hash": "0f1241ca12af3c80", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-policy-gen-includes-denied-actions": { + "text": "IAM Access Analyzer policy generation reviews all CloudTrail events including denied actions, so generated policies may include actions that were attempted but denied.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-policy-generationhtml.md", + "source_url": "", + "source_hash": "0f1241ca12af3c80", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-policy-gen-max-90-days": { + "text": "IAM Access Analyzer policy generation analyzes up to 90 days of CloudTrail activity to create least-privilege policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-policy-generationhtml.md", + "source_url": "", + "source_hash": "0f1241ca12af3c80", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-rcp-changes-24-hour-rescan": { + "text": "RCP (resource control policy) changes without an accompanying bucket policy change don't trigger an IAM Access Analyzer rescan \u2014 the next periodic scan occurs within 24 hours.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-resourceshtml.md", + "source_url": "", + "source_hash": "05418769f0e1068e", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-rescan-30min-full-24hr": { + "text": "IAM Access Analyzer analyzes new or updated policies within approximately 30 minutes; a full periodic rescan occurs within 24 hours.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-what-is-access-analyzerhtml.md", + "source_url": "", + "source_hash": "c8fbc0fcae81736b", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-resolved-findings-deleted-90-days": { + "text": "IAM Access Analyzer resolved findings are automatically deleted after 90 days.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-findings-remediatehtml.md", + "source_url": "", + "source_hash": "ac1122ae2d4b49ca", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-s3-bpa-evaluation-6-hours": { + "text": "IAM Access Analyzer evaluates account-level S3 Block Public Access changes only every 6 hours; multi-Region access point changes are also evaluated every 6 hours.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-resourceshtml.md", + "source_url": "", + "source_hash": "05418769f0e1068e", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-six-capabilities": { + "text": "IAM Access Analyzer provides six capabilities: external access findings, internal access analysis, unused access detection, policy validation, custom policy checks, and policy generation from CloudTrail activity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-what-is-access-analyzerhtml.md", + "source_url": "", + "source_hash": "c8fbc0fcae81736b", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-three-custom-check-types": { + "text": "IAM Access Analyzer custom policy checks have three types: `CheckNoNewAccess` (compares updated vs existing policy), `CheckAccessNotGranted` (verifies specific access is prohibited), and `CheckNoPublicAccess` (detects public access for a resource type).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-custom-policy-checkshtml.md", + "source_url": "", + "source_hash": "31a4db7960809c88", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-three-functions": { + "text": "IAM Access Analyzer has three distinct functions: (1) generate least-privilege policies from CloudTrail activity, (2) validate policy syntax and best practices (100+ checks), (3) detect and preview public/cross-account access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-best-practices.md", + "source_url": "", + "source_hash": "3d778456f3ac0ade", + "date": "2026-03-08", + "metadata": {} + }, + "iam-access-analyzer-unused-access-is-paid": { + "text": "IAM Access Analyzer unused access analysis is a paid feature, charged per IAM role and user analyzed per month.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-findings-remediatehtml.md", + "source_url": "", + "source_hash": "ac1122ae2d4b49ca", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-uses-formal-reasoning": { + "text": "IAM Access Analyzer uses logic-based reasoning (automated reasoning / formal methods) to analyze policies, not sampling or heuristics.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-what-is-access-analyzerhtml.md", + "source_url": "", + "source_hash": "c8fbc0fcae81736b", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-validate-policy-api-not-iam-api": { + "text": "The `validate-policy` API belongs to the Access Analyzer service, not the IAM service.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-policy-validationhtml.md", + "source_url": "", + "source_hash": "b725e4f673252aa2", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-validation-not-inline-group-policies": { + "text": "IAM Access Analyzer policy validation works for managed policies and inline user/role policies, but not inline group policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-policy-validationhtml.md", + "source_url": "", + "source_hash": "b725e4f673252aa2", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-analyzer-zone-of-trust-org-requires-mgmt-or-delegated": { + "text": "Setting IAM Access Analyzer zone of trust to Organization level requires the AWS Organizations management account or a delegated administrator.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-dashboardhtml.md", + "source_url": "", + "source_hash": "ea2b66e64c578793", + "date": "2026-03-12", + "metadata": {} + }, + "iam-access-key-id-akia-prefix": { + "text": "Access key IDs starting with `AKIA` indicate long-term IAM user access keys.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-access-keys.md", + "source_url": "", + "source_hash": "1aec841dcf458cdc", + "date": "2026-03-08", + "metadata": {} + }, + "iam-access-key-secret-only-at-creation": { + "text": "The secret access key can only be retrieved at the time of creation \u2014 if lost, the access key must be deleted and recreated.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-access-keys.md", + "source_url": "", + "source_hash": "1aec841dcf458cdc", + "date": "2026-03-08", + "metadata": {} + }, + "iam-access-key-two-parts": { + "text": "An IAM access key consists of two parts: an access key ID (e.g., `AKIAIOSFODNN7EXAMPLE`) and a secret access key \u2014 both are required together to authenticate requests.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-access-keys.md", + "source_url": "", + "source_hash": "1aec841dcf458cdc", + "date": "2026-03-08", + "metadata": {} + }, + "iam-access-keys-do-not-expire": { + "text": "IAM access keys are long-term credentials that do not expire automatically.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-access-keys.md", + "source_url": "", + "source_hash": "1aec841dcf458cdc", + "date": "2026-03-08", + "metadata": {} + }, + "iam-account-arn-root-means-entire-account": { + "text": "An account principal ARN (`arn:aws:iam::123456789012:root`) delegates access to the entire account, not just the root user \u2014 any IAM identity in that account with appropriate permissions can assume the role.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_principalhtml.md", + "source_url": "", + "source_hash": "6b474327217a2bc0", + "date": "2026-03-12", + "metadata": {} + }, + "iam-account-settings-not-requiring-root": { + "text": "Account name, contact info, alternate contacts, payment currency, and Region settings do not require root user \u2014 only email address, root password, and root access keys require root (for standalone accounts).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-id_root-userhtml.md", + "source_url": "", + "source_hash": "af2b6be94a478b0a", + "date": "2026-03-12", + "metadata": {} + }, + "iam-acls-only-non-json-cross-account-only": { + "text": "ACLs are the only IAM policy type that does not use JSON format and only work for cross-account access (cannot grant to entities in the same account).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policies.md", + "source_url": "", + "source_hash": "461949800f4e3d9e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-action-last-accessed-management-only": { + "text": "Action last accessed information only covers management/control plane actions \u2014 no data plane events are tracked.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_last-accessedhtml.md", + "source_url": "", + "source_hash": "b92e56414499e06d", + "date": "2026-03-12", + "metadata": {} + }, + "iam-admin-user-is-not-root-user": { + "text": "An IAM user with administrator permissions is not the same as the AWS account root user.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-users.md", + "source_url": "", + "source_hash": "ed2c44ed4fdf607d", + "date": "2026-03-08", + "metadata": {} + }, + "iam-administrator-access-vs-power-user-access": { + "text": "`AdministratorAccess` grants full access plus permissions delegation; `PowerUserAccess` grants full access except limited IAM and Organizations access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policy-types.md", + "source_url": "", + "source_hash": "c2852b3fbf357f8e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-arn-equals-and-arn-like-identical": { + "text": "`ArnEquals` and `ArnLike` condition operators behave identically (both support wildcards); same for `ArnNotEquals` and `ArnNotLike`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_condition_operatorshtml.md", + "source_url": "", + "source_hash": "20a5bedb43801c9a", + "date": "2026-03-12", + "metadata": {} + }, + "iam-assume-role-max-12-hours": { + "text": "Normal `AssumeRole` API calls support sessions up to 12 hours (43200 seconds) via the `DurationSeconds` parameter.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-roles.md", + "source_url": "", + "source_hash": "0707454626f264ce", + "date": "2026-03-08", + "metadata": {} + }, + "iam-assumed-role-replaces-original-permissions": { + "text": "While using an assumed role, the user's original permissions are not active \u2014 only one set of permissions is active at a time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-cross-account.md", + "source_url": "", + "source_hash": "e48a1ca4eb9cc426", + "date": "2026-03-08", + "metadata": {} + }, + "iam-assuming-role-loses-own-permissions": { + "text": "When a user assumes an IAM role, they temporarily give up their own permissions and take on the role's permissions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-roles.md", + "source_url": "", + "source_hash": "0707454626f264ce", + "date": "2026-03-08", + "metadata": {} + }, + "iam-authorization-paths-each-have-distinct-bypass-vectors": { + "text": "IAM's multiple authorization evaluation paths (identity-based, resource-based, session, boundary) each have unique bypass mechanisms \u2014 resource policies bypass boundaries via user ARNs, PassRole bypasses CloudTrail visibility, and cross-account requires dual explicit controls \u2014 making single-path hardening insufficient.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "iam-resource-policies-bypass-group-governance-and-permission-boundaries", + "iam-cross-account-passrole-requires-dual-controls" + ], + "outlist": [], + "label": "Each IAM authorization path has its own bypass vector requiring path-specific controls" + }, + { + "type": "SL", + "antecedents": [ + "iam-resource-policies-bypass-group-governance-and-permission-boundaries", + "iam-cross-account-passrole-requires-dual-controls", + "iam-passrole-not-in-cloudtrail-or-generated-policies" + ], + "outlist": [], + "label": "" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "iam-aws-configure-no-session-token": { + "text": "`aws configure` cannot capture session tokens; temporary credentials must be set via environment variables or manual config file edits.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-cross-account.md", + "source_url": "", + "source_hash": "e48a1ca4eb9cc426", + "date": "2026-03-08", + "metadata": {} + }, + "iam-aws-managed-policies-not-customer-editable": { + "text": "AWS managed policies cannot be modified by customers \u2014 only AWS can update them, and updates automatically apply to all attached principals.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policy-types.md", + "source_url": "", + "source_hash": "c2852b3fbf357f8e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-best-practice-managed-over-inline": { + "text": "AWS best practice recommends managed policies over inline policies for reusability and central management.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policy-types.md", + "source_url": "", + "source_hash": "c2852b3fbf357f8e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-canonical-user-principal-s3-specific": { + "text": "The `CanonicalUser` principal type in IAM policy grammar is primarily an S3-specific construct used for S3 bucket policies and ACLs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_grammarhtml.md", + "source_url": "", + "source_hash": "0443cb7f838eca11", + "date": "2026-03-12", + "metadata": {} + }, + "iam-centralized-root-access-management-orgs": { + "text": "Centralized root access management in AWS Organizations can remove and prevent long-term root credential recovery across member accounts.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-security-credshtml.md", + "source_url": "", + "source_hash": "97705315a4030d34", + "date": "2026-03-12", + "metadata": {} + }, + "iam-centralized-root-privileged-tasks": { + "text": "Centralized root access privileged tasks include: removing root credentials from member accounts, fixing deny-all S3 bucket policies, and fixing deny-all SQS queue policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-id_root-userhtml.md", + "source_url": "", + "source_hash": "af2b6be94a478b0a", + "date": "2026-03-12", + "metadata": {} + }, + "iam-cloudtrail-monitors-access-key-usage": { + "text": "AWS CloudTrail is the service for monitoring and auditing IAM access key usage and detecting unauthorized access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-access-keys.md", + "source_url": "", + "source_hash": "1aec841dcf458cdc", + "date": "2026-03-08", + "metadata": {} + }, + "iam-cognito-recommended-for-internet-federation": { + "text": "Amazon Cognito is the AWS-recommended intermediary for internet identity federation (Login with Amazon, Facebook, Google, OIDC providers) in web and mobile applications.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-introduction_identity-managementhtml.md", + "source_url": "", + "source_hash": "df206186a66b46c3", + "date": "2026-03-12", + "metadata": {} + }, + "iam-condition-block-logical-and": { + "text": "Multiple conditions within a single IAM policy `Condition` block are evaluated with logical AND \u2014 all conditions must be true for the statement to apply.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_examples_dynamodb_attributeshtml.md", + "source_url": "", + "source_hash": "9c1e099ef43cc3b6", + "date": "2026-03-12", + "metadata": {} + }, + "iam-condition-key-names-case-insensitive": { + "text": "IAM condition context key names are case-insensitive (`aws:SourceIP` equals `AWS:SourceIp`), but condition key values may be case-sensitive depending on the operator used.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_conditionhtml.md", + "source_url": "", + "source_hash": "b74c3fb2baec84c2", + "date": "2026-03-12", + "metadata": {} + }, + "iam-condition-missing-key-false-negated-true": { + "text": "When a condition key is not present in the request context, most operators evaluate to false (no match), but negated operators (`StringNotLike`, `ArnNotLike`) evaluate to true \u2014 a critical policy evaluation gotcha.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_condition_operatorshtml.md", + "source_url": "", + "source_hash": "20a5bedb43801c9a", + "date": "2026-03-12", + "metadata": {} + }, + "iam-condition-multiple-operators-and-multiple-values": { + "text": "Multiple condition operators within one Condition block are evaluated with logical AND; multiple values for a single key within one operator are evaluated with logical OR.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_conditionhtml.md", + "source_url": "", + "source_hash": "b74c3fb2baec84c2", + "date": "2026-03-12", + "metadata": {} + }, + "iam-console-password-cli-login": { + "text": "IAM console password credentials can also authenticate CLI/SDK access via `aws login` (requires `SignInLocalDevelopmentAccess` policy attached to the user).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-id_usershtml.md", + "source_url": "", + "source_hash": "f69fb530a2644675", + "date": "2026-03-12", + "metadata": {} + }, + "iam-create-policy-version-set-as-default": { + "text": "`aws iam create-policy-version --set-as-default` updates a managed policy by creating a new version and making it the active version.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisor-example-scenarioshtml.md", + "source_url": "", + "source_hash": "0a50676e2446511c", + "date": "2026-03-12", + "metadata": {} + }, + "iam-create-service-linked-role-cli-command": { + "text": "Service-linked roles are created via CLI with `aws iam create-service-linked-role --aws-service-name SERVICE-NAME.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-service-linked-roles.md", + "source_url": "", + "source_hash": "7dfb1462f36ff821", + "date": "2026-03-08", + "metadata": {} + }, + "iam-credential-lifecycle-requires-entirely-proactive-management": { + "text": "IAM access keys never expire automatically AND the secret access key can only be retrieved at creation time \u2014 credential lifecycle management must be entirely proactive with no forcing functions for rotation, and a lost secret key requires full credential replacement rather than recovery", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "iam-access-keys-do-not-expire", + "iam-access-key-secret-only-at-creation" + ], + "outlist": [], + "label": "No expiry plus one-time-only secret retrieval means IAM credential hygiene depends entirely on organizational discipline with zero automated safety nets" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "iam-credential-report-lists-users-and-status": { + "text": "IAM credential reports can be generated and downloaded listing all IAM users and their credential status including password age, access key age, and MFA device status.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-users.md", + "source_url": "", + "source_hash": "ed2c44ed4fdf607d", + "date": "2026-03-08", + "metadata": {} + }, + "iam-credential-security-achievable-through-proactive-lifecycle": { + "text": "IAM credential security is achievable when proactive lifecycle management addresses non-expiring access keys AND last-accessed information enables continuous cleanup of unused permissions toward least-privilege.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "iam-credential-lifecycle-requires-entirely-proactive-management", + "iam-last-accessed-information-cleanup" + ], + "outlist": [ + "iam-authorization-paths-each-have-distinct-bypass-vectors" + ], + "label": "Proactive credential management + usage-based cleanup achieves security UNLESS authorization bypass vectors (resource policies bypassing boundaries, cross-account PassRole gaps) undermine the effort through paths the lifecycle tools cannot govern" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "iam-credentials-file-stores-plaintext": { + "text": "The shared AWS credentials file stores access keys in plaintext.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-access-keys.md", + "source_url": "", + "source_hash": "1aec841dcf458cdc", + "date": "2026-03-08", + "metadata": {} + }, + "iam-cross-account-explicit-deny-needed-for-broad-permissions": { + "text": "To prevent IAM users or groups with broad permissions (e.g., PowerUser) from assuming a cross-account role, an explicit Deny policy on `sts:AssumeRole` is required.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-cross-account.md", + "source_url": "", + "source_hash": "e48a1ca4eb9cc426", + "date": "2026-03-08", + "metadata": {} + }, + "iam-cross-account-needs-both-policies": { + "text": "For cross-account access, both a resource-based policy on the resource and an identity-based policy on the principal are needed; for same-account access, a resource-based policy alone suffices.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policies.md", + "source_url": "", + "source_hash": "461949800f4e3d9e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-cross-account-no-cross-partition": { + "text": "Cross-account role delegation only works within a single AWS partition (e.g., `aws` and `aws-cn` cannot cross).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-cross-account.md", + "source_url": "", + "source_hash": "e48a1ca4eb9cc426", + "date": "2026-03-08", + "metadata": {} + }, + "iam-cross-account-passrole-requires-dual-controls": { + "text": "Cross-account PassRole scenarios require both explicit deny policies for broad permissions and specific role ARN allow-lists \u2014 neither control alone is sufficient.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "iam-cross-account-explicit-deny-needed-for-broad-permissions", + "iam-passrole-should-list-specific-roles" + ], + "outlist": [], + "label": "Cross-account amplifies PassRole risk; without explicit deny, broad policies (e.g., PowerUser) can assume roles in other accounts" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "iam-cross-account-requires-trust-and-identity-policy": { + "text": "Cross-account role access requires both a trust policy on the role (in the trusting account) and an identity policy granting `sts:AssumeRole` (in the trusted account).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-cross-account.md", + "source_url": "", + "source_hash": "e48a1ca4eb9cc426", + "date": "2026-03-08", + "metadata": {} + }, + "iam-customer-managed-policy-copy-aws-managed": { + "text": "Best practice for customer managed policies is to start by copying an AWS managed policy and then customizing it.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policy-types.md", + "source_url": "", + "source_hash": "c2852b3fbf357f8e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-customer-managed-policy-preferred-for-least-privilege": { + "text": "Customer managed policies are preferred over both inline policies (for reusability) and AWS managed policies (for least privilege granularity).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_createhtml.md", + "source_url": "", + "source_hash": "7635106f62b3106e", + "date": "2026-03-12", + "metadata": {} + }, + "iam-dangerous-permissions-equivalent-full-access": { + "text": "Granting IAM permissions like `iam:CreatePolicy`, `iam:AttachRolePolicy`, `iam:PutUserPolicy`, or similar policy-management permissions effectively grants full account access \u2014 these must be tightly controlled.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-security-audit-guidehtml.md", + "source_url": "", + "source_hash": "f3a3fbbc547c3afb", + "date": "2026-03-12", + "metadata": {} + }, + "iam-delete-service-linked-role-requires-two-permissions": { + "text": "Deleting a service-linked role requires both `iam:DeleteServiceLinkedRole` and `iam:GetServiceLinkedRoleDeletionStatus` permissions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-service-linked-roles.md", + "source_url": "", + "source_hash": "7dfb1462f36ff821", + "date": "2026-03-08", + "metadata": {} + }, + "iam-deny-with-condition-preferred-over-notprincipal": { + "text": "The deny-with-condition pattern using `\"Principal\": \"*\"` with `ArnNotEquals` on `aws:PrincipalArn` is preferred over `NotPrincipal` for deny-all-except access patterns.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_principalhtml.md", + "source_url": "", + "source_hash": "6b474327217a2bc0", + "date": "2026-03-12", + "metadata": {} + }, + "iam-disable-console-password-keeps-programmatic-access": { + "text": "Disabling an IAM user's console password does not revoke programmatic access or prevent assuming roles.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-users.md", + "source_url": "", + "source_hash": "ed2c44ed4fdf607d", + "date": "2026-03-08", + "metadata": {} + }, + "iam-dynamodb-supports-all-six-iam-features": { + "text": "DynamoDB supports all six IAM integration features: individual actions, resource-level permissions, resource-based policies, ABAC (tags), temporary credentials, and service-linked roles.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_aws-services-that-work-with-iamhtml.md", + "source_url": "", + "source_hash": "b5a7e473245678da", + "date": "2026-03-12", + "metadata": {} + }, + "iam-effective-permissions-combine-identity-and-resource": { + "text": "A user's effective permissions are cumulative across identity-based policies (user/group/role) AND resource-based policies (S3, SQS, SNS, KMS) \u2014 both must be reviewed for a complete permission picture.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-security-audit-guidehtml.md", + "source_url": "", + "source_hash": "f3a3fbbc547c3afb", + "date": "2026-03-12", + "metadata": {} + }, + "iam-eventually-consistent": { + "text": "IAM is eventually consistent \u2014 changes replicate globally across multiple data centers and may take time to propagate.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-overview.md", + "source_url": "", + "source_hash": "119a81fbff2203cc", + "date": "2026-03-08", + "metadata": {} + }, + "iam-eventually-consistent-not-critical-path": { + "text": "IAM changes should not be placed in critical, high-availability code paths due to eventual consistency \u2014 make IAM changes in initialization/setup routines and verify propagation before depending on them.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-introductionhtml.md", + "source_url": "", + "source_hash": "8167d22ac55b834f", + "date": "2026-03-12", + "metadata": {} + }, + "iam-explicit-deny-always-wins": { + "text": "An explicit deny in any applicable IAM policy type always overrides any allow from any other policy type.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policies.md", + "source_url": "", + "source_hash": "461949800f4e3d9e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-external-id-for-cross-org-role-assumption": { + "text": "ExternalId is an additional parameter used for secure cross-account role assumption between different organizations (confused deputy prevention).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-id_roleshtml.md", + "source_url": "", + "source_hash": "900bc48daca14133", + "date": "2026-03-12", + "metadata": {} + }, + "iam-external-id-no-console-switch": { + "text": "Roles requiring ExternalId cannot be assumed via the AWS console; they must be assumed using the CLI or API.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-cross-account.md", + "source_url": "", + "source_hash": "e48a1ca4eb9cc426", + "date": "2026-03-08", + "metadata": {} + }, + "iam-federation-decision-matrix": { + "text": "Federation decision matrix: IAM Identity Center for multi-account workforce access; IAM federation (direct SAML/OIDC) for single standalone accounts or machine identities; Amazon Cognito identity pools for mobile/web app end users.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-id_roles_providershtml.md", + "source_url": "", + "source_hash": "78747ec1b61bdd8f", + "date": "2026-03-12", + "metadata": {} + }, + "iam-federation-preferred-over-iam-users": { + "text": "AWS best practice is for human users to access AWS through an identity provider (IdP) using temporary credentials via federation, not long-lived IAM user credentials.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-best-practices.md", + "source_url": "", + "source_hash": "3d778456f3ac0ade", + "date": "2026-03-08", + "metadata": {} + }, + "iam-fido-mfa-cannot-pass-to-sts": { + "text": "FIDO security key MFA information cannot be passed to STS API operations for temporary credentials.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-mfa.md", + "source_url": "", + "source_hash": "5d501b8fb778eddd", + "date": "2026-03-08", + "metadata": {} + }, + "iam-fido-security-key-console-only": { + "text": "FIDO security keys (passkeys) can only be enabled via the AWS Console \u2014 not via CLI or API.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-mfa.md", + "source_url": "", + "source_hash": "5d501b8fb778eddd", + "date": "2026-03-08", + "metadata": {} + }, + "iam-for-all-values-empty-key-returns-true": { + "text": "`ForAllValues:` with an empty or missing key set evaluates to true \u2014 a `Null` condition check should be paired with it to prevent unintended access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_condition_operatorshtml.md", + "source_url": "", + "source_hash": "20a5bedb43801c9a", + "date": "2026-03-12", + "metadata": {} + }, + "iam-four-user-types": { + "text": "AWS has four user types: root user (account owner, full access), IAM Identity Center users, federated principals (external IdP, temporary access), and IAM users (created within IAM).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-security-credshtml.md", + "source_url": "", + "source_hash": "97705315a4030d34", + "date": "2026-03-12", + "metadata": {} + }, + "iam-generate-service-last-accessed-async": { + "text": "`generate-service-last-accessed-details` is an asynchronous operation \u2014 you must poll with `get-service-last-accessed-details` until `JobStatus` is `COMPLETED`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisor-example-scenarioshtml.md", + "source_url": "", + "source_hash": "0a50676e2446511c", + "date": "2026-03-12", + "metadata": {} + }, + "iam-get-account-authorization-details-managed-policies": { + "text": "The `GetAccountAuthorizationDetails` API identifies which AWS managed policies are currently in use (attached) in an account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-security-audit-guidehtml.md", + "source_url": "", + "source_hash": "f3a3fbbc547c3afb", + "date": "2026-03-12", + "metadata": {} + }, + "iam-global-service-not-region-specific": { + "text": "IAM is a global service that does not require Region selection \u2014 it is not tied to a specific AWS Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awsconsolehelpdocs-latest-gsg-select-regionhtml.md", + "source_url": "", + "source_hash": "25db8f0c0b83d6f0", + "date": "2026-03-12", + "metadata": {} + }, + "iam-groups-cannot-be-nested": { + "text": "IAM user groups cannot be nested \u2014 groups can only contain users, not other groups.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-groups.md", + "source_url": "", + "source_hash": "d484218a9298ead3", + "date": "2026-03-08", + "metadata": {} + }, + "iam-groups-identity-based-policies-only": { + "text": "Only identity-based policies can be attached to IAM user groups \u2014 resource-based policies cannot reference groups.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-groups.md", + "source_url": "", + "source_hash": "d484218a9298ead3", + "date": "2026-03-08", + "metadata": {} + }, + "iam-groups-not-principals": { + "text": "IAM user groups cannot be identified as a `Principal` in resource-based policies \u2014 they are not principals.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-groups.md", + "source_url": "", + "source_hash": "d484218a9298ead3", + "date": "2026-03-08", + "metadata": {} + }, + "iam-groups-permissions-not-authentication": { + "text": "IAM user groups are a permissions management mechanism, not an authentication mechanism \u2014 groups are not authenticated entities.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-groups.md", + "source_url": "", + "source_hash": "d484218a9298ead3", + "date": "2026-03-08", + "metadata": {} + }, + "iam-hardware-totp-aws-approved-only": { + "text": "Hardware TOTP tokens must be purchased from AWS-approved sources (token seeds must be shared with AWS at production); tokens from other sources will not work.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-mfa.md", + "source_url": "", + "source_hash": "5d501b8fb778eddd", + "date": "2026-03-08", + "metadata": {} + }, + "iam-identity-center-coexists-with-iam-federation": { + "text": "Existing IAM federation workflows continue to work alongside IAM Identity Center \u2014 migration is not required to adopt Identity Center for applications.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-identity-center.md", + "source_url": "", + "source_hash": "ff7b6a65073b2784", + "date": "2026-03-08", + "metadata": {} + }, + "iam-identity-center-multi-region-replication": { + "text": "IAM Identity Center instances can be replicated to additional AWS Regions for resilience and regional application deployment.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-identity-center.md", + "source_url": "", + "source_hash": "ff7b6a65073b2784", + "date": "2026-03-08", + "metadata": {} + }, + "iam-identity-center-org-vs-account-instance": { + "text": "IAM Identity Center has two instance types: organization instance (deployed in the AWS Organizations management account, required for multi-account access) and account instance (single account, limited to isolated app deployments).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-identity-center.md", + "source_url": "", + "source_hash": "ff7b6a65073b2784", + "date": "2026-03-08", + "metadata": {} + }, + "iam-identity-center-recommended-multi-account": { + "text": "IAM Identity Center (formerly AWS SSO) is AWS's recommended approach for managing workforce access to multiple AWS accounts, over per-account IAM federation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-identity-center.md", + "source_url": "", + "source_hash": "ff7b6a65073b2784", + "date": "2026-03-08", + "metadata": {} + }, + "iam-identity-center-recommended-over-iam-users-setup": { + "text": "AWS recommends using IAM Identity Center (formerly AWS SSO) for creating administrative users instead of creating IAM users directly, with access assigned via groups following least-privilege principles.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/apigateway-latest-developerguide-setting-uphtml.md", + "source_url": "", + "source_hash": "5de4becb9eedffda", + "date": "2026-03-12", + "metadata": {} + }, + "iam-identity-center-retains-sso-namespace": { + "text": "Despite renaming from AWS SSO to IAM Identity Center, all API namespaces, CLI commands (`aws sso`, `aws sso-admin`), endpoints, and CloudFormation resources (`AWS::SSO`) retain the `sso`/`singlesignon` naming.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-identity-center.md", + "source_url": "", + "source_hash": "ff7b6a65073b2784", + "date": "2026-03-08", + "metadata": {} + }, + "iam-identity-center-single-federation-point": { + "text": "IAM Identity Center provides a single point of federation \u2014 one SAML certificate to manage and one integration point with the identity provider.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-identity-center.md", + "source_url": "", + "source_hash": "ff7b6a65073b2784", + "date": "2026-03-08", + "metadata": {} + }, + "iam-identity-center-sts-free": { + "text": "IAM, IAM Identity Center, and AWS STS have no charge; IAM Access Analyzer unused access analysis is paid.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-overview.md", + "source_url": "", + "source_hash": "119a81fbff2203cc", + "date": "2026-03-08", + "metadata": {} + }, + "iam-identity-center-three-identity-sources": { + "text": "IAM Identity Center supports three identity sources: its built-in directory, an external IdP via SAML 2.0, or Active Directory (via AWS Directory Service).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-identity-center.md", + "source_url": "", + "source_hash": "ff7b6a65073b2784", + "date": "2026-03-08", + "metadata": {} + }, + "iam-identity-center-trusted-identity-propagation": { + "text": "IAM Identity Center's trusted identity propagation allows AWS managed applications (e.g., QuickSight \u2192 Redshift) to securely pass user identity between services, with CloudTrail logging the actual user identity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-identity-center.md", + "source_url": "", + "source_hash": "ff7b6a65073b2784", + "date": "2026-03-08", + "metadata": {} + }, + "iam-identity-center-users-auto-assume-roles": { + "text": "IAM Identity Center users automatically assume IAM roles on sign-in and receive temporary credentials; IAM users must explicitly switch roles to assume them.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-introduction_identity-managementhtml.md", + "source_url": "", + "source_hash": "df206186a66b46c3", + "date": "2026-03-12", + "metadata": {} + }, + "iam-identity-center-workforce-not-app-users": { + "text": "IAM Identity Center is for workforce users (employees); Amazon Cognito is for application end-users.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-identity-center.md", + "source_url": "", + "source_hash": "ff7b6a65073b2784", + "date": "2026-03-08", + "metadata": {} + }, + "iam-if-exists-true-when-key-absent": { + "text": "The `...IfExists` condition operator modifier evaluates to true (passes) when the condition key is absent from the request, and only evaluates the condition when the key is present.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_condition_operatorshtml.md", + "source_url": "", + "source_hash": "20a5bedb43801c9a", + "date": "2026-03-12", + "metadata": {} + }, + "iam-inline-policy-one-to-one-deleted-with-identity": { + "text": "Inline policies have a strict one-to-one relationship with an IAM identity and are deleted when the identity is deleted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policy-types.md", + "source_url": "", + "source_hash": "c2852b3fbf357f8e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-job-function-policies-auto-updated": { + "text": "Job function policies (e.g., `AdministratorAccess`, `PowerUserAccess`) are AWS managed policies aligned to IT roles and are automatically maintained by AWS as services evolve.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policy-types.md", + "source_url": "", + "source_hash": "c2852b3fbf357f8e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-lambda-partial-abac-partial-slr": { + "text": "Lambda has \"Partial\" ABAC support and \"Partial\" service-linked role support, meaning not all resource types or features are covered.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_aws-services-that-work-with-iamhtml.md", + "source_url": "", + "source_hash": "b5a7e473245678da", + "date": "2026-03-12", + "metadata": {} + }, + "iam-last-accessed-4-hour-delay": { + "text": "Recent IAM activity appears in last accessed reports within 4 hours; service-level tracking covers at least 400 days of history.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_last-accessedhtml.md", + "source_url": "", + "source_hash": "b92e56414499e06d", + "date": "2026-03-12", + "metadata": {} + }, + "iam-last-accessed-action-level-management-only": { + "text": "Action-level last accessed information covers management (control plane) actions only \u2014 data plane events are not included.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisorhtml.md", + "source_url": "", + "source_hash": "4d783945867d6414", + "date": "2026-03-12", + "metadata": {} + }, + "iam-last-accessed-activity-delay-4-hours": { + "text": "Recent IAM activity takes up to 4 hours to appear in last accessed information in the IAM console.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisorhtml.md", + "source_url": "", + "source_hash": "4d783945867d6414", + "date": "2026-03-12", + "metadata": {} + }, + "iam-last-accessed-includes-denied-attempts": { + "text": "IAM last accessed data reports all API call attempts including denied ones \u2014 not just successful access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisorhtml.md", + "source_url": "", + "source_hash": "4d783945867d6414", + "date": "2026-03-12", + "metadata": {} + }, + "iam-last-accessed-information-cleanup": { + "text": "IAM last accessed information identifies unused users, roles, permissions, policies, and credentials, enabling cleanup of unnecessary access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-best-practices.md", + "source_url": "", + "source_hash": "3d778456f3ac0ade", + "date": "2026-03-08", + "metadata": {} + }, + "iam-last-accessed-only-identity-based-policies": { + "text": "IAM last accessed reports only consider identity-based policies \u2014 resource-based policies, ACLs, SCPs, permissions boundaries, and session policies are excluded.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisorhtml.md", + "source_url": "", + "source_hash": "4d783945867d6414", + "date": "2026-03-12", + "metadata": {} + }, + "iam-last-accessed-temp-creds-same-session": { + "text": "For temporary/assumed-role credentials, the last accessed report must be generated and retrieved within the same session \u2014 only the principal that generated the report can view its details.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_last-accessedhtml.md", + "source_url": "", + "source_hash": "b92e56414499e06d", + "date": "2026-03-12", + "metadata": {} + }, + "iam-last-accessed-tracking-period-400-days": { + "text": "IAM tracks service last accessed information for at least 400 days; action-level tracking started at different dates per service (S3: April 2020, EC2/IAM/Lambda: April 2021, all others: May 2023).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisorhtml.md", + "source_url": "", + "source_hash": "4d783945867d6414", + "date": "2026-03-12", + "metadata": {} + }, + "iam-last-accessed-wait-90-days-before-reducing": { + "text": "AWS recommends waiting a reporting period (e.g., 90 days) before using last accessed information to make permission reduction decisions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisor-example-scenarioshtml.md", + "source_url": "", + "source_hash": "0a50676e2446511c", + "date": "2026-03-12", + "metadata": {} + }, + "iam-legitimate-long-term-credential-use-cases": { + "text": "Legitimate use cases for long-term IAM credentials include: workloads that can't use IAM roles (e.g., WordPress plugins), third-party clients without IAM Identity Center support, CodeCommit SSH/Git credentials, and Amazon Keyspaces service-specific credentials.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-best-practices.md", + "source_url": "", + "source_hash": "3d778456f3ac0ade", + "date": "2026-03-08", + "metadata": {} + }, + "iam-managed-policy-arn-pattern": { + "text": "AWS managed policies have ARNs in the format `arn:aws:iam::aws:policy/`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policy-types.md", + "source_url": "", + "source_hash": "c2852b3fbf357f8e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-managed-policy-attachable-to-multiple-principals": { + "text": "A single AWS managed or customer managed policy can be attached to multiple principals; AWS managed policies can be attached across accounts.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policy-types.md", + "source_url": "", + "source_hash": "c2852b3fbf357f8e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-management-account-exempt-from-scps": { + "text": "The AWS Organizations management account is not limited by SCPs \u2014 its last accessed report lists all AWS services regardless of SCP restrictions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisor-view-data-orgshtml.md", + "source_url": "", + "source_hash": "2cc888ac0a1db28a", + "date": "2026-03-12", + "metadata": {} + }, + "iam-max-two-access-keys-per-user": { + "text": "Each IAM user can have a maximum of two access keys, enabling key rotation without downtime.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-access-keys.md", + "source_url": "", + "source_hash": "1aec841dcf458cdc", + "date": "2026-03-08", + "metadata": {} + }, + "iam-mfa-enforcement-cannot-be-fully-automated": { + "text": "IAM MFA enforcement has structural automation gaps \u2014 FIDO security keys can only be configured via the console and root MFA can only be configured while signed in as root \u2014 preventing fully automated MFA lifecycle management across an organization.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "iam-fido-security-key-console-only", + "iam-root-mfa-only-configurable-as-root" + ], + "outlist": [], + "label": "Two independent MFA configuration paths each require manual interactive access, blocking end-to-end automation" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "iam-mfa-max-8-devices-per-user": { + "text": "Each IAM user or root user can register up to 8 MFA devices of any combination of types (passkeys, virtual MFA, hardware TOTP).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-mfa.md", + "source_url": "", + "source_hash": "5d501b8fb778eddd", + "date": "2026-03-08", + "metadata": {} + }, + "iam-mfa-requires-existing-mfa-to-modify": { + "text": "An IAM user must authenticate with an existing MFA device to enable or disable an additional MFA device.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-mfa.md", + "source_url": "", + "source_hash": "5d501b8fb778eddd", + "date": "2026-03-08", + "metadata": {} + }, + "iam-mfa-setup-requires-two-consecutive-codes": { + "text": "Setting up a virtual MFA device requires entering two consecutive TOTP codes (not just one) to validate time synchronization.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-enable-virt-mfa-for-roothtml.md", + "source_url": "", + "source_hash": "13c24de4feb19160", + "date": "2026-03-12", + "metadata": {} + }, + "iam-never-embed-access-keys-in-code": { + "text": "AWS best practice: never embed access keys directly in application code \u2014 use SDK credential providers or known credential file locations instead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-users.md", + "source_url": "", + "source_hash": "ed2c44ed4fdf607d", + "date": "2026-03-08", + "metadata": {} + }, + "iam-never-embed-keys-in-code": { + "text": "Access keys should never be embedded in application code or project files \u2014 this is a security anti-pattern.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-access-keys.md", + "source_url": "", + "source_hash": "1aec841dcf458cdc", + "date": "2026-03-08", + "metadata": {} + }, + "iam-never-use-root-access-keys": { + "text": "AWS considers using root account access keys a critical security anti-pattern \u2014 root access keys should never be created or used.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-access-keys.md", + "source_url": "", + "source_hash": "1aec841dcf458cdc", + "date": "2026-03-08", + "metadata": {} + }, + "iam-new-user-zero-permissions-by-default": { + "text": "A new IAM user has no permissions by default \u2014 all permissions must be explicitly granted (implicit deny).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-users.md", + "source_url": "", + "source_hash": "ed2c44ed4fdf607d", + "date": "2026-03-08", + "metadata": {} + }, + "iam-no-default-all-users-group": { + "text": "There is no default IAM group that includes all users \u2014 you must create and populate one manually.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-groups.md", + "source_url": "", + "source_hash": "d484218a9298ead3", + "date": "2026-03-08", + "metadata": {} + }, + "iam-no-default-roles-new-account": { + "text": "No IAM roles are created by default when you first create an AWS account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-roles.md", + "source_url": "", + "source_hash": "0707454626f264ce", + "date": "2026-03-08", + "metadata": {} + }, + "iam-no-permissions-until-first-signin": { + "text": "AWS recommends not granting permissions to new IAM users until after their first sign-in and password change, as a secure onboarding practice.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-troubleshoothtml.md", + "source_url": "", + "source_hash": "862eac667acc4c51", + "date": "2026-03-12", + "metadata": {} + }, + "iam-notaction-allow-grants-all-except-listed": { + "text": "The `NotAction` element with `\"Effect\": \"Allow\"` grants access to all services except the listed ones \u2014 commonly used for power-user policies that exclude IAM/Organizations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisor-example-scenarioshtml.md", + "source_url": "", + "source_hash": "0a50676e2446511c", + "date": "2026-03-12", + "metadata": {} + }, + "iam-notprincipal-deny-boundary-conflict": { + "text": "Using `NotPrincipal` with `Deny` in resource-based policies always denies principals with permissions boundaries attached \u2014 use `ArnNotEquals` with `aws:PrincipalArn` condition instead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-permission-boundaries.md", + "source_url": "", + "source_hash": "33afa4424bf72145", + "date": "2026-03-08", + "metadata": {} + }, + "iam-oidc-federated-principals-trust-policies-only": { + "text": "OIDC federated principals (e.g., GitHub Actions, Cognito) can only be specified in IAM role trust policies, not in other resource-based policy types.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_principalhtml.md", + "source_url": "", + "source_hash": "6b474327217a2bc0", + "date": "2026-03-12", + "metadata": {} + }, + "iam-org-access-report-async-job-pattern": { + "text": "Organization-level last accessed reports use an async job pattern: `generate-organizations-access-report` returns a job ID, then poll `get-organizations-access-report` for completion.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisor-view-data-orgshtml.md", + "source_url": "", + "source_hash": "2cc888ac0a1db28a", + "date": "2026-03-12", + "metadata": {} + }, + "iam-org-entity-path-format": { + "text": "AWS Organizations entity paths use the format `o-orgId/r-rootId/ou-ouId/.../accountId/` \u2014 OU and root IDs are only unique within an organization, so the org ID must be included.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisor-view-data-orgshtml.md", + "source_url": "", + "source_hash": "2cc888ac0a1db28a", + "date": "2026-03-12", + "metadata": {} + }, + "iam-organizations-new-member-no-root-credentials": { + "text": "New member accounts created in AWS Organizations with centralized root access enabled have no root credentials by default \u2014 no password, access keys, signing certificates, or MFA.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-id_root-userhtml.md", + "source_url": "", + "source_hash": "af2b6be94a478b0a", + "date": "2026-03-12", + "metadata": {} + }, + "iam-orgs-last-accessed-requires-mgmt-account-scps-enabled": { + "text": "Organizations last accessed data requires signing in with management account credentials and SCPs must be enabled on the organization root.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_last-accessedhtml.md", + "source_url": "", + "source_hash": "b92e56414499e06d", + "date": "2026-03-12", + "metadata": {} + }, + "iam-orgs-mgmt-account-reports-all-services": { + "text": "Organizations last accessed reports for the management account list all AWS services (not limited by SCPs); reports for other entities exclude management account activity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_last-accessedhtml.md", + "source_url": "", + "source_hash": "b92e56414499e06d", + "date": "2026-03-12", + "metadata": {} + }, + "iam-orphaned-virtual-mfa-blocks-assignment": { + "text": "Cancelling MFA assignment midway creates an orphaned virtual MFA device that blocks future assignment \u2014 it must be deleted via `aws iam delete-virtual-mfa-device`, not by editing policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-troubleshoothtml.md", + "source_url": "", + "source_hash": "862eac667acc4c51", + "date": "2026-03-12", + "metadata": {} + }, + "iam-ou-ids-not-globally-unique": { + "text": "AWS Organizations OU IDs are only unique within an organization, not globally \u2014 `aws:PrincipalOrgPaths` conditions must always include the org ID.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_condition-keyshtml.md", + "source_url": "", + "source_hash": "e2027fc5516d6eee", + "date": "2026-03-12", + "metadata": {} + }, + "iam-passkeys-phishing-resistant": { + "text": "Passkeys and FIDO2 security keys are phishing-resistant (using public key cryptography); TOTP-based MFA methods are not phishing-resistant.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-mfa.md", + "source_url": "", + "source_hash": "5d501b8fb778eddd", + "date": "2026-03-08", + "metadata": {} + }, + "iam-passrole-governance-auditable": { + "text": "IAM PassRole governance can be enforced through specific role ARN allow-lists and cross-account explicit deny policies, making role delegation auditable and controllable.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "iam-passrole-should-list-specific-roles", + "iam-cross-account-explicit-deny-needed-for-broad-permissions" + ], + "outlist": [ + "iam-passrole-not-in-cloudtrail-or-generated-policies" + ], + "label": "PassRole governance is enforceable but not auditable while CloudTrail visibility gap exists" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "iam-passrole-not-in-cloudtrail-or-generated-policies": { + "text": "`iam:PassRole` is not tracked by CloudTrail and is never included in IAM Access Analyzer generated policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-policy-generationhtml.md", + "source_url": "", + "source_hash": "0f1241ca12af3c80", + "date": "2026-03-12", + "metadata": {} + }, + "iam-passrole-not-tracked-in-last-accessed": { + "text": "`iam:PassRole` is not tracked in last accessed information and is never included in IAM Access Analyzer generated policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_access-advisorhtml.md", + "source_url": "", + "source_hash": "4d783945867d6414", + "date": "2026-03-12", + "metadata": {} + }, + "iam-passrole-not-tracked-last-accessed": { + "text": "The `iam:PassRole` action is not tracked and is excluded from action last accessed information.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_last-accessedhtml.md", + "source_url": "", + "source_hash": "b92e56414499e06d", + "date": "2026-03-12", + "metadata": {} + }, + "iam-passrole-should-list-specific-roles": { + "text": "The `iam:PassRole` permission should explicitly list allowed role ARNs \u2014 wildcards (`*`) in the Resource element for PassRole is a security anti-pattern.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-security-audit-guidehtml.md", + "source_url": "", + "source_hash": "f3a3fbbc547c3afb", + "date": "2026-03-12", + "metadata": {} + }, + "iam-permission-boundary-condition-key": { + "text": "The `iam:PermissionsBoundary` condition key can enforce that delegated admins must attach a specific boundary when creating users; `iam:DeleteUserPermissionsBoundary` must be explicitly denied to prevent boundary removal.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-permission-boundaries.md", + "source_url": "", + "source_hash": "33afa4424bf72145", + "date": "2026-03-08", + "metadata": {} + }, + "iam-permission-boundary-limits-not-grants": { + "text": "Permissions boundaries limit but do not grant permissions \u2014 effective permissions are the intersection of identity-based policies and the permissions boundary.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-permission-boundaries.md", + "source_url": "", + "source_hash": "33afa4424bf72145", + "date": "2026-03-08", + "metadata": {} + }, + "iam-permissions-boundaries-set-ceiling": { + "text": "Permissions boundaries do not grant permissions on their own \u2014 they set a ceiling (maximum) on what identity-based policies can grant.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-best-practices.md", + "source_url": "", + "source_hash": "3d778456f3ac0ade", + "date": "2026-03-08", + "metadata": {} + }, + "iam-permissions-boundary-not-for-service-linked-roles": { + "text": "Permissions boundaries cannot be applied to service-linked roles.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-WorkingWithRoleshtml.md", + "source_url": "", + "source_hash": "c8af5169516c0dd7", + "date": "2026-03-12", + "metadata": {} + }, + "iam-policies-attach-to-groups-not-users": { + "text": "AWS best practice is to attach IAM policies to groups or roles, not directly to individual IAM users.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-security-audit-guidehtml.md", + "source_url": "", + "source_hash": "f3a3fbbc547c3afb", + "date": "2026-03-12", + "metadata": {} + }, + "iam-policy-evaluation-deny-order": { + "text": "IAM policy evaluation order: explicit deny overrides all > SCP/RCP/permissions boundary/session policy implicit deny > explicit allow in identity-based or resource-based policy > default deny (all requests start denied).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-intro-structurehtml.md", + "source_url": "", + "source_hash": "6e5f0d475349cf35", + "date": "2026-03-12", + "metadata": {} + }, + "iam-policy-generation-max-90-days-cloudtrail": { + "text": "IAM Access Analyzer policy generation analyzes up to 90 days of CloudTrail activity; generated policies are available for 7 days and only one can exist at a time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_generate-policyhtml.md", + "source_url": "", + "source_hash": "3c51b860f802c822", + "date": "2026-03-12", + "metadata": {} + }, + "iam-policy-generation-no-control-tower-trails": { + "text": "AWS Control Tower trails are not supported for IAM Access Analyzer policy generation because organization logs go to a separate Log Archive account with restricted S3 bucket permissions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_generate-policyhtml.md", + "source_url": "", + "source_hash": "3c51b860f802c822", + "date": "2026-03-12", + "metadata": {} + }, + "iam-policy-generation-service-role-required": { + "text": "IAM Access Analyzer policy generation requires a service role with trust to `access-analyzer.amazonaws.com` that has `cloudtrail:GetTrail`, `iam:GetServiceLastAccessedDetails`, `iam:GenerateServiceLastAccessedDetails`, and S3 read access to the trail bucket.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_generate-policyhtml.md", + "source_url": "", + "source_hash": "3c51b860f802c822", + "date": "2026-03-12", + "metadata": {} + }, + "iam-policy-size-limits-by-entity": { + "text": "IAM policy size limits vary by entity type: 2,048 characters for user inline policies up to 10,240 characters for managed policies; whitespace is excluded from the character count.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_grammarhtml.md", + "source_url": "", + "source_hash": "0443cb7f838eca11", + "date": "2026-03-12", + "metadata": {} + }, + "iam-policy-statements-evaluated-logical-or": { + "text": "Multiple statements within an IAM policy are evaluated with logical OR; multiple policies attached to the same principal are also OR'd together (any allow counts, unless an explicit deny exists).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policies.md", + "source_url": "", + "source_hash": "461949800f4e3d9e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-policy-version-must-be-2012-10-17": { + "text": "IAM policy documents should always use `\"Version\": \"2012-10-17\"` (the latest and current policy language version).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policies.md", + "source_url": "", + "source_hash": "461949800f4e3d9e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-principal-arn-condition-survives-delete-recreate": { + "text": "The `aws:PrincipalArn` condition key avoids the principal ID transformation problem \u2014 permissions persist through delete/recreate cycles of the referenced IAM entity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_principalhtml.md", + "source_url": "", + "source_hash": "6b474327217a2bc0", + "date": "2026-03-12", + "metadata": {} + }, + "iam-principal-arn-returns-role-not-session": { + "text": "The `aws:PrincipalArn` condition key returns the IAM role ARN, not the assumed-role session ARN \u2014 ARN operators (not string operators) should be used for comparisons.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_condition-keyshtml.md", + "source_url": "", + "source_hash": "e2027fc5516d6eee", + "date": "2026-03-12", + "metadata": {} + }, + "iam-principal-id-transformation-breaks-on-delete": { + "text": "When a role or user ARN is saved in a trust policy, IAM converts it to a unique principal ID; if the entity is deleted and recreated with the same name, the old principal ID becomes orphaned and the trust policy must be re-edited.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_principalhtml.md", + "source_url": "", + "source_hash": "6b474327217a2bc0", + "date": "2026-03-12", + "metadata": {} + }, + "iam-principal-is-aws-service-only-direct-calls": { + "text": "`aws:PrincipalIsAWSService` is `true` only when an AWS service principal (e.g., `cloudtrail.amazonaws.com`) makes a direct call \u2014 it is `false` when a service uses a service role or service-linked role.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_condition-keyshtml.md", + "source_url": "", + "source_hash": "e2027fc5516d6eee", + "date": "2026-03-12", + "metadata": {} + }, + "iam-principal-org-id-auto-includes-new-accounts": { + "text": "The `aws:PrincipalOrgID` condition key automatically includes new accounts added to the AWS Organization without requiring manual policy updates.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_condition-keyshtml.md", + "source_url": "", + "source_hash": "e2027fc5516d6eee", + "date": "2026-03-12", + "metadata": {} + }, + "iam-principal-wildcard-and-aws-wildcard-equivalent": { + "text": "`\"Principal\": \"*\"` and `\"Principal\": {\"AWS\": \"*\"}` are equivalent for granting anonymous/public access in resource-based policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_principalhtml.md", + "source_url": "", + "source_hash": "6b474327217a2bc0", + "date": "2026-03-12", + "metadata": {} + }, + "iam-request-evaluation-three-steps": { + "text": "AWS evaluates principal requests in three steps: (1) authentication, (2) request context processing, (3) policy evaluation against context \u2014 some services like S3 can skip authentication for anonymous requests.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policy-evaluation.md", + "source_url": "", + "source_hash": "49f98ce70499c3a4", + "date": "2026-03-08", + "metadata": {} + }, + "iam-resource-based-policies-always-inline": { + "text": "Resource-based policies are always inline (embedded in the resource) and never managed \u2014 unlike identity-based policies which can be AWS managed, customer managed, or inline.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_identity-vs-resourcehtml.md", + "source_url": "", + "source_hash": "b7562a1b27be5a4c", + "date": "2026-03-12", + "metadata": {} + }, + "iam-resource-based-policies-not-universal": { + "text": "Resource-based policies are only supported by select services (S3, Lambda, KMS, SNS, SQS, API Gateway, ECR, DynamoDB, Secrets Manager, CloudWatch Logs, etc.) \u2014 they are not universally available across all AWS services.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_aws-services-that-work-with-iamhtml.md", + "source_url": "", + "source_hash": "b5a7e473245678da", + "date": "2026-03-12", + "metadata": {} + }, + "iam-resource-level-permissions-vs-resource-based-policies": { + "text": "Resource-level permissions (using ARNs to specify individual resources in any policy) are a different concept from resource-based policies (policies attached to a resource) \u2014 a common exam confusion point.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_identity-vs-resourcehtml.md", + "source_url": "", + "source_hash": "b7562a1b27be5a4c", + "date": "2026-03-12", + "metadata": {} + }, + "iam-resource-policies-bypass-group-governance-and-permission-boundaries": { + "text": "Resource-based policies targeting individual user ARNs can bypass both permission boundaries and group-based access governance, since groups cannot be principals in resource policies.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "iam-resource-policy-user-arn-bypasses-boundary", + "iam-groups-not-principals", + "iam-groups-identity-based-policies-only" + ], + "outlist": [], + "label": "Organizations relying on groups + permission boundaries for least-privilege have a governance gap where resource policies can grant unconstrained access" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "unnecessary" + } + }, + "iam-resource-policy-user-arn-bypasses-boundary": { + "text": "Resource-based policies granting access to an IAM user ARN (same account) are not limited by implicit denies in permissions boundaries; grants to a role ARN are limited, but grants to a role session ARN are not.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-permission-boundaries.md", + "source_url": "", + "source_hash": "33afa4424bf72145", + "date": "2026-03-08", + "metadata": {} + }, + "iam-resource-tag-key-matching-case-insensitive": { + "text": "`aws:ResourceTag/tag-key` matching is case-insensitive on the tag key name \u2014 tags differing only by case (e.g., `TagKey1` vs `tagkey1`) match the same condition, which can cause unexpected policy behavior.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_conditionhtml.md", + "source_url": "", + "source_hash": "b74c3fb2baec84c2", + "date": "2026-03-12", + "metadata": {} + }, + "iam-role-chaining-caps-session-at-1-hour": { + "text": "Role chaining (assuming a second role from within an assumed role) limits the session to a maximum of 1 hour (3600 seconds), regardless of individual role max session duration settings.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-roles.md", + "source_url": "", + "source_hash": "0707454626f264ce", + "date": "2026-03-08", + "metadata": {} + }, + "iam-role-path-plus-name-64-char-console-limit": { + "text": "When using the AWS Console's \"Switch Role\" feature, the combined Path + RoleName must not exceed 64 characters, even though Path can be up to 512 chars and RoleName up to 64 chars when creating roles programmatically.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-roles-managingrole-editing-consolehtml.md", + "source_url": "", + "source_hash": "0014627f3417598c", + "date": "2026-03-12", + "metadata": {} + }, + "iam-role-provides-temporary-credentials-not-long-term": { + "text": "IAM roles provide temporary security credentials via STS \u2014 they do not have passwords or long-term access keys.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-roles.md", + "source_url": "", + "source_hash": "0707454626f264ce", + "date": "2026-03-08", + "metadata": {} + }, + "iam-role-trust-policy-no-wildcard-in-principal-arn": { + "text": "IAM role trust policies cannot use wildcard (*) as part of an ARN in the Principal element.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-roles.md", + "source_url": "", + "source_hash": "0707454626f264ce", + "date": "2026-03-08", + "metadata": {} + }, + "iam-role-trust-policy-only-iam-resource-policy": { + "text": "Role trust policies are the only resource-based policy type supported by IAM itself; all other resource-based policies are attached to non-IAM resources (S3 buckets, SQS queues, etc.).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policies.md", + "source_url": "", + "source_hash": "461949800f4e3d9e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-role-trust-policy-required": { + "text": "Every IAM role requires a trust policy \u2014 a resource-based JSON policy that defines which principals (users, roles, accounts, services) can assume it.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-roles.md", + "source_url": "", + "source_hash": "0707454626f264ce", + "date": "2026-03-08", + "metadata": {} + }, + "iam-roles-anywhere-x509-certificates": { + "text": "IAM Roles Anywhere enables external (non-AWS) workloads to obtain temporary AWS credentials using X.509 certificates from a PKI.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-best-practices.md", + "source_url": "", + "source_hash": "3d778456f3ac0ade", + "date": "2026-03-08", + "metadata": {} + }, + "iam-root-exclusive-tasks-list": { + "text": "The root user is the only identity that can: change account email/password/access keys (standalone), close standalone accounts, restore revoked IAM admin permissions, activate IAM billing console access, register as Reserved Instance Marketplace seller, configure S3 MFA Delete, and sign up for GovCloud.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-id_root-userhtml.md", + "source_url": "", + "source_hash": "af2b6be94a478b0a", + "date": "2026-03-12", + "metadata": {} + }, + "iam-root-mfa-enforced-all-account-types": { + "text": "MFA is enforced for root users across all AWS account types (standalone, management, and member accounts).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-mfa.md", + "source_url": "", + "source_hash": "5d501b8fb778eddd", + "date": "2026-03-08", + "metadata": {} + }, + "iam-root-mfa-lost-contact-aws-support": { + "text": "If all MFA devices for the root user are lost and no backup exists, the only recovery option is contacting AWS Support \u2014 there is no self-service recovery.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-enable-virt-mfa-for-roothtml.md", + "source_url": "", + "source_hash": "13c24de4feb19160", + "date": "2026-03-12", + "metadata": {} + }, + "iam-root-mfa-only-configurable-as-root": { + "text": "Root user MFA can only be configured while signed in as the root user \u2014 no other principal can configure it.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-enable-virt-mfa-for-roothtml.md", + "source_url": "", + "source_hash": "13c24de4feb19160", + "date": "2026-03-12", + "metadata": {} + }, + "iam-root-mfa-requires-customer-action": { + "text": "MFA is enforced for root users by default, but requires customer action to actually configure/add the MFA device during account creation or at the sign-in prompt.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-id_root-userhtml.md", + "source_url": "", + "source_hash": "af2b6be94a478b0a", + "date": "2026-03-12", + "metadata": {} + }, + "iam-root-no-identity-policies-or-boundaries": { + "text": "The root user cannot have identity-based policies or permissions boundaries attached, but is affected by SCPs, RCPs, resource-based policies, and ACLs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policies.md", + "source_url": "", + "source_hash": "461949800f4e3d9e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-root-restricted-only-by-scps": { + "text": "The root user cannot be restricted by IAM policies or permissions boundaries \u2014 only AWS Organizations SCPs can limit root user permissions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-security-credshtml.md", + "source_url": "", + "source_hash": "97705315a4030d34", + "date": "2026-03-12", + "metadata": {} + }, + "iam-root-user-cannot-assume-roles": { + "text": "The root user cannot assume IAM roles via the console Switch Role feature.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-cross-account.md", + "source_url": "", + "source_hash": "e48a1ca4eb9cc426", + "date": "2026-03-08", + "metadata": {} + }, + "iam-root-user-not-entity-not-identity": { + "text": "The root user is a principal but is neither an IAM entity nor an IAM identity \u2014 it cannot be restricted by identity-based or resource-based IAM policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-introduction_identity-managementhtml.md", + "source_url": "", + "source_hash": "df206186a66b46c3", + "date": "2026-03-12", + "metadata": {} + }, + "iam-same-account-identity-resource-union": { + "text": "Within the same account, identity-based and resource-based policy permissions are combined as a union \u2014 if either allows, the action is allowed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policy-evaluation.md", + "source_url": "", + "source_hash": "49f98ce70499c3a4", + "date": "2026-03-08", + "metadata": {} + }, + "iam-scp-rcp-identity-intersection": { + "text": "When SCPs, RCPs, and identity-based policies all apply, effective permissions are the intersection of all three \u2014 the action must be allowed by all policy types.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policy-evaluation.md", + "source_url": "", + "source_hash": "49f98ce70499c3a4", + "date": "2026-03-08", + "metadata": {} + }, + "iam-scps-rcps-restrict-only-no-grant": { + "text": "SCPs (Service Control Policies) and RCPs (Resource Control Policies) do not grant permissions \u2014 they only restrict; identity-based or resource-based policies are still required to grant access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-best-practices.md", + "source_url": "", + "source_hash": "3d778456f3ac0ade", + "date": "2026-03-08", + "metadata": {} + }, + "iam-service-linked-role-can-exceed-account-limit": { + "text": "Service-linked roles count toward the IAM roles-per-account quota but are the only role type that can exceed the limit.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-service-linked-roles.md", + "source_url": "", + "source_hash": "7dfb1462f36ff821", + "date": "2026-03-08", + "metadata": {} + }, + "iam-service-linked-role-delete-requires-resource-cleanup": { + "text": "Dependent resources must be deleted before a service-linked role can be deleted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-service-linked-roles.md", + "source_url": "", + "source_hash": "7dfb1462f36ff821", + "date": "2026-03-08", + "metadata": {} + }, + "iam-service-linked-role-indirect-permissions": { + "text": "Users who invoke a service that uses a service-linked role gain indirect access to all other services that role can call (e.g., creating an RDS instance indirectly grants access to EC2, SNS, CloudWatch Logs, Kinesis).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-service-linked-roles.md", + "source_url": "", + "source_hash": "7dfb1462f36ff821", + "date": "2026-03-08", + "metadata": {} + }, + "iam-service-linked-role-name-immutable": { + "text": "Service-linked role names cannot be changed after creation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-service-linked-roles.md", + "source_url": "", + "source_hash": "7dfb1462f36ff821", + "date": "2026-03-08", + "metadata": {} + }, + "iam-service-linked-role-no-tags-at-creation": { + "text": "Tags cannot be attached to service-linked roles during creation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-service-linked-roles.md", + "source_url": "", + "source_hash": "7dfb1462f36ff821", + "date": "2026-03-08", + "metadata": {} + }, + "iam-service-linked-role-permissions-not-editable": { + "text": "Service-linked role permissions are defined by the owning AWS service and cannot be edited by IAM administrators.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-service-linked-roles.md", + "source_url": "", + "source_hash": "7dfb1462f36ff821", + "date": "2026-03-08", + "metadata": {} + }, + "iam-service-linked-roles-excluded-unused-analysis": { + "text": "Service-linked roles are excluded from IAM Access Analyzer unused access analysis.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-what-is-access-analyzerhtml.md", + "source_url": "", + "source_hash": "c8fbc0fcae81736b", + "date": "2026-03-12", + "metadata": {} + }, + "iam-service-principal-format": { + "text": "AWS service principals follow the format `service-name.amazonaws.com`; opt-in region cross-region requests use regionalized format `service-name.{region}.amazonaws.com`, but role trust policies should use the non-regionalized form since IAM resources are global.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_principalhtml.md", + "source_url": "", + "source_hash": "6b474327217a2bc0", + "date": "2026-03-12", + "metadata": {} + }, + "iam-service-role-vs-service-linked-role": { + "text": "A service role is an IAM role assumed by an AWS service that IAM admins can create/modify/delete; a service-linked role is a special service role owned by the AWS service where permissions cannot be edited by IAM admins.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-id_roleshtml.md", + "source_url": "", + "source_hash": "900bc48daca14133", + "date": "2026-03-12", + "metadata": {} + }, + "iam-session-policy-intersection": { + "text": "Session policies (passed during AssumeRole or GetFederationToken) restrict permissions via intersection \u2014 effective permissions = identity-based policy \u2229 permissions boundary \u2229 session policy.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policies.md", + "source_url": "", + "source_hash": "461949800f4e3d9e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-session-policy-resource-based-arn-distinction": { + "text": "Resource-based policies referencing a session ARN bypass session policy limits and permissions boundary restrictions, while those referencing the entity (role/user) ARN do not bypass these limits.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policieshtml.md", + "source_url": "", + "source_hash": "6bf76088c297db12", + "date": "2026-03-12", + "metadata": {} + }, + "iam-session-tags-transitive-propagation": { + "text": "When assuming an IAM role, session tags can be passed via `--tags` and `TransitiveTagKeys` can be set to propagate specific tags through role chains.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-WorkingWithRoleshtml.md", + "source_url": "", + "source_hash": "c8af5169516c0dd7", + "date": "2026-03-12", + "metadata": {} + }, + "iam-seven-policy-types": { + "text": "AWS IAM supports seven policy types: identity-based, resource-based, permissions boundaries, SCPs, RCPs, ACLs, and session policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policies.md", + "source_url": "", + "source_hash": "461949800f4e3d9e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-sid-alphanumeric-only": { + "text": "The `Sid` element in IAM policies only allows alphanumeric characters (`A-Z`, `a-z`, `0-9`); other AWS services may allow different character sets in their policy Sid fields.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_grammarhtml.md", + "source_url": "", + "source_hash": "0443cb7f838eca11", + "date": "2026-03-12", + "metadata": {} + }, + "iam-single-security-key-multiple-users": { + "text": "A single FIDO security key can support multiple root and IAM users.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-mfa.md", + "source_url": "", + "source_hash": "5d501b8fb778eddd", + "date": "2026-03-08", + "metadata": {} + }, + "iam-sms-mfa-discontinued": { + "text": "SMS-based MFA has been discontinued in AWS \u2014 users must use passkeys, virtual MFA, or hardware TOTP tokens.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-mfa.md", + "source_url": "", + "source_hash": "5d501b8fb778eddd", + "date": "2026-03-08", + "metadata": {} + }, + "iam-source-ip-not-through-vpc-endpoints": { + "text": "The `aws:SourceIp` condition key does not work when requests are made through VPC endpoints or when a service calls another service on your behalf.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_elements_condition_operatorshtml.md", + "source_url": "", + "source_hash": "20a5bedb43801c9a", + "date": "2026-03-12", + "metadata": {} + }, + "iam-standalone-policy-has-own-arn": { + "text": "A standalone policy (both AWS managed and customer managed) has its own ARN independent of any IAM identity, unlike inline policies which are embedded in an identity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policy-types.md", + "source_url": "", + "source_hash": "c2852b3fbf357f8e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-synced-passkeys-credential-managers": { + "text": "Synced passkeys can be stored in credential managers (Google, Apple, 1Password, Dashlane, Bitwarden) and support biometric unlock and cross-device authentication (CDA).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-mfa.md", + "source_url": "", + "source_hash": "5d501b8fb778eddd", + "date": "2026-03-08", + "metadata": {} + }, + "iam-temporary-credentials-minutes-to-hours": { + "text": "Temporary security credentials (from STS/roles) can last from a few minutes to several hours, are generated dynamically, and cannot be reused after expiration.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-security-credshtml.md", + "source_url": "", + "source_hash": "97705315a4030d34", + "date": "2026-03-12", + "metadata": {} + }, + "iam-three-identity-based-policy-types": { + "text": "AWS IAM has three types of identity-based policies: AWS managed policies, customer managed policies, and inline policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-policy-types.md", + "source_url": "", + "source_hash": "c2852b3fbf357f8e", + "date": "2026-03-08", + "metadata": {} + }, + "iam-transitive-session-tags-propagate-through-chain": { + "text": "Transitive session tags propagate through all subsequent sessions in a role chain.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-roles.md", + "source_url": "", + "source_hash": "0707454626f264ce", + "date": "2026-03-08", + "metadata": {} + }, + "iam-unassigned-virtual-mfa-auto-deleted": { + "text": "Unassigned virtual MFA devices are automatically deleted when adding new virtual MFA devices.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-mfa.md", + "source_url": "", + "source_hash": "5d501b8fb778eddd", + "date": "2026-03-08", + "metadata": {} + }, + "iam-user-arn-format": { + "text": "IAM user ARN format is `arn:aws:iam::account-ID-without-hyphens:user/UserName`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-users.md", + "source_url": "", + "source_hash": "ed2c44ed4fdf607d", + "date": "2026-03-08", + "metadata": {} + }, + "iam-user-belongs-to-exactly-one-account": { + "text": "Each IAM user is associated with one and only one AWS account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-users.md", + "source_url": "", + "source_hash": "ed2c44ed4fdf607d", + "date": "2026-03-08", + "metadata": {} + }, + "iam-user-cli-api-no-credentials-by-default": { + "text": "IAM users created via CLI or API have no credentials by default; credentials must be explicitly created.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-users.md", + "source_url": "", + "source_hash": "ed2c44ed4fdf607d", + "date": "2026-03-08", + "metadata": {} + }, + "iam-user-four-credential-types": { + "text": "IAM users support four credential types: console password, access keys (CLI/SDK/API), SSH keys (for CodeCommit), and server certificates (SSL/TLS \u2014 use ACM instead unless region doesn't support it).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-users.md", + "source_url": "", + "source_hash": "ed2c44ed4fdf607d", + "date": "2026-03-08", + "metadata": {} + }, + "iam-user-multiple-groups": { + "text": "An IAM user can belong to multiple user groups simultaneously.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-groups.md", + "source_url": "", + "source_hash": "d484218a9298ead3", + "date": "2026-03-08", + "metadata": {} + }, + "iam-user-three-identifiers": { + "text": "Each IAM user has three identifiers: a friendly name (human-readable, appears in ARNs), an ARN (globally unique), and a unique ID (returned only via API/CLI/PowerShell, not visible in console).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-id_usershtml.md", + "source_url": "", + "source_hash": "f69fb530a2644675", + "date": "2026-03-12", + "metadata": {} + }, + "iam-username-key-only-iam-users": { + "text": "The `aws:username` condition key is only available for IAM users \u2014 it is not available for the root user, IAM roles, anonymous requests, or IAM Identity Center credentials.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_policies_condition-keyshtml.md", + "source_url": "", + "source_hash": "e2027fc5516d6eee", + "date": "2026-03-12", + "metadata": {} + }, + "iam-users-only-for-edge-cases": { + "text": "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.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-roles.md", + "source_url": "", + "source_hash": "0707454626f264ce", + "date": "2026-03-08", + "metadata": {} + }, + "iam-virtual-mfa-totp-rfc6238": { + "text": "Virtual MFA authenticator applications generate software-based TOTP codes per RFC 6238; each token must be unique per user but a single device can hold multiple tokens.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-mfa.md", + "source_url": "", + "source_hash": "5d501b8fb778eddd", + "date": "2026-03-08", + "metadata": {} + }, + "igw-enforces-1500-mtu-limit": { + "text": "The internet gateway enforces a 1500-byte MTU limit \u2014 jumbo frames do not work for internet-bound traffic.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-network_mtuhtml.md", + "source_url": "", + "source_hash": "2a5ba8fb82b39ee9", + "date": "2026-03-12", + "metadata": {} + }, + "igw-horizontally-scaled-no-bottleneck": { + "text": "An internet gateway is horizontally scaled, redundant, and highly available \u2014 it is not a bandwidth bottleneck or single point of failure.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-internet-gateway.md", + "source_url": "", + "source_hash": "28ebaa8888ed923b", + "date": "2026-03-08", + "metadata": {} + }, + "igw-instance-needs-public-ip-or-eip-for-internet": { + "text": "Instances in a public subnet need a public IPv4 address or Elastic IP to communicate over the internet via the internet gateway.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-internet-gateway.md", + "source_url": "", + "source_hash": "28ebaa8888ed923b", + "date": "2026-03-08", + "metadata": {} + }, + "igw-no-additional-charge": { + "text": "There is no charge for the internet gateway itself; only standard EC2 data transfer charges apply.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-internet-gateway.md", + "source_url": "", + "source_hash": "28ebaa8888ed923b", + "date": "2026-03-08", + "metadata": {} + }, + "igw-performs-one-to-one-nat-ipv4-only": { + "text": "The internet gateway performs one-to-one NAT for IPv4 (translating between private and public/Elastic IP); IPv6 does not require NAT.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-internet-gateway.md", + "source_url": "", + "source_hash": "28ebaa8888ed923b", + "date": "2026-03-08", + "metadata": {} + }, + "instance-public-ip-private-subnet-no-internet": { + "text": "An instance with a public IP in a private subnet (no IGW route) cannot reach the internet.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-internet-gateway.md", + "source_url": "", + "source_hash": "28ebaa8888ed923b", + "date": "2026-03-08", + "metadata": {} + }, + "ipv6-no-fragmentation-relies-on-pmtud": { + "text": "IPv6 does not support packet fragmentation in the network; it relies entirely on Path MTU Discovery (PMTUD), and oversized packets are dropped with ICMPv6 Packet Too Big.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-network_mtuhtml.md", + "source_url": "", + "source_hash": "2a5ba8fb82b39ee9", + "date": "2026-03-12", + "metadata": {} + }, + "ipv6-only-subnets-get-link-local-ipv4": { + "text": "IPv6-only subnets still receive link-local IPv4 addresses from 169.254.0.0/16 for VPC-internal service communication.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-subnets.md", + "source_url": "", + "source_hash": "d4faa1e970199eeb", + "date": "2026-03-08", + "metadata": {} + }, + "irrevocable-decisions-span-both-data-and-observability-tiers": { + "text": "Creation-time immutable decisions affect not only the data tier (DynamoDB consistency mode, LSIs, encryption) but also the observability tier (CloudTrail Lake KMS keys, pricing tier) \u2014 a wrong initial configuration can simultaneously lock in suboptimal performance AND inability to audit it.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "creation-time-immutability-has-permanent-cost-and-dr-implications", + "cloudtrail-lake-operational-readiness-requires-upfront-planning" + ], + "outlist": [], + "label": "irrevocable decisions in both data and observability tiers means a single bad launch can permanently compromise both operations and auditing" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "kafka-partitions-fixed-at-creation-sqs-groups-dynamic": { + "text": "Kafka partition count is fixed at topic creation, whereas SQS FIFO message groups are dynamic and created on the fly \u2014 making dynamic parallel ordering harder to replicate with Kafka.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-feature-parity-cross-reference.md", + "source_url": "", + "source_hash": "103bd464d6d698a8", + "date": "2026-03-12", + "metadata": {} + }, + "kcl-1x-eol-january-30-2026": { + "text": "KCL version 1.x reaches end-of-support on January 30, 2026; the current recommendation is KCL 3.x with AWS SDK for Java v2.x.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsKCLAdapterhtml.md", + "source_url": "", + "source_hash": "440cfed23e9849be", + "date": "2026-03-12", + "metadata": {} + }, + "kcl-catchup-mode-default-disabled-1min-lag-3x": { + "text": "KCL catch-up mode is disabled by default (`catchupEnabled=false`); when enabled, it scales GetRecords call rate by 3x when processing lag exceeds 1 minute.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsKCLAdapterhtml.md", + "source_url": "", + "source_hash": "440cfed23e9849be", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-basic-execution-role-three-log-actions": { + "text": "AWSLambdaBasicExecutionRole grants exactly three CloudWatch Logs actions: `logs:CreateLogGroup`, `logs:CreateLogStream`, and `logs:PutLogEvents` with `Resource: \"*\"`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSLambdaBasicExecutionRolehtml.md", + "source_url": "", + "source_hash": "9f20d5799f832171", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-container-reuse-not-guaranteed": { + "text": "AWS Lambda may reuse execution containers across invocations, but this is not guaranteed and not controllable by the developer.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaBestPracticesWithDynamoDBhtml.md", + "source_url": "", + "source_hash": "90668e33fbe14605", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-db-connection-outside-handler-for-reuse": { + "text": "Lambda database connections should be initialized outside the handler function (in initialization code) so the connection persists across invocations via execution context reuse.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-rds-lambda-tutorialhtml.md", + "source_url": "", + "source_hash": "44dc63efde7d0bc5", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-env-var-key-must-start-with-letter": { + "text": "Lambda environment variable keys must match the pattern `[a-zA-Z][a-zA-Z0-9_]+` \u2014 they must start with a letter followed by alphanumeric characters or underscores.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-properties-lambda-function-environmenthtm.md", + "source_url": "", + "source_hash": "f194cc5cc025c1c2", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-env-vars-version-specific": { + "text": "Lambda environment variables are version-specific \u2014 each published function version captures its own set of environment variable values.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-properties-lambda-function-environmenthtm.md", + "source_url": "", + "source_hash": "f194cc5cc025c1c2", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-event-filter-max-5-per-mapping": { + "text": "A maximum of 5 filter patterns can be configured per Lambda event source mapping; multiple filters are evaluated as logical OR, and conditions within a single filter are evaluated as logical AND.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaTutorial2html.md", + "source_url": "", + "source_hash": "c34f9437fb98e60c", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-event-source-mapping-batch-size-range": { + "text": "The `--batch-size` parameter for Lambda event source mappings controls how many records Lambda receives per invocation, with a range of 1\u201310,000 and a default of 100.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaTutorialhtml.md", + "source_url": "", + "source_hash": "cb7be162d27e92cb", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-event-source-mapping-max-5-filters": { + "text": "Lambda event source mappings support up to 5 filters to control which records invoke the function.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-time-to-live-ttl-streamshtml.md", + "source_url": "", + "source_hash": "2310a25924d8dfc7", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-init-code-runs-once-per-container": { + "text": "Lambda initialization code (outside the handler) runs once after container creation but before the first handler invocation; the handler runs once per invocation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdaBestPracticesWithDynamoDBhtml.md", + "source_url": "", + "source_hash": "90668e33fbe14605", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-insights-deployed-as-extension-layer": { + "text": "Lambda Insights must be explicitly installed as a Lambda extension layer on each function to collect metrics.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-monitoring-Lambda-Insights-metricshtml.md", + "source_url": "", + "source_hash": "a3122e7a2896371c", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-insights-emf-logs-not-all-in-metrics": { + "text": "Not all Lambda Insights metrics appear in CloudWatch Metrics \u2014 some non-aggregated metrics are only available as embedded metric format (EMF) log entries queryable via CloudWatch Logs Insights.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonCloudWatch-latest-monitoring-Lambda-Insights-metricshtml.md", + "source_url": "", + "source_hash": "a3122e7a2896371c", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-no-logs-without-basic-execution-role": { + "text": "Without AWSLambdaBasicExecutionRole or equivalent permissions, Lambda invocations succeed but produce no CloudWatch logs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSLambdaBasicExecutionRolehtml.md", + "source_url": "", + "source_hash": "9f20d5799f832171", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-polls-dynamodb-streams-4-per-second": { + "text": "Lambda polls DynamoDB Streams 4 times per second for new records; invocation is synchronous.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdahtml.md", + "source_url": "", + "source_hash": "1c62ebec05f590b1", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-rds-eni-misconfiguration-cascades-across-vpc-services": { + "text": "Lambda-RDS integration forces Lambda into a VPC where its ENIs become shared network primitives, meaning a security group misconfiguration in the Lambda-RDS path cascades beyond that pair to affect PrivateLink endpoints, instance failover, and any other VPC-integrated service sharing the same ENI security posture.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "eni-security-posture-cascades-across-vpc-integrated-services", + "serverless-relational-integration-inherits-full-vpc-security-complexity" + ], + "outlist": [], + "label": "Lambda's forced VPC presence for RDS creates cross-service blast radius via shared ENI security primitives" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "lambda-rds-integration-requires-vpc-colocation-and-proxy": { + "text": "Lambda accessing RDS requires VPC configuration with appropriate subnets and security groups, and RDS Proxy is recommended to manage connection pooling and prevent connection exhaustion from Lambda's concurrent execution model.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "lambda-rds-same-vpc-required", + "rds-proxy-recommended-for-lambda-connection-pooling" + ], + "outlist": [], + "label": "same-VPC required for connectivity + proxy required for connection management = two independent constraints for a common integration pattern" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "lambda-rds-same-vpc-required": { + "text": "Lambda functions accessing an RDS database must be deployed in the same VPC as the RDS instance.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-rds-lambda-tutorialhtml.md", + "source_url": "", + "source_hash": "44dc63efde7d0bc5", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-sqs-execution-role-two-managed-policies": { + "text": "Lambda functions triggered by SQS in a VPC require two managed policies: `AWSLambdaSQSQueueExecutionRole` (poll SQS) and `AWSLambdaVPCAccessExecutionRole` (manage VPC ENIs).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-rds-lambda-tutorialhtml.md", + "source_url": "", + "source_hash": "44dc63efde7d0bc5", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-stream-error-retries-entire-batch": { + "text": "On error, Lambda retries the entire batch from a DynamoDB stream until success or data expiration; configurable options include smaller batch size, retry limits, and discarding old records.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-StreamsLambdahtml.md", + "source_url": "", + "source_hash": "1c62ebec05f590b1", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-vpc-access-role-nine-actions": { + "text": "AWSLambdaVPCAccessExecutionRole grants nine actions: three `logs:` actions (same as basic) plus six `ec2:` actions (CreateNetworkInterface, DeleteNetworkInterface, DescribeNetworkInterfaces, DescribeSubnets, AssignPrivateIpAddresses, UnassignPrivateIpAddresses).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSLambdaVPCAccessExecutionRolehtml.md", + "source_url": "", + "source_hash": "c3ee30250e12ac8a", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-vpc-creates-eni-per-combination": { + "text": "When a Lambda function is VPC-connected, Lambda creates an elastic network interface (ENI) for every combination of security group and subnet specified in the VpcConfig.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-properties-lambda-function-vpcconfightml.md", + "source_url": "", + "source_hash": "96bf1d03e390e0cd", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-vpc-execution-role-needs-eni-permissions": { + "text": "A VPC-connected Lambda function's execution role needs the `AWSLambdaVPCAccessExecutionRole` managed policy (or equivalent `ec2:CreateNetworkInterface`, `ec2:DescribeNetworkInterfaces`, `ec2:DeleteNetworkInterface` permissions).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-properties-lambda-function-vpcconfightml.md", + "source_url": "", + "source_hash": "96bf1d03e390e0cd", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-vpc-function-fails-without-eni-permissions": { + "text": "A Lambda function configured with VPC access requires ENI permissions \u2014 without them, the function cannot start and will fail with an error.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSLambdaVPCAccessExecutionRolehtml.md", + "source_url": "", + "source_hash": "c3ee30250e12ac8a", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-vpc-max-5-sg-16-subnets": { + "text": "A VPC-connected Lambda function supports a maximum of 5 security groups and 16 subnets in its VpcConfig.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-properties-lambda-function-vpcconfightml.md", + "source_url": "", + "source_hash": "96bf1d03e390e0cd", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-vpc-role-superset-of-basic-role": { + "text": "AWSLambdaVPCAccessExecutionRole is a superset of AWSLambdaBasicExecutionRole \u2014 it includes the same three `logs:` actions plus six `ec2:` actions for VPC networking.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/aws-managed-policy-latest-reference-AWSLambdaVPCAccessExecutionRolehtml.md", + "source_url": "", + "source_hash": "c3ee30250e12ac8a", + "date": "2026-03-12", + "metadata": {} + }, + "lambda-vpc-secrets-manager-requires-vpc-endpoint": { + "text": "Accessing AWS Secrets Manager from a Lambda function deployed in a VPC requires a VPC endpoint for Secrets Manager.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-rds-lambda-tutorialhtml.md", + "source_url": "", + "source_hash": "44dc63efde7d0bc5", + "date": "2026-03-12", + "metadata": {} + }, + "lifecycle-transitions-silently-degrade-dr-posture": { + "text": "Both routine feature toggling and disaster recovery restores lose configuration state (PITR windows reset, auto-scaling not inherited, backup state requirements), meaning the act of recovering from a disaster can silently disable the protections needed for the NEXT disaster.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "aws-feature-toggle-resets-associated-state", + "pitr-recovery-does-not-preserve-pitr-configuration" + ], + "outlist": [], + "label": "State loss on toggle and state loss on restore combine to create recursive DR vulnerability" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "multi-az-deployment-fault-tolerance": { + "text": "Launching resources across multiple Availability Zones provides fault tolerance against single-AZ failure.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-subnets.md", + "source_url": "", + "source_hash": "d4faa1e970199eeb", + "date": "2026-03-08", + "metadata": {} + }, + "multi-region-dynamodb-achieves-five-nines-with-correct-initial-config": { + "text": "DynamoDB global tables achieve 99.999% availability with multi-active replication when creation-time configuration errors that propagate permanently across all tiers and regions have been systematically prevented.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-global-table-99999-availability-sla", + "dynamodb-global-tables-multi-active-replication" + ], + "outlist": [ + "creation-time-errors-propagate-permanently-across-all-tiers-and-regions" + ], + "label": "The five-nines SLA and multi-active replication are real capabilities, but only deliver their value when the immutable creation-time decisions (consistency mode, LSIs, KMS keys) are correct \u2014 currently OUT because creation-time errors remain a live concern" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "nacl-cannot-filter-dns-dhcp-imds": { + "text": "NACLs cannot filter DNS traffic to Route 53 Resolver, DHCP, instance metadata (IMDS), ECS task metadata, Windows license activation, Time Sync Service, or default VPC router reserved IPs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-nacls.md", + "source_url": "", + "source_hash": "6a6db42f7d86dc86", + "date": "2026-03-08", + "metadata": {} + }, + "nacl-no-additional-charge": { + "text": "Network ACLs are free to use with no additional charge.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-nacls.md", + "source_url": "", + "source_hash": "6a6db42f7d86dc86", + "date": "2026-03-08", + "metadata": {} + }, + "nacl-one-per-subnet-many-subnets-per-nacl": { + "text": "Each subnet can have exactly one NACL at a time, but a single NACL can be associated with multiple subnets.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-nacls.md", + "source_url": "", + "source_hash": "6a6db42f7d86dc86", + "date": "2026-03-08", + "metadata": {} + }, + "nacl-rules-evaluated-lowest-number-first": { + "text": "NACL rules are evaluated in order from lowest number first (1\u201332766); the first matching rule is applied and remaining rules are skipped.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-nacls.md", + "source_url": "", + "source_hash": "6a6db42f7d86dc86", + "date": "2026-03-08", + "metadata": {} + }, + "nacl-stateless-subnet-level-filtering": { + "text": "Network ACLs are stateless \u2014 return traffic must be explicitly allowed by rules, unlike stateful security groups.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-nacls.md", + "source_url": "", + "source_hash": "6a6db42f7d86dc86", + "date": "2026-03-08", + "metadata": {} + }, + "nacl-supports-allow-and-deny-rules": { + "text": "NACLs support both ALLOW and DENY rules, unlike security groups which only support allow rules.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-nacls.md", + "source_url": "", + "source_hash": "6a6db42f7d86dc86", + "date": "2026-03-08", + "metadata": {} + }, + "nat-gateway-connections-initiated-from-inside-only": { + "text": "NAT gateways only allow connections initiated from inside the VPC \u2014 unsolicited inbound connections are blocked.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-nat-gateway.md", + "source_url": "", + "source_hash": "0561f5f1eb06f3fc", + "date": "2026-03-08", + "metadata": {} + }, + "nat-gateway-dns64-nat64-ipv6-to-ipv4": { + "text": "NAT gateways support DNS64/NAT64, enabling IPv6-only instances to communicate with IPv4 services through the NAT gateway.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-nat-gateway.md", + "source_url": "", + "source_hash": "0561f5f1eb06f3fc", + "date": "2026-03-08", + "metadata": {} + }, + "nat-gateway-managed-service-aws-scales": { + "text": "NAT gateways are fully managed by AWS \u2014 AWS handles availability, scaling, and maintenance (in contrast to self-managed NAT instances).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-nat-gateway.md", + "source_url": "", + "source_hash": "0561f5f1eb06f3fc", + "date": "2026-03-08", + "metadata": {} + }, + "nat-gateway-no-security-groups": { + "text": "NAT gateways do not have security groups, unlike self-managed NAT instances.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-nat-gateway.md", + "source_url": "", + "source_hash": "0561f5f1eb06f3fc", + "date": "2026-03-08", + "metadata": {} + }, + "nat-gateway-private-no-eip-no-igw": { + "text": "A private NAT gateway cannot have an Elastic IP, and traffic from it to an internet gateway is dropped.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-nat-gateway.md", + "source_url": "", + "source_hash": "0561f5f1eb06f3fc", + "date": "2026-03-08", + "metadata": {} + }, + "nat-gateway-public-and-private-both-route-to-tgw-vgw": { + "text": "Both public and private NAT gateways can route traffic to transit gateways and virtual private gateways for VPC-to-VPC or VPC-to-on-premises connectivity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-nat-gateway.md", + "source_url": "", + "source_hash": "0561f5f1eb06f3fc", + "date": "2026-03-08", + "metadata": {} + }, + "nat-gateway-public-eip-source-only-via-igw": { + "text": "A public NAT gateway uses its Elastic IP as source address only when routing through the internet gateway in the same VPC; when routing to transit gateway or virtual private gateway, the source is the NAT gateway's private IP.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-nat-gateway.md", + "source_url": "", + "source_hash": "0561f5f1eb06f3fc", + "date": "2026-03-08", + "metadata": {} + }, + "nat-gateway-public-requires-public-subnet-and-eip": { + "text": "A public NAT gateway must be placed in a public subnet and must have an Elastic IP address.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-nat-gateway.md", + "source_url": "", + "source_hash": "0561f5f1eb06f3fc", + "date": "2026-03-08", + "metadata": {} + }, + "nondefault-vpc-no-igw-or-internet-routes": { + "text": "Nondefault VPCs have neither an internet gateway nor internet routes by default; these must be created and configured manually.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-internet-gateway.md", + "source_url": "", + "source_hash": "28ebaa8888ed923b", + "date": "2026-03-08", + "metadata": {} + }, + "nosql-workbench-bundles-dynamodb-local": { + "text": "NoSQL Workbench includes DynamoDB Local bundled with the installation \u2014 no separate download is needed for local offline development and testing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchsettinguphtml.md", + "source_url": "", + "source_hash": "caaf021c063d371c", + "date": "2026-03-12", + "metadata": {} + }, + "nosql-workbench-cloudformation-import-export": { + "text": "NoSQL Workbench can import and export DynamoDB data models as CloudFormation JSON templates (since v3.0.0).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-WorkbenchDocumentHistoryhtml.md", + "source_url": "", + "source_hash": "07b87f65f3d4d0b7", + "date": "2026-03-12", + "metadata": {} + }, + "nosql-workbench-commit-model-to-dynamodb": { + "text": "NoSQL Workbench data models can be committed directly to a live DynamoDB instance from the workbench.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchModelerhtml.md", + "source_url": "", + "source_hash": "58fe4b4939150356", + "date": "2026-03-12", + "metadata": {} + }, + "nosql-workbench-cross-platform-gui": { + "text": "NoSQL Workbench for DynamoDB is a cross-platform client-side GUI application available for Windows, macOS (Intel and Apple Silicon), and Linux \u2014 it is not an AWS managed service and consumes no cloud resources during modeling.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchhtml.md", + "source_url": "", + "source_hash": "6408502a582433b0", + "date": "2026-03-12", + "metadata": {} + }, + "nosql-workbench-default-capacity-on-demand": { + "text": "As of NoSQL Workbench v3.13.5, the default table capacity mode for new tables changed from provisioned to on-demand.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-WorkbenchDocumentHistoryhtml.md", + "source_url": "", + "source_hash": "07b87f65f3d4d0b7", + "date": "2026-03-12", + "metadata": {} + }, + "nosql-workbench-facets-single-table-design": { + "text": "NoSQL Workbench facets help visualize single-table designs where multiple entity types share a DynamoDB table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchModelerhtml.md", + "source_url": "", + "source_hash": "58fe4b4939150356", + "date": "2026-03-12", + "metadata": {} + }, + "nosql-workbench-operation-builder-50-saved-ops": { + "text": "The NoSQL Workbench operation builder supports a maximum of 50 saved data operations per instance.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchquerybuilderhtml.md", + "source_url": "", + "source_hash": "eea2224485a445ba", + "date": "2026-03-12", + "metadata": {} + }, + "nosql-workbench-platforms-windows-macos-linux": { + "text": "NoSQL Workbench is available on Windows, macOS (including Apple silicon), and Linux.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-WorkbenchDocumentHistoryhtml.md", + "source_url": "", + "source_hash": "07b87f65f3d4d0b7", + "date": "2026-03-12", + "metadata": {} + }, + "nosql-workbench-single-table-design-samples": { + "text": "NoSQL Workbench ships with six sample data models demonstrating DynamoDB patterns including single-table design (Music Library, Ski Resort, Credit Card Offers), one-to-many (Employee), and many-to-many (Bookmarks) relationships.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchSampleModelshtml.md", + "source_url": "", + "source_hash": "2584c372aeb1871e", + "date": "2026-03-12", + "metadata": {} + }, + "nosql-workbench-table-cloning-cross-account-region": { + "text": "NoSQL Workbench can clone DynamoDB tables (key schema, optionally GSI schema and items) across AWS accounts, across regions, and between DynamoDB Local and cloud environments.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-workbenchquerybuilderhtml.md", + "source_url": "", + "source_hash": "eea2224485a445ba", + "date": "2026-03-12", + "metadata": {} + }, + "nosql-workbench-three-components": { + "text": "NoSQL Workbench for DynamoDB has three core components: Data Modeler, Visualizer, and Operation Builder.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazondynamodb-latest-developerguide-WorkbenchDocumentHistoryhtml.md", + "source_url": "", + "source_hash": "07b87f65f3d4d0b7", + "date": "2026-03-12", + "metadata": {} + }, + "observability-investment-faces-cold-start-barrier-and-hard-ceiling": { + "text": "CloudTrail observability investment is bounded by both a cold-start barrier (Lake requires irrevocable KMS decisions, Insights needs up to 7 days for first delivery) and a hard ceiling (automated operations remain permanently invisible even at maximum spend), yielding an investment profile of high upfront cost, delayed value realization, and inherently incomplete coverage.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-advanced-observability-cannot-be-activated-reactively", + "full-observability-has-hard-ceiling-despite-investment" + ], + "outlist": [], + "label": "cannot activate reactively (cold-start barrier) + hard ceiling despite investment = worst-case ROI curve for security tooling" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "organizational-security-governance-doubly-unachievable": { + "text": "Organizational security governance is doubly broken \u2014 CloudTrail delegation gaps prevent complete governance handoff to delegated administrators AND the security posture being governed (multiplicative network and identity attack surfaces) is itself unverifiable due to observability ceilings \u2014 delegated administrators cannot verify what they cannot observe.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "delegated-cloudtrail-governance-bounded-by-delegation-gaps-and-audit-ceilings", + "security-hardening-unverifiable-due-to-observability-ceiling" + ], + "outlist": [], + "label": "Governance delegation is incomplete (who can govern) AND the subject of governance is unverifiable (what is being governed) \u2014 both independently prevent organizational security" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "performance-efficiency-adapt-to-demand-and-technology": { + "text": "Performance Efficiency requires using computing resources efficiently to meet system requirements and maintaining that efficiency as demand changes and technologies evolve.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-performance.md", + "source_url": "", + "source_hash": "c4b4d8011eb28c5d", + "date": "2026-03-08", + "metadata": {} + }, + "performance-efficiency-five-focus-areas": { + "text": "The Performance Efficiency pillar has five focus areas: architecture selection, compute and hardware, data management, networking and content delivery, and process and culture.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-performance.md", + "source_url": "", + "source_hash": "c4b4d8011eb28c5d", + "date": "2026-03-08", + "metadata": {} + }, + "perpetual-undetectable-degradation-no-layer-can-canary-others": { + "text": "Organizations face perpetual undetectable degradation where the DR vulnerability window is itself undetectable AND no operational layer (data, DR, audit) can serve as a canary for silent degradation in the others \u2014 producing a system where degradation is both permanent and structurally invisible from every vantage point.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dr-vulnerability-window-undetectable-by-design", + "silent-degradation-spans-data-dr-and-audit-independently" + ], + "outlist": [], + "label": "Depth-5 undetectability (no single layer can observe its own DR window) meets depth-4 cross-layer independence (degradation in each layer is invisible to the others) \u2014 the combination means there is no meta-layer from which to detect the problem" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "pitr-recovery-does-not-preserve-pitr-configuration": { + "text": "Point-in-time recovery across DynamoDB (and RDS backup state requirements) does not automatically re-enable PITR on restored resources, and toggling PITR resets the recovery window.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-pitr-must-reconfig-pitr-itself", + "dynamodb-pitr-disable-reenable-resets-window", + "rds-automated-backup-requires-available-state" + ], + "outlist": [], + "label": "Recovery operations create a protection gap \u2014 restored resources are unprotected until manually re-configured" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "unnecessary" + } + }, + "pmtud-requires-icmp-allowed-sg-and-nacl": { + "text": "Path MTU Discovery (PMTUD) requires ICMP traffic to be allowed in both security groups and NACLs; NACLs can block ICMP even if security groups allow it.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-network_mtuhtml.md", + "source_url": "", + "source_hash": "2a5ba8fb82b39ee9", + "date": "2026-03-12", + "metadata": {} + }, + "private-subnet-requires-nat-for-internet": { + "text": "Private subnets require a NAT device (NAT gateway or NAT instance) for outbound internet access since they have no direct route to an internet gateway.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-subnets.md", + "source_url": "", + "source_hash": "d4faa1e970199eeb", + "date": "2026-03-08", + "metadata": {} + }, + "privatelink-cloudformation-resources": { + "text": "AWS PrivateLink CloudFormation support includes AWS::EC2::VPCEndpoint, AWS::EC2::VPCEndpointService, AWS::EC2::VPCEndpointServicePermissions, and AWS::EC2::VPCEndpointConnectionNotification.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-privatelink.md", + "source_url": "", + "source_hash": "0534edb8bb7b4722", + "date": "2026-03-08", + "metadata": {} + }, + "privatelink-enables-vpc-isolated-service-access-without-internet": { + "text": "PrivateLink with interface endpoints (backed by ENIs) enables AWS service access from VPC-isolated workloads (Lambda, DAX) without internet gateway, NAT, or public IPs.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "privatelink-interface-endpoints-use-enis", + "privatelink-no-public-infrastructure-required", + "lambda-vpc-secrets-manager-requires-vpc-endpoint" + ], + "outlist": [], + "label": "VPC-only services have no internet path by design; PrivateLink is the required connectivity pattern, not an optimization" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "unnecessary" + } + }, + "privatelink-endpoint-service-requires-nlb-or-gwlb": { + "text": "Creating a VPC endpoint service (provider side) requires a Network Load Balancer or Gateway Load Balancer.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-privatelink.md", + "source_url": "", + "source_hash": "0534edb8bb7b4722", + "date": "2026-03-08", + "metadata": {} + }, + "privatelink-has-hourly-and-data-charges": { + "text": "AWS PrivateLink has its own pricing model with per-hour and per-GB data processed charges \u2014 it is not free.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-privatelink.md", + "source_url": "", + "source_hash": "0534edb8bb7b4722", + "date": "2026-03-08", + "metadata": {} + }, + "privatelink-interface-endpoints-use-enis": { + "text": "Interface VPC endpoints are powered by Elastic Network Interfaces (ENIs) deployed in your subnets.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-privatelink.md", + "source_url": "", + "source_hash": "0534edb8bb7b4722", + "date": "2026-03-08", + "metadata": {} + }, + "privatelink-no-public-infrastructure-required": { + "text": "AWS PrivateLink does not require an internet gateway, NAT device, public IP address, Direct Connect, or Site-to-Site VPN \u2014 traffic stays on the AWS network.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-privatelink.md", + "source_url": "", + "source_hash": "0534edb8bb7b4722", + "date": "2026-03-08", + "metadata": {} + }, + "privatelink-three-endpoint-types": { + "text": "AWS PrivateLink supports three VPC endpoint types: interface endpoints (for AWS/third-party services), resource endpoints (for specific resources like databases), and service network endpoints (for VPC Lattice).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-privatelink.md", + "source_url": "", + "source_hash": "0534edb8bb7b4722", + "date": "2026-03-08", + "metadata": {} + }, + "public-ipv4-addresses-charged-all-types": { + "text": "All public IPv4 addresses are now charged across all types (Elastic IP, auto-assigned, service-managed, BYOIP), with a free tier of 750 hours/month with EC2.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-overview.md", + "source_url": "", + "source_hash": "bf7b79e62bf79dd0", + "date": "2026-03-08", + "metadata": {} + }, + "public-subnet-defined-by-igw-route": { + "text": "A public subnet is defined by its route table having a route to an internet gateway; a private subnet lacks this route.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-internet-gateway.md", + "source_url": "", + "source_hash": "28ebaa8888ed923b", + "date": "2026-03-08", + "metadata": {} + }, + "put-audit-events-checksum-base64-sha256": { + "text": "The `put-audit-events` integrity checksum is computed as base64-encoded SHA-256 of the event data (`printf %s $eventdata | openssl dgst -binary -sha256 | base64`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-data-put-audit-eventshtml.md", + "source_url": "", + "source_hash": "7c7e29f1befd8c88", + "date": "2026-03-12", + "metadata": {} + }, + "put-audit-events-max-100-events-1mb": { + "text": "The `put-audit-events` API accepts a maximum of 100 events or 1 MB per request and uses a partial success model where some events can fail while others succeed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-data-put-audit-eventshtml.md", + "source_url": "", + "source_hash": "7c7e29f1befd8c88", + "date": "2026-03-12", + "metadata": {} + }, + "put-audit-events-only-cloudtrail-data-command": { + "text": "`put-audit-events` is the only command in the `cloudtrail-data` service, used exclusively for ingesting external (non-AWS) events into CloudTrail Lake.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/cli-latest-reference-cloudtrail-data-put-audit-eventshtml.md", + "source_url": "", + "source_hash": "7c7e29f1befd8c88", + "date": "2026-03-12", + "metadata": {} + }, + "rabbitmq-dlx-one-way-no-native-redrive": { + "text": "RabbitMQ dead letter exchange (DLX) is one-way \u2014 there is no native redrive-to-source capability; redrive requires custom tooling or manual republishing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-feature-parity-cross-reference.md", + "source_url": "", + "source_hash": "103bd464d6d698a8", + "date": "2026-03-12", + "metadata": {} + }, + "rdbms-dynamodb-migration-defaults-worst-and-undiscoverable": { + "text": "RDBMS-to-DynamoDB migration via AWS defaults produces the maximally bad outcome across every operational dimension AND the security posture of the result is unverifiable due to observability ceiling \u2014 the worst-case is not only permanent and irrecoverable but also undiscoverable.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "rdbms-to-global-dynamodb-defaults-worst-irrecoverable-outcome", + "security-hardening-unverifiable-due-to-observability-ceiling" + ], + "outlist": [], + "label": "worst-case operational outcome compounds with inability to verify security posture \u2014 you can't even discover it's bad" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "rdbms-global-dynamodb-migration-worst-case-across-all-dimensions": { + "text": "Migrating RDBMS-normalized schemas to DynamoDB global tables produces the worst-case operational profile across all three dimensions: normalized entity tables create small items that trigger triple billing penalties locally, those penalties multiply across every replica region, and the resulting many-page filtered queries compound client implementation complexity.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "rdbms-normalization-maximizes-dynamodb-billing-penalties", + "dynamodb-global-table-small-item-cost-triply-penalized", + "dynamodb-client-complexity-compounds-across-pagination-and-filtering" + ], + "outlist": [], + "label": "RDBMS normalization \u2192 small items \u2192 local billing penalties \u00d7 global replication multiplier + client pagination complexity \u2014 every dimension compounds" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "rdbms-migration-degradation-perpetual-and-undetectable": { + "text": "RDBMS-to-DynamoDB migrations via AWS defaults produce the maximally bad outcome across every operational dimension AND that degradation is perpetually undetectable because no operational layer (data, DR, audit) can canary the others \u2014 organizations occupy the worst possible state with no mechanism to discover it.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "rdbms-dynamodb-migration-defaults-worst-and-undiscoverable", + "perpetual-undetectable-degradation-no-layer-can-canary-others" + ], + "outlist": [], + "label": "Combines the maximally bad migration outcome with the structural impossibility of detecting it across any layer" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "rdbms-normalization-maximizes-dynamodb-billing-penalties": { + "text": "RDBMS normalization patterns applied to DynamoDB systematically maximize cost by producing many small entity-centric items that trigger all three billing overhead mechanisms (100-byte indexing, 1KB/4KB rounding, 200-byte GSI overhead) while generating filter-heavy queries that pay full RCU for discarded data.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "rdbms-trained-developers-waste-dynamodb-capacity-through-schema-mismatch", + "dynamodb-capacity-billing-penalizes-small-items-disproportionately" + ], + "outlist": [], + "label": "RDBMS normalization produces small items (maximizing overhead ratios) AND filter-heavy queries (wasting read capacity), compounding both cost penalties" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "rdbms-to-global-dynamodb-defaults-worst-irrecoverable-outcome": { + "text": "Migrating RDBMS workloads to DynamoDB global tables via AWS defaults produces the maximally bad outcome across every dimension \u2014 normalized schemas maximize billing penalties, client complexity compounds, small items are triply penalized \u2014 AND the default path locks these choices in permanently with no recovery possible.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "rdbms-global-dynamodb-migration-worst-case-across-all-dimensions", + "aws-global-default-path-creates-permanent-irrecoverable-suboptimality" + ], + "outlist": [], + "label": "The most common migration path (RDBMS \u2192 DynamoDB global) hits the worst-case cost/complexity profile (depth-4) AND the default deployment path makes it irrecoverable (depth-4) \u2014 the combination means the most likely migration produces the worst possible permanent outcome" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "rdbms-trained-developers-waste-dynamodb-capacity-through-schema-mismatch": { + "text": "Developers who design DynamoDB schemas using RDBMS normalization principles (entity-centric, normalized) will systematically produce queries that waste capacity through filter expressions, because normalized schemas require post-read filtering rather than single-shot access-pattern-driven queries.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dynamodb-design-philosophy-inverts-rdbms-normalization", + "dynamodb-filter-expressions-waste-capacity-on-filtered-items" + ], + "outlist": [], + "label": "RDBMS-style schema design forces filter expressions which pay for all scanned data \u2014 paradigm mismatch causes systematic capacity waste" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "rds-additional-storage-volumes-oracle-sqlserver": { + "text": "Oracle and SQL Server support up to 3 additional storage volumes (gp3 or io2), enabling scaling up to 256 TiB total storage.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-all-api-actions-logged-by-cloudtrail": { + "text": "All Amazon RDS API actions are automatically logged by CloudTrail as management events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "3a2b230eebf6f8f1", + "date": "2026-03-12", + "metadata": {} + }, + "rds-all-storage-uses-ebs": { + "text": "All RDS storage is backed by Amazon EBS volumes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-aurora-separate-service": { + "text": "Amazon Aurora is a separate service with its own user guide and is not covered by the standard RDS documentation, despite being a compatible engine.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-overview.md", + "source_url": "", + "source_hash": "15a8e410d0f47de7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-automated-backup-blocked-by-concurrent-snapshot-copy": { + "text": "RDS automated backups are blocked while a DB snapshot copy is running in the same Region for the same database.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-backups.md", + "source_url": "", + "source_hash": "0a0bffa479b47927", + "date": "2026-03-08", + "metadata": {} + }, + "rds-automated-backup-requires-available-state": { + "text": "RDS automated backups require the DB instance to be in the `available` state and do not occur during states like `storage_full`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-backups.md", + "source_url": "", + "source_hash": "0a0bffa479b47927", + "date": "2026-03-08", + "metadata": {} + }, + "rds-automated-backups-deleted-with-instance-unless-retained": { + "text": "When deleting an RDS DB instance, automated backups are deleted unless you explicitly choose to retain them; deleted automated backups cannot be recovered.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-backups.md", + "source_url": "", + "source_hash": "0a0bffa479b47927", + "date": "2026-03-08", + "metadata": {} + }, + "rds-automated-backups-snapshot-entire-instance": { + "text": "RDS automated backups create storage volume snapshots of the entire DB instance, not individual databases.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-backups.md", + "source_url": "", + "source_hash": "0a0bffa479b47927", + "date": "2026-03-08", + "metadata": {} + }, + "rds-backup-storage-not-per-second": { + "text": "RDS backup storage is the exception to per-second billing \u2014 it is metered in GB-month.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-pricing.md", + "source_url": "", + "source_hash": "ddf3c7ad96c86df9", + "date": "2026-03-08", + "metadata": {} + }, + "rds-backups-stored-in-s3": { + "text": "RDS backups (both automated and manual snapshots) are stored in Amazon S3, not EBS.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-backups.md", + "source_url": "", + "source_hash": "0a0bffa479b47927", + "date": "2026-03-08", + "metadata": {} + }, + "rds-burst-credit-balances-relevant-to-burstable-classes": { + "text": "Burst credit balances should be monitored for burstable RDS instance classes (e.g., `db.t3`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-monitoring.md", + "source_url": "", + "source_hash": "5f10e00cd10e974d", + "date": "2026-03-08", + "metadata": {} + }, + "rds-can-copy-both-auto-and-manual-snapshots": { + "text": "Both automated and manual RDS snapshots can be copied (including cross-Region), but only manual snapshots can be shared.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-backups.md", + "source_url": "", + "source_hash": "0a0bffa479b47927", + "date": "2026-03-08", + "metadata": {} + }, + "rds-can-move-between-vpcs": { + "text": "An RDS DB instance can be moved from one VPC to another, and non-VPC instances can be migrated into a VPC.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-vpc.md", + "source_url": "", + "source_hash": "6271748c1ed15e89", + "date": "2026-03-08", + "metadata": {} + }, + "rds-chained-replicas-mysql-mariadb-postgres-only": { + "text": "Chained read replicas (replica of a replica) are supported for MariaDB, MySQL, and some PostgreSQL versions, but not for Db2, Oracle, or SQL Server.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-read-replicas.md", + "source_url": "", + "source_hash": "8ac155310bbf644f", + "date": "2026-03-08", + "metadata": {} + }, + "rds-cloudtrail-eventsource-rds-amazonaws-com": { + "text": "The CloudTrail `eventSource` for Amazon RDS events is `rds.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "3a2b230eebf6f8f1", + "date": "2026-03-12", + "metadata": {} + }, + "rds-cloudwatch-metrics-every-minute": { + "text": "Amazon RDS automatically sends metrics to CloudWatch every minute.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-overview.md", + "source_url": "", + "source_hash": "15a8e410d0f47de7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-compute-billed-per-second-min-10-minutes": { + "text": "RDS DB instance hours are billed in 1-second increments with a minimum charge of 10 minutes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-pricing.md", + "source_url": "", + "source_hash": "ddf3c7ad96c86df9", + "date": "2026-03-08", + "metadata": {} + }, + "rds-console-multi-az-instance-yes-cluster-3-zones": { + "text": "In the RDS console, Multi-AZ DB instance deployments show Multi-AZ = \"Yes\" while cluster deployments show Multi-AZ = \"3 Zones\".", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-multi-az.md", + "source_url": "", + "source_hash": "c3f8e642da8cd515", + "date": "2026-03-08", + "metadata": {} + }, + "rds-cross-region-replication-async-multi-az-sync": { + "text": "RDS cross-region replication is asynchronous; within-region Multi-AZ replication is synchronous.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-overview.md", + "source_url": "", + "source_hash": "15a8e410d0f47de7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-cross-region-snapshot-copy-increases-destination-storage-cost": { + "text": "Copying an RDS snapshot to another Region increases backup storage costs in the destination Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-backups.md", + "source_url": "", + "source_hash": "0a0bffa479b47927", + "date": "2026-03-08", + "metadata": {} + }, + "rds-data-transfer-billed-per-gb-internet-and-cross-region": { + "text": "RDS data transfer is billed per GB for traffic to/from the internet and other AWS Regions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-pricing.md", + "source_url": "", + "source_hash": "ddf3c7ad96c86df9", + "date": "2026-03-08", + "metadata": {} + }, + "rds-db-parameter-groups-control-engine-behavior": { + "text": "RDS DB parameter groups control engine-specific behavior and configuration settings.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-overview.md", + "source_url": "", + "source_hash": "15a8e410d0f47de7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-db-r6g-graviton2-memory-optimized": { + "text": "The `db.r6g` instance class type is memory-optimized and powered by AWS Graviton2 processors.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-instance-classes.md", + "source_url": "", + "source_hash": "fa358c8f56a38e4e", + "date": "2026-03-08", + "metadata": {} + }, + "rds-db-subnet-group-spans-multiple-azs": { + "text": "RDS requires a DB subnet group spanning multiple Availability Zones within a VPC.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-vpc.md", + "source_url": "", + "source_hash": "6271748c1ed15e89", + "date": "2026-03-08", + "metadata": {} + }, + "rds-db2-byol-requires-custom-parameter-group-with-ibm-ids": { + "text": "RDS for Db2 BYOL requires creating a custom DB parameter group with `rds.ibm_customer_id` and `rds.ibm_site_id` parameters before creating the DB instance.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-db2-licensinghtml.md", + "source_url": "", + "source_hash": "e931fce75226508e", + "date": "2026-03-12", + "metadata": {} + }, + "rds-db2-license-switch-requires-snapshot-restore": { + "text": "Switching RDS for Db2 between BYOL and Marketplace licensing requires restoring from an automated backup or snapshot \u2014 it cannot be done as an in-place modification.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-db2-licensinghtml.md", + "source_url": "", + "source_hash": "e931fce75226508e", + "date": "2026-03-12", + "metadata": {} + }, + "rds-db2-multi-az-cold-standbys": { + "text": "RDS for Db2 Multi-AZ standbys are cold \u2014 Db2 is installed but not running, not readable, and not serving requests.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-db2-licensinghtml.md", + "source_url": "", + "source_hash": "e931fce75226508e", + "date": "2026-03-12", + "metadata": {} + }, + "rds-db2-no-gp2-no-magnetic": { + "text": "Db2 on RDS does not support gp2 or magnetic storage types.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-db2-two-editions-se-ae": { + "text": "RDS for Db2 supports two editions: Standard Edition (`db2-se`) and Advanced Edition (`db2-ae`), with parameter group families `db2-se-11.5` and `db2-ae-11.5`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-db2-licensinghtml.md", + "source_url": "", + "source_hash": "e931fce75226508e", + "date": "2026-03-12", + "metadata": {} + }, + "rds-default-vpc-unless-specified": { + "text": "All new RDS DB instances are created in the default VPC unless you explicitly choose another VPC.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-vpc.md", + "source_url": "", + "source_hash": "6271748c1ed15e89", + "date": "2026-03-08", + "metadata": {} + }, + "rds-delete-source-promotes-same-region-replicas": { + "text": "Deleting a source DB instance automatically promotes all same-Region read replicas to standalone instances.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-read-replicas.md", + "source_url": "", + "source_hash": "8ac155310bbf644f", + "date": "2026-03-08", + "metadata": {} + }, + "rds-disk-space-85-percent-threshold": { + "text": "RDS disk space consumption above 85% warrants investigation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-monitoring.md", + "source_url": "", + "source_hash": "5f10e00cd10e974d", + "date": "2026-03-08", + "metadata": {} + }, + "rds-dlv-fixed-1024gib-3000iops-piops-only": { + "text": "RDS Dedicated Log Volume (DLV) is a fixed 1,024 GiB / 3,000 IOPS volume that requires Provisioned IOPS storage and a reboot to enable.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-dlv-supported-engines-versions": { + "text": "DLV is supported on MariaDB 10.6.7+, MySQL 8.0.28+/8.4.3+, and PostgreSQL 13.10+/14.7+/15.2+/16.1+.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-ebs-provisioned-storage-billed-per-second-min-10min": { + "text": "RDS EBS provisioned storage is billed per second with a 10-minute minimum, matching the compute billing model.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-pricing.md", + "source_url": "", + "source_hash": "ddf3c7ad96c86df9", + "date": "2026-03-08", + "metadata": {} + }, + "rds-encrypted-snapshots-cannot-be-public-max-20-accounts": { + "text": "Encrypted RDS/RDS cluster snapshots cannot be shared publicly but can be shared with up to 20 AWS accounts; unencrypted snapshots can be made public.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access-analyzer-resourceshtml.md", + "source_url": "", + "source_hash": "05418769f0e1068e", + "date": "2026-03-12", + "metadata": {} + }, + "rds-encryption-at-rest-aes-256": { + "text": "RDS encryption at rest uses AES-256 and covers both DB instances and snapshots.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-security.md", + "source_url": "", + "source_hash": "f18a8fe6207c9a27", + "date": "2026-03-08", + "metadata": {} + }, + "rds-failover-aurora-vs-multi-az-different-mechanisms": { + "text": "Aurora clusters fail over by promoting an Aurora Replica to primary, while Multi-AZ DB clusters fail over by terminating the primary and promoting a readable standby \u2014 different mechanisms, same `FailoverDBCluster` API.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-APIReference-API_FailoverDBClusterhtml.md", + "source_url": "", + "source_hash": "cc6e7681e447ccf7", + "date": "2026-03-12", + "metadata": {} + }, + "rds-failover-db-cluster-multi-az-under-35-seconds": { + "text": "Failover for Multi-AZ DB clusters using the `FailoverDBCluster` API typically completes in less than 35 seconds.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-APIReference-API_FailoverDBClusterhtml.md", + "source_url": "", + "source_hash": "cc6e7681e447ccf7", + "date": "2026-03-12", + "metadata": {} + }, + "rds-failover-target-instance-optional": { + "text": "The `TargetDBInstanceIdentifier` parameter in `FailoverDBCluster` is optional \u2014 if omitted, RDS chooses which replica/standby to promote; it is not supported for RDS for MySQL Multi-AZ DB clusters.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-APIReference-API_FailoverDBClusterhtml.md", + "source_url": "", + "source_hash": "cc6e7681e447ccf7", + "date": "2026-03-12", + "metadata": {} + }, + "rds-first-snapshot-full-subsequent-incremental": { + "text": "The first RDS backup snapshot is a full backup; subsequent snapshots are incremental (only changed data).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-backups.md", + "source_url": "", + "source_hash": "0a0bffa479b47927", + "date": "2026-03-08", + "metadata": {} + }, + "rds-free-tier-engines-t3-t4g-micro": { + "text": "RDS Free Tier eligible engines are MariaDB, MySQL, PostgreSQL, and SQL Server Express Edition on db.t3.micro or db.t4g.micro (t4g.micro not available for SQL Server Express).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-overview.md", + "source_url": "", + "source_hash": "15a8e410d0f47de7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-free-tier-single-az-only": { + "text": "RDS Free Tier is restricted to Single-AZ deployments only.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-overview.md", + "source_url": "", + "source_hash": "15a8e410d0f47de7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-gp2-iops-formula": { + "text": "RDS gp2 storage provides 3 IOPS per GiB (minimum 100 IOPS), with burst to 3,000 IOPS for volumes under 1,000 GiB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-gp3-baseline-3000-iops-125-mibs": { + "text": "RDS gp3 storage provides a baseline of 3,000 IOPS and 125 MiB/s per single volume; 12,000 IOPS and 500 MiB/s when striped above threshold.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-iam-management-plane-sg-vpc-data-plane": { + "text": "IAM governs management-plane access to RDS resources; security groups and VPC govern data-plane (network) access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-security.md", + "source_url": "", + "source_hash": "f18a8fe6207c9a27", + "date": "2026-03-08", + "metadata": {} + }, + "rds-instance-class-availability-region-and-engine-dependent": { + "text": "RDS instance class availability varies by AWS Region and supported DB engine.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-instance-classes.md", + "source_url": "", + "source_hash": "fa358c8f56a38e4e", + "date": "2026-03-08", + "metadata": {} + }, + "rds-instance-class-change-may-cause-downtime": { + "text": "Changing an RDS DB instance class requires modifying the DB instance and can cause downtime depending on apply timing (immediately vs. next maintenance window).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-instance-classes.md", + "source_url": "", + "source_hash": "fa358c8f56a38e4e", + "date": "2026-03-08", + "metadata": {} + }, + "rds-instance-class-naming-convention": { + "text": "RDS DB instance classes follow the naming convention `db..` (e.g., `db.r6g.2xlarge`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-instance-classes.md", + "source_url": "", + "source_hash": "fa358c8f56a38e4e", + "date": "2026-03-08", + "metadata": {} + }, + "rds-instance-class-prefixes": { + "text": "RDS instance class prefixes: general purpose `db.m*`, memory optimized `db.z*`/`db.x*`/`db.r*`, compute optimized `db.c*`, burstable `db.t*`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-overview.md", + "source_url": "", + "source_hash": "15a8e410d0f47de7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-instance-level-iops-cap-overrides-volume": { + "text": "EBS-optimized instance-level IOPS caps override volume-level provisioning \u2014 the instance class limits actual achievable IOPS.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-instances-run-in-vpcs": { + "text": "RDS DB instances run inside VPCs and are typically placed in private subnets.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-overview.md", + "source_url": "", + "source_hash": "15a8e410d0f47de7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-io-request-charges-magnetic-only": { + "text": "RDS I/O request charges (per 1 million requests) apply only to magnetic storage, not to SSD storage types.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-pricing.md", + "source_url": "", + "source_hash": "ddf3c7ad96c86df9", + "date": "2026-03-08", + "metadata": {} + }, + "rds-io1-iops-to-gib-ratio-0point5-to-50": { + "text": "RDS io1 storage has an IOPS-to-GiB ratio of 0.5\u201350 (1\u201350 for SQL Server).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-io2-block-express-up-to-256000-iops": { + "text": "RDS io2 Block Express volumes support up to 256,000 IOPS with sub-millisecond latency and an IOPS-to-GiB ratio of 0.5\u20131,000 on Nitro instances.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-io2-iops-to-gib-ratio-non-nitro-max-500": { + "text": "RDS io2 Block Express IOPS-to-GiB ratio is 0.5\u2013500 on non-Nitro instances (vs 0.5\u20131,000 on Nitro).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-iops-improves-when-working-set-fits-memory": { + "text": "RDS IOPS performance improves when the working set fits into memory, minimizing disk I/O.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-monitoring.md", + "source_url": "", + "source_hash": "5f10e00cd10e974d", + "date": "2026-03-08", + "metadata": {} + }, + "rds-license-manager-tracks-by-vcpu": { + "text": "AWS License Manager tracks RDS database licenses (Oracle, Db2) based on virtual cores (vCPUs), with resource discovery taking up to 24 hours.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-OracleConceptsLicensinghtml.md", + "source_url": "", + "source_hash": "76d8f16f238899bf", + "date": "2026-03-12", + "metadata": {} + }, + "rds-magnetic-max-3tib-1000-iops": { + "text": "RDS magnetic storage supports a maximum of 3 TiB and 1,000 IOPS, with no autoscaling and no elastic volumes support.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-managed-processes-no-customer-security-config": { + "text": "RDS-managed processes (backups, read replica replication) do not require customer-configured security.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-security.md", + "source_url": "", + "source_hash": "f18a8fe6207c9a27", + "date": "2026-03-08", + "metadata": {} + }, + "rds-manual-snapshot-limit-100-per-region": { + "text": "RDS has a limit of 100 manual snapshots per Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-backups.md", + "source_url": "", + "source_hash": "0a0bffa479b47927", + "date": "2026-03-08", + "metadata": {} + }, + "rds-manual-snapshots-never-auto-deleted": { + "text": "RDS manual snapshots are never automatically deleted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-backups.md", + "source_url": "", + "source_hash": "0a0bffa479b47927", + "date": "2026-03-08", + "metadata": {} + }, + "rds-max-storage-64tib-most-256tib-oracle-sqlserver": { + "text": "RDS max storage is 64 TiB for Db2/MariaDB/MySQL/PostgreSQL and 256 TiB for Oracle and SQL Server (with additional volumes).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-monitoring-five-tools": { + "text": "RDS monitoring integrates with five tools: CloudWatch (metrics), Performance Insights (DB load), Enhanced Monitoring (OS-level metrics), CloudWatch Database Insights, and DevOps Guru (anomaly detection).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-monitoring.md", + "source_url": "", + "source_hash": "5f10e00cd10e974d", + "date": "2026-03-08", + "metadata": {} + }, + "rds-multi-az-and-read-replicas-simultaneously": { + "text": "An RDS DB instance can have both a synchronous Multi-AZ standby replica and asynchronous read replicas simultaneously.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-read-replicas.md", + "source_url": "", + "source_hash": "8ac155310bbf644f", + "date": "2026-03-08", + "metadata": {} + }, + "rds-multi-az-cluster-exactly-two-standby-readers": { + "text": "A Multi-AZ DB cluster deployment has exactly one writer instance and two standby reader instances.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-multi-az.md", + "source_url": "", + "source_hash": "c3f8e642da8cd515", + "date": "2026-03-08", + "metadata": {} + }, + "rds-multi-az-cluster-spans-3-azs": { + "text": "A Multi-AZ DB cluster deployment spans 3 Availability Zones.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-multi-az.md", + "source_url": "", + "source_hash": "c3f8e642da8cd515", + "date": "2026-03-08", + "metadata": {} + }, + "rds-multi-az-cluster-two-standbys-serve-reads": { + "text": "In a Multi-AZ DB cluster deployment, there are two standby instances that provide failover support and can serve read traffic.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-multi-az.md", + "source_url": "", + "source_hash": "c3f8e642da8cd515", + "date": "2026-03-08", + "metadata": {} + }, + "rds-multi-az-instance-standby-no-reads": { + "text": "In a Multi-AZ DB instance deployment, the single standby provides failover support only and does not serve read traffic.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-multi-az.md", + "source_url": "", + "source_hash": "c3f8e642da8cd515", + "date": "2026-03-08", + "metadata": {} + }, + "rds-multi-az-standby-sync-no-read": { + "text": "RDS Multi-AZ standby replicas use synchronous replication and cannot serve read traffic.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-read-replicas.md", + "source_url": "", + "source_hash": "8ac155310bbf644f", + "date": "2026-03-08", + "metadata": {} + }, + "rds-multi-volume-snapshots-cover-all-volumes": { + "text": "RDS multi-volume configurations are fully supported \u2014 snapshots, backups, and PITR cover all storage volumes (primary + additional).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-backups.md", + "source_url": "", + "source_hash": "0a0bffa479b47927", + "date": "2026-03-08", + "metadata": {} + }, + "rds-no-circular-replication": { + "text": "RDS does not support circular replication \u2014 a replica cannot replicate back to its source.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-read-replicas.md", + "source_url": "", + "source_hash": "8ac155310bbf644f", + "date": "2026-03-08", + "metadata": {} + }, + "rds-no-read-replica-autoscaling": { + "text": "RDS does not auto-scale read replicas; they must be created and deleted manually.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-read-replicas.md", + "source_url": "", + "source_hash": "8ac155310bbf644f", + "date": "2026-03-08", + "metadata": {} + }, + "rds-only-manual-snapshots-can-be-shared": { + "text": "Only manual RDS snapshots can be shared; automated snapshots cannot be shared.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-backups.md", + "source_url": "", + "source_hash": "0a0bffa479b47927", + "date": "2026-03-08", + "metadata": {} + }, + "rds-oracle-byol-supports-ee-and-se2": { + "text": "RDS for Oracle Bring Your Own License (BYOL) supports both Enterprise Edition (EE) and Standard Edition 2 (SE2).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-OracleConceptsLicensinghtml.md", + "source_url": "", + "source_hash": "76d8f16f238899bf", + "date": "2026-03-12", + "metadata": {} + }, + "rds-oracle-edition-migration-se2-to-ee-only": { + "text": "RDS for Oracle edition migration only works SE2 \u2192 EE (via snapshot-and-restore); migrating from EE to other editions is not possible.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-OracleConceptsLicensinghtml.md", + "source_url": "", + "source_hash": "76d8f16f238899bf", + "date": "2026-03-12", + "metadata": {} + }, + "rds-oracle-extra-encryption-options": { + "text": "Oracle on RDS has two additional encryption options beyond standard RDS encryption: native network encryption and Transparent Data Encryption (TDE).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-security.md", + "source_url": "", + "source_hash": "f18a8fe6207c9a27", + "date": "2026-03-08", + "metadata": {} + }, + "rds-oracle-li-only-se2": { + "text": "RDS for Oracle License Included (LI) model is only available for Standard Edition 2 (SE2) \u2014 not for Enterprise Edition.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-OracleConceptsLicensinghtml.md", + "source_url": "", + "source_hash": "76d8f16f238899bf", + "date": "2026-03-12", + "metadata": {} + }, + "rds-oracle-mounted-db2-standby-replicas-for-dr": { + "text": "Oracle supports mounted-mode replicas and Db2 supports standby-mode replicas \u2014 neither accepts user connections and both are used for cross-Region disaster recovery.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-read-replicas.md", + "source_url": "", + "source_hash": "8ac155310bbf644f", + "date": "2026-03-08", + "metadata": {} + }, + "rds-oracle-multi-az-byol-requires-two-licenses": { + "text": "Multi-AZ deployments with RDS for Oracle BYOL require licenses for both the primary and standby DB instances.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-OracleConceptsLicensinghtml.md", + "source_url": "", + "source_hash": "76d8f16f238899bf", + "date": "2026-03-12", + "metadata": {} + }, + "rds-oracle-r5b-only-256000-iops-io1": { + "text": "Oracle on RDS r5b is the only instance type supporting the maximum 256,000 IOPS on io1 storage.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-oracle-supports-processor-configuration": { + "text": "Oracle on RDS supports processor configuration at the instance class level (CPU/threading options).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-instance-classes.md", + "source_url": "", + "source_hash": "fa358c8f56a38e4e", + "date": "2026-03-08", + "metadata": {} + }, + "rds-performance-baseline-under-varying-loads": { + "text": "RDS performance baselines must be measured under different load conditions at various times, not just peak or average, to distinguish normal patterns from anomalies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-monitoring.md", + "source_url": "", + "source_hash": "5f10e00cd10e974d", + "date": "2026-03-08", + "metadata": {} + }, + "rds-performance-insights-identifies-queries": { + "text": "RDS Performance Insights assesses database load and identifies problematic queries.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-overview.md", + "source_url": "", + "source_hash": "15a8e410d0f47de7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-pitr-any-point-within-retention-period": { + "text": "RDS point-in-time recovery (PITR) allows restoring a DB instance to any point within the backup retention period.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-backups.md", + "source_url": "", + "source_hash": "0a0bffa479b47927", + "date": "2026-03-08", + "metadata": {} + }, + "rds-promote-read-replica-to-standalone": { + "text": "Promoting an RDS read replica converts it to a standalone read/write DB instance.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-read-replicas.md", + "source_url": "", + "source_hash": "8ac155310bbf644f", + "date": "2026-03-08", + "metadata": {} + }, + "rds-provisioned-iops-billed-regardless-of-use": { + "text": "RDS Provisioned IOPS charges are incurred per IOPS per month regardless of actual IOPS consumed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-pricing.md", + "source_url": "", + "source_hash": "ddf3c7ad96c86df9", + "date": "2026-03-08", + "metadata": {} + }, + "rds-proxy-recommended-for-lambda-connection-pooling": { + "text": "RDS Proxy is the recommended pattern for Lambda-to-RDS connectivity \u2014 it manages connection pooling and prevents connection exhaustion from concurrent Lambda invocations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-rds-lambda-tutorialhtml.md", + "source_url": "", + "source_hash": "44dc63efde7d0bc5", + "date": "2026-03-12", + "metadata": {} + }, + "rds-read-replica-async-replication": { + "text": "RDS read replicas use asynchronous replication from the primary DB instance.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-read-replicas.md", + "source_url": "", + "source_hash": "8ac155310bbf644f", + "date": "2026-03-08", + "metadata": {} + }, + "rds-read-replica-billed-standard-rates": { + "text": "RDS read replicas are billed at standard DB instance rates.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-read-replicas.md", + "source_url": "", + "source_hash": "8ac155310bbf644f", + "date": "2026-03-08", + "metadata": {} + }, + "rds-read-replica-can-differ-storage-type": { + "text": "RDS read replicas can use a different storage type (Provisioned IOPS, General Purpose, or Magnetic) than their source, with constraints based on allocation size (minimum 100 GiB for Provisioned IOPS).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-read-replicas.md", + "source_url": "", + "source_hash": "8ac155310bbf644f", + "date": "2026-03-08", + "metadata": {} + }, + "rds-reboot-force-failover-requires-multi-az": { + "text": "The `ForceFailover` parameter on `RebootDBInstance` can only be used when Multi-AZ is enabled; it triggers a Multi-AZ failover during the reboot.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-APIReference-API_RebootDBInstancehtml.md", + "source_url": "", + "source_hash": "e139d86c6d559707", + "date": "2026-03-12", + "metadata": {} + }, + "rds-reboot-not-rds-custom": { + "text": "The `RebootDBInstance` API does not apply to RDS Custom instances; for Multi-AZ DB clusters, `RebootDBCluster` must be used instead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-APIReference-API_RebootDBInstancehtml.md", + "source_url": "", + "source_hash": "e139d86c6d559707", + "date": "2026-03-12", + "metadata": {} + }, + "rds-reboot-required-for-parameter-group-changes": { + "text": "A reboot of an RDS DB instance (via `RebootDBInstance`) is required to apply DB parameter group changes \u2014 they do not take effect automatically.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-APIReference-API_RebootDBInstancehtml.md", + "source_url": "", + "source_hash": "e139d86c6d559707", + "date": "2026-03-12", + "metadata": {} + }, + "rds-replica-storage-allocation-increase-min-10-percent": { + "text": "Allocated storage increases on an RDS read replica must be at least 10%.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-read-replicas.md", + "source_url": "", + "source_hash": "8ac155310bbf644f", + "date": "2026-03-08", + "metadata": {} + }, + "rds-reserved-instance-benefit-across-instances-same-hour": { + "text": "RDS Reserved Instance pricing benefit applies across multiple instances started and stopped within the same hour.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-pricing.md", + "source_url": "", + "source_hash": "ddf3c7ad96c86df9", + "date": "2026-03-08", + "metadata": {} + }, + "rds-reserved-instances-1-or-3-year": { + "text": "RDS Reserved Instances are available in 1-year or 3-year commitment terms for discounted pricing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-pricing.md", + "source_url": "", + "source_hash": "ddf3c7ad96c86df9", + "date": "2026-03-08", + "metadata": {} + }, + "rds-same-region-replication-no-data-transfer-charge": { + "text": "RDS same-Region read replica replication incurs no data transfer charges; cross-Region replication does.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-read-replicas.md", + "source_url": "", + "source_hash": "8ac155310bbf644f", + "date": "2026-03-08", + "metadata": {} + }, + "rds-secrets-manager-password-rotation": { + "text": "AWS Secrets Manager integrates with RDS for database password rotation and management.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-security.md", + "source_url": "", + "source_hash": "f18a8fe6207c9a27", + "date": "2026-03-08", + "metadata": {} + }, + "rds-security-group-pattern-ec2-to-rds": { + "text": "The recommended RDS security group pattern places EC2 app servers in one security group and the RDS instance in another that references the EC2 security group as an allowed source \u2014 clients cannot directly access the DB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-overview.md", + "source_url": "", + "source_hash": "15a8e410d0f47de7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-security-groups-deny-all-by-default": { + "text": "RDS security groups block all access by default until explicit rules are added.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-security.md", + "source_url": "", + "source_hash": "f18a8fe6207c9a27", + "date": "2026-03-08", + "metadata": {} + }, + "rds-shared-responsibility-customer-owns-query-tuning": { + "text": "Under the RDS shared responsibility model, AWS handles infrastructure, patching, backups, and scaling; the customer is responsible for application optimization, query tuning, and schema design.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-overview.md", + "source_url": "", + "source_hash": "15a8e410d0f47de7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-six-billing-components": { + "text": "RDS has six billing components: compute hours, storage, I/O requests, provisioned IOPS, backup storage, and data transfer.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-pricing.md", + "source_url": "", + "source_hash": "ddf3c7ad96c86df9", + "date": "2026-03-08", + "metadata": {} + }, + "rds-six-supported-engines": { + "text": "Amazon RDS supports six database engines: IBM Db2, MariaDB, Microsoft SQL Server, MySQL, Oracle Database, and PostgreSQL.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-overview.md", + "source_url": "", + "source_hash": "15a8e410d0f47de7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-sqlserver-lower-max-iops-gp3-io1": { + "text": "SQL Server on RDS has lower maximum IOPS than other engines: 16,000 IOPS on gp3 (vs 64,000) and 64,000 IOPS on io1 (vs 256,000), with a smaller max gp3 volume size of 16,384 GiB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-ssl-tls-all-major-engines": { + "text": "SSL/TLS connections are supported for all major RDS engines: Db2, MySQL, MariaDB, PostgreSQL, Oracle, and SQL Server.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-security.md", + "source_url": "", + "source_hash": "f18a8fe6207c9a27", + "date": "2026-03-08", + "metadata": {} + }, + "rds-storage-architecture-complex-behind-simple-provisioning-interface": { + "text": "RDS presents simple storage type selection (three types) but underneath all storage uses EBS volumes with automatic striping across four volumes above capacity thresholds \u2014 performance characteristics and failure modes depend on hidden infrastructure complexity that the provisioning interface does not surface", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "rds-all-storage-uses-ebs", + "rds-volume-striping-4-volumes-above-threshold", + "rds-three-storage-types" + ], + "outlist": [], + "label": "Three-choice provisioning hides EBS volume striping complexity \u2014 storage IOPS and throughput are shaped by invisible infrastructure decisions" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "rds-storage-billed-per-gib-per-month-prorated": { + "text": "RDS storage is billed per GiB per month; scaling mid-month results in prorated charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-pricing.md", + "source_url": "", + "source_hash": "ddf3c7ad96c86df9", + "date": "2026-03-08", + "metadata": {} + }, + "rds-storage-types-gp-ssd-piops-magnetic": { + "text": "RDS offers three EBS-backed storage types: General Purpose (SSD) for dev/test, Provisioned IOPS (PIOPS) for production, and Magnetic (legacy, not recommended).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-overview.md", + "source_url": "", + "source_hash": "15a8e410d0f47de7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-supports-dual-stack-ipv4-ipv6": { + "text": "RDS supports dual-stack mode (IPv4 and IPv6) within a VPC.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-vpc.md", + "source_url": "", + "source_hash": "6271748c1ed15e89", + "date": "2026-03-08", + "metadata": {} + }, + "rds-three-storage-types": { + "text": "RDS offers three storage types: Provisioned IOPS SSD (io1/io2), General Purpose SSD (gp2/gp3), and Magnetic (standard/legacy).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-typical-architecture-elb-ec2-public-rds-private": { + "text": "Typical RDS architecture: ELB \u2192 EC2 app servers (public subnets) \u2192 RDS (private subnets).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-overview.md", + "source_url": "", + "source_hash": "15a8e410d0f47de7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-user-connections-default-zero-unlimited": { + "text": "The RDS `User Connections` parameter defaults to 0 (unlimited) and is controlled via parameter groups, not instance settings directly.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-monitoring.md", + "source_url": "", + "source_hash": "5f10e00cd10e974d", + "date": "2026-03-08", + "metadata": {} + }, + "rds-uses-ntp-for-time-sync": { + "text": "Amazon RDS uses NTP to synchronize time on DB instances.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-overview.md", + "source_url": "", + "source_hash": "15a8e410d0f47de7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-volume-modification-optimizing-lower-of-source-target": { + "text": "During RDS volume modification in `optimizing` state, performance is at least the lower of source or target specifications.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-volume-striping-4-volumes-above-threshold": { + "text": "RDS automatically stripes across 4 EBS volumes above a threshold (400 GiB for most engines, 200 GiB for Oracle); SQL Server always uses 1 volume with no striping.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-storage.md", + "source_url": "", + "source_hash": "6fccf111cca785a7", + "date": "2026-03-08", + "metadata": {} + }, + "rds-vpc-endpoints-privatelink-api-traffic": { + "text": "AWS PrivateLink (interface VPC endpoints) can be used to keep RDS API traffic off the public internet.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-security.md", + "source_url": "", + "source_hash": "f18a8fe6207c9a27", + "date": "2026-03-08", + "metadata": {} + }, + "rds-vpc-no-extra-charge": { + "text": "Running an RDS instance in a VPC incurs no additional charge beyond standard RDS pricing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/rds-vpc.md", + "source_url": "", + "source_hash": "6271748c1ed15e89", + "date": "2026-03-08", + "metadata": {} + }, + "rds-zero-etl-delete-before-blue-green-switchover": { + "text": "Active zero-ETL integrations must be deleted before performing a blue/green deployment switchover, then recreated afterward.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-zero-etlhtml.md", + "source_url": "", + "source_hash": "0f4b1a1cfcacece2", + "date": "2026-03-12", + "metadata": {} + }, + "rds-zero-etl-no-read-replica-sources": { + "text": "RDS read replicas cannot be used as sources for zero-ETL integrations (any engine).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-zero-etlhtml.md", + "source_url": "", + "source_hash": "0f4b1a1cfcacece2", + "date": "2026-03-12", + "metadata": {} + }, + "rds-zero-etl-quotas-100-per-account-region": { + "text": "RDS zero-ETL integration quotas are 100 integrations per account per Region, 50 per target, and 5 per source instance.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-zero-etlhtml.md", + "source_url": "", + "source_hash": "0f4b1a1cfcacece2", + "date": "2026-03-12", + "metadata": {} + }, + "rds-zero-etl-same-region-required": { + "text": "RDS zero-ETL integrations require the source database and target (Redshift or SageMaker lakehouse) to be in the same AWS Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-zero-etlhtml.md", + "source_url": "", + "source_hash": "0f4b1a1cfcacece2", + "date": "2026-03-12", + "metadata": {} + }, + "rds-zero-etl-targets-redshift-sagemaker-lakehouse": { + "text": "RDS zero-ETL integrations replicate transactional data to Amazon Redshift (provisioned or serverless) or Amazon SageMaker AI lakehouse destinations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonRDS-latest-UserGuide-zero-etlhtml.md", + "source_url": "", + "source_hash": "0f4b1a1cfcacece2", + "date": "2026-03-12", + "metadata": {} + }, + "real-time-audit-alerting-requires-multi-service-integration-chain": { + "text": "Real-time security alerting from CloudTrail requires configuring a multi-service chain \u2014 CloudTrail delivers to CloudWatch Logs (requiring a dedicated IAM role), metric filters extract patterns from log streams, and CloudWatch alarms trigger on the resulting metrics \u2014 where each link has independent failure and misconfiguration potential.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "cloudtrail-cloudwatch-logs-near-real-time-alerting", + "cloudtrail-cloudwatch-logs-requires-iam-role", + "cloudwatch-metric-filters-extract-metrics-from-logs" + ], + "outlist": [], + "label": "CloudTrail \u2192 IAM role \u2192 CloudWatch Logs \u2192 metric filters \u2192 alarms; 4-link chain where any misconfigured link silently breaks alerting" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "unnecessary" + } + }, + "rebalance-recommendation-best-effort": { + "text": "EC2 rebalance recommendations are delivered on a best-effort basis \u2014 they are not guaranteed to arrive before the 2-minute Spot interruption notice.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-rebalance-recommendationshtml.md", + "source_url": "", + "source_hash": "4301c45c9a469d5a", + "date": "2026-03-12", + "metadata": {} + }, + "rebalance-recommendation-eventbridge-detail-type": { + "text": "The EventBridge detail-type for Spot Instance rebalance recommendations is exactly `EC2 Instance Rebalance Recommendation` with source `aws.ec2`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-rebalance-recommendationshtml.md", + "source_url": "", + "source_hash": "4301c45c9a469d5a", + "date": "2026-03-12", + "metadata": {} + }, + "rebalance-recommendation-metadata-path": { + "text": "Rebalance recommendation signals are available via instance metadata at `events/recommendations/rebalance`; returns HTTP 404 if no signal has been emitted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-rebalance-recommendationshtml.md", + "source_url": "", + "source_hash": "4301c45c9a469d5a", + "date": "2026-03-12", + "metadata": {} + }, + "reliability-failure-management-automatic-self-healing": { + "text": "Failure Management in the Reliability Pillar emphasizes automatic failure detection and self-healing, not manual intervention.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-reliability.md", + "source_url": "", + "source_hash": "826d50eb9d40ab13", + "date": "2026-03-08", + "metadata": {} + }, + "reliability-foundations-quotas-and-network": { + "text": "The Foundations area of the Reliability Pillar focuses on ensuring service quotas and network topology can accommodate the workload.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-reliability.md", + "source_url": "", + "source_hash": "826d50eb9d40ab13", + "date": "2026-03-08", + "metadata": {} + }, + "reliability-on-premises-three-challenges": { + "text": "The three on-premises challenges AWS reliability practices address are: single points of failure, lack of automation, and lack of elasticity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-reliability.md", + "source_url": "", + "source_hash": "826d50eb9d40ab13", + "date": "2026-03-08", + "metadata": {} + }, + "reliability-pillar-four-key-areas": { + "text": "The Reliability Pillar addresses four key areas: Foundations, Workload Architecture, Change Management, and Failure Management.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-reliability.md", + "source_url": "", + "source_hash": "826d50eb9d40ab13", + "date": "2026-03-08", + "metadata": {} + }, + "resource-groups-cloudtrail-event-source": { + "text": "Resource Groups API events use `resource-groups.amazonaws.com` as their CloudTrail event source; Tag Editor console actions use `resource-explorer` as their event source.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/ARG-latest-userguide-security_logging-monitoringhtml.md", + "source_url": "", + "source_hash": "d1b19303205f1541", + "date": "2026-03-12", + "metadata": {} + }, + "resource-lifecycle-fragility-structurally-invisible": { + "text": "AWS resource lifecycle fragility at every mutability point (immutable properties that can never be corrected, mutable features that reset state on toggle) is structurally invisible because the observability stack that would detect configuration degradation faces both cold-start barriers and hard ceilings \u2014 drift occurs silently at both configuration extremes with no detection path.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "aws-resource-lifecycle-fragile-at-all-mutability-points", + "observability-investment-faces-cold-start-barrier-and-hard-ceiling" + ], + "outlist": [], + "label": "lifecycle fragility at both mutability extremes compounds with observability ceiling to make degradation unmonitorable" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "ri-3-year-bigger-discount-than-1-year": { + "text": "A 3-year Reserved Instance term offers a bigger discount than a 1-year term.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-reserved-instances.md", + "source_url": "", + "source_hash": "9daa6c73cef9d554", + "date": "2026-03-08", + "metadata": {} + }, + "ri-cannot-be-cancelled-after-purchase": { + "text": "Reserved Instances cannot be cancelled after purchase \u2014 they can only be modified, exchanged (Convertible class only), or sold on the RI Marketplace.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-reserved-instances.md", + "source_url": "", + "source_hash": "9daa6c73cef9d554", + "date": "2026-03-08", + "metadata": {} + }, + "ri-discount-applies-immediately-on-match": { + "text": "RI discounts apply immediately when a running On-Demand instance matches the RI attributes \u2014 no manual association is required.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-reserved-instances.md", + "source_url": "", + "source_hash": "9daa6c73cef9d554", + "date": "2026-03-08", + "metadata": {} + }, + "ri-do-not-auto-renew": { + "text": "Reserved Instances do not auto-renew \u2014 when they expire, usage reverts to On-Demand rates.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-reserved-instances.md", + "source_url": "", + "source_hash": "9daa6c73cef9d554", + "date": "2026-03-08", + "metadata": {} + }, + "ri-must-match-type-region-tenancy-platform": { + "text": "An RI must match instance type, Region, tenancy, and platform to apply the billing discount.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-reserved-instances.md", + "source_url": "", + "source_hash": "9daa6c73cef9d554", + "date": "2026-03-08", + "metadata": {} + }, + "ri-payment-options-all-partial-no-upfront": { + "text": "RI payment options are All Upfront (most savings), Partial Upfront, and No Upfront (least savings); No Upfront requires a successful billing history.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-reserved-instances.md", + "source_url": "", + "source_hash": "9daa6c73cef9d554", + "date": "2026-03-08", + "metadata": {} + }, + "ri-sellable-on-marketplace": { + "text": "Reserved Instances can be listed for sale to other AWS customers on the Reserved Instance Marketplace.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-reserved-instances.md", + "source_url": "", + "source_hash": "9daa6c73cef9d554", + "date": "2026-03-08", + "metadata": {} + }, + "ri-standard-vs-convertible-offering-classes": { + "text": "Standard RIs offer higher discounts but can only be modified; Convertible RIs offer lower discounts but can be exchanged for different instance attributes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-reserved-instances.md", + "source_url": "", + "source_hash": "9daa6c73cef9d554", + "date": "2026-03-08", + "metadata": {} + }, + "ris-are-billing-discounts-not-physical-instances": { + "text": "EC2 Reserved Instances are billing constructs (discounts applied to matching On-Demand usage), not physical instances or capacity reservations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-reserved-instances.md", + "source_url": "", + "source_hash": "9daa6c73cef9d554", + "date": "2026-03-08", + "metadata": {} + }, + "route53-100-percent-availability-sla": { + "text": "Route 53 offers a 100% availability SLA for DNS queries \u2014 the only AWS service with this guarantee.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route-53-feature-parity-cross-reference.md", + "source_url": "", + "source_hash": "c31980fb5a487b64", + "date": "2026-03-12", + "metadata": {} + }, + "route53-alias-records-for-aws-resources": { + "text": "Alias records are Route 53-specific records that can route traffic to AWS resources (S3, CloudFront, ELB) and are distinct from standard CNAME records.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-dns.md", + "source_url": "", + "source_hash": "d5bfee23d6a8bee5", + "date": "2026-03-08", + "metadata": {} + }, + "route53-all-api-actions-logged-cloudtrail": { + "text": "All Route 53 API actions are logged by CloudTrail with no exceptions, using three distinct event sources: `route53.amazonaws.com` (DNS), `route53domains.amazonaws.com` (registration), and `route53resolver.amazonaws.com` (Resolver).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/Route53-latest-DeveloperGuide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "01b6b3638d0312fc", + "date": "2026-03-12", + "metadata": {} + }, + "route53-auto-creates-hosted-zone-on-registration": { + "text": "Route 53 automatically creates a public hosted zone when you register a domain name.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-dns.md", + "source_url": "", + "source_hash": "d5bfee23d6a8bee5", + "date": "2026-03-08", + "metadata": {} + }, + "route53-calculated-health-checks": { + "text": "Calculated health checks aggregate multiple health checks for N-of-M monitoring scenarios (e.g., alert when 2 of 5 servers are down).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-health-checks.md", + "source_url": "", + "source_hash": "bf4d8c3ef4057b75", + "date": "2026-03-08", + "metadata": {} + }, + "route53-cloudtrail-excludes-domain-pii": { + "text": "CloudTrail logs for Route 53 domain contact updates explicitly exclude personally-identifying information (PII).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/Route53-latest-DeveloperGuide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "01b6b3638d0312fc", + "date": "2026-03-12", + "metadata": {} + }, + "route53-dns-failover-requires-health-check-association": { + "text": "DNS failover requires associating a health check with each resource record \u2014 Route 53 routes traffic only to resources whose health checks report healthy.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-health-checks.md", + "source_url": "", + "source_hash": "bf4d8c3ef4057b75", + "date": "2026-03-08", + "metadata": {} + }, + "route53-dns-firewall-filters-outbound": { + "text": "Route 53 Resolver DNS Firewall filters outbound DNS traffic from VPC Resolver, not inbound.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-overview.md", + "source_url": "", + "source_hash": "05d446a7970882bb", + "date": "2026-03-08", + "metadata": {} + }, + "route53-dns-resolution-9-steps": { + "text": "DNS resolution follows a 9-step flow: User \u2192 Browser \u2192 DNS Resolver \u2192 Root Name Server \u2192 TLD Name Server \u2192 Route 53 Name Server \u2192 back to resolver \u2192 browser \u2192 web server.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-dns.md", + "source_url": "", + "source_hash": "d5bfee23d6a8bee5", + "date": "2026-03-08", + "metadata": {} + }, + "route53-domain-events-lowercase-first-letter": { + "text": "Route 53 domain registration event names use a lowercase first letter in CloudTrail logs (e.g., `updateDomainContact` instead of `UpdateDomainContact`) \u2014 a naming inconsistency from DNS management events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/Route53-latest-DeveloperGuide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "01b6b3638d0312fc", + "date": "2026-03-12", + "metadata": {} + }, + "route53-edns-client-subnet-improves-location": { + "text": "Route 53 geolocation, geoproximity, and latency routing policies use EDNS0 (edns-client-subnet) to improve location estimation of users.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-routing-policies.md", + "source_url": "", + "source_hash": "405ffaa01b286115", + "date": "2026-03-08", + "metadata": {} + }, + "route53-eight-routing-policies": { + "text": "Route 53 offers eight routing policies: simple, failover, geolocation, geoproximity, latency, IP-based, multivalue answer, and weighted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-routing-policies.md", + "source_url": "", + "source_hash": "405ffaa01b286115", + "date": "2026-03-08", + "metadata": {} + }, + "route53-event-history-requires-us-east-1": { + "text": "To view Route 53 events in CloudTrail Event History, you must select the US East (N. Virginia) region in the console.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/Route53-latest-DeveloperGuide-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "01b6b3638d0312fc", + "date": "2026-03-12", + "metadata": {} + }, + "route53-failover-requires-two-records": { + "text": "Failover routing requires exactly two records (primary + secondary) and a health check on the primary.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-routing-policies.md", + "source_url": "", + "source_hash": "405ffaa01b286115", + "date": "2026-03-08", + "metadata": {} + }, + "route53-geolocation-vs-geoproximity-vs-latency": { + "text": "Geolocation routes by where the user is; geoproximity routes by where resources are (with adjustable bias); latency routes by measured network latency to AWS Regions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-routing-policies.md", + "source_url": "", + "source_hash": "405ffaa01b286115", + "date": "2026-03-08", + "metadata": {} + }, + "route53-health-check-failure-count-resets": { + "text": "The health check failure count resets to zero if the endpoint responds before reaching the failure threshold.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-health-checks.md", + "source_url": "", + "source_hash": "bf4d8c3ef4057b75", + "date": "2026-03-08", + "metadata": {} + }, + "route53-health-check-notification-chain": { + "text": "Route 53 health check notification chain: health check \u2192 CloudWatch alarm \u2192 SNS notification.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-health-checks.md", + "source_url": "", + "source_hash": "bf4d8c3ef4057b75", + "date": "2026-03-08", + "metadata": {} + }, + "route53-health-check-protocols": { + "text": "Route 53 health checks support three protocols: HTTP, HTTPS, and TCP.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-health-checks.md", + "source_url": "", + "source_hash": "bf4d8c3ef4057b75", + "date": "2026-03-08", + "metadata": {} + }, + "route53-health-checks-five-routing-policies": { + "text": "Route 53 health checks integrate with failover, multivalue answer, weighted, latency, and geolocation routing policies to route only to healthy endpoints.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-routing-policies.md", + "source_url": "", + "source_hash": "405ffaa01b286115", + "date": "2026-03-08", + "metadata": {} + }, + "route53-hosted-zone-shares-domain-name": { + "text": "A hosted zone and its corresponding domain always share the same name.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-hosted-zones.md", + "source_url": "", + "source_hash": "ca996681e372ed5b", + "date": "2026-03-08", + "metadata": {} + }, + "route53-ip-based-routing-cidr-client-mapping": { + "text": "Route 53 IP-based routing routes based on source IP address of the client using CIDR-based mappings, useful when you have specific IP-to-location data (e.g., ISP data).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-routing-policies.md", + "source_url": "", + "source_hash": "405ffaa01b286115", + "date": "2026-03-08", + "metadata": {} + }, + "route53-ip-based-routing-no-private-hosted-zone": { + "text": "All routing policies except IP-based routing can be used in private hosted zones.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-routing-policies.md", + "source_url": "", + "source_hash": "405ffaa01b286115", + "date": "2026-03-08", + "metadata": {} + }, + "route53-is-dns-service-not-content-host": { + "text": "Route 53 is a DNS service that routes requests to where content lives (EC2, S3, etc.) \u2014 it does not host content itself.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-dns.md", + "source_url": "", + "source_hash": "d5bfee23d6a8bee5", + "date": "2026-03-08", + "metadata": {} + }, + "route53-multivalue-returns-up-to-8-records": { + "text": "Multivalue answer routing returns up to 8 healthy records selected at random; it is not a substitute for ELB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-routing-policies.md", + "source_url": "", + "source_hash": "405ffaa01b286115", + "date": "2026-03-08", + "metadata": {} + }, + "route53-private-hosted-zone-tied-to-vpc": { + "text": "Private hosted zones are explicitly scoped to one or more Amazon VPCs for internal DNS resolution.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-hosted-zones.md", + "source_url": "", + "source_hash": "ca996681e372ed5b", + "date": "2026-03-08", + "metadata": {} + }, + "route53-profiles-cross-account-multi-vpc": { + "text": "Route 53 Profiles enable cross-account, multi-VPC DNS configuration management.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-overview.md", + "source_url": "", + "source_hash": "05d446a7970882bb", + "date": "2026-03-08", + "metadata": {} + }, + "route53-public-vs-private-hosted-zones": { + "text": "Public hosted zones route traffic on the public internet; private hosted zones route traffic within an Amazon VPC.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-hosted-zones.md", + "source_url": "", + "source_hash": "ca996681e372ed5b", + "date": "2026-03-08", + "metadata": {} + }, + "route53-record-name-must-end-with-zone-name": { + "text": "Route 53 record names must end with the hosted zone name.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-dns.md", + "source_url": "", + "source_hash": "d5bfee23d6a8bee5", + "date": "2026-03-08", + "metadata": {} + }, + "route53-resolver-outposts-hybrid-dns": { + "text": "Route 53 Resolver on Outposts extends DNS resolution between Outpost racks and on-premises data centers via Resolver endpoints.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-overview.md", + "source_url": "", + "source_hash": "05d446a7970882bb", + "date": "2026-03-08", + "metadata": {} + }, + "route53-three-core-functions": { + "text": "Route 53 provides three core functions: domain name registration, DNS routing, and health checking \u2014 usable in any combination.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-overview.md", + "source_url": "", + "source_hash": "05d446a7970882bb", + "date": "2026-03-08", + "metadata": {} + }, + "route53-three-health-check-types": { + "text": "Route 53 supports three health check types: monitor an endpoint directly, monitor other health checks (calculated), and monitor a CloudWatch alarm state.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-health-checks.md", + "source_url": "", + "source_hash": "bf4d8c3ef4057b75", + "date": "2026-03-08", + "metadata": {} + }, + "route53-tld-cache-two-days": { + "text": "TLD name server results are cached by DNS resolvers for approximately two days.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-dns.md", + "source_url": "", + "source_hash": "d5bfee23d6a8bee5", + "date": "2026-03-08", + "metadata": {} + }, + "route53-traffic-flow-combines-policies": { + "text": "Route 53 Traffic Flow is a visual policy editor that can combine multiple routing policies into complex routing trees.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-routing-policies.md", + "source_url": "", + "source_hash": "405ffaa01b286115", + "date": "2026-03-08", + "metadata": {} + }, + "route53-vpc-resolver-recursive-dns": { + "text": "Route 53 VPC Resolver provides recursive DNS for VPCs in AWS Regions, Outposts racks, and on-premises networks, and supports conditional forwarding rules and Resolver endpoints.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-overview.md", + "source_url": "", + "source_hash": "05d446a7970882bb", + "date": "2026-03-08", + "metadata": {} + }, + "route53-weighted-zero-stops-traffic": { + "text": "Weighted routing with weight 0 stops sending traffic to a resource; if all weights are 0, records are returned equally.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/route53-routing-policies.md", + "source_url": "", + "source_hash": "405ffaa01b286115", + "date": "2026-03-08", + "metadata": {} + }, + "s3-128kb-minimum-billable-size-ia-glacier-ir": { + "text": "S3 Standard-IA, One Zone-IA, and Glacier Instant Retrieval have a 128 KB minimum billable object size \u2014 smaller objects are billed as 128 KB.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-storage-classes.md", + "source_url": "", + "source_hash": "5d2d178d9e4476d5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-access-control-requires-three-layer-lockdown": { + "text": "Fully securing S3 requires disabling legacy ACLs, enforcing bucket-owner Object Ownership, and enabling Block Public Access \u2014 each addresses a different legacy access vector.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "s3-acls-are-legacy", + "s3-block-public-access-default-bucket-account-org", + "s3-object-ownership-three-settings" + ], + "outlist": [], + "label": "Block Public Access alone doesn't disable ACLs; Object Ownership alone doesn't block public policies; all three layers needed" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "s3-access-grants-support-iam-identity-center": { + "text": "S3 Access Grants support corporate directory identities (e.g., Active Directory users) via IAM Identity Center.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-access-control.md", + "source_url": "", + "source_hash": "f2c3bbc23b2a22e0", + "date": "2026-03-08", + "metadata": {} + }, + "s3-access-point-policies-evaluated-with-bucket-policy": { + "text": "S3 Access Point policies are evaluated in conjunction with the underlying bucket policy \u2014 both must allow the request.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-access-control.md", + "source_url": "", + "source_hash": "f2c3bbc23b2a22e0", + "date": "2026-03-08", + "metadata": {} + }, + "s3-access-points-vpc-restriction": { + "text": "S3 Access Points can be configured to accept requests only from a specific VPC.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-access-control.md", + "source_url": "", + "source_hash": "f2c3bbc23b2a22e0", + "date": "2026-03-08", + "metadata": {} + }, + "s3-account-owns-bucket-not-iam-user": { + "text": "The AWS account that creates an S3 bucket owns it \u2014 not the IAM user that performed the creation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-UsingBuckethtml.md", + "source_url": "", + "source_hash": "760ad06a5c8080dd", + "date": "2026-03-12", + "metadata": {} + }, + "s3-acl-replacement-all-or-nothing": { + "text": "S3 ACL updates require replacing the entire existing ACL \u2014 partial updates are not supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-objects.md", + "source_url": "", + "source_hash": "bdaf29e8d3a989e3", + "date": "2026-03-08", + "metadata": {} + }, + "s3-acls-are-legacy": { + "text": "S3 ACLs are legacy; AWS recommends keeping them turned off and using policies instead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-access-control.md", + "source_url": "", + "source_hash": "f2c3bbc23b2a22e0", + "date": "2026-03-08", + "metadata": {} + }, + "s3-acls-disabled-by-default": { + "text": "S3 ACLs are disabled by default for new buckets via Object Ownership set to \"Bucket owner enforced\"; AWS recommends keeping them disabled.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-overview.md", + "source_url": "", + "source_hash": "dbcba4e69666a6be", + "date": "2026-03-08", + "metadata": {} + }, + "s3-all-classes-11-nines-except-rrs": { + "text": "All S3 storage classes provide 99.999999999% (11 nines) durability except Reduced Redundancy Storage which provides only 99.99% durability.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-storage-classes.md", + "source_url": "", + "source_hash": "5d2d178d9e4476d5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-atomic-single-key-reads": { + "text": "S3 provides atomic single-key updates: a concurrent GET request never returns partial or corrupt data.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-overview.md", + "source_url": "", + "source_hash": "dbcba4e69666a6be", + "date": "2026-03-08", + "metadata": {} + }, + "s3-aws-config-no-directory-bucket-support": { + "text": "AWS Config managed rules only evaluate general purpose S3 buckets; directory buckets are not supported.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-security.md", + "source_url": "", + "source_hash": "96f5461d57ddb2c1", + "date": "2026-03-08", + "metadata": {} + }, + "s3-batch-operations-billions-single-request": { + "text": "S3 Batch Operations can process billions of objects with a single API request for bulk operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-overview.md", + "source_url": "", + "source_hash": "dbcba4e69666a6be", + "date": "2026-03-08", + "metadata": {} + }, + "s3-batch-replication-can-replicate-replicas": { + "text": "S3 Batch Replication can replicate existing objects, previously failed objects, already-replicated objects, and replicas created by other replication rules (replicas of replicas).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-replicationhtml.md", + "source_url": "", + "source_hash": "6b6e8e1057e2db45", + "date": "2026-03-12", + "metadata": {} + }, + "s3-batch-replication-retry-failed-and-rereplicate": { + "text": "S3 Batch Replication can retry FAILED replications and re-replicate objects that were themselves replicas; live replication cannot re-replicate replicas.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-replication.md", + "source_url": "", + "source_hash": "85fbdf10ef7e5145", + "date": "2026-03-08", + "metadata": {} + }, + "s3-bidirectional-replication-requires-replica-modification-sync": { + "text": "S3 two-way (bi-directional) replication requires replica modification sync to be enabled on replication rules to keep objects and metadata in sync.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-replication.md", + "source_url": "", + "source_hash": "85fbdf10ef7e5145", + "date": "2026-03-08", + "metadata": {} + }, + "s3-block-public-access-default-bucket-account-org": { + "text": "S3 Block Public Access is enabled by default at the bucket level and can be enforced at the bucket, account, or organization level via AWS Organizations; it overrides any permissive ACLs or policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-security.md", + "source_url": "", + "source_hash": "96f5461d57ddb2c1", + "date": "2026-03-08", + "metadata": {} + }, + "s3-bucket-arn-patterns": { + "text": "S3 ARN patterns: bucket-level is `arn:aws:s3:::bucket-name`, objects within a bucket use `arn:aws:s3:::bucket-name/*` \u2014 both are often needed in policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-access-control.md", + "source_url": "", + "source_hash": "f2c3bbc23b2a22e0", + "date": "2026-03-08", + "metadata": {} + }, + "s3-bucket-max-10000-access-points": { + "text": "A single S3 bucket can have up to 10,000 access points.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-access-control.md", + "source_url": "", + "source_hash": "f2c3bbc23b2a22e0", + "date": "2026-03-08", + "metadata": {} + }, + "s3-bucket-must-be-emptied-before-deletion": { + "text": "S3 buckets must be emptied of all objects before they can be deleted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-buckets.md", + "source_url": "", + "source_hash": "142a1f9cee37a34e", + "date": "2026-03-08", + "metadata": {} + }, + "s3-bucket-name-region-immutable": { + "text": "S3 bucket name and region cannot be changed after creation.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-overview.md", + "source_url": "", + "source_hash": "dbcba4e69666a6be", + "date": "2026-03-08", + "metadata": {} + }, + "s3-bucket-name-squatting-risk": { + "text": "Deleted S3 bucket names can be claimed by other AWS accounts; AWS recommends appending GUIDs to bucket names and avoiding bucket deletion.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-security.md", + "source_url": "", + "source_hash": "96f5461d57ddb2c1", + "date": "2026-03-08", + "metadata": {} + }, + "s3-bucket-names-globally-unique-per-partition": { + "text": "S3 bucket names are globally unique within a partition (`aws`, `aws-cn`, `aws-us-gov`), not just per account or per Region; a name cannot be reused until the original bucket is deleted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-UsingBuckethtml.md", + "source_url": "", + "source_hash": "760ad06a5c8080dd", + "date": "2026-03-12", + "metadata": {} + }, + "s3-bucket-owner-can-always-delete-and-deny": { + "text": "The S3 bucket owner can always delete objects and deny access regardless of object ownership.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-access-control.md", + "source_url": "", + "source_hash": "f2c3bbc23b2a22e0", + "date": "2026-03-08", + "metadata": {} + }, + "s3-bucket-owner-no-permission-on-cross-account-objects": { + "text": "The S3 bucket owner has no permissions on objects uploaded by other AWS accounts \u2014 bucket policies do not apply to objects owned by other accounts.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-example-walkthroughs-managing-accesshtml.md", + "source_url": "", + "source_hash": "8ad2a1b61e79ee8c", + "date": "2026-03-12", + "metadata": {} + }, + "s3-bucket-policies-cannot-block-lifecycle": { + "text": "Bucket policies cannot prevent S3 Lifecycle transitions or deletions \u2014 lifecycle actions operate independently of bucket policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-lifecycle.md", + "source_url": "", + "source_hash": "606b8e20759ecea5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-bucket-policy-size-limit-20kb": { + "text": "S3 bucket policies are limited to 20 KB in size.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-overview.md", + "source_url": "", + "source_hash": "dbcba4e69666a6be", + "date": "2026-03-08", + "metadata": {} + }, + "s3-buckets-block-public-access-since-april-2023": { + "text": "Buckets created since April 2023 block all public access by default.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-access-control.md", + "source_url": "", + "source_hash": "f2c3bbc23b2a22e0", + "date": "2026-03-08", + "metadata": {} + }, + "s3-concurrent-put-latest-timestamp-wins": { + "text": "For concurrent PUT requests to the same S3 key, the latest-timestamp write wins; there is no built-in object locking for concurrent writers.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-overview.md", + "source_url": "", + "source_hash": "dbcba4e69666a6be", + "date": "2026-03-08", + "metadata": {} + }, + "s3-cross-account-object-acl-required": { + "text": "When an S3 object owner differs from the bucket owner, the object owner must first grant permissions to the bucket owner via an object ACL before the bucket owner can delegate access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-example-walkthroughs-managing-accesshtml.md", + "source_url": "", + "source_hash": "8ad2a1b61e79ee8c", + "date": "2026-03-12", + "metadata": {} + }, + "s3-cross-account-object-delegation-requires-role": { + "text": "Cross-account delegation of S3 object permissions is not supported directly \u2014 an IAM role with AssumeRole must be used instead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-example-walkthroughs-managing-accesshtml.md", + "source_url": "", + "source_hash": "8ad2a1b61e79ee8c", + "date": "2026-03-12", + "metadata": {} + }, + "s3-cross-account-permission-no-redelegation": { + "text": "An AWS account receiving cross-account permissions cannot further delegate those permissions to a third account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-access-control.md", + "source_url": "", + "source_hash": "f2c3bbc23b2a22e0", + "date": "2026-03-08", + "metadata": {} + }, + "s3-crr-requires-versioning-both-buckets": { + "text": "S3 Cross-Region Replication (CRR) requires versioning to be enabled on both source and destination buckets.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-security.md", + "source_url": "", + "source_hash": "96f5461d57ddb2c1", + "date": "2026-03-08", + "metadata": {} + }, + "s3-data-governance-covers-all-mutation-paths": { + "text": "S3 three-layer access control (disable ACLs, bucket-owner Object Ownership, Block Public Access) combined with IAM Access Analyzer governs all data mutation paths when properly configured.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "s3-access-control-requires-three-layer-lockdown", + "s3-iam-access-analyzer-external-access" + ], + "outlist": [ + "s3-bucket-policies-cannot-block-lifecycle" + ], + "label": "Lifecycle transitions and deletions operate independently of bucket policies, creating a governance-exempt mutation path that three-layer lockdown cannot cover" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "s3-default-bucket-quota-10000": { + "text": "The default S3 bucket quota is 10,000 buckets per AWS account.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-security.md", + "source_url": "", + "source_hash": "96f5461d57ddb2c1", + "date": "2026-03-08", + "metadata": {} + }, + "s3-default-object-ownership-bucket-owner-enforced": { + "text": "The default Object Ownership setting is \"Bucket owner enforced\", which disables ACLs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-access-control.md", + "source_url": "", + "source_hash": "f2c3bbc23b2a22e0", + "date": "2026-03-08", + "metadata": {} + }, + "s3-delete-creates-delete-marker": { + "text": "Deleting a versioned S3 object inserts a delete marker as the current version rather than permanently removing the object.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-versioning.md", + "source_url": "", + "source_hash": "ea0b7e6542d677a4", + "date": "2026-03-08", + "metadata": {} + }, + "s3-directory-bucket-200k-read-100k-write-tps": { + "text": "S3 directory buckets support up to 200,000 read TPS and 100,000 write TPS per bucket.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-directory-buckets-overviewhtml.md", + "source_url": "", + "source_hash": "16139dc786de22de", + "date": "2026-03-12", + "metadata": {} + }, + "s3-directory-bucket-90-day-inactivity-deactivation": { + "text": "S3 directory buckets in Availability Zones become inactive after 90+ days without request activity, returning HTTP 503 during reactivation (typically minutes); Local Zone buckets are exempt.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-directory-buckets-overviewhtml.md", + "source_url": "", + "source_hash": "16139dc786de22de", + "date": "2026-03-12", + "metadata": {} + }, + "s3-directory-bucket-listobjectsv2-unsorted": { + "text": "`ListObjectsV2` returns unsorted results in S3 directory buckets, unlike general purpose buckets which return lexicographically sorted results.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-directory-buckets-overviewhtml.md", + "source_url": "", + "source_hash": "16139dc786de22de", + "date": "2026-03-12", + "metadata": {} + }, + "s3-directory-bucket-naming-format": { + "text": "S3 directory bucket names must follow the format `bucket-base-name--zone-id--x-s3`, embedding the Availability Zone or Local Zone ID in the name.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-directory-buckets-overviewhtml.md", + "source_url": "", + "source_hash": "16139dc786de22de", + "date": "2026-03-12", + "metadata": {} + }, + "s3-directory-bucket-quota-100-per-account-region": { + "text": "S3 directory buckets are limited to 100 per account per Region (adjustable via AWS Support).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-directory-buckets-overviewhtml.md", + "source_url": "", + "source_hash": "16139dc786de22de", + "date": "2026-03-12", + "metadata": {} + }, + "s3-directory-bucket-requires-az-id-not-name": { + "text": "When creating an S3 directory bucket (Express One Zone), you must specify the Availability Zone ID (e.g., `use1-az4`), not the AZ name (e.g., `us-east-1a`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-s3-express-Endpointshtml.md", + "source_url": "", + "source_hash": "b2dc79320c12b757", + "date": "2026-03-12", + "metadata": {} + }, + "s3-directory-bucket-security-locked-down": { + "text": "S3 directory buckets have non-modifiable security: Block Public Access always on, ACLs always disabled, Object Ownership always bucket owner enforced.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-directory-buckets-overviewhtml.md", + "source_url": "", + "source_hash": "16139dc786de22de", + "date": "2026-03-12", + "metadata": {} + }, + "s3-directory-buckets-no-public-access": { + "text": "S3 directory buckets have public access permanently disabled and cannot have it enabled.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-overview.md", + "source_url": "", + "source_hash": "dbcba4e69666a6be", + "date": "2026-03-08", + "metadata": {} + }, + "s3-directory-buckets-no-tagging": { + "text": "S3 directory buckets do not support tagging and have prefix limitations compared to general purpose buckets.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-access-control.md", + "source_url": "", + "source_hash": "f2c3bbc23b2a22e0", + "date": "2026-03-08", + "metadata": {} + }, + "s3-do-not-pin-tls-certificates": { + "text": "AWS rotates S3 TLS certificates automatically; users should not pin S3 TLS certificates.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-security.md", + "source_url": "", + "source_hash": "96f5461d57ddb2c1", + "date": "2026-03-08", + "metadata": {} + }, + "s3-each-version-full-object-not-diff": { + "text": "Each S3 object version is stored as the entire object, not as a diff; storage costs apply per version.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-versioning.md", + "source_url": "", + "source_hash": "ea0b7e6542d677a4", + "date": "2026-03-08", + "metadata": {} + }, + "s3-enforce-https-secure-transport-condition": { + "text": "HTTPS can be enforced on S3 buckets using the `aws:SecureTransport` condition key set to `false` in a Deny statement in bucket policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-security.md", + "source_url": "", + "source_hash": "96f5461d57ddb2c1", + "date": "2026-03-08", + "metadata": {} + }, + "s3-event-notification-destinations-must-grant-permission": { + "text": "S3 event notification destination resources (SNS, SQS, Lambda) must grant S3 permission to publish or invoke via their resource policies.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-event-notifications.md", + "source_url": "", + "source_hash": "cccc3a3c010c926c", + "date": "2026-03-08", + "metadata": {} + }, + "s3-event-notification-fifo-via-eventbridge": { + "text": "To route S3 event notifications to an SQS FIFO queue, use Amazon EventBridge as an intermediary since FIFO queues cannot be direct destinations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-event-notifications.md", + "source_url": "", + "source_hash": "cccc3a3c010c926c", + "date": "2026-03-08", + "metadata": {} + }, + "s3-event-notification-four-destinations": { + "text": "S3 event notifications support four destination types: Amazon SNS topics, Amazon SQS queues (standard only), AWS Lambda functions, and Amazon EventBridge.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-event-notifications.md", + "source_url": "", + "source_hash": "cccc3a3c010c926c", + "date": "2026-03-08", + "metadata": {} + }, + "s3-event-notification-infinite-loop-risk": { + "text": "If an S3 event notification triggers a Lambda that writes back to the same triggering bucket, it can create an infinite loop; mitigate with separate buckets or prefix-scoped triggers.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-event-notifications.md", + "source_url": "", + "source_hash": "cccc3a3c010c926c", + "date": "2026-03-08", + "metadata": {} + }, + "s3-event-notification-supported-events": { + "text": "S3 event notifications support events for: object created, object removal, object restore, RRS object lost, replication, lifecycle expiration/transition, Intelligent-Tiering archival, object tagging, and object ACL PUT.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-event-notifications.md", + "source_url": "", + "source_hash": "cccc3a3c010c926c", + "date": "2026-03-08", + "metadata": {} + }, + "s3-event-notifications-at-least-once-delivery": { + "text": "S3 Event Notifications are delivered at least once (not exactly once) \u2014 duplicates are possible.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-event-notifications.md", + "source_url": "", + "source_hash": "cccc3a3c010c926c", + "date": "2026-03-08", + "metadata": {} + }, + "s3-event-notifications-no-fifo-queue-direct": { + "text": "SQS FIFO queues cannot be direct S3 event notification destinations; use EventBridge as an intermediary.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-event-notifications.md", + "source_url": "", + "source_hash": "cccc3a3c010c926c", + "date": "2026-03-08", + "metadata": {} + }, + "s3-express-one-zone-10x-faster-50pct-lower-cost": { + "text": "S3 Express One Zone provides up to 10x faster access than S3 Standard with 50% lower request costs, using a single AZ with directory buckets.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-storage-classes.md", + "source_url": "", + "source_hash": "5d2d178d9e4476d5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-express-one-zone-availability-sla-99-95": { + "text": "S3 Express One Zone is designed for 99.95% availability within a single AZ, lower than S3 Standard's 99.99% due to the single-AZ design.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-s3-express-Endpointshtml.md", + "source_url": "", + "source_hash": "b2dc79320c12b757", + "date": "2026-03-12", + "metadata": {} + }, + "s3-four-bucket-types": { + "text": "S3 supports four bucket types: general purpose, directory, table, and vector.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-overview.md", + "source_url": "", + "source_hash": "dbcba4e69666a6be", + "date": "2026-03-08", + "metadata": {} + }, + "s3-glacier-40kb-metadata-overhead": { + "text": "S3 Glacier Flexible Retrieval and Glacier Deep Archive each add 40 KB of metadata per archived object (32 KB at the Glacier rate + 8 KB at the Standard rate).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-storage-classes.md", + "source_url": "", + "source_hash": "5d2d178d9e4476d5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-glacier-flexible-deep-archive-require-restore": { + "text": "S3 Glacier Flexible Retrieval and Glacier Deep Archive require a RestoreObject call before objects can be accessed; they do not provide real-time retrieval.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-storage-classes.md", + "source_url": "", + "source_hash": "5d2d178d9e4476d5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-guardduty-monitors-cloudtrail-data-events": { + "text": "Amazon GuardDuty S3 protection monitors CloudTrail S3 data events to detect threats such as anomalous API calls and suspicious access patterns.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-security.md", + "source_url": "", + "source_hash": "96f5461d57ddb2c1", + "date": "2026-03-08", + "metadata": {} + }, + "s3-iam-access-analyzer-external-access": { + "text": "IAM Access Analyzer identifies S3 resources shared with external entities and validates policies for least-privilege access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-security.md", + "source_url": "", + "source_hash": "96f5461d57ddb2c1", + "date": "2026-03-08", + "metadata": {} + }, + "s3-intelligent-tiering-128kb-threshold": { + "text": "Objects smaller than 128 KB in S3 Intelligent-Tiering are not auto-tiered and remain in the Frequent Access tier permanently.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-storage-classes.md", + "source_url": "", + "source_hash": "5d2d178d9e4476d5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-intelligent-tiering-five-tiers": { + "text": "S3 Intelligent-Tiering has five access tiers: three automatic (Frequent Access, Infrequent Access at 30 days, Archive Instant Access at 90 days) and two optional asynchronous tiers (Archive Access at 90+ days, Deep Archive Access at 180+ days).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-storage-classes.md", + "source_url": "", + "source_hash": "5d2d178d9e4476d5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-intelligent-tiering-no-retrieval-fees": { + "text": "S3 Intelligent-Tiering has no retrieval fees; it charges a small per-object monitoring and automation fee instead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-storage-classes.md", + "source_url": "", + "source_hash": "5d2d178d9e4476d5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-lifecycle-billing-stops-at-eligibility": { + "text": "S3 billing for the original storage class stops when an object becomes eligible for a lifecycle action, even before S3 performs it (exception: transitions to Intelligent-Tiering, where billing changes only after actual transition).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-lifecycle.md", + "source_url": "", + "source_hash": "606b8e20759ecea5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-lifecycle-minimum-storage-duration-charges": { + "text": "Expiring objects from storage classes with minimum storage duration requirements (e.g., Standard-IA 30 days, Glacier 90 days) may incur early deletion charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-lifecycle.md", + "source_url": "", + "source_hash": "606b8e20759ecea5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-lifecycle-no-retrieval-charges": { + "text": "S3 Lifecycle transitions do not incur data retrieval charges, but per-request ingestion charges (PUT/COPY) still apply.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-lifecycle.md", + "source_url": "", + "source_hash": "606b8e20759ecea5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-lifecycle-rules-apply-retroactively": { + "text": "S3 Lifecycle rules apply retroactively to existing objects already in the bucket, not just newly created ones.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-lifecycle.md", + "source_url": "", + "source_hash": "606b8e20759ecea5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-lifecycle-single-rule-chains-transitions-and-expiration": { + "text": "A single S3 Lifecycle rule can chain multiple transition actions and an expiration action to manage an object's complete lifecycle (e.g., Standard \u2192 Standard-IA at 30 days \u2192 Glacier at 90 days \u2192 delete at 365 days).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-lifecycle.md", + "source_url": "", + "source_hash": "606b8e20759ecea5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-lifecycle-two-action-types": { + "text": "S3 Lifecycle rules have two action types: transition actions (move objects to a cheaper storage class after a specified time) and expiration actions (automatically delete objects after a specified time).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-lifecycle.md", + "source_url": "", + "source_hash": "606b8e20759ecea5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-live-replication-no-preexisting-objects": { + "text": "S3 live replication does not replicate objects that existed before the replication rule was configured; Batch Replication is required for pre-existing objects.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-replication.md", + "source_url": "", + "source_hash": "85fbdf10ef7e5145", + "date": "2026-03-08", + "metadata": {} + }, + "s3-macie-discovers-sensitive-data": { + "text": "Amazon Macie discovers and protects sensitive data (PII, credentials) stored in S3 buckets.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-security.md", + "source_url": "", + "source_hash": "96f5461d57ddb2c1", + "date": "2026-03-08", + "metadata": {} + }, + "s3-max-object-size-5tb": { + "text": "The maximum single S3 object size is 5 TB per AWS documentation convention.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-objects.md", + "source_url": "", + "source_hash": "bdaf29e8d3a989e3", + "date": "2026-03-08", + "metadata": {} + }, + "s3-minimum-storage-durations": { + "text": "S3 minimum storage durations: Standard-IA/One Zone-IA = 30 days; Glacier IR/Glacier Flexible = 90 days; Glacier Deep Archive = 180 days; Standard/Express One Zone/Intelligent-Tiering = none.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-storage-classes.md", + "source_url": "", + "source_hash": "5d2d178d9e4476d5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-multipart-upload-10000-parts-times-5gib": { + "text": "S3 multipart upload supports up to 10,000 parts of up to 5 GiB each, yielding a theoretical maximum of 48.8 TiB (approximately 53.7 TB).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-objects.md", + "source_url": "", + "source_hash": "bdaf29e8d3a989e3", + "date": "2026-03-08", + "metadata": {} + }, + "s3-no-folder-hierarchy-prefixes-only": { + "text": "S3 general purpose buckets have no actual folder hierarchy \u2014 prefixes are strings at the beginning of object key names used for organization.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-access-control.md", + "source_url": "", + "source_hash": "f2c3bbc23b2a22e0", + "date": "2026-03-08", + "metadata": {} + }, + "s3-object-lock-worm-compliance": { + "text": "S3 Object Lock provides a WORM (Write Once Read Many) model to prevent accidental or malicious object deletion, useful for regulatory compliance and protecting audit logs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-security.md", + "source_url": "", + "source_hash": "96f5461d57ddb2c1", + "date": "2026-03-08", + "metadata": {} + }, + "s3-object-metadata-two-types": { + "text": "S3 object metadata consists of two types: user-defined metadata and system-defined (system-assigned) metadata, stored as name-value pairs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-objects.md", + "source_url": "", + "source_hash": "bdaf29e8d3a989e3", + "date": "2026-03-08", + "metadata": {} + }, + "s3-object-ownership-three-settings": { + "text": "S3 Object Ownership has three settings: bucket owner enforced (default, ACLs disabled), bucket owner preferred, and object writer.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-access-control.md", + "source_url": "", + "source_hash": "f2c3bbc23b2a22e0", + "date": "2026-03-08", + "metadata": {} + }, + "s3-object-unique-id-key-plus-version-id": { + "text": "In a versioning-enabled bucket, a key plus version ID uniquely identifies an S3 object.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-objects.md", + "source_url": "", + "source_hash": "bdaf29e8d3a989e3", + "date": "2026-03-08", + "metadata": {} + }, + "s3-object-url-format": { + "text": "S3 object URL format is `https://.s3..amazonaws.com/` (e.g., `https://amzn-s3-demo-bucket.s3.us-west-2.amazonaws.com/photos/puppy.jpg`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-overview.md", + "source_url": "", + "source_hash": "dbcba4e69666a6be", + "date": "2026-03-08", + "metadata": {} + }, + "s3-objects-never-leave-region-unless-explicit": { + "text": "S3 objects never leave their AWS Region unless explicitly transferred or replicated (e.g., via CRR or copy operations).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-overview.md", + "source_url": "", + "source_hash": "dbcba4e69666a6be", + "date": "2026-03-08", + "metadata": {} + }, + "s3-outposts-no-sse-kms": { + "text": "S3 on Outposts does not support SSE-KMS encryption; only SSE-S3 and SSE-C are available.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-storage-classes.md", + "source_url": "", + "source_hash": "5d2d178d9e4476d5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-preexisting-objects-null-version-id": { + "text": "S3 objects that existed before versioning was enabled receive a version ID of `null`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-versioning.md", + "source_url": "", + "source_hash": "ea0b7e6542d677a4", + "date": "2026-03-08", + "metadata": {} + }, + "s3-presigned-urls-share-private-objects": { + "text": "S3 access to private objects can be shared via presigned URLs, which grant temporary access without requiring the recipient to have AWS credentials.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-objects.md", + "source_url": "", + "source_hash": "bdaf29e8d3a989e3", + "date": "2026-03-08", + "metadata": {} + }, + "s3-replication-owner-override": { + "text": "S3 replication supports an owner override option that changes replica ownership to the destination bucket's AWS account, restricting access to replicas.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-replication.md", + "source_url": "", + "source_hash": "85fbdf10ef7e5145", + "date": "2026-03-08", + "metadata": {} + }, + "s3-replication-preserves-metadata": { + "text": "S3 replication preserves all metadata including original creation times and version IDs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-replication.md", + "source_url": "", + "source_hash": "85fbdf10ef7e5145", + "date": "2026-03-08", + "metadata": {} + }, + "s3-replication-target-different-storage-class": { + "text": "S3 replication can replicate objects directly into a different storage class (e.g., Glacier Flexible Retrieval or Deep Archive) at the destination.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-replication.md", + "source_url": "", + "source_hash": "85fbdf10ef7e5145", + "date": "2026-03-08", + "metadata": {} + }, + "s3-replication-without-rtc-24-48-hours": { + "text": "Without S3 RTC, standard CRR/SRR replication timeframe is 24\u201348 hours and is not SLA-backed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-replication.md", + "source_url": "", + "source_hash": "85fbdf10ef7e5145", + "date": "2026-03-08", + "metadata": {} + }, + "s3-requester-pays-shifts-transfer-cost": { + "text": "S3 Requester Pays shifts data transfer costs from the bucket owner to the requester.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-buckets.md", + "source_url": "", + "source_hash": "142a1f9cee37a34e", + "date": "2026-03-08", + "metadata": {} + }, + "s3-resources-private-by-default": { + "text": "All S3 resources (buckets, objects, access points, etc.) are private by default \u2014 only the root user of the creating account and authorized IAM identities can access them.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-access-control.md", + "source_url": "", + "source_hash": "f2c3bbc23b2a22e0", + "date": "2026-03-08", + "metadata": {} + }, + "s3-rrs-not-recommended": { + "text": "Reduced Redundancy Storage (RRS) is not recommended by AWS; S3 Standard is more cost-effective and provides higher durability (11 nines vs 99.99%).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-storage-classes.md", + "source_url": "", + "source_hash": "5d2d178d9e4476d5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-rtc-sla-15-minutes": { + "text": "S3 Replication Time Control (S3 RTC) provides an SLA guaranteeing 99.99% of new objects are replicated within 15 minutes; S3 RTC does not apply to Batch Replication.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-replication.md", + "source_url": "", + "source_hash": "85fbdf10ef7e5145", + "date": "2026-03-08", + "metadata": {} + }, + "s3-security-hub-aggregates-s3-findings": { + "text": "AWS Security Hub aggregates S3 security findings from GuardDuty, Macie, IAM Access Analyzer, and other services into a single dashboard.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-security.md", + "source_url": "", + "source_hash": "96f5461d57ddb2c1", + "date": "2026-03-08", + "metadata": {} + }, + "s3-single-az-classes": { + "text": "Only S3 One Zone-IA and S3 Express One Zone use a single Availability Zone; all other storage classes use three or more AZs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-storage-classes.md", + "source_url": "", + "source_hash": "5d2d178d9e4476d5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-sse-c-deprecated-april-2026": { + "text": "SSE-C will be disabled by default for all new buckets and existing buckets without SSE-C data starting April 2026; must explicitly enable via PutBucketEncryption API if needed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-security.md", + "source_url": "", + "source_hash": "96f5461d57ddb2c1", + "date": "2026-03-08", + "metadata": {} + }, + "s3-sse-s3-default-encryption": { + "text": "SSE-S3 is the default encryption for S3; all new objects are automatically encrypted at rest.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-security.md", + "source_url": "", + "source_hash": "96f5461d57ddb2c1", + "date": "2026-03-08", + "metadata": {} + }, + "s3-static-website-https-use-cloudfront-oac": { + "text": "For S3 static website hosting with HTTPS and Block Public Access enabled, use CloudFront with Origin Access Control (OAC) rather than disabling Block Public Access.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AmazonS3-latest-userguide-UsingBuckethtml.md", + "source_url": "", + "source_hash": "760ad06a5c8080dd", + "date": "2026-03-12", + "metadata": {} + }, + "s3-storage-class-availability-slas": { + "text": "S3 availability SLAs vary by storage class: Standard 99.99%, Standard-IA/Intelligent-Tiering/Glacier IR 99.9%, Express One Zone 99.95%, One Zone-IA 99.5%.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-storage-classes.md", + "source_url": "", + "source_hash": "5d2d178d9e4476d5", + "date": "2026-03-08", + "metadata": {} + }, + "s3-storage-lens-60-plus-metrics": { + "text": "S3 Storage Lens provides organization-wide storage analytics with 60+ metrics covering usage, cost optimization, and security posture.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-overview.md", + "source_url": "", + "source_hash": "dbcba4e69666a6be", + "date": "2026-03-08", + "metadata": {} + }, + "s3-strong-read-after-write-consistency": { + "text": "S3 provides strong read-after-write consistency for all PUT and DELETE operations in all regions, including new objects, overwrites, deletes, and metadata/ACL/tag reads.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-overview.md", + "source_url": "", + "source_hash": "dbcba4e69666a6be", + "date": "2026-03-08", + "metadata": {} + }, + "s3-suspending-versioning-keeps-existing-versions": { + "text": "Suspending S3 versioning does not delete existing versions; it only changes behavior for future operations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-versioning.md", + "source_url": "", + "source_hash": "ea0b7e6542d677a4", + "date": "2026-03-08", + "metadata": {} + }, + "s3-table-bucket-limits": { + "text": "S3 table buckets are limited to 10 per account per region and 10,000 tables per bucket, using Apache Iceberg format.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-overview.md", + "source_url": "", + "source_hash": "dbcba4e69666a6be", + "date": "2026-03-08", + "metadata": {} + }, + "s3-three-permission-mechanisms": { + "text": "S3 has three independent permission mechanisms: identity-based IAM policies, bucket policies (resource-based), and ACLs \u2014 each evaluated separately.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-access_policies_identity-vs-resourcehtml.md", + "source_url": "", + "source_hash": "b7562a1b27be5a4c", + "date": "2026-03-12", + "metadata": {} + }, + "s3-transfer-acceleration-uses-cloudfront-edges": { + "text": "S3 Transfer Acceleration uses CloudFront edge locations to speed up file uploads to buckets.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-buckets.md", + "source_url": "", + "source_hash": "142a1f9cee37a34e", + "date": "2026-03-08", + "metadata": {} + }, + "s3-two-bucket-types-general-and-directory": { + "text": "S3 has two bucket types: general purpose buckets (standard, all storage classes except Express One Zone) and directory buckets (S3 Express One Zone, single-digit ms latency).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-buckets.md", + "source_url": "", + "source_hash": "142a1f9cee37a34e", + "date": "2026-03-08", + "metadata": {} + }, + "s3-unlimited-objects-per-bucket": { + "text": "There is no limit on the number of objects you can store in an S3 bucket.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-objects.md", + "source_url": "", + "source_hash": "bdaf29e8d3a989e3", + "date": "2026-03-08", + "metadata": {} + }, + "s3-unpredictable-bucket-names-guid": { + "text": "AWS recommends appending a GUID to S3 bucket names to prevent name-squatting and avoiding bucket deletion since another account could reuse the name.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-security.md", + "source_url": "", + "source_hash": "96f5461d57ddb2c1", + "date": "2026-03-08", + "metadata": {} + }, + "s3-vector-buckets-for-embeddings": { + "text": "S3 vector buckets are purpose-built for vector embeddings and similarity search, integrating with Amazon Bedrock and OpenSearch.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-overview.md", + "source_url": "", + "source_hash": "dbcba4e69666a6be", + "date": "2026-03-08", + "metadata": {} + }, + "s3-versioning-applies-all-objects": { + "text": "S3 versioning applies to all objects in the bucket; there is no per-object versioning control.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-versioning.md", + "source_url": "", + "source_hash": "ea0b7e6542d677a4", + "date": "2026-03-08", + "metadata": {} + }, + "s3-versioning-cannot-revert-to-unversioned": { + "text": "Once S3 versioning is enabled on a bucket, it can never return to the unversioned state \u2014 it can only be suspended.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-versioning.md", + "source_url": "", + "source_hash": "ea0b7e6542d677a4", + "date": "2026-03-08", + "metadata": {} + }, + "s3-versioning-disabled-by-default": { + "text": "S3 versioning is disabled by default and must be explicitly enabled at the bucket level; buckets have three possible states: Unversioned (default), Versioning-enabled, and Versioning-suspended.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-versioning.md", + "source_url": "", + "source_hash": "ea0b7e6542d677a4", + "date": "2026-03-08", + "metadata": {} + }, + "s3-versioning-lifecycle-noncurrent-expiration-required": { + "text": "When enabling S3 versioning on a bucket that already has an expiration lifecycle policy, you must add a noncurrent expiration configuration to maintain permanent delete behavior.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-versioning.md", + "source_url": "", + "source_hash": "ea0b7e6542d677a4", + "date": "2026-03-08", + "metadata": {} + }, + "s3-versioning-provides-complete-data-loss-protection": { + "text": "S3 versioning provides complete data-loss protection \u2014 it applies to all objects in the bucket and preserves existing versions even when versioning is subsequently suspended.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "s3-versioning-applies-all-objects", + "s3-suspending-versioning-keeps-existing-versions" + ], + "outlist": [ + "s3-bucket-policies-cannot-block-lifecycle" + ], + "label": "versioning protects all objects and survives suspension UNLESS lifecycle rules are configured \u2014 lifecycle operates independently of bucket policies and can silently delete the versions that versioning was meant to preserve" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": {} + }, + "s3-versioning-simultaneous-writes-all-stored": { + "text": "Simultaneous write requests for the same S3 object in a versioned bucket are all stored as separate versions \u2014 there are no silent overwrites.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-versioning.md", + "source_url": "", + "source_hash": "ea0b7e6542d677a4", + "date": "2026-03-08", + "metadata": {} + }, + "s3-versioning-soap-api-not-supported": { + "text": "The SOAP API does not support S3 Versioning.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-versioning.md", + "source_url": "", + "source_hash": "ea0b7e6542d677a4", + "date": "2026-03-08", + "metadata": {} + }, + "s3-vpc-endpoints-private-traffic": { + "text": "S3 VPC endpoints keep S3 traffic off the public internet; bucket policies can reference VPC/endpoint conditions to restrict access, and VPCs without an internet gateway can use endpoints to prevent data exfiltration.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/s3-security.md", + "source_url": "", + "source_hash": "96f5461d57ddb2c1", + "date": "2026-03-08", + "metadata": {} + }, + "security-attack-surface-multiplicative-across-network-and-identity-planes": { + "text": "VPC network controls and IAM identity controls operate as independent security planes \u2014 a gap in either is exploitable regardless of the other \u2014 meaning both must be hardened to achieve defense in depth.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "vpc-defense-requires-three-coordinated-control-planes", + "iam-authorization-paths-each-have-distinct-bypass-vectors" + ], + "outlist": [], + "label": "network and identity control planes each have independent bypasses; a gap in either is exploitable regardless of the other" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "security-controls-defined-as-code": { + "text": "The Security Pillar recommends defining and managing security controls as code in version-controlled templates rather than manual processes.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-security.md", + "source_url": "", + "source_hash": "f0e53ac78ea2e3ee", + "date": "2026-03-08", + "metadata": {} + }, + "security-defense-in-depth-all-layers": { + "text": "Defense in depth requires applying security controls at all layers: network edge, VPC, load balancing, compute, OS, application, and code.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-security.md", + "source_url": "", + "source_hash": "f0e53ac78ea2e3ee", + "date": "2026-03-08", + "metadata": {} + }, + "security-group-changes-apply-immediately": { + "text": "Security group rule changes take effect immediately and are automatically applied to all associated instances.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-security-groups.md", + "source_url": "", + "source_hash": "84edf14aea8ab364", + "date": "2026-03-08", + "metadata": {} + }, + "security-group-cross-vpc-same-region-association": { + "text": "Security groups can be assigned to resources in other VPCs within the same Region via the Security Group VPC Association feature.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-security-groups.md", + "source_url": "", + "source_hash": "13933c4c65c21983", + "date": "2026-03-08", + "metadata": {} + }, + "security-group-name-cannot-start-with-sg-prefix": { + "text": "Security group names must be unique within a VPC, are not case-sensitive, and cannot start with `sg-`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-security-groups.md", + "source_url": "", + "source_hash": "13933c4c65c21983", + "date": "2026-03-08", + "metadata": {} + }, + "security-group-rules-can-reference-other-security-groups": { + "text": "A security group rule can reference another security group as a source or destination, enabling group-to-group communication rules.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-security-groups.md", + "source_url": "", + "source_hash": "13933c4c65c21983", + "date": "2026-03-08", + "metadata": {} + }, + "security-groups-changeable-after-launch": { + "text": "Security groups assigned to an EC2 instance can be changed after launch.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-security-groups.md", + "source_url": "", + "source_hash": "84edf14aea8ab364", + "date": "2026-03-08", + "metadata": {} + }, + "security-groups-do-not-filter-dns-dhcp-metadata": { + "text": "Security groups do not filter traffic to/from Amazon DNS, DHCP, EC2 instance metadata (169.254.169.254), ECS task metadata, Windows license activation, Time Sync Service, or default VPC router reserved IPs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-security-groups.md", + "source_url": "", + "source_hash": "13933c4c65c21983", + "date": "2026-03-08", + "metadata": {} + }, + "security-groups-evaluate-all-rules-union": { + "text": "When multiple security groups are associated with an instance, EC2 evaluates all rules from all associated security groups together as a union.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-security-groups.md", + "source_url": "", + "source_hash": "84edf14aea8ab364", + "date": "2026-03-08", + "metadata": {} + }, + "security-groups-many-to-many-with-instances": { + "text": "Security groups have a many-to-many relationship with instances \u2014 multiple security groups can be assigned to one instance, and one security group can be assigned to multiple instances.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-security-groups.md", + "source_url": "", + "source_hash": "84edf14aea8ab364", + "date": "2026-03-08", + "metadata": {} + }, + "security-groups-no-additional-charge": { + "text": "There is no additional charge for using EC2 security groups.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-security-groups.md", + "source_url": "", + "source_hash": "84edf14aea8ab364", + "date": "2026-03-08", + "metadata": {} + }, + "security-groups-only-allow-rules-no-deny": { + "text": "Security groups support only allow rules (no deny rules); traffic not explicitly allowed is denied by default.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-security-groups.md", + "source_url": "", + "source_hash": "84edf14aea8ab364", + "date": "2026-03-08", + "metadata": {} + }, + "security-groups-resource-level-nacls-subnet-level": { + "text": "Security groups operate at the resource/ENI level, while Network ACLs operate at the subnet level.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-security-groups.md", + "source_url": "", + "source_hash": "13933c4c65c21983", + "date": "2026-03-08", + "metadata": {} + }, + "security-groups-stateful-nacls-stateless": { + "text": "Security groups are stateful (return traffic automatically allowed) while Network ACLs are stateless (return traffic must be explicitly allowed by rules).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-security-groups.md", + "source_url": "", + "source_hash": "13933c4c65c21983", + "date": "2026-03-08", + "metadata": {} + }, + "security-hardening-unverifiable-due-to-observability-ceiling": { + "text": "Complete AWS security requires coordinating multiplicative control planes across network and identity dimensions, but the observability stack that would verify correct coordination faces both a cold-start barrier (Lake KMS irrevocable, Insights 7-day delay) and a hard ceiling (automated operations invisible to CloudTrail) \u2014 security hardening is required but its correctness is structurally unverifiable.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "security-attack-surface-multiplicative-across-network-and-identity-planes", + "observability-investment-faces-cold-start-barrier-and-hard-ceiling" + ], + "outlist": [], + "label": "Multiplicative security surface (depth-3) requires precise coordination that observability (depth-3) structurally cannot verify \u2014 the gap between what must be correct and what can be observed is permanent" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "invalid" + } + }, + "security-pillar-seven-areas": { + "text": "The Security Pillar covers seven areas of cloud security: security foundations, IAM, detection, infrastructure protection, data protection, incident response, and application security.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-security.md", + "source_url": "", + "source_hash": "f0e53ac78ea2e3ee", + "date": "2026-03-08", + "metadata": {} + }, + "security-pillar-seven-design-principles": { + "text": "The Security Pillar has seven design principles: strong identity foundation, traceability, security at all layers, automate security, protect data in transit and at rest, keep people away from data, and prepare for security events.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-security.md", + "source_url": "", + "source_hash": "f0e53ac78ea2e3ee", + "date": "2026-03-08", + "metadata": {} + }, + "serverless-data-path-unverifiable-security-cascades-across-vpc": { + "text": "The Lambda-RDS data path requires coordinating three VPC control planes whose security posture is unverifiable AND any ENI misconfiguration in that path cascades across all VPC-integrated services \u2014 the most common serverless database pattern is simultaneously unauditable and contagious", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "serverless-relational-security-complex-and-unverifiable", + "lambda-rds-eni-misconfiguration-cascades-across-vpc-services" + ], + "outlist": [], + "label": "Depth-5 security unverifiability meets depth-4 misconfiguration cascade \u2014 Lambda-RDS integration has both undetectable and unbounded failure modes" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "serverless-relational-integration-inherits-full-vpc-security-complexity": { + "text": "Serverless-to-relational database integration (Lambda \u2192 RDS) requires VPC colocation and connection proxy management, which in turn requires coordinating three independent VPC security control planes (NACLs, security groups, policy isolation via Block Public Access and PrivateLink) \u2014 the simplest serverless data-tier pattern inherits the full complexity of VPC defense-in-depth.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "lambda-rds-integration-requires-vpc-colocation-and-proxy", + "vpc-defense-requires-three-coordinated-control-planes" + ], + "outlist": [], + "label": "Lambda-RDS colocation (depth-1) places serverless functions inside VPCs, inheriting the three-control-plane defense requirement (depth-2) \u2014 the \"serverless\" pattern isn't operationally simple when relational data is involved" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "serverless-relational-security-complex-and-unverifiable": { + "text": "Serverless-to-relational database integration requires coordinating three VPC control planes to secure the Lambda-RDS path, but the multiplicative security surface thus created cannot be verified correct due to the observability ceiling from automated operation blind spots and inherent audit gaps.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "serverless-relational-integration-inherits-full-vpc-security-complexity", + "security-hardening-unverifiable-due-to-observability-ceiling" + ], + "outlist": [], + "label": "Lambda-RDS forces full VPC security complexity AND that security is provably unverifiable" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "serverless-security-and-cost-posture-jointly-unverifiable": { + "text": "Serverless data paths face unverifiable VPC security cascades across three control planes AND invisible creation-time cost lock-in \u2014 neither the security posture nor the cost posture of Lambda-to-database integrations can be independently verified or corrected, making total deployment posture assessment impossible.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "serverless-data-path-unverifiable-security-cascades-across-vpc", + "creation-cost-lock-in-invisible-across-entire-lifecycle" + ], + "outlist": [], + "label": "Two independent dimensions of posture (security and cost) are both structurally unverifiable, blocking holistic assessment" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "ses-best-practice-one-recipient-per-call": { + "text": "SES best practice is to send email to one recipient at a time to avoid total rejection on failure.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ses-sending-email.md", + "source_url": "", + "source_hash": "6e0af9c99277e7ae", + "date": "2026-03-08", + "metadata": {} + }, + "ses-cloudtrail-logs-api-calls": { + "text": "CloudTrail provides audit logging of SES API calls; CloudWatch publishes SES email sending events and metrics.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ses-overview.md", + "source_url": "", + "source_hash": "28cc801f3abef4ad", + "date": "2026-03-08", + "metadata": {} + }, + "ses-console-for-testing-smtp-for-bulk": { + "text": "SES console is typically used for test emails, SMTP interface for bulk/integration sending, and SES API for raw HTTP requests.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ses-sending-email.md", + "source_url": "", + "source_hash": "6e0af9c99277e7ae", + "date": "2026-03-08", + "metadata": {} + }, + "ses-easy-dkim-route53-integration": { + "text": "SES Easy DKIM provides built-in email authentication and integrates with Route 53 for simplified DNS setup, but works with any DNS provider.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ses-overview.md", + "source_url": "", + "source_hash": "28cc801f3abef4ad", + "date": "2026-03-08", + "metadata": {} + }, + "ses-firehose-streaming-destinations": { + "text": "SES can stream sending events via Amazon Data Firehose to Redshift, OpenSearch, or S3.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ses-overview.md", + "source_url": "", + "source_hash": "28cc801f3abef4ad", + "date": "2026-03-08", + "metadata": {} + }, + "ses-iam-controls-sending-access": { + "text": "IAM controls user access to SES email sending capabilities.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ses-overview.md", + "source_url": "", + "source_hash": "28cc801f3abef4ad", + "date": "2026-03-08", + "metadata": {} + }, + "ses-multi-recipient-atomic-failure": { + "text": "When sending to multiple recipients (To, CC, BCC) in a single SES API call, if the call fails the entire email is rejected \u2014 no recipients receive it.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ses-sending-email.md", + "source_url": "", + "source_hash": "6e0af9c99277e7ae", + "date": "2026-03-08", + "metadata": {} + }, + "ses-pay-per-use-volume-pricing": { + "text": "Amazon SES uses pay-per-use pricing based on volume of emails sent and received.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ses-overview.md", + "source_url": "", + "source_hash": "28cc801f3abef4ad", + "date": "2026-03-08", + "metadata": {} + }, + "ses-receipt-rule-targets-s3-sns-workmail": { + "text": "SES receipt rules can deliver incoming email to S3 buckets, SNS topics, or Amazon WorkMail.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ses-receiving-email.md", + "source_url": "", + "source_hash": "4de97508e4669103", + "date": "2026-03-08", + "metadata": {} + }, + "ses-receipt-rules-vs-ip-filters": { + "text": "SES inbound email has two control mechanisms: receipt rules (fine-grained, recipient-based) and IP address filters (broad, IP/CIDR-based block or allow).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ses-receiving-email.md", + "source_url": "", + "source_hash": "4de97508e4669103", + "date": "2026-03-08", + "metadata": {} + }, + "ses-received-email-s3-kms-lambda": { + "text": "SES can store received emails in S3 (optionally encrypted with KMS) and trigger Lambda functions on receipt.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ses-overview.md", + "source_url": "", + "source_hash": "28cc801f3abef4ad", + "date": "2026-03-08", + "metadata": {} + }, + "ses-receiving-not-all-regions": { + "text": "SES email receiving is only available in AWS Regions that have SES inbound endpoints, not all SES regions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ses-receiving-email.md", + "source_url": "", + "source_hash": "4de97508e4669103", + "date": "2026-03-08", + "metadata": {} + }, + "ses-sns-bounce-complaint-delivery-notifications": { + "text": "Amazon SNS provides bounce, complaint, and delivery notifications for SES email sending.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ses-overview.md", + "source_url": "", + "source_hash": "28cc801f3abef4ad", + "date": "2026-03-08", + "metadata": {} + }, + "ses-spam-virus-scanning-spamhaus": { + "text": "SES automatically scans inbound email for spam and viruses and blocks mail from Spamhaus and SES block lists.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ses-receiving-email.md", + "source_url": "", + "source_hash": "4de97508e4669103", + "date": "2026-03-08", + "metadata": {} + }, + "ses-supports-sending-and-receiving": { + "text": "Amazon SES supports both sending and receiving email, not just outbound.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ses-overview.md", + "source_url": "", + "source_hash": "28cc801f3abef4ad", + "date": "2026-03-08", + "metadata": {} + }, + "ses-three-sending-methods": { + "text": "Amazon SES supports three methods for sending email: AWS SDK, SMTP interface, and SES API.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ses-overview.md", + "source_url": "", + "source_hash": "28cc801f3abef4ad", + "date": "2026-03-08", + "metadata": {} + }, + "sigv4-request-five-minute-replay-window": { + "text": "AWS rejects SigV4-signed requests that arrive more than 5 minutes after the request timestamp as anti-replay protection.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_aws-signinghtml.md", + "source_url": "", + "source_hash": "389d739937adcf5d", + "date": "2026-03-12", + "metadata": {} + }, + "sigv4-scoped-to-service-region-date": { + "text": "SigV4 signing keys are scoped to a specific service, region, and date \u2014 each signature is region-specific and cannot be reused across regions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_aws-signinghtml.md", + "source_url": "", + "source_hash": "389d739937adcf5d", + "date": "2026-03-12", + "metadata": {} + }, + "sigv4a-ecdsa-multi-region-signing": { + "text": "SigV4a uses ECDSA (asymmetric cryptography) to derive a public-private keypair, enabling a single signature to be valid across multiple regions \u2014 required for multi-region API requests like S3 Multi-Region Access Points.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-reference_aws-signinghtml.md", + "source_url": "", + "source_hash": "389d739937adcf5d", + "date": "2026-03-12", + "metadata": {} + }, + "silent-data-layer-degradation-invisible-to-audit-layer": { + "text": "DR posture degrades silently from feature toggles (PITR resets, auto-scaling loss) while event-driven observability has independent gaps at both CDC source and CloudTrail audit layers \u2014 the two layers fail independently and neither detects the other's degradation.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "lifecycle-transitions-silently-degrade-dr-posture", + "event-driven-observability-gaps-at-source-and-audit-layers" + ], + "outlist": [], + "label": "Data-layer silent degradation + audit-layer independent gaps = cross-layer failure invisibility" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "silent-degradation-spans-data-dr-and-audit-independently": { + "text": "Silent degradation occurs simultaneously and independently across data, DR, and audit layers \u2014 data-layer CDC degradation is invisible to the audit layer, and DR posture degradation is undetectable until disaster \u2014 meaning no single monitoring investment or layer can detect the full scope of configuration drift.", + "truth_value": "OUT", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "silent-data-layer-degradation-invisible-to-audit-layer", + "dr-posture-degradation-undetectable-until-disaster" + ], + "outlist": [], + "label": "data degradation invisible to audit + DR degradation invisible until disaster = no layer can observe any other layer's drift" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "sns-fifo-topics-fan-out-to-sqs-fifo": { + "text": "SNS FIFO topics can fan out to SQS FIFO queues while preserving message ordering.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-fifo-queues.md", + "source_url": "", + "source_hash": "534c83fc9a54c88a", + "date": "2026-03-08", + "metadata": {} + }, + "spot-capacity-pool-same-type-and-az": { + "text": "A Spot capacity pool is a set of unused EC2 instances sharing the same instance type and Availability Zone.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-spot-instances.md", + "source_url": "", + "source_hash": "b1460a1f8386ee93", + "date": "2026-03-08", + "metadata": {} + }, + "spot-group-constraints-terminate-together": { + "text": "Spot Instances with launch group or Availability Zone group constraints are terminated together as a group when the constraints can no longer be met.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-spot-interruptionshtml.md", + "source_url": "", + "source_hash": "3109f685fe341468", + "date": "2026-03-12", + "metadata": {} + }, + "spot-hibernate-interruption-immediate-no-2min": { + "text": "When a Spot Instance's interruption behavior is set to hibernate, the interruption begins immediately with no 2-minute delay (unlike stop and terminate).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-initiate-a-spot-instance-interruptionhtml.md", + "source_url": "", + "source_hash": "2cde2f9e7a69b67e", + "date": "2026-03-12", + "metadata": {} + }, + "spot-instances-2-minute-interruption-notice": { + "text": "When AWS needs Spot capacity back, it interrupts the instance with a two-minute warning notice.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-spot-instances.md", + "source_url": "", + "source_hash": "b1460a1f8386ee93", + "date": "2026-03-08", + "metadata": {} + }, + "spot-instances-not-covered-by-savings-plans": { + "text": "Spot Instances are not covered by Savings Plans, and Spot spend does not count toward Compute Savings Plans commitments.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-spot-instances.md", + "source_url": "", + "source_hash": "b1460a1f8386ee93", + "date": "2026-03-08", + "metadata": {} + }, + "spot-instances-up-to-90-percent-savings": { + "text": "EC2 Spot Instances provide up to 90% savings over On-Demand pricing by using spare EC2 capacity.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-spot-instances.md", + "source_url": "", + "source_hash": "b1460a1f8386ee93", + "date": "2026-03-08", + "metadata": {} + }, + "spot-interruption-actions-terminate-stop-hibernate": { + "text": "When AWS reclaims Spot capacity, it can terminate, stop, or hibernate the Spot Instance (depending on configuration and backing store).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-spot-instances.md", + "source_url": "", + "source_hash": "b1460a1f8386ee93", + "date": "2026-03-08", + "metadata": {} + }, + "spot-interruption-test-default-quota-5": { + "text": "The default quota for Spot Instance interruption experiments is 5 Spot Instances per experiment per region (adjustable via Service Quotas).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-initiate-a-spot-instance-interruptionhtml.md", + "source_url": "", + "source_hash": "2cde2f9e7a69b67e", + "date": "2026-03-12", + "metadata": {} + }, + "spot-interruption-test-via-fis-console": { + "text": "Spot Instance interruptions can be manually initiated for testing via the EC2 console, which uses AWS FIS under the hood with the action `aws:ec2:send-spot-instance-interruptions`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-initiate-a-spot-instance-interruptionhtml.md", + "source_url": "", + "source_hash": "2cde2f9e7a69b67e", + "date": "2026-03-12", + "metadata": {} + }, + "spot-interruption-three-reasons": { + "text": "Spot Instances can be interrupted for three reasons: capacity (EC2 needs it back), price (Spot price exceeds max price), and constraints (launch group or AZ group constraints can't be met).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-spot-interruptionshtml.md", + "source_url": "", + "source_hash": "3109f685fe341468", + "date": "2026-03-12", + "metadata": {} + }, + "spot-max-price-increases-interruption-frequency": { + "text": "Specifying a maximum price for Spot Instances increases interruption frequency compared to not specifying one.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-spot-interruptionshtml.md", + "source_url": "", + "source_hash": "3109f685fe341468", + "date": "2026-03-12", + "metadata": {} + }, + "spot-persistent-request-auto-resubmit": { + "text": "Persistent Spot Instance requests are automatically resubmitted after interruption; one-time requests are not.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-spot-instances.md", + "source_url": "", + "source_hash": "b1460a1f8386ee93", + "date": "2026-03-08", + "metadata": {} + }, + "spot-price-history-available-3-months": { + "text": "Spot price history is available for the past 3 months via `aws ec2 describe-spot-price-history`; current prices update every 5 minutes on the console.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-spot-instances.md", + "source_url": "", + "source_hash": "b1460a1f8386ee93", + "date": "2026-03-08", + "metadata": {} + }, + "spot-price-set-by-aws-long-term-supply-demand": { + "text": "The Spot Instance price is set by Amazon EC2 and adjusted gradually based on long-term supply and demand trends, not by customer bidding.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-spot-instances.md", + "source_url": "", + "source_hash": "b1460a1f8386ee93", + "date": "2026-03-08", + "metadata": {} + }, + "spot-rebalance-recommendation-before-interruption": { + "text": "EC2 instance rebalance recommendation is a proactive signal indicating elevated interruption risk, delivered before the 2-minute interruption notice.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/ec2-spot-instances.md", + "source_url": "", + "source_hash": "b1460a1f8386ee93", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-cloudtrail-data-events-not-logged-by-default": { + "text": "SQS data events (SendMessage, ReceiveMessage, etc.) are not logged by CloudTrail by default \u2014 they must be explicitly enabled via advanced event selectors using resource type `AWS::SQS::Queue`, and incur additional charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSSimpleQueueService-latest-SQSDeveloperGuide-sqs-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "1d3337c92193200c", + "date": "2026-03-12", + "metadata": {} + }, + "sqs-cloudtrail-management-events-logged-by-default": { + "text": "SQS management events (CreateQueue, DeleteQueue, SetQueueAttributes, PurgeQueue, etc.) are logged by CloudTrail by default at no additional charge.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSSimpleQueueService-latest-SQSDeveloperGuide-sqs-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "1d3337c92193200c", + "date": "2026-03-12", + "metadata": {} + }, + "sqs-cloudtrail-message-body-hidden": { + "text": "SQS message body content is never recorded in CloudTrail logs \u2014 it appears as `\"HIDDEN_DUE_TO_SECURITY_REASONS\"`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSSimpleQueueService-latest-SQSDeveloperGuide-sqs-logging-using-cloudtrailhtml.md", + "source_url": "", + "source_hash": "1d3337c92193200c", + "date": "2026-03-12", + "metadata": {} + }, + "sqs-consumers-must-delete-messages": { + "text": "SQS messages are not automatically deleted after consumption \u2014 consumers must explicitly delete them.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-overview.md", + "source_url": "", + "source_hash": "13faf36e12b9e289", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-cost-allocation-tags-supported": { + "text": "SQS supports cost allocation tags for billing tracking.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-overview.md", + "source_url": "", + "source_hash": "13faf36e12b9e289", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-dead-letter-queues-failed-messages": { + "text": "SQS dead-letter queues are available for handling messages that fail processing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-overview.md", + "source_url": "", + "source_hash": "13faf36e12b9e289", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-default-retention-4-days-max-14-days": { + "text": "SQS default message retention is 4 days; configurable from 60 seconds to 14 days (1,209,600 seconds).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-overview.md", + "source_url": "", + "source_hash": "13faf36e12b9e289", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-delay-queues-default-delay": { + "text": "SQS delay queues allow setting a default delay on message delivery, postponing visibility of new messages.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-overview.md", + "source_url": "", + "source_hash": "13faf36e12b9e289", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-dlq-cloudwatch-alarm-monitoring": { + "text": "CloudWatch alarms can be configured to alert on messages arriving in an SQS dead-letter queue; the `ApproximateAgeOfOldestMessage` metric behavior differs between standard and FIFO queues.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-dead-letter-queues.md", + "source_url": "", + "source_hash": "b785706ca5ff25f1", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-dlq-default-redrive-allow-policy-allow-all": { + "text": "The default SQS redrive allow policy is allowAll, meaning all source queues are allowed to use a dead-letter queue unless explicitly restricted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-dead-letter-queues.md", + "source_url": "", + "source_hash": "b785706ca5ff25f1", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-dlq-is-regular-queue-configured-as-dlq": { + "text": "An SQS dead-letter queue must be created as a regular queue first, then configured as a DLQ via a redrive policy on the source queue.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-dead-letter-queues.md", + "source_url": "", + "source_hash": "b785706ca5ff25f1", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-dlq-maxreceivecount-controls-transfer": { + "text": "The SQS redrive policy's maxReceiveCount parameter controls how many times a message can be received before being moved to the dead-letter queue.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-dead-letter-queues.md", + "source_url": "", + "source_hash": "b785706ca5ff25f1", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-dlq-redrive-allow-policy-max-10-arns": { + "text": "SQS redrive allow policy in byQueue mode supports a maximum of 10 source queue ARNs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-dead-letter-queues.md", + "source_url": "", + "source_hash": "b785706ca5ff25f1", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-dlq-retention-should-exceed-source": { + "text": "SQS DLQ retention period should be longer than the source queue's retention period to avoid premature message deletion.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-dead-letter-queues.md", + "source_url": "", + "source_hash": "b785706ca5ff25f1", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-dlq-retention-timestamp-standard-vs-fifo": { + "text": "Standard SQS queues retain the original enqueue timestamp when moving messages to the DLQ; FIFO queues reset the enqueue timestamp.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-dead-letter-queues.md", + "source_url": "", + "source_hash": "b785706ca5ff25f1", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-dlq-same-account-and-region": { + "text": "SQS source queue and its dead-letter queue should be in the same AWS account and Region.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-dead-letter-queues.md", + "source_url": "", + "source_hash": "b785706ca5ff25f1", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-dlq-supports-redrive-to-source": { + "text": "SQS dead-letter queues support redrive, which moves messages back to the source queue for reprocessing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-dead-letter-queues.md", + "source_url": "", + "source_hash": "b785706ca5ff25f1", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-extended-client-library-s3-over-1mib": { + "text": "For SQS messages larger than 1 MiB, use the Amazon SQS Extended Client Library with S3, where SQS holds a pointer to the S3 object.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-overview.md", + "source_url": "", + "source_hash": "13faf36e12b9e289", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-fifo-batch-max-10-may-mix-groups": { + "text": "SQS FIFO ReceiveMessage returns up to 10 messages (via MaxNumberOfMessages), preferring the same group ID but may mix groups if fewer than 10 are available in a single group.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-fifo-queues.md", + "source_url": "", + "source_hash": "534c83fc9a54c88a", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-fifo-dedup-id-idempotent-retries": { + "text": "Producer retries with the same SQS FIFO deduplication ID are idempotent \u2014 no duplicates are introduced and ordering is preserved.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-fifo-queues.md", + "source_url": "", + "source_hash": "534c83fc9a54c88a", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-fifo-dlq-breaks-ordering": { + "text": "Using a dead-letter queue with SQS FIFO queues can break strict message ordering.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-dead-letter-queues.md", + "source_url": "", + "source_hash": "b785706ca5ff25f1", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-fifo-dlq-must-be-fifo": { + "text": "A dead-letter queue used with an SQS FIFO queue must also be a FIFO queue.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-fifo-queues.md", + "source_url": "", + "source_hash": "534c83fc9a54c88a", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-fifo-message-group-id-mandatory": { + "text": "A message group ID is mandatory for every message sent to an SQS FIFO queue \u2014 the send fails without it.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-fifo-queues.md", + "source_url": "", + "source_hash": "534c83fc9a54c88a", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-fifo-no-selective-consumption-by-group": { + "text": "SQS FIFO consumers cannot selectively request messages from a specific message group ID.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-fifo-queues.md", + "source_url": "", + "source_hash": "534c83fc9a54c88a", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-fifo-ordering-guarantees-fragile-across-two-dimensions": { + "text": "SQS FIFO ordering guarantees are doubly fragile: ordering applies only within a single message group ID (cross-group messages may interleave) AND using a dead-letter queue breaks even intra-group ordering \u2014 applications requiring strict global ordering cannot rely on FIFO semantics alone.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "sqs-fifo-ordering-per-message-group-id", + "sqs-fifo-dlq-breaks-ordering" + ], + "outlist": [], + "label": "Two independent ordering fragility points mean FIFO provides weaker guarantees than the name implies" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "sqs-fifo-ordering-per-message-group-id": { + "text": "SQS FIFO ordering guarantees apply per message group ID only; messages across different group IDs may be delivered out of order relative to each other.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-fifo-queues.md", + "source_url": "", + "source_hash": "534c83fc9a54c88a", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-fifo-single-group-id-global-ordering-no-parallelism": { + "text": "Using a single message group ID for all messages in an SQS FIFO queue enforces strict global ordering but eliminates parallelism.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-fifo-queues.md", + "source_url": "", + "source_hash": "534c83fc9a54c88a", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-fifo-visibility-timeout-blocks-entire-group": { + "text": "In SQS FIFO queues, while a message from a group is in-flight (received but not deleted), no additional messages from that same group are returned until the message is deleted or becomes visible again.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-fifo-queues.md", + "source_url": "", + "source_hash": "534c83fc9a54c88a", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-fifo-vs-standard-tradeoff": { + "text": "SQS FIFO queues provide strict ordering and exactly-once delivery but have lower throughput limits compared to standard queues.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-standard-queues.md", + "source_url": "", + "source_hash": "808d3c3f48c61ff5", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-messages-larger-than-1mib-s3-or-dynamodb": { + "text": "SQS messages larger than 1 MiB can be stored in S3 or DynamoDB, with SQS holding a pointer to the payload.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-overview.md", + "source_url": "", + "source_hash": "13faf36e12b9e289", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-scales-transparently-no-provisioning": { + "text": "SQS scales transparently with no provisioning or capacity planning required.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-overview.md", + "source_url": "", + "source_hash": "13faf36e12b9e289", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-set-queue-attributes-api-configures-queue": { + "text": "The SQS SetQueueAttributes API action is used to configure queue attributes such as message retention period.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-overview.md", + "source_url": "", + "source_hash": "13faf36e12b9e289", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-sns-async-amazon-mq-sync-and-async": { + "text": "SNS and SQS support only asynchronous messaging; Amazon MQ supports both synchronous and asynchronous messaging.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-overview.md", + "source_url": "", + "source_hash": "13faf36e12b9e289", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-sns-fanout-pattern": { + "text": "SQS + SNS fanout pattern delivers messages to multiple subscribers by having SNS push to multiple SQS queues.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-overview.md", + "source_url": "", + "source_hash": "13faf36e12b9e289", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-sse-default-sqs-managed-or-kms": { + "text": "SQS supports server-side encryption via SQS-managed keys (default) or AWS KMS-managed keys.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-overview.md", + "source_url": "", + "source_hash": "13faf36e12b9e289", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-standard-at-least-once-delivery": { + "text": "SQS standard queues provide at-least-once delivery semantics; duplicate delivery is possible.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-standard-queues.md", + "source_url": "", + "source_hash": "808d3c3f48c61ff5", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-standard-at-least-once-fifo-exactly-once": { + "text": "SQS standard queues guarantee at-least-once delivery; FIFO queues guarantee exactly-once processing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-overview.md", + "source_url": "", + "source_hash": "13faf36e12b9e289", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-standard-best-effort-ordering": { + "text": "SQS standard queues provide only best-effort ordering; messages may arrive out of order.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-standard-queues.md", + "source_url": "", + "source_hash": "808d3c3f48c61ff5", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-standard-multi-az-redundancy": { + "text": "SQS standard queue messages are stored redundantly across multiple Availability Zones before send acknowledgment is returned.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-standard-queues.md", + "source_url": "", + "source_hash": "808d3c3f48c61ff5", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-standard-nearly-unlimited-throughput": { + "text": "SQS standard queues support nearly unlimited API calls per second for SendMessage, ReceiveMessage, and DeleteMessage.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-standard-queues.md", + "source_url": "", + "source_hash": "808d3c3f48c61ff5", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-standard-queue-back-of-queue-after-3-receives": { + "text": "For SQS standard queues with maxReceiveCount greater than 3, messages received 3 or more times without deletion are moved to the back of the queue (separate from DLQ behavior).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-dead-letter-queues.md", + "source_url": "", + "source_hash": "b785706ca5ff25f1", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-standard-queue-is-default-type": { + "text": "SQS standard queues are the default queue type when creating an SQS queue.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-standard-queues.md", + "source_url": "", + "source_hash": "808d3c3f48c61ff5", + "date": "2026-03-08", + "metadata": {} + }, + "sqs-visibility-timeout-hides-during-processing": { + "text": "SQS visibility timeout hides a message from other consumers while it is being processed; if not deleted before timeout expires, the message becomes visible again.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/sqs-overview.md", + "source_url": "", + "source_hash": "13faf36e12b9e289", + "date": "2026-03-08", + "metadata": {} + }, + "sts-assume-role-returns-three-components": { + "text": "`sts:AssumeRole` returns three components: AccessKeyId, SecretAccessKey, and SessionToken (with an expiration time).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-cross-account.md", + "source_url": "", + "source_hash": "e48a1ca4eb9cc426", + "date": "2026-03-08", + "metadata": {} + }, + "sts-credentials-expire-no-revocation-needed": { + "text": "STS temporary credentials automatically expire and do not need explicit revocation; after expiration they cannot be reused.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-temporary-credentials.md", + "source_url": "", + "source_hash": "ce85495c84417561", + "date": "2026-03-08", + "metadata": {} + }, + "sts-custom-identity-broker-for-non-saml": { + "text": "A custom identity broker can be built for organizations whose identity provider does not support SAML 2.0, to enable federation with AWS.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-temporary-credentials.md", + "source_url": "", + "source_hash": "ce85495c84417561", + "date": "2026-03-08", + "metadata": {} + }, + "sts-global-endpoint-url": { + "text": "The global STS endpoint is `https://sts.amazonaws.com`; regional endpoints are also available, and credentials from any region work globally.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-temporary-credentials.md", + "source_url": "", + "source_hash": "ce85495c84417561", + "date": "2026-03-08", + "metadata": {} + }, + "sts-regional-endpoints-reduce-latency": { + "text": "STS regional endpoints are available in all supported regions to reduce latency; credentials issued by any regional endpoint work globally.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-temporary-credentials.md", + "source_url": "", + "source_hash": "ce85495c84417561", + "date": "2026-03-08", + "metadata": {} + }, + "sts-source-identity-immutable-once-set": { + "text": "Source identity (`sts:SourceIdentity`) is immutable once set during an STS call \u2014 it cannot be changed during role chaining, and attempts to change it are denied.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/IAM-latest-UserGuide-cloudtrail-integrationhtml.md", + "source_url": "", + "source_hash": "cb7bc3bfff11f21a", + "date": "2026-03-12", + "metadata": {} + }, + "sts-source-identity-tracks-original-caller": { + "text": "The `SourceIdentity` attribute can be set during STS calls to trace the original caller through a chain of role assumptions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-temporary-credentials.md", + "source_url": "", + "source_hash": "ce85495c84417561", + "date": "2026-03-08", + "metadata": {} + }, + "sts-temporary-credentials-three-components": { + "text": "STS temporary credentials consist of three components: an access key ID, a secret access key, and a session token \u2014 all three are required for API calls.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/iam-temporary-credentials.md", + "source_url": "", + "source_hash": "ce85495c84417561", + "date": "2026-03-08", + "metadata": {} + }, + "subnet-associated-with-exactly-one-route-table": { + "text": "Each subnet is associated with exactly one route table; subnets not explicitly associated use the VPC's main route table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-route-tables.md", + "source_url": "", + "source_hash": "c59fc3da90d3e192", + "date": "2026-03-08", + "metadata": {} + }, + "subnet-auto-assign-ip-overridable-per-instance": { + "text": "The subnet auto-assign public IP setting can be overridden on a per-instance basis at launch time.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-subnets.md", + "source_url": "", + "source_hash": "d4faa1e970199eeb", + "date": "2026-03-08", + "metadata": {} + }, + "subnet-cannot-span-availability-zones": { + "text": "A VPC subnet must reside entirely within one Availability Zone \u2014 it cannot span multiple AZs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-subnets.md", + "source_url": "", + "source_hash": "d4faa1e970199eeb", + "date": "2026-03-08", + "metadata": {} + }, + "subnet-defaults-main-route-table-and-default-nacl": { + "text": "Every subnet is automatically associated with the VPC's main route table and default NACL unless explicitly changed to a custom route table or NACL.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-subnets.md", + "source_url": "", + "source_hash": "d4faa1e970199eeb", + "date": "2026-03-08", + "metadata": {} + }, + "subnet-four-types-public-private-vpn-isolated": { + "text": "VPC subnets have four types based on routing: public (route to IGW), private (NAT for internet), VPN-only (route to virtual private gateway), and isolated (no routes outside the VPC).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-subnets.md", + "source_url": "", + "source_hash": "d4faa1e970199eeb", + "date": "2026-03-08", + "metadata": {} + }, + "subnet-three-addressing-modes": { + "text": "A VPC subnet supports three IP addressing modes: IPv4 only, dual stack (both IPv4 and IPv6), or IPv6 only.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-subnets.md", + "source_url": "", + "source_hash": "d4faa1e970199eeb", + "date": "2026-03-08", + "metadata": {} + }, + "subnet-type-determined-by-route-table": { + "text": "Subnet type (public, private, VPN-only, isolated) is determined by its route table configuration, not by an explicit subnet property \u2014 a public subnet simply has a route to an internet gateway.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-subnets.md", + "source_url": "", + "source_hash": "d4faa1e970199eeb", + "date": "2026-03-08", + "metadata": {} + }, + "swf-data-events-resource-type-domain": { + "text": "Amazon SWF data events use `AWS::SWF::Domain` as the CloudTrail resource type for advanced event selectors.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazonswf-latest-developerguide-ct-logginghtml.md", + "source_url": "", + "source_hash": "697081f6ac8c0d96", + "date": "2026-03-12", + "metadata": {} + }, + "swf-respond-decision-generates-n-plus-1-events": { + "text": "SWF `RespondDecisionTaskCompleted` generates N+1 CloudTrail data events (one per decision plus one for the API call itself), all sharing the same request ID.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/amazonswf-latest-developerguide-ct-logginghtml.md", + "source_url": "", + "source_hash": "697081f6ac8c0d96", + "date": "2026-03-12", + "metadata": {} + }, + "target-tracking-auto-manages-cloudwatch-alarms": { + "text": "Application Auto Scaling target tracking policies automatically create and manage CloudWatch alarms \u2014 no manual alarm configuration is needed.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/autoscaling-application-userguide-application-auto-scaling-target-trackinghtml.md", + "source_url": "", + "source_hash": "1cf3a574cdbaa85a", + "date": "2026-03-12", + "metadata": {} + }, + "target-tracking-metric-inversely-proportional": { + "text": "Application Auto Scaling target tracking requires the chosen metric to change inversely proportional to capacity (e.g., doubling capacity should halve the metric value) for correct scaling behavior.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/autoscaling-application-userguide-application-auto-scaling-target-trackinghtml.md", + "source_url": "", + "source_hash": "1cf3a574cdbaa85a", + "date": "2026-03-12", + "metadata": {} + }, + "target-tracking-predefined-and-custom-metrics": { + "text": "Application Auto Scaling target tracking supports both predefined metrics (e.g., average CPU utilization) and custom metrics including metric math combinations.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/autoscaling-application-userguide-application-auto-scaling-target-trackinghtml.md", + "source_url": "", + "source_hash": "1cf3a574cdbaa85a", + "date": "2026-03-12", + "metadata": {} + }, + "tgw-hub-and-spoke-architecture": { + "text": "AWS Transit Gateway uses a hub-and-spoke architecture to connect multiple VPCs and on-premises networks through a single gateway.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-transit-gateway.md", + "source_url": "", + "source_hash": "69e80f48cbdcdea3", + "date": "2026-03-08", + "metadata": {} + }, + "tgw-mtu-8500-vpc-1500-vpn": { + "text": "Transit Gateway supports an MTU of 8500 bytes for VPC attachments but only 1500 bytes for VPN attachments.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-transit-gateway.md", + "source_url": "", + "source_hash": "69e80f48cbdcdea3", + "date": "2026-03-08", + "metadata": {} + }, + "tgw-route-propagation-static-or-bgp": { + "text": "Transit Gateway route propagation uses static routes or BGP depending on the attachment type (VPN attachments support BGP).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-transit-gateway.md", + "source_url": "", + "source_hash": "69e80f48cbdcdea3", + "date": "2026-03-08", + "metadata": {} + }, + "transit-gateway-flow-logs-separate-feature": { + "text": "Transit Gateway Flow Logs are a separate feature from VPC Flow Logs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-flow-logs.md", + "source_url": "", + "source_hash": "045b04575cc4c09e", + "date": "2026-03-08", + "metadata": {} + }, + "trusted-advisor-event-source-trustedadvisor": { + "text": "The CloudTrail event source for Trusted Advisor console actions is `trustedadvisor.amazonaws.com`, while Trusted Advisor API operations use `support.amazonaws.com`.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/12/awssupport-latest-user-logging-using-cloudtrail-for-aws-trusted-advisorhtml.md", + "source_url": "", + "source_hash": "d8c31b893e849929", + "date": "2026-03-12", + "metadata": {} + }, + "vpc-api-actions-use-ec2-namespace": { + "text": "VPC API actions are part of the EC2 API namespace \u2014 there is no separate VPC service endpoint; IAM actions use the `ec2:` prefix (e.g., `ec2:CreateVpc`).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-OperationList-query-vpchtml.md", + "source_url": "", + "source_hash": "55ce6c6f6c11d4b3", + "date": "2026-03-12", + "metadata": {} + }, + "vpc-block-public-access-feature": { + "text": "VPC Block Public Access is a VPC-level feature that blocks internet access with exclusion mechanisms for specific resources.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-OperationList-query-vpchtml.md", + "source_url": "", + "source_hash": "55ce6c6f6c11d4b3", + "date": "2026-03-12", + "metadata": {} + }, + "vpc-cross-account-resource-sharing-requires-ram": { + "text": "Cross-account sharing of PrivateLink resource configurations and service networks requires AWS RAM.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-endpoints.md", + "source_url": "", + "source_hash": "50772dd62090463c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-custom-dns-requires-dhcp-option-set": { + "text": "Replacing the default Amazon DNS with a custom DNS server requires creating a new DHCP option set for the VPC.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-dns.md", + "source_url": "", + "source_hash": "920f3848404a4d59", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-default-can-be-recreated": { + "text": "The `CreateDefaultVpc` and `CreateDefaultSubnet` APIs can recreate default VPC resources if they were deleted.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-OperationList-query-vpchtml.md", + "source_url": "", + "source_hash": "55ce6c6f6c11d4b3", + "date": "2026-03-12", + "metadata": {} + }, + "vpc-defense-requires-three-coordinated-control-planes": { + "text": "Complete VPC security requires coordinating three independent control planes \u2014 network segmentation (NACLs + security groups), policy isolation (Block Public Access + resource policies), and service connectivity (PrivateLink + VPC endpoints) \u2014 a gap in any one plane undermines the others.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "vpc-security-enforced-at-two-independent-layers", + "vpc-isolation-creates-defense-in-depth-with-policy-controls", + "privatelink-enables-vpc-isolated-service-access-without-internet" + ], + "outlist": [], + "label": "Network, policy, and service layers must all be configured for defense-in-depth to hold" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "unnecessary" + } + }, + "vpc-dns-hostname-tied-to-public-and-private-ip": { + "text": "EC2 instance DNS hostnames are tied to both the public and private IP addresses of the instance based on VPC DNS settings.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-dns.md", + "source_url": "", + "source_hash": "920f3848404a4d59", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-dns-server-at-base-plus-two": { + "text": "The Amazon-provided DNS server is available at `169.254.169.253` or at the VPC network range base address plus two.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-resource-ec2-vpchtml.md", + "source_url": "", + "source_hash": "a2ee1634d69ad9c2", + "date": "2026-03-12", + "metadata": {} + }, + "vpc-dns-support-enabled-hostnames-disabled-default": { + "text": "For non-default VPCs, `EnableDnsSupport` is enabled by default but `EnableDnsHostnames` is disabled by default; DNS hostnames require DNS support to be enabled.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-resource-ec2-vpchtml.md", + "source_url": "", + "source_hash": "a2ee1634d69ad9c2", + "date": "2026-03-12", + "metadata": {} + }, + "vpc-endpoint-eni-ipv6-deny-all-igw-traffic": { + "text": "VPC endpoint network interface IPv6 addresses have `denyAllIgwTraffic` enabled \u2014 they are unreachable from the internet.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-endpoints.md", + "source_url": "", + "source_hash": "50772dd62090463c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-endpoint-eni-security-groups-supported": { + "text": "Security groups can be applied to VPC endpoint network interfaces to control traffic.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-endpoints.md", + "source_url": "", + "source_hash": "50772dd62090463c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-endpoint-policy-default-allow-all": { + "text": "VPC endpoint policies are IAM resource policies that default to allowing all actions by all principals.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-endpoints.md", + "source_url": "", + "source_hash": "50772dd62090463c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-endpoint-services-not-public-by-default": { + "text": "VPC endpoint services are not publicly available by default \u2014 providers must explicitly grant permissions to consumers.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-endpoints.md", + "source_url": "", + "source_hash": "50772dd62090463c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-endpoints-private-access-no-igw-nat": { + "text": "VPC Endpoints allow private access to AWS services without requiring an internet gateway or NAT device.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-overview.md", + "source_url": "", + "source_hash": "bf7b79e62bf79dd0", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-five-endpoint-types": { + "text": "VPC supports five endpoint types: interface, GatewayLoadBalancer, resource, service network, and gateway (only gateway does not use AWS PrivateLink).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-endpoints.md", + "source_url": "", + "source_hash": "50772dd62090463c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-flow-logs-capture-metadata-not-contents": { + "text": "VPC Flow Logs capture IP traffic metadata (not packet contents) for network interfaces within a VPC.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-flow-logs.md", + "source_url": "", + "source_hash": "045b04575cc4c09e", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-flow-logs-cost-allocation-tags": { + "text": "Cost allocation tags can be applied to VPC Flow Log destination resources to track flow log costs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-flow-logs.md", + "source_url": "", + "source_hash": "045b04575cc4c09e", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-flow-logs-no-network-impact": { + "text": "VPC Flow Logs are collected outside the network traffic path and have zero impact on network throughput or latency.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-flow-logs.md", + "source_url": "", + "source_hash": "045b04575cc4c09e", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-flow-logs-three-destinations": { + "text": "VPC Flow Logs can be published to three destinations: CloudWatch Logs, Amazon S3, or Amazon Data Firehose.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-flow-logs.md", + "source_url": "", + "source_hash": "045b04575cc4c09e", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-flow-logs-vended-log-pricing": { + "text": "VPC Flow Log charges fall under vended logs pricing (data ingestion and archival), not standard CloudWatch pricing.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-flow-logs.md", + "source_url": "", + "source_hash": "045b04575cc4c09e", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-flow-logs-vpc-subnet-or-eni-level": { + "text": "VPC Flow Logs can be created at the VPC, subnet, or network interface level.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-flow-logs.md", + "source_url": "", + "source_hash": "045b04575cc4c09e", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-four-public-ipv4-address-types": { + "text": "AWS has four public IPv4 address types: Elastic IP (EIP), EC2 auto-assigned, BYOIPv4 (bring your own), and service-managed (auto-provisioned by RDS, ECS, WorkSpaces, etc.).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-overview.md", + "source_url": "", + "source_hash": "bf7b79e62bf79dd0", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-gateway-endpoints-s3-dynamodb-no-privatelink": { + "text": "Gateway VPC endpoints (for S3 and DynamoDB only) do not use AWS PrivateLink \u2014 all other endpoint types do.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-endpoints.md", + "source_url": "", + "source_hash": "50772dd62090463c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-interface-endpoints-use-dns-gwlb-use-route-tables": { + "text": "Interface VPC endpoints use DNS resolution to direct traffic to endpoint services; Gateway Load Balancer endpoints use route table entries instead.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-endpoints.md", + "source_url": "", + "source_hash": "50772dd62090463c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-isolation-creates-defense-in-depth-with-policy-controls": { + "text": "VPC-only services (DAX, Lambda) combined with PrivateLink and S3 Block Public Access create layered defense where data access requires both network reachability AND policy authorization.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "dax-runs-exclusively-within-vpc", + "privatelink-no-public-infrastructure-required", + "s3-block-public-access-default-bucket-account-org", + "lambda-vpc-secrets-manager-requires-vpc-endpoint" + ], + "outlist": [], + "label": "Spans security + networking: network isolation and policy controls are independent \u2014 compromising one doesn't bypass the other" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "unnecessary" + } + }, + "vpc-itself-is-free": { + "text": "The VPC itself is free; charges apply for NAT gateways, traffic mirroring, IPAM, public IPv4 addresses, and Reachability/Network Access Analyzer.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-overview.md", + "source_url": "", + "source_hash": "bf7b79e62bf79dd0", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-local-route-cannot-be-deleted": { + "text": "The local route for intra-VPC traffic is automatically included in every route table and cannot be deleted, but its target can be replaced.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-route-tables.md", + "source_url": "", + "source_hash": "c59fc3da90d3e192", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-main-route-table-automatic": { + "text": "Every VPC automatically gets a main route table; subnets not explicitly associated with a custom route table use the main route table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-route-tables.md", + "source_url": "", + "source_hash": "c59fc3da90d3e192", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-main-route-table-cannot-delete-while-main": { + "text": "The main route table can be replaced with a custom route table but cannot be deleted while it is designated as the main route table.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-route-tables.md", + "source_url": "", + "source_hash": "c59fc3da90d3e192", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-managed-prefix-lists-support-versioning": { + "text": "Managed Prefix Lists are reusable sets of CIDR blocks that can be referenced in security groups and route tables, and support versioning with the ability to restore to previous versions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-OperationList-query-vpchtml.md", + "source_url": "", + "source_hash": "55ce6c6f6c11d4b3", + "date": "2026-03-12", + "metadata": {} + }, + "vpc-peering-cross-account-cross-region": { + "text": "VPC peering connections can be established within the same account, across accounts, or across regions.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-peering.md", + "source_url": "", + "source_hash": "91ce6e9c66fee80c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-peering-instances-communicate-as-same-network": { + "text": "Instances in peered VPCs communicate as if they are on the same network, using private IPv4 or IPv6 addresses.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-peering.md", + "source_url": "", + "source_hash": "91ce6e9c66fee80c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-peering-inter-region-encrypted-aws-backbone": { + "text": "Inter-region VPC peering traffic is encrypted and stays on the AWS global backbone \u2014 it never traverses the public internet.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-peering.md", + "source_url": "", + "source_hash": "91ce6e9c66fee80c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-peering-inter-region-mtu-8500": { + "text": "Inter-region VPC peering connections support up to 8500 MTU (not the full 9001 jumbo frame size).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-UserGuide-network_mtuhtml.md", + "source_url": "", + "source_hash": "2a5ba8fb82b39ee9", + "date": "2026-03-12", + "metadata": {} + }, + "vpc-peering-no-creation-charge": { + "text": "There is no charge to create a VPC peering connection; data transfer within the same AZ over peering is free (even cross-account), but cross-AZ and cross-region transfers incur charges.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-peering.md", + "source_url": "", + "source_hash": "91ce6e9c66fee80c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-peering-non-transitive": { + "text": "VPC peering connections are non-transitive \u2014 if VPC A peers with VPC B and VPC B peers with VPC C, VPC A cannot reach VPC C through VPC B.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-peering.md", + "source_url": "", + "source_hash": "91ce6e9c66fee80c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-peering-not-gateway-vpn-or-hardware": { + "text": "VPC peering is a distinct connection type \u2014 it is not a gateway, VPN, or physical hardware, and has no single point of failure or bandwidth bottleneck.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-peering.md", + "source_url": "", + "source_hash": "91ce6e9c66fee80c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-privatelink-traffic-stays-on-aws-network": { + "text": "Traffic over AWS PrivateLink stays on the AWS network and never traverses the public internet.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-endpoints.md", + "source_url": "", + "source_hash": "50772dd62090463c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-resource-endpoints-no-load-balancer": { + "text": "VPC resource endpoints provide direct access to shared resources in another VPC without requiring a load balancer; interface endpoint services require one (NLB or GWLB).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-endpoints.md", + "source_url": "", + "source_hash": "50772dd62090463c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-route-table-destination-and-target": { + "text": "Each route in a route table has a destination (CIDR block or prefix list matching traffic) and a target (where to send it, e.g., IGW, NAT gateway, peering connection).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-route-tables.md", + "source_url": "", + "source_hash": "c59fc3da90d3e192", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-route53-resolver-default-dns": { + "text": "Every VPC gets an Amazon-provided DNS server (Route 53 Resolver) by default.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-dns.md", + "source_url": "", + "source_hash": "920f3848404a4d59", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-security-enforced-at-two-independent-layers": { + "text": "VPC network security operates at both subnet level (NACLs, one-to-many mapping) and instance level (security groups), and FIS chaos testing validates both layers by swapping NACLs/route tables.", + "truth_value": "IN", + "justifications": [ + { + "type": "SL", + "antecedents": [ + "nacl-one-per-subnet-many-subnets-per-nacl", + "rds-security-group-pattern-ec2-to-rds", + "fis-network-disruption-nacl-route-table-swap" + ], + "outlist": [], + "label": "Dual-layer model means a NACL change can disrupt all instances in multiple subnets simultaneously, while security groups scope to individual resources" + } + ], + "source": "", + "source_url": "", + "source_hash": "", + "date": "", + "metadata": { + "last_reviewed": "2026-05-28T16:51:34", + "review_result": "pass" + } + }, + "vpc-split-horizon-dns-route53-privatelink": { + "text": "Split-horizon DNS with Route 53 allows the same domain to resolve to private IPs inside the VPC (via PrivateLink) and public IPs outside.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-endpoints.md", + "source_url": "", + "source_hash": "50772dd62090463c", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-stale-security-groups-detect-deleted-peering": { + "text": "The `DescribeStaleSecurityGroups` API detects security group rules that reference security groups in a deleted or detached VPC peering connection.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSEC2-latest-APIReference-OperationList-query-vpchtml.md", + "source_url": "", + "source_hash": "55ce6c6f6c11d4b3", + "date": "2026-03-12", + "metadata": {} + }, + "vpc-subnet-single-az": { + "text": "A VPC subnet resides in exactly one Availability Zone and cannot span multiple AZs.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-overview.md", + "source_url": "", + "source_hash": "bf7b79e62bf79dd0", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-supports-ipv4-ipv6-and-byoip": { + "text": "VPC supports both IPv4 and IPv6 addressing, and you can bring your own public IP addresses (BYOIP).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-overview.md", + "source_url": "", + "source_hash": "bf7b79e62bf79dd0", + "date": "2026-03-08", + "metadata": {} + }, + "vpc-tenancy-dedicated-to-default-no-replacement": { + "text": "Changing VPC `InstanceTenancy` from `dedicated` to `default` requires no replacement, but changing from `default` to `dedicated` requires replacement (new VPC).", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/11/AWSCloudFormation-latest-UserGuide-aws-resource-ec2-vpchtml.md", + "source_url": "", + "source_hash": "a2ee1634d69ad9c2", + "date": "2026-03-12", + "metadata": {} + }, + "vpc-traffic-mirroring-deep-packet-inspection": { + "text": "VPC Traffic Mirroring copies network interface traffic to security and monitoring appliances for deep packet inspection.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/vpc-overview.md", + "source_url": "", + "source_hash": "bf7b79e62bf79dd0", + "date": "2026-03-08", + "metadata": {} + }, + "well-architected-framework-from-customer-reviews": { + "text": "The AWS Well-Architected Framework distills lessons from thousands of real customer architecture reviews.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-overview.md", + "source_url": "", + "source_hash": "98017276a324636a", + "date": "2026-03-08", + "metadata": {} + }, + "well-architected-framework-six-pillars": { + "text": "The AWS Well-Architected Framework has six pillars: Operational Excellence, Security, Reliability, Performance Efficiency, Cost Optimization, and Sustainability.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-overview.md", + "source_url": "", + "source_hash": "98017276a324636a", + "date": "2026-03-08", + "metadata": {} + }, + "well-architected-labs-hands-on-resource": { + "text": "AWS Well-Architected Labs is a companion hands-on resource with code and documentation for implementing framework best practices.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-overview.md", + "source_url": "", + "source_hash": "98017276a324636a", + "date": "2026-03-08", + "metadata": {} + }, + "well-architected-not-audit-mechanism": { + "text": "The AWS Well-Architected Framework is a best-practice guide and constructive conversation about design choices, not an audit mechanism.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-overview.md", + "source_url": "", + "source_hash": "98017276a324636a", + "date": "2026-03-08", + "metadata": {} + }, + "well-architected-reviews-produce-remediation-recommendations": { + "text": "Well-Architected reviews produce remediation recommendations to achieve desired architectural qualities.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-overview.md", + "source_url": "", + "source_hash": "98017276a324636a", + "date": "2026-03-08", + "metadata": {} + }, + "well-architected-tool-is-free": { + "text": "The AWS Well-Architected Tool (AWS WA Tool) is a free AWS service for reviewing and measuring architectures against the framework.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-overview.md", + "source_url": "", + "source_hash": "98017276a324636a", + "date": "2026-03-08", + "metadata": {} + }, + "well-architected-unit-is-workload": { + "text": "The unit of evaluation in the AWS Well-Architected Framework is a workload, not an individual service.", + "truth_value": "IN", + "justifications": [], + "source": "entries/2026/03/08/well-architected-overview.md", + "source_url": "", + "source_hash": "98017276a324636a", + "date": "2026-03-08", + "metadata": {} + } + }, + "nogoods": [], + "repos": {} +} \ No newline at end of file