mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Since #6531 improved how we manage API Gateway's CloudWatch log IAM role it's now simpler to allow hardcoding a role ARN in the YAML config. This addresses [this comment](https://github.com/serverless/serverless/pull/6591#discussion_r321010087) and unblocks anyone who needs to keep the IAM permissions for an app scoped to just that app. Example usage: provider: name: aws logs: restApi: role: arn:aws:iam::123456789:role/a-service-with-all-necessary-permissions
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, Google Cloud Platform, Apache OpenWhisk, Cloudflare Workers, or a Kubernetes-based solution like Kubeless. Click on your provider for detailed Serverless Framework CLI user guides and references.
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