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
import { Wordpress } from '@cloudcomponents/cdk-wordpress';
import { RemovalPolicy, Stack, StackProps, aws_route53 } from 'aws-cdk-lib';
import { Construct } from 'constructs';
export class WordpressStack extends Stack {
constructor(scope: Construct, id: string, props: StackProps) {
super(scope, id, props);
const hostedZone = aws_route53.PublicHostedZone.fromLookup(this, 'HostedZone', {
domainName: 'cloudcomponents.org',
});
new Wordpress(this, 'Wordpress', {
domainName: 'blog.cloudcomponents.org',
domainZone: hostedZone,
removalPolicy: RemovalPolicy.DESTROY,
offloadStaticContent: true, // Support for plugin e.g. `WP Offload Media for Amazon S3`
});
}
}
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-2.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48c1981c4558044303f8f02b659d279db03b7bb2062c656b20b5c2200a90b264 |
|
MD5 | a7b2af0c25fbde61ae5b90eadfe2d6b7 |
|
BLAKE2b-256 | f93914902cfed0d9bf2bea67e6865e8146fded33ae8540b2591244d8de70429d |
Close
Hashes for cloudcomponents.cdk_wordpress-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef28bbe9abf2e162447e4e481a199d424d427981c4b47aa09572ddb3e60e61d2 |
|
MD5 | 484426818891e5a074c997ca7287599c |
|
BLAKE2b-256 | a30acaeeddc2ed6d40b9062d1c3165e45b1fc82ccd94ef1516a0dbe44c3070c2 |