### Getting the value of your subdomain NS records in AWS

 - Note your hosted zone ID

```bash
aws route53 list-hosted-zones | jq '.HostedZones[] | select(.Name=="subdomain.example.com.") | .Id'

```

  - Note your nameservers for the subdomain

```bash
aws route53 get-hosted-zone --id $HZC | jq .DelegationSet.NameServers
```
### Getting the value of your subdomain NS records in AWS

 - Note your hosted zone ID

```bash
HZC=$(aws route53 list-hosted-zones | jq -r '.HostedZones[] | select(.Name=="subdomain.example.com.") | .Id' | tee /dev/stderr)

```

  - Note your nameservers for the subdomain

```bash
aws route53 get-hosted-zone --id $HZC | jq .DelegationSet.NameServers
```

Make cmd1 populate the var for cmd2
Make cmd1 populate the var for cmd2

Using `tee /dev/stderr` allows the user to still get output if they copy-pasta the first command. The other changes prepare the HZC variable so it can be used if they copy-pasta the second command.