Boto3 is very slow on AWS Fargate

I am deploying a Streamlit app on AWS as a Fargate app. My boto3 calls are very slow, however. Things like retrieving a parameter from the parameter store on AWS takes multiple minutes or making an authentication call to cognito takes 10+ minutes to return. How anyone ever expirience this issue before?