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.45.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 775e4783aaa8def34ee806b3b8727fa2825def5dd575c51a2ec3aba2270c7253 |
|
MD5 | a2829e63aa2fd43b0d3f853c61469c07 |
|
BLAKE2b-256 | 3d1bcf2c31c981aea3b03e3bd5795ca802e93783e68af1ed95630500060b4591 |
Close
Hashes for cloudcomponents.cdk_wordpress-1.45.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff788bb3ddc82f35749c21ce224f5228d52a157edb88a556388d3b21dd15e5c4 |
|
MD5 | bf3c04c079cf20f8d6919981d8d85fc8 |
|
BLAKE2b-256 | cc523ded177d8c504ee0c383746253793f44ffc72890d5e64600f73877ecd1f1 |