-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
aws cdk --profile use toolkit set default_account error #8420
Comments
@shivlaks Hi shivlaks thank you for your reply. According to the issue you provided, I changed the way of using the certificate and now it can work normally.I suggest that assme Role be added to the credential usage of CDK, which is a common usage scenario. |
We do support assuming a role but I think I'll make some updates to our documentation and add some better examples. |
Ec2 Instance IAM in CDK environment does not have any permissions, all permissions come from AWS CLI credentials, and credentials are obtained through credential_process. How do I make it applicable in CDK
Reproduction Steps
such as: .aws/config profile
[profile staging]
region=ap-northeast-1
output=json
credential_process = "/home/ubuntu/staging.sh" "--username staging"
but found this error :
this is my cmd code
Error Log
error info
Environment
Other
The account of ec2 instance is not the account of profile specified by me. How can I change it to make CDK run successfully?
Implement way
use python subprocess command line
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: