Implementation
of IaaC using
AWS CDK
Aritra Nag
Aritra Nag
Meet the presenter
2
• Senior Cloud Architect working with Nordcloud.
• 12 years of IT and consulting experience.
• A passionate tech blogger
• 10x AWS certified.
Connect with me
LinkedIn
GitHub
Aritra.Nag@nordcloud.com
+46704945603
1. Why AWS CDK
2. Constructs and Solution patterns
3. Enterprise Usage
Agenda
3
Why AWS CDK
4
AWS Cloud Development Kit (AWS CDK)
Tool Support
Infrastructure-as-a-Code: structured and automatically documented definition of infrastructure.
Why AWS CDK
5
AWS Cloud Development Kit (AWS CDK)
Familiar Language
Tool Support
Infrastructure-as-a-Code: structured and automatically documented definition of infrastructure.
Why AWS CDK
6
AWS Cloud Development Kit (AWS CDK)
Abstraction and Encapsulation
Familiar Language
Tool Support
Infrastructure-as-a-Code: structured and automatically documented definition of infrastructure.
Why AWS CDK
7
AWS Cloud Development Kit (AWS CDK)
Tool Support Familiar Language Abstraction and Encapsulation
Cloudformation or AWS CDK
Why AWS CDK
8
Requirement : Amazon S3 bucket with default values
Cloudformation or AWS CDK
Why AWS CDK
9
Requirement : Amazon S3 bucket with default values
Why AWS CDK
10
Evolving Ecosystem
L1/L2 Construct library
Publishing Configuration models through code
Why AWS CDK
11
Evolving Ecosystem
L3 Solutions constructs
Publishing Configuration models through code
L1/L2 Construct library
Why AWS CDK
12
Evolving Ecosystem
L1/L2 Construct library L3 Solutions constructs Centralized curated list
Publishing Configuration models through code
Transition from Cloudformation to AWS CDK
Enterprise Usage
13
IaaC was a blackbox to
application teams
Transition from Cloudformation to AWS CDK
Enterprise Usage
14
IaaC was a blackbox to
application teams
Promote the philosophy
of maintaining Infra +
App + Config as part of
same
iterations/development
cycle
Transition from Cloudformation to AWS CDK
Enterprise Usage
15
IaaC was a blackbox to
application teams
Promote the philosophy
of maintaining Infra +
App + Config as part of
same
iterations/development
cycle
Steering infrastructure
implementation towards the
mindset of development
realms
Change in Philosophy
Enterprise Usage
16
AWS Tools
Metrics Insights
Metrics and Insights
AWS CodeCommit
Metrics Insights
Maintaining the Infra
Change in Philosophy
Enterprise Usage
17
Infra + App + Monitoring + Unit testing + Operations
AWS Tools
Metrics Insights
Metrics and Insights
AWS CodeCommit
Production use case
Enterprise Usage
18
● Solution patterns – Repo based
Production use case
Enterprise Usage
19
● Solution patterns – Repo based
● Patterns using logic (if statements, for-loops, etc.)
Production use case
Enterprise Usage
20
● Solution patterns – Repo based
● Patterns using logic (if statements, for-loops, etc.)
● Frameworks like Projen , AWS Serverless Application Model(AWS SAM)
Production use case
Enterprise Usage
21
● Solution patterns – Repo based
● Patterns using logic (if statements, for-loops, etc.)
● Frameworks like Projen , AWS Serverless Application Model(AWS SAM)
Migration Cloudformation to AWS CDK
Enterprise Usage
22
● Re-write Cloudformation
Migration Cloudformation to AWS CDK
Enterprise Usage
23
● Re-write Cloudformation
● Using L1 Constructs like CfnInclude
Migration Cloudformation to AWS CDK
Enterprise Usage
24
● Re-write Cloudformation
● Using L1 Constructs like CfnInclude
● Tools like AWS Cloudformation Disassembler
Migration Cloudformation to AWS CDK
Enterprise Usage
25
● Re-write Cloudformation
● Using L1 Constructs like CfnInclude
● Tools like AWS Cloudformation Disassembler
Next Steps
26
● https://cdkworkshop.com/
● https://cdk.dev/
● https://aws.amazon.com/cdk/
Workshops and References
Next Steps
27
● https://cdkworkshop.com/
● https://cdk.dev/
● https://aws.amazon.com/cdk/
Workshops and References
Blogs and White papers
● https://aws.amazon.com/blogs/devops/parallel-and-dynamic-
saas-deployments-with-cdk-pipelines/
● https://docs.aws.amazon.com/whitepapers/latest/introduction-
devops-aws/aws-cdk.html
Next Steps
28
● https://github.com/aws/aws-cdk
● https://github.com/aws-samples/aws-cdk-examples
● https://stackoverflow.com/questions/tagged/aws-cdk
Community and Forums
● https://cdkworkshop.com/
● https://cdk.dev/
● https://aws.amazon.com/cdk/
Workshops and References
Blogs and White papers
● https://aws.amazon.com/blogs/devops/parallel-and-dynamic-
saas-deployments-with-cdk-pipelines/
● https://docs.aws.amazon.com/whitepapers/latest/introduction-
devops-aws/aws-cdk.html
Thank you
LinkedIn
GitHub
Aritra.Nag@nordcloud.com
+46704945603

