@sst-community/sst 5.0.0-alpha.1 → 5.0.0-alpha.2
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/README.md +2 -2
- package/package.json +9 -9
- package/platform/js/chunks/{chunk-ZOXXXME5.js → chunk-MR4XM5XA.js} +4 -3
- package/platform/js/chunks/{chunk-ZOXXXME5.js.map → chunk-MR4XM5XA.js.map} +1 -1
- package/platform/js/chunks/{config-DMGMTLNB.js → config-CRGKEDQW.js} +1 -1
- package/platform/js/chunks/{config-DMGMTLNB.js.map → config-CRGKEDQW.js.map} +1 -1
- package/platform/js/components/aws/index.js +63 -26
- package/platform/js/components/aws/index.js.map +2 -2
- package/platform/js/components/core.js +1 -1
- package/platform/js/testing/index.js +1 -1
- package/platform/src/components/aws/function.ts +64 -11
- package/platform/src/components/aws/helpers/function-part.ts +17 -7
- package/platform/src/components/aws/mysql.ts +5 -2
- package/platform/src/components/aws/router.ts +15 -2
- package/platform/src/components/aws/v5/function.ts +32 -13
- package/platform/src/components/aws/v5/mysql.ts +1 -1
- package/platform/src/components/parts-component.ts +4 -4
- package/platform/src/config.ts +3 -0
- package/platform/types/components/aws/function.d.ts +27 -2
- package/platform/types/components/aws/function.d.ts.map +1 -1
- package/platform/types/components/aws/helpers/function-part.d.ts.map +1 -1
- package/platform/types/components/aws/mysql.d.ts +4 -1
- package/platform/types/components/aws/mysql.d.ts.map +1 -1
- package/platform/types/components/aws/router.d.ts +15 -2
- package/platform/types/components/aws/router.d.ts.map +1 -1
- package/platform/types/components/aws/v5/function.d.ts +8 -4
- package/platform/types/components/aws/v5/function.d.ts.map +1 -1
- package/platform/types/components/parts-component.d.ts +6 -5
- package/platform/types/components/parts-component.d.ts.map +1 -1
- package/platform/types/config.d.ts +3 -0
- package/platform/types/config.d.ts.map +1 -1
|
@@ -527,7 +527,7 @@ async function mock(input) {
|
|
|
527
527
|
});
|
|
528
528
|
const { Link } = await import("../chunks/link-OJ3RNGQ3.js");
|
|
529
529
|
const { $asset, $transform } = await import("../chunks/component-32FCLIRK.js");
|
|
530
|
-
const { $config } = await import("../chunks/config-
|
|
530
|
+
const { $config } = await import("../chunks/config-CRGKEDQW.js");
|
|
531
531
|
Object.assign(globalThis, {
|
|
532
532
|
$linkable: Link.linkable,
|
|
533
533
|
$output: pulumi2.output,
|
|
@@ -357,6 +357,10 @@ export interface FunctionArgs {
|
|
|
357
357
|
* Node.js and Golang are officially supported. While, Python and Rust are
|
|
358
358
|
* community supported. Support for other runtimes are on the roadmap.
|
|
359
359
|
*
|
|
360
|
+
* A later release can move the default to a newer Node.js, and says so in its notes.
|
|
361
|
+
* A function that uses the default is then updated on its next deploy. Set `runtime`
|
|
362
|
+
* to keep it on one version.
|
|
363
|
+
*
|
|
360
364
|
* @default `"nodejs24.x"`
|
|
361
365
|
*
|
|
362
366
|
* @example
|
|
@@ -798,6 +802,10 @@ export interface FunctionArgs {
|
|
|
798
802
|
*
|
|
799
803
|
* However, if you pass in a role, you'll need to update it manually if you add `permissions` or `link` resources.
|
|
800
804
|
*
|
|
805
|
+
* SST does not read the role on each deploy. If the role is deleted, a deploy of an
|
|
806
|
+
* existing function still succeeds, and the function fails when it runs because
|
|
807
|
+
* Lambda can no longer assume the role.
|
|
808
|
+
*
|
|
801
809
|
* @default Creates a new role
|
|
802
810
|
* @example
|
|
803
811
|
* ```js
|
|
@@ -1071,6 +1079,21 @@ export interface FunctionArgs {
|
|
|
1071
1079
|
* Check out the _JS tab_ in the code snippets in the esbuild docs for the
|
|
1072
1080
|
* [`BuildOptions`](https://esbuild.github.io/api/#build).
|
|
1073
1081
|
* :::
|
|
1082
|
+
*
|
|
1083
|
+
* For example, a function builds faster in `sst dev` when the AWS SDK is left out of
|
|
1084
|
+
* its bundle there. It's loaded from your `node_modules` instead, so the packages you
|
|
1085
|
+
* import have to be installed. A deploy still bundles them.
|
|
1086
|
+
*
|
|
1087
|
+
* @example
|
|
1088
|
+
* ```js
|
|
1089
|
+
* {
|
|
1090
|
+
* nodejs: {
|
|
1091
|
+
* esbuild: {
|
|
1092
|
+
* external: $dev ? ["@aws-sdk/*", "@smithy/*"] : []
|
|
1093
|
+
* }
|
|
1094
|
+
* }
|
|
1095
|
+
* }
|
|
1096
|
+
* ```
|
|
1074
1097
|
*/
|
|
1075
1098
|
esbuild?: Input<EsbuildOptions>;
|
|
1076
1099
|
/**
|
|
@@ -1729,7 +1752,7 @@ export class Function extends Component implements Link.Linkable {
|
|
|
1729
1752
|
private constructorName: string;
|
|
1730
1753
|
private durable: boolean;
|
|
1731
1754
|
private function: Output<lambda.Function>;
|
|
1732
|
-
private role: iam.Role;
|
|
1755
|
+
private role: () => iam.Role;
|
|
1733
1756
|
private logGroup: Output<cloudwatch.LogGroup | undefined>;
|
|
1734
1757
|
private urlEndpoint: Output<string | undefined>;
|
|
1735
1758
|
private urlResource: Output<lambda.FunctionUrl | undefined>;
|
|
@@ -2254,13 +2277,34 @@ export class Function extends Component implements Link.Linkable {
|
|
|
2254
2277
|
}
|
|
2255
2278
|
|
|
2256
2279
|
function createRole() {
|
|
2280
|
+
// When a role ARN is passed in, the function is wired up from that ARN directly
|
|
2281
|
+
// (see `createFunction`), so the Role is only needed to back `nodes.role`. Looking
|
|
2282
|
+
// it up eagerly costs an IAM GetRole per function on every run — a `read` op, which
|
|
2283
|
+
// is never treated as unchanged — so defer it until something asks for it. Apps that
|
|
2284
|
+
// share one role across many functions pay that lookup once per function today.
|
|
2257
2285
|
if (args.role) {
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2286
|
+
const roleArn = args.role;
|
|
2287
|
+
let existing: { role: iam.Role } | { error: unknown } | undefined;
|
|
2288
|
+
return () => {
|
|
2289
|
+
// Reads once. If the read throws, later accesses throw the same error
|
|
2290
|
+
// and don't register the role again.
|
|
2291
|
+
if (!existing) {
|
|
2292
|
+
try {
|
|
2293
|
+
existing = {
|
|
2294
|
+
role: iam.Role.get(
|
|
2295
|
+
`${name}Role`,
|
|
2296
|
+
output(roleArn).apply(parseRoleArn).roleName,
|
|
2297
|
+
{},
|
|
2298
|
+
{ parent },
|
|
2299
|
+
),
|
|
2300
|
+
};
|
|
2301
|
+
} catch (error) {
|
|
2302
|
+
existing = { error };
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
if ("error" in existing) throw existing.error;
|
|
2306
|
+
return existing.role;
|
|
2307
|
+
};
|
|
2264
2308
|
}
|
|
2265
2309
|
|
|
2266
2310
|
const policy = all([args.permissions || [], linkPermissions, dev]).apply(
|
|
@@ -2298,7 +2342,10 @@ export class Function extends Component implements Link.Linkable {
|
|
|
2298
2342
|
}),
|
|
2299
2343
|
);
|
|
2300
2344
|
|
|
2301
|
-
|
|
2345
|
+
// Created eagerly, as before. `role` is consumed inside an `apply` in
|
|
2346
|
+
// `createFunction`, so this must not be deferred — the thunk exists only so both
|
|
2347
|
+
// branches share a return type.
|
|
2348
|
+
const role = new iam.Role(
|
|
2302
2349
|
...transform(
|
|
2303
2350
|
args.transform?.role,
|
|
2304
2351
|
`${name}Role`,
|
|
@@ -2362,6 +2409,7 @@ export class Function extends Component implements Link.Linkable {
|
|
|
2362
2409
|
{ parent },
|
|
2363
2410
|
),
|
|
2364
2411
|
);
|
|
2412
|
+
return () => role;
|
|
2365
2413
|
}
|
|
2366
2414
|
|
|
2367
2415
|
function createImageAsset() {
|
|
@@ -2678,7 +2726,7 @@ export class Function extends Component implements Link.Linkable {
|
|
|
2678
2726
|
{
|
|
2679
2727
|
name: args.name,
|
|
2680
2728
|
description: args.description ?? "",
|
|
2681
|
-
role: args.role ?? role
|
|
2729
|
+
role: args.role ?? role().arn,
|
|
2682
2730
|
timeout: timeout.apply((timeout) => toSeconds(timeout)),
|
|
2683
2731
|
memorySize: memory.apply((memory) => toMBs(memory)),
|
|
2684
2732
|
ephemeralStorage: { size: storage.apply((v) => toMBs(v)) },
|
|
@@ -3014,11 +3062,16 @@ export class Function extends Component implements Link.Linkable {
|
|
|
3014
3062
|
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
3015
3063
|
*/
|
|
3016
3064
|
public get nodes() {
|
|
3065
|
+
const self = this;
|
|
3017
3066
|
return {
|
|
3018
3067
|
/**
|
|
3019
|
-
* The IAM Role the function will use.
|
|
3068
|
+
* The IAM Role the function will use. If you passed in a `role`, it's read from
|
|
3069
|
+
* AWS the first time you access this, including through `const { role } = fn.nodes`
|
|
3070
|
+
* or `{ ...fn.nodes }`, and the deploy fails if that role doesn't exist.
|
|
3020
3071
|
*/
|
|
3021
|
-
role
|
|
3072
|
+
get role() {
|
|
3073
|
+
return self.role();
|
|
3074
|
+
},
|
|
3022
3075
|
/**
|
|
3023
3076
|
* The AWS Lambda function.
|
|
3024
3077
|
*/
|
|
@@ -107,10 +107,22 @@ export function functionPart(
|
|
|
107
107
|
] = rest.length === 3 ? (rest as any) : [undefined, ...rest];
|
|
108
108
|
|
|
109
109
|
const part = component.partHandle(key, id);
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
// A function passed in `existing`, or its ARN, is used as it is
|
|
111
|
+
const given = (part.existing as FunctionDefinition | undefined) ?? definition;
|
|
112
|
+
// What was passed decides what to do, not the values inside it. Waiting on
|
|
113
|
+
// those too would leave the function out of a preview whenever an arg isn't
|
|
114
|
+
// known until the deploy, and `sst diff` would show it as deleted.
|
|
115
|
+
let fn: FunctionPart;
|
|
116
|
+
if (Output.isInstance(given) || typeof (given as any)?.then === "function") {
|
|
117
|
+
fn = output(given).apply(create);
|
|
118
|
+
} else {
|
|
119
|
+
const created = create(given);
|
|
120
|
+
fn = output(undefined).apply(() => created);
|
|
121
|
+
}
|
|
122
|
+
part.defer(() => fn.apply((fn) => fn.getFunction()));
|
|
123
|
+
return fn;
|
|
124
|
+
|
|
125
|
+
function create(definition: unknown) {
|
|
114
126
|
if (definition instanceof Function || definition instanceof OriginalFunction)
|
|
115
127
|
return use(definition);
|
|
116
128
|
if (definition instanceof Workflow) return use(definition.getFunction());
|
|
@@ -153,9 +165,7 @@ export function functionPart(
|
|
|
153
165
|
),
|
|
154
166
|
),
|
|
155
167
|
);
|
|
156
|
-
}
|
|
157
|
-
part.defer(() => fn.apply((fn) => fn.getFunction()));
|
|
158
|
-
return fn;
|
|
168
|
+
}
|
|
159
169
|
}
|
|
160
170
|
|
|
161
171
|
function use(fn: Function | OriginalFunction) {
|
|
@@ -27,7 +27,10 @@ export interface MysqlArgs {
|
|
|
27
27
|
* causing downtime. Learn more about [upgrading databases](/docs/upgrade-aws-databases/).
|
|
28
28
|
* :::
|
|
29
29
|
*
|
|
30
|
-
*
|
|
30
|
+
* Without it, RDS creates the database with its current minor version of MySQL 8.0, and
|
|
31
|
+
* a deployed database keeps the version it has.
|
|
32
|
+
*
|
|
33
|
+
* @default `"8.0"`
|
|
31
34
|
* @example
|
|
32
35
|
* ```js
|
|
33
36
|
* {
|
|
@@ -493,7 +496,7 @@ export class Mysql extends Component implements Link.Linkable {
|
|
|
493
496
|
}
|
|
494
497
|
|
|
495
498
|
const multiAz = output(args.multiAz).apply((v) => v ?? false);
|
|
496
|
-
const engineVersion = output(args.version).apply((v) => v ?? "8.0
|
|
499
|
+
const engineVersion = output(args.version).apply((v) => v ?? "8.0");
|
|
497
500
|
const instanceType = output(args.instance).apply((v) => v ?? "t4g.micro");
|
|
498
501
|
const username = output(args.username).apply((v) => v ?? "root");
|
|
499
502
|
const storage = normalizeStorage();
|
|
@@ -404,8 +404,15 @@ export interface RouterUrlRouteArgs extends RouteArgs {
|
|
|
404
404
|
* The number of seconds that CloudFront waits for a response after routing a
|
|
405
405
|
* request to the destination. Must be between 1 and 60 seconds.
|
|
406
406
|
*
|
|
407
|
-
* When compared to the `connectionTimeout`, this is the
|
|
408
|
-
*
|
|
407
|
+
* When compared to the `connectionTimeout`, this is the time CloudFront waits
|
|
408
|
+
* for each connection attempt. If the destination doesn't respond, CloudFront
|
|
409
|
+
* tries again, up to `connectionAttempts` times (3 by default), so the request
|
|
410
|
+
* can take that many times this value to fail.
|
|
411
|
+
*
|
|
412
|
+
* The Router applies this timeout dynamically to matching requests through
|
|
413
|
+
* its CloudFront Function. It does not change the distribution's static
|
|
414
|
+
* origin configuration. When you don't set it, the requests use the 20 seconds
|
|
415
|
+
* that the Router sets on the distribution's origin by default.
|
|
409
416
|
*
|
|
410
417
|
* @default `"20 seconds"`
|
|
411
418
|
* @example
|
|
@@ -420,6 +427,12 @@ export interface RouterUrlRouteArgs extends RouteArgs {
|
|
|
420
427
|
* The number of seconds that CloudFront should try to maintain the connection
|
|
421
428
|
* to the destination after receiving the last packet of the response. Must be
|
|
422
429
|
* between 1 and 60 seconds
|
|
430
|
+
*
|
|
431
|
+
* The Router passes this value to CloudFront with each matching request, but
|
|
432
|
+
* CloudFront currently does not apply it. It keeps the connection for the
|
|
433
|
+
* keep-alive timeout of the distribution's origin, which is 5 seconds by
|
|
434
|
+
* default, whatever you set here.
|
|
435
|
+
*
|
|
423
436
|
* @default `"5 seconds"`
|
|
424
437
|
* @example
|
|
425
438
|
* ```js
|
|
@@ -66,7 +66,8 @@ import { KvRoutesUpdate } from "../providers/kv-routes-update";
|
|
|
66
66
|
|
|
67
67
|
const parts = {
|
|
68
68
|
/**
|
|
69
|
-
* The IAM Role the function uses.
|
|
69
|
+
* The IAM Role the function uses. A role you passed by its ARN is looked up when you
|
|
70
|
+
* read this, and the deploy fails if it doesn't exist.
|
|
70
71
|
*/
|
|
71
72
|
role: iam.Role,
|
|
72
73
|
/**
|
|
@@ -457,7 +458,8 @@ export interface FunctionArgs
|
|
|
457
458
|
*
|
|
458
459
|
* #### Use a role or log group you already have
|
|
459
460
|
*
|
|
460
|
-
* Pass the resource, or the name to look it up by.
|
|
461
|
+
* Pass the resource, or the name to look it up by. A role can also be passed by its ARN.
|
|
462
|
+
* It's then used as it is, and only looked up if you read `nodes.role`.
|
|
461
463
|
*
|
|
462
464
|
* ```ts title="sst.config.ts"
|
|
463
465
|
* new sst.aws.v5.Function("MyFunction", {
|
|
@@ -476,7 +478,8 @@ export interface FunctionArgs
|
|
|
476
478
|
*
|
|
477
479
|
* - `dev`, `logging`, `url`, `url.authorization`, `python`, `python.container`,
|
|
478
480
|
* `concurrency` and `concurrency.provisioned` have to be plain values, not outputs.
|
|
479
|
-
* - `role: roleArn` becomes `existing: { role }
|
|
481
|
+
* - `role: roleArn` becomes `existing: { role: roleArn }`. It can also be the role or
|
|
482
|
+
* its name, which is looked up on every deploy.
|
|
480
483
|
* - `logging: { logGroup: name }` becomes `existing: { logGroup }`, with the log group
|
|
481
484
|
* or its name.
|
|
482
485
|
* - `live: false` becomes `dev: false`, and `url.route` becomes `url.router`.
|
|
@@ -576,15 +579,31 @@ export class Function extends component("sst:aws:Function", parts) {
|
|
|
576
579
|
const environment = normalizeEnvironment();
|
|
577
580
|
const durableConfig = normalizeDurable();
|
|
578
581
|
|
|
579
|
-
//
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
:
|
|
582
|
+
// A role passed by its ARN, the way 4.x takes it, is used as it is. It's
|
|
583
|
+
// only looked up when `nodes.role` is read: a lookup is an IAM GetRole on
|
|
584
|
+
// every run, for every function that shares the role. One passed by its
|
|
585
|
+
// name, or as an output, is looked up for its ARN.
|
|
586
|
+
const existingRole = args.existing?.role;
|
|
587
|
+
const givenRoleArn =
|
|
588
|
+
typeof existingRole === "string" && existingRole.startsWith("arn:")
|
|
589
|
+
? existingRole
|
|
590
|
+
: existingRole === undefined
|
|
591
|
+
? original.role
|
|
592
|
+
: undefined;
|
|
593
|
+
const lookUpRole = (id: Input<string>) =>
|
|
594
|
+
this.lookupPart(
|
|
595
|
+
"role",
|
|
596
|
+
output(id).apply((id) =>
|
|
597
|
+
id.startsWith("arn:") ? parseRoleArn(id).roleName : id,
|
|
598
|
+
),
|
|
599
|
+
);
|
|
600
|
+
let role: iam.Role | undefined;
|
|
601
|
+
if (givenRoleArn !== undefined)
|
|
602
|
+
this.partHandle("role").defer(() => (role ??= lookUpRole(givenRoleArn)));
|
|
603
|
+
else if (existingRole !== undefined && !(existingRole instanceof iam.Role))
|
|
604
|
+
role = lookUpRole(existingRole);
|
|
605
|
+
else role = this.existingPart("role") ?? this.part("role", roleArgs());
|
|
606
|
+
const roleArn = givenRoleArn ?? role!.arn;
|
|
588
607
|
|
|
589
608
|
const givenLogGroup =
|
|
590
609
|
original.logGroup !== undefined && !args.existing?.logGroup;
|
|
@@ -663,7 +682,7 @@ export class Function extends component("sst:aws:Function", parts) {
|
|
|
663
682
|
{
|
|
664
683
|
name: args.name,
|
|
665
684
|
description: args.description ?? "",
|
|
666
|
-
role:
|
|
685
|
+
role: roleArn,
|
|
667
686
|
timeout: withDefault(args.timeout, "20 seconds", toSeconds),
|
|
668
687
|
memorySize: withDefault(args.memory, "1024 MB", toMBs),
|
|
669
688
|
ephemeralStorage: { size: withDefault(args.storage, "512 MB", toMBs) },
|
|
@@ -282,7 +282,7 @@ export class Mysql extends component("sst:aws:Mysql", parts) {
|
|
|
282
282
|
const proxy = plain(args.proxy, `The "proxy" of the "${name}" database`);
|
|
283
283
|
const replicas =
|
|
284
284
|
plain(args.replicas, `The "replicas" of the "${name}" database`) ?? 0;
|
|
285
|
-
const engineVersion = withDefault(args.version, "8.0
|
|
285
|
+
const engineVersion = withDefault(args.version, "8.0");
|
|
286
286
|
const instanceType = withDefault(args.instance, "t4g.micro");
|
|
287
287
|
const blueGreen = withDefault(args.blueGreen, false);
|
|
288
288
|
const vpc = isVpc(args.vpc)
|
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
type CustomResourceOptions,
|
|
4
4
|
type Input,
|
|
5
5
|
type Inputs,
|
|
6
|
-
type Output,
|
|
7
6
|
type ResourceTransformationArgs,
|
|
8
7
|
output,
|
|
9
8
|
} from "@pulumi/pulumi";
|
|
@@ -455,10 +454,11 @@ export class PartsComponent<P extends Parts> extends Component {
|
|
|
455
454
|
/** What the user passed in `existing` for the part, as they passed it. */
|
|
456
455
|
existing: at(this.partExisting, key, id) as unknown,
|
|
457
456
|
/**
|
|
458
|
-
* Supply the part's entry in `nodes
|
|
459
|
-
* read, so it may fail when the
|
|
457
|
+
* Supply the part's entry in `nodes`: the resource, or an output of it.
|
|
458
|
+
* `node` is called when `nodes` is read, so it may fail when the
|
|
459
|
+
* resource was never created.
|
|
460
460
|
*/
|
|
461
|
-
defer: (node: () =>
|
|
461
|
+
defer: (node: () => unknown) =>
|
|
462
462
|
put(this.partDeferred, key, id, node),
|
|
463
463
|
};
|
|
464
464
|
}
|
package/platform/src/config.ts
CHANGED
|
@@ -116,6 +116,9 @@ export interface App {
|
|
|
116
116
|
* ```ts
|
|
117
117
|
* version: ">= 3.2.49"
|
|
118
118
|
* ```
|
|
119
|
+
*
|
|
120
|
+
* A pre-release, such as `5.0.0-alpha.1`, meets a range that its release meets. So
|
|
121
|
+
* `">= 4"` and `"5.x"` allow it, and `"4.x"` doesn't.
|
|
119
122
|
*/
|
|
120
123
|
version?: string;
|
|
121
124
|
/**
|
|
@@ -299,6 +299,10 @@ export interface FunctionArgs {
|
|
|
299
299
|
* Node.js and Golang are officially supported. While, Python and Rust are
|
|
300
300
|
* community supported. Support for other runtimes are on the roadmap.
|
|
301
301
|
*
|
|
302
|
+
* A later release can move the default to a newer Node.js, and says so in its notes.
|
|
303
|
+
* A function that uses the default is then updated on its next deploy. Set `runtime`
|
|
304
|
+
* to keep it on one version.
|
|
305
|
+
*
|
|
302
306
|
* @default `"nodejs24.x"`
|
|
303
307
|
*
|
|
304
308
|
* @example
|
|
@@ -722,6 +726,10 @@ export interface FunctionArgs {
|
|
|
722
726
|
*
|
|
723
727
|
* However, if you pass in a role, you'll need to update it manually if you add `permissions` or `link` resources.
|
|
724
728
|
*
|
|
729
|
+
* SST does not read the role on each deploy. If the role is deleted, a deploy of an
|
|
730
|
+
* existing function still succeeds, and the function fails when it runs because
|
|
731
|
+
* Lambda can no longer assume the role.
|
|
732
|
+
*
|
|
725
733
|
* @default Creates a new role
|
|
726
734
|
* @example
|
|
727
735
|
* ```js
|
|
@@ -992,6 +1000,21 @@ export interface FunctionArgs {
|
|
|
992
1000
|
* Check out the _JS tab_ in the code snippets in the esbuild docs for the
|
|
993
1001
|
* [`BuildOptions`](https://esbuild.github.io/api/#build).
|
|
994
1002
|
* :::
|
|
1003
|
+
*
|
|
1004
|
+
* For example, a function builds faster in `sst dev` when the AWS SDK is left out of
|
|
1005
|
+
* its bundle there. It's loaded from your `node_modules` instead, so the packages you
|
|
1006
|
+
* import have to be installed. A deploy still bundles them.
|
|
1007
|
+
*
|
|
1008
|
+
* @example
|
|
1009
|
+
* ```js
|
|
1010
|
+
* {
|
|
1011
|
+
* nodejs: {
|
|
1012
|
+
* esbuild: {
|
|
1013
|
+
* external: $dev ? ["@aws-sdk/*", "@smithy/*"] : []
|
|
1014
|
+
* }
|
|
1015
|
+
* }
|
|
1016
|
+
* }
|
|
1017
|
+
* ```
|
|
995
1018
|
*/
|
|
996
1019
|
esbuild?: Input<EsbuildOptions>;
|
|
997
1020
|
/**
|
|
@@ -1655,9 +1678,11 @@ export declare class Function extends Component implements Link.Linkable {
|
|
|
1655
1678
|
*/
|
|
1656
1679
|
get nodes(): {
|
|
1657
1680
|
/**
|
|
1658
|
-
* The IAM Role the function will use.
|
|
1681
|
+
* The IAM Role the function will use. If you passed in a `role`, it's read from
|
|
1682
|
+
* AWS the first time you access this, including through `const { role } = fn.nodes`
|
|
1683
|
+
* or `{ ...fn.nodes }`, and the deploy fails if that role doesn't exist.
|
|
1659
1684
|
*/
|
|
1660
|
-
role: import("@pulumi/aws/iam/role.js").Role;
|
|
1685
|
+
readonly role: import("@pulumi/aws/iam/role.js").Role;
|
|
1661
1686
|
/**
|
|
1662
1687
|
* The AWS Lambda function.
|
|
1663
1688
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../../src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BAEd;IAED;;OAEG;IACH,IAAW,GAAG,mBAEb;IAED,gBAAgB;IAChB,OAAO,KAAK,kBAAkB,GAI7B;IAED,gBAAgB;IAChB,IAAW,SAAS,mBAInB;IAED,gBAAgB;IAChB,IAAW,SAAS,+BAInB;IAED,gBAAgB;IAChB,IAAW,eAAe,mBAMzB;IAED,gBAAgB;IAChB,IAAW,gCAAgC,mBAY1C;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACI,cAAc,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAavE,gBAAgB;IAChB,MAAM,CAAC,cAAc,CACnB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,KAAK,CAAC,MAAM,GAAG,YAAY,CAAC,EACxC,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,aAAa,GAAG,aAAa,CAAC,EAC3D,aAAa,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,EACvC,IAAI,CAAC,EAAE,wBAAwB;IAoCjC,gBAAgB;IACT,UAAU;;;;;;;qBA7lGR,OAAO,GAAG,MAAM;qBAUhB,MAAM,EAAE;uBAUN,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;yBAsBpB,KAAK,CAChB,KAAK,CAAC;gBACJ;;mBAEG;gBACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;gBACpB;;mBAEG;gBACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;gBACxB;;mBAEG;gBACH,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;aAChC,CAAC,EAAE,CACL;;;;CAokGF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function-part.d.ts","sourceRoot":"","sources":["../../../../../src/components/aws/helpers/function-part.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,EAAE,MAAM,EAAU,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,CAAC"}
|
|
@@ -14,7 +14,10 @@ export interface MysqlArgs {
|
|
|
14
14
|
* causing downtime. Learn more about [upgrading databases](/docs/upgrade-aws-databases/).
|
|
15
15
|
* :::
|
|
16
16
|
*
|
|
17
|
-
*
|
|
17
|
+
* Without it, RDS creates the database with its current minor version of MySQL 8.0, and
|
|
18
|
+
* a deployed database keeps the version it has.
|
|
19
|
+
*
|
|
20
|
+
* @default `"8.0"`
|
|
18
21
|
* @example
|
|
19
22
|
* ```js
|
|
20
23
|
* {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../../src/components/aws/mysql.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,wBAAwB,EAGxB,MAAM,EAEP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAO,GAAG,EAAkB,MAAM,aAAa,CAAC;AAEvD,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG5B,OAAO,EAAE,QAAQ,EAAS,MAAM,SAAS,CAAC;AAI1C,MAAM,WAAW,SAAS;IACxB
|
|
1
|
+
{"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../../src/components/aws/mysql.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,wBAAwB,EAGxB,MAAM,EAEP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAO,GAAG,EAAkB,MAAM,aAAa,CAAC;AAEvD,OAAO,EAAE,GAAG,EAAE,MAAM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SAAU,YAAW,IAAI,CAAC,QAAQ;IAC3D,OAAO,CAAC,QAAQ,CAAC,CAAe;IAChC,OAAO,CAAC,SAAS,CAAC,CAAiB;IACnC,OAAO,CAAC,KAAK,CAAC,CAAgC;IAC9C,OAAO,CAAC,GAAG,CAAC,CAOV;gBAEU,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,wBAAwB;IAya1E;;OAEG;IACH,IAAW,EAAE,mBAGZ;IAED;;OAEG;IACH,IAAW,OAAO,mBAWjB;IAED,uCAAuC;IACvC,IAAW,QAAQ,mBAGlB;IAED,uCAAuC;IACvC,IAAW,QAAQ,mBAGlB;IAED;;OAEG;IACH,IAAW,QAAQ,mBAGlB;IAED;;OAEG;IACH,IAAW,IAAI,oDAGd;IAED;;OAEG;IACH,IAAW,IAAI,mBAMd;IAED,IAAW,KAAK;;MAIf;IAED,gBAAgB;IACT,UAAU;;;;;;;;;IAYjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;WACW,GAAG,CACf,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,YAAY,EAClB,IAAI,CAAC,EAAE,wBAAwB;CAYlC"}
|
|
@@ -381,8 +381,15 @@ export interface RouterUrlRouteArgs extends RouteArgs {
|
|
|
381
381
|
* The number of seconds that CloudFront waits for a response after routing a
|
|
382
382
|
* request to the destination. Must be between 1 and 60 seconds.
|
|
383
383
|
*
|
|
384
|
-
* When compared to the `connectionTimeout`, this is the
|
|
385
|
-
*
|
|
384
|
+
* When compared to the `connectionTimeout`, this is the time CloudFront waits
|
|
385
|
+
* for each connection attempt. If the destination doesn't respond, CloudFront
|
|
386
|
+
* tries again, up to `connectionAttempts` times (3 by default), so the request
|
|
387
|
+
* can take that many times this value to fail.
|
|
388
|
+
*
|
|
389
|
+
* The Router applies this timeout dynamically to matching requests through
|
|
390
|
+
* its CloudFront Function. It does not change the distribution's static
|
|
391
|
+
* origin configuration. When you don't set it, the requests use the 20 seconds
|
|
392
|
+
* that the Router sets on the distribution's origin by default.
|
|
386
393
|
*
|
|
387
394
|
* @default `"20 seconds"`
|
|
388
395
|
* @example
|
|
@@ -397,6 +404,12 @@ export interface RouterUrlRouteArgs extends RouteArgs {
|
|
|
397
404
|
* The number of seconds that CloudFront should try to maintain the connection
|
|
398
405
|
* to the destination after receiving the last packet of the response. Must be
|
|
399
406
|
* between 1 and 60 seconds
|
|
407
|
+
*
|
|
408
|
+
* The Router passes this value to CloudFront with each matching request, but
|
|
409
|
+
* CloudFront currently does not apply it. It keeps the connection for the
|
|
410
|
+
* keep-alive timeout of the distribution's origin, which is 5 seconds by
|
|
411
|
+
* default, whatever you set here.
|
|
412
|
+
*
|
|
400
413
|
* @default `"5 seconds"`
|
|
401
414
|
* @example
|
|
402
415
|
* ```js
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../../src/components/aws/router.ts"],"names":[],"mappings":"AACA,OAAO,EACL,wBAAwB,EACxB,MAAM,EAIP,MAAM,gBAAgB,CAAC;AAIxB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAG5D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAKlC,OAAO,EAAE,eAAe,EAAa,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,IAAI,EAAS,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAGtC,UAAU,k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AAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB,CAAC;AAEF,wBAAgB,kBAAkB,CAChC,KAAK,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,EAC9B,eAAe,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC;;;;;;;;;;QA/EhD;;WAEG;eACI,KAAK,CAAC,MAAM,CAAC;QACpB;;WAEG;YACC,KAAK,CAAC,MAAM,CAAC;;;;;;eAkHpB"}
|
|
@@ -11,7 +11,8 @@ import { KvKeys } from "../providers/kv-keys";
|
|
|
11
11
|
import { KvRoutesUpdate } from "../providers/kv-routes-update";
|
|
12
12
|
declare const parts: {
|
|
13
13
|
/**
|
|
14
|
-
* The IAM Role the function uses.
|
|
14
|
+
* The IAM Role the function uses. A role you passed by its ARN is looked up when you
|
|
15
|
+
* read this, and the deploy fails if it doesn't exist.
|
|
15
16
|
*/
|
|
16
17
|
role: typeof import("@pulumi/aws/iam/role").Role;
|
|
17
18
|
/**
|
|
@@ -299,7 +300,8 @@ export interface FunctionArgs extends V5Args<TakesVpc<Omit<OriginalFunctionArgs,
|
|
|
299
300
|
}
|
|
300
301
|
declare const Function_base: import("../..").ComponentClass<{
|
|
301
302
|
/**
|
|
302
|
-
* The IAM Role the function uses.
|
|
303
|
+
* The IAM Role the function uses. A role you passed by its ARN is looked up when you
|
|
304
|
+
* read this, and the deploy fails if it doesn't exist.
|
|
303
305
|
*/
|
|
304
306
|
role: typeof import("@pulumi/aws/iam/role").Role;
|
|
305
307
|
/**
|
|
@@ -447,7 +449,8 @@ declare const Function_base: import("../..").ComponentClass<{
|
|
|
447
449
|
*
|
|
448
450
|
* #### Use a role or log group you already have
|
|
449
451
|
*
|
|
450
|
-
* Pass the resource, or the name to look it up by.
|
|
452
|
+
* Pass the resource, or the name to look it up by. A role can also be passed by its ARN.
|
|
453
|
+
* It's then used as it is, and only looked up if you read `nodes.role`.
|
|
451
454
|
*
|
|
452
455
|
* ```ts title="sst.config.ts"
|
|
453
456
|
* new sst.aws.v5.Function("MyFunction", {
|
|
@@ -466,7 +469,8 @@ declare const Function_base: import("../..").ComponentClass<{
|
|
|
466
469
|
*
|
|
467
470
|
* - `dev`, `logging`, `url`, `url.authorization`, `python`, `python.container`,
|
|
468
471
|
* `concurrency` and `concurrency.provisioned` have to be plain values, not outputs.
|
|
469
|
-
* - `role: roleArn` becomes `existing: { role }
|
|
472
|
+
* - `role: roleArn` becomes `existing: { role: roleArn }`. It can also be the role or
|
|
473
|
+
* its name, which is looked up on every deploy.
|
|
470
474
|
* - `logging: { logGroup: name }` becomes `existing: { logGroup }`, with the log group
|
|
471
475
|
* or its name.
|
|
472
476
|
* - `live: false` becomes `dev: false`, and `url.route` becomes `url.router`.
|