-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
43 lines (38 loc) · 949 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
39
40
41
42
43
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.27"
}
}
}
provider "aws" {
region = "ap-northeast-1" //Tokyo
# version = "~>2.0"
access_key = var.awsAcctKey
secret_key = var.awsActSecret
# https://linspira.signin.aws.amazon.com/console
}
variable "awsAcctKey" {
description = "Account key for AWS programmatic terraform user"
type = string
}
variable "awsActSecret" {
description = "Account password for terraform user"
type = string
}
// TODO:
# - s3 bucket for static frontend files
# - s3 bucket for HTTP redirects
# - configure DNS
# - configure ACM
# - configure cloudfront
# - configure cognito
# - add AppSync: GraphQL
# - add DB: dynamoDB
# - add lambda scripts for backend management
# - add ? step functions?
# - build API GW
# - setup ElasticSearch
# - setup GitHub link to AWS
# - init process to reload website from GitHub every 24 hours.