Skip to content

Commit 4b4ace4

Browse files
committed
add s3 access logging
1 parent 2f58e81 commit 4b4ace4

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

infrastructure/terraform/components/app/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
| <a name="input_enable_amplify_branch_auto_build"></a> [enable\_amplify\_branch\_auto\_build](#input\_enable\_amplify\_branch\_auto\_build) | Enable automatic building of branches | `bool` | `false` | no |
3131
| <a name="input_enable_cognito_built_in_idp"></a> [enable\_cognito\_built\_in\_idp](#input\_enable\_cognito\_built\_in\_idp) | Enable the use of Cognito as an IDP; CIS2 is prefered | `bool` | `false` | no |
3232
| <a name="input_enable_event_caching"></a> [enable\_event\_caching](#input\_enable\_event\_caching) | Enable caching of events to an S3 bucket | `bool` | `true` | no |
33-
| <a name="input_enable_file_download"></a> [enable\_file\_download](#input\_enable\_file\_download) | Feature flag for downloading files | `bool` | `true` | no |
3433
| <a name="input_enable_letters"></a> [enable\_letters](#input\_enable\_letters) | Feature flag for letters | `string` | `false` | no |
3534
| <a name="input_enable_proofing"></a> [enable\_proofing](#input\_enable\_proofing) | Feature flag for proofing | `string` | `false` | no |
3635
| <a name="input_environment"></a> [environment](#input\_environment) | The name of the tfscaffold environment | `string` | n/a | yes |

infrastructure/terraform/components/app/module_s3bucket_cf_logs.tf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,9 @@ module "s3bucket_cf_logs" {
6565
data.aws_iam_policy_document.s3bucket_cf_logs.json
6666
]
6767

68-
# Ignore access logs while we prove out deploying
69-
# bucket_logging_target = {
70-
# bucket = local.s3_buckets["access_logs"]["id"]
71-
# }
68+
bucket_logging_target = {
69+
bucket = local.s3_buckets["access_logs"]["id"]
70+
}
7271

7372
public_access = {
7473
block_public_acls = true

infrastructure/terraform/components/app/variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,6 @@ variable "enable_proofing" {
194194
default = false
195195
}
196196

197-
variable "enable_file_download" {
198-
type = bool
199-
description = "Feature flag for downloading files"
200-
default = true
201-
}
202-
203197
variable "observability_account_id" {
204198
type = string
205199
description = "The Observability Account ID that needs access"

0 commit comments

Comments
 (0)