cloudfront-bucket

dod-iac/cloudfront-bucket/aws

Terraform Module HCL AWS

AWS S3 Bucket used to host files served by AWS CloudFront.

Install
module "cloudfront-bucket" {
source = "dod-iac/cloudfront-bucket/aws"
version = "2.0.0"
}
plain text: /constructs/tfmod-dod-iac-cloudfront-bucket-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Usage Creates an AWS S3 Bucket used to host files served by AWS CloudFront. ``hcl module "cloudfront_bucket" { source = "dod-iac/cloudfront-bucket/aws" aws_cloudfront_origin_access_identity_arn = aws_cloudfront_origin_access_identity.main.iam_arn name = format("app-%s-www-%s-%s", var.application, var.environment, var.region) logging_target_bucket = var.logs_bucket_name tags = { Application = var.application Environment = var.environment Automation = "Terraform" } } ` Pass an aliased provider to the module as aws, to change the region the bucket is in. `hcl module "cloudfront_bucket" { source = "dod-iac/cloudfront-bucket/aws" providers = { aws = aws.us-east-1 } aws_cloudfront_origin_access_identity_arn = aws_cloudfront_origin_access_identity.main.iam_arn name = format("app-%s-www-%s-%s", va

Inputs (5)
NameTypeDescriptionDefault
aws_cloudfront_origin_access_identity_arnstringThe ARN of the CloudFront Origin Access Identity (OAI) granted access to read fr required
logging_target_bucketstringThe name of the bucket that will receive the log objects. required
logging_target_prefixstringTo specify a key prefix for log objects. Defaults to "s3/[name]/". required
namestringThe name of the AWS S3 Bucket used to host files served by AWS CloudFront. required
tagsmap(string)Tags to apply to the AWS S3 Bucket.{}
Outputs (2)
arn — The ARN of the AWS S3 Bucket used to host files served by AWS CloudFront.
bucket_regional_domain_name — The bucket regional domain name of the AWS S3 Bucket used to host files served by AWS CloudFront.
Resources (3)
aws_s3_bucketaws_s3_bucket_policyaws_s3_bucket_public_access_block
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.0
Cloud AWS
★ Stars2
Forks1
Total downloads6.8k
Inputs5
Outputs2
Resources3
LicenseMIT
Namespacedod-iac
Updated