Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 6d20b30

Browse files
committed
Add terraform config for CloudFront
1 parent 2ffc3f3 commit 6d20b30

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed

cloudfront/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

cloudfront/outputs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

cloudfront/providers.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
provider "aws" {
2+
region = "${var.main_aws_region}"
3+
}
4+
5+
provider "aws" {
6+
alias = "nova"
7+
region = "us-east-1"
8+
}

cloudfront/terraform.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
terraform {
2+
required_version = "~> 0.11"
3+
4+
backend "s3" {
5+
region = "ap-northeast-1"
6+
bucket = "infra.wintus.tokyo"
7+
key = "lambda-edge-image-resize"
8+
}
9+
}

cloudfront/variables.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
variable "main_aws_region" {
2+
default = "ap-northeast-1"
3+
}

0 commit comments

Comments
 (0)