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 個月前檢視次數 448 次
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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南