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 { PublicHostedZone } from '@aws-cdk/aws-route53';
import { Construct, RemovalPolicy, Stack, StackProps } from '@aws-cdk/core';

import { Wordpress } from '@cloudcomponents/cdk-wordpress';

export class WordpressStack extends Stack {
  constructor(scope: Construct, id: string, props: StackProps) {
    super(scope, id, props);

    const hostedZone = 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-1.49.0.tar.gz (84.7 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-1.49.0-py3-none-any.whl (83.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cloudcomponents.cdk-wordpress-1.49.0.tar.gz
  • Upload date:
  • Size: 84.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for cloudcomponents.cdk-wordpress-1.49.0.tar.gz
Algorithm Hash digest
SHA256 83fd1bc776de832f7d5932506c80d178d42f73e0ccc9e212aac4fe2a4521b7a6
MD5 64e7b980b128c56326e17d3930a86485
BLAKE2b-256 d3e2cc836b0b24b7b16ea25677c71760e232ed9ce7234c5fe17b6b178892d709

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cloudcomponents.cdk_wordpress-1.49.0-py3-none-any.whl
  • Upload date:
  • Size: 83.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for cloudcomponents.cdk_wordpress-1.49.0-py3-none-any.whl
Algorithm Hash digest
SHA256 752a60d44d91ddf960983291cdb90fe22bcbce740580c4db9563eb3ecaa1a4ab
MD5 1b86fde8147ddc17f7a57e5950a1fb18
BLAKE2b-256 d04800f2fac06152ed9094ac45cbb3d3f17f61168f9c5f71d3e66c2fe38b0579

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