We are using paperclip gem to use S3 functionality(upload, fetch, check if file present).
We are not providing AWS keys in code, we are using role-based mechanism.
Things work fine on ECS-EC2 but break on ECS fargate but both have the same role and the same attach policies.
On fargate we are getting
Failed to open TCP connection to 169.254.169.254:80 (Invalid argument - connect(2) for "169.254.169.254" port 80)
Any ideas?.