From 70ee0f4ea01d7ed297c3b04e54c27dd8fb9b77ad Mon Sep 17 00:00:00 2001 From: Fabian Fuelling Date: Sun, 15 Aug 2021 08:56:25 +0200 Subject: [PATCH] Add .env file usage to README --- README.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.rst b/README.rst index a34cdfb..7ecb2a3 100644 --- a/README.rst +++ b/README.rst @@ -231,6 +231,15 @@ To reset all existing secrets (secret environment variables) of a task definitio This will remove **all other** existing secret environment variables of **all containers** of the task definition, except for the new secret variable `NEW_SECRET` with the value coming from the AWS Parameter Store with the name "KEY_OF_SECRET_IN_PARAMETER_STORE" in the webserver container. +Set environment via .env files +============================== +Instead of setting environment variables separately, you can pass a .env file per container to set the whole environment at once. You can either point to a local file or a file stored on S3, via:: + + $ ecs deploy my-cluster my-service --env-file my-app env/my-app.env + + $ ecs deploy my-cluster my-service --s3-env-file my-app arn:aws:s3:::my-ecs-environment/my-app.env + + Set a docker label =================== To add a new or adjust an existing docker labels of a specific container, run the following command::