Skip to content

Ask how to use cost allocation tags on aws ses sending email

0

Hello :)

As we know, when we send email using aws ses. we have a tags field i search what is the tags field means Please check the below the link

So when we use tags field it just for tracking the log on cloudWatch

But according to below the link we can use ses tags as a cost allocations tags https://repost.aws/questions/QUhO-0ZBnlT--_Cw4GJxsL5w/cost-allocation-tags-for-sent-emails-in-amazon-simple-email-service

I tested it yesterday like this

aws ses send-email \\
  --profile chan \
  --destination='{"ToAddresses": ["receipent email"]}' \
  --message='{
    "Subject": {"Data": "send-test"},
    "Body": {"Text": {"Data": "Email tag test"}}
  }' \
  --tags='[{"Name":"BillingKey", "Value": "emailTest"}, {"Name": "email", "Value": "true"}]' \
  --from='noreply@dev-wetrip.shop' \
  --region us-east-1

i receive the email but... i can't see BillingKey and email tags on cost allocation tags setting page (I check this page after sending email 12 hours)

How to can use cost allocation tags each by sending email i want to separate billings each by sending email

Thank you :)

1 Answer
0

You have set the tag for the email, however, you have not set the cost allocation tag in AWS Billing. In AWS, search for Cost allocation tags. Select the desired tag and Activate it. Then, it will appear as cost allocation tag.

EXPERT
answered 14 days ago
  • Hello thank you for fast reply it :)

    As i know In Aws billing console, cost allocation tags only exposed resource tags (example tags on aws ses configration set) Do i need to wait for the tags list update?

    i think it is not compatible between cost allocation tags and aws ses email tags

    What i want to do is separating billings on just one configuration sets each by sending email

    i hope you have a nice day

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.