@pipeline-builder/pipeline-manager 3.1.0
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.
- package/LICENSE +202 -0
- package/README.md +74 -0
- package/cdk.json +91 -0
- package/config.yml +94 -0
- package/dist/boilerplate.d.ts +3 -0
- package/dist/boilerplate.d.ts.map +1 -0
- package/dist/boilerplate.js +58 -0
- package/dist/cdk.json +91 -0
- package/dist/cli.d.ts +62 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +372 -0
- package/dist/commands/bootstrap.d.ts +11 -0
- package/dist/commands/bootstrap.d.ts.map +1 -0
- package/dist/commands/bootstrap.js +159 -0
- package/dist/commands/create-pipeline.d.ts +12 -0
- package/dist/commands/create-pipeline.d.ts.map +1 -0
- package/dist/commands/create-pipeline.js +291 -0
- package/dist/commands/deploy.d.ts +15 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +167 -0
- package/dist/commands/get-pipeline.d.ts +13 -0
- package/dist/commands/get-pipeline.d.ts.map +1 -0
- package/dist/commands/get-pipeline.js +97 -0
- package/dist/commands/get-plugin.d.ts +13 -0
- package/dist/commands/get-plugin.d.ts.map +1 -0
- package/dist/commands/get-plugin.js +98 -0
- package/dist/commands/list-pipelines.d.ts +20 -0
- package/dist/commands/list-pipelines.d.ts.map +1 -0
- package/dist/commands/list-pipelines.js +172 -0
- package/dist/commands/list-plugins.d.ts +20 -0
- package/dist/commands/list-plugins.d.ts.map +1 -0
- package/dist/commands/list-plugins.js +167 -0
- package/dist/commands/login.d.ts +21 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +179 -0
- package/dist/commands/setup-events.d.ts +15 -0
- package/dist/commands/setup-events.d.ts.map +1 -0
- package/dist/commands/setup-events.js +177 -0
- package/dist/commands/status.d.ts +11 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +89 -0
- package/dist/commands/store-token.d.ts +20 -0
- package/dist/commands/store-token.d.ts.map +1 -0
- package/dist/commands/store-token.js +233 -0
- package/dist/commands/synth.d.ts +21 -0
- package/dist/commands/synth.d.ts.map +1 -0
- package/dist/commands/synth.js +143 -0
- package/dist/commands/upload-plugin.d.ts +21 -0
- package/dist/commands/upload-plugin.d.ts.map +1 -0
- package/dist/commands/upload-plugin.js +311 -0
- package/dist/commands/version.d.ts +12 -0
- package/dist/commands/version.d.ts.map +1 -0
- package/dist/commands/version.js +223 -0
- package/dist/config/cli.constants.d.ts +101 -0
- package/dist/config/cli.constants.d.ts.map +1 -0
- package/dist/config/cli.constants.js +165 -0
- package/dist/config.yml +94 -0
- package/dist/templates/events-stack.json +141 -0
- package/dist/types/config.d.ts +44 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +5 -0
- package/dist/types/error.d.ts +61 -0
- package/dist/types/error.d.ts.map +1 -0
- package/dist/types/error.js +39 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +26 -0
- package/dist/types/pipeline.d.ts +144 -0
- package/dist/types/pipeline.d.ts.map +1 -0
- package/dist/types/pipeline.js +5 -0
- package/dist/types/plugin.d.ts +160 -0
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/plugin.js +5 -0
- package/dist/utils/api-client.d.ts +26 -0
- package/dist/utils/api-client.d.ts.map +1 -0
- package/dist/utils/api-client.js +160 -0
- package/dist/utils/audit-log.d.ts +8 -0
- package/dist/utils/audit-log.d.ts.map +1 -0
- package/dist/utils/audit-log.js +53 -0
- package/dist/utils/auth-guard.d.ts +16 -0
- package/dist/utils/auth-guard.d.ts.map +1 -0
- package/dist/utils/auth-guard.js +25 -0
- package/dist/utils/aws-secrets.d.ts +21 -0
- package/dist/utils/aws-secrets.d.ts.map +1 -0
- package/dist/utils/aws-secrets.js +74 -0
- package/dist/utils/banner.d.ts +19 -0
- package/dist/utils/banner.d.ts.map +1 -0
- package/dist/utils/banner.js +59 -0
- package/dist/utils/cdk-utils.d.ts +51 -0
- package/dist/utils/cdk-utils.d.ts.map +1 -0
- package/dist/utils/cdk-utils.js +101 -0
- package/dist/utils/command-utils.d.ts +56 -0
- package/dist/utils/command-utils.d.ts.map +1 -0
- package/dist/utils/command-utils.js +138 -0
- package/dist/utils/config-loader.d.ts +27 -0
- package/dist/utils/config-loader.d.ts.map +1 -0
- package/dist/utils/config-loader.js +166 -0
- package/dist/utils/error-handler.d.ts +29 -0
- package/dist/utils/error-handler.d.ts.map +1 -0
- package/dist/utils/error-handler.js +255 -0
- package/dist/utils/list-command-utils.d.ts +23 -0
- package/dist/utils/list-command-utils.d.ts.map +1 -0
- package/dist/utils/list-command-utils.js +60 -0
- package/dist/utils/output-utils.d.ts +60 -0
- package/dist/utils/output-utils.d.ts.map +1 -0
- package/dist/utils/output-utils.js +320 -0
- package/dist/utils/rate-limiter.d.ts +14 -0
- package/dist/utils/rate-limiter.d.ts.map +1 -0
- package/dist/utils/rate-limiter.js +73 -0
- package/package.json +144 -0
package/LICENSE
ADDED
|
@@ -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.
|
package/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# @pipeline-builder/pipeline-manager
|
|
2
|
+
|
|
3
|
+
📖 **[View documentation](https://mwashburn160.github.io/pipeline-builder/)**
|
|
4
|
+
|
|
5
|
+
CLI for [Pipeline Builder](https://mwashburn160.github.io/pipeline-builder/): bootstrap, synth, deploy, and manage CDK pipelines + plugins against a running platform.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g @pipeline-builder/pipeline-manager
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Requires Node.js 24.14.0+.
|
|
14
|
+
|
|
15
|
+
## Quick start
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# Authenticate against your Pipeline Builder platform
|
|
19
|
+
pipeline-manager login --platform https://platform.example.com
|
|
20
|
+
|
|
21
|
+
# Bootstrap a new project in the current directory
|
|
22
|
+
pipeline-manager bootstrap
|
|
23
|
+
|
|
24
|
+
# Synthesize the CDK app into a CloudFormation template
|
|
25
|
+
pipeline-manager synth
|
|
26
|
+
|
|
27
|
+
# Deploy the pipeline to AWS
|
|
28
|
+
pipeline-manager deploy
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Commands
|
|
32
|
+
|
|
33
|
+
| Command | Purpose |
|
|
34
|
+
| --- | --- |
|
|
35
|
+
| `bootstrap` | Scaffold a new pipeline project with `cdk.json` and starter config |
|
|
36
|
+
| `synth` | Run CDK synth to emit the CloudFormation template for the pipeline |
|
|
37
|
+
| `deploy` | Deploy the synthesized pipeline stack to AWS |
|
|
38
|
+
| `status` | Report the current deployment and execution status |
|
|
39
|
+
| `create-pipeline` | Register a new pipeline definition with the platform |
|
|
40
|
+
| `list-pipelines` / `get-pipeline` | Inspect pipelines registered to your organization |
|
|
41
|
+
| `list-plugins` / `get-plugin` | Browse the plugin catalog and fetch a single plugin spec |
|
|
42
|
+
| `upload-plugin` | Publish a custom plugin spec + Dockerfile to the platform |
|
|
43
|
+
| `setup-events` | Wire CodePipeline events into the platform's reporting stream |
|
|
44
|
+
| `login` / `store-token` | Manage the `PLATFORM_TOKEN` used to authenticate API calls |
|
|
45
|
+
| `version` | Print CLI version info |
|
|
46
|
+
|
|
47
|
+
Run `pipeline-manager <command> --help` for the full flag reference on any command.
|
|
48
|
+
|
|
49
|
+
## Environment variables
|
|
50
|
+
|
|
51
|
+
| Variable | Required | Purpose |
|
|
52
|
+
| --- | --- | --- |
|
|
53
|
+
| `PLATFORM_TOKEN` | Yes (for API ops) | Auth token for the Pipeline Builder platform |
|
|
54
|
+
| `PLATFORM_URL` | Yes (for API ops) | Base URL of your platform deployment |
|
|
55
|
+
| `AWS_REGION` | Yes (for deploy) | Target AWS region for `synth` / `deploy` |
|
|
56
|
+
| `RESOLVED_SYNTH_PLUGIN` | No | `true` inside CodePipeline so the synth step resolves plugins via the platform; defaults to `false` for local CLI runs |
|
|
57
|
+
|
|
58
|
+
Full reference: [Environment Variables](https://mwashburn160.github.io/pipeline-builder/docs/environment-variables).
|
|
59
|
+
|
|
60
|
+
## Documentation
|
|
61
|
+
|
|
62
|
+
- [Getting started](https://mwashburn160.github.io/pipeline-builder/)
|
|
63
|
+
- [CDK usage](https://mwashburn160.github.io/pipeline-builder/docs/cdk-usage)
|
|
64
|
+
- [Plugin catalog (124 plugins)](https://mwashburn160.github.io/pipeline-builder/docs/plugins/)
|
|
65
|
+
- [API reference](https://mwashburn160.github.io/pipeline-builder/docs/api-reference)
|
|
66
|
+
- [AWS deployment](https://mwashburn160.github.io/pipeline-builder/docs/aws-deployment)
|
|
67
|
+
|
|
68
|
+
## License
|
|
69
|
+
|
|
70
|
+
Apache-2.0. See [LICENSE](./LICENSE).
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
**Keywords:** aws, codepipeline, codebuild, cicd, ci-cd, devops, cdk, aws-cdk, cloudformation, pipeline, pipeline-as-code, containerized, docker, kubernetes, plugins, typescript, self-service, multi-tenant, compliance, automation, infrastructure-as-code, iac, cli
|
package/cdk.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"app": "node boilerplate.js",
|
|
3
|
+
"watch": {
|
|
4
|
+
"include": [
|
|
5
|
+
"**"
|
|
6
|
+
],
|
|
7
|
+
"exclude": [
|
|
8
|
+
"README.md",
|
|
9
|
+
"cdk*.json",
|
|
10
|
+
"jest.config.js",
|
|
11
|
+
"package*.json",
|
|
12
|
+
"yarn.lock",
|
|
13
|
+
"node_modules",
|
|
14
|
+
"test"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"context": {
|
|
18
|
+
"notices": false,
|
|
19
|
+
"cli-telemetry": false,
|
|
20
|
+
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
|
|
21
|
+
"@aws-cdk/core:checkSecretUsage": true,
|
|
22
|
+
"@aws-cdk/core:target-partitions": [
|
|
23
|
+
"aws",
|
|
24
|
+
"aws-cn"
|
|
25
|
+
],
|
|
26
|
+
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
|
|
27
|
+
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
|
|
28
|
+
"@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,
|
|
29
|
+
"@aws-cdk/aws-iam:minimizePolicies": true,
|
|
30
|
+
"@aws-cdk/core:validateSnapshotRemovalPolicy": true,
|
|
31
|
+
"@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName": true,
|
|
32
|
+
"@aws-cdk/aws-s3:createDefaultLoggingPolicy": true,
|
|
33
|
+
"@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption": true,
|
|
34
|
+
"@aws-cdk/aws-apigateway:disableCloudWatchRole": true,
|
|
35
|
+
"@aws-cdk/core:enablePartitionLiterals": true,
|
|
36
|
+
"@aws-cdk/aws-events:eventsTargetQueueSameAccount": true,
|
|
37
|
+
"@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker": true,
|
|
38
|
+
"@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName": true,
|
|
39
|
+
"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true,
|
|
40
|
+
"@aws-cdk/aws-route53-patters:useCertificate": true,
|
|
41
|
+
"@aws-cdk/customresources:installLatestAwsSdkDefault": false,
|
|
42
|
+
"@aws-cdk/aws-rds:databaseProxyUniqueResourceName": true,
|
|
43
|
+
"@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup": true,
|
|
44
|
+
"@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId": true,
|
|
45
|
+
"@aws-cdk/aws-ec2:launchTemplateDefaultUserData": true,
|
|
46
|
+
"@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments": true,
|
|
47
|
+
"@aws-cdk/aws-redshift:columnId": true,
|
|
48
|
+
"@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2": true,
|
|
49
|
+
"@aws-cdk/aws-ec2:restrictDefaultSecurityGroup": true,
|
|
50
|
+
"@aws-cdk/aws-apigateway:requestValidatorUniqueId": true,
|
|
51
|
+
"@aws-cdk/aws-kms:aliasNameRef": true,
|
|
52
|
+
"@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig": true,
|
|
53
|
+
"@aws-cdk/core:includePrefixInUniqueNameGeneration": true,
|
|
54
|
+
"@aws-cdk/aws-efs:denyAnonymousAccess": true,
|
|
55
|
+
"@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby": true,
|
|
56
|
+
"@aws-cdk/aws-lambda-nodejs:useLatestRuntimeVersion": true,
|
|
57
|
+
"@aws-cdk/aws-efs:mountTargetOrderInsensitiveLogicalId": true,
|
|
58
|
+
"@aws-cdk/aws-rds:auroraClusterChangeScopeOfInstanceParameterGroupWithEachParameters": true,
|
|
59
|
+
"@aws-cdk/aws-appsync:useArnForSourceApiAssociationIdentifier": true,
|
|
60
|
+
"@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials": true,
|
|
61
|
+
"@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource": true,
|
|
62
|
+
"@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction": true,
|
|
63
|
+
"@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse": true,
|
|
64
|
+
"@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2": true,
|
|
65
|
+
"@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope": true,
|
|
66
|
+
"@aws-cdk/aws-eks:nodegroupNameAttribute": true,
|
|
67
|
+
"@aws-cdk/aws-ec2:ebsDefaultGp3Volume": true,
|
|
68
|
+
"@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm": true,
|
|
69
|
+
"@aws-cdk/custom-resources:logApiResponseDataPropertyTrueDefault": false,
|
|
70
|
+
"@aws-cdk/aws-s3:keepNotificationInImportedBucket": false,
|
|
71
|
+
"@aws-cdk/aws-ecs:enableImdsBlockingDeprecatedFeature": false,
|
|
72
|
+
"@aws-cdk/aws-ecs:disableEcsImdsBlocking": true,
|
|
73
|
+
"@aws-cdk/aws-ecs:reduceEc2FargateCloudWatchPermissions": true,
|
|
74
|
+
"@aws-cdk/aws-dynamodb:resourcePolicyPerReplica": true,
|
|
75
|
+
"@aws-cdk/aws-ec2:ec2SumTImeoutEnabled": true,
|
|
76
|
+
"@aws-cdk/aws-appsync:appSyncGraphQLAPIScopeLambdaPermission": true,
|
|
77
|
+
"@aws-cdk/aws-rds:setCorrectValueForDatabaseInstanceReadReplicaInstanceResourceId": true,
|
|
78
|
+
"@aws-cdk/core:cfnIncludeRejectComplexResourceUpdateCreatePolicyIntrinsics": true,
|
|
79
|
+
"@aws-cdk/aws-lambda-nodejs:sdkV3ExcludeSmithyPackages": true,
|
|
80
|
+
"@aws-cdk/aws-stepfunctions-tasks:fixRunEcsTaskPolicy": true,
|
|
81
|
+
"@aws-cdk/aws-ec2:bastionHostUseAmazonLinux2023ByDefault": true,
|
|
82
|
+
"@aws-cdk/aws-route53-targets:userPoolDomainNameMethodWithoutCustomResource": true,
|
|
83
|
+
"@aws-cdk/aws-elasticloadbalancingV2:albDualstackWithoutPublicIpv4SecurityGroupRulesDefault": true,
|
|
84
|
+
"@aws-cdk/aws-iam:oidcRejectUnauthorizedConnections": true,
|
|
85
|
+
"@aws-cdk/core:enableAdditionalMetadataCollection": false,
|
|
86
|
+
"@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy": false,
|
|
87
|
+
"@aws-cdk/aws-s3:setUniqueReplicationRoleName": true,
|
|
88
|
+
"@aws-cdk/aws-events:requireEventBusPolicySid": true,
|
|
89
|
+
"@aws-cdk/aws-dynamodb:retainTableReplica": true
|
|
90
|
+
}
|
|
91
|
+
}
|
package/config.yml
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# CLI Configuration File
|
|
2
|
+
# Save this as config.yml in your project root or specify with CLI_CONFIG_PATH
|
|
3
|
+
|
|
4
|
+
# ============================================================================
|
|
5
|
+
# API Configuration
|
|
6
|
+
# ============================================================================
|
|
7
|
+
api:
|
|
8
|
+
# Base URL for the API
|
|
9
|
+
# Can be overridden with PLATFORM_URL environment variable
|
|
10
|
+
baseUrl: https://localhost:8443
|
|
11
|
+
|
|
12
|
+
# Request timeout in milliseconds
|
|
13
|
+
timeout: 30000
|
|
14
|
+
|
|
15
|
+
# SSL/TLS Certificate Validation
|
|
16
|
+
# Set to false to disable certificate validation (DEVELOPMENT ONLY)
|
|
17
|
+
# Default: true (secure)
|
|
18
|
+
#
|
|
19
|
+
# WARNING: Setting this to false disables certificate validation and makes
|
|
20
|
+
# your application vulnerable to man-in-the-middle attacks. Only use this
|
|
21
|
+
# in development environments with self-signed certificates.
|
|
22
|
+
rejectUnauthorized: true
|
|
23
|
+
|
|
24
|
+
# API Endpoints
|
|
25
|
+
#
|
|
26
|
+
# Pipeline Endpoints:
|
|
27
|
+
# pipelineUrl - Single pipeline operations (GET by ID, POST)
|
|
28
|
+
# Used by: get-pipeline, create-pipeline
|
|
29
|
+
# Format: /api/pipeline/{id} or /api/pipeline
|
|
30
|
+
#
|
|
31
|
+
# pipelineListUrl - List/query multiple pipelines with filters
|
|
32
|
+
# Used by: list-pipelines
|
|
33
|
+
# Format: /api/pipelines?filter1=value1&filter2=value2
|
|
34
|
+
# Supports filters: id, accessModifier, isDefault, isActive,
|
|
35
|
+
# project, projectPattern, organizationPattern,
|
|
36
|
+
# limit, offset, sort
|
|
37
|
+
#
|
|
38
|
+
# Plugin Endpoints:
|
|
39
|
+
# pluginUrl - Single plugin operations (GET by ID)
|
|
40
|
+
# Used by: get-plugin
|
|
41
|
+
# Format: /api/plugin/{id}
|
|
42
|
+
#
|
|
43
|
+
# pluginListUrl - List/query multiple plugins with filters
|
|
44
|
+
# Used by: list-plugins
|
|
45
|
+
# Format: /api/plugins?filter1=value1&filter2=value2
|
|
46
|
+
# Supports filters: id, accessModifier, isDefault, isActive,
|
|
47
|
+
# name, namePattern, version, versionRange,
|
|
48
|
+
# imageTag, limit, offset, sort
|
|
49
|
+
#
|
|
50
|
+
# pluginUploadUrl - Plugin upload endpoint
|
|
51
|
+
# Used by: upload-plugin
|
|
52
|
+
# Format: /api/plugin/upload
|
|
53
|
+
#
|
|
54
|
+
# Note: Singular vs Plural URLs
|
|
55
|
+
# - Singular (/api/plugin, /api/pipeline) - Single resource operations
|
|
56
|
+
# - Plural (/api/plugins, /api/pipelines) - List/query operations
|
|
57
|
+
pipelineUrl: /api/pipeline
|
|
58
|
+
pipelineListUrl: /api/pipelines
|
|
59
|
+
pluginUrl: /api/plugin
|
|
60
|
+
pluginListUrl: /api/plugins
|
|
61
|
+
pluginUploadUrl: /api/plugin/upload
|
|
62
|
+
|
|
63
|
+
# ============================================================================
|
|
64
|
+
# AUTHENTICATION
|
|
65
|
+
# ============================================================================
|
|
66
|
+
# Authentication is handled via environment variable ONLY.
|
|
67
|
+
# DO NOT include auth configuration in this file.
|
|
68
|
+
#
|
|
69
|
+
# Set your token with:
|
|
70
|
+
# export PLATFORM_TOKEN='your-token-here'
|
|
71
|
+
#
|
|
72
|
+
# The token should NEVER be committed to version control.
|
|
73
|
+
# ============================================================================
|
|
74
|
+
|
|
75
|
+
# ============================================================================
|
|
76
|
+
# ENVIRONMENT VARIABLES
|
|
77
|
+
# ============================================================================
|
|
78
|
+
# The following environment variables are used by the CLI:
|
|
79
|
+
#
|
|
80
|
+
# REQUIRED:
|
|
81
|
+
# PLATFORM_TOKEN - Authentication token for API access
|
|
82
|
+
# Example: export PLATFORM_TOKEN='eyJhbG...'
|
|
83
|
+
#
|
|
84
|
+
# OPTIONAL:
|
|
85
|
+
# PLATFORM_URL - Override api.baseUrl
|
|
86
|
+
# Example: export PLATFORM_URL='https://api.example.com'
|
|
87
|
+
#
|
|
88
|
+
# CLI_CONFIG_PATH - Path to this config file
|
|
89
|
+
# Example: export CLI_CONFIG_PATH='/path/to/config.yml'
|
|
90
|
+
#
|
|
91
|
+
# TLS_REJECT_UNAUTHORIZED - Set to '0' to disable cert validation
|
|
92
|
+
# Example: export TLS_REJECT_UNAUTHORIZED='0'
|
|
93
|
+
#
|
|
94
|
+
# ============================================================================
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boilerplate.d.ts","sourceRoot":"","sources":["../src/boilerplate.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
// Copyright 2026 Pipeline Builder Contributors
|
|
4
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
const pipeline_core_1 = require("@pipeline-builder/pipeline-core");
|
|
10
|
+
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
11
|
+
const picocolors_1 = __importDefault(require("picocolors"));
|
|
12
|
+
const { cyan, green, dim, bold, magenta, red } = picocolors_1.default;
|
|
13
|
+
const app = new aws_cdk_lib_1.App();
|
|
14
|
+
/**
|
|
15
|
+
* Parse PIPELINE_PROPS from environment variable (base64-encoded JSON).
|
|
16
|
+
* This is always set by the `synth` or `deploy` command before invoking boilerplate.
|
|
17
|
+
*/
|
|
18
|
+
function parse() {
|
|
19
|
+
const encodedProps = process.env.PIPELINE_PROPS;
|
|
20
|
+
if (!encodedProps) {
|
|
21
|
+
throw new Error('PIPELINE_PROPS environment variable is missing. ' +
|
|
22
|
+
'Use "pipeline-manager synth --id <id>" or "pipeline-manager deploy --id <id>" to set it.');
|
|
23
|
+
}
|
|
24
|
+
try {
|
|
25
|
+
const decoded = Buffer.from(encodedProps, 'base64').toString('utf-8');
|
|
26
|
+
return JSON.parse(decoded);
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
throw new Error(`Failed to parse PIPELINE_PROPS: ${error instanceof Error ? error.message : 'Invalid Base64/JSON format'}`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function main() {
|
|
33
|
+
const executionId = Math.random().toString(36).substring(7).toUpperCase();
|
|
34
|
+
console.log(`${magenta(`[CDK-APP-${executionId}]`)} ${cyan('Pipeline builder starting')}`);
|
|
35
|
+
const props = parse();
|
|
36
|
+
const stackName = `${props.project}-${props.organization}`.toLowerCase();
|
|
37
|
+
const componentId = 'pipeline-builder';
|
|
38
|
+
console.log('Pipeline configuration:', {
|
|
39
|
+
stackName,
|
|
40
|
+
project: props.project,
|
|
41
|
+
organization: props.organization,
|
|
42
|
+
componentId,
|
|
43
|
+
});
|
|
44
|
+
const stack = new aws_cdk_lib_1.Stack(app, stackName, {});
|
|
45
|
+
new pipeline_core_1.PipelineBuilder(stack, componentId, props);
|
|
46
|
+
console.log(green(bold('Success')), green('CDK constructs synthesized successfully'));
|
|
47
|
+
}
|
|
48
|
+
try {
|
|
49
|
+
main();
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
console.error(bold(red('[BUILD FAILED]')), error instanceof Error ? error.message : String(error));
|
|
53
|
+
if (error instanceof Error && error.stack) {
|
|
54
|
+
console.error(dim(error.stack));
|
|
55
|
+
}
|
|
56
|
+
process.exit(1);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=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GVycm9yLm1lc3NhZ2UgOiBTdHJpbmcoZXJyb3IpLFxuICApO1xuXG4gIGlmIChlcnJvciBpbnN0YW5jZW9mIEVycm9yICYmIGVycm9yLnN0YWNrKSB7XG4gICAgY29uc29sZS5lcnJvcihkaW0oZXJyb3Iuc3RhY2spKTtcbiAgfVxuXG4gIHByb2Nlc3MuZXhpdCgxKTtcbn1cbiJdfQ==
|
package/dist/cdk.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"app": "node boilerplate.js",
|
|
3
|
+
"watch": {
|
|
4
|
+
"include": [
|
|
5
|
+
"**"
|
|
6
|
+
],
|
|
7
|
+
"exclude": [
|
|
8
|
+
"README.md",
|
|
9
|
+
"cdk*.json",
|
|
10
|
+
"jest.config.js",
|
|
11
|
+
"package*.json",
|
|
12
|
+
"yarn.lock",
|
|
13
|
+
"node_modules",
|
|
14
|
+
"test"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"context": {
|
|
18
|
+
"notices": false,
|
|
19
|
+
"cli-telemetry": false,
|
|
20
|
+
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
|
|
21
|
+
"@aws-cdk/core:checkSecretUsage": true,
|
|
22
|
+
"@aws-cdk/core:target-partitions": [
|
|
23
|
+
"aws",
|
|
24
|
+
"aws-cn"
|
|
25
|
+
],
|
|
26
|
+
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
|
|
27
|
+
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
|
|
28
|
+
"@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,
|
|
29
|
+
"@aws-cdk/aws-iam:minimizePolicies": true,
|
|
30
|
+
"@aws-cdk/core:validateSnapshotRemovalPolicy": true,
|
|
31
|
+
"@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName": true,
|
|
32
|
+
"@aws-cdk/aws-s3:createDefaultLoggingPolicy": true,
|
|
33
|
+
"@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption": true,
|
|
34
|
+
"@aws-cdk/aws-apigateway:disableCloudWatchRole": true,
|
|
35
|
+
"@aws-cdk/core:enablePartitionLiterals": true,
|
|
36
|
+
"@aws-cdk/aws-events:eventsTargetQueueSameAccount": true,
|
|
37
|
+
"@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker": true,
|
|
38
|
+
"@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName": true,
|
|
39
|
+
"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true,
|
|
40
|
+
"@aws-cdk/aws-route53-patters:useCertificate": true,
|
|
41
|
+
"@aws-cdk/customresources:installLatestAwsSdkDefault": false,
|
|
42
|
+
"@aws-cdk/aws-rds:databaseProxyUniqueResourceName": true,
|
|
43
|
+
"@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup": true,
|
|
44
|
+
"@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId": true,
|
|
45
|
+
"@aws-cdk/aws-ec2:launchTemplateDefaultUserData": true,
|
|
46
|
+
"@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments": true,
|
|
47
|
+
"@aws-cdk/aws-redshift:columnId": true,
|
|
48
|
+
"@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2": true,
|
|
49
|
+
"@aws-cdk/aws-ec2:restrictDefaultSecurityGroup": true,
|
|
50
|
+
"@aws-cdk/aws-apigateway:requestValidatorUniqueId": true,
|
|
51
|
+
"@aws-cdk/aws-kms:aliasNameRef": true,
|
|
52
|
+
"@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig": true,
|
|
53
|
+
"@aws-cdk/core:includePrefixInUniqueNameGeneration": true,
|
|
54
|
+
"@aws-cdk/aws-efs:denyAnonymousAccess": true,
|
|
55
|
+
"@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby": true,
|
|
56
|
+
"@aws-cdk/aws-lambda-nodejs:useLatestRuntimeVersion": true,
|
|
57
|
+
"@aws-cdk/aws-efs:mountTargetOrderInsensitiveLogicalId": true,
|
|
58
|
+
"@aws-cdk/aws-rds:auroraClusterChangeScopeOfInstanceParameterGroupWithEachParameters": true,
|
|
59
|
+
"@aws-cdk/aws-appsync:useArnForSourceApiAssociationIdentifier": true,
|
|
60
|
+
"@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials": true,
|
|
61
|
+
"@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource": true,
|
|
62
|
+
"@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction": true,
|
|
63
|
+
"@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse": true,
|
|
64
|
+
"@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2": true,
|
|
65
|
+
"@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope": true,
|
|
66
|
+
"@aws-cdk/aws-eks:nodegroupNameAttribute": true,
|
|
67
|
+
"@aws-cdk/aws-ec2:ebsDefaultGp3Volume": true,
|
|
68
|
+
"@aws-cdk/aws-ecs:removeDefaultDeploymentAlarm": true,
|
|
69
|
+
"@aws-cdk/custom-resources:logApiResponseDataPropertyTrueDefault": false,
|
|
70
|
+
"@aws-cdk/aws-s3:keepNotificationInImportedBucket": false,
|
|
71
|
+
"@aws-cdk/aws-ecs:enableImdsBlockingDeprecatedFeature": false,
|
|
72
|
+
"@aws-cdk/aws-ecs:disableEcsImdsBlocking": true,
|
|
73
|
+
"@aws-cdk/aws-ecs:reduceEc2FargateCloudWatchPermissions": true,
|
|
74
|
+
"@aws-cdk/aws-dynamodb:resourcePolicyPerReplica": true,
|
|
75
|
+
"@aws-cdk/aws-ec2:ec2SumTImeoutEnabled": true,
|
|
76
|
+
"@aws-cdk/aws-appsync:appSyncGraphQLAPIScopeLambdaPermission": true,
|
|
77
|
+
"@aws-cdk/aws-rds:setCorrectValueForDatabaseInstanceReadReplicaInstanceResourceId": true,
|
|
78
|
+
"@aws-cdk/core:cfnIncludeRejectComplexResourceUpdateCreatePolicyIntrinsics": true,
|
|
79
|
+
"@aws-cdk/aws-lambda-nodejs:sdkV3ExcludeSmithyPackages": true,
|
|
80
|
+
"@aws-cdk/aws-stepfunctions-tasks:fixRunEcsTaskPolicy": true,
|
|
81
|
+
"@aws-cdk/aws-ec2:bastionHostUseAmazonLinux2023ByDefault": true,
|
|
82
|
+
"@aws-cdk/aws-route53-targets:userPoolDomainNameMethodWithoutCustomResource": true,
|
|
83
|
+
"@aws-cdk/aws-elasticloadbalancingV2:albDualstackWithoutPublicIpv4SecurityGroupRulesDefault": true,
|
|
84
|
+
"@aws-cdk/aws-iam:oidcRejectUnauthorizedConnections": true,
|
|
85
|
+
"@aws-cdk/core:enableAdditionalMetadataCollection": false,
|
|
86
|
+
"@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy": false,
|
|
87
|
+
"@aws-cdk/aws-s3:setUniqueReplicationRoleName": true,
|
|
88
|
+
"@aws-cdk/aws-events:requireEventBusPolicySid": true,
|
|
89
|
+
"@aws-cdk/aws-dynamodb:retainTableReplica": true
|
|
90
|
+
}
|
|
91
|
+
}
|