Slide 1

Slide 1 text

Infrastructure as Software Declare cloud infrastructure using real languages. Enable developers and operators to work better together. Paul Stack (@stack72/paul@pulumi.com) Pulumi Engineer June 2020

Slide 2

Slide 2 text

Cloud Transition Kubernetes Amazon Lambda AWS S3 Azure Analytics Google ML MySQL DataDog App Docker DataDog New Relic App MySQL v1 v2 v3 FIRST WAVE Mostly Static N-Tier Apps VMs Private Cloud TRANSITIONAL Partly Dynamic Less Monolithic VMs and Containers* Hybrid - Public/Private *Experimentation MODERN Fully Dynamic Hyper-Connected Services Containers and Serverless Mostly Public Cloud 2

Slide 3

Slide 3 text

What is Infrastructure as Code ● Eliminate manual error-prone provisioning and changes ● Bring software best practices to infrastructure management ● Gain visibility of changes through code reviews and previews

Slide 4

Slide 4 text

Why Infrastructure as Code ● Automated and repeatable deployments ● Decreased time-to-market for new applications and ongoing maintenance ● Safe predictable changes

Slide 5

Slide 5 text

Modern Infrastructure as Code 5 CREATE ● Real languages ● Share and reuse abstractions ● Use your favorite tools (IDE, testing, etc) DEPLOY ● Preview changes ● Flexible CLI for Dev and Ops familiarity ● Integrate into CI/CD workflows MANAGE ● Audit all changes ● Managed complex environments ● Implement policies and controls 1 2 3 PULUMI CONFIDENTIAL

Slide 6

Slide 6 text

Bring Software Development Practices to Infrastructure Infrastructure as Code Software 6 Use semantic versioning, testing, and code review development practices for all aspects of your cloud software. Eliminate slow error-prone manual changes and bring automation and repeatability to infrastructure management. Enforce best practices using abstractions and reuse -- no more copy and paste.

Slide 7

Slide 7 text

Modern Infrastructure Frameworks FOUNDATION PROVIDERS Unopinionated support for all clouds and their resources. Containers Serverless Infrastructure BEST PRACTICES FRAMEWORKS Create modern cloud software using best practices. PRODUCTIVITY CONTROL 7 PATTERNS LIBRARIES Cloud-specific libraries for common patterns and practices. PULUMI CONFIDENTIAL

Slide 8

Slide 8 text

Deploy Code from/to Anywhere 8 SOURCE CODE LANGUAGES CI/CD ENVIRONMENTS Infrastructure as Code Applications Any Language

Slide 9

Slide 9 text

This box is to provide a consistent background for variable width code snippets. Use a consistent object model for all resource types without needing to know the underlying API operations needed to create and manage the resources. Define the final end state of your resources. Resource Definitions 9 Pulumi lets you define the final configuration state of your resources and knows the steps to get there.

Slide 10

Slide 10 text

This box is to provide a consistent background for variable width code snippets. The full functionality of programming languages brought to Infrastructure as Code. Create Infrastructure Using Real Programming Features Conditionals and Loops 10 Pulumi lets you program your infrastructure just like the rest of your applications with the expressiveness and flexibility of real programming languages. In this example, we provision a VPC and public subnets only if we’ve defined CIDR blocks for them in our configuration.

Slide 11

Slide 11 text

This box is to provide a consistent background for variable width code snippets. Mix Kubernetes, Cloud, and Custom Resources A consistent programming model, tools, and workflow for deploying and managing IaaS, PaaS, SaaS, and custom resources. Multi-Provider Workflows 11 Pulumi makes it possible to declare and manage resources for multiple infrastructure services in a single Pulumi application. In this example, we provision an AWS S3 bucket and use it with a Kubernetes cluster.

Slide 12

Slide 12 text

This box is to provide a consistent background for variable width code snippets. Build and Share Reusable Components Compose resources into an architecture that fits your company’s requirements and then share that across teams. Reusability 12 Pulumi applications are real software projects that can be re-distributed through typical package managers. In this example, we provision a Jenkins cluster from a module from our internal software repository.

Slide 13

Slide 13 text

This box is to provide a consistent background for variable width code snippets. Enable Advanced DevOps Strategies Advanced Orchestration 13 Pulumi enables previously difficult or impossible deployment scenarios for real-world Kubernetes environments. In this example, we check Prometheus for healthy metrics before proceeding to deploy to our Production cluster. Incorporate data from monitoring services into deployment procedures.

Slide 14

Slide 14 text

Use familiar frameworks and techniques to test infrastructure Test Driven Infrastructure 14 Teams can perform unit, integration, and runtime testing, fully integrated into your development and CI/CD workflows. No need to master a new set of tools -- reuse what you and your team already knows. PULUMI CONFIDENTIAL

Slide 15

Slide 15 text

Secrets Management Built-in encrypted secrets management and configuration. $ pulumi config set --secret dbPassword 2u%^JAEf*L6.?2}G Easy to store and use deployment-time secrets safely. Strong encryption for all state, ensuring secrets won’t leak. Use built-in Pulumi KMS, or choose seamless integration from leading providers. 15 KMS PULUMI CONFIDENTIAL

Slide 16

Slide 16 text

16

Slide 17

Slide 17 text

17 pulumi login --cloud-url s3://my-bucket

Slide 18

Slide 18 text

Demo time! Let’s program the cloud! 18

Slide 19

Slide 19 text

In Conclusion The Easiest Way to Program the Cloud

Slide 20

Slide 20 text

Thank You https://www.pulumi.com/ paul@pulumi.com @Stack72 20