Skip to content

Make Hardware lifetime for EKS dynamic #12

@geurjas

Description

@geurjas

The docker image has hardcoded 5 years lifetime duration:
keit.go:

59 func getEmbeddedValue(instanceType string) (float64, error) {
60         url := fmt.Sprintf("http://boaviztapi-service:5000/v1/cloud/instance?provider=aws&instance_type=%s&verbose=false&duration=43800&criteria=gwp", instanceType)

43800/hour per day/days per year.
43800/24/365 = 5 years

From: https://api.boavizta.org//docs#/cloud/instance_cloud_impact_v1_cloud_instance_get :
DurationUsage impacts can be given as a router parameter, in hours. If no duration is given, the impact is assess for the all life duration of the asset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions