Hi i tried to connect my elixir app using ex_aws to my aws account with access key and its secret key. but its not connecting.
I am receiving these errors, How to resolve this guys…
18:05:09.430 [error] GenServer ExAws.Config.AuthCache terminating
** (RuntimeError) Instance Meta Error: {:error, %{reason: :ehostunreach}}
You tried to access the AWS EC2 instance meta, but it could not be reached.
This happens most often when trying to access it from your local computer,
which happens when environment variables are not set correctly prompting
ExAws to fallback to the Instance Meta.
Please check your key config and make sure they're configured correctly:
For Example:
ExAws.Config.new(:s3)
ExAws.Config.new(:dynamodb)
I have an IAM user with these credential with SNS full access, S3Full access