MGenteluci / cloudformation-deploy-action

AWS CloudFormation Deploy Action
MIT License
17 stars 34 forks source link

Could it support 2 deployments? #5

Closed CarlosMenaPhotoslurp closed 4 years ago

CarlosMenaPhotoslurp commented 4 years ago

I found an issue when I try to deploy two stacks in the same workflow (github action): mkdir: cannot create directory '/github/home/.aws': File exists

 -
      name: "Deploy analytics celery stack"
      uses: mgenteluci/cloudformation-deploy-action@v1.4.0
      env:
        TEMPLATE: 'amazon-aws/cloudformation/prod-ecs-celery-analytics.yml'
        AWS_STACK_NAME: 'prod-ecs-celery-analytics'
        AWS_REGION: 'eu-west-1'
        AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
        AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
        AWS_DEPLOY_BUCKET: ${{secrets.AWS_CLOUDFORMATION_BUCKET}}
    -
      name: "Deploy async celery stack"
      uses: mgenteluci/cloudformation-deploy-action@v1.4.0
      env:
        TEMPLATE: 'amazon-aws/cloudformation/prod-ecs-celery-async.yml'
        AWS_STACK_NAME: 'prod-ecs-celery-async'
        AWS_REGION: 'eu-west-1'
        AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
        AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
        AWS_DEPLOY_BUCKET: ${{secrets.AWS_CLOUDFORMATION_BUCKET}}
CarlosMenaPhotoslurp commented 4 years ago

2 deployments is supported in 2 different jobs, not 2 steps.