Back to home

cloudformation/

cloudfront

Version: 0.0.1

Last Updated: Unknown


Lift - CloudFormation

Node scaffold for CloudFront.

Layout

# key name cloudformation: # building for cloudfront - cloudfront: bucketName: dok-bucket-example

Module files

1AWSTemplateFormatVersion: '2010-09-09'
2Resources:
3 cdnDistribution:
4 Type: 'AWS::CloudFront::Distribution'
5 Properties:
6 DistributionConfig:
7 Origins:
8 - DomainName: git-good-sites.s3.amazonaws.com
9 S3OriginConfig:
10 OriginAccessIdentity: origin-access-identity/cloudfront/E2ACU9GV9OIXSU
11 Id: S3-git-good-sites/<%= bucketName %>
12 OriginPath: /<%= bucketName %>
13 Enabled: 'true'
14 DefaultRootObject: index.html
15 # Aliases:
16 # - www.<%= bucketName %>.com
17 # - <%= bucketName %>.com
18 DefaultCacheBehavior:
19 TargetOriginId: S3-git-good-sites/<%= bucketName %>
20 ForwardedValues:
21 QueryString: 'false'
22 ViewerProtocolPolicy: allow-all
23 PriceClass: PriceClass_All
24 ViewerCertificate:
25 CloudFrontDefaultCertificate: 'true'

Install


Lift generate


Repository

https://github.com/okeeffed/pkg-lift-cloudformation

Sections