Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

different environment variable for a subset of the replicas in ECS #5780

Open
faisalil opened this issue Apr 16, 2024 · 3 comments
Open

different environment variable for a subset of the replicas in ECS #5780

faisalil opened this issue Apr 16, 2024 · 3 comments
Labels
type/feature Issues that are new feature requests. type/request Issues that are created by customers.

Comments

@faisalil
Copy link

Hello,

one service I have on ECS is called "workers", currently, all those workers listen to the same queue of tasks that we have. I have 3 replicas.
I want to do a change and make 2 of the machines listen to 1 queue and the other machine listen to a new queue.

What I need to to spin up 2 replicas with a different environment variables than the other machine. I want to avoid creating new service since there is just a lot of env variables and configs that I don't want to change.

@huanjani
Copy link
Contributor

Hi @faisalil!

You can configure env vars in the manifest for each worker service: https://aws.github.io/copilot-cli/docs/manifest/worker-service/#variables

You can configure the subscriptions in the manifests: https://aws.github.io/copilot-cli/docs/manifest/worker-service/#subscribe

See more about worker services here: https://aws.github.io/copilot-cli/docs/concepts/services/#worker-service

Hope this helps!

@huanjani huanjani added the guidance Issue requesting guidance or information about usage label Apr 19, 2024
@faisalil
Copy link
Author

@huanjani : I am not using AWS queues, my question is simple: can I have a subset of the replicas in 1 service have different env variables than other ones?

@huanjani
Copy link
Contributor

Related: #4122, #5525, #2699

@huanjani huanjani added type/feature Issues that are new feature requests. type/request Issues that are created by customers. and removed guidance Issue requesting guidance or information about usage labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature Issues that are new feature requests. type/request Issues that are created by customers.
Projects
None yet
Development

No branches or pull requests

2 participants