File tree Expand file tree Collapse file tree 5 files changed +44
-1
lines changed Expand file tree Collapse file tree 5 files changed +44
-1
lines changed Original file line number Diff line number Diff line change @@ -21,4 +21,9 @@ module "k8s-infra-sandbox-capa" {
2121 email = " k8s-infra-sandbox-capa@kubernetes.io"
2222 iam_user_access_to_billing = " ALLOW"
2323 parent_id = aws_organizations_organizational_unit. production . id
24+ permissions_map = {
25+ " aws-capa-maintainers" = [
26+ " AdministratorAccess" ,
27+ ]
28+ }
2429}
Original file line number Diff line number Diff line change @@ -59,3 +59,27 @@ module "obs-k8s-io" {
5959 " service" = " obs"
6060 }
6161}
62+
63+
64+ module "capa-ami" {
65+ source = " ../modules/org-account"
66+
67+ account_name = " cncf-k8s-infra-aws-capa-ami"
68+ email = " cncf-k8s-infra-aws-capa-ami@lists.cncf.io"
69+ parent_id = aws_organizations_organizational_unit. production . id
70+ tags = {
71+ " production" = " true" ,
72+ " environment" = " prod" ,
73+ " group" = " sig-cluster-lifecycle" ,
74+ }
75+ permissions_map = {
76+ " aws-capa-maintainers" = [
77+ " AdministratorAccess" ,
78+ ]
79+ }
80+ aws_account_regions = [
81+ " ap-east-1" ,
82+ " ap-southeast-3" ,
83+ " eu-south-2" ,
84+ ]
85+ }
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ terraform {
3030 required_providers {
3131 aws = {
3232 source = " hashicorp/aws"
33- version = " ~> 4 .67.0"
33+ version = " ~> 5 .67.0"
3434 }
3535 }
3636}
Original file line number Diff line number Diff line change @@ -40,3 +40,10 @@ resource "aws_organizations_account" "this" {
4040 ]
4141 }
4242}
43+
44+ resource "aws_account_region" "this" {
45+ for_each = toset (var. aws_account_regions )
46+ region_name = each. key
47+ account_id = aws_organizations_account. this . id
48+ enabled = true
49+ }
Original file line number Diff line number Diff line change @@ -58,3 +58,10 @@ variable "permissions_map" {
5858 type = map (any )
5959 description = " A map of permissions"
6060}
61+
62+ variable "aws_account_regions" {
63+ default = []
64+ type = list (string )
65+ description = " List of opt-in AWS regions to enable for this account"
66+ }
67+
You can’t perform that action at this time.
0 commit comments