abundant-photographer-61227
05/15/2020, 12:34 PMrich-easter-89163
05/15/2020, 6:29 PMbreezy-hamburger-69619
05/15/2020, 8:07 PMbest-lifeguard-91445
05/15/2020, 10:22 PMbest-lifeguard-91445
05/16/2020, 2:08 AMgreen-morning-1318
05/17/2020, 1:56 AMincalculable-whale-36468
05/17/2020, 10:49 AMrequire_object
?polite-motherboard-78438
05/17/2020, 11:33 AMconst sshKey = config.requireSecret("admin_pub_key");
const userData = `
#cloud-config
users:
- name: ${adminUser}
ssh-authorized-keys:
- ${sshKey}
sudo: ['ALL=(ALL) NOPASSWD:ALL']
groups: sudo
shell: /bin/bash
`;
It complains that it cant call toString on an Output<T> object on the "sshKey" variable. I just want get the string value from the secret. As simple as that!
Note that in this example I am already inside a string literal. I have tried to create a new variable, following the instructions of using pulumi interpolate, but get the same message. If someone can enlighten me on this, I would be greatfull.rhythmic-camera-25993
05/17/2020, 4:43 PMconst userData = sshKey.apply(key => `
#cloud-config
users:
- name: ${adminUser}
ssh-authorized-keys:
- ${sshKey}
sudo: ['ALL=(ALL) NOPASSWD:ALL']
groups: sudo
shell: /bin/bash
`);
rhythmic-camera-25993
05/17/2020, 4:45 PMawait
or via .then(x => ...)
rhythmic-camera-25993
05/17/2020, 4:45 PMapply
is like then
for a promisefull-dress-10026
05/17/2020, 9:51 PMawsx.cloudwatch.SingleNumberMetricWidget
with the period set to the duration of the cloudwatch dashboard window you're looking at? Without that, statistics seem a bit silly on the dashboard.limited-rainbow-51650
05/18/2020, 9:00 AMsome-chef-79525
05/18/2020, 1:31 PMsome-chef-79525
05/18/2020, 1:32 PMsome-chef-79525
05/18/2020, 1:33 PMfamous-jelly-72366
05/18/2020, 1:34 PMlimited-rainbow-51650
05/18/2020, 2:25 PMpulumi login file:///var/pulumi/state
pulumi stack init production --secrets-provider=passphrase
pulumi up --diff --yes
However, in my script, is there a way to have pulumi stack init
not error on the second and subsequent runs? I could silence it with a shell construct, but then I could possibly mask a possible error on the first run.hallowed-rain-9096
05/18/2020, 2:28 PMpulumi stack select -c stack-name
will create it only if it doesn't exist. Would that work?hallowed-rain-9096
05/18/2020, 2:28 PM--secrets-provider
flag as wellhallowed-rain-9096
05/18/2020, 2:28 PMacceptable-stone-35112
05/18/2020, 2:47 PMacceptable-stone-35112
05/18/2020, 3:38 PMbest-lifeguard-91445
05/18/2020, 4:25 PMbest-lifeguard-91445
05/18/2020, 6:07 PMpulumi up
isn't using the profile set in the config?
Pulumi.prod.yaml:
secretsprovider: ....
encryptedkey: ...
config:
aws:profile: prod-pa
aws:region: us-east-1
I get this error:
error: getting secrets manager: secrets (code=Unknown): AccessDeniedException: The ciphertext refers to a customer master key that does not exist, does not exist in this region, or you are not allowed to access.
status code: 400, request id: 91f0ea5d-cd55-44b0-8f4f-1413547fb896
I can describe the KMS successfully using:
aws kms describe-key --key-id=65500644-e3e5-44be-b3ea-d3928b0af188 --profile=pa-prod
So this makes me think the profile isn't being provided?limited-rainbow-51650
05/18/2020, 6:27 PMuses: <docker://pulumi/actions>
notation? I am using act (https://github.com/nektos/act/) to test my workflows locally and the docker:
notation does not seem to be supported.wonderful-dog-9045
05/18/2020, 8:14 PMrefusing to delete protected resource
, how can i override it or remove the protection? I am trying to do pulumi destroy
because pulumi up
is failing to update the vpc, due to another error.breezy-translator-75142
05/18/2020, 8:55 PMcreateVPCAssociationAuthorization
using Pulumi? Any thoughts/ideas?
https://aws.amazon.com/premiumsupport/knowledge-center/private-hosted-zone-different-account/icy-jordan-58549
05/18/2020, 9:02 PMpulumi
could you please help me with this?
pulumi:pulumi:Stack infra-test1 running... warning: resource plugin kubernetes is expected to have version >=2.2.0, but has 2.2.0-alpha.1589233905+gcf42dd90; the wrong version may be on your path, or this may be a bug in the plugin
faint-motherboard-95438
05/18/2020, 10:13 PMdependsOn
works and if it’s the solution to my problem.
From what I understand here https://www.pulumi.com/docs/intro/concepts/programming-model/#dependson it should properly wait for a previous resource to be available for the one I’m referencing it in.
In my usecase I provision postgresql with an helm chart and my migration service needs to wait in order to connect to it. Unfortunately, having inputs from the chart nor having it explicitly define in the dependsOn
does not make my service wait for all the services in the chart available and of course it fails since the database service is not available yet.
How am I supposed to properly define dependencies when pulumi fails to understand a specific case then ?