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: 0
Opens a new window with list of known importers.
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
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
internal
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.