kubenow / KubeNow

Deploy Kubernetes. Now!
Apache License 2.0
291 stars 40 forks source link

Add AWS IAM key id to Tags #341

Open sneumann opened 6 years ago

sneumann commented 6 years ago

Hi, in the AWS billing console you can filter resources by their tags. To get all costs incurred by some user, consider adding to https://github.com/kubenow/KubeNow/blob/master/aws/node/main.tf for everything that gets billed, e.g. at least nodes and volumes:

  tags {
    Name    = "${var.name_prefix}-${format("%03d", count.index)}"
    sshUser = "${var.ssh_user}"
    aws_access_key_id = "${var.aws_access_key_id}"
  }
}

(untested code). This is AWS specific and not needed on other providers. Yours, Steffen

andersla commented 6 years ago

Looks good. Will also add volume_tags to instance to keep track of instance root volumes and aws_access_key_id to all volumes tags