SSO profile from aws sso config – Unable to parse environment specification "aws:///eu-central-1". Expected #28493
Labels
@aws-cdk/aws-sso
Related to the @aws-cdk/aws-sso package
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
Describe the bug
We have a fresh Control Tower landing zone that also setup SSO. An SSO profile named test-profile was configured via
aws configure sso
.When trying to bootstrap the account with
AWS_PROFILE=test-profile cdk bootstrap
the operation fails:Error: Unable to parse environment specification "aws:///eu-central-1". Expected format: aws://account/region
. The account seems to be empty. But other aws cli operations work as expected and the use has sufficient privileges.EDIT: For clarification
aws --profile test-profile sts get-caller-identity
workedExpected Behavior
CDK to properly use the SSO profile from
aws configure sso
Current Behavior
Error: Unable to parse environment specification "aws:///eu-central-1". Expected format: aws://account/region
Reproduction Steps
Possible Solution
No response
Additional Information/Context
Content of my
.aws/config
file:CDK CLI Version
2.116.1 (build 222de71)
Framework Version
No response
Node.js Version
v18.12.1
OS
Mac OS
Language
TypeScript
Language Version
5.3
Other information
No response
The text was updated successfully, but these errors were encountered: