Skip to content

Commit 98bb8c0

Browse files
authored
Merge pull request #24 from truefoundry/add-s3-extra-tags
Add tags to s3 bucket
2 parents 9b696ee + 36feeaf commit 98bb8c0

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Truefoundry AWS platform features
6060
| <a name="input_blob_storage_enable_override"></a> [blob\_storage\_enable\_override](#input\_blob\_storage\_enable\_override) | Enable overriding the name of s3 bucket. This will only be used if feature\_blob\_storage\_enabled is enabled. You need to pass blob\_storage\_override\_name to pass the bucket name | `bool` | `false` | no |
6161
| <a name="input_blob_storage_encryption_algorithm"></a> [blob\_storage\_encryption\_algorithm](#input\_blob\_storage\_encryption\_algorithm) | Algorithm used for encrypting the default bucket. | `string` | `"AES256"` | no |
6262
| <a name="input_blob_storage_encryption_key_arn"></a> [blob\_storage\_encryption\_key\_arn](#input\_blob\_storage\_encryption\_key\_arn) | ARN of the key used to encrypt the bucket. Only needed if you set aws:kms as encryption algorithm. | `string` | `null` | no |
63+
| <a name="input_blob_storage_extra_tags"></a> [blob\_storage\_extra\_tags](#input\_blob\_storage\_extra\_tags) | Extra tags for the s3 bucket | `map(string)` | `{}` | no |
6364
| <a name="input_blob_storage_force_destroy"></a> [blob\_storage\_force\_destroy](#input\_blob\_storage\_force\_destroy) | Force destroy for mlfoundry s3 bucket | `bool` | `true` | no |
6465
| <a name="input_blob_storage_override_name"></a> [blob\_storage\_override\_name](#input\_blob\_storage\_override\_name) | S3 bucket name. Only used if s3\_enable\_override is enabled | `string` | `""` | no |
6566
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | Name of the EKS cluster | `string` | n/a | yes |

buckets.tf

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module "truefoundry_bucket" {
1212
{
1313
Name = var.blob_storage_enable_override ? var.blob_storage_override_name : trimsuffix(substr(local.truefoundry_unique_name, 0, 37), "-")
1414
},
15+
var.blob_storage_extra_tags,
1516
local.tags
1617
)
1718

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ variable "blob_storage_cors_origins" {
123123
type = list(string)
124124
default = ["*"]
125125
}
126+
127+
variable "blob_storage_extra_tags" {
128+
description = "Extra tags for the s3 bucket"
129+
type = map(string)
130+
default = {}
131+
}
126132
################################################################################
127133
# Parameter Store
128134
################################################################################

0 commit comments

Comments
 (0)