[![cloudcomponents Logo](https://raw.githubusercontent.com/cloudcomponents/cdk-constructs/master/logo.png)](https://github.com/cloudcomponents/cdk-constructs)
# @cloudcomponents/cdk-wordpress
[![Build Status](https://github.com/cloudcomponents/cdk-constructs/workflows/Build/badge.svg)](https://github.com/cloudcomponents/cdk-constructs/actions?query=workflow=Build)
[![cdkdx](https://img.shields.io/badge/buildtool-cdkdx-blue.svg)](https://github.com/hupe1980/cdkdx)
[![typescript](https://img.shields.io/badge/jsii-typescript-blueviolet.svg)](https://www.npmjs.com/package/@cloudcomponents/cdk-wordpress)
[![python](https://img.shields.io/badge/jsii-python-blueviolet.svg)](https://pypi.org/project/cloudcomponents.cdk-wordpress/)
> CDK Construct to deploy wordpress
## Install
TypeScript/JavaScript:
```bash
npm i @cloudcomponents/cdk-wordpress
```
Python:
```bash
pip install cloudcomponents.cdk-wordpress
```
## How to use
```python
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](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-wordpress/API.md).
## Example
See more complete [examples](https://github.com/cloudcomponents/cdk-constructs/tree/master/examples).
## License
[MIT](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-wordpress/LICENSE)
Raw data
{
"_id": null,
"home_page": "https://github.com/cloudcomponents/cdk-constructs",
"name": "cloudcomponents.cdk-wordpress",
"maintainer": null,
"docs_url": null,
"requires_python": "~=3.8",
"maintainer_email": null,
"keywords": null,
"author": "hupe1980",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/f9/39/14902cfed0d9bf2bea67e6865e8146fded33ae8540b2591244d8de70429d/cloudcomponents.cdk-wordpress-2.1.0.tar.gz",
"platform": null,
"description": "[![cloudcomponents Logo](https://raw.githubusercontent.com/cloudcomponents/cdk-constructs/master/logo.png)](https://github.com/cloudcomponents/cdk-constructs)\n\n# @cloudcomponents/cdk-wordpress\n\n[![Build Status](https://github.com/cloudcomponents/cdk-constructs/workflows/Build/badge.svg)](https://github.com/cloudcomponents/cdk-constructs/actions?query=workflow=Build)\n[![cdkdx](https://img.shields.io/badge/buildtool-cdkdx-blue.svg)](https://github.com/hupe1980/cdkdx)\n[![typescript](https://img.shields.io/badge/jsii-typescript-blueviolet.svg)](https://www.npmjs.com/package/@cloudcomponents/cdk-wordpress)\n[![python](https://img.shields.io/badge/jsii-python-blueviolet.svg)](https://pypi.org/project/cloudcomponents.cdk-wordpress/)\n\n> CDK Construct to deploy wordpress\n\n## Install\n\nTypeScript/JavaScript:\n\n```bash\nnpm i @cloudcomponents/cdk-wordpress\n```\n\nPython:\n\n```bash\npip install cloudcomponents.cdk-wordpress\n```\n\n## How to use\n\n```python\nimport { Wordpress } from '@cloudcomponents/cdk-wordpress';\nimport { RemovalPolicy, Stack, StackProps, aws_route53 } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\n\nexport class WordpressStack extends Stack {\n constructor(scope: Construct, id: string, props: StackProps) {\n super(scope, id, props);\n\n const hostedZone = aws_route53.PublicHostedZone.fromLookup(this, 'HostedZone', {\n domainName: 'cloudcomponents.org',\n });\n\n new Wordpress(this, 'Wordpress', {\n domainName: 'blog.cloudcomponents.org',\n domainZone: hostedZone,\n removalPolicy: RemovalPolicy.DESTROY,\n offloadStaticContent: true, // Support for plugin e.g. `WP Offload Media for Amazon S3`\n });\n }\n}\n```\n\n## API Reference\n\nSee [API.md](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-wordpress/API.md).\n\n## Example\n\nSee more complete [examples](https://github.com/cloudcomponents/cdk-constructs/tree/master/examples).\n\n## License\n\n[MIT](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-wordpress/LICENSE)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "CDK Construct to deploy wordpress",
"version": "2.1.0",
"project_urls": {
"Homepage": "https://github.com/cloudcomponents/cdk-constructs",
"Source": "https://github.com/cloudcomponents/cdk-constructs.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a30acaeeddc2ed6d40b9062d1c3165e45b1fc82ccd94ef1516a0dbe44c3070c2",
"md5": "484426818891e5a074c997ca7287599c",
"sha256": "ef28bbe9abf2e162447e4e481a199d424d427981c4b47aa09572ddb3e60e61d2"
},
"downloads": -1,
"filename": "cloudcomponents.cdk_wordpress-2.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "484426818891e5a074c997ca7287599c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.8",
"size": 147831,
"upload_time": "2024-03-25T18:26:16",
"upload_time_iso_8601": "2024-03-25T18:26:16.951549Z",
"url": "https://files.pythonhosted.org/packages/a3/0a/caeeddc2ed6d40b9062d1c3165e45b1fc82ccd94ef1516a0dbe44c3070c2/cloudcomponents.cdk_wordpress-2.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f93914902cfed0d9bf2bea67e6865e8146fded33ae8540b2591244d8de70429d",
"md5": "a7b2af0c25fbde61ae5b90eadfe2d6b7",
"sha256": "48c1981c4558044303f8f02b659d279db03b7bb2062c656b20b5c2200a90b264"
},
"downloads": -1,
"filename": "cloudcomponents.cdk-wordpress-2.1.0.tar.gz",
"has_sig": false,
"md5_digest": "a7b2af0c25fbde61ae5b90eadfe2d6b7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.8",
"size": 149481,
"upload_time": "2024-03-25T18:26:32",
"upload_time_iso_8601": "2024-03-25T18:26:32.040177Z",
"url": "https://files.pythonhosted.org/packages/f9/39/14902cfed0d9bf2bea67e6865e8146fded33ae8540b2591244d8de70429d/cloudcomponents.cdk-wordpress-2.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-25 18:26:32",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cloudcomponents",
"github_project": "cdk-constructs",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "cloudcomponents.cdk-wordpress"
}