cfn-modules: Amazon CloudFront
Amazon CloudFront to deliver content from S3 bucket
Install
Install Node.js and npm first!
npm i @cfn-modules/cloudfront
Usage
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'cfn-modules example'
Resources:
Bucket:
Type: 'AWS::CloudFormation::Stack'
Properties:
Parameters:
OriginBucketModule: !GetAtt 'Bucket.Outputs.StackName'
LogsBucketModule: '' # optional
TemplateURL: './node_modules/@cfn-modules/cloudfront/module.yml'
Parameters
Name | Description | Default | Required? | Allowed values |
---|---|---|---|---|
OriginBucketModule | Stack name of s3-bucket module (only works in combination with Access := [CloudFrontRead]) | yes | ||
LogsBucketModule | Stack name of s3-bucket module (only works in combination with Access := [CloudFrontAccessLogWrite]) | no |