e2e: ssh instructions + remove redundant naming
This commit is contained in:
parent
19889d6468
commit
f08dd66ffa
|
@ -15,8 +15,16 @@ $ envchain nomadaws TF_VAR_nomad_sha=<nomad_sha> terraform apply
|
|||
|
||||
After this step, you should have a nomad client address to point the end to end tests in the `e2e` folder to.
|
||||
|
||||
Teardown
|
||||
========
|
||||
## SSH
|
||||
|
||||
Terraform will output node IPs that may be accessed via ssh:
|
||||
|
||||
```
|
||||
ssh -i keys/nomad-e2e-*.pem ubuntu@${EC2_IP_ADDR}
|
||||
```
|
||||
|
||||
|
||||
## Teardown
|
||||
The terraform state file stores all the info, so the nomad_sha doesn't need to be valid during teardown.
|
||||
|
||||
```
|
||||
|
|
|
@ -49,7 +49,7 @@ locals {
|
|||
|
||||
# Generates keys to use for provisioning and access
|
||||
module "keys" {
|
||||
name = "nomad-e2e-${local.random_name}"
|
||||
name = "${local.random_name}"
|
||||
path = "${path.root}/keys"
|
||||
source = "mitchellh/dynamic-keys/aws"
|
||||
}
|
||||
|
@ -88,5 +88,10 @@ Then you can run e2e tests with:
|
|||
```
|
||||
go test -v ./e2e
|
||||
```
|
||||
|
||||
ssh into nodes with:
|
||||
```
|
||||
ssh -i keys/${local.random_name}.pem ubuntu@${aws_instance.client.0.public_ip}
|
||||
```
|
||||
EOM
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue