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="example.com",
website_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.0.30.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c0a1e3bfe0dbb893f45c73580ff2774d6c71eb15985dddbb0715c8b98ba6956 |
|
MD5 | 700211df166674a80d58cb71e4859a50 |
|
BLAKE2b-256 | c6b22aae1be7b1ee5bbd84218b1b7f1781883205bcdc17bf9c9d08a6212dec6c |
Close
Hashes for cdk_simplewebsite_deploy-0.0.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 644c5383e236cc3cf2b8ae648cb67b7766e63ab0eddb33e425d31891a9105212 |
|
MD5 | 410f834993c29256c3f8a8d0a1028eb3 |
|
BLAKE2b-256 | 5c2762ac7812dfba62c284ed8626b89ca4d34cd227a4ee42d00b5e8a09eed455 |