Hi, when trying to deploy serverless from a codebuild pipeline i encounter a message who block me about with right is neccessary to go further.
it’s only for deploy some lambdas
Serverless: Creating an empty package.json file in your service directory
Serverless: Installing plugin "serverless-python-requirements@latest" (this might take a few seconds...)
Serverless: Successfully installed "serverless-python-requirements@latest"
Serverless: Load command interactiveCli
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command config:tabcompletion
Serverless: Load command config:tabcompletion:install
Serverless: Load command config:tabcompletion:uninstall
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command upgrade
Serverless: Load command uninstall
Serverless: Load command requirements
Serverless: Load command requirements:clean
Serverless: Load command requirements:install
Serverless: Load command requirements:cleanCache
Serverless: Load command login
Serverless: Load command logout
Serverless: Load command generate-event
Serverless: Load command test
Serverless: Load command dashboard
Serverless: Load command output
Serverless: Load command output:get
Serverless: Load command output:list
Serverless: Load command param
Serverless: Load command param:get
Serverless: Load command param:list
Serverless: Load command studio
Serverless: Load command dev
Serverless: Invoke deploy
Serverless: Invoke package
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:common:cleanupTempDir
Serverless: Generated requirements from /srv/nitro/centrefrance/lambdas/requirements.txt in /srv/nitro/centrefrance/lambdas/.serverless/requirements.txt...
Serverless: Installing requirements from /srv/nitro/centrefrance/lambdas/.serverless/requirements/requirements.txt ...
Serverless: Running ...
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Injecting required Python packages to package...
Serverless: Invoke aws:package:finalize
Serverless: Invoke aws:common:moveArtifactsToPackage
Serverless: Invoke aws:common:validate
Serverless: [AWS s3 200 0.052s 0 retries] getBucketLocation({ Bucket: '<deployment_bucket>' })
Serverless: Invoke aws:deploy:deploy
Serverless: [AWS cloudformation 200 0.05s 0 retries] describeStacks({ StackName: '<name_serverless>-prod' })
Serverless: [AWS s3 200 0.036s 0 retries] listObjectsV2({ Bucket: '<deployment_bucket>',
Prefix: 'serverless/<name_serverless>/prod' })
Serverless: [AWS s3 403 0.029s 0 retries] headObject({ Bucket: '<deployment_bucket>',
Key:
'serverless/<name_serverless>/prod/1598625007441-2020-08-28T14:30:07.441Z/compiled-cloudformation-template.json' })
Serverless: [AWS s3 403 0.03s 0 retries] headObject({ Bucket: '<deployment_bucket>',
Key:
'serverless/<name_serverless>/prod/1598625007441-2020-08-28T14:30:07.441Z/<name_serverless>.zip' })
Serverless Error ---------------------------------------
ServerlessError: Forbidden
at promise.catch.err (/usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:446:27)
at process._tickCallback (internal/process/next_tick.js:68:7)
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: linux
Node Version: 10.21.0
Framework Version: 1.80.0
Plugin Version: 3.8.1
SDK Version: 2.3.1
Components Version: 2.34.9
Serverless: [AWS lambda 200 0.061s 0 retries] getFunction({ FunctionName: '<name_serverless>-main-prod' })
Serverless: [AWS lambda 200 0.06s 0 retries] getFunction({ FunctionName: '<name_serverless>-test-prod' })
exited with code 1
the iam policy was generate by this website https://open-sl.github.io/serverless-permission-generator/
any help ?