Skip to main content

CDK Construct to deploy wordpress

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudcomponents.cdk-wordpress-2.1.0.tar.gz (149.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloudcomponents.cdk_wordpress-2.1.0-py3-none-any.whl (147.8 kB view details)

Uploaded Python 3

File details

Details for the file cloudcomponents.cdk-wordpress-2.1.0.tar.gz.

File metadata

File hashes

Hashes for cloudcomponents.cdk-wordpress-2.1.0.tar.gz
Algorithm Hash digest
SHA256 48c1981c4558044303f8f02b659d279db03b7bb2062c656b20b5c2200a90b264
MD5 a7b2af0c25fbde61ae5b90eadfe2d6b7
BLAKE2b-256 f93914902cfed0d9bf2bea67e6865e8146fded33ae8540b2591244d8de70429d

See more details on using hashes here.

File details

Details for the file cloudcomponents.cdk_wordpress-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cloudcomponents.cdk_wordpress-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef28bbe9abf2e162447e4e481a199d424d427981c4b47aa09572ddb3e60e61d2
MD5 484426818891e5a074c997ca7287599c
BLAKE2b-256 a30acaeeddc2ed6d40b9062d1c3165e45b1fc82ccd94ef1516a0dbe44c3070c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page