cloudfront-invalidation-metrics

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: GPL-3.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Cloudfront Invalidation Metrics

CloudFront Invalidation Metrics offer users with access to CloudWatch dashboards some interesting new graphs which show the following custom metrics:

  • Invalidation count per CloudFront distribution ID
  • Paths selectively invalidated per CloudFront distribution ID.

How to

The Lambda can be run locally as a Go binary without the Lambda variables _LAMBDA_SERVER_PORT or AWS_LAMBDA_RUNTIME_API being set like normal:

go run main.go

It will however need to authenticate to AWS in the standard way, so set the following variables as needed to authenticate.

Variable Explaination
Configuration file AWS_CONFIG_FILE Configuration file for AWS to use
Defaults to `${HOME}/.aws/credentials.
Profile AWS_PROFILE Name of the profile to use in your configuration file.
Region AWS_REGION The regional identifier - such as ap-southeast-2.
Access Key ID AWS_ACCESS_KEY_ID The access key ID from your IAM credentials.
Secret Access Key AWS_SECRET_ACCESS_KEY The secret access key from your IAM credentials.

Examples

  1. Providing credentials to the app:
    AWS_ACCESS_KEY_ID=x AWS_SECRET_ACCESS_KEY=y go run main.go
    
  2. Providing credentials via profile to the app:
    AWS_PROFILE=z go run main.go
    

Licence

This project is licenced under GPLv3

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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