worried-painting-67291
03/13/2020, 11:29 PMerror: It looks like the Pulumi SDK has not been installed. Have you run npm install or yarn install?
fast-dinner-32080
03/13/2020, 11:30 PMworried-painting-67291
03/13/2020, 11:30 PMworried-painting-67291
03/13/2020, 11:30 PMworried-painting-67291
03/13/2020, 11:31 PMworried-painting-67291
03/13/2020, 11:32 PMpulumi new
to create the directory without (re)creating the stackfast-dinner-32080
03/13/2020, 11:32 PMworried-painting-67291
03/13/2020, 11:33 PMworried-painting-67291
03/13/2020, 11:34 PMadmin
dev
and prod
worried-painting-67291
03/13/2020, 11:34 PMworried-painting-67291
03/13/2020, 11:34 PMadmin
and rnu either pulumi stack init
or pulumi stack select
worried-painting-67291
03/13/2020, 11:35 PMworried-painting-67291
03/13/2020, 11:40 PMfast-dinner-32080
03/13/2020, 11:42 PMworried-painting-67291
03/13/2020, 11:42 PMworried-painting-67291
03/13/2020, 11:42 PMfast-dinner-32080
03/13/2020, 11:43 PMworried-painting-67291
03/13/2020, 11:43 PMfast-dinner-32080
03/13/2020, 11:44 PMfast-dinner-32080
03/13/2020, 11:45 PMworried-painting-67291
03/13/2020, 11:45 PMgreen-school-95910
03/13/2020, 11:45 PMfast-dinner-32080
03/13/2020, 11:47 PMfast-dinner-32080
03/13/2020, 11:47 PMworried-painting-67291
03/13/2020, 11:48 PMindex.ts
stays the same, and just the Pulumi.stack.yaml
changesnutritious-pager-34892
03/13/2020, 11:48 PMworried-painting-67291
03/13/2020, 11:54 PMalert-artist-66265
03/13/2020, 11:59 PMworried-painting-67291
03/14/2020, 12:06 AMpolite-motherboard-78438
03/14/2020, 6:15 PMconst member = pulumi.interpolate`serviceAccount:${serviceAccount.email}`;
const policyData = gcp.organizations.getIAMPolicy({
bindings: [
{
role: "roles/storage.admin",
members: [member]
}
]
});
polite-motherboard-78438
03/14/2020, 6:15 PMconst member = pulumi.interpolate`serviceAccount:${serviceAccount.email}`;
const policyData = gcp.organizations.getIAMPolicy({
bindings: [
{
role: "roles/storage.admin",
members: [member]
}
]
});
faint-table-42725
03/14/2020, 8:09 PMget
itself within an apply, e.g.
policyData = serviceAccount.email.apply(email =>
gcp.organizations.getIAMPolicy(...))
(policyData will now be an Output<GetIAMPolicyResult>
which you can use elsewherepolite-motherboard-78438
03/15/2020, 10:20 AMconst policyData = serviceAccount.email.apply(email =>
gcp.organizations.getIAMPolicy({
bindings: [
{
role: "roles/storage.admin",
members: [
"serviceAccount:" + email,
"serviceAccount:" + gcpServiceAccount
]
}
]
})
);
const bucketPolicy = new gcp.storage.BucketIAMPolicy("velero", {
bucket: bucket.id,
policyData: policyData.policyData
});
faint-table-42725
03/15/2020, 4:53 PMpulumi.all
— you might want to take a look at https://www.pulumi.com/docs/intro/concepts/programming-model/#outputs if you haven’t alreadypolite-motherboard-78438
03/21/2020, 3:54 PMpulumi.all
in the unit tests documentation today Will tryconst policyData = pulumi
.all([serviceAccount.email, gcpServiceAccount])
.apply(([veleroServiceAccount, gcpServiceAccount]) => {
gcp.organizations.getIAMPolicy({
bindings: [
{
role: "roles/storage.admin",
members: [
"serviceAccount:" + veleroServiceAccount,
"serviceAccount:" + gcpServiceAccount
]
}
]
});
});
But now policyData is an instance of pulumi.OutputInstance<void>
and not Output<GetIAMPolicyResult>
faint-table-42725
03/23/2020, 3:12 AM=> { … }
as a void function. You should remove that extra set of braces and it should give you back what you want.polite-motherboard-78438
04/18/2020, 10:23 AM