stacktape 3.2.0-beta.10 → 3.2.0-beta.12
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/bin/stacktape.js +63 -38
- package/index.js +3 -3
- package/package.json +1 -1
- package/sdk.d.ts +200 -1
- package/sdk.js +13 -4
- package/types.d.ts +7 -1
package/package.json
CHANGED
package/sdk.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export type LoggableEventType =
|
|
|
5
5
|
| "ANALYZE_PROJECT"
|
|
6
6
|
| "ASSUME_ROLE"
|
|
7
7
|
| "BUILD_CODE"
|
|
8
|
+
| "BUILD_HOSTING_BUCKET"
|
|
8
9
|
| "BUILD_IMAGE"
|
|
9
10
|
| "BUILD_NEXTJS_PROJECT"
|
|
10
11
|
| "BUILD_SHARED_LAYER"
|
|
@@ -7026,6 +7027,7 @@ export interface RelationalDatabaseProps {
|
|
|
7026
7027
|
*/
|
|
7027
7028
|
disabledGlobalAlarms?: string[];
|
|
7028
7029
|
logging?: RelationalDatabaseLogging;
|
|
7030
|
+
dev?: DevModeConfig;
|
|
7029
7031
|
}
|
|
7030
7032
|
/**
|
|
7031
7033
|
* #### Configures the credentials for the database's master user.
|
|
@@ -7896,6 +7898,27 @@ export interface MysqlLoggingOptions {
|
|
|
7896
7898
|
*/
|
|
7897
7899
|
long_query_time?: number;
|
|
7898
7900
|
}
|
|
7901
|
+
/**
|
|
7902
|
+
* #### Dev Mode Configuration
|
|
7903
|
+
*
|
|
7904
|
+
* ---
|
|
7905
|
+
*
|
|
7906
|
+
* Configures how this database behaves during `stacktape dev` mode.
|
|
7907
|
+
* By default, databases run locally using Docker. Set `dev.remote: true` to connect to the deployed AWS database instead.
|
|
7908
|
+
*/
|
|
7909
|
+
export interface DevModeConfig {
|
|
7910
|
+
/**
|
|
7911
|
+
* #### Use Remote Resource
|
|
7912
|
+
*
|
|
7913
|
+
* ---
|
|
7914
|
+
*
|
|
7915
|
+
* If `true`, connects to the deployed AWS resource instead of running a local emulation during dev mode.
|
|
7916
|
+
*
|
|
7917
|
+
* By default, databases (RDS, Aurora), Redis clusters, and DynamoDB tables run locally during dev mode.
|
|
7918
|
+
* Set this to `true` to use the deployed AWS resource instead.
|
|
7919
|
+
*/
|
|
7920
|
+
remote?: boolean;
|
|
7921
|
+
}
|
|
7899
7922
|
/**
|
|
7900
7923
|
* #### Application Load Balancer
|
|
7901
7924
|
*
|
|
@@ -10596,6 +10619,7 @@ export interface DynamoDbTableProps {
|
|
|
10596
10619
|
* For more details, see the [AWS documentation on secondary indexes](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.html).
|
|
10597
10620
|
*/
|
|
10598
10621
|
secondaryIndexes?: DynamoDbTableGlobalSecondaryIndex[];
|
|
10622
|
+
dev?: DevModeConfig1;
|
|
10599
10623
|
}
|
|
10600
10624
|
/**
|
|
10601
10625
|
* #### Configures the primary key for the table.
|
|
@@ -10813,6 +10837,27 @@ export interface DynamoDbAttribute3 {
|
|
|
10813
10837
|
*/
|
|
10814
10838
|
type: "binary" | "number" | "string";
|
|
10815
10839
|
}
|
|
10840
|
+
/**
|
|
10841
|
+
* #### Dev Mode Configuration
|
|
10842
|
+
*
|
|
10843
|
+
* ---
|
|
10844
|
+
*
|
|
10845
|
+
* Configures how this DynamoDB table behaves during `stacktape dev` mode.
|
|
10846
|
+
* By default, DynamoDB runs locally using Docker. Set `dev.remote: true` to connect to the deployed AWS DynamoDB table instead.
|
|
10847
|
+
*/
|
|
10848
|
+
export interface DevModeConfig1 {
|
|
10849
|
+
/**
|
|
10850
|
+
* #### Use Remote Resource
|
|
10851
|
+
*
|
|
10852
|
+
* ---
|
|
10853
|
+
*
|
|
10854
|
+
* If `true`, connects to the deployed AWS resource instead of running a local emulation during dev mode.
|
|
10855
|
+
*
|
|
10856
|
+
* By default, databases (RDS, Aurora), Redis clusters, and DynamoDB tables run locally during dev mode.
|
|
10857
|
+
* Set this to `true` to use the deployed AWS resource instead.
|
|
10858
|
+
*/
|
|
10859
|
+
remote?: boolean;
|
|
10860
|
+
}
|
|
10816
10861
|
/**
|
|
10817
10862
|
* #### State Machine
|
|
10818
10863
|
*
|
|
@@ -11493,6 +11538,7 @@ export interface RedisClusterProps {
|
|
|
11493
11538
|
* ---
|
|
11494
11539
|
*/
|
|
11495
11540
|
engineVersion?: "6.0" | "6.2" | "7.0" | "7.1";
|
|
11541
|
+
dev?: DevModeConfig2;
|
|
11496
11542
|
}
|
|
11497
11543
|
/**
|
|
11498
11544
|
* #### Configures the logging behavior and format.
|
|
@@ -11561,6 +11607,27 @@ export interface RedisAccessibility {
|
|
|
11561
11607
|
*/
|
|
11562
11608
|
accessibilityMode: "scoping-workloads-in-vpc" | "vpc";
|
|
11563
11609
|
}
|
|
11610
|
+
/**
|
|
11611
|
+
* #### Dev Mode Configuration
|
|
11612
|
+
*
|
|
11613
|
+
* ---
|
|
11614
|
+
*
|
|
11615
|
+
* Configures how this Redis cluster behaves during `stacktape dev` mode.
|
|
11616
|
+
* By default, Redis runs locally using Docker. Set `dev.remote: true` to connect to the deployed AWS Redis cluster instead.
|
|
11617
|
+
*/
|
|
11618
|
+
export interface DevModeConfig2 {
|
|
11619
|
+
/**
|
|
11620
|
+
* #### Use Remote Resource
|
|
11621
|
+
*
|
|
11622
|
+
* ---
|
|
11623
|
+
*
|
|
11624
|
+
* If `true`, connects to the deployed AWS resource instead of running a local emulation during dev mode.
|
|
11625
|
+
*
|
|
11626
|
+
* By default, databases (RDS, Aurora), Redis clusters, and DynamoDB tables run locally during dev mode.
|
|
11627
|
+
* Set this to `true` to use the deployed AWS resource instead.
|
|
11628
|
+
*/
|
|
11629
|
+
remote?: boolean;
|
|
11630
|
+
}
|
|
11564
11631
|
/**
|
|
11565
11632
|
* #### Custom resource instance
|
|
11566
11633
|
*
|
|
@@ -12842,6 +12909,8 @@ export interface HostingBucketProps {
|
|
|
12842
12909
|
* The contents of this folder will be uploaded to the bucket during the `deploy`, `codebuild:deploy`, or `bucket:sync` commands.
|
|
12843
12910
|
*/
|
|
12844
12911
|
uploadDirectoryPath: string;
|
|
12912
|
+
build?: HostingBucketBuild;
|
|
12913
|
+
dev?: HostingBucketBuild1;
|
|
12845
12914
|
/**
|
|
12846
12915
|
* #### Glob patterns for files to be excluded from the upload.
|
|
12847
12916
|
*
|
|
@@ -12960,6 +13029,72 @@ export interface HostingBucketProps {
|
|
|
12960
13029
|
*/
|
|
12961
13030
|
routeRewrites?: CdnRouteRewrite[];
|
|
12962
13031
|
}
|
|
13032
|
+
/**
|
|
13033
|
+
* #### Build configuration for the hosting bucket.
|
|
13034
|
+
*
|
|
13035
|
+
* ---
|
|
13036
|
+
*
|
|
13037
|
+
* Configures the build process that produces the files to upload. The build runs during the packaging phase, in parallel with other packaging jobs.
|
|
13038
|
+
*
|
|
13039
|
+
* Supports common frontend build tools like Vite, Webpack, Angular CLI, Vue CLI, Create React App, and SvelteKit.
|
|
13040
|
+
* Build output is parsed to display meaningful information (e.g., bundle size) in the deployment logs.
|
|
13041
|
+
*/
|
|
13042
|
+
export interface HostingBucketBuild {
|
|
13043
|
+
/**
|
|
13044
|
+
* #### The command to execute.
|
|
13045
|
+
*
|
|
13046
|
+
* ---
|
|
13047
|
+
*
|
|
13048
|
+
* Examples:
|
|
13049
|
+
* - `npm run build`
|
|
13050
|
+
* - `bun run build`
|
|
13051
|
+
* - `vite build`
|
|
13052
|
+
* - `webpack --mode production`
|
|
13053
|
+
*/
|
|
13054
|
+
command: string;
|
|
13055
|
+
/**
|
|
13056
|
+
* #### The working directory for the command.
|
|
13057
|
+
*
|
|
13058
|
+
* ---
|
|
13059
|
+
*
|
|
13060
|
+
* Relative to the project root. Defaults to the project root.
|
|
13061
|
+
*/
|
|
13062
|
+
workingDirectory?: string;
|
|
13063
|
+
}
|
|
13064
|
+
/**
|
|
13065
|
+
* #### Dev server configuration for the hosting bucket.
|
|
13066
|
+
*
|
|
13067
|
+
* ---
|
|
13068
|
+
*
|
|
13069
|
+
* Configures the dev server process for local development. Used by the `dev` command.
|
|
13070
|
+
*
|
|
13071
|
+
* Example commands:
|
|
13072
|
+
* - `npm run dev`
|
|
13073
|
+
* - `vite`
|
|
13074
|
+
* - `webpack serve`
|
|
13075
|
+
*/
|
|
13076
|
+
export interface HostingBucketBuild1 {
|
|
13077
|
+
/**
|
|
13078
|
+
* #### The command to execute.
|
|
13079
|
+
*
|
|
13080
|
+
* ---
|
|
13081
|
+
*
|
|
13082
|
+
* Examples:
|
|
13083
|
+
* - `npm run build`
|
|
13084
|
+
* - `bun run build`
|
|
13085
|
+
* - `vite build`
|
|
13086
|
+
* - `webpack --mode production`
|
|
13087
|
+
*/
|
|
13088
|
+
command: string;
|
|
13089
|
+
/**
|
|
13090
|
+
* #### The working directory for the command.
|
|
13091
|
+
*
|
|
13092
|
+
* ---
|
|
13093
|
+
*
|
|
13094
|
+
* Relative to the project root. Defaults to the project root.
|
|
13095
|
+
*/
|
|
13096
|
+
workingDirectory?: string;
|
|
13097
|
+
}
|
|
12963
13098
|
/**
|
|
12964
13099
|
* #### Configures Edge function triggers.
|
|
12965
13100
|
*
|
|
@@ -13423,6 +13558,27 @@ export interface NextjsWebProps {
|
|
|
13423
13558
|
* If you have a custom build process, you can specify the command here.
|
|
13424
13559
|
*/
|
|
13425
13560
|
buildCommand?: string;
|
|
13561
|
+
/**
|
|
13562
|
+
* #### Dev server configuration for local development.
|
|
13563
|
+
*
|
|
13564
|
+
* ---
|
|
13565
|
+
*
|
|
13566
|
+
* Configures the dev server process for local development. Used by the `dev` command.
|
|
13567
|
+
*
|
|
13568
|
+
* If not specified, defaults to `next dev` in the app directory.
|
|
13569
|
+
*/
|
|
13570
|
+
dev?: {
|
|
13571
|
+
/**
|
|
13572
|
+
* #### The dev server command to execute.
|
|
13573
|
+
*
|
|
13574
|
+
* ---
|
|
13575
|
+
*
|
|
13576
|
+
* Examples:
|
|
13577
|
+
* - `next dev`
|
|
13578
|
+
* - `npm run dev`
|
|
13579
|
+
*/
|
|
13580
|
+
command?: string;
|
|
13581
|
+
};
|
|
13426
13582
|
/**
|
|
13427
13583
|
* #### Sets custom headers for static files.
|
|
13428
13584
|
*
|
|
@@ -25993,7 +26149,50 @@ declare class Stacktape {
|
|
|
25993
26149
|
*
|
|
25994
26150
|
* Additional arguments to pass to the `docker run` or `docker build` commands.
|
|
25995
26151
|
*/
|
|
25996
|
-
dockerArgs?: array,
|
|
26152
|
+
dockerArgs?: array,
|
|
26153
|
+
/**
|
|
26154
|
+
* #### Remote Resources
|
|
26155
|
+
*
|
|
26156
|
+
* ---
|
|
26157
|
+
*
|
|
26158
|
+
* Comma-separated list of resource names that should connect to deployed AWS resources
|
|
26159
|
+
* instead of running locally during dev mode. By default, databases (RDS, Aurora),
|
|
26160
|
+
* Redis, and DynamoDB run locally. Use this flag to connect to the deployed version instead.
|
|
26161
|
+
*
|
|
26162
|
+
* Example: --remoteResources myDatabase,myRedis
|
|
26163
|
+
*/
|
|
26164
|
+
remoteResources?: array,
|
|
26165
|
+
/**
|
|
26166
|
+
* #### Resources
|
|
26167
|
+
*
|
|
26168
|
+
* ---
|
|
26169
|
+
*
|
|
26170
|
+
* Specify which resources to run in dev mode. If not provided, an interactive picker is shown.
|
|
26171
|
+
* Use 'all' to run all resources without prompting.
|
|
26172
|
+
* Specify resource names as a comma-separated list or use the flag multiple times.
|
|
26173
|
+
*/
|
|
26174
|
+
resources?: array,
|
|
26175
|
+
/**
|
|
26176
|
+
* #### Skip Resources
|
|
26177
|
+
*
|
|
26178
|
+
* ---
|
|
26179
|
+
*
|
|
26180
|
+
* Skip the specified resources in dev mode. All other resources will run.
|
|
26181
|
+
* Specify resource names as a comma-separated list or use the flag multiple times.
|
|
26182
|
+
*/
|
|
26183
|
+
skipResources?: array,
|
|
26184
|
+
/**
|
|
26185
|
+
* #### Dev Mode
|
|
26186
|
+
*
|
|
26187
|
+
* ---
|
|
26188
|
+
*
|
|
26189
|
+
* Specifies which dev mode to use:
|
|
26190
|
+
* - `normal` (default): Deploys a stripped-down "dev stack" to AWS and runs workloads locally.
|
|
26191
|
+
* Databases and Redis are emulated locally using Docker.
|
|
26192
|
+
* - `legacy`: Requires an already deployed stack. Runs selected workloads locally while
|
|
26193
|
+
* connecting to all resources in the deployed stack. No local database emulation.
|
|
26194
|
+
*/
|
|
26195
|
+
devMode?: 'legacy' | 'normal', onEvent?: (eventData: any) => void, printProgress?: boolean }): Promise<{ eventLog: EventLogEntry[], result: DevReturnValue }>;
|
|
25997
26196
|
|
|
25998
26197
|
|
|
25999
26198
|
/**
|