Slide 1

Slide 1 text

Accelerating Your AWS Journey: (Open-Source) tools for getting teams up to speed Jeroen Reijn Cloud Solutions Architect @Luminis| AWS Community Builder Twitter/X: @jreijn 🚀

Slide 2

Slide 2 text

Photo by Annie Spratt on Unsplash Working with Dev(Ops) Teams

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

What they hope it’s like What it’s actually like….

Slide 5

Slide 5 text

Learning AWS • AWS Courses / Certification • AWS Workshops • Game Days • Documentation • Tutorials • Blogs • Etc… Learn by doing.

Slide 6

Slide 6 text

Personal Observations • Design: What service(s) should I use to run my application? • Infrastructure as Code • Networking – VPCs, Security Groups, etc. • IAM (Identity & Access Management) • Local development

Slide 7

Slide 7 text

Source: https://www.lastweekinaws.com/blog/the-17-ways-to-run-containers-on-aws/ 🤯

Slide 8

Slide 8 text

🤔

Slide 9

Slide 9 text

Image by Sasha Kasper: https://sascha-kasper.com/the-bumpy-learning-curve/

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Engineering productivity

Slide 12

Slide 12 text

Infrastructure as Code

Slide 13

Slide 13 text

Reasoning: • Language Flexibility: TypeScript, Python, Java, C#, etc • Type Safety • High-Level Abstractions • Customization and Reusability • Rich Ecosystem of Constructs • Integrated Deployment • AWS CDK Patterns

Slide 14

Slide 14 text

AWS CDK + Higher level abstractions Source: https://konem.blog/2021/01/17/how-to-structure-your-application-architecture-using-aws-cdk/

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

AWS CDK + AWS Solution Constructs “AWS Solutions Constructs is an open-source extension on top of AWS CDK that provides multi-service, well-architected patterns for quickly defining solutions in code to create predictable and repeatable infrastructure. The goal is to accelerate the experience for developers to build solutions of any size using pattern-based definitions for their architecture.” https://github.com/awslabs/aws-solutions-constructs

Slide 17

Slide 17 text

AWS CDK + AWS Solution Constructs

Slide 18

Slide 18 text

Testcontainers + = 🚀

Slide 19

Slide 19 text

• On-demand isolated infrastructure provisioning • Consistent experience on both local and CI environments • Reliable test setup using wait strategies • Automatic clean up • Support for Java, Python, NodeJs, Go, etc. Test containers:

Slide 20

Slide 20 text

• Local cloud sandbox for development, testing, and experimentation • Emulates 60+ AWS cloud services • Get productive with cloud dev from day 1 • Avoid the slow and tedious deploy-test-redeploy cycles for your cloud based apps LocalStack

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Amazon CodeWhisperer • AI Coding assistant • (Near) Real-time code suggestions • Optimized for use with AWS services • Support for popular programming languages and IDEs

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

OpenAI / ChatGPT 🤖

Slide 27

Slide 27 text

Security & Compliance

Slide 28

Slide 28 text

Shift Left Shift Left

Slide 29

Slide 29 text

CDK-NAG • Checks CDK applications for best practices using a combination of available rule packs • AWS Solutions • HIPAA Security • NIST 800-53 rev 4 • NIST 800-53 rev 5 • PCI DSS 3.2.1 • Inspired by https://github.com/stelligent/cfn_nag • https://github.com/cdklabs/cdk-nag

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

CDK-NAG output with AwsSolutionsChecks

Slide 33

Slide 33 text

CDK-NAG output with AwsSolutionsChecks [Error at /AwsCdkNagDemoStack/demo-queue/Resource] AwsSolutions- SQS4: The SQS queue does not require requests to use SSL. Without HTTPS (TLS), a network-based attacker can eavesdrop on network traffic or manipulate it, using an attack such as man-in-the-middle. Allow only encrypted connections over HTTPS (TLS) using the aws:SecureTransport condition in the queue policy to force requests to use SSL.

Slide 34

Slide 34 text

CDK-NAG output with HIPAASecurityChecks

Slide 35

Slide 35 text

CDK-NAG output with HIPAASecurityChecks [Error at /AwsCdkNagDemoStack/demo-function/Resource] HIPAA.Security- LambdaConcurrency: The Lambda function is not configured with function-level concurrent execution limits - (Control ID: 164.312(b)). Ensure that a Lambda function's concurrency high and low limits are established. This can assist in baselining the number of requests that your function is serving at any given time. [Error at /AwsCdkNagDemoStack/demo-function/Resource] HIPAA.Security- LambdaDLQ: The Lambda function is not configured with a dead-letter configuration - (Control ID: 164.312(b)). Notify the appropriate personnel through Amazon Simple Queue Service (Amazon SQS) or Amazon Simple Notification Service (Amazon SNS) when a function has failed.

Slide 36

Slide 36 text

• cfn_nag • General-purpose policy-as-code evaluation tool • https://github.com/stelligent/cfn_nag • cfn_guard • Leverages Control Tower proactive controls • Also available as a cdk (validatorplugin) plugin • https://github.com/aws-cloudformation/cloudformation-guard Alternatives

Slide 37

Slide 37 text

KICS - Keeping Infrastructure as Code Secure • Finds security vulnerabilities, compliance issues, and infrastructure misconfigurations early in the development cycle of your infrastructure- as-code. • Works with Cloudformation • Also supports Docker, Helm, Kubernetes, Pulumi, Terraform • https://github.com/Checkmarx/kics

Slide 38

Slide 38 text

Categories • Access Control • Availability • Backup • Best Practices • Build Process • Encryption • Insecure Configurations • Insecure Defaults • Networking and Firewall • Observability • Resource Management • Secret Management • Structure and Semantics • Supply-Chain Reporting options • JSON • SARIF • Gitlab SAST • JUnit • SonarQube • HTML • PDF • CycloneDX • ASFF • CSV • Code Climate • CLI Report

Slide 39

Slide 39 text

CDK Example stack

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

Prowler • Open-Source Security tool for AWS (Azure/GCP) • Cloud Security best practices assessments, audits, incident response, compliance, continuous monitoring, hardening and forensics readiness • Integrates with AWS Security Hub • https://github.com/prowler-cloud/prowler

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

Cost Management & Observability

Slide 44

Slide 44 text

• Integrates directly with VS Code • Calculates Cloud Costs based on Terraform (IaC) • Catch costly typos • https://github.com/infracost/infracost Infracost.io

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

• Direct integration into source control systems or CI/CD • Review cost impact with the team alongside security and code quality • Shows the cost impact of the specific change Infracost.io CI/CD

Slide 47

Slide 47 text

CDK Monitoring Constructs • Easy-to-use CDK constructs for monitoring your AWS infrastructure • Supports a variety of different services • Easily define dashboards, widget and alarms for important metrics https://github.com/cdklabs/cdk-monitoring-constructs

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

Recap Recap

Slide 53

Slide 53 text

Thanks! Questions / Suggestions? Come visit the Luminis booth for your own LEGO figure! http://twitter.com/jreijn https://www.linkedin.com/in/jeroenreijn/