Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    CloudDevBe
    @CloudDevBe
    Did above code worked for anyone?
    Martynas Jusevicius
    @namedgraph_twitter
    @CloudDevBe Firehose client worked for me:
    firehoseClient = FirehoseAsyncClient.builder().region(region).build();
    but it's not the same :)
    does someone have ideas what could be wrong with this?
        private EcsAsyncClient ecsClient = EcsAsyncClient.create();
    ....
            ecsClient.runTask(task).
                thenAcceptAsync(success()).
                exceptionally(failure());
    i see no exceptions but no tasks are executed either
    CloudDevBe
    @CloudDevBe
    @namedgraph_twitter KinesisClient got created but after running kinesisClient.putRecord((PutRecordRequest) record);
    Data records are not reflected. (I checked data via monitoring tab of kinesis stream in AWS console)
    Martynas Jusevicius
    @namedgraph_twitter
    did you check CloudWatch logs?
    CloudDevBe
    @CloudDevBe
    Logs are empty
    Pratap Koritala
    @pratap_koritala_twitter
    Does the V2 SNS client ( https://github.com/aws/aws-sdk-java-v2) batch the publish messages ?
    Pratap Koritala
    @pratap_koritala_twitter
    An indirect way to achieve that is to HTTP2 streaming, does it support that ?
    Adi Nemer
    @adinemer
    Hello, everyone, I have a question about the ec2 (CreateInstance) example, I always get the error: Exception in thread "main" java.lang.NoClassDefFoundError: software/amazon/awssdk/services/ec2/model/Ec2Exception
    is there another thing I have to import in the pom dependency other than ec2?!
    Martynas Jusevicius
    @namedgraph_twitter
    this is pretty much a dead channel y'all
    sadly
    damianknopp
    @damianknopp

    @adinemer
    I was able to “run” an instance using the v2 sdk
    see this sample
    https://github.com/damianknopp/dmk-aws/tree/dknopp/ec2/ec2-client

    I didnt see an explicit “create instance” example

    Also I wonder how the new CloudFormation backed, CDK API will compare to using this SDK v2 API
    It might be CDK is a better option for managing resources. There are a few languages to choose, including Java in preview status
    https://docs.aws.amazon.com/cdk/latest/guide/home.html

    Adi Nemer
    @adinemer
    @damianknopp thanks, appreciate it
    Scott White
    @kibbled
    Can someone look at this stacktrace and let me know if this is a known issue when working with S3 async?
    Caused by: software.amazon.awssdk.core.exception.SdkClientException: null
        at software.amazon.awssdk.core.exception.SdkClientException$BuilderImpl.build(SdkClientException.java:97)
        at software.amazon.awssdk.core.internal.util.ThrowableUtils.asSdkException(ThrowableUtils.java:98)
        at software.amazon.awssdk.core.internal.http.pipeline.stages.AsyncRetryableStage$RetryExecutor.retryIfNeeded(AsyncRetryableStage.java:125)
    Scott White
    @kibbled
    Caused by: java.io.IOException: Server failed to send complete response
    Debora Naomi Ito
    @debora-ito
    @kibbled what were you trying to do, so I can try to repro?
    Scott White
    @kibbled
    @debora-ito I think it’s due to a racing condition. After the object is put through s3 it’s attempted to be retrieved
    Roman Valls Guimera
    @brainstorm
    Is there a way to retrieve Cognito's authenticated role ARN from an static Cognito client or do I have to stitch together the bits (arn::+account+rolename string, etc...)?
    I would like to pass the Cognito authenticated users ARN via the following method:
    AssumeRoleWithWebIdentityRequest.builder().webIdentityToken(openidresponse.token())
                                                                                                     .roleSessionName(<EMAIL>)
                                                                                                     .roleArn();
    JoLo
    @jolo-dev
    Hi,
    I have troubles running the Java SDK on Fargate.
    Is there an example which lists a simple List of S3-Buckets from the account where the Docker container is running?
    Martynas Jusevicius
    @namedgraph_twitter
    have you looked into S3 SDK?
    JoLo
    @jolo-dev
    @namedgraph_twitter Yes, I have. Running locally is fine. Running it on ECS with Fargate returns an Access Denied
    Martynas Jusevicius
    @namedgraph_twitter
    ok
    then it's probably smth to do with roles and policies?
    i was setting up Fargate writing to Kinesis which wrote to S3
    that was pretty complicated
    JoLo
    @jolo-dev
    @namedgraph_twitter Thought so too, but I have all the necessary function in the policies.
    Martynas Jusevicius
    @namedgraph_twitter
    but does the "task execution" role have them too?
    JoLo
    @jolo-dev
    It comes even weirder. When I run it on ECS with underlying EC2 then it works.

    but does the "task execution" role have them too?

    Yep

    Martynas Jusevicius
    @namedgraph_twitter
    so is there any error you get?
    JoLo
    @jolo-dev
    @namedgraph_twitter Cloudwatch says:
    Exception in thread "main" software.amazon.awssdk.services.s3.model.S3Exception: Access Denied (Service: S3, Status Code: 403, Request ID: 4593AD9A8E0BC44E)
    As I said, locally it's fine
    Martynas Jusevicius
    @namedgraph_twitter
    hm
    well i don't have any more suggestions i'm afraid :)
    JoLo
    @jolo-dev
    @namedgraph_twitter No worries.
    Maybe there is someone who will simple documentation with Fargate :D
    Martynas Jusevicius
    @namedgraph_twitter
    i paid for support
    just to get answers like this
    Eric Peters
    @er1c
    this isn't the paid-support channel :)
    Martynas Jusevicius
    @namedgraph_twitter
    i know :)
    JoLo
    @jolo-dev
    @namedgraph_twitter Well, I would do it. But unfortunately it is not working for me and I have played with almost all the CredentialsProvider.
    namedgraph_twitter @namedgraph_twitter wonders if anyone here works with graph data. More specifically Knowledge Graphs, RDF, SPARQL
    JoLo
    @jolo-dev
    Ah and Docker in EC2 is also working but it has the same creds like on my local machine
    Eric Peters
    @er1c
    Does anyone know if this is an issue with the java SDK or if its just an issue with the dynamodb API: https://forums.aws.amazon.com/thread.jspa?threadID=309360&tstart=0 ?
    Debora Naomi Ito
    @debora-ito
    @er1c It's with the DynamoDB API, the GetItem operation does not support condition expression currently - https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_GetItem.html