-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[notice] CDK CLI Authentication Issues #1656
Copy link
Copy link
Closed
Labels
bugThis issue is a bug.This issue is a bug.effort/largeLarge work item – several weeks of effortLarge work item – several weeks of effortmanagement/trackingIssues that track a subject or multiple issuesIssues that track a subject or multiple issuesneeds-designThis feature request needs additional design work.This feature request needs additional design work.p2package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.effort/largeLarge work item – several weeks of effortLarge work item – several weeks of effortmanagement/trackingIssues that track a subject or multiple issuesIssues that track a subject or multiple issuesneeds-designThis feature request needs additional design work.This feature request needs additional design work.p2package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI
Type
Fields
Give feedbackNo fields configured for issues without a type.
The CDK CLI has some limitations compared to the AWS CLI. If you are having authentication issues, they might be covered by one of the following issues. Please use this thread to discuss further.
CDK CLI will not read your region from your [default] profile
If your
~/.aws/configis set up like this:Even though your profile
MyProfiledoes not contain aregion, the AWS CLI will read the region from the[default]section. The AWS SDK for JavaScript that the CDK is built on does not do this, so the CDK does not support this. Make sure every profile section contains theregion.Cannot have a profile named "default" in the config file
The following will not work:
The AWS CLI seems to accept this, but the AWS SDK for JavaScript will fail to load the configuration file properly.
How to properly select AWS CLI profiles for your stacks/accounts
See issue #3961