forked from terraform-aws-modules/terraform-aws-eks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workers can now be specified as multiple asgs of different flavors. B…
…YO security group now possible for both workers and cluster
- Loading branch information
1 parent
1b92893
commit 6bda7ee
Showing
15 changed files
with
358 additions
and
457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
resource "local_file" "kubeconfig" { | ||
content = "${data.template_file.kubeconfig.rendered}" | ||
filename = "${var.config_output_path}/kubeconfig" | ||
count = "${var.configure_kubectl_session ? 1 : 0}" | ||
} | ||
|
||
resource "local_file" "config_map_aws_auth" { | ||
content = "${data.template_file.config_map_aws_auth.rendered}" | ||
filename = "${var.config_output_path}/config-map-aws-auth.yaml" | ||
count = "${var.configure_kubectl_session ? 1 : 0}" | ||
} | ||
|
||
resource "null_resource" "configure_kubectl" { | ||
provisioner "local-exec" { | ||
command = "kubectl apply -f ${var.config_output_path}/config-map-aws-auth.yaml --kubeconfig ${var.config_output_path}/kubeconfig" | ||
} | ||
|
||
triggers { | ||
config_map_rendered = "${data.template_file.config_map_aws_auth.rendered}" | ||
kubeconfig_rendered = "${data.template_file.kubeconfig.rendered}" | ||
} | ||
|
||
count = "${var.configure_kubectl_session ? 1 : 0}" | ||
} |
Oops, something went wrong.