little-cartoon-10569
01/18/2021, 10:08 PMfull-dress-10026
01/19/2021, 1:34 AMcCluster.cluster.apply(cluster => {...
to services = pulumi.all([cCluster.cluster, taskDefs]).apply(([cluster, taskDefs]) => {
causes the Pulumi preview diff to think it needs to delete many resources. The key change is the switch to pulumi.all
. Once running the up
, it does not actually delete the resources it thought it needed to. Is there some way to get the Pulumi diff to operate correctly with pulumi.all
? This issue makes the preview unusable.ripe-holiday-8134
01/19/2021, 7:44 AMpulumi import gcp:compute/firewall:Firewall default projects/my-test-project/global/firewalls/my-firwall-rule
and getting the next error:
`error: gcp:compute/firewall:Firewall resource 'my-firwall-rule' has a problem: "deny": one of allow,deny
must be specified`
`error: gcp:compute/firewall:Firewall resource 'my-firwall-rule' has a problem: "allow": one of allow,deny
must be specified`
https://www.pulumi.com/docs/reference/pkg/gcp/compute/firewall/#import
someone knows what is missing?famous-twilight-87777
01/19/2021, 4:24 PMfamous-twilight-87777
01/19/2021, 4:25 PMfamous-twilight-87777
01/19/2021, 4:25 PMservice_account_key.privateKey.apply(k => writeFileSync("/tmp/test.json", Buffer.from(k,'base64').toString()));
famous-twilight-87777
01/19/2021, 4:26 PMproud-hair-78501
01/20/2021, 8:47 AMproud-hair-78501
01/20/2021, 8:54 AMproud-hair-78501
01/20/2021, 8:54 AMgifted-lifeguard-15584
01/20/2021, 10:26 AMincalculable-engineer-92975
01/20/2021, 2:17 PMincalculable-engineer-92975
01/20/2021, 2:18 PMbumpy-laptop-30846
01/20/2021, 4:46 PMpulumi new aws-typescript
. The pulumi requests that I login to the console. Is it normal? I follow this guideproud-hair-78501
01/20/2021, 6:35 PMproud-hair-78501
01/20/2021, 6:36 PMrough-optician-63632
01/20/2021, 6:51 PMContainerDefinition
string using a lookup value as part of my string in TypeScript.
const ecr = pulumi.output(
aws.ecr.getRepository(
{
name: `${environmentName}/${repositoryName}`,
},
{ async: true }
)
)
const containerDefinitions = JSON.stringify([
{
name: this.FormattedName,
image: pulumi.interpolate`${ecr.repositoryUrl}:${imageVersion}`,
portMappings: portMappings,
environment: environmentVariables
},
])
The containerDefinition variable later goes on to be used in the args of a new aws.ecs.TaskDefinition(name, args)
. When I console.log that container definition I get the following value for image:
[{… "image":"Calling [toJSON] on an [Output<T>] is not supported.\n\nTo get the value of an Output as a JSON value or JSON string consider either:\n 1: o.apply(v => v.toJSON())\n 2: o.apply(v => JSON.stringify(v))\n\nSee <https://pulumi.io/help/outputs> for more details.\nThis function may throw in a future version of @pulumi/pulumi." …}]
I started without the interpolate and I got a similar error (for toString instead of toJSON) suggesting I add the interpolate. Appending .apply((x) => JSON.stringify(x))
as it suggests to that interpolate results in the same error.
I'm sure I'm misusing something here. Can anyone help point out what I’m doing wrong please?elegant-island-39916
01/21/2021, 10:30 AMpulumi up
on k8s when their images target :latest
? no changes will be required after the first update, but i would like k8s to pull down the new imageelegant-island-39916
01/21/2021, 11:33 AMaws-load-balancer-controller
that generates a new secret each time pulumi up
is run, is there any way to get pulumi to ignore_changes
of the generated outputs of the helm chart plan?glamorous-helmet-50600
01/21/2021, 1:50 PMbig-potato-91793
01/21/2021, 1:52 PM✔ pulumi stack ls
error: error listing stacks: could not list bucket: blob (code=Unknown): RequestError: send request failed
caused by: Get "<https://s3.amazonaws.com/stack.json>": x509: failed to load system roots and no roots provided; SecTrustSettingsCopyCertificates error: -2070
any idea?glamorous-helmet-50600
01/21/2021, 2:06 PMpanic: interface conversion: interface {} is nil, not map[string]interface {}
Even though the preview correctly detects what changes needed to be applied.early-egg-62309
01/21/2021, 2:53 PMpulumi preview
, but pulumi thinks the resources need to be replaced & stops with an error that the resources are protected.
Surely if nothing has changed, then there is no need to replace?
If I try to unprotect in the csharp project, then I still receive an error from pulumi preview
, because the resource is still protected in the stack from the import.
How do I unprotect the imported resource?
Also, because the preview fails abruptly, I cannot see the replacement steps which pulumi thinks are needed, it seems to be null?
PS> pulumi preview --show-replacement-steps -v 3
Previewing update (bot)
View Live: <https://app.pulumi.com/wilsoncg/bot/bot/previews/c75fe0fb-9b27-4d6a-a068-4a7e53a694e0>
Type Name Plan Info
pulumi:pulumi:Stack bot-bot 1 error
+- └─ azure-nextgen:alertsmanagement/latest:SmartDetectorAlertRule Failure Anomalies - RachaelBot4wwyzn replace 1 error
Diagnostics:
azure-nextgen:alertsmanagement/latest:SmartDetectorAlertRule (Failure Anomalies - RachaelBot4wwyzn):
error: Preview failed: refusing to delete protected resource 'urn:pulumi:bot::bot::azure-nextgen:alertsmanagement/latest:SmartDetectorAlertRule::Failure Anomalies - RachaelBot4wwyzn'
pulumi:pulumi:Stack (bot-bot):
error: preview failed
big-potato-91793
01/21/2021, 3:17 PMbroad-dog-22463
01/21/2021, 3:24 PMbig-potato-91793
01/21/2021, 3:24 PMbig-potato-91793
01/21/2021, 3:25 PMbroad-dog-22463
01/21/2021, 3:28 PMbig-potato-91793
01/21/2021, 3:29 PMminiature-leather-70472
01/21/2021, 4:00 PMminiature-leather-70472
01/21/2021, 4:00 PM