Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

This sets the default timeout and retries for the IAM service #181

Merged
merged 1 commit into from
Sep 29, 2018

Conversation

sargun
Copy link
Contributor

@sargun sargun commented Sep 28, 2018

When the container hits the metadata service for its IAM credentials, we lazily request them.
The Boto client expects this API to return in less than one second and return credentials.
This bumps the retries, and timeout to a bigger number.

@coveralls
Copy link

coveralls commented Sep 28, 2018

Pull Request Test Coverage Report for Build 2158

  • 9 of 9 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.06%) to 24.57%

Totals Coverage Status
Change from base Build 2132: 0.06%
Covered Lines: 2441
Relevant Lines: 9935

💛 - Coveralls

@codecov
Copy link

codecov bot commented Sep 28, 2018

Codecov Report

Merging #181 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #181      +/-   ##
==========================================
+ Coverage   33.36%   33.42%   +0.05%     
==========================================
  Files          66       66              
  Lines        7876     7883       +7     
==========================================
+ Hits         2628     2635       +7     
  Misses       4928     4928              
  Partials      320      320
Impacted Files Coverage Δ
executor/runtime/types/types.go 79.54% <ø> (ø) ⬆️
config/config.go 97.1% <100%> (+0.1%) ⬆️

@@ -68,6 +68,8 @@ func NewConfig() (*Config, []cli.Flag) {
hardCodedEnv: []string{
"NETFLIX_APPUSER=appuser",
"EC2_DOMAIN=amazonaws.com",
"AWS_METADATA_SERVICE_TIMEOUT=5",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a comment that these are standard AWS SDK environment vars? Other than that, LGTM.

…er numbers.

When the container hits the metadata service for its IAM credentials, we lazily request them.
The Boto client expects this API to return in less than one second and return credentials.
This bumps the retries, and timeout to a bigger number.
@sargun sargun merged commit 0c91eff into master Sep 29, 2018
@sargun sargun deleted the set-aws-metadata-timeout branch September 29, 2018 14:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants