Application panics at aws_smithy_client::conns::https while getting credentials when running as a task in ECS but not locally #728
-
Hi, I've spent a lot of time troubleshooting this and searching for answers, but I haven't found anything that works. I am a bit loss as to why my app is working locally but not as an ECS Task My application is a web server running on rocket and interfaces with s3. Locally, everything is working fine, but when I push it into ECS and start a task, the application panics trying to load config. Here is the output I am able to get using RUST_BACKTRACE=1
Docker file is Locally I am working on Windows 11 Cargo.toml dependencies below:
I started here:
have ended up here, compiling in my keys during build pipeline just to see if it was something odd with the env variables on ECS
Thanks for your assistance, apologies in advance if I have missed something super trivial, but the erroring on this could be a lot more clearer as well. :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
answer was to install ca-certificates in the Docker file. A nice error message instead of a panic! would be nice :) something like "(unable to get local issuer certificate)" |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
answer was to install ca-certificates in the Docker file.
A nice error message instead of a panic! would be nice :) something like "(unable to get local issuer certificate)"