Skip to content

Commit 4ecfd0f

Browse files
authored
Merge pull request #185 from awslabs/v1m2m0
v1.2.0 release
2 parents a951b8e + 1beb991 commit 4ecfd0f

File tree

132 files changed

+7249
-2147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+7249
-2147
lines changed
Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
*.py,cover
51+
.hypothesis/
52+
.pytest_cache/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
target/
76+
77+
# Jupyter Notebook
78+
.ipynb_checkpoints
79+
80+
# IPython
81+
profile_default/
82+
ipython_config.py
83+
84+
# pyenv
85+
.python-version
86+
87+
# pipenv
88+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
90+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
91+
# install all needed dependencies.
92+
#Pipfile.lock
93+
94+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
95+
__pypackages__/
96+
97+
# Celery stuff
98+
celerybeat-schedule
99+
celerybeat.pid
100+
101+
# SageMath parsed files
102+
*.sage.py
103+
104+
# Environments
105+
.env
106+
.venv
107+
env/
108+
venv/
109+
ENV/
110+
env.bak/
111+
venv.bak/
112+
113+
# Spyder project settings
114+
.spyderproject
115+
.spyproject
116+
117+
# Rope project settings
118+
.ropeproject
119+
120+
# mkdocs documentation
121+
/site
122+
123+
# mypy
124+
.mypy_cache/
125+
.dmypy.json
126+
dmypy.json
127+
128+
# Pyre type checker
129+
.pyre/
130+
131+
132+
# VSCode extension
133+
.vscode/
134+
/.favorites.json
135+
*.code-workspace
136+
137+
# TypeScript incremental build states
138+
*.tsbuildinfo
139+
140+
# Local state files & OS specifics
141+
.DS_Store
142+
node_modules/
143+
lerna-debug.log
144+
dist/
145+
pack/
146+
.BUILD_COMPLETED
147+
.local-npm/
148+
.tools/
149+
coverage/
150+
.nyc_output
151+
.LAST_BUILD
152+
*.sw[a-z]
153+
*~
154+
.idea
155+
156+
# We don't want tsconfig at the root
157+
/tsconfig.json
158+
159+
# Backed up json files
160+
*.json-e
161+
162+
# CDK Context & Staging files
163+
cdk.context.json
164+
.cdk.staging/
165+
cdk.out/
166+
.out
167+
168+
# DDK Context & Staging files
169+
.ddk.out/

backend/blueprints/data_pipeline_blueprint/README.md renamed to backend/blueprints/cdk_data_pipeline_blueprint/README.md

File renamed without changes.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
# !/usr/bin/env python3
3+
4+
import aws_cdk as cdk
5+
from aws_ddk_core.cicd import CICDPipelineStack
6+
from ddk_app.ddk_app_stack import DDKApplicationStack
7+
from aws_ddk_core.config import Config
8+
9+
app = cdk.App()
10+
11+
class ApplicationStage(cdk.Stage):
12+
def __init__(
13+
self,
14+
scope,
15+
environment_id: str,
16+
**kwargs,
17+
) -> None:
18+
super().__init__(scope, f"dataall-{environment_id.title()}", **kwargs)
19+
DDKApplicationStack(self, "DataPipeline-PIPELINENAME-PIPELINEURI", environment_id)
20+
21+
config = Config()
22+
(
23+
CICDPipelineStack(
24+
app,
25+
id="dataall-pipeline-PIPELINENAME-PIPELINEURI",
26+
environment_id="cicd",
27+
pipeline_name="PIPELINENAME",
28+
)
29+
.add_source_action(repository_name="dataall-PIPELINENAME-PIPELINEURI")
30+
.add_synth_action()
31+
.build().add_stage("dev", ApplicationStage(app, "dev", env=config.get_env("dev"))).add_stage("prod", ApplicationStage(app, "prod", env=config.get_env("prod")))
32+
.synth()
33+
)
34+
35+
app.synth()
36+
37+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"app": "python3 app.py",
3+
"watch": {
4+
"include": [
5+
"**"
6+
],
7+
"exclude": [
8+
"README.md",
9+
"cdk*.json",
10+
"requirements*.txt",
11+
"source.bat",
12+
"**/__init__.py",
13+
"python/__pycache__",
14+
"tests"
15+
]
16+
},
17+
"context": {
18+
"@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true,
19+
"@aws-cdk/core:stackRelativeExports": true,
20+
"@aws-cdk/aws-rds:lowercaseDbIdentifier": true,
21+
"@aws-cdk/aws-lambda:recognizeVersionProps": true,
22+
"@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021": true,
23+
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
24+
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
25+
"@aws-cdk/core:target-partitions": [
26+
"aws",
27+
"aws-cn"
28+
]
29+
}
30+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"environments": {
3+
"cicd": {
4+
"account": "111111111111",
5+
"region": "eu-west-1"
6+
},
7+
"dev": {
8+
"account": "222222222222",
9+
"region": "eu-west-1",
10+
"resources": {
11+
"ddk-bucket": {"versioned": false, "removal_policy": "destroy"}
12+
}
13+
},
14+
"prod": {
15+
"account": "333333333333",
16+
"region": "eu-west-1",
17+
"resources": {
18+
"ddk-bucket": {"versioned": true, "removal_policy": "retain"}
19+
}
20+
}
21+
}
22+
}

backend/blueprints/cdk_data_pipeline_blueprint/ddk_app/__init__.py

Whitespace-only changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from typing import Any
2+
3+
from aws_ddk_core.base import BaseStack
4+
from constructs import Construct
5+
6+
7+
class DDKApplicationStack(BaseStack):
8+
9+
def __init__(self, scope: Construct, id: str, environment_id: str, **kwargs: Any) -> None:
10+
super().__init__(scope, id, environment_id, **kwargs)
11+
12+
# The code that defines your stack goes here:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest==6.2.5
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
aws-cdk-lib==2.20.0
2+
constructs>=10.0.0,<11.0.0
3+
aws_ddk_core==0.3.1
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import setuptools
2+
3+
with open("README.md") as fp:
4+
long_description = fp.read()
5+
6+
7+
setuptools.setup(
8+
name="sample-app",
9+
version="0.3.1",
10+
description="An empty DDK Python app",
11+
long_description=long_description,
12+
long_description_content_type="text/markdown",
13+
author="author",
14+
package_dir={"": "sample-app"},
15+
packages=setuptools.find_packages(where="sample-app"),
16+
install_requires=open("requirements.txt").read().strip().split("\n"),
17+
python_requires=">=3.6",
18+
classifiers=[
19+
"Development Status :: 4 - Beta",
20+
"Intended Audience :: Developers",
21+
"Programming Language :: JavaScript",
22+
"Programming Language :: Python :: 3 :: Only",
23+
"Programming Language :: Python :: 3.6",
24+
"Programming Language :: Python :: 3.7",
25+
"Programming Language :: Python :: 3.8",
26+
"Topic :: Software Development :: Code Generators",
27+
"Topic :: Utilities",
28+
"Typing :: Typed",
29+
],
30+
)

0 commit comments

Comments
 (0)