-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update the document and module output description
- Loading branch information
Showing
10 changed files
with
228 additions
and
120 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,28 +1,35 @@ | ||
output "id" { | ||
value = "${aws_eks_cluster.vishwakarma.id}" | ||
value = "${aws_eks_cluster.vishwakarma.id}" | ||
description = "the eks cluster name" | ||
} | ||
|
||
output "endpoint" { | ||
value = "${aws_eks_cluster.vishwakarma.endpoint}" | ||
description = "the eks cluster endpoint" | ||
} | ||
|
||
output "kubernetes_version" { | ||
value = "${aws_eks_cluster.vishwakarma.version}" | ||
value = "${aws_eks_cluster.vishwakarma.version}" | ||
description = "the eks cluster version" | ||
} | ||
|
||
output "worker_sg_id" { | ||
value = "${aws_security_group.worker.id}" | ||
value = "${aws_security_group.worker.id}" | ||
description = "the security group id for worker group" | ||
} | ||
|
||
output "s3_bucket" { | ||
value = "${aws_s3_bucket.eks.bucket}" | ||
value = "${aws_s3_bucket.eks.bucket}" | ||
description = "the s3 bucket where put kubeconfig" | ||
} | ||
|
||
output "worker_role_arns" { | ||
value = "${aws_iam_role.workers.*.name}" | ||
value = "${aws_iam_role.workers.*.name}" | ||
description = "the role arns for worker groups" | ||
} | ||
|
||
output "worker_instance_profiles" { | ||
value = "${aws_iam_instance_profile.workers.*.name}" | ||
description = "the instance profiles name for worker groups" | ||
} | ||
|
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 |
---|---|---|
@@ -1,31 +1,39 @@ | ||
output "id" { | ||
value = "${var.name}" | ||
value = "${var.name}" | ||
description = "K8S cluster name" | ||
} | ||
|
||
output "certificate_authority" { | ||
value = "${module.master.certificate_authority}" | ||
value = "${module.master.certificate_authority}" | ||
description = "K8S root CA Cert" | ||
} | ||
|
||
output "endpoint" { | ||
value = "${module.master.endpoint}" | ||
value = "${module.master.endpoint}" | ||
description = "K8S cluster endpoint" | ||
} | ||
|
||
output "version" { | ||
value = "${var.kubernetes_version}" | ||
description = "K8S cluster version" | ||
} | ||
|
||
output "vpc_id" { | ||
value = "${local.vpc_id}" | ||
value = "${local.vpc_id}" | ||
description = "The VPC id used by K8S" | ||
} | ||
|
||
output "s3_bucket" { | ||
value = "${aws_s3_bucket.ignition.id}" | ||
value = "${aws_s3_bucket.ignition.id}" | ||
description = "The S3 bucket for storing provision ignition file" | ||
} | ||
|
||
output "master_sg_ids" { | ||
value = ["${module.master.master_sg_id}"] | ||
value = ["${module.master.master_sg_id}"] | ||
description = "The security group which used by K8S master" | ||
} | ||
|
||
output "worker_sg_ids" { | ||
value = ["${aws_security_group.workers.id}"] | ||
value = ["${aws_security_group.workers.id}"] | ||
description = "The security gruop for worker group" | ||
} |
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 |
---|---|---|
@@ -1,19 +1,24 @@ | ||
output "vpc_id" { | ||
value = "${aws_vpc.new_vpc.id}" | ||
value = "${aws_vpc.new_vpc.id}" | ||
description = "vpc id created by this module" | ||
} | ||
|
||
output "public_subnet_ids" { | ||
value = ["${aws_subnet.public_subnet.*.id}"] | ||
value = ["${aws_subnet.public_subnet.*.id}"] | ||
description = "resource can be accessed publicly when use it" | ||
} | ||
|
||
output "private_subnet_ids" { | ||
value = ["${aws_subnet.private_subnet.*.id}"] | ||
value = ["${aws_subnet.private_subnet.*.id}"] | ||
description = "resource can not be accessed publicly when use it" | ||
} | ||
|
||
output "bastion_public_ip" { | ||
value = "${aws_instance.bastion.public_ip}" | ||
value = "${aws_instance.bastion.public_ip}" | ||
description = "the public ip address for ssh" | ||
} | ||
|
||
output "zone_id" { | ||
value = "${var.private_zone ? join("", aws_route53_zone.zone.*.zone_id) : ""}" | ||
description = "private zone id for k8s" | ||
} |
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