Skip to main content

cloudcomponents Logo

@cloudcomponents/cdk-wordpress

Build Status cdkdx typescript python

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

MIT

Metadata

Release files for cloudcomponents.cdk-wordpress 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cloudcomponents.cdk-wordpress 2.2.0
File Size Uploaded
cloudcomponents.cdk-wordpress-2.2.0.tar.gz 150.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cloudcomponents.cdk-wordpress 2.2.0
File Interpreter ABI Platform
cloudcomponents.cdk_wordpress-2.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 300.3 kB

Release files / cloudcomponents.cdk-wordpress-2.2.0.tar.gz

Download URL cloudcomponents.cdk-wordpress-2.2.0.tar.gz
Size 150.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e3c6fc25819cf37f71ff40f3e1b92d6dfa9938250a62b040507b63e43c299491
BLAKE2b-256 checksum
How to use checksums
9311c2e4af4f7c4c7a4137bcf2ed48acdc8c4f1bf5a5bf16a3453774f18d1fcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / cloudcomponents.cdk_wordpress-2.2.0-py3-none-any.whl

Download URL cloudcomponents.cdk_wordpress-2.2.0-py3-none-any.whl
Size 149.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a7f46a6d51fd88b322f6999d0d1c47ef93360d6ff2d70643718c9acb6c8faea
BLAKE2b-256 checksum
How to use checksums
474b065cba6b89eaa3f58154096fd6b01ff05553682e5c877bfa612b6dd8756e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

2.2.0 This release

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.49.0

2 release files

1.48.0

2 release files

1.47.0

2 release files

1.46.0

2 release files

1.45.0

2 release files

1.43.0

2 release files

1.42.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page