bland-processor-10063
04/05/2023, 8:52 AMjava.lang.IllegalArgumentException: expected qualified type to have 1 or 2 parts, split by '\$', got 'awsx:ecs:FargateService, awsx:ecs:FargateTaskDefinition, aws:ecs/taskDefinition:TaskDefinition'
at com.pulumi.core.internal.Objects.require(Objects.java:34)
at com.pulumi.core.internal.Objects.require(Objects.java:48)
at com.pulumi.core.internal.Urn$QualifiedTypeName.parse(Urn.java:184)
at com.pulumi.core.internal.Urn.parse(Urn.java:137)
at com.pulumi.serialization.internal.Deserializer.tryDeserializeResource(Deserializer.java:365)
...
I've filed an issue for this in GitHub - https://github.com/pulumi/pulumi-java/issues/1045 ; I'm just a little surprised that I couldn't find a single other GitHub issue with the same issue as mine, given that this makes AWSX pretty much not work with the java SDK. And this does make me suspect that it's probably something I'm doing wronghallowed-shampoo-53504
04/12/2023, 10:43 PMfull-dress-10026
06/09/2023, 5:59 PMbrief-church-51632
07/31/2023, 3:23 AMlimited-account-35949
08/01/2023, 7:16 PMrapid-vase-55745
08/14/2023, 12:58 AMbulky-oil-97030
08/15/2023, 11:55 AMapply
or a similar builtin function. See
https://www.pulumi.com/docs/concepts/inputs-outputs/#applybulky-oil-97030
08/15/2023, 11:55 AMadamant-lawyer-19698
09/15/2023, 9:08 PMrapid-postman-60756
09/26/2023, 2:40 PMimportant-market-84330
10/19/2023, 3:00 PMfull-oxygen-23886
10/30/2023, 4:28 PMbulky-oil-97030
11/02/2023, 11:05 AMbulky-oil-97030
11/02/2023, 11:08 AMpackageDistribution
to build the app executable/zip needs a JAVA_HOME set to a valid graalvm jdk, then you're golden.bulky-oil-97030
11/02/2023, 11:10 AMfull-oxygen-23886
11/06/2023, 4:45 PMlate-garage-53952
12/20/2023, 1:52 PMdata class Args(val project: String, val region: String) : ResourceArgs()
class Gke(name: String, val args: Args, opts: ComponentResourceOptions? = null) :
ComponentResource("components:index:Gke", name, args, opts)
And it kinda works in general, but when compared to python version it seems to be unable to understand that those Args should be treated as inputs. So in diff from a python version I see
[urn=urn:pulumi:x::x::components:index:Gke::x]
- project : "my-proj"
- region : "us-central1"
I cannot see anything in the documentation about that. I don't even understand if it is important? Like if any of these values change I'd like pulumi to detect the change, but otoh it will actually change some proper resources transitively, so maybe that's enough?flaky-art-29458
01/03/2024, 3:10 PMname: java-gradle
runtime:
name: java
options:
binary: app/build/distributions/app.tar
description: A minimal Java Pulumi program with Gradle builds
Or pulumi internally executes gradle build?
I'm trying to create a multi-module project, having 1 module containing infra, and other modules containing the code (so I could reuse some constants for example), but I could not make it work so far.
I was thinking maybe I could compline JAR file completly independently and then make pulumi consume it, but looks like it does not work like that.. Any advise would be highly apreciatedflaky-art-29458
01/09/2024, 1:29 PM<{%reset%}>)
I0109 14:23:07.174520 285840 log.go:81] eventSink::Infoerr(<{%reset%}>SEVERE: Running program [PID: 285916](/home/eg/.sdkman/candidates/java/17.0.9-tem/bin/java -jar compiled.jar) failed with an unhandled exception:
<{%reset%}>)
I0109 14:23:07.174558 285840 log.go:81] eventSink::Infoerr(<{%reset%}>io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
<{%reset%}>)
I0109 14:23:07.174570 285840 log.go:81] eventSink::Infoerr(<{%reset%}> at io.grpc.Status.asRuntimeException(Status.java:539)
<{%reset%}>)
I0109 14:23:07.174576 285840 log.go:81] eventSink::Infoerr(<{%reset%}> at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:544)
<{%reset%}>)
I0109 14:23:07.174580 285840 log.go:81] eventSink::Infoerr(<{%reset%}> at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:576)
<{%reset%}>)
flaky-art-29458
01/09/2024, 4:55 PMrapid-ghost-46787
01/29/2024, 2:12 PMrapid-ghost-46787
01/31/2024, 10:21 AMrapid-ghost-46787
01/31/2024, 10:22 AMsteep-flower-90579
02/06/2024, 4:22 PMmany-telephone-49025
02/07/2024, 9:34 AMagreeable-butcher-1638
02/12/2024, 3:00 AMdevelopment
and production
. I also have two Azure subscriptions called development
and production
. I want the stack for each environment to provision resources in its corresponding subscription.
I have Pulumi.development.yaml
and Pulumi.production.yaml
config files. I noticed that even if I don't do pulumi config set azure-native:subscriptionId <subscription id>
then pulumi works just fine for both stacks.
This is surprising because I would expect pulumi / native axure provider to fail or use the default az account, which in my case is set to development
. However, both the dvelopment
and peoduction
stacks work well (when I do pulumi refresh I get no changes for both except for a minor etag on a vnet, which changes all the time).
This is a little concerning because if pulumi uses some magic to decide which subscription to target then this is a cause for concern. Can someone explain what's going on? am I missing something or misunderstanding something?rapid-ghost-46787
02/15/2024, 5:42 PMConfig.require
statements, given that the config comes from Context
. I read that you can set an env variable PULUMI_CONFIG="{ 'project:comp.environment': 'test' }"
and tried that, but it hasn't worked. Any suggestions?full-art-3978
03/04/2024, 7:19 PMfull-art-3978
03/06/2024, 12:30 AMvar alb = new ApplicationLoadBalancer("app-lb", ApplicationLoadBalancerArgs.builder()
.securityGroups(dbSecurityGroup.id().applyValue(id -> List.of(id)))
.subnetIds(vpc.publicSubnetIds())
.internal(false)
.defaultTargetGroup(TargetGroupArgs.builder()
.targetType("ip")
.port(8080)
.vpcId(vpc.vpcId())
.protocol("HTTP")
.healthCheck(TargetGroupHealthCheckArgs.builder()
.enabled(false)
// .interval(100000)
.build())
.targetHealthStates(TargetGroupTargetHealthStateArgs.builder()
.enableUnhealthyConnectionTermination(true)
.build())
.build())
.build());
I am getting error: java.lang.UnsupportedOperationException: Convert [<http://com.pulumi.aws.lb|com.pulumi.aws.lb>.TargetGroup.targetHealthStates]: Error converting 'java.util.Collections$UnmodifiableRandomAccessList' to 'TypeShape{type=interface java.util.List, parameters=[TypeShape{type=class <http://com.pulumi.aws.lb|com.pulumi.aws.lb>.outputs.TargetGroupTargetHealthState, parameters=[]}]}'. null
at com.pulumi.serialization.internal.Converter.convertObjectUntyped(Converter.java:119)
at com.pulumi.serialization.internal.Converter.convertValue(Converter.java:86)
at com.pulumi.core.internal.OutputCompletionSource.setValue(OutputCompletionSource.java:95)
at com.pulumi.deployment.internal.DeploymentImpl$ReadOrRegisterResourceInternal.lambda$completeResourceAsync$0(DeploymentImpl.java:1187)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:483)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:903)
at com.google.common.collect.ImmutableList$Builder.add(ImmutableList.java:815)
at com.pulumi.serialization.internal.Converter.tryConvertList(Converter.java:642)
at com.pulumi.serialization.internal.Converter.tryConvertObjectInner(Converter.java:277)
at com.pulumi.serialization.internal.Converter.convertObjectUntyped(Converter.java:115)rhythmic-branch-12845
03/17/2024, 6:24 AM