From 5c3000f18b30c4c9e2c7a40dabc3515e0700ae42 Mon Sep 17 00:00:00 2001 From: Arnaud Meukam Date: Fri, 14 Apr 2023 13:22:50 +0200 Subject: [PATCH] AWS: add accounts for kops Ref: https://github.com/kubernetes/k8s.io/issues/5127 - `kops-infra-ci` will be used to run e2e tests until we switch to boskos - `kops-infra-services` will be used to provision services needed to run kops e2e tests like Route53 or S3. Signed-off-by: Arnaud Meukam --- .../organization-accounts-kops.tf | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 infra/aws/terraform/management-account/organization-accounts-kops.tf diff --git a/infra/aws/terraform/management-account/organization-accounts-kops.tf b/infra/aws/terraform/management-account/organization-accounts-kops.tf new file mode 100644 index 00000000000..5076943f801 --- /dev/null +++ b/infra/aws/terraform/management-account/organization-accounts-kops.tf @@ -0,0 +1,39 @@ +/* +Copyright 2023 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +/* This file contains: +- AWS accounts used by kOps +*/ + +module "kops_infra_ci" { + source = "../modules/org-account" + account_name = "kops-infra-ci" + email = "k8s-infra-aws-admins+kops-infra-ci@kubernetes.io" + tags = { + environment = "prod", + group = "sig/cluster-lifecycle" + } +} + +module "kops_infra_services" { + source = "../modules/org-account" + account_name = "kops-infra-services" + email = "k8s-infra-aws-admins+kops-infra-services@kubernetes.io" + tags = { + environment = "prod" + group = "sig/cluster-lifecycle" + } +}