2.1.0 • Published 2 months ago

@cloudcomponents/cdk-wordpress v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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

2.1.0

2 months ago

2.0.0

2 years ago

1.48.0

2 years ago

1.49.0

2 years ago

1.46.0

2 years ago

1.47.0

2 years ago

1.45.0

3 years ago

1.44.0

3 years ago

1.43.0

3 years ago

1.42.0

3 years ago

1.41.0

3 years ago