github.com/SUSE/skuba@v1.4.17/ci/infra/aws/aws.tf (about)

     1  locals {
     2    # Do not add the special `kubernetes.io/cluster<cluster-name>` here,
     3    # this tag cannot be added to all our resources otherwise the CPI
     4    # will get confused when dealing with security rules objects.
     5    basic_tags = merge(
     6      {
     7        "Name"        = var.stack_name
     8        "Environment" = var.stack_name
     9      },
    10      var.tags,
    11    )
    12  
    13    tags = merge(
    14      local.basic_tags,
    15      {
    16        format("kubernetes.io/cluster/%v", var.stack_name) = "SUSE-terraform"
    17      },
    18    )
    19  }
    20  
    21  provider "aws" {
    22    region     = var.aws_region
    23    access_key = var.aws_access_key
    24    secret_key = var.aws_secret_key
    25    profile    = "default"
    26  }
    27  
    28  resource "aws_key_pair" "kube" {
    29    key_name   = "${var.stack_name}-keypair"
    30    public_key = element(var.authorized_keys, 0)
    31  }
    32