This main module enables resources managed by the Serverless Framework to be securely deployed to AWS. Only the least amount of permissions are granted to the individual IAM roles used by Serverless. Additional permissions can be granted by attaching role policies to the created roles.
No requirements.
No providers.
Name | Source | Version |
---|---|---|
apigateway_role | ./modules/apigateway-role | n/a |
cloudformation_role | ./modules/cloudformation-role | n/a |
deployment_bucket | ./modules/deployment-bucket | n/a |
function_roles | ./modules/function-roles | n/a |
No resources.
Name | Description | Type | Default | Required |
---|---|---|---|---|
aws_account_id | AWS account ID. | string |
n/a | yes |
aws_region | AWS region to deploy resources to. | string |
n/a | yes |
deployment_bucket_name | The name of the S3 bucket that will be used by Serverless deployments. | string |
n/a | yes |
function_names | The list of the un-prefixed function names that will be defined later on. This is needed to allow CF to pass the roles to these functions. | list(string) |
n/a | yes |
hosted_zone_ids | List of hosted zone IDs that will be managed by this deployment. | list(string) |
[] |
no |
resource_prefix | Prefix to use when naming resources, such as log groups and IAM roles. | string |
n/a | yes |
s3_logging_bucket_name | Name of the S3 bucket which should receive the S3 logs. | string |
n/a | yes |
sls_service_name | The name of the service as defined by the Serverless Framework. | string |
n/a | yes |
sls_stage | The name of the stage that is being deployed by the Serverless Framework. | string |
n/a | yes |
tags | Common tag pairs to apply to the resources. | map(string) |
{} |
no |
Name | Description |
---|---|
apigateway_role_arn | ARN of the API Gateway IAM role. |
cloudformation_role_arn | ARN of the CloudFormation IAM role. |
deployment_bucket_arn | ARN of the Serverless deployment bucket. |
function_roles | Lambda function role ARNs. |
Module was created by Jessie Hernandez
.