Skip to content

Commit ff22066

Browse files
committed
data/aws: create bootstrap machine in first public subnet
openshift@afa0b59 had moved the bootstrap node to private subnet based on openshift#1121 (comment), but we need the bootstrap node in public subnet to be able to ssh. The bootstrap node is accesible on ssh again. ```console $ ush [email protected] Warning: Permanently added '18.215.154.240' (ECDSA) to the list of known hosts. Red Hat CoreOS 4.0 Beta WARNING: Direct SSH access to machines is not recommended. This node has been annotated with machineconfiguration.openshift.io/ssh=accessed --- This is the bootstrap node; it will be destroyed when the master is fully up. The primary service is "bootkube.service". To watch its status, run e.g. journalctl -b -f -u bootkube.service [core@ip-10-0-8-165 ~]$ ```
1 parent 3a5193c commit ff22066

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

data/data/aws/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module "bootstrap" {
1515
instance_type = "${var.aws_bootstrap_instance_type}"
1616
cluster_id = "${var.cluster_id}"
1717
ignition = "${var.ignition_bootstrap}"
18-
subnet_id = "${module.vpc.az_to_private_subnet_id[var.aws_master_availability_zones[0]]}"
18+
subnet_id = "${module.vpc.az_to_public_subnet_id[var.aws_master_availability_zones[0]]}"
1919
target_group_arns = "${module.vpc.aws_lb_target_group_arns}"
2020
target_group_arns_length = "${module.vpc.aws_lb_target_group_arns_length}"
2121
vpc_id = "${module.vpc.vpc_id}"

data/data/aws/vpc/outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ output "az_to_private_subnet_id" {
66
value = "${zipmap(local.new_subnet_azs, local.private_subnet_ids)}"
77
}
88

9+
output "az_to_public_subnet_id" {
10+
value = "${zipmap(local.new_subnet_azs, local.public_subnet_ids)}"
11+
}
12+
913
output "public_subnet_ids" {
1014
value = "${local.public_subnet_ids}"
1115
}

0 commit comments

Comments
 (0)