Fetching list of tags of an EMR Cluster using AWS Lambda Python

23 Views Asked by At

Is there any function to get list of tags of an emr cluster like S3 bucket? Like in a S3 bucket, we have get_bucket_tagging

I tried using get_list but it does not work. Let me know if there is any other way to fetch the tag details

1

There are 1 best solutions below

0
emdneto On

You can get the tags by using describe_cluster method. For example, using boto3:

import boto3

client = boto3.client('emr')
response = client.describe_cluster(
    ClusterId='string'
)
tags = response['Cluster']['Tags']