Jump to: Pinned repos • Contribution graph • All repos ↗ • LinkedIn ↗ • Blog ↗
Terraform
- Secure private network:
- An editable
configuration map
feeds
for_eachsets and maps - Strict reciprocal security group egress and ingress rules permit traffic between identified hosts only.
- An editable
configuration map
feeds
- A data-driven, not hard-coded, validation rule and error message
- Intuitive defaults with minimal code, for an AWS API data type that can't be reduced to a Terraform HCL type specification
- A new
S3 object version triggers a Terraform change.
Most users
forget
versionID.
CloudFormation
- The same template makes a single-account, single-region stack or a centrally-managed, multi-account, multi-region StackSet:
- "Partial ARN" parameter formats are not specific to any region.
- 1 template with conditions replaces 3 separate templates.
- Validation rules and a condition accommodate different kinds of inputs and different cardinalities.
- A least-privilege CloudFormation service role protects each workload and reduces "confused deputy" risk.
- Placeholder parameters help AWS Console users to name stacks and find documentation.
IAM
- Enforce KMS encryption in S3:
- One central resource control policy (RCP) covers buckets in many accounts.
- Tags and self-service documentation reduce developers' dependence on the infrastructure team
- Templated test buckets support thorough, realistic, automated tests
- Keywords communicate properties of test buckets without duplicate code
- Enforce S3 storage class:
- One central resource control policy (RCP) covers buckets in many accounts.
- History of S3, IAM, and AWS Organizations feature releases provides an architectural decision record.
- Safe permissions delegation trick
(
Detailed semantics, Item 4)
- Restrict Lambda function permissions using attribute-based access control, then protect ABAC tags with a service control policy (SCP)
- Restrict instead of rewriting an AWS-managed policy, for self-documenting, maintainable least-privilege
- IAM policy variables avoid code duplication:
Python
- Object-oriented design:
- Harmonizes AWS API inconsistencies — method names; input argument names, types (ID versus ARN), and cardinality; and output object keys
- Accommodates varied AWS resource types
- Describes capabilities at a glance and supports extensibility
- OpenAPI provides a clear API specification and automatic input validation with minimal, focused code.
- Clear and consistent error-handling functions
- Structured JSON logs, searchable by humans and readable by machines
- Self-documenting regular expression
Containers/Docker
- A simple container definition yields a secure and small image.
- Elastic Container Service (ECS) and load balancing support scalable orchestration.

