SlideShare a Scribd company logo
Indore, India
IaC on AWS
Bhuvaneswari Subramani | 3rd July 2021
https://bhuvana.pro/
/bhuvanas
@installjournal
Agenda
• Infrastructure as Code on AWS
• AWS CloudFormation
• AWS Serverless Application Model (SAM)
• AWS CDK (CDK)
• IaC Solutions in AWS Marketplace
Infrastructure as Code on AWS
Managing Infrastructure as Code
SOURCE
Developers
commit changes
BUILD
Changes
are built
STAGING
Code is deployed and
tested
PRODUCTION
Developers commit
changes
AWS CodeCommit AWS CodeBuild Third Party Tooling AWS CodeDeploy
AWS CodePipeline
AWS CodeDeploy
IaC Tools AWS
CloudFormation
Terraform
AWS
Serverless
Application Model
Ansible
AWS CDK
chef
puppet
c
Apply DevOps Principles to IaC
AWS CloudFormation
AWS CloudFormation
• Create and provision AWS infrastructure deployments
predictably and repeatedly
• Resources are written in text files using JSON or YAML
format. Use Cloud9 or your favorite editor
• Version Control the template
• Helps build the specified services in safe, repeatable
manner
AWS CloudFormation Template
Stack
Parameters
Mappings
Resources
Outputs
Template
Parameter
Values
Create /
Update
sync
Env =>
Test / Prod
One Template
Entire Environment
Repeatable
AWS CloudFormation Template Anatomy
JSON vs YAML
Except
resources all
sections are
optional
AWS CloudFormation
Demo
CI / CD for Infrastructure & WebApp
Source Build Deploy
Pipeline view of Infra Rollout +
Web App Deployment
AWS Serverless Application Model
(SAM)
c
AWS Serverless Application Model
• AWS CloudFormation extension, optimized for serverless
• AWS SAM is supported directly by AWS CloudFormation
• YAML or JSON
• Supported Resources
• Api, Application, Function, HttpApi, LayerVersion, SimpleTable,
StateMachine
c
AWS SAM Template Anatomy
• Transform declaration
Transform: AWS::Serverless-2016-10-31
• Globals section
AWS::Serverless::Function, AWS::Serverless::Api, etc.
• Resources section
Combination of CloudFormation & AWS SAM resources
• Parameters section
Objects declared in Parameters section cause SAM deploy
AWS SAM CLI
• CLI tool for local development, debugging, testing, deploying, and monitoring of
serverless applications
• Supports API Gateway “proxy-style” and Lambda service API testing
• Response object and function logs available on your local machine
• Uses open-source docker-lambda images to mimic Lambda’s execution environment
• Can tail production logs from CloudWatch logs
• Can help you build in native dependencies
AWS SAM CLI Commands
• sam build – install dependencies
• sam deploy – deploy AWS SAM application with AWS CloudFormation
• sam init – initialize a serverless application
• sam local:
• generate-event– generate sample payloads from event sources
• Invoke invokes a Lambda function once
• start-api – set up local endpoint to test your API
• start-lambda – start a local endpoint to test your local lambda
• sam logs – fetch logs for a function
• sam package – package an AWS SAM application
• sam publish – Publish an AWS SAM application to the AWS Serverless Application Repository
• sam validate – Verifies whether an AWS SAM template file is valid
CI / CD for Lambda Deployment using AWS SAM
AWS CDK (CDK)
AWS CDK
• AWS CDK to define your cloud resources in a familiar
programming language
• AWS CDK supports TypeScript, JavaScript, Python, Java,
C#/.Net, and (in developer preview) Go
• Define reusable cloud components known as Constructs
• Compose Constructs together into Stacks and Apps
AWS CDK
AWS CDK Development Workflow
Create App Add Code Build Synthesize Deploy
AWS CDK Development Workflow
Create App Add Code Build Synthesize Deploy
Add code to the app to create
resources within stacks
Build the app
Synthesize stack(s) in app to
create AWS CloudFormation
template Deploy stacks to
your AWS account
AWS CDK Toolkit
The AWS CDK Toolkit is a command line tool for interacting with CDK apps
• cdk lists (ls) – Lists the stacks in the app
• cdk synthesize (synth) – Synthesizes and prints the CloudFormation template for the specified
stack(s)
• cdk bootstrap – Deploys the CDK Toolkit stack
• cdk deploy - Deploys the specified stack(s)
• cdk destroy - Destroys the specified stack(s)
• cdk diff – Compares the stack with deployed or local CloudFormation template
• cdk metadata – Displays metadata about the specified stack
• cdk init – Creates a new CDK project in the current directory from a specified template
• cdk context - Manages cached context values
• cdk docs (doc) – Opens the CDK API reference in your browser
• cdk doctor - Checks your CDK project for potential problems
IaC Solutions in AWS Marketplace
IaC Solutions in AWS Marketplace
Key benefits of using solutions from AWS Marketplace
Key Take Aways AWS
CloudFormation
AWS
Serverless
Application Model
AWS CDK
c
Better together: AWS SAM and AWS CDK
Let’s Orchestrate IaC
Indore, India
https://bhuvana.pro/
/bhuvanas
@installjournal

