Skip to content

lanmalkieri/terragit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Terragit

This is a lambda function designed around reading a version.txt file from a terraform repo (or any repo really) and when a commit hits master, tagging that commit with whatever is in version.txt. This was designed for my use for Terraform Modules tagging, but it could really work for whatever.

Required Lambda Environment Variables

  • git_api_url: URL to the API for github with your repo's specific information
    • EXAMPLE: https//api.github.com/repos/dummyorg/terraform-modules
  • slack_hook_url: URL For Slack Hook
  • repo_name: The name of the repo to look for, like lanmalkieri/terraform-modules

AWS Secret Manager

Follow these instructions to setup github/aws/sns integrations.

Create your lambda function using this script.

Magic.

Make sure in your terraform-modules repo you are using version.txt files in each of your modules/blueprints, and that the top line of the file looks like: name: 1.0.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages