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
For the Secret Manager services to deploy, the following APIs should be enabled in your project:
iam.googleapis.com
secretmanager.googleapis.com
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.
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
From the module directory, run:
cd test && TF_VAR_owner=$(id -nu) go test