appleboy / lambda-action

GitHub Action for Deploying Lambda code to an existing function
https://github.com/marketplace/actions/aws-lambda-deploy
MIT License
394 stars 58 forks source link

Passing environment input overwrite existing environment variables #66

Closed edixonvargas closed 1 year ago

edixonvargas commented 1 year ago

When using environment input, the result will be all env variables overwritten with only ASPNETCORE_ENVIRONMENT variable

 with:
            aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
            aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
            aws_region: ${{ secrets.AWS_REGION }}
            function_name: ${{ env.LAMBDA_NAME }}
            image_uri: ${{ steps.login-ecr.outputs.registry }}/${{ env.ECR_REPOSITORY }}:${{ github.sha }}
            role:  ${{ env.LAMBDA_ROLE }}
            timeout: 30
            environment: ASPNETCORE_ENVIRONMENT=Production
edixonvargas commented 1 year ago

The issue was caused due to an upgrade in aws images, so it seemed to be something related with environment variables but not