boundless-airport-99052
02/25/2020, 8:32 AMlimited-rainbow-51650
02/25/2020, 11:03 AMpulumi.ComponentResource
subclass, I add these custom resource options:
parent: this,
aliases: [{ parent: pulumi.getStack() }]
However, I still see a create
and delete
as separate lines in my Pulumi preview. How can I make this work?colossal-plastic-46140
02/25/2020, 2:09 PMpulumi.config.require_object("config")
if the config
object has data that was deemed a secret. I am trying to understand if require_object
automatically translates the portion of the object into a secret that was set by using pulumi config set --secret. FWIW it seems to mask the secret in pulumi preview, but when writing the state file it seems to be showing keys in plain text.great-fireman-56191
02/25/2020, 3:46 PMsalmon-needle-46218
02/25/2020, 9:47 PMripe-lighter-13633
02/25/2020, 10:05 PM.all().apply()
, .output()
, .interpolate()
, … idk what to do..calm-quill-21760
02/25/2020, 10:06 PMripe-lighter-13633
02/25/2020, 10:07 PMcalm-quill-21760
02/25/2020, 10:08 PMripe-lighter-13633
02/25/2020, 10:10 PMripe-lighter-13633
02/25/2020, 10:11 PMcalm-quill-21760
02/25/2020, 10:11 PMripe-lighter-13633
02/25/2020, 10:11 PMripe-lighter-13633
02/25/2020, 10:12 PM"apiVersion: v1\nkind: List\nitems:\n\n"
calm-quill-21760
02/25/2020, 10:13 PMripe-lighter-13633
02/25/2020, 10:14 PMcalm-quill-21760
02/25/2020, 10:14 PMripe-lighter-13633
02/25/2020, 10:15 PMripe-lighter-13633
02/25/2020, 10:16 PMripe-lighter-13633
02/25/2020, 10:19 PMcalm-quill-21760
02/25/2020, 10:23 PMimport * as aws from "@pulumi/aws";
import * as pulumi from "@pulumi/pulumi";
export function generateMachinesYaml(
masters: aws.ec2.Instance[],
workers: aws.ec2.Instance[]
) {
let results: any[] = [];
for (let i = 0; i < masters.length; i++) {
const m = masters[i];
pulumi
.all([m.id, m.publicIp, m.privateIp])
.apply(([id, publicIp, privateIp]) =>
results.push({
id,
publicIp,
privateIp,
label: "master"
})
);
}
let listItems: string[] = [];
for (let i = 0; i < workers.length; i++) {
const m = workers[i];
pulumi
.all([m.id, m.publicIp, m.privateIp])
.apply(([id, publicIp, privateIp]) =>
listItems.push(
`- apiVersion: <http://cluster.k8s.io/v1alpha1|cluster.k8s.io/v1alpha1>
kind: Machine
metadata:
name: $id}
namespace: weavek8sops
labels:
set: "worker"
spec:
versions:
kubelet: 1.14.1
controlPlane: 1.14.1
providerSpec:
value:
apiVersion: baremetalproviderspec/v1alpha1
kind: BareMetalMachineProviderSpec
public:
address: ${publicIp}
port: 22
private:
address: ${privateIp}
port: 22`
))
.apply(() => {
// listItems = listItems.join("\n");
const yaml =
`apiVersion: v1
kind: List
items: ${listItems}`;
return yaml;
});
}
}
billowy-laptop-45963
02/25/2020, 10:30 PMcalm-quill-21760
02/25/2020, 10:38 PMcalm-quill-21760
02/25/2020, 10:39 PMsalmon-account-74572
02/26/2020, 12:05 AMpulumi
CLI tool not check for and report on newer versions?dazzling-area-7593
02/26/2020, 2:42 AMdazzling-area-7593
02/26/2020, 2:42 AMgreat-fireman-56191
02/26/2020, 8:13 AMboundless-airport-99052
02/26/2020, 10:22 AMsticky-lighter-73941
02/26/2020, 10:29 AMsticky-lighter-73941
02/26/2020, 10:29 AMbroad-helmet-79436
02/26/2020, 12:03 PMpulumi up
on some kind of build server?
2. Do you have a forgotten terminal running pulumi watch
?
3. Did you pipe the output from pulumi up
to another program, such as pulumi up | less
? Pulumi auto-accepts changes in non-interactive environments (this will change in v2)sticky-lighter-73941
02/26/2020, 12:39 PMbroad-helmet-79436
02/26/2020, 1:11 PMpulumi preview
to see what will happen?sticky-lighter-73941
02/26/2020, 1:27 PMbroad-helmet-79436
02/26/2020, 1:28 PM