Name | Version |
---|---|
terraform | >= 1.0 |
aws | >= 4.5 |
Name | Version |
---|---|
aws | >= 4.5 |
No modules.
Name | Type |
---|---|
aws_cloudfront_origin_access_control.cloudfront | resource |
aws_cloudfront_origin_access_identity.cloudfront | resource |
aws_s3_bucket.s3 | resource |
aws_s3_bucket_acl.acl | resource |
aws_s3_bucket_lifecycle_configuration.s3_lifecycle_configuration | resource |
aws_s3_bucket_ownership_controls.bucket_ownership | resource |
aws_s3_bucket_policy.allow_public_read_access_to_objects | resource |
aws_s3_bucket_policy.bucket_policy | resource |
aws_s3_bucket_public_access_block.public_access | resource |
aws_s3_bucket_server_side_encryption_configuration.encryption | resource |
aws_s3_bucket_versioning.versioning | resource |
aws_s3_bucket_website_configuration.website | resource |
aws_iam_policy_document.allow_public_read_access_to_objects | data source |
aws_iam_policy_document.block_http_request | data source |
aws_iam_policy_document.s3_cloudfront_oac | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
attach_bucket_policy | Attach S3 bukcet policy | bool |
false |
no |
block_http_request | Deny all the HTTP requests in bucket | bool |
true |
no |
bucket_key_enabled | Whether or not to use Amazon S3 Bucket Keys for SSE-KMS | bool |
true |
no |
bucket_policy | Bucket policy | any |
null |
no |
bucket_public_read_access | Allow public read to objects when website enabled | bool |
false |
no |
bucket_public_read_access_condition | Allow public read to objects with condition when website enabled | map(any) |
{} |
no |
cloudfront_arn | CloudFront ARN | string |
"" |
no |
create_lifecycle_rule | Create s3 lifecycle rule | bool |
false |
no |
encryption_algorithm | Algorithm used for SSE in s3 | string |
"AES256" |
no |
force_destroy | Force bucket destroy | string |
false |
no |
kms_master_key_id | KMS master key ID used for the SSE-KMS encryption | string |
null |
no |
lifecycle_rule | S3 lifecycle rule for objects | list |
[] |
no |
name | S3 bucket name | string |
n/a | yes |
origin_access_control | Configure cloudfront origin access control | bool |
false |
no |
origin_access_identity | Configure cloudfront origin access identity | bool |
false |
no |
versioning | Set bucket versioninig | string |
"Disabled" |
no |
website | Configure bucket to host static website | any |
{} |
no |
Name | Description |
---|---|
bucket_arn | n/a |
bucket_name | n/a |
bucket_regional_domain_name | n/a |
bucket_website_endpoint | n/a |
origin_access_control_id | n/a |
origin_access_identity_path | n/a |