salmon-printer-16080
06/01/2022, 10:24 PMcrooked-sunset-90921
06/01/2022, 11:06 PMwhite-rain-67342
06/02/2022, 1:08 AMapi_url
is an Output type and the replace function expects a string.
The following is my snippet:
with open('./nginx.conf', 'r') as file:
config = file.read()
config = config.replace("{{API_URL}}", api_url.apply(lambda foo: foo))
print(config)
config_map = ConfigMap(
'nginx-config',
metadata=ObjectMetaArgs(labels=labels),
data={'default.conf': config}
)
white-terabyte-21934
06/02/2022, 7:09 AMpulumi.output.Output object
.
• Would like to print these values via a print statement (like terraform output format) ,what is the best way to fetch the value via Ouput() method ?bulky-agent-73210
06/02/2022, 8:10 AMquick-wolf-8403
06/02/2022, 3:12 PMgifted-restaurant-32325
06/02/2022, 3:43 PMchilly-plastic-75584
06/02/2022, 4:12 PMstraight-intern-54129
06/02/2022, 4:41 PMpulumi up
, I get this diagnostics error and it won't let me update my stack:
pulumi:pulumi:Stack (PulumiArm-prod):
The launch profile "(Default)" could not be applied.
A usable launch profile could not be located.
straight-intern-54129
06/02/2022, 5:30 PMPulumi.AzureAD
NuGet package, the Pulumi.AzureAD.Application
used to have AvailableToOtherTenants
, Oauth2AllowImplicitFlow
, and ReplyUrls
.
Have they been moved? I have been Googling but have not been able to find them.
EDIT: Resolved by reverting back to the older version and they all had deprecated attributes with guidance on the new properties.icy-jordan-58549
06/02/2022, 5:33 PMerror: could not validate provider configuration: 4 errors occurred:
* : invalid or unknown key: azure_client_id
* : invalid or unknown key: azure_client_secret
* : invalid or unknown key: azure_tenant_id
* : invalid or unknown key: azure_workspace_resource_id
quick-wolf-8403
06/02/2022, 6:56 PMgcp:project
, gcp:region
)
Can I now rely on them via something like project_id = config.require("gcp:project")
? I get an error suggesting I need to set it in my Pulumi project namespace. Is there a way to access these directly w/o duplicating them?acoustic-tiger-77630
06/02/2022, 7:13 PMdelightful-napkin-38557
06/02/2022, 8:06 PMpulumi plugin install resource xyz 0.0.1 --file ./dist/pulumi-resource-xyz-v0.0.1-linux-amd64.tar.gz
. But the last thing I can not find in the doc, it's how to use the plugin/resource in my main (python) code. Can someone help me with that ? Thanks !red-scooter-62880
06/02/2022, 9:26 PMquick-wolf-8403
06/02/2022, 9:47 PMk: await serialize_property(
File "/home/a/.cache/pypoetry/virtualenvs/nocap-api-tm7b1NnF-py3.10/lib/python3.10/site-packages/pulumi/runtime/rpc.py", line 450, in serialize_property
raise ValueError(f"unexpected input of type {type(value).__name__}")
ValueError: unexpected input of type tuple
echoing-autumn-99089
06/02/2022, 10:21 PMmysterious-hamburger-19066
06/02/2022, 10:23 PMgreat-byte-67992
06/03/2022, 1:53 AMconst mongodbPassword = new random.RandomPassword(
`my-password`,
{
length: 32,
special: false,
},
{
parent: this, // <-- previously undefined
aliases: [
{
name: `my-password`,
project: pulumi.getProject(),
stack: pulumi.getStack(),
parent: pulumi.rootStackResource,
},
],
}
);
Have I done something obviously wrong? I've also tried using a full URN for the "name" in the alias object but I get the same result.
Pulumi thinks it needs to delete and create the resource because of the parent change. I'm having this problem for all resources in my stack including a helm Chart resource.proud-cricket-86351
06/03/2022, 6:56 AMbreezy-book-15761
06/03/2022, 2:57 PMfreezing-daybreak-42018
06/03/2022, 3:01 PMfreezing-daybreak-42018
06/03/2022, 3:01 PMfreezing-daybreak-42018
06/03/2022, 3:01 PMfreezing-daybreak-42018
06/03/2022, 3:01 PMkind-keyboard-17263
06/03/2022, 3:08 PMgcp.secretmanager.Secret
, and I need the .secret_id
field. I have read that it must be done either by using apply
or lifting
.
So:
existing_secret = gcp.secretmanager.Secret.get(
secret_basic.name.apply(lambda name: name),
secret_basic.secret_id.apply(lambda id: id))
But I keep on having:
TypeError: Expected resource name to be a string
What am I doing wrong ?average-tiger-58107
06/03/2022, 5:51 PMI want to access environment variables from my config as follows:
const config = new pulumi.Config("environment");
const var1 = config.require("VAR_NAME");
const var2 = config.require("ANOTHER_VAR_NAME");
// This works
config:
environment:VAR_NAME: "my value"
environment:ANOTHER_VAR_NAME: "another value"
----------------------
// This does not work
config:
environment:
VAR_NAME: "my value"
ANOTHER_VAR_NAME: "another value"
It feels redundant to list the environment:
prefix on every line. Am I missing something obvious about YAML? Why doesn't this work?bumpy-byte-21437
06/04/2022, 10:23 AMbumpy-byte-21437
06/04/2022, 10:23 AMworried-gold-55244
06/05/2022, 2:58 AMworried-gold-55244
06/05/2022, 2:58 AM<resource_name>-1fbc698
to <resource_name>-1f
billowy-army-68599
06/05/2022, 7:29 AMworried-gold-55244
06/05/2022, 8:21 PM