Skip to content

Refactor AWS Init function logic for waiting for networking #1158

Open
@arithx

Description

@arithx

Feature Request

In #1155 we settled on a temporary solution of using a FetchToBuffer call inside of the platform Init function for AWS to handle waiting for networking to come up before attempting to fetch the region hint from the metadata service. See this comment for more information about why the decision was chosen.

Some alternative potential solutions:

  1. Adding a Retryer to the aws.Config so the AWS API handles retrying (by default it seems that there would only ever be a single retry)
  2. Fetching the region hint from an HTTP URL instead of the AWS API
  3. Putting the API call inside a retry loop (we need to test out the different failure states to make sure that we're only retrying in the case of network/platform errors)

We also need to note the fact that if we do indeed move away from using a FetchToBuffer call we'll need to handle checking the Offline state inside of the Init function.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions