Add bucket_create to modules/gcs (#2827)

* Add `bucket_create` to `modules/gcs`

* Create local with bucket name

* Update variable description

* Fix bucket output

* Fix tests

* Fix tests

* Bump OpenTofu to 1.9.0 (needed for multi-var validations)
This commit is contained in:
Julio Castillo
2025-01-21 23:48:36 +01:00
committed by GitHub
parent bb1325403e
commit 8a2320311d
124 changed files with 358 additions and 200 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 2023 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
# limitations under the License.
values:
module.bucket.google_storage_bucket.bucket:
module.bucket.google_storage_bucket.bucket[0]:
# encryption: __missing__
# - default_kms_key_name:
name: test-my-bucket

View File

@@ -1,4 +1,4 @@
# Copyright 2024 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
# limitations under the License.
values:
module.bucket.google_storage_bucket.bucket:
module.bucket.google_storage_bucket.bucket[0]:
location: EU
name: test-my-bucket
project: project-id

View File

@@ -1,4 +1,4 @@
# Copyright 2024 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
# limitations under the License.
values:
module.bucket.google_storage_bucket.bucket:
module.bucket.google_storage_bucket.bucket[0]:
cors: []
custom_placement_config: []
default_event_based_hold: null

View File

@@ -1,4 +1,4 @@
# Copyright 2024 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
# limitations under the License.
values:
module.bucket.google_storage_bucket.bucket:
module.bucket.google_storage_bucket.bucket[0]:
cors: []
custom_placement_config: []
default_event_based_hold: null

View File

@@ -1,4 +1,4 @@
# Copyright 2024 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
# limitations under the License.
values:
module.bucket.google_storage_bucket.bucket:
module.bucket.google_storage_bucket.bucket[0]:
cors: []
custom_placement_config: []
default_event_based_hold: null

View File

@@ -1,4 +1,4 @@
# Copyright 2023 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
# limitations under the License.
values:
module.bucket.google_storage_bucket.bucket:
module.bucket.google_storage_bucket.bucket[0]:
lifecycle_rule:
- action:
- storage_class: STANDARD

View File

@@ -1,4 +1,4 @@
# Copyright 2024 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
# limitations under the License.
values:
module.bucket.google_storage_bucket.bucket:
module.bucket.google_storage_bucket.bucket[0]:
autoclass: []
cors: []
custom_placement_config: []

View File

@@ -1,4 +1,4 @@
# Copyright 2023 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -15,7 +15,7 @@
values:
module.bucket-gcs-notification.google_pubsub_topic.topic[0]: {}
module.bucket-gcs-notification.google_pubsub_topic_iam_binding.binding[0]: {}
module.bucket-gcs-notification.google_storage_bucket.bucket:
module.bucket-gcs-notification.google_storage_bucket.bucket[0]:
name: test-my-bucket
project: project-id
module.bucket-gcs-notification.google_storage_notification.notification[0]:

View File

@@ -1,4 +1,4 @@
# Copyright 2023 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
# limitations under the License.
values:
module.bucket.google_storage_bucket.bucket:
module.bucket.google_storage_bucket.bucket[0]:
name: test-my-bucket
project: project-id
module.bucket.google_storage_bucket_object.objects["sample-data"]:

View File

@@ -1,4 +1,4 @@
# Copyright 2023 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
# limitations under the License.
values:
module.bucket.google_storage_bucket.bucket:
module.bucket.google_storage_bucket.bucket[0]:
logging:
- log_bucket: log-bucket
name: test-my-bucket

View File

@@ -1,4 +1,4 @@
# Copyright 2024 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
# limitations under the License.
values:
module.bucket.google_storage_bucket.bucket:
module.bucket.google_storage_bucket.bucket[0]:
autoclass: []
cors: []
custom_placement_config: []

View File

@@ -1,4 +1,4 @@
# Copyright 2024 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
# limitations under the License.
values:
module.bucket.google_storage_bucket.bucket:
module.bucket.google_storage_bucket.bucket[0]:
autoclass: []
cors: []
custom_placement_config: []