-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.tfdoc.hcl
1045 lines (928 loc) · 37.1 KB
/
README.tfdoc.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
header {
image = "https://raw.githubusercontent.com/mineiros-io/brand/3bffd30e8bdbbde32c143e2650b2faa55f1df3ea/mineiros-primary-logo.svg"
url = "https://mineiros.io/?ref=terraform-google-cloud-run"
badge "build" {
image = "https://github.com/mineiros-io/terraform-google-cloud-run/workflows/Tests/badge.svg"
url = "https://github.com/mineiros-io/terraform-google-cloud-run/actions"
text = "Build Status"
}
badge "semver" {
image = "https://img.shields.io/github/v/tag/mineiros-io/terraform-google-cloud-run.svg?label=latest&sort=semver"
url = "https://github.com/mineiros-io/terraform-google-cloud-run/releases"
text = "GitHub tag (latest SemVer)"
}
badge "terraform" {
image = "https://img.shields.io/badge/Terraform-1.x-623CE4.svg?logo=terraform"
url = "https://github.com/hashicorp/terraform/releases"
text = "Terraform Version"
}
badge "tf-gcp-provider" {
image = "https://img.shields.io/badge/google-4-1A73E8.svg?logo=terraform"
url = "https://github.com/terraform-providers/terraform-provider-google/releases"
text = "Google Provider Version"
}
badge "slack" {
image = "https://img.shields.io/badge/slack-@mineiros--community-f32752.svg?logo=slack"
url = "https://mineiros.io/slack"
text = "Join Slack"
}
}
section {
title = "terraform-google-cloud-run"
toc = true
content = <<-END
A [Terraform](https://www.terraform.io) module for creating and managing
[Google Cloud Run](https://cloud.google.com/run/docs/) with optional
[Custom Domain Mapping](https://cloud.google.com/run/docs/mapping-custom-domains).
**_This module supports Terraform version 1
and is compatible with the Terraform Google Provider version 4._**
This module is part of our Infrastructure as Code (IaC) framework
that enables our users and customers to easily deploy and manage reusable,
secure, and production-grade cloud infrastructure.
END
section {
title = "Module Features"
content = <<-END
This module implements the following Terraform resources
- `google_cloud_run_service`
- `google_cloud_run_domain_mapping`
and supports additional features of the following modules:
- [mineiros-io/terraform-google-cloud-run-iam](https://github.com/mineiros-io/terraform-google-cloud-run-iam)
END
}
section {
title = "Getting Started"
content = <<-END
Most common usage of the module:
```hcl
module "terraform-google-cloud-run" {
source = "github.com/mineiros-io/terraform-google-cloud-run?ref=v0.2.1"
name = "example-name"
location = "us-central1"
template = {
spec = {
containers = [
{
image = "gcr.io/cloudrun/hello:latest"
}
]
}
}
}
```
END
}
section {
title = "Module Argument Reference"
content = <<-END
See [variables.tf] and [examples/] for details and use-cases.
END
section {
title = "Main Resource Configuration"
variable "name" {
required = true
type = string
description = <<-END
Name must be unique within a namespace, within a Cloud Run region.
Is required when creating resources. Name is primarily intended for
creation idempotence and configuration definition. Cannot be updated.
END
}
variable "location" {
required = true
type = string
description = <<-END
The location of the cloud run instance. eg `us-central1`.
END
}
variable "project" {
type = string
description = <<-END
The ID of the project in which the resource belongs. If it is not
provided, the provider project is used.
END
}
variable "autogenerate_revision_name" {
type = bool
description = <<-END
If set to `true`, the revision name (`template.metadata.name`) will be
omitted and autogenerated by Cloud Run. This cannot be set to true
while `template.metadata.name` is also set. (For legacy support, if
`template.metadata.name` is unset in state while this field is set to
`false`, the revision name will still autogenerate.).
END
}
variable "template" {
type = object(template)
default = {}
description = <<-END
A template holds the latest specification for the Revision to be
stamped out. The template references the container image, and may also
include labels and annotations that should be attached to the
Revision. To correlate a Revision, and/or to force a Revision to be
created when the spec doesn't otherwise change, a nonce label may be
provided in the template metadata.
END
attribute "metadata" {
type = object(metadata)
default = {}
description = <<-END
Optional metadata for this Revision, including labels and
annotations. Name will be generated by the Configuration. To set
minimum instances for this revision, use the
`autoscaling.knative.dev/minScale` annotation key. To set maximum
instances for this revision, use the
`autoscaling.knative.dev/maxScale` annotation key. To set Cloud SQL
connections for the revision, use the
`run.googleapis.com/cloudsql-instances` annotation key.
END
attribute "name" {
type = string
description = <<-END
Name must be unique within a namespace, within a Cloud Run region.
Is required when creating resources. Name is primarily intended
for creation idempotence and configuration definition. Cannot be
updated. More info:
http://kubernetes.io/docs/user-guide/identifiers#names
END
}
attribute "namespace" {
type = string
description = <<-END
In Cloud Run the namespace must be equal to either the project ID
or project number. It will default to the resource's project.
END
}
attribute "labels" {
type = map(string)
description = <<-END
Map of string keys and values that can be used to organize and
categorize (scope and select) objects. May match selectors of
replication controllers and routes. More info:
http://kubernetes.io/docs/user-guide/labels
END
}
attribute "annotations" {
type = map(string)
description = <<-END
Annotations is a key value map stored with a resource that may be
set by external tools to store and retrieve arbitrary metadata.
More info: http://kubernetes.io/docs/user-guide/annotations Note:
The Cloud Run API may add additional annotations that were not
provided in your config. If terraform plan shows a diff where a
server-side annotation is added, you can add it to your config or
apply the `lifecycle.ignore_changes` rule to the
`metadata.0.annotations` field.
END
}
}
attribute "spec" {
required = true
type = object(spec)
description = <<-END
RevisionSpec holds the desired state of the Revision (from the
client).
END
attribute "container_concurrency" {
type = number
description = <<-END
ContainerConcurrency specifies the maximum allowed in-flight
(concurrent) requests per container of the Revision. Values are:
- 0 thread-safe, the system should manage the max concurrency.
This is the default value.
- 1 not-thread-safe. Single concurrency
- 2-N thread-safe, max concurrency of N
END
}
attribute "timeout_seconds" {
type = number
description = <<-END
TimeoutSeconds holds the max duration the instance is allowed for
responding to a request.
END
}
attribute "service_account_name" {
type = string
description = <<-END
Email address of the IAM service account associated with the
revision of the service. The service account represents the
identity of the running revision, and determines what permissions
the revision has. If not provided, the revision will use the
project's default service account.
END
}
attribute "containers" {
required = true
type = list(container)
description = <<-END
Container defines the unit of execution for this Revision. In the
context of a Revision, we disallow a number of the fields of this
Container, including: name, ports, and volumeMounts. The runtime
contract is documented here: https://github.com/knative/serving/blob/master/docs/runtime-contract.md
END
attribute "args" {
type = list(string)
description = <<-END
Arguments to the entrypoint. The docker image's CMD is used if
this is not provided. Variable references `$(VAR_NAME)` are
expanded using the container's environment. If a variable cannot
be resolved, the reference in the input string will be unchanged.
The `$(VAR_NAME)` syntax can be escaped with a double `$$`, ie:
`$$(VAR_NAME)`. Escaped references will never be expanded,
regardless of whether the variable exists or not. More info:
https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
END
}
attribute "image" {
required = true
type = string
description = <<-END
Docker image name. This is most often a reference to a container
located in the container registry, such as
`gcr.io/cloudrun/helloMore` info:
https://kubernetes.io/docs/concepts/containers/images
END
}
attribute "command" {
type = list(string)
description = <<-END
Entrypoint array. Not executed within a shell. The docker
image's ENTRYPOINT is used if this is not provided. Variable
references `$(VAR_NAME)` are expanded using the container's
environment. If a variable cannot be resolved, the reference in
the input string will be unchanged. The `$(VAR_NAME)` syntax can
be escaped with a double `$$`, ie: `$$(VAR_NAME)`. Escaped
references will never be expanded, regardless of whether the
variable exists or not. More info:
https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
END
}
attribute "env" {
type = object(env)
default = {}
description = <<-END
List of environment variables to set in the container.
END
attribute "name" {
type = string
description = <<-END
Name of the environment variable.
END
}
attribute "value" {
type = string
description = <<-END
Variable references `$(VAR_NAME)` are expanded using the
previous defined environment variables in the container and
any route environment variables. If a variable cannot be
resolved, the reference in the input string will be unchanged.
The `$(VAR_NAME)` syntax can be escaped with a double `$$`,
ie: `$$(VAR_NAME)`. Escaped references will never be expanded,
regardless of whether the variable exists or not.
END
}
attribute "value_from" {
type = object(value_from)
description = <<-END
Source for the environment variable's value.
Only supports `secret_key_ref`.
END
attribute "secret_key_ref" {
type = object(secret_key_ref)
required = true
description = <<-END
Selects a key (version) of a secret in Secret Manager.
END
attribute "key" {
type = string
description = <<-END
A Cloud Secret Manager secret version.
Must be `"latest"` for the latest version or an integer for a specific version.
END
}
attribute "name" {
type = string
description = <<-END
The name of the secret in Cloud Secret Manager.
By default, the secret is assumed to be in the same project.
If the secret is in another project, you must define an alias.
You set the in this field, and create an annotation with the following structure
`"run.googleapis.com/secrets" = ":projects//secrets/"`.
If multiple alias definitions are needed, they must be separated by commas in the annotation field.
END
}
}
}
}
attribute "ports" {
type = list(port)
default = []
description = <<-END
List of open ports in the container. More Info:
https://cloud.google.com/run/docs/reference/rest/v1/RevisionSpec#ContainerPort
END
attribute "name" {
type = string
description = <<-END
Name of the port.
END
}
attribute "protocol" {
type = string
description = <<-END
Protocol used on port.
END
}
attribute "container_port" {
required = true
type = number
description = <<-END
Port number.
END
}
}
attribute "resources" {
type = object(resource)
default = {}
description = <<-END
Compute Resources required by this container. Used to set values
such as max memory More info:
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limits
END
attribute "limits" {
type = map(string)
description = <<-END
Limits describes the maximum amount of compute resources
allowed. The values of the map is string form of the
'quantity' k8s type:
https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
END
}
attribute "requests" {
type = map(string)
description = <<-END
Requests describes the minimum amount of compute resources
required. If Requests is omitted for a container, it defaults
to Limits if that is explicitly specified, otherwise to an
implementation-defined value. The values of the map is string
form of the 'quantity' k8s type:
https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
END
}
}
}
}
}
variable "traffic" {
type = list(traffic)
default = []
description = <<-END
A list of traffic specifies how to distribute traffic over a
collection of Knative Revisions and Configurations Structure.
END
attribute "revision_name" {
type = string
description = <<-END
RevisionName of a specific revision to which to send this portion of
traffic.
END
}
attribute "percent" {
required = true
type = number
description = <<-END
Percent specifies percent of the traffic to this Revision or
Configuration.
END
}
attribute "latest_revision" {
type = bool
description = <<-END
LatestRevision may be optionally provided to indicate that the
latest ready Revision of the Configuration should be used for this
traffic target. When provided LatestRevision must be `true` if
`RevisionName` is empty; it must be `false` when `RevisionName` is
non-empty.
END
}
}
variable "metadata" {
type = object(metadata)
default = {}
description = <<-END
Optional metadata for this Revision, including labels and
annotations. Name will be generated by the Configuration. To set
minimum instances for this revision, use the
`autoscaling.knative.dev/minScale` annotation key. To set maximum
instances for this revision, use the
`autoscaling.knative.dev/maxScale` annotation key. To set Cloud SQL
connections for the revision, use the
`run.googleapis.com/cloudsql-instances` annotation key.
END
attribute "namespace" {
type = string
description = <<-END
In Cloud Run the namespace must be equal to either the project ID
or project number. It will default to the resource's project.
END
}
attribute "labels" {
type = map(string)
description = <<-END
Map of string keys and values that can be used to organize and
categorize (scope and select) objects. May match selectors of
replication controllers and routes. More info:
http://kubernetes.io/docs/user-guide/labels
END
}
attribute "generation" {
type = number
description = <<-END
A sequence number representing a specific generation of the
desired state.
END
}
attribute "resource_version" {
type = string
description = <<-END
An opaque value that represents the internal version of this
object that can be used by clients to determine when objects have
changed. May be used for optimistic concurrency, change detection,
and the watch operation on a resource or set of resources. They
may only be valid for a particular resource or set of resources.
More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
END
}
attribute "self_link" {
type = string
description = <<-END
SelfLink is a URL representing this object.
END
}
attribute "uid" {
type = string
description = <<-END
UID is a unique id generated by the server on successful creation
of a resource and is not allowed to change on PUT operations. More
info: http://kubernetes.io/docs/user-guide/identifiers#uids
END
}
attribute "annotations" {
type = map(string)
description = <<-END
Annotations is a key value map stored with a resource that may be
set by external tools to store and retrieve arbitrary metadata.
More info: http://kubernetes.io/docs/user-guide/annotations Note:
The Cloud Run API may add additional annotations that were not
provided in your config. If terraform plan shows a diff where a
server-side annotation is added, you can add it to your config or
apply the `lifecycle.ignore_changes` rule to the
`metadata.0.annotations` field.
END
}
}
variable "domain_mapping" {
type = object(domain_mapping)
description = <<-END
An Object that holds the state and status of a user's domain mapping.
END
attribute "spec" {
type = object(spec)
default = {}
description = <<-END
RevisionSpec holds the desired state of the Revision (from the
client).
END
attribute "force_override" {
type = bool
description = <<-END
If set, the mapping will override any mapping set before this spec
was set. It is recommended that the user leaves this empty to
receive an error warning about a potential conflict and only set
it once the respective UI has given such a warning.
END
}
attribute "certificate_mode" {
type = string
default = "AUTOMATIC"
description = <<-END
The mode of the certificate. Possible values are `NONE` and
`AUTOMATIC`.
END
}
}
attribute "metadata" {
type = object(metadata)
default = {}
description = <<-END
Optional metadata for this Revision, including labels and
annotations. Name will be generated by the Configuration. To set
minimum instances for this revision, use the
`autoscaling.knative.dev/minScale` annotation key. To set maximum
instances for this revision, use the
`autoscaling.knative.dev/maxScale` annotation key. To set Cloud SQL
connections for the revision, use the
`run.googleapis.com/cloudsql-instances` annotation key.
END
attribute "namespace" {
type = string
description = <<-END
In Cloud Run the namespace must be equal to either the project ID
or project number. It will default to the resource's project.
END
}
attribute "labels" {
type = map(string)
description = <<-END
Map of string keys and values that can be used to organize and
categorize (scope and select) objects. May match selectors of
replication controllers and routes. More info:
http://kubernetes.io/docs/user-guide/labels
END
}
attribute "generation" {
type = number
description = <<-END
A sequence number representing a specific generation of the
desired state.
END
}
attribute "resource_version" {
type = string
description = <<-END
An opaque value that represents the internal version of this
object that can be used by clients to determine when objects have
changed. May be used for optimistic concurrency, change detection,
and the watch operation on a resource or set of resources. They
may only be valid for a particular resource or set of resources.
More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
END
}
attribute "self_link" {
type = string
description = <<-END
SelfLink is a URL representing this object.
END
}
attribute "uid" {
type = string
description = <<-END
UID is a unique id generated by the server on successful creation
of a resource and is not allowed to change on PUT operations. More
info: http://kubernetes.io/docs/user-guide/identifiers#uids
END
}
attribute "annotations" {
type = map(string)
description = <<-END
Annotations is a key value map stored with a resource that may be
set by external tools to store and retrieve arbitrary metadata.
More info: http://kubernetes.io/docs/user-guide/annotations Note:
The Cloud Run API may add additional annotations that were not
provided in your config. If terraform plan shows a diff where a
server-side annotation is added, you can add it to your config or
apply the `lifecycle.ignore_changes` rule to the
`metadata.0.annotations` field.
END
}
}
}
}
section {
title = "Extended Resource Configuration"
variable "iam" {
type = list(iam)
default = []
description = <<-END
A list of IAM access to apply to the created secret.
END
attribute "role" {
type = string
description = <<-END
The role that should be applied. Note that custom roles must be of
the format
`[projects|organizations]/{parent-name}/roles/{role-name}`.
END
}
attribute "members" {
type = set(string)
description = <<-END
Identities that will be granted the privilege in role. Each entry
can have one of the following values:
- `allUsers`: A special identifier that represents anyone who is on
the internet; with or without a Google account.
- `allAuthenticatedUsers`: A special identifier that represents
anyone who is authenticated with a Google account or a service
account.
- `user:{emailid}`: An email address that represents a specific
Google account. For example, alice@gmail.com or joe@example.com.
- `serviceAccount:{emailid}`: An email address that represents
a service account. For example,
`my-other-app@appspot.gserviceaccount.com`.
- `group:{emailid}`: An email address that represents a Google
group. For example, `admins@example.com`.
- `domain:{domain}`: A G Suite domain (primary, instead of alias)
name that represents all the users of that domain. For example,
google.com or example.com.
- `projectOwner:projectid`: Owners of the given project. For
example, `projectOwner:my-example-project`
- `projectEditor:projectid`: Editors of the given project.
For example, `projectEditor:my-example-project`
- `projectViewer:projectid`: Viewers of the given project.
For example, `projectViewer:my-example-project`
END
}
attribute "authoritative" {
type = bool
default = true
description = <<-END
Whether to exclusively set (authoritative mode) or add
(non-authoritative/additive mode) members to the role.
END
}
}
variable "policy_bindings" {
type = list(policy_binding)
description = <<-END
A list of IAM policy bindings.
END
readme_example = <<-END
policy_bindings = [{
role = "roles/viewer"
members = ["user:member@example.com"]
}]
END
attribute "role" {
required = true
type = string
description = <<-END
The role that should be applied.
END
}
attribute "members" {
type = set(string)
default = var.members
description = <<-END
Identities that will be granted the privilege in `role`.
END
}
attribute "condition" {
type = object(condition)
description = <<-END
An IAM Condition for a given binding.
END
readme_example = <<-END
condition = {
expression = "request.time < timestamp(\"2022-01-01T00:00:00Z\")"
title = "expires_after_2021_12_31"
}
END
attribute "expression" {
required = true
type = string
description = <<-END
Textual representation of an expression in Common Expression
Language syntax.
END
}
attribute "title" {
required = true
type = string
description = <<-END
A title for the expression, i.e. a short string describing its
purpose.
END
}
attribute "description" {
type = string
description = <<-END
An optional description of the expression. This is a longer text
which describes the expression, e.g. when hovered over it in a
UI.
END
}
}
}
}
section {
title = "Module Configuration"
variable "module_enabled" {
type = bool
default = true
description = <<-END
Specifies whether resources in the module will be created.
END
}
variable "module_timeouts" {
type = object(module_timeouts)
default = {}
description = <<-END
A map of timeout objects that is keyed by Terraform resource name
defining timeouts for `create`, `update` and `delete` Terraform operations.
Supported resources are: `google_cloud_run_service`, `google_cloud_run_domain_mapping`
END
readme_example = <<-END
module_timeouts = {
null_resource = {
create = "4m"
update = "4m"
delete = "4m"
}
}
END
attribute "create" {
type = string
default = "6m"
description = <<-END
Timeout for create operations.
END
}
attribute "update" {
type = string
default = "15m"
description = <<-END
Timeout for update operations.
END
}
attribute "delete" {
type = string
default = "4m"
description = <<-END
Timeout for delete operations.
END
}
}
variable "module_depends_on" {
type = list(dependency)
description = <<-END
A list of dependencies.
Any object can be _assigned_ to this list to define a hidden external dependency.
END
default = []
readme_example = <<-END
module_depends_on = [
null_resource.name
]
END
}
}
}
section {
title = "Module Outputs"
content = <<-END
The following attributes are exported in the outputs of the module:
END
output "iam" {
type = list(iam)
description = <<-END
The iam resource objects that define the access to the secret.
END
}
output "service" {
type = object(service)
description = <<-END
All `google_cloud_run_service` resource attributes.
END
}
output "domain_mapping" {
type = object(domain_mapping)
description = <<-END
All `google_cloud_run_domain_mapping` resource attributes.
END
}
output "module_enabled" {
type = bool
description = <<-END
Whether this module is enabled.
END
}
}
section {
title = "External Documentation"
section {
title = "Google Documentation"
content = <<-END
- Cloud Run - https://cloud.google.com/run/docs/
- Mapping Custom Domains - https://cloud.google.com/run/docs/mapping-custom-domains
END
}
section {
title = "Terraform GCP Provider Documentation"
content = <<-END
- Run Services - https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_run_service
- Domain Mapping - https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_run_domain_mapping
END
}
}
section {
title = "Module Versioning"
content = <<-END
This Module follows the principles of [Semantic Versioning (SemVer)].
Given a version number `MAJOR.MINOR.PATCH`, we increment the:
1. `MAJOR` version when we make incompatible changes,
2. `MINOR` version when we add functionality in a backwards compatible manner, and
3. `PATCH` version when we make backwards compatible bug fixes.
END
section {
title = "Backwards compatibility in `0.0.z` and `0.y.z` version"
content = <<-END
- Backwards compatibility in versions `0.0.z` is **not guaranteed** when `z` is increased. (Initial development)
- Backwards compatibility in versions `0.y.z` is **not guaranteed** when `y` is increased. (Pre-release)
END
}
}
section {
title = "About Mineiros"
content = <<-END
[Mineiros][homepage] is a remote-first company headquartered in Berlin, Germany
that solves development, automation and security challenges in cloud infrastructure.
Our vision is to massively reduce time and overhead for teams to manage and
deploy production-grade and secure cloud infrastructure.
We offer commercial support for all of our modules and encourage you to reach out
if you have any questions or need help. Feel free to email us at [hello@mineiros.io] or join our
[Community Slack channel][slack].
END
}
section {
title = "Reporting Issues"
content = <<-END
We use GitHub [Issues] to track community reported issues and missing features.
END
}
section {
title = "Contributing"
content = <<-END
Contributions are always encouraged and welcome! For the process of accepting changes, we use
[Pull Requests]. If you'd like more information, please see our [Contribution Guidelines].
END
}
section {
title = "Makefile Targets"
content = <<-END
This repository comes with a handy [Makefile].
Run `make help` to see details on each available target.
END
}
section {
title = "License"
content = <<-END
[![license][badge-license]][apache20]
This module is licensed under the Apache License Version 2.0, January 2004.
Please see [LICENSE] for full details.
Copyright © 2020-2022 [Mineiros GmbH][homepage]
END
}
}
references {
ref "homepage" {
value = "https://mineiros.io/?ref=terraform-google-cloud-run"
}
ref "hello@mineiros.io" {
value = " mailto:hello@mineiros.io"
}
ref "badge-license" {