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.

posta 10 mesi fa445 visualizzazioni
3 Risposte
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

con risposta 10 mesi fa
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
ESPERTO
con risposta 10 mesi fa
  • 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?

con risposta 10 mesi fa
  • 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.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande