-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversions.tf
49 lines (40 loc) · 1.03 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
46
47
48
49
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.36.0"
}
aws = {
source = "hashicorp/aws"
version = "4.35.0"
}
}
backend "s3" {
bucket = "trace-tf-unlocked-bucket"
key = "network/azure-terraform.tfstate"
region = "us-east-1"
}
}
/* provider "azurerm" {
features {}
} */
provider "aws" {
region = var.aws_region
}
locals {
jim_az_profile = file("/home/trace/.azure/jimboProfile.json")
jim_az_decoded = jsondecode(local.jim_az_profile)
jim_az_provider_creds = {
tenant_id = local.jim_az_decoded.tenant
client_id = local.jim_az_decoded.appId
client_secret = local.jim_az_decoded.password
}
jim_az_sub_id = chomp(file("/home/trace/.azure/jim_subscription"))
}
provider "azurerm" {
subscription_id = local.jim_az_sub_id
tenant_id = local.jim_az_provider_creds.tenant_id
client_id = local.jim_az_provider_creds.client_id
client_secret = local.jim_az_provider_creds.client_secret
features {}
}