Skip to content

Commit 353461f

Browse files
authored
Feat/add force_destroy_s3_bucket to main (#51)
* add force_destroy_s3_bucket to main * add var and update doc * update doc * fix lint * fix commit hook
1 parent 12295ed commit 353461f

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ You can find a more complete example that uses this module but also includes set
106106
| <a name="input_enable_step_functions"></a> [enable\_step\_functions](#input\_enable\_step\_functions) | Provisions infrastructure for step functions if enabled | `bool` | n/a | yes |
107107
| <a name="input_extra_ui_backend_env_vars"></a> [extra\_ui\_backend\_env\_vars](#input\_extra\_ui\_backend\_env\_vars) | Additional environment variables for UI backend container | `map(string)` | `{}` | no |
108108
| <a name="input_extra_ui_static_env_vars"></a> [extra\_ui\_static\_env\_vars](#input\_extra\_ui\_static\_env\_vars) | Additional environment variables for UI static app | `map(string)` | `{}` | no |
109+
| <a name="input_force_destroy_s3_bucket"></a> [force\_destroy\_s3\_bucket](#input\_force\_destroy\_s3\_bucket) | Empty S3 bucket before destroying via terraform destroy | `bool` | `false` | no |
109110
| <a name="input_iam_partition"></a> [iam\_partition](#input\_iam\_partition) | IAM Partition (Select aws-us-gov for AWS GovCloud, otherwise leave as is) | `string` | `"aws"` | no |
110111
| <a name="input_launch_template_http_endpoint"></a> [launch\_template\_http\_endpoint](#input\_launch\_template\_http\_endpoint) | Whether the metadata service is available. Can be 'enabled' or 'disabled' | `string` | `"enabled"` | no |
111112
| <a name="input_launch_template_http_put_response_hop_limit"></a> [launch\_template\_http\_put\_response\_hop\_limit](#input\_launch\_template\_http\_put\_response\_hop\_limit) | The desired HTTP PUT response hop limit for instance metadata requests. Can be an integer from 1 to 64 | `number` | `2` | no |

main.tf

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module "metaflow-datastore" {
22
source = "./modules/datastore"
33

4+
force_destroy_s3_bucket = var.force_destroy_s3_bucket
5+
46
resource_prefix = local.resource_prefix
57
resource_suffix = local.resource_suffix
68

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,9 @@ variable "with_public_ip" {
170170
type = bool
171171
description = "Enable public IP assignment for the Metadata Service. Typically you want this to be set to true if using public subnets as subnet1_id and subnet2_id, and false otherwise"
172172
}
173+
174+
variable "force_destroy_s3_bucket" {
175+
type = bool
176+
description = "Empty S3 bucket before destroying via terraform destroy"
177+
default = false
178+
}

0 commit comments

Comments
 (0)