fetch-prices

command module
v0.0.0-...-4cb20d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 22 Imported by: 0

README

Fetch Prices from ENTSO-E

The service retrieves electricity prices from ENTSO-E and inserts them into DynamoDB.

Getting started

The software is designed to run on AWS Lambda, triggered by Amazon EventBridge.

Build

The software should be built using the following command.

GOOS=linux GOARCH=arm64 go build -o bootstrap

Zip the binary and the bidding_zones.json file together.

zip -r fetch-prices.zip bidding_zones.json bootstrap
Deploy

Upload the zipped file to the Lambda function.

The following parameters from SSM parameter store are needed for the software:

  • entsoe_token: secret token for the ENTSO-E API (should be of type secret).
  • scheduler_name: name of the Event Bridge Scheduler that triggers the Lambda function.
  • scheduler_arn: ARN of the Event Bridge Scheduler that triggers the Lambda function.
  • scheduler_role_arn: IAM role ARN for the Scheduler.
  • table_name: the name of the DynamoDB table
  • time_index_name: the index for searching price data by time from the DynamoDB table.
Invoking the lambda function

An Event Bridge Schedule is required to trigger the Lambda function, and the software will manage updating the schedule after creation.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL