-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
main.tf
38 lines (30 loc) · 876 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
provider "aws" {
region = "us-east-1"
}
###################################################
# IAM OIDC Identity Providers
###################################################
locals {
providers = [
{
url = "https://token.actions.githubusercontent.com"
audiences = ["sts.amazonaws.com"]
},
]
}
module "oidc_provider" {
source = "../../modules/iam-oidc-identity-provider"
# source = "tedilabs/account/aws//modules/iam-oidc-identity-provider"
# version = "~> 0.23.0"
for_each = {
for provider in try(local.providers, []) :
provider.url => provider
}
url = each.key
audiences = try(each.value.audiences, null)
thumbprints = try(each.value.thumbprints, null)
auto_thumbprint_enabled = try(each.value.auto_thumbprint_enabled, true)
tags = {
"project" = "terraform-aws-account-examples"
}
}