Missing error message in action
koliyo opened this issue · 1 comments
koliyo commented
I have an AWS sts role with lacking permissions, but the action does not tell me anything about this:
Running "serverless" from node_modules
Deploying vrex-github-integration to stage production (eu-central-1)
× Stack vrex-github-integration-production failed to deploy (0s)
Environment: linux, node 18.[17](https://github.com/Vixel-AS/vrex-slack-assistant/actions/runs/6493845570/job/17635590259#step:6:18).1, framework 3.35.2 (local) 3.35.2v (global), plugin 7.0.5, SDK 4.4.0
Credentials: Local, environment variables
Docs: docs.serverless.com
Error:
Support: forum.serverless.com
Running "docker run --rm -v /github/home/.cache/serverless-python-requirements/e7a9d811fb9e5aad0547db48cd74814b9278425e67b4bbac4010cf52dd94c[24](https://github.com/Vixel-AS/vrex-slack-assistant/actions/runs/6493845570/job/17635590259#step:6:25)9_x86_64_slspyc:/var/task:z -v /github/home/.cache/serverless-python-requirements/downloadCacheslspyc:/var/useDownloadCache:z public.ecr.aws/sam/build-python3.9:latest-x86_64 /bin/sh -c chown -R 0\:0 /var/useDownloadCache && python3.9 -m pip install -t /var/task/ -r /var/task/requirements.txt --cache-dir /var/useDownloadCache && chown -R 0\:0 /var/task && chown -R 0\:0 /var/useDownloadCache" failed with: ""
Bugs: github.com/serverless/serverless/issues
If I assume the role locally and run sls deploy
I see the following, very helpful message:
Deploying vrex-github-integration to stage production (eu-central-1)
✖ Stack vrex-github-integration-production failed to deploy (14s)
Environment: darwin, node 20.8.0, framework 3.30.1 (local) 3.29.0v (global), plugin 6.2.3, SDK 4.3.2
Credentials: Local, environment variables
Docs: docs.serverless.com
Support: forum.serverless.com
Bugs: github.com/serverless/serverless/issues
Error:
User: arn:aws:sts::600753219523:assumed-role/serverless-iam-admin-role/test is not authorized to perform: cloudformation:DescribeStacks on resource: arn:aws:cloudformation:eu-central-1:600753219523:stack/vrex-github-integration-production/8e3b21f0-6826-11ee-ba9d-06af39d3f30c because no identity-based policy allows the cloudformation:DescribeStacks action
Please add the same level of error reporting to the github action as the local execution.
koliyo commented
Looks like my workflow issue was also that docker does not work in the action