Skip to content

Instantly share code, notes, and snippets.

echo "Updating Pulumi Stack"
# Download dependencies and build
npm install
npm run build
# Update the stack
pulumi stack select acme/website-production
pulumi update --yes
@d-nishi
d-nishi / index.ts
Last active May 8, 2019 17:30
aks index.ts
import * as azure from "@pulumi/azure";
import * as pulumi from "@pulumi/pulumi";
import * as k8s from "@pulumi/kubernetes";
import * as azuread from "@pulumi/azuread";
// Step 1: Parse and export configuration variables for the AKS stack.
const config = new pulumi.Config();
export const password = config.require("password");
export const location = config.get("location") || "East US";
export const failoverLocation = config.get("failoverLocation") || "East US 2";
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"acm:DescribeCertificate",
"acm:ListCertificates",
"acm:GetCertificate"
],