cloudcomponents.cdk-wordpress-2.0.0
توضیحات
CDK Construct to deploy wordpress
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cloudcomponents.cdk-wordpress-2.0.0 |
| نام | cloudcomponents.cdk-wordpress |
| نسخه کتابخانه | 2.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | hupe1980 |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/cloudcomponents/cdk-constructs |
| آدرس اینترنتی | https://pypi.org/project/cloudcomponents.cdk-wordpress/ |
| مجوز | MIT |
[](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)
نیازمندی
| مقدار | نام |
|---|---|
| <3.0.0,>=2.8.0 | aws-cdk-lib |
| <11.0.0,>=10.0.41 | constructs |
| <2.0.0,>=1.52.1 | jsii |
| >=0.0.3 | publication |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cloudcomponents.cdk-wordpress-2.0.0:
pip install cloudcomponents.cdk-wordpress-2.0.0.whl
نصب پکیج tar.gz cloudcomponents.cdk-wordpress-2.0.0:
pip install cloudcomponents.cdk-wordpress-2.0.0.tar.gz