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 PMacceptable-printer-2467
01/21/2021, 5:23 PMconst peNicIp = pulumi
.all([resourceGroupName, privateEndpoint.networkInterfaces[0].id])
.apply(async ([rgName, peNicId]) => {
const nic = await azureng.network.latest.getNetworkInterface({
resourceGroupName: rgName,
networkInterfaceName: peNicId?.split('/').pop() || '',
});
return nic.ipConfigurations![0].privateIPAddress;
})
.apply(ip => {
console.log({ ip });
return ip!;
});
const ehPeRs = peNicIp.apply(
ip =>
new azureng.network.latest.RecordSet(rtti`eh-pe-rs`, {
resourceGroupName,
privateZoneName: ehPEZone.name,
recordType: 'A',
relativeRecordSetName: `name`,
aRecords: [
{
ipv4Address: ip,
},
],
})
);
which throws the error:
cannot check existence of resource '/subscriptions/subId/resourceGroups/resourceGroup/providers/Microsoft.Network/privateDnsZones/dnsZone/A/Calling%20%5BtoString%5D%20on%20an%20%5BOutput%3CT%3E%5D%20is%20not%20supported.%0A%0ATo%20get%20the%20value%20of%20an%20Output%3CT%3E%20as%20an%20Output%3Cstring%3E%20consider%20either%3A%0A1%3A%20o.apply%28v%20%3D%3E%20%60prefix%24%7Bv%7Dsuffix%60%29%0A2%3A%20pulumi.interpolate%20%60prefix%24%7Bv%7Dsuffix%60%0A%0ASee%20https%3A%2F%2Fpulumi.io%2Fhelp%2Foutputs%20for%20more%20details.%0AThis%20function%20may%20throw%20in%20a%20future%20version%20of%20%40pulumi%2Fpulumi..Calling%20%5BtoString%5D%20on%20an%20%5BOutput%3CT%3E%5D%20is%20not%20supported.%0A%0ATo%20get%20the%20value%20of%20an%20Output%3CT%3E%20as%20an%20Output%3Cstring%3E%20consider%20either%3A%0A1%3A%20o.apply%28v%20%3D%3E%20%60prefix%24%7Bv%7Dsuffix%60%29%0A2%3A%20pulumi.interpolate%20%60prefix%24%7Bv%7Dsuffix%60%0A%0ASee%20https%3A%2F%2Fpulumi.io%2Fhelp%2Foutputs%20for%20more%20details.%0AThis%20function%20may%20throw%20in%20a%20future%20version%20of%20%40pulumi%2Fpulumi.': status code 400, <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""<http://www.w3.org/TR/html4/strict.dtd>">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid URL</h2>
<hr><p>HTTP Error 400. The request URL is invalid.</p>
</BODY></HTML>
I’m unsure of if this is a bug as I’m clearly using apply
in an attempt to retrieve the actual value of the output..any help would be appreciated 🙂early-egg-62309
01/21/2021, 7:57 PMwarning: A new version of Pulumi is available. To upgrade from version '2.17.2' to '2.18.0', run
> powershell -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('<https://get.pulumi.com/install.ps1')>)"
or visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
PS> powershell -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('<https://get.pulumi.com/install.ps1')>)"
Downloading <https://get.pulumi.com/releases/sdk/pulumi-v2.17.2-windows-x64.zip>
PS> (Invoke-WebRequest -UseBasicParsing <https://www.pulumi.com/latest-version).Content.Trim()>
2.17.2
🤔big-state-95297
01/22/2021, 12:53 AMstale-autumn-24797
01/22/2021, 10:53 AMfew-tent-80031
01/22/2021, 4:04 PMproud-hair-78501
01/22/2021, 4:34 PMproud-hair-78501
01/22/2021, 4:43 PMbored-river-53178
01/22/2021, 5:42 PMbored-river-53178
01/22/2021, 5:42 PMswift-agency-29333
01/22/2021, 5:45 PMprehistoric-nail-50687
01/22/2021, 7:19 PMshy-oxygen-8874
01/22/2021, 8:15 PMchilly-hairdresser-56259
01/22/2021, 9:04 PMglamorous-helmet-50600
01/22/2021, 9:43 PMerror: Error creating/updating App Service Certificate "cert-identity-dev" (Resource Group "rg-test-dev244b9b58"): web.CertificatesClient#CreateOrUpdate: Failure responding to request: StatusCode=500 -- Original Error: autorest/azure: Service returned an error. Status=500 Code="" Message="An error has occurred."
I'm quite new to Pulumi so any help would be appreciated.tall-needle-56640
01/22/2021, 9:43 PMstorageAccountName
instead of storageAccount.Name
and then there is a hidden race condition. I kind of thought the Pulumi Console did that, but I'm not seeing that now.mammoth-honey-6147
01/24/2021, 10:24 AMpulumi up
if a conditional statement isn't met? For example, I have a variable the specifies the number of EC2 instances to be made - in my Pulumi code (go) I loop round this number to create N number of EC2 instances. However, I want these to be spread over an equal number of availability zones. ideally, I'd want to check if ec2instances > az's, bail.bitter-bear-28592
01/25/2021, 3:40 AMpulumi-resource-azure.exe
exists in the given folder) Thank you for your help!prehistoric-nail-50687
01/25/2021, 11:31 AMdry-football-2639
01/25/2021, 4:20 PMauthorizer.rules (iac:services:KubePrometheusStack$kubernetes:<http://monitoring.coreos.com/v1:PrometheusRule|monitoring.coreos.com/v1:PrometheusRule>)
Retry #0; creation failed: no matches for kind "PrometheusRule" in version "<http://monitoring.coreos.com/v1|monitoring.coreos.com/v1>"
Retry #1; creation failed: no matches for kind "PrometheusRule" in version "<http://monitoring.coreos.com/v1|monitoring.coreos.com/v1>"
Retry #2; creation failed: no matches for kind "PrometheusRule" in version "<http://monitoring.coreos.com/v1|monitoring.coreos.com/v1>"
Retry #3; creation failed: no matches for kind "PrometheusRule" in version "<http://monitoring.coreos.com/v1|monitoring.coreos.com/v1>"
Retry #4; creation failed: no matches for kind "PrometheusRule" in version "<http://monitoring.coreos.com/v1|monitoring.coreos.com/v1>"
Retry #5; creation failed: no matches for kind "PrometheusRule" in version "<http://monitoring.coreos.com/v1|monitoring.coreos.com/v1>"
error: creation of resource cluster-services/authorizer.rules failed because the Kubernetes API server reported that the apiVersion for this resource does not exist. Verify that any required CRDs have been created: no matches for kind "PrometheusRule" in version "<http://monitoring.coreos.com/v1|monitoring.coreos.com/v1>"