@jcoreio/toolchain-aws-lambda 4.4.0 → 4.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcoreio/toolchain-aws-lambda",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "AWS Lambda function build toolchain",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,11 +23,12 @@
23
23
  "dotenv": "^16.4.5",
24
24
  "resolve-bin": "^1.0.0",
25
25
  "zod": "^3.21.4",
26
- "@jcoreio/toolchain": "4.4.0"
26
+ "@jcoreio/toolchain": "4.5.0"
27
27
  },
28
28
  "toolchainManaged": {
29
29
  "devDependencies": {
30
- "@types/aws-lambda": "^8.10.137"
30
+ "@types/aws-lambda": "^8.10.137",
31
+ "@jcoreio/cloudformation-template-types": "^1.1.0"
31
32
  }
32
33
  }
33
34
  }
@@ -14,23 +14,27 @@ module.exports = [
14
14
  }
15
15
  `,
16
16
  [`scripts/cloudFormationTemplate.${isTS ? 'ts' : 'js'}`]: dedent`
17
+ import type {
18
+ CloudFormationTemplate,
19
+ CloudFormationTemplateParameterValues,
20
+ } from '@jcoreio/cloudformation-template-types'
21
+
17
22
  // export const StackName = 'StackName'
18
23
 
19
24
  export const Template = {
20
25
  AWSTemplateFormatVersion: '2010-09-09',
21
26
  // Description: 'Template Descrption',
22
- Transform: 'AWS::Serverless-2016-10-31',
23
27
  Parameters: {
24
28
 
25
29
  },
26
30
  Resources: {
27
31
  LambdaFunction: {
28
- Type: 'AWS::Serverless::Function',
32
+ Type: 'AWS::Lambda::Function',
29
33
  Properties: {
30
34
  MemorySize: 128,
31
35
  Timeout: 60,
32
- // CodeUri: {
33
- // Bucket: 'BucketName',
36
+ // Code: {
37
+ // S3Bucket: 'BucketName',
34
38
  // },
35
39
  },
36
40
  },
@@ -38,11 +42,11 @@ module.exports = [
38
42
  Outputs: {
39
43
  LambdaFunction: { Value: { Ref: 'LambdaFunction' } },
40
44
  },
41
- }
45
+ } satisfies CloudFormationTemplate
42
46
 
43
47
  export const Parameters = {
44
48
 
45
- }
49
+ } satisfies CloudFormationTemplateParameterValues<typeof Template>
46
50
 
47
51
  export const Capabilities = ['CAPABILITY_IAM']
48
52