|
1 | | -variable "module" { |
2 | | - type = string |
3 | | - description = "The variable encapsulating the name of this module" |
4 | | - default = "fe" |
5 | | -} |
6 | | - |
7 | | -variable "parameter_bundle" { |
8 | | - type = object( |
9 | | - { |
10 | | - project = string |
11 | | - environment = string |
12 | | - component = string |
13 | | - group = string |
14 | | - region = string |
15 | | - account_ids = map(string) |
16 | | - account_name = string |
17 | | - default_kms_deletion_window_in_days = number |
18 | | - default_tags = map(string) |
19 | | - iam_resource_arns = map(string) |
20 | | - target_env = map(any) |
21 | | - cicd_bucket_name = string |
22 | | - pipeline_overrides = map(any) |
23 | | - cloudwatch_options = map(bool) |
24 | | - cloudwatch_metric_thresholds = map(map(string)) |
25 | | - terraform_root_dir = string |
26 | | - } |
27 | | - ) |
28 | | - description = "Contains all of the default parameters needed by any module in this project" |
| 1 | +## |
| 2 | +# Basic Required Variables for tfscaffold Modules |
| 3 | +## |
| 4 | + |
| 5 | +variable "project" { |
| 6 | + type = string |
| 7 | + description = "The name of the tfscaffold project" |
| 8 | +} |
| 9 | + |
| 10 | +variable "environment" { |
| 11 | + type = string |
| 12 | + description = "The name of the tfscaffold environment" |
| 13 | +} |
| 14 | + |
| 15 | +variable "component" { |
| 16 | + type = string |
| 17 | + description = "The name of the tfscaffold component" |
| 18 | +} |
| 19 | + |
| 20 | +variable "aws_account_id" { |
| 21 | + type = string |
| 22 | + description = "The AWS Account ID (numeric)" |
| 23 | +} |
| 24 | + |
| 25 | +variable "region" { |
| 26 | + type = string |
| 27 | + description = "The AWS Region" |
| 28 | +} |
| 29 | + |
| 30 | +## |
| 31 | +# tfscaffold variables specific to this module |
| 32 | +## |
| 33 | + |
| 34 | +variable "default_tags" { |
| 35 | + type = map(string) |
| 36 | + description = "A map of default tags to apply to all taggable resources within the component" |
| 37 | + default = {} |
29 | 38 | } |
30 | 39 |
|
| 40 | +## |
| 41 | +# Variables specific to this module |
| 42 | +## |
| 43 | + |
31 | 44 | variable "truststore_s3_bucket" { |
32 | 45 | type = string |
33 | 46 | description = "The id of the mgmt truststore s3 bucket" |
34 | 47 | } |
| 48 | + |
| 49 | +variable "name" { |
| 50 | + type = string |
| 51 | + description = "A unique name to distinguish this module invocation from others within the same CSI scope" |
| 52 | +} |
| 53 | + |
| 54 | +variable "subject_country" { |
| 55 | + type = string |
| 56 | + description = "Country for certificate subject" |
| 57 | + default = "GB" |
| 58 | +} |
| 59 | + |
| 60 | +variable "subject_province" { |
| 61 | + type = string |
| 62 | + description = "Province for certificate subject" |
| 63 | + default = "West Yorkshire" |
| 64 | +} |
| 65 | + |
| 66 | +variable "subject_locality" { |
| 67 | + type = string |
| 68 | + description = "Locality for certificate subject" |
| 69 | + default = "Leeds" |
| 70 | +} |
| 71 | + |
| 72 | +variable "subject_common_name" { |
| 73 | + type = string |
| 74 | + description = "Common name for certificate subject" |
| 75 | +} |
| 76 | + |
| 77 | +variable "subject_organization" { |
| 78 | + type = string |
| 79 | + description = "Organization for certificate subject" |
| 80 | + default = "NHS England" |
| 81 | +} |
| 82 | + |
| 83 | +variable "subject_organizational_unit" { |
| 84 | + type = string |
| 85 | + description = "Organizational unit for certificate subject" |
| 86 | + default = "NHS Notify" |
| 87 | +} |
0 commit comments