0

I am new to AWS and Jenkins. I am trying to connect an ec2 instance that has Jenkins installed to the AWS cloud plugin but for some reason, I am unsure why i am getting the following issue '

Failed to obtain credentials from EC2 instance profile: The requested metadata is not found at 'http://169.254.169.254/latest/meta-data/iam/security-credentials/

'

enter image description here

4
  • 1
    Have you attached the IAM role to the EC2 instance?
    – hazmei
    Dec 17, 2022 at 8:20
  • I see that the IAM Role is showing - for the intance . How do i attach the iam role to the ec2 instance?@hazmei Dec 18, 2022 at 3:34
  • docs.aws.amazon.com/AWSEC2/latest/UserGuide/… A simple google search will bring up this url.
    – hazmei
    Dec 19, 2022 at 5:37
  • @hazmei you are correct thanks but i run into another issue where jenkins produce this error Dec 21, 2022 at 2:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.