-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
44 lines (34 loc) · 780 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
44
##### CV Pipeline – Main ######
### Configure local values ###
locals {
# Name/value map for resource tags
tags_map = {
Name = "CV Pipeline"
Workspace = terraform.workspace
Environment = var.pipeline_environment
}
}
### Configure the AWS Providers ###
# Primary AWS Provider
provider "aws" {
access_key = var.aws_access_key
secret_key = var.aws_secret_key
region = var.aws_region
}
# AWS East (Northern Virginia) Provider
provider "aws" {
alias = "east"
access_key = var.aws_access_key
secret_key = var.aws_secret_key
region = "us-east-1"
}
# Terraform Required Providers
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
required_version = ">= 0.13"
}