Skip to content

Commit c432701

Browse files
authored
Add distribution module (#1)
1 parent 2ed6e40 commit c432701

File tree

10 files changed

+1593
-0
lines changed

10 files changed

+1593
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
provider "aws" {
2+
region = "us-east-1"
3+
}
4+
5+
6+
###################################################
7+
# CloudFront Distribution
8+
###################################################
9+
10+
module "distribution" {
11+
source = "../../modules/distribution"
12+
# source = "tedilabs/cloudfront/aws//modules/distribution"
13+
# version = "~> 0.1.0"
14+
15+
name = "example"
16+
description = "Managed by Terraform."
17+
18+
custom_origins = {
19+
"api" = {
20+
host = "api.example.com"
21+
}
22+
}
23+
default_target_origin = "api"
24+
25+
tags = {
26+
"project" = "terraform-aws-secret-examples"
27+
}
28+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
output "distribution" {
2+
value = module.distribution
3+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
terraform {
2+
required_version = "~> 1.2"
3+
4+
required_providers {
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = "~> 4.0"
8+
}
9+
}
10+
}

modules/distribution/README.md

Lines changed: 116 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)