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.44.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d87bfa369327db453822780d78c9bc7b4831ec3b7779c34e188a0e9b175636b |
|
MD5 | d1b9a3c083f9bb66a75eacc469eac1f3 |
|
BLAKE2b-256 | 16aeae9ab722433f9fce72a314c06b641a35fc4b1b3c17e0cced1732c1aca395 |
Close
Hashes for cloudcomponents.cdk_wordpress-1.44.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2c661d906d68524ae1db2b34cbfd49a582fb520430b1680033dc8a25f0862e2 |
|
MD5 | e50aa840a3f73fdb8cdf3463eedf1394 |
|
BLAKE2b-256 | 5b2296a6a1b384793fcf777ef2efed3a36ea1ef2467ec27a7068f9f9cbf10577 |