Giter Site home page Giter Site logo

pulumi-as-a-service's Introduction

pulumi-as-a-service

Example repository on how the automation API could work. Don't expect many updates.

requirements

We assume you have the following utilities installed and configured:

  • pulumi
  • aws-vault
  • aws-cli

Familiarise yourself with these tools before continuing.

# Authenticate with AWS
$ aws-vault exec some-aws-account
# Tell pulumi to use the KMS encryption key to encrypt the state
$ export KMS_KEY_ALIAS=pulumi-secrets-encryption-key
# Tell pulumi to use the state bucket you have created
$ export PULUMI_BACKEND_URL=s3://arno-pulumi-state-bucket-deleteme

interesting reads, pulumi docs & gotcha's

Pulumi Environment Variables

When using a custom backend, you have to persist the StackSettings as well. See pulumi/automation-api-examples#4 (comment).

Pulumi generates stack settings files in the form of Pulumi.yaml and Pulumi.dev.yaml. These files seem redundant as they are regenerated each time.

Use the AWS KMS secrets provider instead of a passphrase. See https://github.com/pulumi/automation-api-examples/blob/main/nodejs/inlineSecretsProvider-ts/index.ts#L75.

Don't use direct imports for infrastructure resources, see pulumi/pulumi-aws#772.

For example:

// won't work
import { Bucket } from "@pulumi/aws/s3";

// will work
import * as aws from "@pulumi/aws";
const bucket = new aws.s3.Bucket();

Check out the unit testing docs since there are a few gotcha's.

pulumi-as-a-service's People

Contributors

renovate[bot] avatar arnoschutijzer avatar renovate-bot avatar

Watchers

 avatar

pulumi-as-a-service's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/build.yml
  • actions/checkout v3
  • actions/setup-node v3
  • borales/actions-yarn v3.0.0
  • borales/actions-yarn v3.0.0
  • borales/actions-yarn v3.0.0
  • borales/actions-yarn v3.0.0
npm
api/package.json
  • @types/jest 29.2.2
  • jest 29.2.2
  • nodemon 2.0.20
  • prettier 2.7.1
  • ts-jest 29.0.3
cli/package.json
  • ts-node ^10.4.0
  • yargs ^17.2.1
  • @types/jest 29.2.2
  • @types/node 18.11.9
  • jest 29.2.2
  • prettier 2.7.1
  • typescript 4.8.4
core/package.json
  • @pulumi/aws ^5.0.0
  • @pulumi/pulumi ^3.16.0
  • @types/express ^4.17.13
  • express ^4.17.1
  • ts-node ^10.8.2
  • typescript ^4.4.4
  • @types/jest 29.2.2
  • jest 29.2.2
  • prettier 2.7.1
  • ts-jest 29.0.3
package.json

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (local>refsiverdur/renovate-config)

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.