|
| 1 | +## |
| 2 | +# Basic inherited variables for terraformscaffold modules |
| 3 | +## |
| 4 | + |
| 5 | +variable "project" { |
| 6 | + type = string |
| 7 | + description = "The name of the terraformscaffold project calling the module" |
| 8 | +} |
| 9 | + |
| 10 | +variable "environment" { |
| 11 | + type = string |
| 12 | + description = "The name of the terraformscaffold environment the module is called for" |
| 13 | +} |
| 14 | + |
| 15 | +variable "component" { |
| 16 | + type = string |
| 17 | + description = "The name of the terraformscaffold component calling this module" |
| 18 | +} |
| 19 | + |
| 20 | +variable "aws_account_id" { |
| 21 | + type = string |
| 22 | + description = "The AWS Account ID (numeric)" |
| 23 | +} |
| 24 | + |
| 25 | +## |
| 26 | +# Module self-identification |
| 27 | +## |
| 28 | + |
| 29 | +variable "module" { |
| 30 | + type = string |
| 31 | + description = "The name of this module. This is a special variable, it should be set only here and never overridden." |
| 32 | + default = "kms" |
| 33 | +} |
| 34 | + |
| 35 | +## |
| 36 | +# Variable specific to the module |
| 37 | +## |
| 38 | + |
| 39 | +# We presume this will always be specified. The default of {} will cause an error if a valid map is not specified. |
| 40 | +# If we ever want to define this but allow it to not be specified, then we must provide a default tag keypair will be applied |
| 41 | +# as the true default. In any other case default_tags should be removed from the module. |
| 42 | +variable "default_tags" { |
| 43 | + type = map(string) |
| 44 | + description = "Default tag map for application to all taggable resources in the module" |
| 45 | + default = {} |
| 46 | +} |
| 47 | + |
| 48 | +variable "region" { |
| 49 | + type = string |
| 50 | + description = "The AWS Region" |
| 51 | +} |
| 52 | + |
| 53 | +variable "name" { |
| 54 | + type = string |
| 55 | + description = "A unique name to distinguish this module invocation from others within the same CSI scope" |
| 56 | +} |
| 57 | + |
| 58 | +variable "deletion_window" { |
| 59 | + type = string |
| 60 | + description = "KMS key deletion window" |
| 61 | +} |
| 62 | + |
| 63 | +variable "alias" { |
| 64 | + type = string |
| 65 | + description = "Alias name for the hieradata KMS key" |
| 66 | +} |
| 67 | + |
| 68 | +variable "key_policy_documents" { |
| 69 | + type = list(string) |
| 70 | + description = "List of KMS key policy JSON documents" |
| 71 | + default = [] |
| 72 | +} |
| 73 | + |
| 74 | +variable "iam_delegation" { |
| 75 | + type = bool |
| 76 | + description = "Whether to delegate administration of the key to the local account. Defaults to true" |
| 77 | + default = true |
| 78 | +} |
0 commit comments