Coder Social home page Coder Social logo

pulumi-aws-python-quickstart's Introduction

pulumi-aws-python-quickstart

Pulumi stack on AWS with Python

Following: https://www.pulumi.com/docs/get-started/aws/begin/

From Scratch on a new OS with Homebrew and Python via pyenv:

  1. Install Pulumi

    brew install pulumi
  2. Create AWS access key for me

    aws-vault add me
  3. Create AWS access key for ken1

    aws-vault add ken1
  4. Create quickstart directory

    mkdir quickstart && cd quickstart
  5. Create new Pulumi stack

    pulumi new aws-python
  6. Create a new pulumi token to get started, enter it at the prompt

  7. Deploy stack

    aws-vault exec ken1 -- pulumi up
  8. Verify that the bucket is created by logging in with ken1 creds

  9. Modify the code to add a bucket object per the doc, apply

  10. Get the bucket name from the stack output:

    aws-vault exec ken1 -- aws s3 ls $(pulumi stack output bucket_name)
  11. Modify the code to set a static website from bucket, apply

  12. Use curl to make an HTTP request to the bucket endpoint:

    curl $(pulumi stack output bucket_endpoint)
  13. Destroyed stack and app history:

    aws-vault exec ken1 -- pulumi destroy
    pulumi stack rm dev

Reproducing

  1. git clone repo

  2. cd into it

  3. Initialize the stack:

    pulumi stack init dev

pulumi-aws-python-quickstart's People

Stargazers

Ales Verbic avatar

Watchers

James Cloos avatar Ken Jenney avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.