Skip to content

Commit 8618c20

Browse files
authored
mfa_delete removed (#26)
1 parent c27813f commit 8618c20

File tree

7 files changed

+2
-18
lines changed

7 files changed

+2
-18
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ Available targets:
198198
| id\_length\_limit | Limit `id` to this many characters.<br>Set to `0` for unlimited length.<br>Set to `null` for default, which is `0`.<br>Does not affect `id_full`. | `number` | `null` | no |
199199
| label\_order | The naming order of the id output and Name tag.<br>Defaults to ["namespace", "environment", "stage", "name", "attributes"].<br>You can omit any of the 5 elements, but at least one must be present. | `list(string)` | `null` | no |
200200
| lambda\_runtime | Lambda runtime | `string` | `"nodejs12.x"` | no |
201-
| mfa\_delete | A boolean that indicates that versions of S3 objects can only be deleted with MFA. ( Terraform cannot apply changes of this value; https://github.com/terraform-providers/terraform-provider-aws/issues/629 ) | `bool` | `true` | no |
202201
| name | Solution name, e.g. 'app' or 'jenkins' | `string` | `null` | no |
203202
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' | `string` | `null` | no |
204203
| regex\_replace\_chars | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`.<br>If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. | `string` | `null` | no |

docs/terraform.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
| id\_length\_limit | Limit `id` to this many characters.<br>Set to `0` for unlimited length.<br>Set to `null` for default, which is `0`.<br>Does not affect `id_full`. | `number` | `null` | no |
3434
| label\_order | The naming order of the id output and Name tag.<br>Defaults to ["namespace", "environment", "stage", "name", "attributes"].<br>You can omit any of the 5 elements, but at least one must be present. | `list(string)` | `null` | no |
3535
| lambda\_runtime | Lambda runtime | `string` | `"nodejs12.x"` | no |
36-
| mfa\_delete | A boolean that indicates that versions of S3 objects can only be deleted with MFA. ( Terraform cannot apply changes of this value; https://github.com/terraform-providers/terraform-provider-aws/issues/629 ) | `bool` | `true` | no |
3736
| name | Solution name, e.g. 'app' or 'jenkins' | `string` | `null` | no |
3837
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' | `string` | `null` | no |
3938
| regex\_replace\_chars | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`.<br>If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. | `string` | `null` | no |

examples/complete/fixtures.us-east-1.tfvars

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@ lambda_runtime = "nodejs12.x"
2323
artifact_url = "https://artifacts.cloudposse.com/terraform-external-module-artifact/example/test.zip"
2424

2525
artifact_filename = "lambda.zip"
26-
27-
mfa_delete = false

examples/complete/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ module "ses_lambda_forwarder" {
1616

1717
artifact_url = var.artifact_url
1818
artifact_filename = var.artifact_filename
19-
mfa_delete = var.mfa_delete
2019

2120
context = module.this.context
2221
}

examples/complete/variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,3 @@ variable "artifact_filename" {
3737
type = string
3838
description = "Artifact filename"
3939
}
40-
41-
variable "mfa_delete" {
42-
type = bool
43-
description = "A boolean that indicates that versions of S3 objects can only be deleted with MFA. ( Terraform cannot apply changes of this value; https://github.com/terraform-providers/terraform-provider-aws/issues/629 )"
44-
}

s3.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
resource "aws_s3_bucket" "default" {
22
#bridgecrew:skip=BC_AWS_S3_13:Skipping `Enable S3 Bucket Logging` check until bridgecrew will support dynamic blocks (https://github.com/bridgecrewio/checkov/issues/776).
33
#bridgecrew:skip=BC_AWS_S3_14:Skipping `Ensure all data stored in the S3 bucket is securely encrypted at rest` check until bridgecrew will support dynamic blocks (https://github.com/bridgecrewio/checkov/issues/776).
4+
#bridgecrew:skip=CKV_AWS_52:Skipping `Ensure S3 bucket has MFA delete enabled` due to issue in terraform (https://github.com/hashicorp/terraform-provider-aws/issues/629).
45
bucket = module.this.id
56
region = var.region
67
force_destroy = true
78

89
versioning {
9-
enabled = var.versioning_enabled
10-
mfa_delete = var.mfa_delete
10+
enabled = var.versioning_enabled
1111
}
1212

1313
dynamic "logging" {

variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ variable "versioning_enabled" {
5353
description = "A state of versioning. Versioning is a means of keeping multiple variants of an object in the same bucket"
5454
}
5555

56-
variable "mfa_delete" {
57-
type = bool
58-
description = "A boolean that indicates that versions of S3 objects can only be deleted with MFA. ( Terraform cannot apply changes of this value; https://github.com/terraform-providers/terraform-provider-aws/issues/629 )"
59-
default = true
60-
}
61-
6256
variable "tracing_config_mode" {
6357
type = string
6458
description = "Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with 'sampled=1'. If Active, Lambda will respect any tracing header it receives from an upstream service."

0 commit comments

Comments
 (0)