Is there any way to attach TAG on MWAA additional workers?

0

Hi, I'm running multiple MWAA clusters, and each of them has multiple additional workers. To identify the expenditures for each cluster, I attached the tag for each cluster(say, Cluster A: "cluster": "A", Cluster B: "cluster": "B"), and it worked well for base cluster fee. However, it seems that additional workers doesn't have tag, so I can't distinguish extra spending of each cluster. Is there anyway to attach tag on MWAA additional workers?

Note: I need to distinguish the spending of these two clusters in a single AWS account. Unfortunately, my organization doesn't allow me to create another AWS account.

질문됨 10달 전445회 조회
3개 답변
1

Thanks Jose, Yeah, I couldn't find specific ARN for additional workers in the document. So there seems to be no way to attach tags for additional workers. https://docs.aws.amazon.com/ja_jp/mwaa/latest/API/API_Environment.html

답변함 10달 전
0

Hi Hideki.

Please correct me if I'm wrong but it seems you are trying to add the tags using the AWS Console. Is that correct? If so, there are some resources that don't have a UI from the console to do that. It is not common, but it does happen.

You can add the tags using the CLI with the command tag-resource. Here is the link to the documentation page.

Example:

aws mwaa tag-resource --resource-arn "arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment" --tags "Cluster=A"

I hope this helps.

profile pictureAWS
전문가
답변함 10달 전
  • Thanks Jose, I just ran the command you suggested. will see whether attaching tags from CLI can address my issue tomorrow. Since the cost explorer is my only way to check the spending, and we don't activate hourly granularity, so I have to wait one day.

0

I just get updated the latest cost explorer result, but unfortunately, found that the approach (=assigning tag via CLI) couldn't address my issue, I still find non-tagged spending. Do I need to specify any specific ARN for additional workers?

답변함 10달 전
  • Hi Hideki. The ARN in the command is for the environment (per the documentation). I'm unclear whether it can be individual workers but you can try. Aside from that, I don't know any other way to do add tags. I hope that helps.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인