Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8506819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:41:47+00:00 2026-06-11T02:41:47+00:00

EC2 instance can retrieve there metadata with an HTTP GET to 169.254.169.254. If the

  • 0

EC2 instance can retrieve there metadata with an HTTP GET to “169.254.169.254”. If the instance in properly assigned an IAM role, it can automatically “discover” its API credentials.

But these are temporary and must be periodically renewed. Boto automatically does it if they expire less than 5 minutes after the check.

Occasionally, the renew can be very long (a couple of minutes). Before I switch to this system, Is there a period during which both current and “future” credentials can be used or are the current credentials invalidated as soon as I query for the new ones ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T02:41:49+00:00Added an answer on June 11, 2026 at 2:41 am

    New credentials are issued automatically and pushed out to the instance before the old credentials expire.

    When you query the instance meta data service at 169.254.169.254, you will always get valid(unexpired) credentials.

    If you are caching credentials in your application, the guidance is to refresh the credentials by calling the instance meta data service at least 15 minutes before the prior ones expire. If you are using the AWS SDK, refreshing of credentials is automatically taken care of by the SDK.

    More details are also available at http://aws.amazon.com/iam/faqs/#How_do_i_get_started_with_IAM_roles_for_EC2_instances

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I check which platform my app runs, AWS EC2 instance, Azure Role
I have installed openjdk+tomcat7 on ubuntu EC2 instance. After do some test http and
Is there a way to start / stop an Amazon EC2 instance from Google
I have setup a new EC2 instance on AWS and I'm trying to get
Can I download an EC2 instance in vhd format? Or download it in AMI
How can i connect to my ec2 instance through filezilla..? thanks
I can connect to my Amazon EC2 instance via the pem file that I've
All I Can't start up mysqld on aws.ec2.instance, colude help me? I don't know
How can I find out the instance id of an ec2 instance from within
I'm building a MYSQL database driven website on a AWS EC2 instance. Users can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.