Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rpstreef/tf-cicd-lambda
Terraform AWS CI/CD module for AWS Lambda compute
https://github.com/rpstreef/tf-cicd-lambda
aws aws-lambda cicd codedeploy codepipeline lambda terraform terraform-module
Last synced: 1 day ago
JSON representation
Terraform AWS CI/CD module for AWS Lambda compute
- Host: GitHub
- URL: https://github.com/rpstreef/tf-cicd-lambda
- Owner: rpstreef
- License: apache-2.0
- Created: 2020-02-29T04:21:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-03-02T04:54:25.000Z (over 4 years ago)
- Last Synced: 2023-12-12T04:29:20.819Z (11 months ago)
- Topics: aws, aws-lambda, cicd, codedeploy, codepipeline, lambda, terraform, terraform-module
- Language: HCL
- Size: 55.7 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform AWS CI/CD module for AWS Lambda compute
## About:
This repo sets up an AWS CodePipeline CI/CD for your AWS Lambda/Lambda-layer code. It does so by using a [Gulp](https://gulpjs.com/) script that runs AWS CLI commands.
The Terraform Lambda and Lambda-layer ``resources`` should not be checking code versions to make sure there are no re-deployments done when you run Terraform ``apply``.
## How to use:
Supply the github details, recommended to not set the Github OAuth token in your ``tfvars`` file but instead enter it at the command line.
The S3 backed state storage is AES encrypted, so your Github OAuth token should be safe there.``lambda_function_names`` variable expects a comma separated list of all your lambda function names.
```terraform
module "cicd" {
source = "github.com/rpstreef/tf-cicd-lambda"resource_tag_name = var.resource_tag_name
namespace = var.namespace
region = var.regiongithub_token = var.github_token
github_owner = var.github_owner
github_repo = var.github_repo
poll_source_changes = var.poll_source_changeslambda_layer_name = aws_lambda_layer_version._.layer_name
lambda_function_names = "${module.identity.lambda_name},${module.user.lambda_names}"
}
```## Changelog
### v1.0
- Initial release