amazon-ecs-cli icon indicating copy to clipboard operation
amazon-ecs-cli copied to clipboard

Support multiple clusters in configuration

Open raphink opened this issue 10 years ago • 11 comments

The configuration file currently uses only one section (ecs).

It would be very useful if several sections could be used, one per cluster, with the ability to switch between them, e.g.:

$ cat ~/.ecs/config
[ecs]
cluster = default-cluster
aws_profile = 
region = eu-west-1
aws_access_key_id = MYKEYID
aws_secret_access_key = mySecretKey

[test]
cluster = another-cluster
aws_profile =
region = us-east-1
aws_access_key_id = MYKEYID
aws_secret_access_key = mySecretKey

$ ecs-cli -c test ps

raphink avatar Jan 07 '16 17:01 raphink

Even better would be to be able to pass the cluster name at run time like the other attributes. eg:

aws-cli --cluster another-cluster --region eu-west-1 compose create

this would be especially useful in a shared build server environment

christianblunden avatar Jan 20 '16 10:01 christianblunden

👍

joprice avatar Apr 20 '16 21:04 joprice

👍

DylanBruzenak avatar Jun 01 '16 22:06 DylanBruzenak

👍

pgeez avatar Aug 27 '16 15:08 pgeez

👍

AlJohri avatar Jan 06 '17 21:01 AlJohri

related to https://github.com/aws/amazon-ecs-cli/issues/174

yinshiua avatar Apr 07 '17 01:04 yinshiua

👍

LavieX avatar Apr 18 '17 16:04 LavieX

Added proposals to support multiple clusters configuration. Please give us some feedback. Thanks! https://github.com/aws/amazon-ecs-cli/issues/253

yinshiua avatar Jun 08 '17 17:06 yinshiua

Is there any traction on this? Why is this config file even a thing? Just use --profile like every other AWS command and utility?

I deal with multiple accounts. I will have to deal with multiple clusters in multiple accounts. Without this support, I'm not sure how to move forward.

gstaples avatar Jul 20 '17 22:07 gstaples

@gstaples We posted a proposal earlier #251, and we are actively working on the implementation.

As for today, added --cluster and --region runtime flags for every command in our latest release. You can use AWS CLI profile and the new runtime flags to switch between accounts and clusters. Hope that helps!

yinshiua avatar Jul 21 '17 06:07 yinshiua

Released in v1.0.0

yinshiua avatar Dec 06 '17 00:12 yinshiua