Discover Packages
github.com/skpr/cloudfront-invalidation-metrics
command
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jan 16, 2025
License: GPL-3.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
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.
Opens a new window with list of known importers.
README
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
Providing credentials to the app:
AWS_ACCESS_KEY_ID=x AWS_SECRET_ACCESS_KEY=y go run main.go
Providing credentials via profile to the app:
AWS_PROFILE=z go run main.go
Licence
This project is licenced under GPLv3
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
internal
Click to show internal directories.
Click to hide internal directories.