I am new to AWS and I finally figured out how to setup IAM Identity to use the SDK. However, to use it I need to use my CLI to login to initiate a new session which requires a browser to open and some fancy 2-factor method using my phone.
Something does not seem right because once my application gets bundled up into a container, how am I expected to refresh the session every 12 hours, for each container I run?
I have considered the long-term auth method but AWS strongly recommends against that.