Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    nevermind as it turns out only one TableWriteItems was enough :)
    Debora Naomi Ito
    Ah, batchDelete is a DynamoDBMapper operation, which is not available in V2 yet
    Erik Pragt
    Hi all. I'm sure this is a stupid question, but I'm trying to use the V2 Java AWS client to execute a DescribeDbInstancesRequest. However, I have no idea how to execute such a request. The V1 examples are pretty straightforward, but I can't find a single V2 example regarding RDS. Can someone please point me into the right direction?
    Debora Naomi Ito
    @bodiam Hope this is helpful:
            RdsClient rdsClient = RdsClient.create();
            List<Filter> describeFilters = new ArrayList<>();
            DescribeDbInstancesRequest describeRequest = DescribeDbInstancesRequest.builder()
            List<DBInstance> instances = rdsClient.describeDBInstances(describeRequest).dbInstances();
    I'm creating a DescribeDbInstancesRequest, with a filter for aurora and postgres engines
    Erik Pragt
    @debora-ito awesome, thank you for that!
    Hi all, I'm new to AWS SDK 2.0, and I can't find documentation\code samples to execute lambda from Java code.
    Can someone help here?
    Matthew Tovbin
    Howdy folks, I was wondering where are the model json files generated from? - https://github.com/aws/aws-sdk-java/tree/master/aws-java-sdk-models/src/main/resources/models
    hey community, can you tell me the best way to study about developers tools for aws.
    Sven Strittmatter
    I'm looking for an example snippet how to create an EKS cluster with the Java SDK.
    Markus Schulte
    Matthew Tovbin
    Does anyone know how to marshall AWS POJO, e.g. UserDetail, to JSON or Map?
    I want to use sqs to trigger a lambda, what should I do with sdk V2?
    java sdk v2
    Hi all, I've been fighting with the documentation, so hopefully someone here can help me. I've been using java sdk v2 to interact with s3 but am struggling with using the STS api/sdk to get a "client_grants" token and use that to generate temporary STS credentials. It's documented here for v1 (https://docs.aws.amazon.com/AmazonS3/latest/dev/AuthUsingTempSessionTokenJava.html) but I cannot find similar documentation for v2, and the API has changed quite a bit
    I do notice there are no tags on the gitter room for aws-sdk-java-v2, but that they exist on v1. Is v2 still edge?
    Hi Folks. I am new to AWS and have been exploring Lambda's. Do the Lambda functions already utilize aws-sdk-java-v2 ? Or do we need to explicitly provide dependency of this to make use of this ? I have issues with Jackson-databind-2.9.10 version in my lambda. I read this jackson dependency has been updated to 2.10.+ in aws-sdk-java-v2 . How do I ensure the lambda function that I am running uses v2 of aws-sdk-java?

    Hi @Kurshit - i have been working with the V2 API lately, and to use the API you need to include the maven dependencies.

    For example (if you wanted to work with rekognition and s3):
    <dependency> <groupId>software.amazon.awssdk</groupId> <artifactId>bom</artifactId> <version>2.10.4</version> <type>pom</type> </dependency> <dependency> <groupId>software.amazon.awssdk</groupId> <artifactId>rekognition</artifactId> </dependency> <dependency> <groupId>software.amazon.awssdk</groupId> <artifactId>s3</artifactId> </dependency>

    Then package your app as a jar, and upload it to lambda

    Hi All,
    Could anyone help me to get the Storage cost for a vm in AWS Migration Hub
    How do you guys generate the service-2.json files? I guess there is some kind of application to manage it? I want to add a custom client, AGCOD client - to be precise and managing it all in the .json would be a bit messy?
    Ok, I managed to build a client. The only problem I have it, that I need the Content-Type to be "application/json" but the SDK is giving me "application/x-amz-json-1.1" which the server can't handle. Is there a way to set the Content-Type to raw json? An answer would be appreciated :)
    'aight managed that one using Interceptors (example in e.g. s3 service)
    Napas (Tian) Udomsak
    i am getting this error: software.amazon.awssdk.core.exception.SdkClientException: SSLEngine closed already
    When using the S3 Async client to do a put object to a KMS encrypted bucket
    has anyone seen this before?
    I'm on SDK v2 2.10.18
    import software.amazon.awssdk.services.s3.model.CreateBucketRequest;
    this class isn't available in the master branch
    So Im unable to debug
    software.amazon.awssdk.services.s3.model has only GetURlRequest as the class
    Marshall Pierce
    How are write timeouts configured for the client? I'm getting timeouts on multipart uploads when on a slow connection
    Hi All,
    Currently I'm upgrading aws sdk java from 1.9 to 2.10.4. but facing below exception
    ERROR com.diageo.horizon.helper.ComponentBackendHelper - Error while uploading the file to S3 :
    software.amazon.awssdk.services.s3.model.S3Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method.
    My Code is as below:
    S3Client s3Client = S3Client.builder().region(Region.EU_WEST_1)
    if (BACKENDLOG.isDebugEnabled()) {
    BACKENDLOG.debug("ExcelWriter : Uploading " + key);
            byte[] bFile = new byte[(int) outputFile.length()];
            FileInputStream fileInputStream=null;
            fileInputStream = new FileInputStream(outputFile);
            InputStream myInputStream = new ByteArrayInputStream(bFile); 
            String contentType=null;
            else if(outputFile.getName().endsWith(".css")) {
            else if(outputFile.getName().endsWith(".html")){
            byte[] bytes = IOUtils.toByteArray(myInputStream);
            PutObjectRequest req =PutObjectRequest.builder()
            long contentLength=bytes.length;
            s3Client.putObject(req,RequestBody.fromInputStream(myInputStream, contentLength));
    Mario Kapusta
    Hello, is this project production-ready? ... can't find the info anywhere
    This claim confused me. "Support for 1.x
    We are not dropping support for the 1.x versions of the AWS SDK for Java currently. As we get closer to the final production release, we will share a detailed plan for continued 1.x support, similar to how we rolled out major versions of other AWS SDKs."
    Hello. Are the service model definition Jason files generated from
    somewhere, or are they hand written
    I wanted to look at implementing #1330 the putmedia API for kinesis video.
    Roman Valls Guimera
    @majusko Not sure if that serves as an indication: https://github.com/aws/aws-sdk-java-v2/projects/1 .... They just got S3 URL presigners merged a couple of months ago... they still have a considerable backlog, but it really depends on the subset of functionality you need for your usecase, imho.
    In mine I had to go through the pain of half-baked S3 presigners :/
    Mario Kapusta
    I would like to upload files as byte stream and not input stream and not sure if it’s production ready.
    Debora Naomi Ito
    @majusko Yes the SDK for Java V2 is generally available and supported for production use, see this blog post for more info: https://aws.amazon.com/blogs/developer/aws-sdk-for-java-2-x-released/
    Including examples of streaming input types when uploading data to S3
    Mario Kapusta
    great, thank you very much 🙂
    Dillon P
    hi there! is there any way to configure the aws ApacheHttpClient to use CachingHttpClient? For reference: https://hc.apache.org/httpcomponents-client-4.5.x/httpclient-cache/apidocs/org/apache/http/impl/client/cache/CachingHttpClient.html
    Thank you!
    or any http client that respects the Cache-Control HTTP header
    Juan José Rodríguez
    Hello everyone. Do you guys know if the v2 sdk for SQS has an issue when setting the Endpoint (I believe v1 overrides the endpoint with the queue URL)