CDK Construct to deploy wordpress
Project description
@cloudcomponents/cdk-wordpress
CDK Construct to deploy wordpress
Install
TypeScript/JavaScript:
npm i @cloudcomponents/cdk-wordpress
Python:
pip install cloudcomponents.cdk-wordpress
How to use
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from aws_cdk.aws_route53 import PublicHostedZone
from aws_cdk.core import Construct, RemovalPolicy, Stack, StackProps
from cloudcomponents.cdk_wordpress import Wordpress
class WordpressStack(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)
hosted_zone = PublicHostedZone.from_lookup(self, "HostedZone",
domain_name="cloudcomponents.org"
)
Wordpress(self, "Wordpress",
domain_name="blog.cloudcomponents.org",
domain_zone=hosted_zone,
removal_policy=RemovalPolicy.DESTROY,
offload_static_content=True
)
API Reference
See API.md.
Example
See more complete examples.
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 cloudcomponents.cdk-wordpress-1.42.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3e42c1e23e7d36fe22a669caa9652127b61942406a0bbeb912f1dff2f3e0cfd |
|
MD5 | e5deae7e5bf1c9486c67a2184d3bd2d5 |
|
BLAKE2b-256 | 43bf84d01c02796b93fd9dae5bf51faeafd6df766ca351feac62b278241a4067 |
Close
Hashes for cloudcomponents.cdk_wordpress-1.42.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6135da285b3313062b62cdf5f13cd411832b32ba4699bd0096e5708b71a1a0de |
|
MD5 | a445b0480ab8c8c295115b21c1499b73 |
|
BLAKE2b-256 | 9a730cbf9c5a9b504ef20a3f3904106ef37657ecf4d8c2fff72fafba4421fa98 |