Search
Lessons (38)
- Variables, Locals, Outputs, and Validation
… Further reading: [Input variables](https://developer.hashicorp.com/terraform/language/values/variables), [outputs](https://developer.hashicorp.com/terraform …
- Reusable Modules and Clear Interfaces
… name, port = var.port }) } In variables.tf : hcl variable "name" { type = string } variable "port" { type = number validation { condition …
- Secrets, Ephemeral Values, and Least Privilege
… In a supporting configuration: hcl variable "session token" { type = string sensitive = true ephemeral = true } This value must be …
- Production Capstone and Interview Practice
… Define typed variables and use the environment and owner in tags. hcl modules/private-storage/variables.tf variable …
- SQL Language, Identifiers & Data Types
… CHAR versus VARCHAR CHAR is fixed-width; VARCHAR is variable-width. Use CHAR for truly fixed values such …
- Testing, Preconditions, and Policy Checks
… the local provider configured: hcl variable "environment" { type = string default = "dev" } variable "replicas" { type = number default = 1 } resource …
- JavaScript Language Fundamentals
… copying the variable only copies the address , and both variables point at the same house. ![Primitives are copied …
- Configuration, Secrets and Storage
… LOG LEVEL: "info" PAYMENTS URL: "http://payments-api" Use it as environment variables in a pod: yaml envFrom …
- Count, for_each, Functions, and Stable Identities
… Keep the local provider configuration from lesson 2. variable "services" { type = map(object({ port = number })) default = { api = { port …
- HCL, Resource Addresses, and Project Layout
… They cannot be overridden through CLI flags like input variables. Refer to a local as local.project , an …
- What Is Clean Code?
… rename a confusing variable, extract a function, delete dead code. Small steps add up. Key takeaways - Clean code …
- Meaningful Names
… Learn simple rules for naming variables, functions and classes so code explains itself. The big idea A name …
- JavaScript Essentials: Event Loop, Closures & this
… wherever it goes, it carries a backpack with the variables that existed where it was created . js function …
- DynamoDB Modeling, RDS Scaling and Data Resilience
… Serverless v2 scales capacity in fine steps for variable load. - Aurora Global Database replicates to other regions with …
- Your First Terraform Project
… Do not commit the downloaded .terraform/ directory, state, secret variable files, or saved plans. gitignore .terraform/ .tfstate .tfstate …
- Dependencies, Data Sources, and Resource Lifecycle
… aws vpc" "existing" { id = var.existing vpc id } variable "existing vpc id" { type = string } output "existing cidr" { value …
- State, Remote Backends, and Locking
… Backend configuration cannot reference input variables, locals, or resource attributes. It initializes before ordinary configuration evaluation. Use partial …
- Rust: Ownership, Borrowing and Lifetimes
… Clone What happens Types --- --- --- Move Ownership transfers, old variable unusable String , Vec<T , Box<T , most structs Copy …
- Python Fundamentals
… and mutability Everything in Python is an object ; variables are name tags attached to objects. Type Example Mutable …
- Go Fundamentals
… order and save() are private to the package. Variables, types and zero values go var count int // 0 …
- RBAC and Cluster Security
… Preferring mounted files over environment variables, since env vars leak into logs and crash dumps more easily. Supply …
- Code Smells & Refactoring
… safely for you: Rename symbol (F2), Extract function / variable , Move to new file . They update every reference automatically …
- Two Pointers & Sliding Window
… 1, 3, 2], 3); // 9 → [5, 1, 3] Variable-size window: longest substring without repeating characters The window …
- Docker & Containers
… One main process per container. - ✅ Configure through environment variables ; never bake secrets into images. - ✅ Add health checks, and …
- DSA Interview Patterns Cheat Sheet
… 5. Code: clear variable names, small helper functions. Talk while you type. 6. Test: trace your code with …
- Big-O Notation Made Simple
… a few variables, no matter the input size function max(arr) { let m = -Infinity; for (const x of …
- Choosing a Programming Language
… Values, types,<br/ variables"] -- B["2. Control flow<br/ and functions"] -- C["3. Collections<br/ list / map / set …
- Deploying & Operating Microservices
… CPU/memory) and autoscaling rules - [ ] Config through environment variables; secrets in a secret manager - [ ] API docs (OpenAPI) and …
- Frontend Security
… any script can read it No Avoid for sensitive tokens JS memory (a variable) Harder (lost on refresh …
- NestJS Core Concepts
… One instance: shared connections and caches without global variables. Custom providers ts providers: [ { provide: "PAYMENT GATEWAY", useClass: process …
- Cost Optimization and the Well-Architected Framework
… commit to your steady baseline (say 60 to 70% of usage), leave the variable part on-demand, and …
- Node.js and Express
… app.listen, handles shutdown ├── config.js validated environment variables ├── middleware/ auth, validate, errorHandler, requestId └── modules/ └── orders/ ├── orders.routes …
- Go Concurrency: Goroutines, Channels and Context
… reaches zero ⚠️ Before Go 1.22 the loop variable was shared, and every goroutine could see the last …
- Python Web APIs: FastAPI and Django
… settings and code SECRET KEY from an environment variable It signs sessions and tokens ALLOWED HOSTS set Blocks …
- AWS Interview Questions: Clear Answers
… is good for short event-driven work with variable traffic. ECS/Fargate is better for long-running web …
- Practical Project: Deploy a Real CRM App on EKS
… security cleanup If static keys were ever placed in the secret or in environment variables, remove AWS ACCESS …
- Practical Lab: S3 File Upload and CloudFront Delivery with NestJS
… move to files.yourdomain.com , change one environment variable instead of rewriting every database row. 8. Big files …
- C4 Architecture Diagrams: Context, Container, Component and Code
… systems, databases or queues Private methods and local variables Important inbound adapters, such as an HTTP controller or …