From 4839dfc2bfeec24271722c583e48332d0eacd2e7 Mon Sep 17 00:00:00 2001 From: Amanda Karina Lopes de Oliveira Date: Mon, 17 Jul 2023 13:09:40 -0300 Subject: [PATCH] Adds public source/version in sub-modules --- modules/secure-cloud-function-core/README.md | 3 ++- modules/secure-cloud-function-security/README.md | 3 ++- modules/secure-cloud-function/README.md | 7 ++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/secure-cloud-function-core/README.md b/modules/secure-cloud-function-core/README.md index 73ac72ee..ce0c88fd 100644 --- a/modules/secure-cloud-function-core/README.md +++ b/modules/secure-cloud-function-core/README.md @@ -17,6 +17,7 @@ The resources/services/activations/deletions that this module will create/trigge ```hcl module "secure_cloud_function_core" { source = "GoogleCloudPlatform/cloud-functions/google//modules/secure-cloud-function-core" + version = "~> 0.3" function_name = function_description = @@ -50,7 +51,7 @@ module "secure_cloud_function_core" { | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| -| bucket\_cors | Configuration of CORS for bucket with structure as defined in https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket#cors. | `any` |
[
{
"max_age_seconds": 0,
"method": [
"GET"
],
"origin": [
"https://*.cloud.google.com",
"https://*.corp.google.com",
"https://*.corp.google.com:*",
"https://*.cloud.google",
"https://*.byoid.goog"
],
"response_header": []
}
]
| no | +| bucket\_cors | Configuration of CORS for bucket with structure as defined in . | `any` |
[
{
"max_age_seconds": 0,
"method": [
"GET"
],
"origin": [
"https://*.cloud.google.com",
"https://*.corp.google.com",
"https://*.corp.google.com:*",
"https://*.cloud.google",
"https://*.byoid.goog"
],
"response_header": []
}
]
| no | | bucket\_lifecycle\_rules | The bucket's Lifecycle Rules configuration. |
list(object({
# Object with keys:
# - type - The type of the action of this Lifecycle Rule. Supported values: Delete and SetStorageClass.
# - storage_class - (Required if action type is SetStorageClass) The target Storage Class of objects affected by this Lifecycle Rule.
action = any

# Object with keys:
# - age - (Optional) Minimum age of an object in days to satisfy this condition.
# - created_before - (Optional) Creation date of an object in RFC 3339 (e.g. 2017-06-13) to satisfy this condition.
# - with_state - (Optional) Match to live and/or archived objects. Supported values include: "LIVE", "ARCHIVED", "ANY".
# - matches_storage_class - (Optional) Storage Class of objects to satisfy this condition. Supported values include: MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD, DURABLE_REDUCED_AVAILABILITY.
# - matches_prefix - (Optional) One or more matching name prefixes to satisfy this condition.
# - matches_suffix - (Optional) One or more matching name suffixes to satisfy this condition
# - num_newer_versions - (Optional) Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition.
condition = any
}))
|
[
{
"action": {
"type": "Delete"
},
"condition": {
"age": 0,
"days_since_custom_time": 0,
"days_since_noncurrent_time": 0,
"num_newer_versions": 3,
"with_state": "ARCHIVED"
}
}
]
| no | | build\_environment\_variables | A set of key/value environment variable pairs to be used when building the Function. | `map(string)` | `{}` | no | | encryption\_key | The KMS Key to Encrypt Event Arc, source Bucket, docker repository. | `string` | n/a | yes | diff --git a/modules/secure-cloud-function-security/README.md b/modules/secure-cloud-function-security/README.md index ece031ee..83d1c8ad 100644 --- a/modules/secure-cloud-function-security/README.md +++ b/modules/secure-cloud-function-security/README.md @@ -31,7 +31,8 @@ to be used by Cloud Function (2nd Gen). ```hcl module "cloud_function_security" { - source = "../secure-cloud-function-security" + source = "GoogleCloudPlatform/cloud-functions/google//modules/secure-cloud-serverless-security" + version = "~> 0.3" kms_project_id = location = diff --git a/modules/secure-cloud-function/README.md b/modules/secure-cloud-function/README.md index 66fa0154..2d2107ef 100644 --- a/modules/secure-cloud-function/README.md +++ b/modules/secure-cloud-function/README.md @@ -59,8 +59,9 @@ The resources/services/activations/deletions that this module will create/trigge Basic usage of this module is as follows: ```hcl -module "secure_cloud_run" { - source = "../../modules/secure-cloud-function" +module "secure_cloud_function" { + source = "GoogleCloudPlatform/cloud-functions/google//modules/secure-cloud-function" + version = "~> 0.3" function_name = function_description = @@ -94,7 +95,7 @@ module "secure_cloud_run" { |------|-------------|------|---------|:--------:| | all\_traffic\_on\_latest\_revision | Timeout for each request. | `bool` | `true` | no | | available\_memory\_mb | The amount of memory in megabytes allotted for the function to use. | `string` | `"256Mi"` | no | -| bucket\_cors | Configuration of CORS for bucket with structure as defined in https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket#cors. | `any` |
[
{
"max_age_seconds": 0,
"method": [
"GET"
],
"origin": [
"https://*.cloud.google.com",
"https://*.corp.google.com",
"https://*.corp.google.com:*",
"https://*.cloud.google",
"https://*.byoid.goog"
],
"response_header": []
}
]
| no | +| bucket\_cors | Configuration of CORS for bucket with structure as defined in . | `any` |
[
{
"max_age_seconds": 0,
"method": [
"GET"
],
"origin": [
"https://_.cloud.google.com",
"https://_.corp.google.com",
"https://_.corp.google.com:_",
"https://_.cloud.google",
"https://_.byoid.goog"
],
"response_header": []
}
]
| no | | bucket\_lifecycle\_rules | The bucket's Lifecycle Rules configuration. |
list(object({
# Object with keys:
# - type - The type of the action of this Lifecycle Rule. Supported values: Delete and SetStorageClass.
# - storage_class - (Required if action type is SetStorageClass) The target Storage Class of objects affected by this Lifecycle Rule.
action = any

# Object with keys:
# - age - (Optional) Minimum age of an object in days to satisfy this condition.
# - created_before - (Optional) Creation date of an object in RFC 3339 (e.g. 2017-06-13) to satisfy this condition.
# - with_state - (Optional) Match to live and/or archived objects. Supported values include: "LIVE", "ARCHIVED", "ANY".
# - matches_storage_class - (Optional) Storage Class of objects to satisfy this condition. Supported values include: MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD, DURABLE_REDUCED_AVAILABILITY.
# - matches_prefix - (Optional) One or more matching name prefixes to satisfy this condition.
# - matches_suffix - (Optional) One or more matching name suffixes to satisfy this condition
# - num_newer_versions - (Optional) Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition.
condition = any
}))
|
[
{
"action": {
"type": "Delete"
},
"condition": {
"age": 0,
"days_since_custom_time": 0,
"days_since_noncurrent_time": 0,
"num_newer_versions": 3,
"with_state": "ARCHIVED"
}
}
]
| no | | build\_environment\_variables | A set of key/value environment variable pairs to be used when building the Function. | `map(string)` | `{}` | no | | connector\_name | The name for the connector to be created. | `string` | `"serverless-vpc-connector"` | no |