mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
limit aws cluster name len (#454)
* limit aws cluster name len down to 10, 32-character name limit in AWS Signed-off-by: Fabian Kammel <fk@edgeless.systems>
This commit is contained in:
parent
934d173650
commit
04d0c770af
@ -94,6 +94,9 @@ func create(cmd *cobra.Command, creator cloudCreator, fileHandler file.Handler,
|
||||
switch provider {
|
||||
case cloudprovider.AWS:
|
||||
instanceType = config.Provider.AWS.InstanceType
|
||||
if len(flags.name) > 10 {
|
||||
return fmt.Errorf("cluster name on AWS must not be longer than 10 characters")
|
||||
}
|
||||
case cloudprovider.Azure:
|
||||
instanceType = config.Provider.Azure.InstanceType
|
||||
case cloudprovider.GCP:
|
||||
|
Loading…
Reference in New Issue
Block a user