appleboy / lambda-action

GitHub Action for Deploying Lambda code to an existing function

Home Page:https://github.com/marketplace/actions/aws-lambda-deploy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Passing environment input overwrite existing environment variables

edixonvargas opened this issue · comments

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

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