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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3739e0ffc8c7e45c3647b855b60397ce0fb32a1d5f2d2bcd57a24d8829fbe029 |
|
MD5 | c282c650bc19130ae168e749608a2d8c |
|
BLAKE2b-256 | 6f8db4e715dac057577f371f17fd76f62fa7ca3c920192039d1cbcff1900473d |
Close
Hashes for cloudcomponents.cdk_wordpress-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46b751577f3cc944bbe5aca41ff4f3c4ae5f5cf473a5ea831dca99674af574e0 |
|
MD5 | 82271341c8276f1708b8299ef9daa868 |
|
BLAKE2b-256 | 67aaec602f6f502fb13153ed4bf505c4999eb3946403c47aa80f9d9e6500cff1 |