Slide 22
Slide 22 text
22
Deploy & test
@Test
public void test() {
KeyPair key = this.createKey("key");
this.createStack("vpc", "vpc/vpc-2azs.yaml", [...]);
this.createStack("ssh-bastion",
"vpc/vpc-ssh-bastion.yaml", [...]);
String host = this.getStackOutputValue("ssh-bastion",
"IPAddress");
this.probeSSH(host, key);
this.deleteStack("ssh-bastion");
this.deleteStack("vpc");
this.deleteKey("key");
}