-
Notifications
You must be signed in to change notification settings - Fork 0
/
versions.tf
45 lines (39 loc) · 1.25 KB
/
versions.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
44
45
# AWS Simple Static Site - IaC to deploy an economical static site on AWS
# Copyright (C) 2024 Charles German <5donuts@pm.me>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
terraform {
required_version = "~> 1.7.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
}
# AWS provider to provision resources in the primary region
provider "aws" {
region = var.primary_region
default_tags {
tags = var.default_tags
}
}
# AWS provider to provision certain resources (e.g., CloudFront distributions) in us-east-1
provider "aws" {
alias = "us_east_1"
region = "us-east-1"
default_tags {
tags = var.default_tags
}
}