I cd
into the directory where all the pem/key files are and run the following:
aws iam upload-server-certificate
--server-certificate-name certificate_name
--certificate-body file://webservercertificate.pem
--private-key file://server.key
--certificate-chain file://certificate_chain_file.pem
I get the following error:
A client error (InvalidClientTokenId) occurred when calling the UploadServerCertificate operation: The security token included in the request is invalid.
I have 1 'user' in 'users'. That user has been assigned the following permissions:
IAMFullAccess IAMReadOnlyAccess IAMUserSSHKeys
I've downloaded the credentials for this user and put them into my user variables
AWS_ACCESS_KEY ****
AWS_SECRET_KEY ****
I have 1 role on my elastic beanstalk aws-elasticbeanstalk-ec2-role
aws iam
actions successfully? It sounds like you are using invalid credentials to access the service. – Carrelaws iam list-users
and see if you get an output or same error? – Distinctlyprofiles.awsbatch.accessKey
andprofiles.awsbatch.secretKey
if you created new key(s) in exchange for old one(s). – Pledget