Implementation of IAAC using AWS CDK

  • 1.
  • 2.
    Aritra Nag Meet thepresenter 2 • Senior Cloud Architect working with Nordcloud. • 12 years of IT and consulting experience. • A passionate tech blogger • 10x AWS certified. Connect with me LinkedIn GitHub Aritra.Nag@nordcloud.com +46704945603
  • 3.
    1. Why AWSCDK 2. Constructs and Solution patterns 3. Enterprise Usage Agenda 3
  • 4.
    Why AWS CDK 4 AWSCloud Development Kit (AWS CDK) Tool Support Infrastructure-as-a-Code: structured and automatically documented definition of infrastructure.
  • 5.
    Why AWS CDK 5 AWSCloud Development Kit (AWS CDK) Familiar Language Tool Support Infrastructure-as-a-Code: structured and automatically documented definition of infrastructure.
  • 6.
    Why AWS CDK 6 AWSCloud Development Kit (AWS CDK) Abstraction and Encapsulation Familiar Language Tool Support Infrastructure-as-a-Code: structured and automatically documented definition of infrastructure.
  • 7.
    Why AWS CDK 7 AWSCloud Development Kit (AWS CDK) Tool Support Familiar Language Abstraction and Encapsulation
  • 8.
    Cloudformation or AWSCDK Why AWS CDK 8 Requirement : Amazon S3 bucket with default values
  • 9.
    Cloudformation or AWSCDK Why AWS CDK 9 Requirement : Amazon S3 bucket with default values
  • 10.
    Why AWS CDK 10 EvolvingEcosystem L1/L2 Construct library Publishing Configuration models through code
  • 11.
    Why AWS CDK 11 EvolvingEcosystem L3 Solutions constructs Publishing Configuration models through code L1/L2 Construct library
  • 12.
    Why AWS CDK 12 EvolvingEcosystem L1/L2 Construct library L3 Solutions constructs Centralized curated list Publishing Configuration models through code
  • 13.
    Transition from Cloudformationto AWS CDK Enterprise Usage 13 IaaC was a blackbox to application teams
  • 14.
    Transition from Cloudformationto AWS CDK Enterprise Usage 14 IaaC was a blackbox to application teams Promote the philosophy of maintaining Infra + App + Config as part of same iterations/development cycle
  • 15.
    Transition from Cloudformationto AWS CDK Enterprise Usage 15 IaaC was a blackbox to application teams Promote the philosophy of maintaining Infra + App + Config as part of same iterations/development cycle Steering infrastructure implementation towards the mindset of development realms
  • 16.
    Change in Philosophy EnterpriseUsage 16 AWS Tools Metrics Insights Metrics and Insights AWS CodeCommit Metrics Insights Maintaining the Infra
  • 17.
    Change in Philosophy EnterpriseUsage 17 Infra + App + Monitoring + Unit testing + Operations AWS Tools Metrics Insights Metrics and Insights AWS CodeCommit
  • 18.
    Production use case EnterpriseUsage 18 ● Solution patterns – Repo based
  • 19.
    Production use case EnterpriseUsage 19 ● Solution patterns – Repo based ● Patterns using logic (if statements, for-loops, etc.)
  • 20.
    Production use case EnterpriseUsage 20 ● Solution patterns – Repo based ● Patterns using logic (if statements, for-loops, etc.) ● Frameworks like Projen , AWS Serverless Application Model(AWS SAM)
  • 21.
    Production use case EnterpriseUsage 21 ● Solution patterns – Repo based ● Patterns using logic (if statements, for-loops, etc.) ● Frameworks like Projen , AWS Serverless Application Model(AWS SAM)
  • 22.
    Migration Cloudformation toAWS CDK Enterprise Usage 22 ● Re-write Cloudformation
  • 23.
    Migration Cloudformation toAWS CDK Enterprise Usage 23 ● Re-write Cloudformation ● Using L1 Constructs like CfnInclude
  • 24.
    Migration Cloudformation toAWS CDK Enterprise Usage 24 ● Re-write Cloudformation ● Using L1 Constructs like CfnInclude ● Tools like AWS Cloudformation Disassembler
  • 25.
    Migration Cloudformation toAWS CDK Enterprise Usage 25 ● Re-write Cloudformation ● Using L1 Constructs like CfnInclude ● Tools like AWS Cloudformation Disassembler
  • 26.
    Next Steps 26 ● https://cdkworkshop.com/ ●https://cdk.dev/ ● https://aws.amazon.com/cdk/ Workshops and References
  • 27.
    Next Steps 27 ● https://cdkworkshop.com/ ●https://cdk.dev/ ● https://aws.amazon.com/cdk/ Workshops and References Blogs and White papers ● https://aws.amazon.com/blogs/devops/parallel-and-dynamic- saas-deployments-with-cdk-pipelines/ ● https://docs.aws.amazon.com/whitepapers/latest/introduction- devops-aws/aws-cdk.html
  • 28.
    Next Steps 28 ● https://github.com/aws/aws-cdk ●https://github.com/aws-samples/aws-cdk-examples ● https://stackoverflow.com/questions/tagged/aws-cdk Community and Forums ● https://cdkworkshop.com/ ● https://cdk.dev/ ● https://aws.amazon.com/cdk/ Workshops and References Blogs and White papers ● https://aws.amazon.com/blogs/devops/parallel-and-dynamic- saas-deployments-with-cdk-pipelines/ ● https://docs.aws.amazon.com/whitepapers/latest/introduction- devops-aws/aws-cdk.html
  • 29.