cdklabs.cdk-cicd-wrapper 0.1.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.
- cdklabs.cdk-cicd-wrapper-0.1.0/LICENSE +202 -0
- cdklabs.cdk-cicd-wrapper-0.1.0/MANIFEST.in +1 -0
- cdklabs.cdk-cicd-wrapper-0.1.0/PKG-INFO +116 -0
- cdklabs.cdk-cicd-wrapper-0.1.0/README.md +93 -0
- cdklabs.cdk-cicd-wrapper-0.1.0/pyproject.toml +9 -0
- cdklabs.cdk-cicd-wrapper-0.1.0/setup.cfg +4 -0
- cdklabs.cdk-cicd-wrapper-0.1.0/setup.py +66 -0
- cdklabs.cdk-cicd-wrapper-0.1.0/src/cdklabs/cdk_cicd_wrapper/__init__.py +8637 -0
- cdklabs.cdk-cicd-wrapper-0.1.0/src/cdklabs/cdk_cicd_wrapper/_jsii/__init__.py +31 -0
- cdklabs.cdk-cicd-wrapper-0.1.0/src/cdklabs/cdk_cicd_wrapper/_jsii/cdk-cicd-wrapper@0.1.0.jsii.tgz +0 -0
- cdklabs.cdk-cicd-wrapper-0.1.0/src/cdklabs/cdk_cicd_wrapper/py.typed +1 -0
- cdklabs.cdk-cicd-wrapper-0.1.0/src/cdklabs.cdk_cicd_wrapper.egg-info/PKG-INFO +116 -0
- cdklabs.cdk-cicd-wrapper-0.1.0/src/cdklabs.cdk_cicd_wrapper.egg-info/SOURCES.txt +14 -0
- cdklabs.cdk-cicd-wrapper-0.1.0/src/cdklabs.cdk_cicd_wrapper.egg-info/dependency_links.txt +1 -0
- cdklabs.cdk-cicd-wrapper-0.1.0/src/cdklabs.cdk_cicd_wrapper.egg-info/requires.txt +6 -0
- cdklabs.cdk-cicd-wrapper-0.1.0/src/cdklabs.cdk_cicd_wrapper.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include pyproject.toml
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: cdklabs.cdk-cicd-wrapper
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: This repository contains the infrastructure as code to wrap your AWS CDK project with CI/CD around it.
|
|
5
|
+
Home-page: https://github.com/cdklabs/cdk-cicd-wrapper.git
|
|
6
|
+
Author: CDK CI/CD Wrapper Team
|
|
7
|
+
License: Apache-2.0
|
|
8
|
+
Project-URL: Source, https://github.com/cdklabs/cdk-cicd-wrapper.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
|
+
|
|
24
|
+
## CDK CI/CD Wrapper
|
|
25
|
+
|
|
26
|
+
[](https://opensource.org/licenses/Apache-2.0)
|
|
27
|
+
|
|
28
|
+
The [CDK CI/CD Wrapper](https://cdklabs.github.io/cdk-cicd-wrapper/) is a comprehensive solution that streamlines the delivery of your AWS Cloud Development Kit (CDK) applications. It provides a robust and standardized multi-stage CI/CD pipeline, ensuring high quality and confidence throughout the development and deployment process.
|
|
29
|
+
|
|
30
|
+
## Table of Contents
|
|
31
|
+
|
|
32
|
+
* [Introduction](#introduction)
|
|
33
|
+
* [Features](#features)
|
|
34
|
+
* [Getting Started](#getting-started)
|
|
35
|
+
|
|
36
|
+
* [Prerequisites](#prerequisites)
|
|
37
|
+
* [Installation](#installation)
|
|
38
|
+
* [Usage](#usage)
|
|
39
|
+
|
|
40
|
+
* [Defining Stages](#defining-stages)
|
|
41
|
+
* [Configuring Stacks](#configuring-stacks)
|
|
42
|
+
* [Customizing CI/CD Steps](#customizing-cicd-steps)
|
|
43
|
+
* [Contributing](#contributing)
|
|
44
|
+
* [License](#license)
|
|
45
|
+
|
|
46
|
+
## Introduction
|
|
47
|
+
|
|
48
|
+
The CDK CI/CD Wrapper builds upon the success of the [aws-cdk-cicd-boot-sample](https://github.com/aws-samples/aws-cdk-cicd-boot-sample) and takes it a step further by providing additional tools and features to simplify and standardize the multi-stage CI/CD process for your Infrastructure as Code (IaC) projects.
|
|
49
|
+
|
|
50
|
+
## Features
|
|
51
|
+
|
|
52
|
+
* **Multi-staged CI/CD Pipeline**: Seamlessly deploy your CDK applications across multiple stages (e.g., DEV, INT, PROD) and AWS accounts.
|
|
53
|
+
* **Security Scanning**: Perform security scanning on dependencies and codebase, blocking the pipeline in case of CVE findings.
|
|
54
|
+
* **License Management**: Manage licenses for NPM and Python dependencies, ensuring compliance with your organization's policies.
|
|
55
|
+
* **Private NPM Registry**: Securely store and utilize private NPM libraries.
|
|
56
|
+
* **Customizable Pipeline**: Tailor the CI/CD pipeline to your project's specific needs with built-in dependency injection.
|
|
57
|
+
* **Workbench Deployment**: Develop and experiment with your solutions in isolation before introducing them to the delivery pipeline.
|
|
58
|
+
* **Pre/Post Deploy Hooks**: Execute custom scripts before and after deployments in each stage (e.g., unit tests, functional tests, load testing).
|
|
59
|
+
* **Centralized Compliance Logs**: Store compliance logs in pre-configured S3 buckets on a per-stage/environment basis.
|
|
60
|
+
* **Lambda Layer Support**: Build and scan dependencies for Python Lambda Layers.
|
|
61
|
+
|
|
62
|
+
## Getting Started
|
|
63
|
+
|
|
64
|
+
### Prerequisites
|
|
65
|
+
|
|
66
|
+
Before you begin, ensure that you have the following dependencies installed:
|
|
67
|
+
|
|
68
|
+
* AWS Account (RES/DEV/INT/PROD)
|
|
69
|
+
* macOS or Cloud9 with Ubuntu Server 22.04 LTS Platform in the RES Account
|
|
70
|
+
* Bash/ZSH terminal
|
|
71
|
+
* Docker version >= 24.0.x
|
|
72
|
+
* AWS CLI v2 ([installation guide](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html))
|
|
73
|
+
* AWS credentials and profiles for each environment in `~/.aws/config` ([configuration guide](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html))
|
|
74
|
+
* Node.js >= v18.17._ && NPM >= v10.2._
|
|
75
|
+
* jq command-line JSON processor (jq-1.5)
|
|
76
|
+
|
|
77
|
+
For developing Python Lambdas, you'll also need:
|
|
78
|
+
|
|
79
|
+
* Python >= 3.11
|
|
80
|
+
* Pipenv 2023.* ([installation guide](https://pipenv.pypa.io/en/latest/))
|
|
81
|
+
|
|
82
|
+
### Installation
|
|
83
|
+
|
|
84
|
+
1. Clone the CDK CI/CD Wrapper repository:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
git clone https://github.com/your-repo/cdk-cicd-wrapper.git
|
|
88
|
+
cd cdk-cicd-wrapper
|
|
89
|
+
```
|
|
90
|
+
2. Install the required dependencies:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
npm install
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Usage
|
|
97
|
+
|
|
98
|
+
### Defining Stages
|
|
99
|
+
|
|
100
|
+
The CDK CI/CD Wrapper comes with a default set of stages (DEV, INT, PROD), but you can easily extend or modify these stages to suit your project's needs. Follow the step-by-step guide in the documentation to define your desired stages.
|
|
101
|
+
|
|
102
|
+
### Configuring Stacks
|
|
103
|
+
|
|
104
|
+
Configure the CDK stacks you want to deploy in each stage. The CDK CI/CD Wrapper allows you to specify which stacks should be deployed in each stage, giving you granular control over your deployment process.
|
|
105
|
+
|
|
106
|
+
### Customizing CI/CD Steps
|
|
107
|
+
|
|
108
|
+
Tailor the CI/CD pipeline to meet your project's specific requirements. The CDK CI/CD Wrapper provides built-in dependency injection, allowing you to customize the CI/CD steps seamlessly.
|
|
109
|
+
|
|
110
|
+
## Contributing
|
|
111
|
+
|
|
112
|
+
Contributions to the CDK CI/CD Wrapper are welcome! If you'd like to contribute, please follow the guidelines outlined in the [CONTRIBUTING.md](CONTRIBUTING.md) file.
|
|
113
|
+
|
|
114
|
+
## License
|
|
115
|
+
|
|
116
|
+
This project is licensed under the [Apache 2.0 License](LICENSE).
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
## CDK CI/CD Wrapper
|
|
2
|
+
|
|
3
|
+
[](https://opensource.org/licenses/Apache-2.0)
|
|
4
|
+
|
|
5
|
+
The [CDK CI/CD Wrapper](https://cdklabs.github.io/cdk-cicd-wrapper/) is a comprehensive solution that streamlines the delivery of your AWS Cloud Development Kit (CDK) applications. It provides a robust and standardized multi-stage CI/CD pipeline, ensuring high quality and confidence throughout the development and deployment process.
|
|
6
|
+
|
|
7
|
+
## Table of Contents
|
|
8
|
+
|
|
9
|
+
* [Introduction](#introduction)
|
|
10
|
+
* [Features](#features)
|
|
11
|
+
* [Getting Started](#getting-started)
|
|
12
|
+
|
|
13
|
+
* [Prerequisites](#prerequisites)
|
|
14
|
+
* [Installation](#installation)
|
|
15
|
+
* [Usage](#usage)
|
|
16
|
+
|
|
17
|
+
* [Defining Stages](#defining-stages)
|
|
18
|
+
* [Configuring Stacks](#configuring-stacks)
|
|
19
|
+
* [Customizing CI/CD Steps](#customizing-cicd-steps)
|
|
20
|
+
* [Contributing](#contributing)
|
|
21
|
+
* [License](#license)
|
|
22
|
+
|
|
23
|
+
## Introduction
|
|
24
|
+
|
|
25
|
+
The CDK CI/CD Wrapper builds upon the success of the [aws-cdk-cicd-boot-sample](https://github.com/aws-samples/aws-cdk-cicd-boot-sample) and takes it a step further by providing additional tools and features to simplify and standardize the multi-stage CI/CD process for your Infrastructure as Code (IaC) projects.
|
|
26
|
+
|
|
27
|
+
## Features
|
|
28
|
+
|
|
29
|
+
* **Multi-staged CI/CD Pipeline**: Seamlessly deploy your CDK applications across multiple stages (e.g., DEV, INT, PROD) and AWS accounts.
|
|
30
|
+
* **Security Scanning**: Perform security scanning on dependencies and codebase, blocking the pipeline in case of CVE findings.
|
|
31
|
+
* **License Management**: Manage licenses for NPM and Python dependencies, ensuring compliance with your organization's policies.
|
|
32
|
+
* **Private NPM Registry**: Securely store and utilize private NPM libraries.
|
|
33
|
+
* **Customizable Pipeline**: Tailor the CI/CD pipeline to your project's specific needs with built-in dependency injection.
|
|
34
|
+
* **Workbench Deployment**: Develop and experiment with your solutions in isolation before introducing them to the delivery pipeline.
|
|
35
|
+
* **Pre/Post Deploy Hooks**: Execute custom scripts before and after deployments in each stage (e.g., unit tests, functional tests, load testing).
|
|
36
|
+
* **Centralized Compliance Logs**: Store compliance logs in pre-configured S3 buckets on a per-stage/environment basis.
|
|
37
|
+
* **Lambda Layer Support**: Build and scan dependencies for Python Lambda Layers.
|
|
38
|
+
|
|
39
|
+
## Getting Started
|
|
40
|
+
|
|
41
|
+
### Prerequisites
|
|
42
|
+
|
|
43
|
+
Before you begin, ensure that you have the following dependencies installed:
|
|
44
|
+
|
|
45
|
+
* AWS Account (RES/DEV/INT/PROD)
|
|
46
|
+
* macOS or Cloud9 with Ubuntu Server 22.04 LTS Platform in the RES Account
|
|
47
|
+
* Bash/ZSH terminal
|
|
48
|
+
* Docker version >= 24.0.x
|
|
49
|
+
* AWS CLI v2 ([installation guide](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html))
|
|
50
|
+
* AWS credentials and profiles for each environment in `~/.aws/config` ([configuration guide](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html))
|
|
51
|
+
* Node.js >= v18.17._ && NPM >= v10.2._
|
|
52
|
+
* jq command-line JSON processor (jq-1.5)
|
|
53
|
+
|
|
54
|
+
For developing Python Lambdas, you'll also need:
|
|
55
|
+
|
|
56
|
+
* Python >= 3.11
|
|
57
|
+
* Pipenv 2023.* ([installation guide](https://pipenv.pypa.io/en/latest/))
|
|
58
|
+
|
|
59
|
+
### Installation
|
|
60
|
+
|
|
61
|
+
1. Clone the CDK CI/CD Wrapper repository:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
git clone https://github.com/your-repo/cdk-cicd-wrapper.git
|
|
65
|
+
cd cdk-cicd-wrapper
|
|
66
|
+
```
|
|
67
|
+
2. Install the required dependencies:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
npm install
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Usage
|
|
74
|
+
|
|
75
|
+
### Defining Stages
|
|
76
|
+
|
|
77
|
+
The CDK CI/CD Wrapper comes with a default set of stages (DEV, INT, PROD), but you can easily extend or modify these stages to suit your project's needs. Follow the step-by-step guide in the documentation to define your desired stages.
|
|
78
|
+
|
|
79
|
+
### Configuring Stacks
|
|
80
|
+
|
|
81
|
+
Configure the CDK stacks you want to deploy in each stage. The CDK CI/CD Wrapper allows you to specify which stacks should be deployed in each stage, giving you granular control over your deployment process.
|
|
82
|
+
|
|
83
|
+
### Customizing CI/CD Steps
|
|
84
|
+
|
|
85
|
+
Tailor the CI/CD pipeline to meet your project's specific requirements. The CDK CI/CD Wrapper provides built-in dependency injection, allowing you to customize the CI/CD steps seamlessly.
|
|
86
|
+
|
|
87
|
+
## Contributing
|
|
88
|
+
|
|
89
|
+
Contributions to the CDK CI/CD Wrapper are welcome! If you'd like to contribute, please follow the guidelines outlined in the [CONTRIBUTING.md](CONTRIBUTING.md) file.
|
|
90
|
+
|
|
91
|
+
## License
|
|
92
|
+
|
|
93
|
+
This project is licensed under the [Apache 2.0 License](LICENSE).
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import json
|
|
2
|
+
import setuptools
|
|
3
|
+
|
|
4
|
+
kwargs = json.loads(
|
|
5
|
+
"""
|
|
6
|
+
{
|
|
7
|
+
"name": "cdklabs.cdk-cicd-wrapper",
|
|
8
|
+
"version": "0.1.0",
|
|
9
|
+
"description": "This repository contains the infrastructure as code to wrap your AWS CDK project with CI/CD around it.",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"url": "https://github.com/cdklabs/cdk-cicd-wrapper.git",
|
|
12
|
+
"long_description_content_type": "text/markdown",
|
|
13
|
+
"author": "CDK CI/CD Wrapper Team",
|
|
14
|
+
"bdist_wheel": {
|
|
15
|
+
"universal": true
|
|
16
|
+
},
|
|
17
|
+
"project_urls": {
|
|
18
|
+
"Source": "https://github.com/cdklabs/cdk-cicd-wrapper.git"
|
|
19
|
+
},
|
|
20
|
+
"package_dir": {
|
|
21
|
+
"": "src"
|
|
22
|
+
},
|
|
23
|
+
"packages": [
|
|
24
|
+
"cdklabs.cdk_cicd_wrapper",
|
|
25
|
+
"cdklabs.cdk_cicd_wrapper._jsii"
|
|
26
|
+
],
|
|
27
|
+
"package_data": {
|
|
28
|
+
"cdklabs.cdk_cicd_wrapper._jsii": [
|
|
29
|
+
"cdk-cicd-wrapper@0.1.0.jsii.tgz"
|
|
30
|
+
],
|
|
31
|
+
"cdklabs.cdk_cicd_wrapper": [
|
|
32
|
+
"py.typed"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"python_requires": "~=3.8",
|
|
36
|
+
"install_requires": [
|
|
37
|
+
"aws-cdk-lib>=2.130.0, <3.0.0",
|
|
38
|
+
"cdk-nag>=2.28.0, <3.0.0",
|
|
39
|
+
"constructs>=10.3.0, <11.0.0",
|
|
40
|
+
"jsii>=1.98.0, <2.0.0",
|
|
41
|
+
"publication>=0.0.3",
|
|
42
|
+
"typeguard~=2.13.3"
|
|
43
|
+
],
|
|
44
|
+
"classifiers": [
|
|
45
|
+
"Intended Audience :: Developers",
|
|
46
|
+
"Operating System :: OS Independent",
|
|
47
|
+
"Programming Language :: JavaScript",
|
|
48
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
49
|
+
"Programming Language :: Python :: 3.8",
|
|
50
|
+
"Programming Language :: Python :: 3.9",
|
|
51
|
+
"Programming Language :: Python :: 3.10",
|
|
52
|
+
"Programming Language :: Python :: 3.11",
|
|
53
|
+
"Typing :: Typed",
|
|
54
|
+
"Development Status :: 5 - Production/Stable",
|
|
55
|
+
"License :: OSI Approved"
|
|
56
|
+
],
|
|
57
|
+
"scripts": []
|
|
58
|
+
}
|
|
59
|
+
"""
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
with open("README.md", encoding="utf8") as fp:
|
|
63
|
+
kwargs["long_description"] = fp.read()
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
setuptools.setup(**kwargs)
|