How to store AWS user access key and secret key in Jenkins
You can store your AWS keys securely in Jenkins credentials. If you want to interact with AWS from your Jenkins server, you can store your AWS IAM user keys securely in Jenkins rather than openly using the keys in your Jenkins Pipeline. "CloudBees AWS Credentials" Jenkins plugin allows storing AWS IAM user credentials within the Jenkins Credentials API. We can then use these credentials in our pipeline and inject them in the pipeline with the "withAWS" step. To use "withAWS" step, we need to install the "AWS Steps Plugin" plugin.
Howtoforge published a tutorial about how to store AWS user access key and secret key in Jenkins.