Skip to content

Commit bd2889d

Browse files
committed
Generate output types for redis module metadata.yaml
1 parent 75222fc commit bd2889d

File tree

1 file changed

+78
-83
lines changed

1 file changed

+78
-83
lines changed

metadata.yaml

Lines changed: 78 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
version: 11.0.1
2828
actuationTool:
2929
flavor: Terraform
30-
version: ">= 0.13"
30+
version: ">= 1.3"
3131
description: {}
3232
content:
3333
subBlueprints:
@@ -48,41 +48,81 @@ spec:
4848
location: examples/redis-cluster
4949
interfaces:
5050
variables:
51-
- name: alternative_location_id
52-
description: The alternative zone where the instance will be provisioned.
51+
- name: region
52+
description: The GCP region to use.
5353
varType: string
54-
- name: auth_enabled
55-
description: Indicates whether OSS Redis AUTH is enabled for the instance. If set to true AUTH is enabled on the instance.
54+
- name: project
55+
description: The ID of the project in which the resource belongs to.
56+
varType: string
57+
required: true
58+
- name: enable_apis
59+
description: Flag for enabling redis.googleapis.com in your project
5660
varType: bool
57-
defaultValue: false
61+
defaultValue: true
62+
- name: name
63+
description: The ID of the instance or a fully qualified identifier for the instance.
64+
varType: string
65+
required: true
5866
- name: authorized_network
5967
description: The full name of the Google Compute Engine network to which the instance is connected. If left unspecified, the default network will be used.
6068
varType: string
6169
connections:
62-
- source:
63-
source: github.com/terraform-google-modules/terraform-google-network//modules/vpc
64-
version: v9.1.0
65-
spec:
66-
outputExpr: network_name
67-
- name: connect_mode
68-
description: The connection mode of the Redis instance. Can be either DIRECT_PEERING or PRIVATE_SERVICE_ACCESS. The default connect mode if not provided is DIRECT_PEERING.
70+
- source:
71+
source: github.com/terraform-google-modules/terraform-google-network//modules/vpc
72+
version: v9.1.0
73+
spec:
74+
outputExpr: network_name
75+
- name: tier
76+
description: The service tier of the instance. https://cloud.google.com/memorystore/docs/redis/reference/rest/v1/projects.locations.instances#Tier
6977
varType: string
70-
- name: customer_managed_key
71-
description: Default encryption key to apply to the Redis instance. Defaults to null (Google-managed).
78+
defaultValue: STANDARD_HA
79+
- name: memory_size_gb
80+
description: Redis memory size in GiB. Defaulted to 1 GiB
81+
varType: number
82+
defaultValue: 1
83+
- name: replica_count
84+
description: The number of replicas. can
85+
varType: number
86+
- name: read_replicas_mode
87+
description: "Read replicas mode. https://cloud.google.com/memorystore/docs/redis/reference/rest/v1/projects.locations.instances#readreplicasmode "
88+
varType: string
89+
defaultValue: READ_REPLICAS_DISABLED
90+
- name: location_id
91+
description: The zone where the instance will be provisioned. If not provided, the service will choose a zone for the instance. For STANDARD_HA tier, instances will be created across two zones for protection against zonal failures. If [alternativeLocationId] is also provided, it must be different from [locationId].
92+
varType: string
93+
- name: alternative_location_id
94+
description: The alternative zone where the instance will be provisioned.
95+
varType: string
96+
- name: redis_version
97+
description: The version of Redis software.
7298
varType: string
99+
- name: redis_configs
100+
description: The Redis configuration parameters. See [more details](https://cloud.google.com/memorystore/docs/redis/reference/rest/v1/projects.locations.instances#Instance.FIELDS.redis_configs)
101+
varType: map(any)
102+
defaultValue: {}
73103
- name: display_name
74104
description: An arbitrary and optional user-provided name for the instance.
75105
varType: string
76-
- name: enable_apis
77-
description: Flag for enabling redis.googleapis.com in your project
78-
varType: bool
79-
defaultValue: true
106+
- name: reserved_ip_range
107+
description: The CIDR range of internal addresses that are reserved for this instance.
108+
varType: string
109+
- name: secondary_ip_range
110+
description: Optional. Additional IP range for node placement. Required when enabling read replicas on an existing instance.
111+
varType: string
112+
- name: connect_mode
113+
description: The connection mode of the Redis instance. Can be either DIRECT_PEERING or PRIVATE_SERVICE_ACCESS. The default connect mode if not provided is DIRECT_PEERING.
114+
varType: string
80115
- name: labels
81116
description: The resource labels to represent user provided metadata.
82117
varType: map(string)
83-
- name: location_id
84-
description: The zone where the instance will be provisioned. If not provided, the service will choose a zone for the instance. For STANDARD_HA tier, instances will be created across two zones for protection against zonal failures. If [alternativeLocationId] is also provided, it must be different from [locationId].
118+
- name: auth_enabled
119+
description: Indicates whether OSS Redis AUTH is enabled for the instance. If set to true AUTH is enabled on the instance.
120+
varType: bool
121+
defaultValue: false
122+
- name: transit_encryption_mode
123+
description: The TLS mode of the Redis instance, If not provided, TLS is enabled for the instance.
85124
varType: string
125+
defaultValue: SERVER_AUTHENTICATION
86126
- name: maintenance_policy
87127
description: The maintenance policy for an instance.
88128
varType: |-
@@ -95,56 +135,16 @@ spec:
95135
nanos = number
96136
})
97137
})
98-
- name: memory_size_gb
99-
description: Redis memory size in GiB. Defaulted to 1 GiB
100-
varType: number
101-
defaultValue: 1
102-
- name: name
103-
description: The ID of the instance or a fully qualified identifier for the instance.
138+
- name: customer_managed_key
139+
description: Default encryption key to apply to the Redis instance. Defaults to null (Google-managed).
104140
varType: string
105-
required: true
106141
- name: persistence_config
107142
description: The Redis persistence configuration parameters. https://cloud.google.com/memorystore/docs/redis/reference/rest/v1/projects.locations.instances#persistenceconfig
108143
varType: |-
109144
object({
110145
persistence_mode = string
111146
rdb_snapshot_period = string
112147
})
113-
- name: project
114-
description: The ID of the project in which the resource belongs to.
115-
varType: string
116-
required: true
117-
- name: read_replicas_mode
118-
description: "Read replicas mode. https://cloud.google.com/memorystore/docs/redis/reference/rest/v1/projects.locations.instances#readreplicasmode "
119-
varType: string
120-
defaultValue: READ_REPLICAS_DISABLED
121-
- name: redis_configs
122-
description: The Redis configuration parameters. See [more details](https://cloud.google.com/memorystore/docs/redis/reference/rest/v1/projects.locations.instances#Instance.FIELDS.redis_configs)
123-
varType: map(any)
124-
defaultValue: {}
125-
- name: redis_version
126-
description: The version of Redis software.
127-
varType: string
128-
- name: region
129-
description: The GCP region to use.
130-
varType: string
131-
- name: replica_count
132-
description: The number of replicas. can
133-
varType: number
134-
- name: reserved_ip_range
135-
description: The CIDR range of internal addresses that are reserved for this instance.
136-
varType: string
137-
- name: secondary_ip_range
138-
description: Optional. Additional IP range for node placement. Required when enabling read replicas on an existing instance.
139-
varType: string
140-
- name: tier
141-
description: The service tier of the instance. https://cloud.google.com/memorystore/docs/redis/reference/rest/v1/projects.locations.instances#Tier
142-
varType: string
143-
defaultValue: STANDARD_HA
144-
- name: transit_encryption_mode
145-
description: The TLS mode of the Redis instance, If not provided, TLS is enabled for the instance.
146-
varType: string
147-
defaultValue: SERVER_AUTHENTICATION
148148
outputs:
149149
- name: auth_string
150150
description: AUTH String set on the instance. This field will only be populated if auth_enabled is true.
@@ -154,13 +154,10 @@ spec:
154154
type: string
155155
- name: env_vars
156156
description: Exported environment variables
157-
type: [
158-
"object",
159-
{
160-
"REDIS_HOST": "string",
161-
"REDIS_PORT": "number"
162-
}
163-
]
157+
type:
158+
- object
159+
- REDIS_HOST: string
160+
REDIS_PORT: number
164161
- name: host
165162
description: The IP address of the instance.
166163
type: string
@@ -181,19 +178,14 @@ spec:
181178
type: string
182179
- name: server_ca_certs
183180
description: List of server CA certificates for the instance
184-
type: [
185-
"list",
186-
[
187-
"object",
188-
{
189-
"cert": "string",
190-
"create_time": "string",
191-
"expire_time": "string",
192-
"serial_number": "string",
193-
"sha1_fingerprint": "string"
194-
}
195-
]
196-
]
181+
type:
182+
- list
183+
- - object
184+
- cert: string
185+
create_time: string
186+
expire_time: string
187+
serial_number: string
188+
sha1_fingerprint: string
197189
requirements:
198190
roles:
199191
- level: Project
@@ -207,3 +199,6 @@ spec:
207199
- serviceconsumermanagement.googleapis.com
208200
- networkconnectivity.googleapis.com
209201
- compute.googleapis.com
202+
providerVersions:
203+
- source: hashicorp/google
204+
version: ">= 4.74.0, < 7"

0 commit comments

Comments
 (0)