Platform: Mac Mojave
CLI Version: v0.0.7
My default profile is configured with a credential_process (to pull credentials from our federation service).
I used ecs-preview init for the first time and followed the prompts. The flow did not prompt me for a profile. After the Created environment step, the prompts stopped and hanged. I interrupted the CLI and did ecs-preview deploy, saw the same behavior, but this time I let it sit until I saw an error, which was about 2 minutes later.
mactop % ecs-preview deploy
Only found one app, defaulting to: meshy
Only found one environment, defaulting to: test
Error: get ECR repository URI: ecr describe repository meshy/meshy: NoCredentialProviders: no valid providers in chain
caused by: EnvAccessKeyNotFound: failed to find credentials in the environment.
SharedCredsLoad: failed to load profile, .
EC2RoleRequestError: no EC2 instance role found
caused by: RequestError: send request failed
caused by: Get http://169.254.169.254/latest/meta-data/iam/security-credentials/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
SharedCredsLoad: failed to load profile, . misled me into believing it wasn't using the default profile and was looking up garbage.
AWS_PROFILE as there doesn't seem to be a flag for deploy) to one that uses IAM user credentials. Success.credential_process. Failure.credential_process from default and using IAM user creds. Success.initThanks so much for the awesome feedback!
Hey @efe-selcuk :wave: It's been a while :) but we reproduced the error and #1205 should fix it !
The fix was released with v0.3.0!