mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-08 01:05:16 -04:00
ci: limit prefix length of AWS IAM resources (#1674)
This commit is contained in:
parent
c962e1745f
commit
ded8abeacc
1 changed files with 3 additions and 0 deletions
|
@ -389,6 +389,9 @@ func (c *awsIAMCreator) parseFlagsAndSetupConfig(cmd *cobra.Command, flags iamFl
|
|||
if err != nil {
|
||||
return iamFlags{}, fmt.Errorf("parsing prefix string: %w", err)
|
||||
}
|
||||
if len(prefix) > 36 {
|
||||
return iamFlags{}, fmt.Errorf("prefix must be 36 characters or less")
|
||||
}
|
||||
zone, err := cmd.Flags().GetString("zone")
|
||||
if err != nil {
|
||||
return iamFlags{}, fmt.Errorf("parsing zone string: %w", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue