This is an AWS CDK Construct to simplify deploying a single-page website use CloudFront distributions.
Project description
cdk-simplewebsite-deploy
This is an AWS CDK Construct to simplify deploying a single-page website use CloudFront distributions.
Installation and Usage
npm i cdk-simplewebsite-deploy
CreateBasicSite
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
import aws_cdk.core as cdk
from cdk_simplewebsite_deploy import CreateBasicSite
class PipelineStack(cdk.Stack):
def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, synthesizer=None, terminationProtection=None, analyticsReporting=None):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting)
CreateBasicSite(stack, "test-website",
website_folder="./src/build",
index_doc="index.html",
hosted_zone="example.com",
sub_domain="www.example.com"
)
CreateCloudfrontSite
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
import aws_cdk.core as cdk
from cdk_simplewebsite_deploy import CreateCloudfrontSite
class PipelineStack(cdk.Stack):
def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, synthesizer=None, terminationProtection=None, analyticsReporting=None):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting)
CreateCloudfrontSite(stack, "test-website",
website_folder="./src/dist",
index_doc="index.html",
hosted_zone="example.com",
sub_domain="www.example.com"
)
License
Distributed under the Apache-2.0 license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cdk-simplewebsite-deploy-0.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 294dd65602b5a7ea85059eeeabc980aab5d1c0ff5759908bac6cf0a48d1b5010 |
|
MD5 | dbd27bf9909c97d31ba88c7c9196b8e4 |
|
BLAKE2b-256 | a6f1a1b9f716864ea10c9f7de8256794c7fe5c1caa41f769faf4946851b64994 |
Close
Hashes for cdk_simplewebsite_deploy-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f787913b6cfd33415a8e8085c3bf0d384d02964ab4e6d6f55ce61d9f67bf79a |
|
MD5 | 1c7ff4e5269921f6f3ebee7431128e7f |
|
BLAKE2b-256 | d1c77ba580f257f8e6cf5eb00a097cafd016988fe72350ab9e19a3194da0f26e |