crypt icon indicating copy to clipboard operation
crypt copied to clipboard

Not able to connect to AWS using crypt

Open tusharahuja opened this issue 2 years ago • 1 comments

crypt enc aws --key-id <> --region us-east-1 --out /tmp/dd1 --in /tmp/dd ERROR: encrypting failed, file '/tmp/dd': NoCredentialProviders: no valid providers in chain caused by: EnvAccessKeyNotFound: failed to find credentials in the environment. SharedCredsLoad: failed to load profile, default. EC2RoleRequestError: no EC2 instance role found caused by: RequestError: send request failed caused by: Get "http://<IP>/latest/meta-data/iam/security-credentials/": dial tcp <IP>:80: i/o timeout (Client.Timeout exceeded while awaiting headers)

I am able to connect to aws using AWS CLI but not able to connect using crypt

what could be the issue? Any clue? Thanks.

tusharahuja avatar Dec 20 '22 09:12 tusharahuja

This can be tied to the same issue I've opened #25. @tusharahuja you can probably workaround the problem adding the --profile="" to your crypt invocation, but I think the proper way to fix is through my proposal with #26 . @antoniaklja any thoughts?

GabriFedi97 avatar Jan 10 '24 16:01 GabriFedi97