You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private var enhancedClient: DynamoDbEnhancedClient? = DynamoDbEnhancedClient.create()
The point is to not having to resort to environment variables or system properties but use the properties in application.yaml. Have I not set up auto configuration correct or am I misunderstanding what these properties are meant to do?
The text was updated successfully, but these errors were encountered:
When you create client on your own: private var enhancedClient: DynamoDbEnhancedClient? = DynamoDbEnhancedClient.create()
we are not in control over it, meaning we cannot supply credentialsResolver or regionResolver.
Instead you can just autowire it, since we are creating it for you out of the box. This way we will pick values in application.yaml and use it when creating DynamoDbEnhancedClient Bean.
Now in your code class annotated with either Service Component Configuration or similar you would inject it like:
@Autowired
private val enhancedClient: DynamoDbEnhancedClient
Just note you have to include implementation("io.awspring.cloud:spring-cloud-aws-starter-dynamodb") in your project which you already did.
I'm trying to configure a DynamoDbClient for local integration tests but I get the error
I've been reading https://docs.awspring.io/spring-cloud-aws/docs/3.2.0/reference/html/index.html#region. I have no .aws folder, and from what I understand
spring.cloud.aws.region.static
should set the region.I have my dependencies declared like this:
and an application.yaml:
The line that fails is:
The point is to not having to resort to environment variables or system properties but use the properties in application.yaml. Have I not set up auto configuration correct or am I misunderstanding what these properties are meant to do?
The text was updated successfully, but these errors were encountered: