/web-assets

CloudFront-hosted Public Assets

Primary LanguageHCLApache License 2.0Apache-2.0

HCP Terraform Workspace web-assets

This repository manages web-accessible assets for @workloads.

Table of Contents

Requirements

  • HashiCorp Terraform 1.9.x or newer

Development

For development and testing of this repository:

  • terraform-docs 0.18.0 or newer

Usage

This repository uses a standard Terraform workflow (init, plan, apply).

For more information, including detailed usage guidelines, see the Terraform documentation.

Inputs

Name Description Type Required
management_region_aws AWS-specific Management Region Identifier. string yes
domain Parent Domain. string no
redirect_paths List of S3 Paths to create index.html redirects in.
list(object({
name = string
target = string
}))
no
subdomain Subdomain. string no

Outputs

Name Description
aws_cli_commands AWS CLI Command for CloudFront operations.
aws_cloudfront_aliases Exported Attributes for module.web_assets.aws_cloudfront_distribution.aliases.
aws_cloudfront_distribution_id Exported Attributes for module.web_assets.aws_cloudfront_distribution.id.
aws_cloudfront_domain_name Exported Attribute for module.web_assets.aws_cloudfront_distribution.domain_name.
aws_console_url AWS Console URL.
aws_region Exported Attributes for module.web_assets.aws_cloudfront_distribution.aliases.
aws_s3_bucket Exported Attribute for module.web_assets.aws_s3_bucket.

Notes

Sensitive Data

Terraform state may contain sensitive data. This workspace uses HCP Terraform to safely store state, and encrypt the data at rest.

Contributors

For a list of current (and past) contributors to this repository, see GitHub.

License

Licensed under the Apache License, Version 2.0 (the "License").

You may download a copy of the License at apache.org/licenses/LICENSE-2.0.

See the License for the specific language governing permissions and limitations under the License.