No that’s not more secure. You never need to read your secrets for AWS into your code. Your secrets never need to be anywhere near your repository in a vault nothing.
The SDK will pick them up from your local computers home directory or from the AWS environment when running on AWS.