Copy tags from the AWS service instance to Consul#19
Copy tags from the AWS service instance to Consul#19remilapeyre wants to merge 2 commits intohashicorp:masterfrom
Conversation
Since tags in AWS are a pair "key": "value", both parts are concatenated before being saved in the Consul catalog. When a tag gets updated on AWS the associated service on Consul gets updated in place with the new value to false triggers. This only sync tags from ECS tasks but it should be easy to expand the scope as needed. The synchronisation only goes from AWS to Consul as I'm not sure there is a place to store additional tags to a service instance in Cloud Map.
|
Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement Learn more about why HashiCorp requires a CLA and what the CLA includes Rémi Lapeyre seems not to be a GitHub user. Have you signed the CLA already but the status is still pending? Recheck it. |
|
@i0rek I've found consul-aws to be quite useful, but it hasn't been updated for 5 months. Is this project still alive? |
|
@larstobi Currently I don't have time to work on this project. But this project is not abandoned, I just didn't have time to do anything, but I am trying to find ways so that this project gets the love it deservers :). |
|
would it be possible to implement this using cloudmap APIs exclusively? I don't think cloudmap services/instances initially supported tags, but they do now. bringing in the ECS dependency presents encapsulation issues (e.g. if you're using EC2/K8s, etc) as well as IAM issues (the underlying hosts need additional permissions) |
Since tags in AWS are a pair "key": "value", both parts are concatenated
before being saved in the Consul catalog. When a tag gets updated on AWS
the associated service on Consul gets updated in place with the new
value to false triggers.
This only sync tags from ECS tasks but it should be easy to expand the
scope as needed.
The synchronisation only goes from AWS to Consul as I'm not sure there
is a place to store additional tags to a service instance in Cloud Map.