Skip to content

Select a grid region for GHG Scope 2 emissions calculation based on Country/Zip code

Notifications You must be signed in to change notification settings

benoitdechateauvieux/grid-region-selector

Repository files navigation

Grid Region selector

Select a grid region for GHG Scope 2 emissions calculation based on Country/Zip code.
Grid region is used in the GHG Emissions calculation tool

Region selection

How to deploy?

  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

How to invoke?

Input

Input parameter for the lambda function is a json document the following properties:

  • country: 2 letters country code (ISO 3166-2)
  • zipcode: alphanumeric, country-specific
    • For the USA: a 5-digits ZIP code with leading zeroes (ex: "38940" or "01742")
{
    "country": "US",
    "zipcode": "38940"
}

Output

A Grid region as defined in the Scope 2 "Purchased Electricity" Emission Factors table of the GHG Emissions calculation tool.

{
    "region": "SRSO"
}

Backlog

  • USA: Include eGRID sub-regions #2 et #3 (currently, only subregion #1 is returned)
  • Support other countries

About

Select a grid region for GHG Scope 2 emissions calculation based on Country/Zip code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published