kubernetes-the-hard-way-aws icon indicating copy to clipboard operation
kubernetes-the-hard-way-aws copied to clipboard

improve instance-querying commands

Open aleks-mariusz opened this issue 5 years ago • 0 comments

The commands that invoke the aws ec2 describe-instances such as these ones will fail if you are going through this a second time, since any previous-runs' worker-node will also be returned, leading to failures that look like this:

An error occurred (InvalidParameterValue) when calling the DescribeInstanceAttribute operation: Value (i-07856279c563df20a
i-0b873ccd72361c70c) for parameter instanceId is invalid. Expected: 'i-...'.
None
10.0.1.20

An error occurred (InvalidInstanceID.Malformed) when calling the CreateRoute operation: Invalid id: "i-07856279c563df20a
i-0b873ccd72361c70c"

Additionally, some of the region-specific queries in the smoke-test can be condensed/optimized into single queries.

I will create a PR to update these commands with the filter improvements in mind

aleks-mariusz avatar Aug 27 '20 13:08 aleks-mariusz