ripe-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 AMthousands-london-78260
02/26/2020, 2:11 PMstocky-spoon-28903
02/26/2020, 3:00 PMstocky-spoon-28903
02/26/2020, 3:00 PMbitter-dentist-28132
02/26/2020, 9:10 PMbitter-dentist-28132
02/26/2020, 9:10 PMpulumi config set
? i'm just using the standard env vars right nowbitter-dentist-28132
02/26/2020, 9:10 PMlate-advantage-85073
02/26/2020, 9:36 PMbusy-umbrella-36067
02/26/2020, 11:22 PMprofile
or an assumed role_arn
We’re publishing abstracted AWS/K8S providers for our software devs and using env vars or depending on the pulumi config isn’t viable because a user may be using an explicitly created provider in their IaCaloof-ram-68069
02/27/2020, 11:20 AMdamp-account-75122
02/27/2020, 5:36 PMpulumi new
creates a project and stack in my personal account rather than the org. I cannot find a switch or env var to instruct pulumi to use the org as the default account. Is this possible? Thanks!swift-painter-31084
02/27/2020, 6:49 PMlimited-rainbow-51650
02/27/2020, 6:50 PMred-salesclerk-85731
02/27/2020, 7:08 PM"list_policy": {
(...)
"allow": {
(...)
"all": {
Type: schema.TypeBool,
Optional: true,
############ ---> Default: false, <-- Default Value #########
ExactlyOneOf: []string{"list_policy.0.allow.0.all", "list_policy.0.allow.0.values"},
},
"values": {
Type: schema.TypeSet,
Optional: true,
ExactlyOneOf: []string{"list_policy.0.allow.0.all", "list_policy.0.allow.0.values"},
Elem: &schema.Schema{Type: schema.TypeString},
Set: schema.HashString,
},
},
},
},
https://github.com/terraform-providers/terraform-provider-google/blob/1f9e0cb9c3cef1c65cfd2054ca8dfd2795ac42a6/google/resource_google_organization_policy.go#L55
And I created it like this:
new projects.OrganizationPolicy('Only allow resource in Europe', {
constraint: 'gcp.resourceLocations',
project: gcloud.project,
listPolicy: {
allow: {
values: ['in:europe-west4-locations']
}
}
})
What would be the value of resource.listPolicy.allow.all
?