bright-sandwich-93783
06/28/2021, 2:36 AMpulumi up
to realize this and re-create the instance? This is obviously what TF does but I have just tested this and it doesn't realize the resource got deleted manually.better-shampoo-48884
06/28/2021, 8:42 AMbright-truck-37455
06/28/2021, 10:53 AMexport const dbConfig = config.requireSecretObject<Config>("dbConfig");
And in the "destination" stack
const dbConfig = remoteStack.getOutput("dbConfig");
When I'm using dbConfig var in the 2nd stack it evaluates to the Object I need, however, when I'm trying to get specfic keys, like dbConfig["host"], I get an error saying there is no such property on that Object.
P.S. TypeScript is not my main programming language, please don't go hard on me 🙂echoing-vr-57917
06/28/2021, 12:35 PMechoing-vr-57917
06/28/2021, 12:36 PMechoing-vr-57917
06/28/2021, 12:38 PMmillions-furniture-75402
06/28/2021, 2:40 PMgorgeous-eye-54797
06/28/2021, 5:14 PMstraight-intern-54129
06/28/2021, 8:00 PMpulumi up
with limited Azure access for a client and it fails because it's trying to register all resource providers up front. Terraform gives this error message:
error: Error ensuring Resource Providers are registered.
Terraform automatically attempts to register the Resource Providers it supports to
ensure it's able to provision resources.
If you don't have permission to register Resource Providers you may wish to use the
"skip_provider_registration" flag in the Provider block to disable this functionality.
witty-dentist-91954
06/28/2021, 8:33 PMstraight-intern-54129
06/28/2021, 9:13 PMpulumi import
to import an existing Azure resource group. I'm trying to specify the resource group as the --parent
but am getting error: an inline resource must be specified if no import file is used.
Is there an example of importing an Azure resource that I can compare against?fierce-camera-61577
06/28/2021, 11:25 PMnutritious-australia-90040
06/29/2021, 4:30 AMrhythmic-actor-14991
06/29/2021, 7:13 AMicy-football-94152
06/29/2021, 8:19 AMrhythmic-actor-14991
06/29/2021, 11:04 AMCalling [toJSON] on an [Output<T>] is not supported.
To get the value of an Output as a JSON value or JSON string consider either:
1: o.apply(v => v.toJSON())
2: o.apply(v => JSON.stringify(v))
See <https://pulumi.io/help/outputs> for more details.
This function may throw in a future version of @pulumi/pulumi
``````astonishing-monitor-96741
06/29/2021, 12:50 PMfuture-nail-59564
06/29/2021, 1:33 PMbright-truck-37455
06/29/2021, 1:47 PMlet url = virtualmachine.dnsName.apply(dnsName => "https://" + dnsName);
Problem is - it doesn't really work for more than one Output<T> var. Here's what I'm trying to do:
`'iam.gke.io/gcp-service-account': `${gcpSA.name}@${gcpProject}.iam.gserviceaccount.com``
When this code gets executed, I get an error saying: Calling [toString] on an [Output<T>] is not supported
Is it possible to somehow run apply() on more than one variable, or is there another solution to my problem?agreeable-eye-87399
06/29/2021, 2:03 PMlemon-monkey-228
06/29/2021, 2:38 PMPulumi.foo.yaml
) only exist locally?lemon-monkey-228
06/29/2021, 2:38 PMlemon-monkey-228
06/29/2021, 2:38 PMshy-author-33795
06/29/2021, 4:16 PMstr
of Output so I can use it as part of rds.Cluster
's final_snapshot_identifier
in another resource? Trying to add a randomId to the final snapshot id and I am unable to get an actual valueelegant-crayon-4967
06/29/2021, 4:54 PMsalmon-engine-64802
06/29/2021, 5:29 PMicy-nest-77417
06/29/2021, 6:34 PMcreate
, delete
, update
operations for that service (it is a simple CRUD API for managing a single internal resource)). The important part is that we want developers there to be able to import the plugin from a package manager, and then interact with our custom resource service without any hurdle.
I've found 2 or 3 solutions online for this use case so far:
1. Pulumi Packages
2. Dynamic Providers
In the last days, I tried to clone the TypeScript component package boilerplate and added an update
member in the provider class. However, after compiling the code, only the construct
member seems to be taken into consideration when using pulumi up
or pulumi preview
, which is not enabling me to support the CRUD nature of our internal service. I've found on Github multiple classes implementing the pulumi.ProviderResource
interface, but in all of them, only the construct
member is defined (i.e. not the update
member), which makes me think this is not the right tool for my use case.
We're trying to move away from Terraform, so the bridge solution described in the Packages documentation page doesn't seem appropriate either.
I've also considered using a Dynamic Provider instead of the former TypeScript boilerplate. My idea was to simply put the classes implementing the pulumi.dynamic.ResourceProvider
and pulumi.dynamic.Resource
interfaces in a package manager. I wonder whether there are any major issue with this approach, other than the source code not scaling to more than one language (we would prefer to support more languages than just TypeScript, but it is not a hard requirement).
What is the best way to support our custom CRUD service? I have listed some possible directions above, but I'm lacking pointers. I'm not sure why, but there doesn't seem to exist a lot of documentation about this topic online. Any help would be very appreciated! Also, if I am unaware of a more suitable solution for this case, please don't hesitate to let me know.orange-byte-86458
06/29/2021, 7:15 PMeks.Cluster
- I created it about a week ago or so. Things were fine for a while, but then something (default AMI id I guess) changed and produced a diff for Pulumi. Now if I try to pulumi up
it fails saying it’s unable to delete an old Launch Configuration because it’s still attached to an ASG (which is true). I’m not sure what exactly went wrong, there were no interrupted updates or anything. I believe it’s just doing it in the wrong order, as I see new Launch Configurations are already created, they’re just not associated with an ASG yet. I think it should first attach the new configs and then delete the old ones, not vice versa.
Anyway, my real question is what’s the best way out of this situation?
Should I manually edit the state? I’m not quite sure how would I edit it though as these things are somewhat entangled.
I’ve attached a screenshot of the error I’m getting as well as the code I’m using to create the cluster. Thanks for any help!straight-intern-54129
06/29/2021, 8:03 PMpulumi import
that was protected. Now when I do pulumi up
it gives an error saying that the stack itself is a duplicate, and I can't get it back to a working state.
pulumi:pulumi:Stack (PulumiArm-hco):
error: Duplicate resource URN 'urn:pulumi:hco::PulumiArm::pulumi:pulumi:Stack::PulumiArm-hco'; try giving it a unique name
shy-exabyte-78907
06/29/2021, 8:17 PMpulumi up
?shy-exabyte-78907
06/29/2021, 8:17 PMpulumi up
?bored-oyster-3147
06/29/2021, 8:28 PMshy-exabyte-78907
06/29/2021, 8:30 PM