Skip to content

Commit

Permalink
Merge pull request #8 from dasmeta/DMVP-5181
Browse files Browse the repository at this point in the history
feat(DMVP-5181): upgrade s3 module version
  • Loading branch information
sophie-dasmeta-com authored Dec 25, 2024
2 parents 4e94283 + 4c10bb2 commit f511e87
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Local .terraform directories
**/.terraform/*
**/.terraform.lock.hcl

# .tfstate files
*.tfstate
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ No providers.
| <a name="module_cdn"></a> [cdn](#module\_cdn) | dasmeta/modules/aws//modules/cloudfront-ssl-hsts | 2.16.0 |
| <a name="module_dns"></a> [dns](#module\_dns) | dasmeta/dns/aws | 1.0.4 |
| <a name="module_dns_alternative"></a> [dns\_alternative](#module\_dns\_alternative) | dasmeta/dns/aws | 1.0.4 |
| <a name="module_s3"></a> [s3](#module\_s3) | dasmeta/s3/aws | 1.2.1 |
| <a name="module_s3"></a> [s3](#module\_s3) | dasmeta/s3/aws | 1.3.1 |
| <a name="module_waf"></a> [waf](#module\_waf) | dasmeta/modules/aws//modules/waf | 2.15.6 |

## Resources
Expand All @@ -45,10 +45,10 @@ No resources.
|------|-------------|------|---------|:--------:|
| <a name="input_alternative_domains"></a> [alternative\_domains](#input\_alternative\_domains) | n/a | `list(string)` | `[]` | no |
| <a name="input_alternative_zones"></a> [alternative\_zones](#input\_alternative\_zones) | n/a | `list(string)` | `[]` | no |
| <a name="input_cdn_configs"></a> [cdn\_configs](#input\_cdn\_configs) | CDN configuration options | <pre>object({<br> default_root_object = optional(string, "index.html")<br> additional_origins = optional(any, [])<br> })</pre> | <pre>{<br> "additional_origins": [],<br> "default_root_object": "index.html"<br>}</pre> | no |
| <a name="input_cdn_configs"></a> [cdn\_configs](#input\_cdn\_configs) | CDN configuration options | <pre>object({<br/> default_root_object = optional(string, "index.html")<br/> additional_origins = optional(any, [])<br/> })</pre> | <pre>{<br/> "additional_origins": [],<br/> "default_root_object": "index.html"<br/>}</pre> | no |
| <a name="input_domain"></a> [domain](#input\_domain) | domain full name | `string` | n/a | yes |
| <a name="input_enable_http_security_headers"></a> [enable\_http\_security\_headers](#input\_enable\_http\_security\_headers) | Whether to enable http security headers by creating pass through lambda handler for cdn | `bool` | `false` | no |
| <a name="input_s3_configs"></a> [s3\_configs](#input\_s3\_configs) | S3 bucket configuration options | <pre>object({<br> acl = optional(string, "private")<br> create_index_html = optional(bool, true)<br> ignore_public_acls = optional(bool, true)<br> restrict_public_buckets = optional(bool, true)<br> block_public_acls = optional(bool, true)<br> block_public_policy = optional(bool, true)<br><br> versioning = optional(object({ enabled = bool }), { enabled = false })<br> website = optional(object({ index_document = string, error_document = string }), { index_document = "index.html", error_document = "index.html" })<br> create_iam_user = optional(bool, false)<br> })</pre> | <pre>{<br> "acl": "private",<br> "block_public_acls": true,<br> "block_public_policy": true,<br> "create_iam_user": false,<br> "create_index_html": true,<br> "ignore_public_acls": true,<br> "restrict_public_buckets": true,<br> "versioning": {<br> "enabled": false<br> },<br> "website": {<br> "error_document": "index.html",<br> "index_document": "index.html"<br> }<br>}</pre> | no |
| <a name="input_s3_configs"></a> [s3\_configs](#input\_s3\_configs) | S3 bucket configuration options | <pre>object({<br/> acl = optional(string, "private")<br/> create_index_html = optional(bool, true)<br/> ignore_public_acls = optional(bool, true)<br/> restrict_public_buckets = optional(bool, true)<br/> block_public_acls = optional(bool, true)<br/> block_public_policy = optional(bool, true)<br/><br/> versioning = optional(object({ enabled = bool }), { enabled = false })<br/> website = optional(object({ index_document = string, error_document = string }), { index_document = "index.html", error_document = "index.html" })<br/> create_iam_user = optional(bool, false)<br/> cors_rule = optional(list(any), [])<br/> event_notification_config = optional(object({<br/> target_type = string, // Target type for the S3 event notification, can be "sqs" or "null". Other target types can be implemented in the future.<br/> name_suffix = string, // Suffix to add to the target name.<br/> filter_prefix = string, // Prefix to filter object key names for the event notification.<br/> events = optional(list(string), ["s3:ObjectCreated:*"]) // List of S3 events that trigger the notification. Defaults to "s3:ObjectCreated:*".<br/> }), {<br/> target_type = "null"<br/> name_suffix = "event"<br/> filter_prefix = "test/"<br/> events = ["s3:ObjectCreated:*"]<br/> }<br/> )<br/> })</pre> | <pre>{<br/> "acl": "private",<br/> "block_public_acls": true,<br/> "block_public_policy": true,<br/> "cors_rule": [],<br/> "create_iam_user": false,<br/> "create_index_html": true,<br/> "event-notification-config": {<br/> "events": [<br/> "s3:ObjectCreated:*"<br/> ],<br/> "filter_prefix": "test/",<br/> "queue_name": "test",<br/> "target_type": "null"<br/> },<br/> "ignore_public_acls": true,<br/> "restrict_public_buckets": true,<br/> "versioning": {<br/> "enabled": false<br/> },<br/> "website": {<br/> "error_document": "index.html",<br/> "index_document": "index.html"<br/> }<br/>}</pre> | no |
| <a name="input_waf"></a> [waf](#input\_waf) | waf configs | `any` | `null` | no |
| <a name="input_zone"></a> [zone](#input\_zone) | R53 zone name | `string` | `null` | no |

Expand Down
2 changes: 1 addition & 1 deletion s3.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module "s3" {
source = "dasmeta/s3/aws"
version = "1.2.3"
version = "1.3.1"

name = var.domain
acl = var.s3_configs.acl
Expand Down

0 comments on commit f511e87

Please sign in to comment.