Skip to content

Commit

Permalink
Make attributes for primary_contact variable to be not null
Browse files Browse the repository at this point in the history
  • Loading branch information
posquit0 committed Aug 31, 2023
1 parent f148eef commit fe83db9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.27.0
0.27.1
4 changes: 2 additions & 2 deletions modules/account/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This module creates following resources.

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.13.1 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.14.0 |

## Modules

Expand Down Expand Up @@ -52,7 +52,7 @@ No modules.
| <a name="input_ec2_spot_datafeed_subscription"></a> [ec2\_spot\_datafeed\_subscription](#input\_ec2\_spot\_datafeed\_subscription) | (Optional) The configuration of the Spot Data Feed Subscription. `ec2_spot_datafeed_subscription` as defined below.<br> (Optional) `enabled` - Indicate whether to enable Spot Data Feed Subscription to S3 Bucket. Defaults to `false`.<br> (Optional) `s3_bucket` - The configuration of the S3 bucket where AWS deliver the spot data feed. `s3_bucket` as defined below.<br> (Required) `name` - The name of the S3 bucket where AWS deliver the spot data feed.<br> (Optional) `key_prefix` - The path of directory inside S3 bucket to place spot pricing data. | <pre>object({<br> enabled = optional(bool, false)<br> s3_bucket = optional(object({<br> name = optional(string, "")<br> key_prefix = optional(string, "")<br> }))<br> })</pre> | `{}` | no |
| <a name="input_operation_contact"></a> [operation\_contact](#input\_operation\_contact) | (Optional) The configuration of the operation contact for the AWS Account. `operation_contact` as defined below.<br> (Required) `name` - The name of the operation contact.<br> (Optional) `title` - The tile of the operation contact. Defaults to `Operation Manager`.<br> (Required) `email` - The email address of the operation contact.<br> (Required) `phone` - The phone number of the operation contact. | <pre>object({<br> name = string<br> title = optional(string, "Operation Manager")<br> email = string<br> phone = string<br> })</pre> | `null` | no |
| <a name="input_password_policy"></a> [password\_policy](#input\_password\_policy) | (Optional) Password Policy for the AWS account. | <pre>object({<br> minimum_password_length = optional(number, 8)<br> require_numbers = optional(bool, true)<br> require_symbols = optional(bool, true)<br> require_lowercase_characters = optional(bool, true)<br> require_uppercase_characters = optional(bool, true)<br> allow_users_to_change_password = optional(bool, true)<br> hard_expiry = optional(bool, false)<br> max_password_age = optional(number, 0)<br> password_reuse_prevention = optional(number, 0)<br> })</pre> | `{}` | no |
| <a name="input_primary_contact"></a> [primary\_contact](#input\_primary\_contact) | (Optional) The configuration of the primary contact for the AWS Account. `primary_contact` as defined below.<br> (Required) `name` - The full name of the primary contact address.<br> (Optional) `company_name` - The name of the company associated with the primary contact information, if any.<br> (Required) `country_code` - The ISO-3166 two-letter country code for the primary contact address.<br> (Optional) `state` - The state or region of the primary contact address. This field is required in selected countries.<br> (Required) `city` - The city of the primary contact address.<br> (Optional) `district` - The district or county of the primary contact address, if any.<br> (Required) `address_line_1` - The first line of the primary contact address.<br> (Optional) `address_line_2` - The second line of the primary contact address, if any.<br> (Optional) `address_line_3` - The third line of the primary contact address, if any.<br> (Required) `postal_code` - The postal code of the primary contact address.<br> (Required) `phone` - The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.<br> (Optional) `website_url` - The URL of the website associated with the primary contact information, if any. | <pre>object({<br> name = string<br> company_name = optional(string)<br> country_code = string<br> state = optional(string)<br> city = string<br> district = optional(string)<br> address_line_1 = string<br> address_line_2 = optional(string)<br> address_line_3 = optional(string)<br> postal_code = string<br> phone = string<br> website_url = optional(string)<br> })</pre> | `null` | no |
| <a name="input_primary_contact"></a> [primary\_contact](#input\_primary\_contact) | (Optional) The configuration of the primary contact for the AWS Account. `primary_contact` as defined below.<br> (Required) `name` - The full name of the primary contact address.<br> (Optional) `company_name` - The name of the company associated with the primary contact information, if any.<br> (Required) `country_code` - The ISO-3166 two-letter country code for the primary contact address.<br> (Optional) `state` - The state or region of the primary contact address. This field is required in selected countries.<br> (Required) `city` - The city of the primary contact address.<br> (Optional) `district` - The district or county of the primary contact address, if any.<br> (Required) `address_line_1` - The first line of the primary contact address.<br> (Optional) `address_line_2` - The second line of the primary contact address, if any.<br> (Optional) `address_line_3` - The third line of the primary contact address, if any.<br> (Required) `postal_code` - The postal code of the primary contact address.<br> (Required) `phone` - The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.<br> (Optional) `website_url` - The URL of the website associated with the primary contact information, if any. | <pre>object({<br> name = string<br> company_name = optional(string, "")<br> country_code = string<br> state = optional(string, "")<br> city = string<br> district = optional(string, "")<br> address_line_1 = string<br> address_line_2 = optional(string, "")<br> address_line_3 = optional(string, "")<br> postal_code = string<br> phone = string<br> website_url = optional(string, "")<br> })</pre> | `null` | no |
| <a name="input_s3_public_access_enabled"></a> [s3\_public\_access\_enabled](#input\_s3\_public\_access\_enabled) | (Optional) Whether to enable S3 account-level Public Access Block configuration. Block the public access to S3 bucket if the value is `false`. | `bool` | `false` | no |
| <a name="input_security_contact"></a> [security\_contact](#input\_security\_contact) | (Optional) The configuration of the security contact for the AWS Account. `security_contact` as defined below.<br> (Required) `name` - The name of the security contact.<br> (Optional) `title` - The tile of the security contact. Defaults to `Security Manager`.<br> (Required) `email` - The email address of the security contact.<br> (Required) `phone` - The phone number of the security contact. | <pre>object({<br> name = string<br> title = optional(string, "Security Manager")<br> email = string<br> phone = string<br> })</pre> | `null` | no |
| <a name="input_sts_global_endpoint_token_version"></a> [sts\_global\_endpoint\_token\_version](#input\_sts\_global\_endpoint\_token\_version) | (Optional) The version of the STS global endpoint token. Valid values are `v1` and<br> `v2`. Defaults to `v1`.<br> `v1` - Version 1 Tokens are valid only in AWS Regions that are available by default. These tokens do not work in manually enabled Regions, such as Asia Pacific (Hong Kong).<br> `v2` - Version 2 tokens are valid in all Regions. However, version 2 tokens include more characters and might affect systems where you temporarily store tokens. | `string` | `"v1"` | no |
Expand Down
12 changes: 6 additions & 6 deletions modules/account/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ variable "primary_contact" {
EOF
type = object({
name = string
company_name = optional(string)
company_name = optional(string, "")
country_code = string
state = optional(string)
state = optional(string, "")
city = string
district = optional(string)
district = optional(string, "")
address_line_1 = string
address_line_2 = optional(string)
address_line_3 = optional(string)
address_line_2 = optional(string, "")
address_line_3 = optional(string, "")
postal_code = string
phone = string
website_url = optional(string)
website_url = optional(string, "")
})
nullable = true
default = null
Expand Down

0 comments on commit fe83db9

Please sign in to comment.