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.49.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83fd1bc776de832f7d5932506c80d178d42f73e0ccc9e212aac4fe2a4521b7a6 |
|
MD5 | 64e7b980b128c56326e17d3930a86485 |
|
BLAKE2b-256 | d3e2cc836b0b24b7b16ea25677c71760e232ed9ce7234c5fe17b6b178892d709 |
Close
Hashes for cloudcomponents.cdk_wordpress-1.49.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 752a60d44d91ddf960983291cdb90fe22bcbce740580c4db9563eb3ecaa1a4ab |
|
MD5 | 1b86fde8147ddc17f7a57e5950a1fb18 |
|
BLAKE2b-256 | d04800f2fac06152ed9094ac45cbb3d3f17f61168f9c5f71d3e66c2fe38b0579 |