Skip to content

Commit 4566434

Browse files
committed
Remove expiration_days from bucket lifecycle rule
1 parent 54ef364 commit 4566434

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ module "materialize_infrastructure" {
5353

5454
> **Note:** The Kubernetes and Helm providers are configured to use the AWS CLI for authentication with the EKS cluster. This requires that you have the AWS CLI installed and configured with access to the AWS account where the EKS cluster is deployed.
5555
56+
You can also set the `AWS_PROFILE` environment variable to the name of the profile you want to use for authentication with the EKS cluster:
57+
58+
```bash
59+
export AWS_PROFILE=your-profile-name
60+
```
61+
5662
## Requirements
5763

5864
| Name | Version |
@@ -98,7 +104,7 @@ module "materialize_infrastructure" {
98104
|------|-------------|------|---------|:--------:|
99105
| <a name="input_availability_zones"></a> [availability\_zones](#input\_availability\_zones) | List of availability zones | `list(string)` | <pre>[<br/> "us-east-1a",<br/> "us-east-1b",<br/> "us-east-1c"<br/>]</pre> | no |
100106
| <a name="input_bucket_force_destroy"></a> [bucket\_force\_destroy](#input\_bucket\_force\_destroy) | Enable force destroy for the S3 bucket | `bool` | `true` | no |
101-
| <a name="input_bucket_lifecycle_rules"></a> [bucket\_lifecycle\_rules](#input\_bucket\_lifecycle\_rules) | List of lifecycle rules for the S3 bucket | <pre>list(object({<br/> id = string<br/> enabled = bool<br/> prefix = string<br/> transition_days = number<br/> transition_storage_class = string<br/> expiration_days = number<br/> noncurrent_version_expiration_days = number<br/> }))</pre> | <pre>[<br/> {<br/> "enabled": true,<br/> "expiration_days": 365,<br/> "id": "cleanup",<br/> "noncurrent_version_expiration_days": 90,<br/> "prefix": "",<br/> "transition_days": 90,<br/> "transition_storage_class": "STANDARD_IA"<br/> }<br/>]</pre> | no |
107+
| <a name="input_bucket_lifecycle_rules"></a> [bucket\_lifecycle\_rules](#input\_bucket\_lifecycle\_rules) | List of lifecycle rules for the S3 bucket | <pre>list(object({<br/> id = string<br/> enabled = bool<br/> prefix = string<br/> transition_days = number<br/> transition_storage_class = string<br/> noncurrent_version_expiration_days = number<br/> }))</pre> | <pre>[<br/> {<br/> "enabled": true,<br/> "id": "cleanup",<br/> "noncurrent_version_expiration_days": 90,<br/> "prefix": "",<br/> "transition_days": 90,<br/> "transition_storage_class": "STANDARD_IA"<br/> }<br/>]</pre> | no |
102108
| <a name="input_cluster_enabled_log_types"></a> [cluster\_enabled\_log\_types](#input\_cluster\_enabled\_log\_types) | List of desired control plane logging to enable | `list(string)` | <pre>[<br/> "api",<br/> "audit",<br/> "authenticator",<br/> "controllerManager",<br/> "scheduler"<br/>]</pre> | no |
103109
| <a name="input_cluster_version"></a> [cluster\_version](#input\_cluster\_version) | Kubernetes version for the EKS cluster | `string` | `"1.32"` | no |
104110
| <a name="input_create_vpc"></a> [create\_vpc](#input\_create\_vpc) | Controls if VPC should be created (it affects almost all resources) | `bool` | `true` | no |

modules/storage/main.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ resource "aws_s3_bucket_lifecycle_configuration" "materialize_storage" {
4949
storage_class = rule.value.transition_storage_class
5050
}
5151

52-
expiration {
53-
days = rule.value.expiration_days
54-
}
55-
5652
noncurrent_version_expiration {
5753
noncurrent_days = rule.value.noncurrent_version_expiration_days
5854
}

modules/storage/variables.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ variable "bucket_lifecycle_rules" {
3434
prefix = string
3535
transition_days = number
3636
transition_storage_class = string
37-
expiration_days = number
3837
noncurrent_version_expiration_days = number
3938
}))
4039
}

variables.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ variable "bucket_lifecycle_rules" {
218218
prefix = string
219219
transition_days = number
220220
transition_storage_class = string
221-
expiration_days = number
222221
noncurrent_version_expiration_days = number
223222
}))
224223
default = [{
@@ -227,7 +226,6 @@ variable "bucket_lifecycle_rules" {
227226
prefix = ""
228227
transition_days = 90
229228
transition_storage_class = "STANDARD_IA"
230-
expiration_days = 365
231229
noncurrent_version_expiration_days = 90
232230
}]
233231
}

0 commit comments

Comments
 (0)