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,
hosted_zone_domain="example.com",
website_domain="example.com",
website_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",
encrypt_bucket=True,
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.25.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd991e557649511c94744f3208b9103d683d11c867d5e267cd78d9b6682e6102 |
|
MD5 | 65e4e656d8fd05f244a6838702283eda |
|
BLAKE2b-256 | e3f1caa4e4ca69db24bbdae56ce41d70c3c88d76cd528085619468ea42e232e2 |
Close
Hashes for cdk_simplewebsite_deploy-0.0.25-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a58ff97b504b20d7cae6ef5f7a925792dee6cb62aa7b405594e578aea96320bc |
|
MD5 | 18096066e3d0c31725677eaa047d9db2 |
|
BLAKE2b-256 | f7c3193a16221125c6efae341b5bf9da8e1c6275833c6e0a8d4a0f6751059754 |