Skip to content

Commit

Permalink
add access_log_bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 2, 2024
1 parent 43db60c commit f88b7eb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
6 changes: 5 additions & 1 deletion s3-config-org/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ This set up the needed components for an organization-use S3 config bucket. Thi
Here is a simple example, the one most commonly expected to be used.

```hcl
module "config" {
module "config_org" {
source = "git@github.e.it.census.gov:terraform-modules/aws-inf-setup.git//s3-config-org"
access_log_bucket = "my-access-log-bucket"
}
```

Expand Down Expand Up @@ -120,6 +122,8 @@ No modules.

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_access_log_bucket"></a> [access\_log\_bucket](#input\_access\_log\_bucket) | Server Access Logging Bucket ID | `string` | n/a | yes |
| <a name="input_access_log_bucket_prefix"></a> [access\_log\_bucket\_prefix](#input\_access\_log\_bucket\_prefix) | Server Access Log bucket prefix, to which the Object Logging bucket name will be appended to make the target\_prefix | `string` | `"s3"` | no |
| <a name="input_account_alias"></a> [account\_alias](#input\_account\_alias) | AWS Account Alias | `string` | `""` | no |
| <a name="input_account_id"></a> [account\_id](#input\_account\_id) | AWS Account ID (default will pull from current user) | `string` | `""` | no |
| <a name="input_bucket_name"></a> [bucket\_name](#input\_bucket\_name) | Organization Config S3 bucket name | `string` | `null` | no |
Expand Down
4 changes: 3 additions & 1 deletion s3-config-org/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
* Here is a simple example, the one most commonly expected to be used.
*
* ```hcl
* module "config" {
* module "config_org" {
* source = "git@github.e.it.census.gov:terraform-modules/aws-inf-setup.git//s3-config-org"
*
* access_log_bucket = "my-access-log-bucket"
* }
* ```
*
Expand Down
11 changes: 11 additions & 0 deletions s3-config-org/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,14 @@ variable "component_tags" {
type = map(map(string))
default = { "s3" = {}, "kms" = {}, }
}

variable "access_log_bucket" {
description = "Server Access Logging Bucket ID"
type = string
}

variable "access_log_bucket_prefix" {
description = "Server Access Log bucket prefix, to which the Object Logging bucket name will be appended to make the target_prefix"
type = string
default = "s3"
}

0 comments on commit f88b7eb

Please sign in to comment.