Skip to content

Commit

Permalink
Fix fmt for v0.12.6 (terraform-aws-modules#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
karolinepauls authored and max-rocket-internet committed Aug 6, 2019
1 parent c5c3d38 commit 630a0cc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
18 changes: 9 additions & 9 deletions aws_auth.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ EOS

triggers = {
kube_config_map_rendered = data.template_file.kubeconfig.rendered
config_map_rendered = data.template_file.config_map_aws_auth.rendered
endpoint = aws_eks_cluster.this.endpoint
config_map_rendered = data.template_file.config_map_aws_auth.rendered
endpoint = aws_eks_cluster.this.endpoint
}
}

data "aws_caller_identity" "current" {
}

data "template_file" "launch_template_mixed_worker_role_arns" {
count = local.worker_group_launch_template_mixed_count
count = local.worker_group_launch_template_mixed_count
template = file("${path.module}/templates/worker-role.tpl")

vars = {
Expand All @@ -51,7 +51,7 @@ data "template_file" "launch_template_mixed_worker_role_arns" {
}

data "template_file" "launch_template_worker_role_arns" {
count = local.worker_group_launch_template_count
count = local.worker_group_launch_template_count
template = file("${path.module}/templates/worker-role.tpl")

vars = {
Expand All @@ -66,7 +66,7 @@ data "template_file" "launch_template_worker_role_arns" {
}

data "template_file" "worker_role_arns" {
count = local.worker_group_count
count = local.worker_group_count
template = file("${path.module}/templates/worker-role.tpl")

vars = {
Expand Down Expand Up @@ -95,8 +95,8 @@ data "template_file" "config_map_aws_auth" {
),
),
)
map_users = join("", data.template_file.map_users.*.rendered)
map_roles = join("", data.template_file.map_roles.*.rendered)
map_users = join("", data.template_file.map_users.*.rendered)
map_roles = join("", data.template_file.map_roles.*.rendered)
map_accounts = join("", data.template_file.map_accounts.*.rendered)
}
}
Expand All @@ -110,7 +110,7 @@ data "template_file" "map_users" {
vars = {
user_arn = var.map_users[count.index]["user_arn"]
username = var.map_users[count.index]["username"]
group = var.map_users[count.index]["group"]
group = var.map_users[count.index]["group"]
}
}

Expand All @@ -123,7 +123,7 @@ data "template_file" "map_roles" {
vars = {
role_arn = var.map_roles[count.index]["role_arn"]
username = var.map_roles[count.index]["username"]
group = var.map_roles[count.index]["group"]
group = var.map_roles[count.index]["group"]
}
}

Expand Down
22 changes: 11 additions & 11 deletions data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,17 @@ EOF

vars = {
value = values(var.kubeconfig_aws_authenticator_env_variables)[count.index]
key = keys(var.kubeconfig_aws_authenticator_env_variables)[count.index]
key = keys(var.kubeconfig_aws_authenticator_env_variables)[count.index]
}
}

data "template_file" "userdata" {
count = local.worker_group_count
count = local.worker_group_count
template = file("${path.module}/templates/userdata.sh.tpl")

vars = {
cluster_name = aws_eks_cluster.this.name
endpoint = aws_eks_cluster.this.endpoint
cluster_name = aws_eks_cluster.this.name
endpoint = aws_eks_cluster.this.endpoint
cluster_auth_base64 = aws_eks_cluster.this.certificate_authority[0].data
pre_userdata = lookup(
var.worker_groups[count.index],
Expand All @@ -117,12 +117,12 @@ data "template_file" "userdata" {
}

data "template_file" "launch_template_userdata" {
count = local.worker_group_launch_template_count
count = local.worker_group_launch_template_count
template = file("${path.module}/templates/userdata.sh.tpl")

vars = {
cluster_name = aws_eks_cluster.this.name
endpoint = aws_eks_cluster.this.endpoint
cluster_name = aws_eks_cluster.this.name
endpoint = aws_eks_cluster.this.endpoint
cluster_auth_base64 = aws_eks_cluster.this.certificate_authority[0].data
pre_userdata = lookup(
var.worker_groups_launch_template[count.index],
Expand All @@ -148,12 +148,12 @@ data "template_file" "launch_template_userdata" {
}

data "template_file" "workers_launch_template_mixed" {
count = local.worker_group_launch_template_mixed_count
count = local.worker_group_launch_template_mixed_count
template = file("${path.module}/templates/userdata.sh.tpl")

vars = {
cluster_name = aws_eks_cluster.this.name
endpoint = aws_eks_cluster.this.endpoint
cluster_name = aws_eks_cluster.this.name
endpoint = aws_eks_cluster.this.endpoint
cluster_auth_base64 = aws_eks_cluster.this.certificate_authority[0].data
pre_userdata = lookup(
var.worker_groups_launch_template_mixed[count.index],
Expand All @@ -180,7 +180,7 @@ data "template_file" "workers_launch_template_mixed" {

data "aws_iam_role" "custom_cluster_iam_role" {
count = var.manage_cluster_iam_resources ? 0 : 1
name = var.cluster_iam_role_name
name = var.cluster_iam_role_name
}

data "aws_iam_instance_profile" "custom_worker_group_iam_instance_profile" {
Expand Down

0 comments on commit 630a0cc

Please sign in to comment.