This message was deleted.
# getting-started
s
This message was deleted.
e
This looks like a Java SDK bug rather than anything AWS specific. Firstly do raise an issue about this on the java repo, this should just work. As a workaround try setting targetHealthStates to an empty list (not null) in the builder and see if that helps.
a
Hi Fraser, Thank you for the reply! I will raise the issue.
w
Which version of java should I use? I am getting the same error
w
Try changing the dependency versions in your pom.xml, at least these worked for me <dependency> <groupId>com.pulumi</groupId> <artifactId>pulumi</artifactId> <version>0.9.5</version> </dependency> <dependency> <groupId>com.pulumi</groupId> <artifactId>aws</artifactId> <version>5.42.0</version> </dependency>