Giter Club home page Giter Club logo

Comments (6)

Simplycissimys avatar Simplycissimys commented on June 5, 2024

I have the same error while getting rds tags. May be there is some workaround fo this issue?

from aws-sdk-java.

uriahcarpenter avatar uriahcarpenter commented on June 5, 2024

The workaround is to build a ARN resource name manually. awsAccountNumber is a 12 digit number (do not include the dashes) available in the "My Account" section of the AWS Console. You will also need to update the region identifier if your RDS instance is not in US-East.

// RDS tags query requires ARN, which is not available from the RDS client
//   https://forums.aws.amazon.com/thread.jspa?messageID=397452
String arn = String.format("arn:aws:rds:us-east-1:%s:db:%s", awsAccountNumber, dbInstance.getDBInstanceIdentifier());
ListTagsForResourceResult tagsList = rds.listTagsForResource(new ListTagsForResourceRequest().withResourceName(arn));

from aws-sdk-java.

rakrachok avatar rakrachok commented on June 5, 2024

thanks, it's work)

from aws-sdk-java.

uriahcarpenter avatar uriahcarpenter commented on June 5, 2024

@wmatveyenko Was this issue fixed?

from aws-sdk-java.

wmatveyenko avatar wmatveyenko commented on June 5, 2024

@uriahcarpenter, this was not a bug. You need to supply the ResourceName for the ListTagsForResource API call. See http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ListTagsForResource.html

from aws-sdk-java.

uriahcarpenter avatar uriahcarpenter commented on June 5, 2024

@wmatveyenko OK, I'm good with that.

However, would it be possible to add something to the SDK that would make it easier to generate the ResourceName? Simply adding JavaDoc to explain the required URN format would of helped me a lot.

Having to search stackoverflow for the correct URN format did not make the listTagsForResource API easy to use for me the first time around.

from aws-sdk-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.