File tree Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ locals {
20
20
k8s_tunnel_port = random_integer.port.result
21
21
aws_auth_yaml = basename (local. aws_auth_filename )
22
22
ssh_pvt_key_path = var.ssh_key.path
23
- ssh_extra_args = var.ssh_extra_args
23
+ ssh_extra_args = var.bastion_info != null templatestring (var . ssh_extra_args , {bastion_instance_id = var.bastion.instance_id}) : " "
24
24
eks_cluster_arn = var.eks_info.cluster.arn
25
25
bastion_user = var.bastion_info != null ? var.bastion_info.user : " "
26
26
bastion_public_ip = var.bastion_info != null ? var.bastion_info.public_ip : " "
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ variable "bastion_info" {
6
6
ssh_bastion_command = Command to ssh onto bastion.
7
7
EOF
8
8
type = object ({
9
+ instance_id = string
9
10
user = string
10
11
public_ip = string
11
12
security_group_id = string
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ variable "node_iam_policies" {
99
99
100
100
variable "bastion_info" {
101
101
description = << EOF
102
+ instance_id = Bastion instance id
102
103
user = Bastion username.
103
104
public_ip = Bastion public ip.
104
105
security_group_id = Bastion sg id.
Original file line number Diff line number Diff line change 1
1
output "info" {
2
2
description = " Bastion information."
3
3
value = {
4
+ instance_id = aws_instance.bastion.id
4
5
user = var.bastion.username
5
6
public_ip = aws_eip.bastion.public_ip
6
7
security_group_id = aws_security_group.bastion.id
You can’t perform that action at this time.
0 commit comments