From d74d3cba9dea770bb991cbc17ddf991f5a78c876 Mon Sep 17 00:00:00 2001 From: Bruno Date: Fri, 10 Jul 2020 22:13:31 -0300 Subject: [PATCH] docs: Added credential configuration Added docs about how to configure aws credentials before deployment --- README.md | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index caf5680..4bfec99 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,21 @@ This action deploys ECS services using [fabfuel/ecs-deploy](https://github.com/f ## Example usage ```yml -uses: brunocascio/ecs-deploy@v1.1.1 -with: - cluster: theClusterName - service: theServiceName - task: theTaskDefinitionName - container: theContainerName - envfile: /path/to/your/envfile (optionally) - timeout: 720 (optionally, default 300) -``` \ No newline at end of file + +- name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ${{ secrets.AWS_REGION }} + +- name: Deploy to ecs + uses: brunocascio/ecs-deploy@v1.1.1 + with: + cluster: theClusterName + service: theServiceName + task: theTaskDefinitionName + container: theContainerName + envfile: /path/to/your/envfile (optionally) + timeout: 720 (optionally, default 300) +```