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
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?quiet-gold-81036
01/27/2021, 7:20 AMprotected: true
the way to go?ripe-holiday-8134
01/27/2021, 9:07 AMpulumi stack --show-ids
but wondering if there is a tool or anything else easiermysterious-area-77666
01/27/2021, 2:30 PMpki_intermediate_environment_backend.pki_intermediate_environment_backend_path
it throws the following AttributeError:
'OLVaultPKIIntermediateEnvBackend' object has no attribute 'pki_intermediate_environment_backend_path'
Here’s the class:
class OLVaultPKIIntermediateEnvBackend(ComponentResource):
def __init__(
self,
backend_config: OLVaultPKIIntermediateEnvBackendConfig,
opts: ResourceOptions = None,
):
super().__init__(
"ol:services:Vault:PKI:IntermediateEnvBackendConfig",
backend_config.environment_name,
None,
opts,
)
resource_options = ResourceOptions(parent=self).merge(opts) # type: ignore
self.pki_intermediate_environment_backend = Mount(
f"pki-intermediate-{backend_config.environment_name}",
opts=resource_options,
path=f"pki-intermediate-{backend_config.environment_name}",
type="pki",
description=f"Backend to create certs for pki-intermediate-{backend_config.environment_name} backends",
max_lease_ttl_seconds=backend_config.max_ttl,
default_lease_ttl_seconds=backend_config.default_ttl,
)
self.register_outputs(
{
"pki_intermediate_environment_backend_path": self.pki_intermediate_environment_backend.id,
}
)
incalculable-engineer-92975
01/27/2021, 3:00 PMadorable-musician-67025
01/27/2021, 3:01 PMaverage-lamp-65631
01/27/2021, 3:17 PMpulumi stack ls -p myproject
doesn't filter, instead list all stacks.dry-football-2639
01/27/2021, 3:33 PMadorable-musician-67025
01/27/2021, 3:38 PMadorable-musician-67025
01/27/2021, 3:39 PMacoustic-crayon-97235
01/27/2021, 3:50 PMacoustic-crayon-97235
01/27/2021, 4:36 PMacoustic-crayon-97235
01/27/2021, 4:36 PMastonishing-quill-88807
01/27/2021, 7:21 PMastonishing-quill-88807
01/27/2021, 7:22 PMquiet-leather-94755
01/27/2021, 8:20 PMacoustic-crayon-97235
01/28/2021, 12:03 AMacoustic-crayon-97235
01/28/2021, 12:04 AMacoustic-crayon-97235
01/28/2021, 12:04 AMquaint-electrician-41503
01/28/2021, 12:34 AM