mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Currently, updating function code with `sls deploy --function` fails with `The role defined for the function cannot be assumed by Lambda.` if using a custom role with an autogenerated `RoleName`. So I think it would be good to add a notice about that to the docs.
Read this on the main serverless docs site
Serverless Infrastructure Providers
Under the hood, the serverless framework is deploying your code to a cloud provider like AWS, Microsoft Azure, Apache OpenWhisk or Google Cloud functions.
Connecting your provider
To deploy functions, specify your provider in your service's serverless.yml file under the provider key and make sure your provider credentials are setup on your machine or CI/CD system.
# serverless.yml
service: my-service-name
provider:
name: aws