| Name | Version |
|---|---|
| terraform | >= 1.9 |
| aws | >= 5.60 |
| Name | Version |
|---|---|
| aws | >= 5.60 |
No modules.
| Name | Type |
|---|---|
| aws_s3_bucket.bucket | resource |
| aws_s3_bucket_notification.bucket_notification | resource |
| aws_s3_bucket_ownership_controls.bucket_ownership_controls | resource |
| aws_s3_bucket_policy.bucket_policy | resource |
| aws_s3_bucket_public_access_block.bucket_public_access_block | resource |
| aws_s3_bucket_server_side_encryption_configuration.bucket_encryption | resource |
| aws_s3_bucket_versioning.bucket_versioning | resource |
| aws_caller_identity.current | data source |
| aws_iam_policy_document.bucket_policy_document | data source |
| aws_iam_policy_document.cloudfront_bucket_policy_document | data source |
| aws_iam_policy_document.merged_s3_policy_document | data source |
| aws_region.current | data source |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| allow_cloudfront_write | Whether or not to allow writes to cloudfront distributions. | bool |
false |
no |
| bucket_name_prefix | Prefix for the bucket name. | string |
n/a | yes |
| bucket_name_suffix | Optional bucket name suffix. Prefixed by '-'. | string |
"" |
no |
| cloudfront_distribution_arns | Arns of cloudfront distributions to allow access to the s3 bucket. | list(string) |
[] |
no |
| enable_bucket_key | Whether or not to use a bucket key. | bool |
true |
no |
| enable_mfa_delete | Specifies whether MFA delete is enabled in the bucket versioning configuration. | bool |
false |
no |
| kms_key_arn | AWS KMS master key ID used for the SSE-KMS encryption. | string |
"" |
no |
| object_ownership | Object ownership control. | string |
"BucketOwnerEnforced" |
no |
| use_aws_owned_kms | If kms_key_arn is not provided, use AES256 over aws/s3 aws managed key. | bool |
false |
no |
| Name | Description |
|---|---|
| bucket_arn | ARN of the bucket. |
| bucket_domain_name | Bucket domain name. |
| bucket_name | Name of the bucket. |
| bucket_regional_domain_name | The bucket region-specific domain name. |
| hosted_zone_id | Route 53 Hosted Zone ID for this bucket's region. |