FormidableLabs / terraform-aws-serverless

Infrastructure support for Serverless framework apps, done the right way
https://registry.terraform.io/modules/FormidableLabs/serverless/aws
MIT License
144 stars 19 forks source link

Features: Core IAM module, X-ray submodule #22

Closed ryan-roemer closed 5 years ago

ryan-roemer commented 5 years ago

Overview

This (massive) PR is intended to be the initial release of:

The companion reference application PR to review is: https://github.com/FormidableLabs/aws-lambda-serverless-reference/pull/7

Things I'd suggest to review (if all the files are too beastly):

Sample Integration

Basic, simplest integration is like this:

# Base `serverless` IAM support.
module "serverless" {
  source = "FormidableLabs/serverless/aws"

  region       = "${var.region}"
  service_name = "${var.service_name}"
  stage        = "${var.stage}"
}

# OPTION(Xray): Add X-ray support to lambda execution roles.
# **NOTE**: No explicit dependency on core, but it **is** needed.
module "serverless_xray" {
  source = "FormidableLabs/serverless/aws//modules/xray"

  region       = "${var.region}"
  service_name = "${var.service_name}"
  stage        = "${var.stage}"
}

Work

Completed:

In progress:

/cc @tptee @jasonwilson @kevinmstephens @mscottx88 @jjasonclark @ianwsperber

ryan-roemer commented 5 years ago

I'm merging so I can figure out how to publish, etc., but post-merge review most welcome!