More Related Content

What's hot (20)

PDF
Advanced Terraform
Samsung Electronics
 
PDF
Kubernetes Application Deployment with Helm - A beginner Guide!
Krishna-Kumar
 
PPTX
Terraform on Azure
Mithun Shanbhag
 
PPTX
Terraform
Phil Wilkins
 
PPTX
Introduction to helm
Jeeva Chelladhurai
 
PDF
How Kubernetes helps Devops
Sreenivas Makam
 
PDF
Terraform Introduction
soniasnowfrog
 
PDF
Introduction to GitHub Actions
Knoldus Inc.
 
PDF
Kubernetes Monitoring & Best Practices
Ajeet Singh Raina
 
PDF
OpenShift-Technical-Overview.pdf
JuanSalinas593459
 
PDF
Introduction to IAC and Terraform
Venkat NaveenKashyap Devulapally
 
PPTX
Kubernetes 101 for Beginners
Oktay Esgul
 
PDF
Helm 3
Matthew Farina
 
PPTX
Azure Pipelines
Mithun Shanbhag
 
PDF
DevOps with Ansible
Swapnil Jain
 
PPTX
Dynatrace
Purnima Kurella
 
PDF
Introduction to GitHub Actions
Bo-Yi Wu
 
PDF
Kubernetes Basics
Eueung Mulyana
 
PDF
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Edureka!
 
PPTX
Docker Container Security - A Network View
NeuVector
 
Advanced Terraform
Samsung Electronics
 
Kubernetes Application Deployment with Helm - A beginner Guide!
Krishna-Kumar
 
Terraform on Azure
Mithun Shanbhag
 
Terraform
Phil Wilkins
 
Introduction to helm
Jeeva Chelladhurai
 
How Kubernetes helps Devops
Sreenivas Makam
 
Terraform Introduction
soniasnowfrog
 
Introduction to GitHub Actions
Knoldus Inc.
 
Kubernetes Monitoring & Best Practices
Ajeet Singh Raina
 
OpenShift-Technical-Overview.pdf
JuanSalinas593459
 
Introduction to IAC and Terraform
Venkat NaveenKashyap Devulapally
 
Kubernetes 101 for Beginners
Oktay Esgul
 
Azure Pipelines
Mithun Shanbhag
 
DevOps with Ansible
Swapnil Jain
 
Dynatrace
Purnima Kurella
 
Introduction to GitHub Actions
Bo-Yi Wu
 
Kubernetes Basics
Eueung Mulyana
 
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Edureka!
 
Docker Container Security - A Network View
NeuVector
 

Similar to IaC on AWS Cloud (16)

PDF
Eliminate repetitive work by using AWS Serverless Application Repository
Igor Soroka
 
PDF
Application Lifecycle Management on AWS
David Mat
 
PPTX
Introduction to DevOps on AWS
Shiva Narayanaswamy
 
PPT
AWS Devops
Sivakumar Ramar
 
PDF
AWS CDK (Cloud Development Kit): A Comprehensive Guide
Inexture Solutions
 
PPTX
ANIn Chennai Feb 2023 | CI/CD with AWS CDK by Shashank Aadimulam
AgileNetwork
 
PPTX
Developing Java Applications in AWS
Nemanja Kostic
 
PPTX
AWS and DevOps Session 1
Joseph Holbrook, Chief Learning Officer (CLO)
 
PPTX
Continuous delivery and deployment on AWS
Shiva Narayanaswamy
 
PPTX
Aws User Group Singapore Presentation Oct-21-2020
Varun Manik
 
PDF
Developing and deploying serverless applications (February 2017)
Julien SIMON
 
PDF
Serverless Frameworks on AWS
Julien SIMON
 
PDF
AWS CDK in Practice
Chulwoo Choi
 
PDF
Continuous Deployment in AWS Lambda
Shu Ting Tseng
 
PPTX
AWS SSA Webinar 28 - Getting Started with AWS - Infrastructure as Code
Cobus Bernard
 
PDF
Aws container webinar day 2
HoseokSeo7
 
Eliminate repetitive work by using AWS Serverless Application Repository
Igor Soroka
 
Application Lifecycle Management on AWS
David Mat
 
Introduction to DevOps on AWS
Shiva Narayanaswamy
 
AWS Devops
Sivakumar Ramar
 
