[](https://github.com/cloudcomponents/cdk-constructs)
# @cloudcomponents/cdk-wordpress
[](https://github.com/cloudcomponents/cdk-constructs/actions?query=workflow=Build)
[](https://github.com/hupe1980/cdkdx)
[](https://www.npmjs.com/package/@cloudcomponents/cdk-wordpress)
[](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/93/11/c2e4af4f7c4c7a4137bcf2ed48acdc8c4f1bf5a5bf16a3453774f18d1fcb/cloudcomponents.cdk-wordpress-2.2.0.tar.gz",
"platform": null,
"description": "[](https://github.com/cloudcomponents/cdk-constructs)\n\n# @cloudcomponents/cdk-wordpress\n\n[](https://github.com/cloudcomponents/cdk-constructs/actions?query=workflow=Build)\n[](https://github.com/hupe1980/cdkdx)\n[](https://www.npmjs.com/package/@cloudcomponents/cdk-wordpress)\n[](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.2.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": "474b065cba6b89eaa3f58154096fd6b01ff05553682e5c877bfa612b6dd8756e",
"md5": "2b0ebc9c9d47b840cbdcd33bad4aae1c",
"sha256": "9a7f46a6d51fd88b322f6999d0d1c47ef93360d6ff2d70643718c9acb6c8faea"
},
"downloads": -1,
"filename": "cloudcomponents.cdk_wordpress-2.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2b0ebc9c9d47b840cbdcd33bad4aae1c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.8",
"size": 149311,
"upload_time": "2024-05-16T19:33:05",
"upload_time_iso_8601": "2024-05-16T19:33:05.355522Z",
"url": "https://files.pythonhosted.org/packages/47/4b/065cba6b89eaa3f58154096fd6b01ff05553682e5c877bfa612b6dd8756e/cloudcomponents.cdk_wordpress-2.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9311c2e4af4f7c4c7a4137bcf2ed48acdc8c4f1bf5a5bf16a3453774f18d1fcb",
"md5": "181916a51a192aa663c474a7308bf546",
"sha256": "e3c6fc25819cf37f71ff40f3e1b92d6dfa9938250a62b040507b63e43c299491"
},
"downloads": -1,
"filename": "cloudcomponents.cdk-wordpress-2.2.0.tar.gz",
"has_sig": false,
"md5_digest": "181916a51a192aa663c474a7308bf546",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.8",
"size": 150946,
"upload_time": "2024-05-16T19:33:15",
"upload_time_iso_8601": "2024-05-16T19:33:15.755265Z",
"url": "https://files.pythonhosted.org/packages/93/11/c2e4af4f7c4c7a4137bcf2ed48acdc8c4f1bf5a5bf16a3453774f18d1fcb/cloudcomponents.cdk-wordpress-2.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-16 19:33:15",
"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"
}