diff --git a/main.go b/main.go index 733c03c..9d2b14b 100644 --- a/main.go +++ b/main.go @@ -23,7 +23,7 @@ import ( var ( configFilePath = fmt.Sprintf("%s/.aws/roles", os.Getenv("HOME")) - roleArnRe = regexp.MustCompile(`^arn:aws:iam::(.+):role/([^/]+)(/.+)?$`) + roleArnRe = regexp.MustCompile(`^arn:aws(-((cn)|(us-gov)))?:iam::(.+):role/([^/]+)(/.+)?$`) ) func usage() {