generated from michaeldeggers/repo_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproviders.tf
41 lines (37 loc) · 782 Bytes
/
providers.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
# Using a single workspace:
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.67.0"
}
random = {
source = "hashicorp/random"
version = ">= 3.4.3"
}
}
required_version = ">= 1.1.0"
backend "remote" {
hostname = "app.terraform.io"
organization = "eggs-projects"
workspaces {
prefix = "eggs-projects-"
}
}
}
provider "aws" {
# Configuration options
region = "us-east-1"
assume_role {
role_arn = "arn:aws:iam::${var.aws_account_id}:role/eggs-projects-deploy-role"
session_name = "Session_GitHub_Actions"
}
default_tags {
tags = {
Owner = "${var.organization}-${var.project_name}"
}
}
}
provider "random" {
# Configuration options
}