-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimport.tf
68 lines (58 loc) · 1.76 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import {
for_each = toset(var.teams.plc)
to = module.github.github_team_membership.plc_membership[each.key]
id = "3120238:${each.key}"
}
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.ops)
to = module.github.github_team_membership.ops_membership[each.key]
id = "3769017:${each.key}"
}
locals {
members = concat(
var.teams.bots,
var.teams.plc,
var.teams.security,
var.teams.security,
var.teams.members,
flatten(values(tomap(var.teams.maintainers))),
flatten(values(tomap(var.teams.taps)))
)
}
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", "taps"], team) }
to = module.github.github_team.main[each.key]
id = each.key
}
import {
for_each = { for team in keys(var.teams.taps) : team => team }
to = module.github.github_team.taps[each.key]
id = replace(each.key, "_", "-")
}
import {
for_each = { for team in keys(var.teams.maintainers) : team => 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 = "GitHubActionsS3Role"
}