Skip to content

Commit a000def

Browse files
authored
Merge branch 'main' into main
2 parents dc0cdde + 6ea3139 commit a000def

File tree

8 files changed

+24
-7
lines changed

8 files changed

+24
-7
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@ The format is based on
77
and this project adheres to
88
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
99

10+
## [10.0.2](https://github.com/terraform-google-modules/terraform-google-cloud-storage/compare/v10.0.1...v10.0.2) (2025-05-19)
11+
12+
13+
### Bug Fixes
14+
15+
* Making retention_policy is_locked as optional field ([#394](https://github.com/terraform-google-modules/terraform-google-cloud-storage/issues/394)) ([e823780](https://github.com/terraform-google-modules/terraform-google-cloud-storage/commit/e823780aac5d8c7268f7e930f59d76798485c6e0))
16+
17+
## [10.0.1](https://github.com/terraform-google-modules/terraform-google-cloud-storage/compare/v10.0.0...v10.0.1) (2025-03-18)
18+
19+
20+
### Bug Fixes
21+
22+
* Update apphub service_uri to be available after apply ([#390](https://github.com/terraform-google-modules/terraform-google-cloud-storage/issues/390)) ([66e472b](https://github.com/terraform-google-modules/terraform-google-cloud-storage/commit/66e472b56cd21b45a3939883a66ccfcf5ec1b9ed))
23+
1024
## [10.0.0](https://github.com/terraform-google-modules/terraform-google-cloud-storage/compare/v9.1.0...v10.0.0) (2025-03-14)
1125

1226

examples/simple_bucket/main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,7 @@ module "bucket" {
5555
}]
5656

5757
autoclass = true
58+
retention_policy = {
59+
retention_period = 2
60+
}
5861
}

metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
source:
2525
repo: https://github.com/terraform-google-modules/terraform-google-cloud-storage.git
2626
sourceType: git
27-
version: 10.0.0
27+
version: 10.0.2
2828
actuationTool:
2929
flavor: Terraform
3030
version: ">= 0.13"

modules/simple_bucket/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Functional examples are included in the
5454
| name | The name of the bucket. | `string` | n/a | yes |
5555
| project\_id | The ID of the project to create the bucket in. | `string` | n/a | yes |
5656
| public\_access\_prevention | Prevents public access to a bucket. Acceptable values are inherited or enforced. If inherited, the bucket uses public access prevention, only if the bucket is subject to the public access prevention organization policy constraint. | `string` | `"inherited"` | no |
57-
| retention\_policy | Configuration of the bucket's data retention policy for how long objects in the bucket should be retained. | <pre>object({<br> is_locked = bool<br> retention_period = number<br> })</pre> | `null` | no |
57+
| retention\_policy | Configuration of the bucket's data retention policy for how long objects in the bucket should be retained. | <pre>object({<br> is_locked = optional(bool)<br> retention_period = number<br> })</pre> | `null` | no |
5858
| soft\_delete\_policy | Soft delete policies to apply. Format is the same as described in provider documentation https://www.terraform.io/docs/providers/google/r/storage_bucket.html#nested_soft_delete_policy | <pre>object({<br> retention_duration_seconds = optional(number)<br> })</pre> | `{}` | no |
5959
| storage\_class | The Storage Class of the new bucket. | `string` | `null` | no |
6060
| versioning | While set to true, versioning is fully enabled for this bucket. | `bool` | `true` | no |

modules/simple_bucket/metadata.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
repo: https://github.com/terraform-google-modules/terraform-google-cloud-storage.git
2626
sourceType: git
2727
dir: /modules/simple_bucket
28-
version: 10.0.0
28+
version: 10.0.2
2929
actuationTool:
3030
flavor: Terraform
3131
version: ">= 0.13"
@@ -100,7 +100,7 @@ spec:
100100
description: Configuration of the bucket's data retention policy for how long objects in the bucket should be retained.
101101
varType: |-
102102
object({
103-
is_locked = bool
103+
is_locked = optional(bool)
104104
retention_period = number
105105
})
106106
- name: custom_placement_config

modules/simple_bucket/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ variable "autoclass" {
7878
variable "retention_policy" {
7979
description = "Configuration of the bucket's data retention policy for how long objects in the bucket should be retained."
8080
type = object({
81-
is_locked = bool
81+
is_locked = optional(bool)
8282
retention_period = number
8383
})
8484
default = null

modules/simple_bucket/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ terraform {
2525
}
2626

2727
provider_meta "google" {
28-
module_name = "blueprints/terraform/terraform-google-cloud-storage:simple_bucket/v10.0.0"
28+
module_name = "blueprints/terraform/terraform-google-cloud-storage:simple_bucket/v10.0.2"
2929
}
3030

3131
}

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ terraform {
3030
}
3131

3232
provider_meta "google" {
33-
module_name = "blueprints/terraform/terraform-google-cloud-storage/v10.0.0"
33+
module_name = "blueprints/terraform/terraform-google-cloud-storage/v10.0.2"
3434
}
3535

3636
}

0 commit comments

Comments
 (0)