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

Building Serverless apps with IaC

Building Serverless apps with IaC

The importance of maintaining Serverless apps as IaC going with the lesson I've learnt from building without it.

This was presented at AWS UG Colombo monthly meet-up and the recording is available at - https://youtu.be/4mAaPF4L-ec

Jones Zachariah Noel N

April 28, 2022
Tweet

More Decks by Jones Zachariah Noel N

Other Decks in Technology

Transcript

  1. Building Serverless
    apps with IaC
    Jones Zachariah Noel N
    Cloud Architect - Serverless
    Mobil80 Solutions and Services Pvt Ltd
    AWS Community Builder

    View Slide

  2. About me
    ● Cloud Architect - Serverless @
    Mobil80 Solutions and Services Pvt
    Ltd
    ● AWS Community Builder
    ● Serverless advocate
    ● Hobbyist photographer and baker

    View Slide

  3. Agenda
    ● Looking into Infrastructure as Code (IaC)
    ● How IaC helps
    ● IaC providers for Serverless
    ● Understanding SAM CLI
    ● Demo with SAM CLI

    View Slide

  4. Looking into Infrastructure as Code (IaC)
    ● Single source of truth.
    ● Managing and provisioning resources
    on the cloud with code.
    ● Easy to replicate to multiple
    instances.
    ● Best known method for CI/CD
    pipelines.

    View Slide

  5. How IaC helps
    ● Faster deployments /
    re-deployments / rollbacks.
    ● Elimination of manual infrastructure
    provisioning.
    ● Test in multiple instances /
    environments.
    ● Consistent configuration across
    environments.
    ● Minimized human bound errors.
    ● Improvised development practice.

    View Slide

  6. IaC providers for Serverless
    ● AWS CloudFormation
    ● Serverless Application Model (SAM) CLI
    ● AWS Cloud Development Kit (CDK)
    ● AWS Amplify CLI
    ● Serverless Framework
    ● Terraform

    View Slide

  7. Before IaC
    After IaC

    View Slide

  8. Understanding SAM CLI
    ● Serverless Application Model (SAM)
    CLI is an open source framework.
    ● Uses YAML template for AWS
    resource provisions.
    ● Powered by AWS CloudFormation.
    ● CLI options for build - deploy to the
    cloud, sync infrastructure changes to
    cloud, building CI/CD pipelines.

    View Slide

  9. Demo with SAM CLI

    View Slide

  10. Thank you!
    https://zachjonesnoel.com @zachjonesnoel zachjonesnoel zachjonesnoel
    jones-zachariah-noel-n

    View Slide