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
File details
Details for the file cloudcomponents.cdk-wordpress-2.2.0.tar.gz
.
File metadata
- Download URL: cloudcomponents.cdk-wordpress-2.2.0.tar.gz
- Upload date:
- Size: 150.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3c6fc25819cf37f71ff40f3e1b92d6dfa9938250a62b040507b63e43c299491 |
|
MD5 | 181916a51a192aa663c474a7308bf546 |
|
BLAKE2b-256 | 9311c2e4af4f7c4c7a4137bcf2ed48acdc8c4f1bf5a5bf16a3453774f18d1fcb |
File details
Details for the file cloudcomponents.cdk_wordpress-2.2.0-py3-none-any.whl
.
File metadata
- Download URL: cloudcomponents.cdk_wordpress-2.2.0-py3-none-any.whl
- Upload date:
- Size: 149.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a7f46a6d51fd88b322f6999d0d1c47ef93360d6ff2d70643718c9acb6c8faea |
|
MD5 | 2b0ebc9c9d47b840cbdcd33bad4aae1c |
|
BLAKE2b-256 | 474b065cba6b89eaa3f58154096fd6b01ff05553682e5c877bfa612b6dd8756e |