AWS CDK (Cloud Development Kit): A Comprehensive Guide
Inexture Solutions
 
ANIn Chennai Feb 2023 | CI/CD with AWS CDK by Shashank Aadimulam
AgileNetwork
 
Developing Java Applications in AWS
Nemanja Kostic
 
Continuous delivery and deployment on AWS
Shiva Narayanaswamy
 
Aws User Group Singapore Presentation Oct-21-2020
Varun Manik
 
Developing and deploying serverless applications (February 2017)
Julien SIMON
 
Serverless Frameworks on AWS
Julien SIMON
 
AWS CDK in Practice
Chulwoo Choi
 
Continuous Deployment in AWS Lambda
Shu Ting Tseng
 
AWS SSA Webinar 28 - Getting Started with AWS - Infrastructure as Code
Cobus Bernard
 
Aws container webinar day 2
HoseokSeo7
 
Ad

More from Bhuvaneswari Subramani (20)

PDF
Application Modernization with AWS - A Transformation in Digital Era
Bhuvaneswari Subramani
 
PDF
The Operations effect of Dev, Data, ML and FM
Bhuvaneswari Subramani
 
PDF
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Bhuvaneswari Subramani
 
PDF
Architecting for Success: Designing Secure GCP Landing Zone for Enterprises
Bhuvaneswari Subramani
 
PDF
How AWS Community in India reflects Unity in Diversity
Bhuvaneswari Subramani
 
PDF
An Insight Into Cloud Migration Story
Bhuvaneswari Subramani
 
PPTX
End-to-End CI/CD at scale with Infrastructure-as-Code on AWS
Bhuvaneswari Subramani
 
PDF
COM 203 Enable continuous delivery and resiliency for a static website
Bhuvaneswari Subramani
 
PDF
LoadRunner walkthrough
Bhuvaneswari Subramani
 
PDF
Jmeter Walkthrough
Bhuvaneswari Subramani
 
PDF
Fundamentals Performance Testing
Bhuvaneswari Subramani
 
PDF
Fundamentals of Cloud Computing & AWS
Bhuvaneswari Subramani
 
PDF
Infrastructure as Code on AWS
Bhuvaneswari Subramani
 
PDF
A Pathway to Continuous Integration/Continuous Delivery on AWS
Bhuvaneswari Subramani
 
PDF
Transformational DevOps with AWS Native Tools
Bhuvaneswari Subramani
 
PDF
Demystifying DevOps
Bhuvaneswari Subramani
 
PDF
Application & Account Monitoring in AWS
Bhuvaneswari Subramani
 
PPTX
Industry Awareness to KSRCT
Bhuvaneswari Subramani
 
PDF
CI CD using AWS Developer Tools Online Workshop
Bhuvaneswari Subramani
 
PDF
IndiaCloudSummit - Transforming to feature-driven development
Bhuvaneswari Subramani
 
Application Modernization with AWS - A Transformation in Digital Era
Bhuvaneswari Subramani
 
The Operations effect of Dev, Data, ML and FM
Bhuvaneswari Subramani
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Bhuvaneswari Subramani
 
Architecting for Success: Designing Secure GCP Landing Zone for Enterprises
Bhuvaneswari Subramani
 
How AWS Community in India reflects Unity in Diversity
Bhuvaneswari Subramani
 
An Insight Into Cloud Migration Story
Bhuvaneswari Subramani
 
End-to-End CI/CD at scale with Infrastructure-as-Code on AWS
Bhuvaneswari Subramani
 
COM 203 Enable continuous delivery and resiliency for a static website
Bhuvaneswari Subramani
 
LoadRunner walkthrough
Bhuvaneswari Subramani
 
Jmeter Walkthrough
Bhuvaneswari Subramani
 
Fundamentals Performance Testing
Bhuvaneswari Subramani
 
Fundamentals of Cloud Computing & AWS
Bhuvaneswari Subramani
 
Infrastructure as Code on AWS
Bhuvaneswari Subramani
 
A Pathway to Continuous Integration/Continuous Delivery on AWS
Bhuvaneswari Subramani
 
Transformational DevOps with AWS Native Tools
Bhuvaneswari Subramani
 
Demystifying DevOps
Bhuvaneswari Subramani
 
Application & Account Monitoring in AWS
Bhuvaneswari Subramani
 
Industry Awareness to KSRCT
Bhuvaneswari Subramani
 
CI CD using AWS Developer Tools Online Workshop
Bhuvaneswari Subramani
 
IndiaCloudSummit - Transforming to feature-driven development
Bhuvaneswari Subramani
 
Ad

Recently uploaded (20)

PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PDF
Build with AI and GDG Cloud Bydgoszcz- ADK .pdf
jaroslawgajewski1
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PPTX
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
Build with AI and GDG Cloud Bydgoszcz- ADK .pdf
jaroslawgajewski1
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 

