https://pulumi.com logo
Docs
Join the conversationJoin Slack
Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-cdk
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumi-service
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by Linen
java
  • b

    brainy-caravan-45245

    05/04/2022, 6:51 PM
    set the channel description: This space is for any and all conversations related to using Pulumi with Java.
  • h

    hundreds-airport-37168

    05/06/2022, 4:07 PM
    Hey have anyone figured out how to use pulumi with java and gradle with a multi module setup?
    f
    e
    • 3
    • 15
  • h

    hallowed-jackal-88924

    05/07/2022, 10:38 PM
    Howdy java folksšŸ‘‹
    šŸ‘‹ 3
  • r

    rough-window-15889

    05/09/2022, 7:59 PM
    Any idea when Output-Based functions might be available in Java? I'm trying to use AzureAd getGroup. Just to make sure I understand, I cannot do this until it is supported?
    t
    • 2
    • 4
  • a

    astonishing-minister-81878

    05/11/2022, 4:24 PM
    Hello, So excited for Java release. I am trying to use Input Bucket Resource properties (currently publicAccessBlockConfiguration, later on loggingConfiguration etc)… but am not able to move ahead. Are Input available in Java? Any code snipplets around these would be super helpful. Thanks!
    t
    • 2
    • 29
  • e

    early-waiter-40542

    05/14/2022, 7:57 PM
    Can any other JVM based language (e.g. groovy, Jruby, Kotlin or Scala) be used with Pulumi?
    m
    • 2
    • 5
  • p

    powerful-room-57148

    05/16/2022, 3:12 PM
    šŸ‘‹ hi all, I’m excited about the Java support. I just wanna check, is the team aware that the SDK API Javadocs subsite is returning a 404? I mean https://www.pulumi.com/registry/packages/java/api-docs/ Which is linked from https://www.pulumi.com/docs/reference/pulumi-sdk/
    m
    m
    • 3
    • 24
  • p

    powerful-room-57148

    05/16/2022, 3:22 PM
    Where is the equivalent to
    pulumi/getStack()
    from the JS/TS SDK?
    m
    • 2
    • 7
  • p

    powerful-room-57148

    05/16/2022, 4:47 PM
    Are there javadocs for the aws provider published anywhere?
    m
    b
    • 3
    • 20
  • m

    mammoth-salesclerk-61945

    05/17/2022, 3:21 PM
    I was trying to learn kotlin and typesafe builders for kotlin and how we might use them for idiomatic kotlin resource construction
    managedCluster("cluster-1") {
        args {
            identity {
                type = ResourceIdentityType.SystemAssigned
            }
            servicePrincipalProfile {
                clientId = "msi"
            }
            agentPoolProfiles {
                name   = "pool1"
                count  = 1
                osType = OSType.Linux
                osSKU  = OSSKU.Ubuntu
                vmSize = "standard_a2_v2"
                mode   = AgentPoolMode.System
            }
        }
        opts {
            protect = true
        }
    }
    It looks like I'm just writing terraform. I'll probably have to modify this to support supplying both
    T
    and
    Output<T>
    just thought I'd share.
    šŸŽ–ļø 1
    p
    • 2
    • 10
  • b

    brave-dawn-64711

    05/17/2022, 4:15 PM
    I was thinking how difficult it would be to just generate a wrapper/translator from typesafe Kotlin builders to Java builders generated in the providers.
  • b

    brave-dawn-64711

    05/17/2022, 4:16 PM
    so a codegen to wrap what the other codegen generates ;D
    m
    • 2
    • 3
  • p

    powerful-room-57148

    05/18/2022, 2:41 AM
    Is it possible to implement a ā€œdynamic providerā€ with the Java SDK, at this point?
    t
    m
    +2
    • 5
    • 8
  • b

    brave-dawn-64711

    06/02/2022, 7:20 AM
    I'm working on adding stack transformations to the Java SDK API and I need your collective help. Please share your thoughts :) This is the feature: https://www.pulumi.com/docs/intro/concepts/resources/options/transformations/#stack-transformations An this is the issue with two proposed APIs: https://github.com/pulumi/pulumi-java/issues/478#issuecomment-1144098656
    ā˜ļø 1
  • e

    enough-garden-22763

    06/02/2022, 3:59 PM
    šŸ““ https://github.com/pulumi/pulumi-java/blob/main/CHANGELOG.md#030-2022-06-01 is semi-out - you can get it via GitHub releases or Maven Central (SDK) but it will only be installed by default with Pulumi CLI starting next week. Release was delayed this week. Fav feature JBang support contributed by maxandersen. Thank you!
  • s

    sparse-arm-65382

    06/15/2022, 7:37 PM
    šŸ‘‹ Hallo Team!
  • s

    sparse-arm-65382

    06/15/2022, 7:39 PM
    I'am testing an idea and wanted to use prebuild jar with
    runtime.options.binary
    . But unfortunatly it seems to be executed with a wrong java version-setting. All my projects are compiled to java11 and the output says, that pulumi starts up the right java runtime:
  • s

    sparse-arm-65382

    06/15/2022, 7:39 PM
    EVERE: Running program [PID: 25370](/usr/lib/jvm/java-11-openjdk-amd64/bin/java -jar target/pulumytemplate-1.0-SNAPSHOT-jar-with-dependencies.jar) failed with an unhandled exception:
  • s

    sparse-arm-65382

    06/15/2022, 7:40 PM
    But it fails with java.util.concurrent.CompletionException: java.lang.Error: Unresolved compilation problems: References to interface static methods are allowed only at source level 1.8 or above Lambda expressions are allowed only at source level 1.8 or above Lambda expressions are allowed only at source level 1.8 or above at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) Caused by: java.lang.Error: Unresolved compilation problems: References to interface static methods are allowed only at source level 1.8 or above Lambda expressions are allowed only at source level 1.8 or above Lambda expressions are allowed only at source level 1.8 or above at inc.pulumi.firsttry.ExternalPulumi.getStorageAccountPrimaryKey(ExternalPulumi.java:86) at inc.pulumi.firsttry.ExternalPulumi.callMe(ExternalPulumi.java:76) at myproject.App.lambda$0(App.java:36) at com.pulumi.internal.PulumiInternal.lambda$runAsync$1(PulumiInternal.java:62) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ... 6 more Any ideas?
  • t

    tall-librarian-49374

    06/15/2022, 7:43 PM
    @brave-dawn-64711 do you happen to know what could be going on?
  • b

    brave-dawn-64711

    06/15/2022, 7:45 PM
    unfortunately I haven't seen an error like that, not sure what happened, sorry
  • b

    brave-dawn-64711

    06/15/2022, 7:46 PM
    is it possible that somehow wrong javac is used?
  • s

    sparse-arm-65382

    06/15/2022, 7:46 PM
    I am sorry. Showhow the inner-jar was somehow build with another version.
    šŸ‘ 3
  • a

    aloof-dawn-47658

    06/27/2022, 9:22 AM
    Hello Pulumi team. I got a simple question related to the newly available Java SDK. Are there any written guides or material on how to use the SDK with other JVM based languages? For a bit of context, I have plenty of experience working with Terraform, but we are seriously considering switching to Pulumi because we are unifying our technologies around Clojure and its ecosystem. Additionally, I came to know Pulumi now supports a Java SDK, but haven't found an official guide on how to use it in a non-Java project. Lastly, bear with my lack of knowledge, since I have no experience using Pulumi yet, so I might miss some basic concepts. From a Clojure perspective, we would be in charge of compiling and bundling the JAR packages, so we only need Pulumi to take the JAR and run it I suppose. I don't know if there are any other considerations. Thanks for your support!
  • b

    brave-dawn-64711

    06/27/2022, 12:06 PM
    Hi @aloof-dawn-47658, using Clojure with Pulumi sounds exciting! I'm not aware of any official guides on how to approach using Java SDK with other JVM languages, but my understanding is as follows: • general guidelines of using Java APIs from your language should apply • best integration of Pulumi CLI and JVM-centric build systems will be for maven and gradle, at the moment • some APIs might not "look native" since they are limited by Java features
  • b

    brave-dawn-64711

    06/27/2022, 12:09 PM
    it is possible to just run a jar directly, please refer to the "binary" option described here: https://www.pulumi.com/docs/reference/pulumi-yaml/
  • b

    brave-dawn-64711

    06/27/2022, 12:12 PM
    and here is an example of usage https://github.com/pulumi/pulumi-java/blob/main/tests/examples/minimal/Pulumi.yaml#L6 example uses maven, but the "binary" option is build tool agnostic, it just needs the default main of the jar to be pulumi main program
  • b

    brave-dawn-64711

    06/27/2022, 12:13 PM
    your experience with terraform is transferrable to pulumi, state management and basic operations are very similar
  • b

    brave-dawn-64711

    06/27/2022, 12:14 PM
    please read more about similarities and interoperability with terraform here: https://www.pulumi.com/docs/guides/adopting/from_terraform/ there's even a converter (not perfect but a good start): https://www.pulumi.com/tf2pulumi/
  • b

    brave-dawn-64711

    06/27/2022, 12:15 PM
    please let me know if it helps šŸ™‚
Powered by Linen
Title
b

brave-dawn-64711

06/27/2022, 12:15 PM
please let me know if it helps šŸ™‚
View count: 1