lb-s3-bucket
cloudposse/lb-s3-bucket/aws
Terraform module to provision an S3 bucket with built in IAM policy to allow AWS Load Balancers to ship access logs
Terraform module to provision an S3 bucket with built in IAM policy to allow AWS Load Balancers to ship access logs. > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works with Github Actions, Atlantis, or Spacelift. > > > Watch demo of using Atmos with Terraform > > Example of running atmos to manage infrastructure from our Quick Start tutorial. > Usage For a complete example, see examples/complete. For automated tests of the complete example using bats and Terratest (which tests and deploys the example on AWS), see test. ``hcl module "s3_bucket" { source = "cloudposse/lb-s3-bucket/aws" # Cloud Posse recommends pinning every module to a specific version # version = "x.x.x" namespace = "eg" stage = "test" nam
| Name | Type | Description | Default |
|---|---|---|---|
| force_destroy | bool | When `true`, permits a non-empty S3 bucket to be deleted by first deleting all o | false |
| attributes | list(string) | ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, | [] |
| tags | map(string) | Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t | {} |
| standard_transition_days | number | (Deprecated, use `lifecycle_configuration_rules` instead) Number of days to pers | 30 |
| allow_ssl_requests_only | bool | Require requests to use Secure Socket Layer (HTTPS/SSL). | true |
| environment | string | ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'st | null |
| lifecycle_prefix | string | (Deprecated, use `lifecycle_configuration_rules` instead) Prefix filter. Used to | "" |
| bucket_name | string | Bucket name. If provided, the bucket will be created with this name instead of g | null |
| context | any | Single object for setting entire context at once. See description of individual | {
"additional_tag_map": {},
"attribu |
| stage | string | ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bu | null |
| enable_glacier_transition | bool | (Deprecated, use `lifecycle_configuration_rules` instead) Enables the transition | true |
| expiration_days | number | (Deprecated, use `lifecycle_configuration_rules` instead) Number of days after w | 90 |
| lifecycle_configuration_rules | list(object({ enabled = bo | A list of S3 bucket v2 lifecycle rules, as specified in [terraform-aws-s3-bucket | [] |
| tenant | string | ID element _(Rarely used, not included by default)_. A customer identifier, indi | null |
| label_key_case | string | Controls the letter case of the `tags` keys (label names) for tags generated by | null |
| lifecycle_rule_enabled | bool | DEPRECATED: Defaults to `false`, use `lifecycle_configuration_rules` instead. Wh | false |
| id_length_limit | number | Limit `id` to this many characters (minimum 6). Set to `0` for unlimited length. | null |
| descriptor_formats | any | Describe additional descriptors to be output in the `descriptors` output map. Ma | {} |
| access_log_bucket_name | string | Name of the S3 bucket where S3 access logs will be sent to | "" |
| s3_object_ownership | string | Specifies the S3 object ownership control. Valid values are `ObjectWriter`, `Buc | "BucketOwnerPreferred" |
bucket_domain_name — S3 bucket domain namebucket_id — S3 bucket IDbucket_arn — S3 bucket ARNbucket_prefix — S3 bucket prefixenabled — Is module enabledAzure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,