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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca8cb982a781b48466749f91213b65cf6e0f9e7ce3b3c8f7f63939d19e47a495 |
|
MD5 | 4f4acf28aac28b26137b141b0b1da9eb |
|
BLAKE2b-256 | 3844f8349f6eb77f8a3cdd06d9eb60b80d60651df45b492d0943921f5c282972 |
Close
Hashes for cdk_simplewebsite_deploy-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd051cd443a30bcd6c4e47173f7108b5933d0a1f842fd8149136429c993f95d1 |
|
MD5 | 3e1a6df4616c3fb4c416799412e8bd28 |
|
BLAKE2b-256 | f9378e7bf4dbaec7a6fbec7d421ab22b5ba958dfc65cdf330e083dc5900805cb |