When trying to deploy a node in AWS EC2 on Rancher v1.6.x, you recieve an error like
Error in driver during machine creation: Error launching instance: InvalidParameterValue: Invalid value 'r5.12xlarge\t' for InstanceType.
- Running Rancher UI v1.6.50 or earlier (included by default in Rancher v1.6.28 or earlier)
- Trying to deploy an AWS EC2 node of size
The fix is in rancher ui v1.6.51 which is introduced in Rancher v1.6.29. Upgrade to v1.6.29 or later to deploy EC2 nodes of the affected sizes. It is advised to upgrade to the latest stable Rancher v1.6.x and migrate to latest stable Rancher v2.x
The issue is a trailing tab in the name of the instance type. The commit that solves the issue can be seen here: https://github.com/rancher/ui/commit/5709e997aea949f41e299db8f519dc046d731cb9 rancher/ui v1.6.51: https://github.com/rancher/ui/tree/v1.6.51/app/components/machine rancher/rancher v1.6.29: https://github.com/rancher/rancher/releases/tag/v1.6.29