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 { PublicHostedZone } from '@aws-cdk/aws-route53';
import { Construct, RemovalPolicy, Stack, StackProps } from '@aws-cdk/core';
import { Wordpress } from '@cloudcomponents/cdk-wordpress';
export class WordpressStack extends Stack {
constructor(scope: Construct, id: string, props: StackProps) {
super(scope, id, props);
const hostedZone = 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-1.48.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be6681d06f9fd918efc02bb31d084265facfef722a2eafa8727c16469c5225b5 |
|
MD5 | 07b0e8a5c54cf9dd61e51b09c7900ccc |
|
BLAKE2b-256 | 6aad3ff8212d4464ce503a777998c841a0b67876a3feeda75e68740a7a00e62f |
Close
Hashes for cloudcomponents.cdk_wordpress-1.48.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 287b7ec2f49f492b77f90795da4ba4c8f9f5b15a31de81cb873c00a1ac279cb9 |
|
MD5 | 63ee8aa89677889e794d30c4b87c155a |
|
BLAKE2b-256 | b2eaf7d3704799d5857478334db647b55d2263583a4bc4910a6d6cfab32a1fa9 |