Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Automating Infrastructure with AWS CDK

Automating Infrastructure with AWS CDK

Rumesh Eranga Hapuarachchi

September 15, 2021
Tweet

More Decks by Rumesh Eranga Hapuarachchi

Other Decks in Programming

Transcript

  1. Infrastructure as Code Repetable & Predictable Same tools as your

    code Replicating environments for better testability
  2. Engineers love coding • Languages which they already know •

    Java, JS, TS, Python, Go, C# • Existing tools & workflows • Abstractions • Libraries • Use logics when defining your infrastrucure
  3. Commands • cdk init • cdk synth • cdk diff

    • cdk deploy • cdk destroy
  4. Isn't that same as Jest? Testing with CDK • Snapshot

    tests • Fine-grained assertions • Validation tests
  5. Best Practices • Layer your application to reduce blast radius

    • Use multiple, isolated environments for dev, test, stage and prod • Smaller files • Make use of Parameter Store and Secrets Manager • Do not overengineer