Notes about the Pulumi challenge #2

Notes about the Pulumi challenge #2

"One Quickstart to Rule them All"

Pulumi launch the second challenge of 2022. For the first challenge, I wrote an step by step guide in the next GitHub repository(Link).

Okay! Let's go step by step and check the prerequisites before we start

Prerequisites

  • A Pulumi account

    • What is pulumi?

      According the web page definitions: Pulumi is a "Universal Infrastructure as Code", for "Every cloud, every language, every architecture, every builder"

  • The Pulumi CLI

    Pulumi CLI are an sets of commands for create(pulumi new), configure (pulumi configure) review(pulumi review), deploy (pulumi up) , destroy (pulumi destroy) and more than of our infrastructure from CLI.

    • In this ➡️ link , there are all steps by each platform ( Linux, Mac, Windows)
  • Python 3.9 or higher

    • Python needs no introduction 🐍, in this step : verify the version of python or install

      • Verity the version:

        python --version                                                                         
        Python 3.10.8
        
  • AWS account

    • In this link all informations for create AWS account
  • AWS CLI

    • In this Github Gits, I wrote an step by step for install and configure aws cli Link

About the challenge

The challenge has two parts, the first part orient to use of Architecture template and the second part centered on getting to know Policy Packs features.

The architecture template

Pulumi offer a variety of templates of architecture, for me the best approximations to multicloud are the serverless template, they has implementations for AWS, Azure and Google Cloud. Although it is not possible deploy the same services in different cloud providers , the serverless template are a great approximation a it.

Taking an abstract of the webpage:

"On AWS, you can build serverless applications using services like AWS Lambda, Amazon API Gateway, and Amazon S3."

"On Azure, you can build serverless applications using services like Azure Functions."

"On Google Cloud Platform, you can build serverless applications using services like Google Cloud Functions."

Policy Packs

One of most importante features of policy packs is the possibility that "Configuration allows you to author flexible Policy Packs that can be reused across your entire organization". Another great feature is the possibility of running locally (in the free tier) the policy. In the challenge this is the way of get the swag

pulumi preview --policy-pack policy --policy-pack-config swag.json

The possibility of run the policy locally, is very useful for development.

The code

In this repository, you will find a version of the complete code used for the challenge, however I encourage you to implement it by yourself.

Conclusions

  • The challenges are a great opportunity for review the Pulumi features and the possible implementations in ours developments.

  • I am always looking for the universal IaC tool, Pulumi is an extraordinary tool for multi cloud approximations.

  • The challenges are accessible for users of any entry level and it is a safe way to get familiar with Pulumi.

References