diff --git a/provider/clusterrosa/common/consts.go b/provider/clusterrosa/common/consts.go index bd3d4565..6c995335 100644 --- a/provider/clusterrosa/common/consts.go +++ b/provider/clusterrosa/common/consts.go @@ -25,7 +25,7 @@ const ( MaxClusterDomainPrefixLength = 15 ) -var UserArnRE = regexp.MustCompile("^(arn:(?:aws|aws-us-gov|aws-cn):(?:iam|sts)::\\d{12}(?:|:(?:root|user|assumed-role)(?:\\/?.+\\/?)?)(?:\\/[0-9A-Za-z\\+\\.@_,-]{1,64}))$") +var UserArnRE = regexp.MustCompile("^(arn:(?:aws|aws-us-gov|aws-cn):(?:iam|sts)::\\d{12}(?:|:(?:root|user|assumed-role|role)(?:\\/?.+\\/?)?)(?:\\/[0-9A-Za-z\\+\\.@_,-]{1,64}))$") var OCMProperties = map[string]string{ PropertyRosaTfVersion: build.Version,