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",
encrypt_bucket=True
)
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_domain="example.com",
website_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.0.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0697c21e97a374c8730b393382c620aafa4359f547e22059e872649edc957093 |
|
MD5 | da4dcbd9d011e86d28205fb44ccd163e |
|
BLAKE2b-256 | a67ce5396fbcd9978d166b973f8391c6ca3f23d0db13a2cb1978a2f0fbaadb8b |
Close
Hashes for cdk_simplewebsite_deploy-0.0.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e48cc5e45bb2470649ab148c9aff98310f3eef361f7ee98da52b63dfd881c0a |
|
MD5 | 276c5ab0b91e523e4ce8c724d0eb16bf |
|
BLAKE2b-256 | 80e49b0f9274054369a00ae575bfd3fd9f1c5345167a5124b9ede7a7e8f78cc4 |