forked from proceduretech/terraform-amplify-nextjs-ssr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
38 lines (33 loc) · 698 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# AWS Provider
provider "aws" {
profile = var.profile
access_key = var.access_key
secret_key = var.secret_key
region = var.region
}
# Terraform Settings
terraform {
backend "s3" {
bucket = ""
key = ""
region = "ap-south-1"
}
}
# s3 for terraform state
resource "aws_s3_bucket" "terraform-state" {
bucket = var.state_bucket
acl = "private"
versioning {
enabled = true
}
tags = {
Environment = var.environment
}
}
module "frontend" {
source = "./modules/frontend"
environment = var.environment
project_name = var.project_name
github_repository = var.github_repository
github_token_for_frontend = var.github_token_for_frontend
}