-
Notifications
You must be signed in to change notification settings - Fork 0
/
versions.tf
41 lines (37 loc) · 1.12 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
terraform {
required_version = "~> 1.9"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.78"
}
}
# Remote backend state using terraform cloud
# Note: the `prefix` workspace configuration creates a separate state store for
# each environment. These must be pre-created using the terraform cli. In addition,
# after creating a workspace you must access the app.terraform.io UI and set the
# workspace to type `local`.
backend "remote" {
hostname = "app.terraform.io"
organization = "twdps"
workspaces {
prefix = "psk-aws-iam-profiles-"
}
}
}
provider "aws" {
region = var.aws_region
# this section commented out during the initial bootstrap run.
# once the assumeable roles are created, uncomment and change
# op.*.env to contain the appropriate service account identity
assume_role {
role_arn = "arn:aws:iam::${var.aws_account_id}:role/${var.aws_assume_role}"
session_name = "psk-aws-iam-profiles"
}
default_tags {
tags = {
product = "empc engineering platform"
pipeline = "psk-aws-iam-profiles"
}
}
}