colossal-ram-89482
01/02/2020, 5:21 AMcrooked-oxygen-60167
01/02/2020, 2:00 PMcrooked-oxygen-60167
01/02/2020, 2:23 PMcrooked-oxygen-60167
01/02/2020, 2:26 PMadamant-postman-86832
01/02/2020, 4:45 PMgorgeous-egg-16927
01/02/2020, 9:58 PMlimited-rain-96205
01/03/2020, 12:33 AMpulumi config set
requires that you be logged in, and while you can do a local login, that makes it unaware of which stacks exist, so it prompts you to create the stack. Is there any way to reduce this operational overhead and just have a file-based approach?orange-australia-91292
01/03/2020, 9:19 AMflat-insurance-25294
01/03/2020, 10:14 AMbetter-actor-92669
01/03/2020, 10:28 AMpulumi config set
? For example,
config = Config('gcp')
config.__setattr__('a', 'b')
orange-australia-91292
01/03/2020, 10:38 AMxattr -dr com.apple.quarantine ~/.pulumi/bin/*
will remove the “unidentified developer flag”orange-australia-91292
01/03/2020, 10:40 AMorange-australia-91292
01/03/2020, 10:41 AMorange-australia-91292
01/03/2020, 10:42 AMset()
thoughbetter-actor-92669
01/03/2020, 10:43 AMget
and require_secret
, but I can't seem to find how to set it up programmaticallyorange-australia-91292
01/03/2020, 10:45 AMbetter-actor-92669
01/03/2020, 10:49 AMfuture-yak-43516
01/03/2020, 4:21 PM#!/bin/bash
# exit if a command returns a non-zero exit code and also print the commands and their args as they are executed
set -e -x
# Download and install required tools.
# pulumi
curl -fsSL <https://get.pulumi.com/> | bash
export PATH=$PATH:$HOME/.pulumi/bin
# Login into pulumi. This will require the PULUMI_ACCESS_TOKEN environment variable
ls -l ~/.pulumi/bin
pulumi login
# update the GitLab Runner's packages
apt-get update -y
apt-get install sudo -y
# nodejs
curl -sL <https://deb.nodesource.com/setup_8.x> | sudo -E bash -
apt-get install -y nodejs
# yarn
npm i -g yarn
exits at pulumi login with the following error:
pulumi login
./setup.sh: line 12: /root/.pulumi/bin/pulumi: No such file or directory
I did a ls -l before the call in order to check if all files are in that folder and if they are executable, that's the result:
38 === Installing Pulumi v1.8.1 ===
39 + Downloading https://get.pulumi.com/releases/sdk/pulumi-v1.8.1-linux-x64.tar.gz...
40 % Total % Received % Xferd Average Speed Time Time Time Current
41 Dload Upload Total Spent Left Speed
42 100 52.1M 100 52.1M 0 0 13.7M 0 00003 00003 -- -- 13.7M
43 + Extracting to /root/.pulumi/bin
44 === Pulumi is now installed! 🍹 ===
45 + Please add /root/.pulumi/bin to your $PATH
46 + Get started with Pulumi: https://www.pulumi.com/docs/quickstart
47 + export PATH=/usr/local/sbin/usr/local/bin/usr/sbin/usr/bin/sbin/bin/root/.pulumi/bin
48 + PATH=/usr/local/sbin/usr/local/bin/usr/sbin/usr/bin/sbin/bin/root/.pulumi/bin
49 + ls -l /root/.pulumi/bin
50 total 116648
51 -rwxr-xr-x 1 root root 46136504 Jan 3 11:28 pulumi
52 -rwxr-xr-x 1 root root 245 Jan 3 11:28 pulumi-analyzer-policy
53 -rwxr-xr-x 1 root root 17218844 Jan 3 11:28 pulumi-language-dotnet
54 -rwxr-xr-x 1 root root 21598301 Jan 3 11:28 pulumi-language-go
55 -rwxr-xr-x 1 root root 17349733 Jan 3 11:28 pulumi-language-nodejs
56 -rwxr-xr-x 1 root root 17114009 Jan 3 11:28 pulumi-language-python
57 -rw-r--r-- 1 root root 4734 Jan 3 11:28 pulumi-language-python-exec
58 -rwxr-xr-x 1 root root 238 Jan 3 11:28 pulumi-resource-pulumi-nodejs
59 -rwxr-xr-x 1 root root 41 Jan 3 11:28 pulumi-resource-pulumi-python
what am I'm missing? gitlab runner configuration etc. I took from the documentation.early-intern-90238
01/03/2020, 10:43 PMearly-intern-90238
01/03/2020, 10:43 PMearly-intern-90238
01/03/2020, 10:43 PMearly-intern-90238
01/03/2020, 10:55 PMwet-sunset-4939
01/04/2020, 1:56 AMbright-orange-69401
01/04/2020, 6:25 AMserverless
and pulumi
side by side
Serverless does a good job at providing code boilerplate and packaging functions but Pulumi far outclasses it when it comes to infrastructure provisioning.
What's the best way to make those two work together ?
Should I just add a "Managed By" tag to my resources depending on wether they were deployed by Serverless or Pulumi ?
How do I automatically import in my Pulumi stack resources that were created by Serverless ?
Is it better to not use Serverless's deployment features altogether ?flat-insurance-25294
01/04/2020, 3:55 PMflat-insurance-25294
01/04/2020, 10:18 PMpulumi up new-stack-123 <bunch of env variables>
flat-insurance-25294
01/04/2020, 10:27 PMpulumi.Output*<*string[]*>*
into a pulumi.Input*<*string*>[]*
?flat-insurance-25294
01/04/2020, 10:44 PMlet q = outputArray.apply((servers) => {
let output: pulumi.Output<string>[] = servers.map(s => pulumi.output(s))
return output
}
)
But not comfortable with it.flat-insurance-25294
01/04/2020, 10:44 PMflat-insurance-25294
01/05/2020, 12:11 AMget_or_create()
?
Say a few stacks depend on a resource, but if it doesn’t exist it can get them.
And other stacks can do the same, that way I don’t rely on running a specific stack first.