Ошибка: невозможно загрузить артефакт HelloWorldFunction, на который ссылается параметр CodeUri ресурса HelloWorldFunction. AWS Лямбда, SAM CLI, GitLab CI / CD - PullRequest
1 голос
/ 21 июня 2020

Пользователь AWS имеет все политики. Удален Sam Package и автоматическая упаковка с Sam Deploy. По-прежнему возникает проблема с параметром CodeUri ресурса HelloWorldFunction и отказом в доступе при попытке развернуть лямбда-функцию «Hello-World» в сегменте S3. Сборка и развертывание пакетов отлично работает на моем компьютере Ma c. Проблема возникает только с конвейером GitLab CI / CD.

https://aws.amazon.com/blogs/apn/using-gitlab-ci-cd-pipeline-to-deploy-aws-sam-applications/

$ sam build


SAM CLI now collects telemetry to better understand customer needs.

You can OPT OUT and disable telemetry collection by setting the
environment variable SAM_CLI_TELEMETRY=0 in your shell.
Thanks for your help!

Learn More: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-telemetry.html

Building function 'HelloWorldFunction'
Running PythonPipBuilder:ResolveDependencies
Running PythonPipBuilder:CopySource

Build Succeeded

Built Artifacts  : .aws-sam/build
Built Template   : .aws-sam/build/template.yaml

Commands you can use next
=========================
[*] Invoke Function: sam local invoke
[*] Deploy: sam deploy --guided

$ sam package --output-template-file packaged.yaml --s3-bucket hello-tilak

Error: Unable to upload artifact HelloWorldFunction referenced by 
CodeUri parameter of HelloWorldFunction resource.
An error occurred (AccessDenied) when calling the PutObject operation: 
Access Denied
ERROR: Job failed: exit code 1
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...