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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4443f056c2b30a7f1aa863a8fce72083c5e650aa87e30d40e89d3d6a0e316155 |
|
MD5 | b38230c468d48eba10fafc7fbcffa942 |
|
BLAKE2b-256 | 5201f8660ae0fad13848ef9b66bfa07302f06d8a9d57e9dce0e74a284a05404a |
Close
Hashes for cdk_simplewebsite_deploy-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e9da46d3cf754274381175e3f0258ed2d25b75ac86a9627c33020fd4660000f |
|
MD5 | 9c6ef100b8a7d6daab21ba2062b37ec8 |
|
BLAKE2b-256 | 8684997286d1d1090295fef7d3d5307113dbebd64894138b2dcbc2418ba6d161 |