Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you determine the ARN of a Redshift cluster via the AWS API?

I'm trying to add tags to a Redshift cluster using CreateTags, http://docs.aws.amazon.com/redshift/latest/APIReference/API_CreateTags.html and you'll notice it requires an ARN for the resource.

But when you call DescribeClusters, http://docs.aws.amazon.com/redshift/latest/APIReference/API_DescribeClusters.html no ARN is returned.

Is there some other API call to retrieve the ARN or do I have to construct it manually?

like image 626
Ashish Datta Avatar asked Oct 06 '17 19:10

Ashish Datta


1 Answers

The ARN format is documented here. Specifically for a Redshift cluster the ARN format is:

arn:aws:redshift:region:account-id:cluster:cluster-name

If you know the region, account-id and cluster-name then you can construct the ARN.

like image 53
Mark B Avatar answered Oct 19 '22 07:10

Mark B