cdk-mwaa 0.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cdk_mwaa-0.0.0/LICENSE +19 -0
- cdk_mwaa-0.0.0/MANIFEST.in +1 -0
- cdk_mwaa-0.0.0/PKG-INFO +110 -0
- cdk_mwaa-0.0.0/README.md +82 -0
- cdk_mwaa-0.0.0/pyproject.toml +9 -0
- cdk_mwaa-0.0.0/setup.cfg +4 -0
- cdk_mwaa-0.0.0/setup.py +65 -0
- cdk_mwaa-0.0.0/src/cdk_mwaa/__init__.py +1956 -0
- cdk_mwaa-0.0.0/src/cdk_mwaa/_jsii/__init__.py +42 -0
- cdk_mwaa-0.0.0/src/cdk_mwaa/_jsii/cdk-mwaa@0.0.0.jsii.tgz +0 -0
- cdk_mwaa-0.0.0/src/cdk_mwaa/py.typed +1 -0
- cdk_mwaa-0.0.0/src/cdk_mwaa.egg-info/PKG-INFO +110 -0
- cdk_mwaa-0.0.0/src/cdk_mwaa.egg-info/SOURCES.txt +14 -0
- cdk_mwaa-0.0.0/src/cdk_mwaa.egg-info/dependency_links.txt +1 -0
- cdk_mwaa-0.0.0/src/cdk_mwaa.egg-info/requires.txt +5 -0
- cdk_mwaa-0.0.0/src/cdk_mwaa.egg-info/top_level.txt +1 -0
cdk_mwaa-0.0.0/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2025 hupe1980
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
SOFTWARE.
|
@@ -0,0 +1 @@
|
|
1
|
+
include pyproject.toml
|
cdk_mwaa-0.0.0/PKG-INFO
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: cdk-mwaa
|
3
|
+
Version: 0.0.0
|
4
|
+
Summary: cdk-mwaa
|
5
|
+
Home-page: https://github.com/hupe1980/cdk-mwaa.git
|
6
|
+
Author: hupe1980<frankhuebner1980@gmail.com>
|
7
|
+
License: MIT
|
8
|
+
Project-URL: Source, https://github.com/hupe1980/cdk-mwaa.git
|
9
|
+
Classifier: Intended Audience :: Developers
|
10
|
+
Classifier: Operating System :: OS Independent
|
11
|
+
Classifier: Programming Language :: JavaScript
|
12
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
17
|
+
Classifier: Typing :: Typed
|
18
|
+
Classifier: Development Status :: 5 - Production/Stable
|
19
|
+
Classifier: License :: OSI Approved
|
20
|
+
Requires-Python: ~=3.8
|
21
|
+
Description-Content-Type: text/markdown
|
22
|
+
License-File: LICENSE
|
23
|
+
Requires-Dist: aws-cdk-lib<3.0.0,>=2.182.0
|
24
|
+
Requires-Dist: constructs<11.0.0,>=10.0.5
|
25
|
+
Requires-Dist: jsii<2.0.0,>=1.108.0
|
26
|
+
Requires-Dist: publication>=0.0.3
|
27
|
+
Requires-Dist: typeguard<4.3.0,>=2.13.3
|
28
|
+
|
29
|
+
# cdk-mwaa
|
30
|
+
|
31
|
+
This project provides an AWS CDK construct library for creating and managing Amazon Managed Workflows for Apache Airflow (MWAA) environments.
|
32
|
+
|
33
|
+
## Features
|
34
|
+
|
35
|
+
* Create and manage MWAA environments
|
36
|
+
* Configure environment properties such as webserver access mode, Airflow version, environment class, and more
|
37
|
+
* Validate and set default values for environment properties
|
38
|
+
* Automatically create and configure necessary AWS resources such as S3 buckets and VPCs
|
39
|
+
|
40
|
+
## Installation
|
41
|
+
|
42
|
+
To use this construct library in your AWS CDK project, add it as a dependency:
|
43
|
+
|
44
|
+
```sh
|
45
|
+
npm install cdk-mwaa
|
46
|
+
# or
|
47
|
+
yarn add cdk-mwaa
|
48
|
+
```
|
49
|
+
|
50
|
+
## Usage
|
51
|
+
|
52
|
+
Here is an example of how to use the `cdk-mwaa` construct library in your AWS CDK project:
|
53
|
+
|
54
|
+
```python
|
55
|
+
import * as cdk from 'aws-cdk-lib';
|
56
|
+
import * as mwaa from 'cdk-mwaa';
|
57
|
+
|
58
|
+
const app = new cdk.App();
|
59
|
+
const stack = new cdk.Stack(app, 'MwaaStack');
|
60
|
+
|
61
|
+
const dagStorage = new mwaa.DagStorage(stack, 'MyMwaaDagStorage', {
|
62
|
+
bucketName: 'my-mwaa-dag-storage',
|
63
|
+
removalPolicy: cdk.RemovalPolicy.DESTROY,
|
64
|
+
});
|
65
|
+
|
66
|
+
new mwaa.Environment(stack, 'MyMwaaEnvironment', {
|
67
|
+
environmentName: 'my-mwaa-environment',
|
68
|
+
dagStorage,
|
69
|
+
airflowVersion: '2.10.3',
|
70
|
+
sizing: mwaa.Sizing.mw1Micro(),
|
71
|
+
// additional configuration options...
|
72
|
+
});
|
73
|
+
|
74
|
+
app.synth();
|
75
|
+
```
|
76
|
+
|
77
|
+
## Enabling Secrets Backend
|
78
|
+
|
79
|
+
To enable the secrets backend for your MWAA environment, you can use the `enableSecretsBackend` method. This allows you to securely manage secrets and environment variables.
|
80
|
+
|
81
|
+
Here is an example of how to enable the secrets backend in your MWAA environment:
|
82
|
+
|
83
|
+
```python
|
84
|
+
import * as cdk from 'aws-cdk-lib';
|
85
|
+
import * as mwaa from 'cdk-mwaa';
|
86
|
+
|
87
|
+
const app = new cdk.App();
|
88
|
+
const stack = new cdk.Stack(app, 'MwaaStack');
|
89
|
+
|
90
|
+
const dagStorage = new mwaa.DagStorage(stack, 'MyMwaaDagStorage', {
|
91
|
+
bucketName: 'my-mwaa-dag-storage',
|
92
|
+
removalPolicy: cdk.RemovalPolicy.DESTROY,
|
93
|
+
});
|
94
|
+
|
95
|
+
const environment = new mwaa.Environment(stack, 'MyMwaaEnvironment', {
|
96
|
+
environmentName: 'my-mwaa-environment',
|
97
|
+
dagStorage,
|
98
|
+
airflowVersion: '2.10.3',
|
99
|
+
sizing: mwaa.Sizing.mw1Micro(),
|
100
|
+
// additional configuration options...
|
101
|
+
});
|
102
|
+
|
103
|
+
environment.enableSecretsBackend();
|
104
|
+
|
105
|
+
app.synth();
|
106
|
+
```
|
107
|
+
|
108
|
+
## License
|
109
|
+
|
110
|
+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
|
cdk_mwaa-0.0.0/README.md
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
# cdk-mwaa
|
2
|
+
|
3
|
+
This project provides an AWS CDK construct library for creating and managing Amazon Managed Workflows for Apache Airflow (MWAA) environments.
|
4
|
+
|
5
|
+
## Features
|
6
|
+
|
7
|
+
* Create and manage MWAA environments
|
8
|
+
* Configure environment properties such as webserver access mode, Airflow version, environment class, and more
|
9
|
+
* Validate and set default values for environment properties
|
10
|
+
* Automatically create and configure necessary AWS resources such as S3 buckets and VPCs
|
11
|
+
|
12
|
+
## Installation
|
13
|
+
|
14
|
+
To use this construct library in your AWS CDK project, add it as a dependency:
|
15
|
+
|
16
|
+
```sh
|
17
|
+
npm install cdk-mwaa
|
18
|
+
# or
|
19
|
+
yarn add cdk-mwaa
|
20
|
+
```
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
Here is an example of how to use the `cdk-mwaa` construct library in your AWS CDK project:
|
25
|
+
|
26
|
+
```python
|
27
|
+
import * as cdk from 'aws-cdk-lib';
|
28
|
+
import * as mwaa from 'cdk-mwaa';
|
29
|
+
|
30
|
+
const app = new cdk.App();
|
31
|
+
const stack = new cdk.Stack(app, 'MwaaStack');
|
32
|
+
|
33
|
+
const dagStorage = new mwaa.DagStorage(stack, 'MyMwaaDagStorage', {
|
34
|
+
bucketName: 'my-mwaa-dag-storage',
|
35
|
+
removalPolicy: cdk.RemovalPolicy.DESTROY,
|
36
|
+
});
|
37
|
+
|
38
|
+
new mwaa.Environment(stack, 'MyMwaaEnvironment', {
|
39
|
+
environmentName: 'my-mwaa-environment',
|
40
|
+
dagStorage,
|
41
|
+
airflowVersion: '2.10.3',
|
42
|
+
sizing: mwaa.Sizing.mw1Micro(),
|
43
|
+
// additional configuration options...
|
44
|
+
});
|
45
|
+
|
46
|
+
app.synth();
|
47
|
+
```
|
48
|
+
|
49
|
+
## Enabling Secrets Backend
|
50
|
+
|
51
|
+
To enable the secrets backend for your MWAA environment, you can use the `enableSecretsBackend` method. This allows you to securely manage secrets and environment variables.
|
52
|
+
|
53
|
+
Here is an example of how to enable the secrets backend in your MWAA environment:
|
54
|
+
|
55
|
+
```python
|
56
|
+
import * as cdk from 'aws-cdk-lib';
|
57
|
+
import * as mwaa from 'cdk-mwaa';
|
58
|
+
|
59
|
+
const app = new cdk.App();
|
60
|
+
const stack = new cdk.Stack(app, 'MwaaStack');
|
61
|
+
|
62
|
+
const dagStorage = new mwaa.DagStorage(stack, 'MyMwaaDagStorage', {
|
63
|
+
bucketName: 'my-mwaa-dag-storage',
|
64
|
+
removalPolicy: cdk.RemovalPolicy.DESTROY,
|
65
|
+
});
|
66
|
+
|
67
|
+
const environment = new mwaa.Environment(stack, 'MyMwaaEnvironment', {
|
68
|
+
environmentName: 'my-mwaa-environment',
|
69
|
+
dagStorage,
|
70
|
+
airflowVersion: '2.10.3',
|
71
|
+
sizing: mwaa.Sizing.mw1Micro(),
|
72
|
+
// additional configuration options...
|
73
|
+
});
|
74
|
+
|
75
|
+
environment.enableSecretsBackend();
|
76
|
+
|
77
|
+
app.synth();
|
78
|
+
```
|
79
|
+
|
80
|
+
## License
|
81
|
+
|
82
|
+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
|
cdk_mwaa-0.0.0/setup.cfg
ADDED
cdk_mwaa-0.0.0/setup.py
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
import json
|
2
|
+
import setuptools
|
3
|
+
|
4
|
+
kwargs = json.loads(
|
5
|
+
"""
|
6
|
+
{
|
7
|
+
"name": "cdk-mwaa",
|
8
|
+
"version": "0.0.0",
|
9
|
+
"description": "cdk-mwaa",
|
10
|
+
"license": "MIT",
|
11
|
+
"url": "https://github.com/hupe1980/cdk-mwaa.git",
|
12
|
+
"long_description_content_type": "text/markdown",
|
13
|
+
"author": "hupe1980<frankhuebner1980@gmail.com>",
|
14
|
+
"bdist_wheel": {
|
15
|
+
"universal": true
|
16
|
+
},
|
17
|
+
"project_urls": {
|
18
|
+
"Source": "https://github.com/hupe1980/cdk-mwaa.git"
|
19
|
+
},
|
20
|
+
"package_dir": {
|
21
|
+
"": "src"
|
22
|
+
},
|
23
|
+
"packages": [
|
24
|
+
"cdk_mwaa",
|
25
|
+
"cdk_mwaa._jsii"
|
26
|
+
],
|
27
|
+
"package_data": {
|
28
|
+
"cdk_mwaa._jsii": [
|
29
|
+
"cdk-mwaa@0.0.0.jsii.tgz"
|
30
|
+
],
|
31
|
+
"cdk_mwaa": [
|
32
|
+
"py.typed"
|
33
|
+
]
|
34
|
+
},
|
35
|
+
"python_requires": "~=3.8",
|
36
|
+
"install_requires": [
|
37
|
+
"aws-cdk-lib>=2.182.0, <3.0.0",
|
38
|
+
"constructs>=10.0.5, <11.0.0",
|
39
|
+
"jsii>=1.108.0, <2.0.0",
|
40
|
+
"publication>=0.0.3",
|
41
|
+
"typeguard>=2.13.3,<4.3.0"
|
42
|
+
],
|
43
|
+
"classifiers": [
|
44
|
+
"Intended Audience :: Developers",
|
45
|
+
"Operating System :: OS Independent",
|
46
|
+
"Programming Language :: JavaScript",
|
47
|
+
"Programming Language :: Python :: 3 :: Only",
|
48
|
+
"Programming Language :: Python :: 3.8",
|
49
|
+
"Programming Language :: Python :: 3.9",
|
50
|
+
"Programming Language :: Python :: 3.10",
|
51
|
+
"Programming Language :: Python :: 3.11",
|
52
|
+
"Typing :: Typed",
|
53
|
+
"Development Status :: 5 - Production/Stable",
|
54
|
+
"License :: OSI Approved"
|
55
|
+
],
|
56
|
+
"scripts": []
|
57
|
+
}
|
58
|
+
"""
|
59
|
+
)
|
60
|
+
|
61
|
+
with open("README.md", encoding="utf8") as fp:
|
62
|
+
kwargs["long_description"] = fp.read()
|
63
|
+
|
64
|
+
|
65
|
+
setuptools.setup(**kwargs)
|