serverless

FormidableLabs/serverless/aws

Terraform Module HCL AWS

Infrastructure support for Serverless framework apps, done the right way

Install
module "serverless" {
source = "FormidableLabs/serverless/aws"
version = "1.0.0"
}
⭐ Source on GitHub 📦 Registry page
README

AWS Serverless Module ===================== [![Terraform][tf_img]][tf_site] [![Travis Status][trav_img]][trav_site] [![Maintenance Status][maintenance-image]](#maintenance-status) Get your [serverless][] framework application to AWS, the right way. Contents - Overview - Concepts - Modules - IAM Notes - Integration - Reference project - Module integration - AWS IAM group integration - Maintenance Status Overview Getting a [serverless][] application all the way to production in AWS correctly and securely can be quite challenging. In particular, things like: - Locking down IAM permissions to the minimum needed for different conceptual "roles" (e.g., admin, developer, ci). - Providing a scheme for different environments/stages (e.g., development, staging, production). ... lack reasonable guida

Inputs (15)
NameTypeDescriptionDefault
service_namestringName of service / application required
lambda_role_namestringName of a custom Lambda role to override the default Serverless one. The custom ""
iam_partitionstringThe IAM partition restriction for permissions (defaults to 'any partition')."*"
iam_account_idstringThe AWS account ID to limit to in IAM. Defaults to: current inferred account id.""
iam_stagestringThe IAM stage restriction for permissions. Wildcarding stage is useful for dynam""
tf_service_namestringThe unique name of service for Terraform resources. Defaults to: `tf-SERVICE_NAM""
sls_service_namestringThe service name from Serverless configuration. Defaults to: `sls-SERVICE_NAME`.""
regionstringThe deploy target region in AWS. Defaults to: current inferred region""
iam_regionstringThe IAM region restriction for permissions (defaults to 'any region')."*"
stagestringThe stage/environment to deploy to. Suggest: `sandbox`, `development`, `staging`"development"
role_developer_namestringDeveloper role name"developer"
role_ci_namestringContinuous Integration (CI) role name"ci"
opt_many_lambdasstringAllow all groups (incl developer, ci) to create and delete Lambdasfalse
role_admin_namestringAdministrator role name"admin"
opt_disable_groupsstringDo not create groups, only their policiesfalse
Outputs (9)
iam_policy_ci_arn
iam_group_developer_name
iam_group_ci_name
iam_policy_admin_arn
iam_policy_developer_arn
iam_policy_cd_lambdas_arn
lambda_role_arn
lambda_role_name
iam_group_admin_name
Resources (6)
aws_cloudformation_stackaws_iam_groupaws_iam_group_policy_attachmentaws_iam_policyaws_iam_roleaws_iam_role_policy_attachment
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud AWS
★ Stars142
Forks20
Total downloads58.3k
Inputs15
Outputs9
Resources6
Submodules3
LicenseMIT
NamespaceFormidableLabs
Updated