Skip to content

Commit

Permalink
Merge pull request #359 from ministryofjustice/issue/6114
Browse files Browse the repository at this point in the history
Issue #6114.
  • Loading branch information
mikereiddigital authored Feb 6, 2024
2 parents 6fc8ff5 + 0c4f0dc commit 4ef702f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 25 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ module "bastion_linux" {
# s3 - used for logs and user public keys
bucket_name = "bastion"
bucket_versioning = true
bucket_force_destroy = true
# public keys
public_key_data = local.public_key_data.keys[local.environment]
# logs
Expand Down Expand Up @@ -156,9 +154,7 @@ In order to prevent older versions from being retained forever, in addition to t
| <a name="input_allow_ssh_commands"></a> [allow\_ssh\_commands](#input\_allow\_ssh\_commands) | Allow SSH commands to be specified | `bool` | n/a | yes |
| <a name="input_app_name"></a> [app\_name](#input\_app\_name) | Name of application | `string` | n/a | yes |
| <a name="input_autoscaling_cron"></a> [autoscaling\_cron](#input\_autoscaling\_cron) | Cron expressions for scale up and scale down | `map(string)` | <pre>{<br> "down": "0 20 * * *",<br> "up": "0 5 * * *"<br>}</pre> | no |
| <a name="input_bucket_force_destroy"></a> [bucket\_force\_destroy](#input\_bucket\_force\_destroy) | The bucket and all objects should be destroyed when using true | `bool` | n/a | yes |
| <a name="input_bucket_name"></a> [bucket\_name](#input\_bucket\_name) | Bucket used for bucket log storage and user public keys | `string` | n/a | yes |
| <a name="input_bucket_versioning"></a> [bucket\_versioning](#input\_bucket\_versioning) | Enable bucket versioning or not | `bool` | n/a | yes |
| <a name="input_business_unit"></a> [business\_unit](#input\_business\_unit) | Fixed variable to specify business-unit for RAM shared subnets | `string` | n/a | yes |
| <a name="input_environment"></a> [environment](#input\_environment) | application environment | `string` | n/a | yes |
| <a name="input_extra_user_data_content"></a> [extra\_user\_data\_content](#input\_extra\_user\_data\_content) | Extra user data content for Bastion ec2 | `string` | `""` | no |
Expand Down
4 changes: 1 addition & 3 deletions test/unit-test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ module "bastion_linux" {
instance_name = "bastion_linux_${count.index + 1}"

# s3 - used for logs and user ssh public keys
bucket_name = "bastion-${count.index + 1}"
bucket_versioning = true
bucket_force_destroy = true
bucket_name = "bastion-${count.index + 1}"
# public keys
public_key_data = local.public_key_data.keys[local.environment]
# logs
Expand Down
18 changes: 0 additions & 18 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,6 @@ variable "bucket_name" {
}
}

variable "bucket_versioning" {
type = bool
description = "Enable bucket versioning or not"
validation {
condition = (var.bucket_versioning == true || var.bucket_versioning == false)
error_message = "Variable bucket_versioning must be boolean."
}
}

variable "bucket_force_destroy" {
type = bool
description = "The bucket and all objects should be destroyed when using true"
validation {
condition = (var.bucket_force_destroy == true || var.bucket_force_destroy == false)
error_message = "Variable bucket_force_destroy must be boolean."
}
}

#### Logs
variable "log_auto_clean" {
type = string
Expand Down

0 comments on commit 4ef702f

Please sign in to comment.