It’s fairly legacy these days to use hardcoded IAM Access Key ID and Secret Access Key values to call the AWS API, which has spawned a variety of different ways to obtain and utilise IAM credentials.
I work both as a Technical Architect designing, deploying and supporting effective solutions on Amazon Web Services and as a freelance radio presenter.