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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