Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    biswajit
    @vionixt_twitter
    nisarg9099
    @nisarg9099
    I am getting following exception. I am using BasicAWSCredentials() and AWSHealthClient(). com.amazonaws.services.health.model.AWSHealthException: The security token included in the request is invalid. (Service: AWSHealth; Status Code: 400; Error Code: UnrecognizedClientException;
    Debora N. Ito
    @debora-ito
    @nisarg9099 UnrecognizedClientException: The security token included in the request is invalid usually means there is something wrong with your credentials, either accessKeyId or secretAccessKey (or both) is invalid
    Justin Reeves
    @justinallenreeves
    I was suprised to see without injecting any of my AWS credentials requests for presigned S3 urls succeeding when I started up my app locally and started testing. Is there a way to know which AWS account I'm talking to from the request or response?
    Justin Reeves
    @justinallenreeves
    :question:
    Debora N. Ito
    @debora-ito
    @justinallenreeves I'm not sure which API operation you are asking about, but try STS GetCallerIdentity - https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity.html
    Manish Singh
    @msssingh0
    hey all! new here. I want to contribute a new feature in AWS DMS. But not sure with whom to discuss the feature before starting on it?
    Justin Reeves
    @justinallenreeves
    Using presigned urls now but I'm getting 403 access denied when testing a PUT with one and an image.
    I had my application, which has all the account information injected through terraform, send the generate request successfully.
    Also used terraform to create the bucket, which is private but allows all s3 actions for now and only has my iam userid as a principle.
    Debora N. Ito
    @debora-ito
    @msssingh0 you can post it on the AWS DMS Forum here or contact AWS Premium Support if you have a support plan
    Debora N. Ito
    @debora-ito
    @justinallenreeves make sure you are generating the presigned url with the credential that has access to the S3 bucket
    Debora N. Ito
    @debora-ito
    @/all hey everyone, we are happy to announce the release of the DynamoDB Enhanced Client for the AWS SDK for Java 2.0. Read the blog post for more details: https://aws.amazon.com/blogs/developer/introducing-enhanced-dynamodb-client-in-the-aws-sdk-for-java-v2/
    Justin Reeves
    @justinallenreeves
    @debora-ito got it eventually. It was role related. I hadn't created the role correctly for writing to the bucket.
    ChandraSekharBk
    @ChandraSekharBk
    hi, need assistance related to AWS S3 service performance issue
    please check aws/aws-sdk-java#2302
    ChandraSekharBk
    @ChandraSekharBk
    any suggestion on this issue aws/aws-sdk-java#2302 will be greatly helpful
    AlexisCothenet
    @AlexisCothenet
    Hello here. Do you know which values should be taken for the header Priority in order to send an email by smtp with high priority ? Cannot find any documentation about it. Thanks
    حراج الزلفي
    @thakkardipa1_twitter
    Hello - I am very new to using was and java sdk - just trying things out - is this correct forum to ask I am stuck here questions ? - Is there another forum for such discussions ? ((Service: AWSKMS; Status Code: 400; Error Code: NotFoundException; Request ID: 007d6f7d-9a98-4ef9-8d8d-241d821b82bf))
    1 reply
    Grzegorz Olędzki
    @grzegon_twitter
    Hi. I have never contributed to aws-sdk-java before. Yet I found what seems a performance bug in aws-java-sdk-s3. What's the expected scrutiny when it comes to submitting the pull request?
    e.g. a unit test for the change meethod? JMH benchmark showing the improvement?
    2 replies
    POJO
    @vivektikoo
    I am deploying Cloudformation stack in the newly created sub account using cdk but I got error Stack [stack1] already exists (Service: CloudFormation, Status Code: 400, Request ID: 8f6972f4-9f26-42ea-a3d3-56ade88fc75b). I checked that there is no stack named stack1 in my account. why is this happening
    1 reply
    how can I triage this
    Can Request ID: 8f6972f4-9f26-42ea-a3d3-56ade88fc75b help what had happened at that time
    Sofia Oliveira
    @asofiasbo
    Hello! Does anyone have an example of a Step Functions worker using SfnAsyncClient?
    Mohit Hapani
    @mohithapani
    Hello - Is there a way we can run select object content (s3 select) on specific version of s3 object using version Id? I cannot find any references in select object content documentation to specify the version Id like we have version Id field in get Object request. Any help is appreciated?
    2 replies
    manasshukla
    @manasshukla
    Hi,
    I am using the AWS SDKv2 to audit my S3 buckets. My S3 buckets are spread out across different regions. Is there a way to create a region agnostic S3 Client ? Or can we add more than one regions in the S3Client ? Since S3 bucket names are globally unique, S3Client should be self sufficient in the terms of figuring out which region a bucket is in. As I understand, we can query a bucket to know its location but that is an extra network call.
    3 replies
    Dave Brosius
    @mebigfatguy_twitter
    Hi folks, I'm using S3Client.builder()...build() and it's working fine, but i now need to configure proxy settings. I see documentation refering to a ClientConfiguration class, but i don't see that, or how you install it with the builder? Anyone point me in the right direction?
    8 replies
    Gaurav Rawat
    @gauravbrills
    A quick general question are sqs generated messageIds (UUID) unique . Can they be used as identifiers for the consuming system to figure our message uniqueness checks say for s3 event notifications . Also is there a chance of the consumer receiving a duplicate message id from a queue on 2 different messages.
    manasshukla
    @manasshukla
    Hi All, I have a very basic question regarding S3 buckets. The API to get Server Side Encryption Rule s3Client.getBucketEncryption(bucketName).getServerSideEncryptionConfiguration().getRules() returns a List<ServerSideEncryptionRule>. Since there are no option of selection multiple Server Side Encryptions (The console has a radio button to select between various encryption types), why a list of Rules with just element is returned. Would it not have been a better API design to just return a ServerSideEncryptionRule instead of a list ?
    Paolo Di Tommaso
    @pditommaso
    hi all, any suggestion to retrieve all buckets in a region without doing n+1 API calls (list all + bucket location for each one)?
    Paolo Di Tommaso
    @pditommaso
    manasshukla
    @manasshukla
    Hi All, I am trying to find a way to query S3 Bucket and check if the "Object-level logging" is enabled or disabled for that bucket. Any ideas how I can do that ?
    murtuza boxwala
    @tuzamama_twitter
    Hi all, I am trying to build a client application using Cognito, but I would like the user to be logged into multiple "workspaces" at the same time, like slack. Amplify seems too restrictive because I think it stores the session as a singleton...is that correct? Do you think this should be possible using the Java SDK?
    soumyathampi
    @soumyathampi
    Hi, I am creating a spot instance and I get instance ID returned as a string, now I need more details about this instance like the ipaddress, Can anyone help me here on how to do this. For a on demand instance I get an Instance object returned while creating the instance which has all these details. But not able to do the same for spot instance.
    2 replies
    aasifkhan7
    @aasifkhan7
    let's say at a path A/, I have uploaded, F1, F2, ... F30 in that order.
    So, now we have A/F1, A/F2, A/F3, A/F4, ... A/F30.
    Is there a way to upload objects to the s3 bucket at a path - let's say A/ maintaining the number of objects uploaded at that path only at a fixed number? for example, in this case, if I fix that number to 10, is there a way that when I'm updating F11, F1 will get deleted and when I'm uploading F12, F2 will get deleted and so on.. (keeping the number of objects within A as max 10)
    Reza Nikoopour
    @rnikoopour

    Hey All,

    I'm trying to create a signed request to use in the vault-java-driver (https://github.com/BetterCloud/vault-java-driver/blob/fef74b881b9f3620b68759f1b0d297591f80975e/src/main/java/com/bettercloud/vault/api/Auth.java#L838-L917)

    What's the correct way to go about creating a signed request and passing along the signed data?

    Using the golang SDK you could just create a request objet and then call ..sign on it. I was hoping there would be something similar in Java.

    cpatelhealthfidelity
    @cpatelhealthfidelity
    Hi All, I am trying to pass session tags for STSAssumeRoleSessionCredentialsProvider but the builder STSAssumeRoleSessionCredentialsProvider.Builde does not provide any way to set the tags that can be passed during the STS assume role operation..
    I have submitted an enhancement request for the Java SDK for that. Is there presently any other way to approach this? I want to avoid writing token renewal code and use STSAssumeRoleSessionCredentialsProvider for that
    macportter
    @macportter
    Hello,
    For the SES API v2 (aws-java-sdk-sesv2) we should handle maximum sending rate per second error in the same way it was in SES API v1 (Throttling errorCode) (https://aws.amazon.com/blogs/messaging-and-targeting/how-to-handle-a-throttling-maximum-sending-rate-exceeded-error/) or in SES API v2 we should catch the TooManyRequestsException for the SendEmail operation (https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_SendEmail.html) ?
    2 replies
    qohat-lulo
    @qohat-lulo
    Hello,
    I'm new here, so i don't wanna make you waste your time guys... I have a problem trying to connect multiple consumer to kinesis shard... Someone know how could i do it? I'm using Java
    Thank you for your help
    gilsharon321
    @gilsharon321
    Hi! Is there a way to be able to contribute code to this project? ( can I create a PR? )
    Scott Macdonald
    @scmacdon
    You can create a PR for our Docs Github Code examples here -- https://github.com/awsdocs/aws-doc-sdk-examples
    gilsharon321
    @gilsharon321
    and what about aws/aws-sdk-java ?
    1 reply
    Michael Brewer
    @michaelbrewer
    I am trying to query a table by a GSI and then update it and i am getting a no mapping for HASH key error
    Model :
    @DynamoDBTable(tableName = "ignored")
    data class PendingOrder(
        @DynamoDBHashKey
        var PK: String? = null,
        @DynamoDBRangeKey
        @DynamoDBIndexRangeKey(globalSecondaryIndexName = "pendingOrders")
        var createdAt: String? = null,
    
        @DynamoDBIndexHashKey(globalSecondaryIndexName = "pendingOrders")
        var pending: Int? = null,
    ...
    )
        open fun findPendingOrders(createdAt: String): List<PendingOrder>? {
            val expression = DynamoDBQueryExpression<PendingOrder>()
                .withConsistentRead(false)
                .withIndexName("pendingOrders")
                .withKeyConditionExpression("pending = :pending AND createdAt < :createdAt")
                .withExpressionAttributeValues(
                    mapOf(
                        ":pending" to AttributeValue().withN("1"),
                        ":createdAt" to AttributeValue(createdAt)
                    )
                )
            return mapper.query(PendingOrder::class.java, expression)
        }
    Error i am getting :
    PendingOrder; no mapping for HASH key: com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMappingException
    com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMappingException: PendingOrder; no mapping for HASH key
    Michael Brewer
    @michaelbrewer
    looks like it is a kotlin issue.
    @DynamoDBTable(tableName = "ignored")
    data class PendingOrder(
        @get:DynamoDBHashKey(attributeName = "PK")
        var PK: String? = null,
        @get:DynamoDBRangeKey
        @get:DynamoDBIndexRangeKey(globalSecondaryIndexName = "pendingOrders")
        var createdAt: String? = null,
    
        @get:DynamoDBIndexHashKey(globalSecondaryIndexName = "pendingOrders")
        var pending: Int? = null,
    fixes it
    springroll12
    @springroll12
    Hello. We have a spring boot application that allows file uploads which we are sending to s3 via aws-java-sdk. It is about to receive a lot of traffic in the very near future. We've been doing load testing and trying to improve the performance of many concurrent file uploads and it seems the upload to s3 is one of the bottlenecks. Our files are between 3-10mb, but there will be many many of them. We are in the process of implementing transfermanager, but I am doubtful that this will gain us much performance since the files themselves are mostly below the 5Mb limit. I've also read that it is not possible to use inputstreams to stream files directly to s3 via transfermanager (aws/aws-sdk-java#689) or at least that it won't improve performance. Is there a better way to improve performance for many concurrent file uploads?