-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathimport.tf
52 lines (44 loc) · 1.39 KB
/
import.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
50
51
52
import {
for_each = toset(var.teams.maintainers.tsc)
to = module.github.github_team_membership.tsc_membership[each.key]
id = "3120240:${each.key}"
}
import {
for_each = toset(var.teams.maintainers.other)
to = module.github.github_team_membership.maintainer_membership[each.key]
id = "152937:${each.key}"
}
locals {
members = concat(
var.teams.bots,
var.teams.security,
flatten(values(tomap(var.teams.maintainers)))
)
}
import {
for_each = toset([for member in local.members : member if !contains(local.unmanagable_members, member)])
to = module.github.github_membership.general[each.key]
id = "Homebrew:${each.key}"
}
import {
for_each = { for team in keys(var.teams) : team => team if !contains(["bots", "plc", "security", "ops"], team) }
to = module.github.github_team.main[each.key]
id = each.key
}
import {
for_each = { for team in keys(var.teams.maintainers) : team => team if !contains(["other"], team) }
to = module.github.github_team.maintainers[each.key]
id = replace(each.key, "_", "-")
}
import {
to = module.dnsimple.dnsimple_contact.ocf
id = 52414
}
import {
to = module.aws.aws_iam_openid_connect_provider.github_actions
id = "arn:aws:iam::765021812025:oidc-provider/token.actions.githubusercontent.com"
}
import {
to = module.aws.aws_iam_role.github_tf
id = "GitHubActionsRole"
}