IaC on AWS Cloud

  • 1. Indore, India IaC on AWS Bhuvaneswari Subramani | 3rd July 2021 https://bhuvana.pro/ /bhuvanas @installjournal
  • 2. Agenda • Infrastructure as Code on AWS • AWS CloudFormation • AWS Serverless Application Model (SAM) • AWS CDK (CDK) • IaC Solutions in AWS Marketplace
  • 4. Managing Infrastructure as Code SOURCE Developers commit changes BUILD Changes are built STAGING Code is deployed and tested PRODUCTION Developers commit changes AWS CodeCommit AWS CodeBuild Third Party Tooling AWS CodeDeploy AWS CodePipeline AWS CodeDeploy
  • 8. AWS CloudFormation • Create and provision AWS infrastructure deployments predictably and repeatedly • Resources are written in text files using JSON or YAML format. Use Cloud9 or your favorite editor • Version Control the template • Helps build the specified services in safe, repeatable manner
  • 11. AWS CloudFormation Template Anatomy JSON vs YAML Except resources all sections are optional
  • 13. CI / CD for Infrastructure & WebApp Source Build Deploy
  • 14. Pipeline view of Infra Rollout + Web App Deployment
  • 15. AWS Serverless Application Model (SAM) c
  • 16. AWS Serverless Application Model • AWS CloudFormation extension, optimized for serverless • AWS SAM is supported directly by AWS CloudFormation • YAML or JSON • Supported Resources • Api, Application, Function, HttpApi, LayerVersion, SimpleTable, StateMachine c
  • 17. AWS SAM Template Anatomy • Transform declaration Transform: AWS::Serverless-2016-10-31 • Globals section AWS::Serverless::Function, AWS::Serverless::Api, etc. • Resources section Combination of CloudFormation & AWS SAM resources • Parameters section Objects declared in Parameters section cause SAM deploy
  • 18. AWS SAM CLI • CLI tool for local development, debugging, testing, deploying, and monitoring of serverless applications • Supports API Gateway “proxy-style” and Lambda service API testing • Response object and function logs available on your local machine • Uses open-source docker-lambda images to mimic Lambda’s execution environment • Can tail production logs from CloudWatch logs • Can help you build in native dependencies
  • 19. AWS SAM CLI Commands • sam build – install dependencies • sam deploy – deploy AWS SAM application with AWS CloudFormation • sam init – initialize a serverless application • sam local: • generate-event– generate sample payloads from event sources • Invoke invokes a Lambda function once • start-api – set up local endpoint to test your API • start-lambda – start a local endpoint to test your local lambda • sam logs – fetch logs for a function • sam package – package an AWS SAM application • sam publish – Publish an AWS SAM application to the AWS Serverless Application Repository • sam validate – Verifies whether an AWS SAM template file is valid
  • 20. CI / CD for Lambda Deployment using AWS SAM
  • 22. AWS CDK • AWS CDK to define your cloud resources in a familiar programming language • AWS CDK supports TypeScript, JavaScript, Python, Java, C#/.Net, and (in developer preview) Go • Define reusable cloud components known as Constructs • Compose Constructs together into Stacks and Apps
  • 24. AWS CDK Development Workflow Create App Add Code Build Synthesize Deploy
  • 25. AWS CDK Development Workflow Create App Add Code Build Synthesize Deploy Add code to the app to create resources within stacks Build the app Synthesize stack(s) in app to create AWS CloudFormation template Deploy stacks to your AWS account
  • 26. AWS CDK Toolkit The AWS CDK Toolkit is a command line tool for interacting with CDK apps • cdk lists (ls) – Lists the stacks in the app • cdk synthesize (synth) – Synthesizes and prints the CloudFormation template for the specified stack(s) • cdk bootstrap – Deploys the CDK Toolkit stack • cdk deploy - Deploys the specified stack(s) • cdk destroy - Destroys the specified stack(s) • cdk diff – Compares the stack with deployed or local CloudFormation template • cdk metadata – Displays metadata about the specified stack • cdk init – Creates a new CDK project in the current directory from a specified template • cdk context - Manages cached context values • cdk docs (doc) – Opens the CDK API reference in your browser • cdk doctor - Checks your CDK project for potential problems
  • 27. IaC Solutions in AWS Marketplace
  • 28. IaC Solutions in AWS Marketplace
  • 29. Key benefits of using solutions from AWS Marketplace
  • 30. Key Take Aways AWS CloudFormation AWS Serverless Application Model AWS CDK c Better together: AWS SAM and AWS CDK
  • 31. Let’s Orchestrate IaC Indore, India https://bhuvana.pro/ /bhuvanas @installjournal