Deploy S3 ; s3 scrip only support s3cmd config file what is very uncomfortable and could be unsecure
From official documentation we can see that credential file is on 6th position. But with current implementation it's only possible because script writes this file and if it can't then it crashes:boom::boom::boom::boom::boom::boom:.
I prefer to set credentials through secret managers when I build it on CI. But the most correct way on AWS infrastructure would be through assume role logic.