binxio / terraform-google-kms

Generic google KMS module for Terraform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module terraform-google-kms

Creating a new release

After adding your changed and committing the code to GIT, you will need to add a new tag.

git tag vx.x.x
git push --tag

If your changes might be breaking current implementations of this module, make sure to bump the major version up by 1.

If you want to see which tags are already there, you can use the following command:

git tag --list

Required APIs

For the VPC services to deploy, the following APIs should be enabled in your project:

  • iam.googleapis.com
  • cloudkms.googleapis.com

Testing

This module comes with terratest scripts for both unit testing and integration testing. A Makefile is provided to run the tests using docker, but you can also run the tests directly on your machine if you have terratest installed.

Run with make

Make sure to set GOOGLE_CLOUD_PROJECT to the right project and GOOGLE_CREDENTIALS to the right credentials json file You can now run the tests with docker:

make test

Run locally

From the module directory, run:

cd test && TF_VAR_owner=$(id -nu) go test

About

Generic google KMS module for Terraform

License:MIT License


Languages

Language:HCL 50.9%Language:Go 36.8%Language:Makefile 7.9%Language:Smarty 4.3%