-
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
Does cdk support IAM profile #480
Comments
That's right, we don't support them yet. We do have it on the roadmap though. In the mean time, the workaround is to populate your shell with the appropriate credentials. |
You can actually try to select a profile using environment variables ( Also, we're using the AWS SDK for Javascript behind the scenes, and in some cases an attempt to call the EC2 Metadata Service can cause a very long pause. If you're not running on an EC2 instance, you could consider adding |
Hi @RomainMuller , I did following and then try run cdk ls -l, it is still not working and hanging. Also, I did all this in EC2 instance of Amazon Linux AMI, and it worked perfectly. However, their I didn't have multiple profile. |
Hey @nikhilbhoj, Okay. I was afraid of this but hoping it would work. It may help troubleshooting if you can collect the output of running |
👍 |
Hey @RomainMuller , I did following as suggested by you. I hope this information may help. vagrant@vagrant: vagrant@vagrant:~/hello-cdk$ cdk ls -l --verbose It is getting stuck here. |
This adds support for AWS profiles to the CDK toolkit. At the same time, it overhauls how the AWS SDK is configured. The configuration via environment variables set at just the right time is removed, and we reimplement some parts of the SDK in an AWS CLI-compatible way to get a consistent view on the account ID and region based on the provided configuration. Fixes a bug in the AWS STS call where it would do two default credential lookups (down to one now). Fixes #480.
This adds support for AWS profiles to the CDK toolkit. At the same time, it overhauls how the AWS SDK is configured. The configuration via environment variables set at just the right time is removed, and we reimplement some parts of the SDK in an AWS CLI-compatible way to get a consistent view on the account ID and region based on the provided configuration. Fixes a bug in the AWS STS call where it would do two default credential lookups (down to one now). Fixes #480.
Hi,
I tried to run the cdk ls -l and I have multiple profile set up in my credential file.
This commands just hangs and I assume that cdk does not support profile too, as I cannot find the details in the help of cdk command.
The text was updated successfully, but these errors were encountered: