@awsless/awsless 0.0.285 → 0.0.287
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/dist/bin.js +6 -3
- package/dist/build-json-schema.js +2 -1
- package/dist/stack.json +1 -1
- package/package.json +7 -7
package/dist/bin.js
CHANGED
|
@@ -779,7 +779,8 @@ var InstancesSchema = z12.record(
|
|
|
779
779
|
user: z12.string().default("ec2-user"),
|
|
780
780
|
command: CommandSchema.optional(),
|
|
781
781
|
environment: EnvironmentSchema2.optional(),
|
|
782
|
-
permissions: PermissionsSchema2.optional()
|
|
782
|
+
permissions: PermissionsSchema2.optional(),
|
|
783
|
+
waitForTermination: z12.boolean().default(true)
|
|
783
784
|
})
|
|
784
785
|
).optional().describe("Define the instances in your stack.");
|
|
785
786
|
|
|
@@ -3537,6 +3538,7 @@ var instanceFeature = defineFeature({
|
|
|
3537
3538
|
...Object.entries(env).map(([key, value]) => {
|
|
3538
3539
|
return `echo export ${key}="${unwrap(value)}" >> /etc/profile`;
|
|
3539
3540
|
}),
|
|
3541
|
+
`echo export CLOUDWATCH_LOG_GROUP_NAME="/awsless/instance/${name}" >> /etc/profile`,
|
|
3540
3542
|
// user environment vars
|
|
3541
3543
|
...Object.entries(props.environment ?? {}).map(([key, value]) => {
|
|
3542
3544
|
return `echo export ${key}="${value}" >> /etc/profile`;
|
|
@@ -3597,7 +3599,8 @@ var instanceFeature = defineFeature({
|
|
|
3597
3599
|
name,
|
|
3598
3600
|
iamInstanceProfile: profile.arn,
|
|
3599
3601
|
launchTemplate: template,
|
|
3600
|
-
subnetId: ctx.shared.get(`vpc-public-subnet-id-1`)
|
|
3602
|
+
subnetId: ctx.shared.get(`vpc-public-subnet-id-1`),
|
|
3603
|
+
waitForTermination: props.waitForTermination
|
|
3601
3604
|
});
|
|
3602
3605
|
instance.dependsOn(code);
|
|
3603
3606
|
const logGroup = new aws10.cloudWatch.LogGroup(group, "log", {
|
|
@@ -3907,7 +3910,7 @@ var searchFeature = defineFeature({
|
|
|
3907
3910
|
statements: [
|
|
3908
3911
|
{
|
|
3909
3912
|
principal: "lambda.amazonaws.com",
|
|
3910
|
-
sourceArn: `arn:aws:
|
|
3913
|
+
sourceArn: `arn:aws:lambda:${ctx.appConfig.region}:${ctx.accountId}:function:${ctx.app.name}--${ctx.stack.name}--*`
|
|
3911
3914
|
}
|
|
3912
3915
|
]
|
|
3913
3916
|
}
|
|
@@ -499,7 +499,8 @@ var InstancesSchema = z15.record(
|
|
|
499
499
|
user: z15.string().default("ec2-user"),
|
|
500
500
|
command: CommandSchema.optional(),
|
|
501
501
|
environment: EnvironmentSchema2.optional(),
|
|
502
|
-
permissions: PermissionsSchema2.optional()
|
|
502
|
+
permissions: PermissionsSchema2.optional(),
|
|
503
|
+
waitForTermination: z15.boolean().default(true)
|
|
503
504
|
})
|
|
504
505
|
).optional().describe("Define the instances in your stack.");
|
|
505
506
|
|