acceptable-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>"
colossal-australia-65039
01/25/2021, 7:14 PMimport * as pg from "@pulumi/postgresql"
pg.config.host = 'redacted'
pg.config.username = 'redacted'
pg.config.password = 'redacted'
const serverRole = new pg.Role('redacted', {
login: true,
password: 'redacted',
name: 'redacted',
})
but I'm getting the error
error: Error initializing PostgreSQL client: error detecting capabilities: error PostgreSQL version: dial tcp :5432: connect: connection refused
The same creds work when I export as an env var.big-potato-91793
01/25/2021, 8:52 PMlifecycle {
create_before_destroy = true
}
this is something I can do also in pulumi?faint-motherboard-95438
01/26/2021, 12:42 AMType Name Plan Info
pulumi:pulumi:Stack services-staging 1 error
Diagnostics:
pulumi:pulumi:Stack (services-staging):
error: an unhandled error occurred: Program exited with non-zero exit code: -1
on a pulumi up
with no stack trace and no obvious way to understand the problem, appearing suddenly without any change to the codebase ? (TS flavor)
Even tried to checkout some old commit ref, still happening..quiet-leather-94755
01/26/2021, 5:21 AMOutput.all()
, is there any way to access the outputs one wants in the lambda by name, instead of index?
It quickly gets confusing with a more substantial piece of code like this one:
environment = Output.all(
databases["airflow"].address, # 0
databases["airflow"].password, # 1
databases["grafana"].address, # 2
databases["grafana"].password, # 3
databases["redata"].address, # 4
databases["redata"].password, # 5
base_url, # 6
sd_namespace.name, # 7
).apply(
lambda args: [
# Airflow DB
{"name": "AIRFLOW_CONN_METADATA_DB", "value": f"<postgres+psycopg2://airflow:{args[1]}@{args[0]}:5432/airflow>"},
{"name": "AIRFLOW_VAR__METADATA_DB_SCHEMA", "value": "airflow"},
# Airflow Config
{"name": "AIRFLOW__CORE__LOAD_DEFAULT_CONNECTIONS", "value": "False"},
{"name": "AIRFLOW__CORE__SQL_ALCHEMY_CONN", "value": f"<postgres+psycopg2://airflow:{args[1]}@{args[0]}:5432/airflow>"},
...
As you can see, I've taken to labeling each output with its index just to not get too lost.. 😅white-pencil-38837
01/26/2021, 9:47 AMpulumi:pulumi:Stack (xxxxxxx):
#1 [internal] load build definition from Dockerfile
#1 sha256:xxxxx
#1 transferring dockerfile: 237B done
#1 DONE 0.0s
#2 [internal] load .dockerignore
#2 sha256:xxxxx #2 transferring context: 2B done
#2 DONE 0.0s
straight-librarian-43739
01/26/2021, 4:44 PMawskms
secrets provider, what format/encoding is the ciphertext stored in? I get something like "ciphertext": "v1:NRtBgOKsQ3V/dF57:LHwdjA….
in my stack outputs which is not base64. (I want to decrypt it and get the plaintext)silly-queen-76790
01/26/2021, 5:02 PMincalculable-evening-30668
01/26/2021, 5:07 PMflat-waitress-69282
01/26/2021, 6:25 PMbillowy-army-68599
01/26/2021, 7:15 PMjolly-lifeguard-22556
01/26/2021, 8:49 PMyarn workspaces
(there are quite a few open GH issues about this). Are people here mostly just having separate repos for different projects? Or are you keeping a top level package.json/tsconfig.json and then having individual projects in different directories?jolly-lifeguard-22556
01/26/2021, 8:49 PMyarn workspaces
(there are quite a few open GH issues about this). Are people here mostly just having separate repos for different projects? Or are you keeping a top level package.json/tsconfig.json and then having individual projects in different directories?little-cartoon-10569
01/26/2021, 8:50 PMcd
.jolly-lifeguard-22556
01/26/2021, 9:10 PMlittle-cartoon-10569
01/26/2021, 9:16 PMjolly-lifeguard-22556
01/26/2021, 9:18 PMquiet-gold-81036
01/27/2021, 7:19 AMpackage.json
but we cheated and added pulumi
as a folder with its own package.json
(haven't tried keeping it in the top-level package.json
)jolly-lifeguard-22556
01/27/2021, 12:34 PMpulumi
folder or is it just the onequiet-gold-81036
01/27/2021, 12:50 PMjolly-lifeguard-22556
01/27/2021, 12:59 PMquiet-gold-81036
01/27/2021, 1:58 PMlittle-cartoon-10569
01/27/2021, 7:49 PM