Skip to content

Commit 3905436

Browse files
authored
Merge pull request #10 from terraform-google-modules/aaron-lane-0.12
0.12 support
2 parents 045cfc8 + c6161bb commit 3905436

File tree

23 files changed

+865
-169
lines changed

23 files changed

+865
-169
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.terraform
2+
terraform.tfstate.d
3+
*.pyc
4+
.kitchen

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,20 @@ and this project adheres to
99

1010
## [Unreleased]
1111

12+
## [1.0.0] - 2019-07-19
13+
14+
### Changed
15+
16+
- Supported version of Terraform is 0.12. [#3]
17+
1218
## [0.1.0] - 2019-05-16
1319

1420
### Added
1521

1622
- Initial release
1723

18-
[Unreleased]: https://github.com/terraform-google-modules/terraform-google-kms/compare/v0.1.0...HEAD
24+
[Unreleased]: https://github.com/terraform-google-modules/terraform-google-kms/compare/v1.0.0...HEAD
1925
[0.1.0]: https://github.com/terraform-google-modules/terraform-google-kms/releases/tag/v0.1.0
26+
[1.0.0]: https://github.com/terraform-google-modules/terraform-google-kms/releases/tag/v1.0.0
27+
28+
[#3]: https://github.com/terraform-google-modules/terraform-google-kms/pull/3

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ SHELL := /usr/bin/env bash
2121
# Docker build config variables
2222
CREDENTIALS_PATH ?= /cft/workdir/credentials.json
2323
DOCKER_ORG := gcr.io/cloud-foundation-cicd
24-
DOCKER_TAG_BASE_KITCHEN_TERRAFORM ?= 1.0.1
24+
DOCKER_TAG_BASE_KITCHEN_TERRAFORM ?= 2.3.0
2525
DOCKER_REPO_BASE_KITCHEN_TERRAFORM := ${DOCKER_ORG}/cft/kitchen-terraform:${DOCKER_TAG_BASE_KITCHEN_TERRAFORM}
2626

2727
# All is the first target in the file so it will get picked up when you just run 'make' on its own

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# terraform-google-kms
1+
# Google KMS Terraform Module
22

33
Simple Cloud KMS module that allows managing a keyring, zero or more keys in the keyring, and IAM role bindings on individual keys.
44

@@ -8,6 +8,13 @@ The resources/services/activations/deletions that this module will create/trigge
88
- Create zero or more keys in the keyring
99
- Create IAM role bindings for owners, encrypters, decrypters
1010

11+
## Compatibility
12+
13+
This module is meant for use with Terraform 0.12. If you haven't
14+
[upgraded][terraform-0.12-upgrade] and need a Terraform 0.11.x-compatible
15+
version of this module, the last released version intended for Terraform 0.11.x
16+
is [0.1.0][v0.1.0].
17+
1118
## Usage
1219

1320
Basic usage of this module is as follows:
@@ -44,7 +51,7 @@ These sections describe requirements for using this module.
4451

4552
The following dependencies must be available:
4653

47-
- [Terraform][terraform] v0.11
54+
- [Terraform][terraform] v0.12
4855
- [Terraform Provider for GCP][terraform-provider-gcp] plugin v2.0
4956

5057
### Service Account

examples/simple_example/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ provider "google" {
2121
module "kms" {
2222
source = "../.."
2323

24-
project_id = "${var.project_id}"
25-
bucket_name = "${var.bucket_name}"
24+
project_id = var.project_id
25+
keyring = var.keyring
26+
location = "global"
2627
}
28+

examples/simple_example/outputs.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
output "bucket_name" {
18-
description = "The name of the bucket."
19-
value = "${module.kms.bucket_name}"
17+
output "keyring" {
18+
description = "The name of the keyring."
19+
value = module.kms.keyring_name
2020
}
21+

examples/simple_example/variables.tf

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,18 @@
1515
*/
1616

1717
variable "project_id" {
18+
type = string
1819
description = "The ID of the project in which to provision resources."
19-
type = "string"
2020
}
2121

22-
variable "bucket_name" {
23-
description = "The name of the bucket to create."
24-
type = "string"
22+
variable "location" {
23+
type = string
24+
description = "Location for the keyring."
25+
26+
default = "global"
27+
}
28+
29+
variable "keyring" {
30+
type = string
31+
description = "Keyring name."
2532
}

helpers/combine_docfiles.py

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)