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.46.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f3fe18ae09e103e012f0e2b7c0d79cf4e7660accd32516ca4722bd930e6e60e |
|
MD5 | b62a78c2152c6c7895952436977a8151 |
|
BLAKE2b-256 | 1523928a2a254d7b15be9fd03fc9ae1da76347e96ec3b6de37aafc59735cda6c |
Close
Hashes for cloudcomponents.cdk_wordpress-1.46.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d9673418f8e4a23eb4e50e7082ea1b1b8f3c70d7edf812ae8008e1421aadc74 |
|
MD5 | 74e356ffa0463002e3820d7105caa037 |
|
BLAKE2b-256 | 3893a958956a3b6586fea9928900e893a70ae5d3e1898fcb0d3c1d51d7973ad9 |