Skip to content

Commit 3414c6a

Browse files
authored
Merge branch 'master' into aaron-lane-project-id
2 parents db8a90b + 53e63b2 commit 3414c6a

File tree

96 files changed

+267
-1174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+267
-1174
lines changed

CHANGELOG.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this
66
project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
9+
10+
## [1.4.0] - 2020-01-08
11+
12+
### Added
13+
14+
- `access_config` variable on the `umig` submodule. [#57]
15+
16+
### Changed
17+
18+
- The required Terraform provider versions are enforced. [#52]
19+
920
## [1.3.0] - 2019-12-09
1021

1122
### Added
@@ -16,7 +27,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
1627

1728
### Added
1829

19-
- Support for public IPs. Added `access_config` variable. [#43]
30+
- `access_config` variable on the `instance_template` and `preemptible_and_regular_instance_templates` submodules. [#43]
2031

2132
### Fixed
2233

@@ -58,7 +69,8 @@ project adheres to [Semantic Versioning](http://semver.org/).
5869
- `instance_template`, `mig`, and `umig` modules
5970
- examples, basic tests and fixtures for all modules
6071

61-
[Unreleased]: https://github.com/terraform-google-modules/terraform-google-vm/compare/v1.3.0...HEAD
72+
[Unreleased]: https://github.com/terraform-google-modules/terraform-google-vm/compare/v1.4.0...HEAD
73+
[1.4.0]: https://github.com/terraform-google-modules/terraform-google-vm/compare/v1.3.0...v1.4.0
6274
[1.3.0]: https://github.com/terraform-google-modules/terraform-google-vm/compare/v1.2.0...v1.3.0
6375
[1.2.0]: https://github.com/terraform-google-modules/terraform-google-vm/compare/v1.1.1...v1.2.0
6476
[1.1.1]: https://github.com/terraform-google-modules/terraform-google-vm/compare/v1.1.0...v1.1.1
@@ -77,3 +89,5 @@ project adheres to [Semantic Versioning](http://semver.org/).
7789
[#42]: https://github.com/terraform-google-modules/terraform-google-vm/pull/42
7890
[#43]: https://github.com/terraform-google-modules/terraform-google-vm/pull/43
7991
[#44]: https://github.com/terraform-google-modules/terraform-google-vm/pull/44
92+
[#52]: https://github.com/terraform-google-modules/terraform-google-vm/pull/52
93+
[#57]: https://github.com/terraform-google-modules/terraform-google-vm/pull/57

examples/compute_instance/simple/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ This is a simple, minimal example of how to use the compute_instance module
77

88
| Name | Description | Type | Default | Required |
99
|------|-------------|:----:|:-----:|:-----:|
10-
| credentials\_path | The path to the GCP credentials JSON file | string | n/a | yes |
1110
| num\_instances | Number of instances to create | string | n/a | yes |
1211
| project\_id | The GCP project to use for integration tests | string | n/a | yes |
13-
| region | The GCP region to create and test resources in | string | n/a | yes |
12+
| region | The GCP region to create and test resources in | string | `"us-central1"` | no |
1413
| service\_account | Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template.html#service_account. | object | `"null"` | no |
1514
| subnetwork | The subnetwork to host the compute instances in | string | n/a | yes |
1615

examples/compute_instance/simple/main.tf

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

1717
provider "google" {
18-
credentials = file(var.credentials_path)
19-
project = var.project_id
20-
region = var.region
21-
version = "~> 2.7.0"
18+
19+
project = var.project_id
20+
region = var.region
21+
version = "~> 2.7.0"
2222
}
2323

2424
module "instance_template" {

examples/compute_instance/simple/variables.tf

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018 Google LLC
2+
* Copyright 2019 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,16 +14,17 @@
1414
* limitations under the License.
1515
*/
1616

17-
variable "credentials_path" {
18-
description = "The path to the GCP credentials JSON file"
19-
}
17+
2018

2119
variable "project_id" {
2220
description = "The GCP project to use for integration tests"
21+
type = string
2322
}
2423

2524
variable "region" {
2625
description = "The GCP region to create and test resources in"
26+
type = string
27+
default = "us-central1"
2728
}
2829

2930
variable "subnetwork" {
@@ -34,6 +35,8 @@ variable "num_instances" {
3435
description = "Number of instances to create"
3536
}
3637

38+
39+
3740
variable "service_account" {
3841
default = null
3942
type = object({

examples/instance_template/additional_disks/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ instance templates with additional persistent disks.
88

99
| Name | Description | Type | Default | Required |
1010
|------|-------------|:----:|:-----:|:-----:|
11-
| credentials\_path | The path to the GCP credentials JSON file | string | n/a | yes |
1211
| project\_id | The GCP project to use for integration tests | string | n/a | yes |
13-
| region | The GCP region to create and test resources in | string | n/a | yes |
12+
| region | The GCP region to create and test resources in | string | `"us-central1"` | no |
1413
| service\_account | Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template.html#service_account. | object | `"null"` | no |
1514
| subnetwork | The name of the subnetwork create this instance in. | string | `""` | no |
1615

examples/instance_template/additional_disks/main.tf

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

1717
provider "google" {
18-
credentials = file(var.credentials_path)
19-
project = var.project_id
20-
region = var.region
21-
version = "~> 2.7.0"
18+
19+
project = var.project_id
20+
region = var.region
21+
version = "~> 2.7.0"
2222
}
2323

2424
module "instance_template" {

examples/instance_template/additional_disks/variables.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018 Google LLC
2+
* Copyright 2019 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,16 +14,17 @@
1414
* limitations under the License.
1515
*/
1616

17-
variable "credentials_path" {
18-
description = "The path to the GCP credentials JSON file"
19-
}
17+
2018

2119
variable "project_id" {
2220
description = "The GCP project to use for integration tests"
21+
type = string
2322
}
2423

2524
variable "region" {
2625
description = "The GCP region to create and test resources in"
26+
type = string
27+
default = "us-central1"
2728
}
2829

2930
variable "subnetwork" {

examples/instance_template/simple/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ This is a simple, minimal example of how to use the instance_template module.
77

88
| Name | Description | Type | Default | Required |
99
|------|-------------|:----:|:-----:|:-----:|
10-
| credentials\_path | The path to the GCP credentials JSON file | string | n/a | yes |
1110
| labels | Labels, provided as a map | map(string) | n/a | yes |
1211
| project\_id | The GCP project to use for integration tests | string | n/a | yes |
13-
| region | The GCP region to create and test resources in | string | n/a | yes |
12+
| region | The GCP region to create and test resources in | string | `"us-central1"` | no |
1413
| service\_account | Service account to attach to the instance. See https://www.terraform.io/docs/providers/google/r/compute_instance_template.html#service_account. | object | `"null"` | no |
1514
| subnetwork | The name of the subnetwork create this instance in. | string | `""` | no |
1615
| tags | Network tags, provided as a list | list(string) | n/a | yes |

examples/instance_template/simple/main.tf

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

1717
provider "google" {
18-
credentials = file(var.credentials_path)
19-
project = var.project_id
20-
region = var.region
21-
version = "~> 2.7.0"
18+
19+
project = var.project_id
20+
region = var.region
21+
version = "~> 2.7.0"
2222
}
2323

2424
resource "google_compute_address" "ip_address" {

examples/instance_template/simple/variables.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018 Google LLC
2+
* Copyright 2019 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,16 +14,17 @@
1414
* limitations under the License.
1515
*/
1616

17-
variable "credentials_path" {
18-
description = "The path to the GCP credentials JSON file"
19-
}
17+
2018

2119
variable "project_id" {
2220
description = "The GCP project to use for integration tests"
21+
type = string
2322
}
2423

2524
variable "region" {
2625
description = "The GCP region to create and test resources in"
26+
type = string
27+
default = "us-central1"
2728
}
2829

2930
variable "subnetwork" {

0 commit comments

Comments
 (0)