quick-zoo-28636
04/12/2024, 6:55 PMwonderful-waiter-817
04/13/2024, 7:45 AMlate-australia-13136
04/13/2024, 10:01 PMmany-television-17079
04/14/2024, 1:05 PMmany-television-17079
04/14/2024, 1:31 PMbland-pharmacist-96854
04/15/2024, 11:46 AMincalculable-coat-23927
04/15/2024, 1:55 PMbulky-leather-8175
04/15/2024, 3:41 PMvictorious-cartoon-90528
04/16/2024, 11:34 AMpulumi_azure_native.web.StaticSite(StaticSiteArgs(...))
. I can successfully deploy the site, but I need to add ‘environment variables’ to the Static Web App. How do I add this to my StaticSiteArgs? I can’t find a way to do this in the documentation. Thanksgifted-park-20161
04/16/2024, 12:56 PMcalm-ability-6566
04/16/2024, 1:24 PMconst provider = new Provider("test-provider", {
host: "<my domain>",
port: 5432,
username: "<username>",
password: "<password>",
superuser: true,
sslmode: "disable",
database: "<database>",
});
but for some reason doing
const user = new Role("user", {
name: "user",
password: "randomString",
login: true,
}, {provider: provider});
results into an error creating role user: driver: bad connection
.
I've used the psql
command to connect to the database with the same credentials as the provider got and that connection worked without a problem.
Any Ideas what could be wrong? Is there a way to get some more information what could cause this error?cuddly-orange-36960
04/16/2024, 1:37 PMnameTable
in the import file. Wanted to check before I go any further this this, is there a solution that doesn’t involve pre-initialising the provider?gifted-park-20161
04/16/2024, 2:31 PMvictorious-park-65919
04/16/2024, 9:14 PMgreat-sundown-78827
04/17/2024, 1:02 AMpulumi up…
run. When we run pulumi refresh
it takes ~1m or so to get the data back - and that feels reasonable, given that we have a few hundred resources. When we then run a pulumi up
where even only 1 resource changes, the run takes over 9 minutes. The primary API we are interfacing with is the PagerDuty API using the Pulumi PagerDuty provider.
I’ve run pulumi up --tracing…
and I have some trace files. Using the AppDash
is a little confusing though and I am not sure how to really get much use out of it. The one thing I see is the Profile View
at the bottom and sorting by `Cumulative Time(ms)`:
When I do that, I get a MASSIVE output of RegisterResource
calls, … like … thousands and thousands of lines. We don’t have thousands of resources. There are over 11,500 lines in this output. There are 932 RegisterResourceOutputs
calls… 1864 RegisterResource
calls..
% cat pulumi.cumulative.out | awk '{print $1}' | sort | uniq -c | sort -n
1 /pulumirpc.Engine/SetRootResource
1 execNodejs
1 locateModule
1 pf.CheckConfig
1 pf.Configure
1 pf.ValidateProviderConfig
1 pulumi-plan
1 sdkv2.CheckConfig
1 sdkv2.Configure
1 sdkv2.GetPluginInfo
1 sdkv2.ValidateProviderConfig
2 /pulumirpc.LanguageRuntime/GetPluginInfo
2 /pulumirpc.LanguageRuntime/GetRequiredPlugins
2 /pulumirpc.LanguageRuntime/Run
2 Cumulative
2 Name
3 newPlugin
4 /pulumirpc.ResourceProvider/CheckConfig
4 /pulumirpc.ResourceProvider/Configure
4 /pulumirpc.ResourceProvider/DiffConfig
4 /pulumirpc.ResourceProvider/GetPluginInfo
4 Time
12 /pulumirpc.ResourceMonitor/SupportsFeature
130 sdkv2.Invoke
260 /pulumirpc.ResourceMonitor/Invoke
260 /pulumirpc.ResourceProvider/Invoke
459 sdkv2.Check
459 sdkv2.Diff
928 /pulumirpc.ResourceProvider/Check
928 /pulumirpc.ResourceProvider/Diff
932 /pulumirpc.ResourceMonitor/RegisterResourceOutputs
1864 /pulumirpc.ResourceMonitor/RegisterResource
5240 /pulumirpc.Engine/Log
I don’t see much detail though in the trace view… is there something I am missing in order to figure out why we see so many calls? Also, it feels like the calls get cumulatively slower as we go. While looking at the --debug --verbose=7
logs, I would swear that the pulumi up
command is making S3 calls after each and every resource update. Is that possible?early-lunch-81292
04/17/2024, 4:06 AMhallowed-midnight-64703
04/17/2024, 11:19 AMcluster, err := ecs.NewCluster()
.
We tried adding a return error in the NewResource
mock but that doesnt seem to be working.
Is there any preferred way of handling those types of tests or are we missing something obvious? Was unable to find anything related to that in the docs.
Thanks all! Really appreciate the work being done here 🙂gifted-park-20161
04/17/2024, 1:31 PMcool-family-40769
04/17/2024, 3:20 PMpulumi/actions
for CI/CD but rather "dedicated scripts"). Not sure it's even possible to detect which parts of the stack got updated (to publish "new frontend available" notif only on the actual frontend deployment update, and not other parts of the stack update).
2. Hack with deployment.status.apply(() => ...magic...)
Not sure how to precisely detect what exactly changed/was updated (is full rolling update done or just a few instances etc.).
3. Combination of Deployment
& Job
with "dependsOn" on the specific deployment.
This might actually work but haven't tested yet... One thing I dislike about this approach is it would pollute k8s stack with jobs that do not really need to exist as part of k8s stack IMO.
4. Pulumi cloud webhooks
This might actually work as well but haven't tested it yet. Event filtering documentation (https://www.pulumi.com/docs/pulumi-cloud/webhooks/#event-filtering) makes me think it's doable but there is no info about what kind of payloads are to be received by the webhooks (is it possible to actually figure out that the deployment "A" was just successfully updated and "B" was left untouched?).hundreds-gpu-71155
04/17/2024, 4:12 PMgifted-park-20161
04/17/2024, 11:31 PMbright-crayon-39468
04/18/2024, 2:02 AMcalm-ability-6566
04/18/2024, 6:40 AMkubernetes.helm.v3.Chart
class but for some reason a duplicate entries for key [containerPort=7800,protocol="TCP"]
error occurs. I haven't customized the containerPorts at all which makes me wonder why this error appears.
Has someone an idea what could cause this and how to fix it?fast-australia-81501
04/18/2024, 12:55 PMpulumi destroy
linked to linode. The commands runs fine, but linode instance are not deleted (sometimes), and this sometimes is driving me crazy. Why does it sometimes work , and sometime not? Any help is appreciated
For example here a destory command decided to refresh the instance, but not delete it!late-balloon-24601
04/18/2024, 1:17 PMcrooked-article-41468
04/18/2024, 1:27 PMbrainy-alarm-46263
04/18/2024, 1:27 PMrapid-parrot-24984
04/18/2024, 4:29 PMCODEOWNERS
file again as their invite link has expired. Can an admin help us do that?some-businessperson-13505
04/18/2024, 6:06 PM$ pulumi stack history -s test
error: no stack named 'test' found
How do I encode the organisation into the local files? Thxfamous-kitchen-30533
04/18/2024, 8:33 PM