Closed MIJOTHY-V2 closed 6 months ago
The --tags
flag is not for tagging AWS resources. It's only used by Artillery Cloud (for searching/organizing test runs)
Converting to discussion. Tagging AWS resources is a valid use-case but the flag is working as intended right now.
Version info:
Running this command:
I expected to see this happen:
run-fargate
job logs output the tagsInstead, this happened:
Additional Context
These tasks are running on a pre-existing untagged cluster, but the lack of tags there is fine for us, as we mainly want to distinguish between different artillery test runs on the same cluster using tags.
Thoughts
A very brief look at some of the source seems to point to
context.tags
being correctly picked up by artillery, hence the job logs emitting the relevant tagshttps://github.com/artilleryio/artillery/blob/af8834b355f108bfc5a189e63de365ffaa8108c4/packages/artillery/lib/platform/aws-ecs/legacy/run-cluster.js#L636-L639
but not being passed to the created AWS resources here https://github.com/artilleryio/artillery/blob/af8834b355f108bfc5a189e63de365ffaa8108c4/packages/artillery/lib/platform/aws-ecs/legacy/run-cluster.js#L1590-L1602
or here https://github.com/artilleryio/artillery/blob/af8834b355f108bfc5a189e63de365ffaa8108c4/packages/artillery/lib/platform/aws-ecs/legacy/run-cluster.js#L1634-L1660