-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
golang cdk: using cli sso profile adds slash in region #17320
Comments
@MrArnoldPalmer could you take a look at this? |
@jamesnealcontino If an account is defined via the profile and if you do @rix0rrr are you familiar with any related problems in the CLI? |
Both "CDK_DEFAULT_ACCOUNT" and "CDK_DEFAULT_REGION" are being set through aws sso. I actually can't run It is resolving Is there an order in which the cdk will pull that region from? I'm only aware of |
Turns out this is because the cdk cli doesn't currently support named profiles via sso #5455 Gonna close this in favor of that issue. |
|
What is the problem?
When using a cli sso profile to deploy a Go CDK app, an extra slash is added before the region.
Checking: "~/.aws/config - profile" shows just "region = ap-southeast-2"
the cli returns with
"Unable to parse environment specification \"aws:///ap-southeast-2\". Expected format: aws://account/region"
full cli error log received:
Reproduction Steps
aws sso login --profile
cdk init app --language go
cdk deploy --profile
What did you expect to happen?
Expected cdk to deploy using the region within the chosen cli profile
What actually happened?
an extra slash is getting placed in front of the region
CDK CLI Version
1.130.0
Framework Version
No response
Node.js Version
14.17.6
OS
macOS Big Sur (11.6)
Language
Go
Language Version
go 1.17.2 (darwin/amd64)
Other information
Looks like such a simple bug. Apologies. Have intentions of being able to fix these myself at some point. Wanted to kick it off by getting involved in any way possible.
The text was updated successfully, but these errors were encountered: