stacktape 1.0.0-aplha.8 → 1.0.0-beta.3

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.
Files changed (134) hide show
  1. package/README.md +468 -0
  2. package/bin/run +4 -3
  3. package/{non-ts-files → bridge-files}/python-bridge.py +0 -1
  4. package/cli.js +6314 -0
  5. package/config-schema.json +1 -0
  6. package/helper-lambdas/batchJobTriggerLambda-beee8a1b15a6c09be6b3c96435478ecd04d748a6.zip +0 -0
  7. package/helper-lambdas/cdnOriginRequestLambda-f3f6e394fda27d5f14c6dd6161305ed7a1cd3d81.zip +0 -0
  8. package/helper-lambdas/cdnOriginResponseLambda-88888aca5ae55375744f5282c33952a60aa36ec8.zip +0 -0
  9. package/helper-lambdas/stacktapeServiceLambda-314cc4fd819901c71917d6e1f4b1bf71294e2c95.zip +0 -0
  10. package/package.json +21 -51
  11. package/sdk.d.ts +10714 -0
  12. package/sdk.js +87 -0
  13. package/server.js +6049 -0
  14. package/source-map-install.js +4 -0
  15. package/starter-projects/typescript-expressjs-api-mongodb-mongoose/.eslintrc +76 -0
  16. package/starter-projects/typescript-expressjs-api-mongodb-mongoose/.prettierrc +5 -0
  17. package/starter-projects/typescript-expressjs-api-mongodb-mongoose/README.md +55 -0
  18. package/starter-projects/typescript-expressjs-api-mongodb-mongoose/package.json +37 -0
  19. package/starter-projects/typescript-expressjs-api-mongodb-mongoose/scripts/test-api.js +46 -0
  20. package/starter-projects/typescript-expressjs-api-mongodb-mongoose/src/index.ts +24 -0
  21. package/starter-projects/typescript-expressjs-api-mongodb-mongoose/src/model/post.ts +27 -0
  22. package/starter-projects/typescript-expressjs-api-mongodb-mongoose/src/routes/post.ts +59 -0
  23. package/starter-projects/typescript-expressjs-api-mongodb-mongoose/src/services/mongoose.ts +14 -0
  24. package/starter-projects/typescript-expressjs-api-mongodb-mongoose/stacktape.yml +45 -0
  25. package/starter-projects/typescript-expressjs-api-mongodb-mongoose/tsconfig.json +21 -0
  26. package/starter-projects/typescript-expressjs-api-mysql-sequelize/.eslintrc +76 -0
  27. package/starter-projects/typescript-expressjs-api-mysql-sequelize/.prettierrc +5 -0
  28. package/starter-projects/typescript-expressjs-api-mysql-sequelize/README.md +49 -0
  29. package/starter-projects/typescript-expressjs-api-mysql-sequelize/package.json +38 -0
  30. package/starter-projects/typescript-expressjs-api-mysql-sequelize/scripts/test-api.js +46 -0
  31. package/starter-projects/typescript-expressjs-api-mysql-sequelize/src/index.ts +24 -0
  32. package/starter-projects/typescript-expressjs-api-mysql-sequelize/src/model/post.ts +11 -0
  33. package/starter-projects/typescript-expressjs-api-mysql-sequelize/src/routes/post.ts +55 -0
  34. package/starter-projects/typescript-expressjs-api-mysql-sequelize/src/services/sequelize.ts +10 -0
  35. package/starter-projects/typescript-expressjs-api-mysql-sequelize/stacktape.yml +43 -0
  36. package/starter-projects/typescript-expressjs-api-mysql-sequelize/tsconfig.json +21 -0
  37. package/starter-projects/typescript-lambda-api-postgres-prisma/.eslintrc +76 -0
  38. package/starter-projects/typescript-lambda-api-postgres-prisma/.prettierrc +5 -0
  39. package/starter-projects/typescript-lambda-api-postgres-prisma/README.md +53 -0
  40. package/starter-projects/typescript-lambda-api-postgres-prisma/package.json +38 -0
  41. package/starter-projects/typescript-lambda-api-postgres-prisma/prisma/schema.prisma +18 -0
  42. package/starter-projects/typescript-lambda-api-postgres-prisma/scripts/test-api.js +46 -0
  43. package/starter-projects/typescript-lambda-api-postgres-prisma/src/lambdas/create-post.ts +33 -0
  44. package/starter-projects/typescript-lambda-api-postgres-prisma/src/lambdas/delete-post.ts +26 -0
  45. package/starter-projects/typescript-lambda-api-postgres-prisma/src/lambdas/get-post.ts +25 -0
  46. package/starter-projects/typescript-lambda-api-postgres-prisma/src/lambdas/get-posts.ts +27 -0
  47. package/starter-projects/typescript-lambda-api-postgres-prisma/src/lambdas/update-post.ts +35 -0
  48. package/starter-projects/typescript-lambda-api-postgres-prisma/src/services/prisma.ts +3 -0
  49. package/starter-projects/typescript-lambda-api-postgres-prisma/stacktape.yml +105 -0
  50. package/starter-projects/typescript-lambda-api-postgres-prisma/tsconfig.json +21 -0
  51. package/starter-projects/typescript-lambda-api-postgres-prisma-auth/.eslintrc +76 -0
  52. package/starter-projects/typescript-lambda-api-postgres-prisma-auth/.prettierrc +5 -0
  53. package/starter-projects/typescript-lambda-api-postgres-prisma-auth/README.md +53 -0
  54. package/starter-projects/typescript-lambda-api-postgres-prisma-auth/package.json +39 -0
  55. package/starter-projects/typescript-lambda-api-postgres-prisma-auth/prisma/schema.prisma +18 -0
  56. package/starter-projects/typescript-lambda-api-postgres-prisma-auth/scripts/test-api-auth.js +55 -0
  57. package/starter-projects/typescript-lambda-api-postgres-prisma-auth/src/lambdas/create-post.ts +37 -0
  58. package/starter-projects/typescript-lambda-api-postgres-prisma-auth/src/lambdas/delete-post.ts +26 -0
  59. package/starter-projects/typescript-lambda-api-postgres-prisma-auth/src/lambdas/get-post.ts +25 -0
  60. package/starter-projects/typescript-lambda-api-postgres-prisma-auth/src/lambdas/get-posts.ts +27 -0
  61. package/starter-projects/typescript-lambda-api-postgres-prisma-auth/src/lambdas/update-post.ts +35 -0
  62. package/starter-projects/typescript-lambda-api-postgres-prisma-auth/src/services/cognito.ts +3 -0
  63. package/starter-projects/typescript-lambda-api-postgres-prisma-auth/src/services/prisma.ts +3 -0
  64. package/starter-projects/typescript-lambda-api-postgres-prisma-auth/stacktape.yml +126 -0
  65. package/starter-projects/typescript-lambda-api-postgres-prisma-auth/tsconfig.json +21 -0
  66. package/starter-projects/typescript-lambda-hello-world/.eslintrc +76 -0
  67. package/starter-projects/typescript-lambda-hello-world/.prettierrc +5 -0
  68. package/starter-projects/typescript-lambda-hello-world/README.md +31 -0
  69. package/starter-projects/typescript-lambda-hello-world/package.json +27 -0
  70. package/starter-projects/typescript-lambda-hello-world/src/say-hello.ts +5 -0
  71. package/starter-projects/typescript-lambda-hello-world/stacktape.yml +20 -0
  72. package/starter-projects/typescript-lambda-hello-world/tsconfig.json +21 -0
  73. package/starter-projects/typescript-nestjs-api-postgres-prisma/.eslintrc +76 -0
  74. package/starter-projects/typescript-nestjs-api-postgres-prisma/.prettierrc +5 -0
  75. package/starter-projects/typescript-nestjs-api-postgres-prisma/README.md +49 -0
  76. package/starter-projects/typescript-nestjs-api-postgres-prisma/nest-cli.json +4 -0
  77. package/starter-projects/typescript-nestjs-api-postgres-prisma/package.json +44 -0
  78. package/starter-projects/typescript-nestjs-api-postgres-prisma/prisma/schema.prisma +19 -0
  79. package/starter-projects/typescript-nestjs-api-postgres-prisma/scripts/test-api.js +46 -0
  80. package/starter-projects/typescript-nestjs-api-postgres-prisma/src/app.controller.ts +70 -0
  81. package/starter-projects/typescript-nestjs-api-postgres-prisma/src/app.module.ts +15 -0
  82. package/starter-projects/typescript-nestjs-api-postgres-prisma/src/main.ts +9 -0
  83. package/starter-projects/typescript-nestjs-api-postgres-prisma/src/middleware/logger.ts +17 -0
  84. package/starter-projects/typescript-nestjs-api-postgres-prisma/src/prisma.service.ts +13 -0
  85. package/starter-projects/typescript-nestjs-api-postgres-prisma/stacktape.yml +69 -0
  86. package/starter-projects/typescript-nestjs-api-postgres-prisma/tsconfig.json +21 -0
  87. package/starter-projects/typescript-web-scraper-lambda-puppeteer/.eslintrc +76 -0
  88. package/starter-projects/typescript-web-scraper-lambda-puppeteer/.prettierrc +5 -0
  89. package/starter-projects/typescript-web-scraper-lambda-puppeteer/README.md +34 -0
  90. package/starter-projects/typescript-web-scraper-lambda-puppeteer/package.json +32 -0
  91. package/starter-projects/typescript-web-scraper-lambda-puppeteer/src/lambdas/scrape-links.ts +30 -0
  92. package/starter-projects/typescript-web-scraper-lambda-puppeteer/stacktape.yml +24 -0
  93. package/starter-projects/typescript-web-scraper-lambda-puppeteer/tsconfig.json +21 -0
  94. package/starter-projects/website-gatsby/.eslintrc +76 -0
  95. package/starter-projects/website-gatsby/.prettierrc +5 -0
  96. package/starter-projects/website-gatsby/README.md +32 -0
  97. package/starter-projects/website-gatsby/gatsby-config.js +7 -0
  98. package/starter-projects/website-gatsby/package.json +39 -0
  99. package/starter-projects/website-gatsby/src/pages/404.tsx +66 -0
  100. package/starter-projects/website-gatsby/src/pages/index.tsx +120 -0
  101. package/starter-projects/website-gatsby/src/styles/styles.tsx +74 -0
  102. package/starter-projects/website-gatsby/stacktape.yml +17 -0
  103. package/starter-projects/website-gatsby/static/stacktape-logo.svg +73 -0
  104. package/starter-projects/website-gatsby/tsconfig.json +21 -0
  105. package/starter-projects/website-nextjs-ssr/.eslintrc +77 -0
  106. package/starter-projects/website-nextjs-ssr/.prettierrc +5 -0
  107. package/starter-projects/website-nextjs-ssr/README.md +33 -0
  108. package/starter-projects/website-nextjs-ssr/next-env.d.ts +6 -0
  109. package/starter-projects/website-nextjs-ssr/next.config.js +4 -0
  110. package/starter-projects/website-nextjs-ssr/package.json +38 -0
  111. package/starter-projects/website-nextjs-ssr/public/static/favicon.ico +0 -0
  112. package/starter-projects/website-nextjs-ssr/public/static/stacktape-logo.svg +73 -0
  113. package/starter-projects/website-nextjs-ssr/src/next-server.ts +22 -0
  114. package/starter-projects/website-nextjs-ssr/src/pages/_app.tsx +7 -0
  115. package/starter-projects/website-nextjs-ssr/src/pages/index.tsx +36 -0
  116. package/starter-projects/website-nextjs-ssr/src/styles/Home.module.css +54 -0
  117. package/starter-projects/website-nextjs-ssr/src/styles/globals.css +16 -0
  118. package/starter-projects/website-nextjs-ssr/stacktape.yml +33 -0
  119. package/starter-projects/website-nextjs-ssr/tsconfig.json +22 -0
  120. package/starter-projects/website-static-html/README.md +32 -0
  121. package/starter-projects/website-static-html/stacktape.yml +11 -0
  122. package/starter-projects/website-static-html/web/index.html +22 -0
  123. package/starter-projects/website-static-html/web/static/favicon.ico +0 -0
  124. package/starter-projects/website-static-html/web/static/stacktape-logo.svg +73 -0
  125. package/starter-projects/website-static-html/web/styles/stylesheet.css +76 -0
  126. package/examples/hello-example/package.json +0 -10
  127. package/examples/hello-example/sayHello.ts +0 -6
  128. package/examples/hello-example/stacktape.yml +0 -12
  129. package/helper-lambdas/batchJobTriggerLambda-69badf9d6a7197a25d9422cdc84f5b2132888808.zip +0 -0
  130. package/helper-lambdas/stacktapeServiceLambda-6a11c1009654e93b6731fae80991dec4f6113f61.zip +0 -0
  131. package/stacktape.js +0 -2
  132. package/thread-workers/custom-dockerfile.js +0 -2
  133. package/thread-workers/es-container.js +0 -2
  134. package/thread-workers/es-lambda.js +0 -2
package/README.md ADDED
@@ -0,0 +1,468 @@
1
+ [![DevOps-free cloud development](https://stacktape.com/cover-images/github-zoomed.png)](https://stacktape.com)
2
+
3
+ [Website](https://stacktape.com) • [Docs](https://docs.stacktape.com/) • [Slack](https://stacktape-community.slack.com) • [Twitter](https://twitter.com/stacktape) • [Facebook](https://www.facebook.com/stacktape) • [Linked In](https://www.linkedin.com/company/stacktape/)
4
+
5
+ #### Stacktape gives you the **full power of AWS** with **98% less configuration** and **developer-friendly** experience.
6
+
7
+ ## [Deploy your cloud application in 5 minutes](https://docs.stacktape.com/getting-started/setup-stacktape/)
8
+
9
+ <br />
10
+
11
+ - **Focused on developer experience -** Easy to use, well-documented, customizable and with helpful error messages.
12
+ - **Production grade -** Gives you scalable, reliable, observable, secure and performant infrastructure.
13
+ - **Fast and efficient -** Up to 90% faster deployments with parallel builds and advanced caching.
14
+ - **Cost-effective -** As cost-effective as possible. No more AWS pricing loopholes.
15
+
16
+ ## Contents
17
+
18
+ - [How it works](#next-gen-cloud-development-framework)
19
+ - [Supported infrastructure components](#all-the-infrastructure-components-youll-need)
20
+ - [Comparison](#comparison)
21
+ - [Serverless](#serverless)
22
+ - [Heroku](#heroku)
23
+ - [Firebase](#firebase)
24
+ - [Kubernetes](#kubernetes)
25
+ - [AWS SAM](#aws-sam)
26
+ - [CloudFormation](#cloudformation)
27
+ - [Terraform](#terraform)
28
+ - [Vercel](#vercel)
29
+ - [FAQ](#faq)
30
+ - [Community and Socials](#community-and-socials)
31
+ - [Other](#other)
32
+
33
+ ## Next-gen cloud development framework
34
+
35
+ ### 1. Configure your stack
36
+
37
+ Stacktape is an **IaC** (Infrastructure as a code) tool.
38
+
39
+ The configuration is simple, declarative and can be written using **YAML**, **JSON**, **Javascript**, **Typescript** or **Python**.
40
+
41
+ > _Example **stacktape.yml** configuration file_
42
+
43
+ ```yml
44
+ serviceName: my-application
45
+ resources:
46
+ mainGateway:
47
+ type: http-api-gateway
48
+ apiServer:
49
+ type: container-workload
50
+ properties:
51
+ resources:
52
+ cpu: 2
53
+ memory: 2048
54
+ scaling:
55
+ minInstances: 1
56
+ maxInstances: 5
57
+ containers:
58
+ - name: api-container
59
+ imageConfig:
60
+ filePath: src/main.ts
61
+ environment:
62
+ - name: DB_ENDPOINT
63
+ value: $ResourceParam('mainDatabase', 'endpoint')
64
+ events:
65
+ - type: http-api-gateway
66
+ properties:
67
+ method: GET
68
+ path: /{proxy+}
69
+ containerPort: 3000
70
+ httpApiGatewayName: mainGateway
71
+ mainDatabase:
72
+ type: relational-database
73
+ properties:
74
+ engine:
75
+ type: aurora-postgresql-serverless
76
+ credentials:
77
+ masterUserName: $Secret('dbSecret.username')
78
+ masterUserPassword: $Secret('dbSecret.password')
79
+ ```
80
+
81
+ ### 2. Deploy your application
82
+
83
+ Deployment is done using a **single command**.
84
+
85
+ Stacktape handles the rest:
86
+
87
+ - Packages your source code
88
+ - Scans and resolves dependencies
89
+ - Configures and provisions infrastructure resources
90
+ - Deploys your application to AWS
91
+
92
+ > \*Using **CLI\***
93
+
94
+ ```bash
95
+ stacktape deploy --stage production --region eu-west-1
96
+ [SUCCESS] Loading configuration done in 0.03 sec.
97
+ [SUCCESS] Fetching stack data done in 0.63 sec.
98
+ [SUCCESS] Packaging workloads
99
+ ↪ apiserver-apicontainer: done in 18.57 sec. Image size: 85 MB.
100
+ [SUCCESS] Uploading deployment artifacts done in 6.53 sec.
101
+ [SUCCESS] Validating template done in 0.42 sec.
102
+ [INFO] Deploying stack my-application-production...
103
+ [INFO] Deploying infrastructure resources. Finished: 9/35.
104
+ ```
105
+
106
+ > \*Using **SDK\***
107
+
108
+ ```js
109
+ import { Stacktape } from 'stacktape';
110
+ const stacktape = new Stacktape({
111
+ region: 'eu-west-1',
112
+ stage: 'production'
113
+ });
114
+ stacktape.deploy({
115
+ config: {
116
+ serviceName: 'my-application',
117
+ resources: [...your resources...]
118
+ }
119
+ });
120
+ ```
121
+
122
+ ## All the infrastructure components you'll need
123
+
124
+ One tool for all your apps. From simple websites to data processing pipelines.
125
+
126
+ ### Lambda functions
127
+
128
+ Short-lived serverless functions able to quickly scale up to 1000s of parallel executions with pay-per-use pricing.
129
+
130
+ ### Container workloads
131
+
132
+ Fully managed, auto-scalable and easy-to-use runtime for your Docker containers.
133
+
134
+ ### Batch jobs
135
+
136
+ Fully managed, on-demand runtime for your container jobs with pay-per-use pricing. Supports GPU workloads.
137
+
138
+ ### SQL databases
139
+
140
+ Fully managed relational databases (Postgres, MySQL, MariaDb, etc.) with support for clustering, failover & more.
141
+
142
+ ### MongoDb clusters
143
+
144
+ Fully managed MongoDb Atlas clusters. Automatically deployed to your AWS account and managed within your stack.
145
+
146
+ ### DynamoDB
147
+
148
+ Fully managed, serverless, highly-available and massively scalable key-value datastore.
149
+
150
+ ### Api Gateways
151
+
152
+ Fully managed, serverless HTTP Api Gateway with pay-per-request pricing.
153
+
154
+ ### Load balancers
155
+
156
+ Fully managed, Application (L7) Load balancer.
157
+
158
+ ### Storage buckets
159
+
160
+ Durable and highly-available object storage with pay-per-use pricing.
161
+
162
+ ### Authentication
163
+
164
+ Fully managed sign-ups, logins and authorization for your users with pay-per-use pricing.
165
+
166
+ ### Redis clusters
167
+
168
+ Fully managed, redis-compatible in-memory data store with sub-millisecond latency.
169
+
170
+ ### CDN
171
+
172
+ Globally distributed (edge) cache for your Buckets, Load balancers and API Gateways.
173
+
174
+ ### Domains & certificates
175
+
176
+ Auto-provisined certificates and domain management for your Buckets, Load balancers and API Gateways.
177
+
178
+ ### Secrets
179
+
180
+ Fully managed secret store for your credentials, API keys and other sensitive data.
181
+
182
+ ## Comparison
183
+
184
+ ### Serverless
185
+
186
+ <details>
187
+ <summary>Read more</summary>
188
+ Serverless framework is a great tool that simplifies deployment of function-based (FaaS) applications.
189
+
190
+ Sadly, the simplicity disappears when your application needs more than just functions, and you're left with the resposibility for configuring, managing and integrating other infrastructure components.
191
+
192
+ #### Stacktape's advantages
193
+
194
+ - **More power** - Besides lambda functions, Stacktape allows you to deploy container workloads, batch jobs, SQL and NoSQL databases, API Gateways, Load balancers and much more.
195
+ - **Optimized build process** - Stacktape supports zero-config, heavily optimized parallel builds with advanced caching.
196
+ - **Programmatic SDK** - Stacktape includes both CLI and SDK (currently supported for Javascript and Typescript). It allows you to easily build complicated deployment pipelines.
197
+ - **Better developer experience** - Stacktape is simple, well-documented and easily customizable. Everything is properly validated. Error messages are descriptive and include hints.
198
+ - **Editor extension** - Stacktape comes with a VS code editor extension to further improve developer experience with validation, autocompletion and built-in documentation.
199
+ - **Development studio (coming soon)** - Stacktape development studio is a graphical user interface. It's a convenient way to manage and test your applications and infrastructure.
200
+ - **Client SDKs (coming soon)** - Client SDKs (for web, mobile and more) can be used within your application to help with most common tasks (authenticating users, uploading files, etc.).
201
+
202
+ #### Stacktape's disadvantages
203
+
204
+ - **Not open-source** - Stacktape is a SaaS product. But it comes with a free tier.
205
+ - **Smaller community** - Being a new product, Stacktape doesn't have a large community yet.
206
+ - **AWS only** - Stacktape works on top of AWS. Support for MS Azure and Google Cloud is planned. Besides AWS services, Stacktape also supports 3rd party providers (such as MongoDb Atlas).
207
+ </details>
208
+
209
+ ### Heroku
210
+
211
+ <details>
212
+ <summary>Read more</summary>
213
+ Heroku is an easy-to-use platform for hosting applications.
214
+
215
+ Sadly, it's also very costly and lacks a lot of features compared to larger cloud platforms (such as AWS).
216
+
217
+ #### Stacktape's advantages
218
+
219
+ - **Full power of AWS** - Stacktape allows you to deploy almost any infrastructure components, including containers, batch jobs, SQL and NoSQL databases, API Gateways, Load balancers, file storage, CDN & more.
220
+ - **Lower costs** - With Heroku, you get simplicity for a significantly higher infrastructure costs. Stacktape gives you the simplicity without the absurd infrastructure bills.
221
+ - **Optimized build process** - Stacktape supports zero-config, heavily optimized parallel builds with advanced caching.
222
+ - **Programmatic SDK** - Stacktape includes both CLI and SDK (currently supported for Javascript and Typescript). It allows you to easily build complicated deployment pipelines.
223
+ - **Editor extension** - Stacktape comes with a VS code editor extension to further improve developer experience with validation, autocompletion and built-in documentation.
224
+ - **Infrastructure as Code** - Stacktape allows you to manage infrastructure using simple and declarative configuration file. You can easily deploy as many environments (stages) as you want.
225
+ - **Development studio (coming soon)** - Stacktape development studio is a graphical user interface. It's a convenient way to manage and test your applications and infrastructure.
226
+ - **Client SDKs (coming soon)** - Client SDKs (for web, mobile and more) can be used within your application to help with most common tasks (authenticating users, uploading files, etc.).
227
+
228
+ #### Stacktape's disadvantages
229
+
230
+ - **Smaller community** - Being a new product, Stacktape doesn't have a large community yet.
231
+ - **Less buildpacks** - Stacktape currently supports zero-config builds for less languages and frameworks.
232
+ </details>
233
+
234
+ ### Firebase
235
+
236
+ <details>
237
+ <summary>Read more</summary>
238
+ Firebase is an easy-to-use BaaS (backend as a service) platform for mobile and web applications.
239
+
240
+ Sadly, Firebase isn't sufficient for larger applications that require continuously running jobs, containers, batch jobs, SQL databases or anything else not supported by Firebase.
241
+
242
+ #### Stacktape's advantages
243
+
244
+ - **Full power of AWS** - Stacktape allows you to deploy almost any infrastructure components, including containers, batch jobs, SQL and NoSQL databases, API Gateways, Load balancers, file storage, CDN & more.
245
+ - **Infrastructure as Code** - Stacktape allows you to manage infrastructure using simple and declarative configuration file. You can easily deploy as many environments (stages) as you want.
246
+ - **Optimized build process** - Stacktape supports zero-config, heavily optimized parallel builds with advanced caching.
247
+ - **Editor extension** - Stacktape comes with a VS code editor extension to further improve developer experience with validation, autocompletion and built-in documentation.
248
+ - **Cost at scale** - Firebase can get very costly very fast when you go out of the free tier.
249
+
250
+ #### Stacktape's disadvantages
251
+
252
+ - **Smaller community** - Being a new product, Stacktape doesn't have a large community yet.
253
+ - **Less pre-built capabilities for mobile apps** - Stacktape doesn't come with purpose-built features for mobile apps.
254
+ </details>
255
+
256
+ ### Kubernetes
257
+
258
+ <details>
259
+ <summary>Read more</summary>
260
+ Kubernetes is a popular and widely adopted tool for orchestrating containers.
261
+
262
+ However, it comes with great architectural, configuration, operational and financial overhead.
263
+
264
+ #### Stacktape's advantages
265
+
266
+ - **Developer friendly** - Stacktape is usable by every developer. No DevOps, Cloud or infrastructure expertise is required.
267
+ - **Fully managed** - All resources supported by Stacktape are fully managed. They remove a lot of responsibility from your shoulders.
268
+ - **Fully featured development framework** - Stacktape handles all of the common tasks required to develop and run cloud applications, including application deployments, testing, debugging & much more.
269
+ - **Optimized build process** - Stacktape supports zero-config, heavily optimized parallel builds with advanced caching.
270
+ - **Programmatic SDK** - Stacktape includes both CLI and SDK (currently supported for Javascript and Typescript). It allows you to easily build complicated deployment pipelines.
271
+ - **Better developer experience** - Stacktape is simple, well-documented and easily customizable. Everything is properly validated. Error messages are descriptive and include hints.
272
+ - **Editor extension** - Stacktape comes with a VS code editor extension to further improve developer experience with validation, autocompletion and built-in documentation.
273
+ - **Development studio (coming soon)** - Stacktape development studio is a graphical user interface. It's a convenient way to manage and test your applications and infrastructure.
274
+ - **Client SDKs (coming soon)** - Client SDKs (for web, mobile and more) can be used within your application to help with most common tasks (authenticating users, uploading files, etc.).
275
+
276
+ #### Stacktape's disadvantages
277
+
278
+ - **Not open-source** - Stacktape is a SaaS product. But it comes with a free tier.
279
+ - **Smaller community** - Being a new product, Stacktape doesn't have a large community yet.
280
+ - **Public cloud only** - Stacktape is not usable with on-premise infastructure.
281
+ </details>
282
+
283
+ ### AWS SAM
284
+
285
+ <details>
286
+ <summary>Read more</summary>
287
+ Serverless Application Model is a simple and handy framework for building lambda function-based application on AWS.
288
+
289
+ Similarly to Serverless Framework, the simplicity disappears if you need more than just lambda functions.
290
+
291
+ #### Stacktape's advantages
292
+
293
+ - **More power** - Besides lambda functions, Stacktape allows you to deploy container workloads, batch jobs, SQL and NoSQL databases, API Gateways, Load balancers and much more.
294
+ - **Optimized build process** - Stacktape supports zero-config, heavily optimized parallel builds with advanced caching.
295
+ - **Programmatic SDK** - Stacktape includes both CLI and SDK (currently supported for Javascript and Typescript). It allows you to easily build complicated deployment pipelines.
296
+ - **Better developer experience** - Stacktape is simple, well-documented and easily customizable. Everything is properly validated. Error messages are descriptive and include hints.
297
+ - **Editor extension** - Stacktape comes with a VS code editor extension to further improve developer experience with validation, autocompletion and built-in documentation.
298
+ - **Development studio (coming soon)** - Stacktape development studio is a graphical user interface. It's a convenient way to manage and test your applications and infrastructure.
299
+ - **Client SDKs (coming soon)** - Client SDKs (for web, mobile and more) can be used within your application to help with most common tasks (authenticating users, uploading files, etc.).
300
+
301
+ #### Stacktape's disadvantages
302
+
303
+ - **Not open-source** - Stacktape is a SaaS product. But it comes with a free tier.
304
+ - **Smaller community** - Being a new product, Stacktape doesn't have a large community yet.
305
+ </details>
306
+
307
+ ### CloudFormation
308
+
309
+ <details>
310
+ <summary>Read more</summary>
311
+ AWS Cloudformation is a powerful tool for provisioning and configuring AWS resources.
312
+
313
+ Unfortunately, using Cloudformation is complex, time-consuming and requires a lot of Cloud and infrastructure knowledge.
314
+
315
+ #### Stacktape's advantages
316
+
317
+ - **Developer friendly** - Stacktape is usable by every developer. No DevOps, Cloud or infrastructure expertise is required.
318
+ - **Optimized build process** - Stacktape supports zero-config, heavily optimized parallel builds with advanced caching.
319
+ - **Programmatic SDK** - Stacktape includes both CLI and SDK (currently supported for Javascript and Typescript). It allows you to easily build complicated deployment pipelines.
320
+ - **Better developer experience** - Stacktape is simple, well-documented and easily customizable. Everything is properly validated. Error messages are descriptive and include hints.
321
+ - **Editor extension** - Stacktape comes with a VS code editor extension to further improve developer experience with validation, autocompletion and built-in documentation.
322
+ - **Development studio (coming soon)** - Stacktape development studio is a graphical user interface. It's a convenient way to manage and test your applications and infrastructure.
323
+ - **Client SDKs (coming soon)** - Client SDKs (for web, mobile and more) can be used within your application to help with most common tasks (authenticating users, uploading files, etc.).
324
+
325
+ #### Stacktape's disadvantages
326
+
327
+ - **None** - Stacktape is customizable and can be easily extended using native AWS Cloudformation resources.
328
+ </details>
329
+
330
+ ### Terraform
331
+
332
+ <details>
333
+ <summary>Read more</summary>
334
+ Terraform is a tool for provisioning infrastructure across multiple cloud providers.
335
+
336
+ However, it requires a lot of Cloud, DevOps and infrastructure knowledge. It doesn't handle packaging, applications deployments and many other tasks required to run your applications.
337
+
338
+ #### Stacktape's advantages
339
+
340
+ - **Developer friendly** - Stacktape is usable by every developer. No DevOps, Cloud or infrastructure expertise is required.
341
+ - **Fully featured development framework** - Stacktape handles all of the common tasks required to develop and run cloud applications, including application deployments, testing, debugging & much more.
342
+ - **Optimized build process** - Stacktape supports zero-config, heavily optimized parallel builds with advanced caching.
343
+ - **Programmatic SDK** - Stacktape includes both CLI and SDK (currently supported for Javascript and Typescript). It allows you to easily build complicated deployment pipelines.
344
+ - **Better developer experience** - Stacktape is simple, well-documented and easily customizable. Everything is properly validated. Error messages are descriptive and include hints.
345
+ - **Editor extension** - Stacktape comes with a VS code editor extension to further improve developer experience with validation, autocompletion and built-in documentation.
346
+ - **Development studio (coming soon)** - Stacktape development studio is a graphical user interface. It's a convenient way to manage and test your applications and infrastructure.
347
+ - **Client SDKs (coming soon)** - Client SDKs (for web, mobile and more) can be used within your application to help with most common tasks (authenticating users, uploading files, etc.).
348
+
349
+ #### Stacktape's disadvantages
350
+
351
+ - **Not open-source** - Stacktape is a SaaS product. But it comes with a free tier.
352
+ - **Smaller community** - Being a new product, Stacktape doesn't have a large community yet.
353
+ - **AWS only** - Stacktape works on top of AWS. Support for MS Azure and Google Cloud is planned. Besides AWS services, Stacktape also supports 3rd party providers (such as MongoDb Atlas).
354
+ </details>
355
+
356
+ ### Vercel
357
+
358
+ <details>
359
+ <summary>Read more</summary>
360
+ Vercel is a platform for building and hosting application frontends.
361
+
362
+ However, it has very limited support for building application backends (servers).
363
+
364
+ #### Stacktape's advantages
365
+
366
+ - **Full power of AWS** - Stacktape allows you to deploy almost any infrastructure components, including containers, batch jobs, SQL and NoSQL databases, API Gateways, Load balancers, file storage, CDN & more.
367
+ - **Infrastructure as Code** - Stacktape allows you to manage infrastructure using simple and declarative configuration file. You can easily deploy as many environments (stages) as you want.
368
+ - **Optimized build process** - Stacktape supports zero-config, heavily optimized parallel builds with advanced caching.
369
+ - **Programmatic SDK** - Stacktape includes both CLI and SDK (currently supported for Javascript and Typescript). It allows you to easily build complicated deployment pipelines.
370
+ - **Editor extension** - Stacktape comes with a VS code editor extension to further improve developer experience with validation, autocompletion and built-in documentation.
371
+ - **Development studio (coming soon)** - Stacktape development studio is a graphical user interface. It's a convenient way to manage and test your applications and infrastructure.
372
+ - **Client SDKs (coming soon)** - Client SDKs (for web, mobile and more) can be used within your application to help with most common tasks (authenticating users, uploading files, etc.).
373
+
374
+ #### Stacktape's disadvantages
375
+
376
+ - **Smaller community** - Being a new product, Stacktape doesn't have a large community yet.
377
+ </details>
378
+
379
+ ## FAQ
380
+
381
+ <details>
382
+ <summary>"Can I use Stacktape for free?"</summary>
383
+ Yes. Stacktape is forever free for small and medium size projects.
384
+
385
+ For open-source maintainers, we also offer a premium plan for free. Feel free to [contact us](https://stacktape.com/#contact).
386
+
387
+ </details>
388
+
389
+ <details>
390
+ <summary>"What do I need to pay for?"</summary>
391
+ For larger projects that require more infrastructure resources or advanced features, you can choose a [premium plan](https://stacktape.com/#pricing).
392
+
393
+ Premium plans cost only a fraction of the cost you'd pay for an alternative solution or for DevOps/Cloud specialists.
394
+
395
+ </details>
396
+
397
+ <details>
398
+ <summary>"Is Stacktape secure?"</summary>
399
+ Yes.
400
+
401
+ Stacktape works on the developer’s machine (or on your CI/CD server). Your deployments don't go through any Stacktape-managed infrastructure.
402
+
403
+ Furthermore, Stacktape does everything it can to help you secure your applications (least privilege permissions, secret management, database access management, etc.).
404
+
405
+ </details>
406
+
407
+ <details>
408
+ <summary>"Which cloud providers are supported?"</summary>
409
+ Stacktape is built around AWS. AWS is the biggest and most advanced cloud computing provider.
410
+
411
+ Besides numerous AWS services, Stacktape integrates popular 3rd party service providers (such as MongoDb Atlas).
412
+
413
+ Support for MS Azure is planned for late 2022.
414
+
415
+ If you need anything else currently not supported by Stacktape, feel free to [contact us](https://stacktape.com/#contact).
416
+
417
+ </details>
418
+
419
+ <details>
420
+ <summary>"Can Stacktape really cover all of my cloud infrastructure needs?"</summary>
421
+ Yes. Stacktape supports all of the most commonly used infrastructure components.
422
+
423
+ Furthermore, if your use-case is very specific and not natively supported by Stacktape, you can easily extend Stacktape applications with any AWS service.
424
+
425
+ </details>
426
+
427
+ <details>
428
+ <summary>"Which programming languages are supported?"</summary>
429
+ You can deploy applications written in any language, if you supply your own Dockerfile.
430
+
431
+ Zero-config, heavily optimized builds are currently supported for Javascript and Typescript applications. Zero-config Python, Go and Java builds are coming soon.
432
+
433
+ To write Stacktape configuration, you can use YAML, JSON, Javascript, Typescript or Python.
434
+
435
+ </details>
436
+
437
+ <details>
438
+ <summary>"Do I lose control or flexibility with Stacktape?"</summary>
439
+ No.
440
+
441
+ Unlike other solutions on the market, Stacktape is designed to be easily customizable and extensible.
442
+
443
+ </details>
444
+
445
+ <details>
446
+ <summary>"Can you help us migrate to the cloud?"</summary>
447
+ Yes.
448
+
449
+ Migrating your applications to the cloud using Stacktape is in most cases very straightforward.
450
+
451
+ If you need more assistance, our team of cloud specialists can help you architect, design and run your cloud applications.
452
+
453
+ Feel free to [contact us](https://stacktape.com/#contact).
454
+
455
+ </details>
456
+
457
+ ## Community and Socials
458
+
459
+ - [Email newsletter](https://stacktape.com/#subscribe-to-newsletter)
460
+ - [Community Slack](https://stacktape-community.slack.com)
461
+ - [Contact us](mailto:info@stacktape.com)
462
+ - [Twitter](https://twitter.com/stacktape)
463
+ - [Linked In](https://www.linkedin.com/company/stacktape/)
464
+
465
+ ## Other
466
+
467
+ - [Terms of Use](https://stacktape.com/terms-of-use/)
468
+ - [Privacy Policy](https://stacktape.com/privacy-policy/)
package/bin/run CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
+ const cliEntryPath = require('path').resolve(__dirname, '../cli.js');
2
3
 
3
- const cliEntryPath = require('path').resolve(__dirname, '../stacktape.js');
4
-
5
- require(cliEntryPath).run();
4
+ require(cliEntryPath)
5
+ .runUsingCli()
6
+ .catch(() => process.exit(1));
@@ -24,7 +24,6 @@ _compile = Compile()
24
24
 
25
25
 
26
26
  if platform.system() == 'Windows':
27
- # hacky reimplementation of https://github.com/nodejs/node/blob/master/deps/uv/src/win/pipe.c
28
27
  def read_data(f):
29
28
  header = f.read(16)
30
29
  if not header: