# README
go-aws-cloudfront
Go package providing opinionated tools and methods for working with the aws-sdk-go/service/cloudfront
package.
Documentation
Tools
$> make cli
go build -mod vendor -o bin/invalidate cmd/invalidate/main.go
invalidate
Invalidate one or more URIs from a CloudFront distribution.
$> ./bin/invalidate -h
Invalidate one or more URIs from a CloudFront distribution.
Usage:
./bin/invalidate uri(N) uri(N)
-client-uri string
A valid client URI in the form of 'aws://?region={AWS_REGION}&credentials={CREDENTIALS}' where '{CREDENTIAL}' is expected to be a valid aaronland/go-aws-session credential string.
-distribution-id string
A valid AWS CloudFront distribution ID.
See also
# Packages
package cmd provides opinionate command-line tools for performing CloudFront-related operations.
# Functions
InvalidatePaths will issue a "CreateInvalidation" request for 'uris' in 'distribution_id'.
NewClientWithURI will return a new `aws-sdk-go/service/cloudfront.CloudFront` instance derived from 'uri' which is expected to take the form of:
aws://?region={AWS_REGION}&credentials={CREDENTIALS}
Where '{CREDENTIALS}' is expected to be a valid `aaronland/go-aws-session` credentials string.
NewSessionWithURI will return a new `aws-sdk-go/aws/session.Session` instance derived from 'uri' which is expected to take the form of:
aws://?region={AWS_REGION}&credentials={CREDENTIALS}
Where '{CREDENTIALS}' is expected to be a valid `aaronland/go-aws-session` credentials string.