Cannot perform an interactive login from a non TTY device
Unable to use AWS CLI in Jenkins due to "Unable to locate credentials" error
Last updated
Unable to use AWS CLI in Jenkins due to "Unable to locate credentials" error
Last updated
Method (1)
Update your aws credentials within the the bash of the jenkins server. With the following commands:
Method (2)
Another method
Make directory in /var/lib/jenkins
that called .aws (or copy .aws folder from home directory if you already configured your aws credentials via "aws configure" command)
Then go down to /var/lib/jenkins/.aws
and write sudo shown -R jenkins ./
to change owner for files in .aws directory.
You can check again with the given command: