You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("unable to get caller identity: %v", err)
148
+
}
149
+
cfg.AccountID=*res.Account
153
150
returnnil
154
151
}
155
152
156
153
// Validate ensures the options are valid
157
154
func (cfg*Config) Validate() error {
158
-
ifcfg.AccountID=="" {
159
-
returnerrors.New("unable to start service controller as account ID is missing. Please pass --aws-account-id flag or set AWS_ACCOUNT_ID environment variable")
155
+
iferr:=cfg.SetAWSAccountID(); err!=nil {
156
+
returnerrors.New("unable to determine account ID. Please make sure AWS credentials are setup in controller pod")
160
157
}
158
+
161
159
ifcfg.Region=="" {
162
160
returnerrors.New("unable to start service controller as AWS region is missing. Please pass --aws-region flag or set AWS_REGION environment variable")
0 commit comments