generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathaction.yml
More file actions
109 lines (108 loc) · 4.88 KB
/
action.yml
File metadata and controls
109 lines (108 loc) · 4.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: AWS Lambda Deploy Action
description: Updates the code and configuration of AWS Lambda functions. If the function does not exist, a new one will be created.
inputs:
function-name:
description: 'Name of the Lambda function.'
required: true
package-type:
description: 'The package type of the Lambda function. Set to "Image" for container image functions, defaults to "Zip" for .zip file functions.'
required: false
default: 'Zip'
image-uri:
description: 'The URI of the container image in Amazon ECR. Required when package-type is "Image".'
required: false
code-artifacts-dir:
description: 'The path to a directory of code artifacts to zip and deploy to Lambda. Required when package-type is "Zip".'
required: false
handler:
description: 'The name of the method within your code that Lambda calls to run your function. Required when package-type is "Zip".'
required: false
default: 'index.handler'
runtime:
description: 'The identifier of the runtime. Required when package-type is "Zip".'
required: false
default: 'nodejs20.x'
s3-bucket:
description: 'S3 bucket name to use for Lambda deployment package. If provided, S3 deployment method will be used instead of direct upload.'
required: false
s3-key:
description: 'S3 key for the Lambda deployment package in the bucket. If not provided, a key will be auto-generated using the format: lambda-deployments/{function-name}/{timestamp}-{commit-hash}.zip.'
required: false
publish:
description: 'Set to true to publish a new version of the function after updating the code.'
required: false
dry-run:
description: 'Set true to validate the request parameters and access permissions without modifying the function code. Applicable for updating function code only. Creating and updating function configuration will be skipped since they do not support dry run.'
required: false
default: 'false'
revision-id:
description: 'Update the function only if the revision ID matches the ID that is specified.'
required: false
architectures:
description: 'The instruction set architecture that the function supports.'
required: false
source-kms-key-arn:
description: 'The ARN of the Key Management Service (KMS) customer managed key that is used to encrypt your functions .zip deployment package.'
required: false
role:
description: 'The Amazon Resource Name (ARN) of the functions execution role. Required when creating a new function.'
required: false
function-description:
description: 'A description of the function.'
required: false
memory-size:
description: 'The amount of memory available to the function at runtime.'
required: false
timeout:
description: 'The amount of time (in seconds) that Lambda allows a function to run before stopping it.'
required: false
vpc-config:
description: 'For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC.'
required: false
environment:
description: 'Environment variables as a JSON string'
required: false
dead-letter-config:
description: 'Specifies the queue or topic where Lambda sends asynchronous events when they fail processing.'
required: false
kms-key-arn:
description: 'The ARN of the Key Management Service (KMS) customer managed key'
required: false
tracing-config:
description: 'Set Mode to Active to sample and trace a subset of incoming requests with X-Ray.'
required: false
layers:
description: 'A list of function layers to add to the functions execution environment.'
required: false
file-system-configs:
description: 'Connection settings for an Amazon EFS file system.'
required: false
image-config:
description: 'Configuration for the Lambda functions container image.'
required: false
ephemeral-storage:
description: 'The size of the functions /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB.'
required: false
snap-start:
description: 'The functions SnapStart setting.'
required: false
logging-config:
description: 'The Amazon CloudWatch Logs configuration settings for the function.'
required: false
code-signing-config-arn:
description: 'The ARN of a code-signing configuration to use on this function.'
required: false
tags:
description: 'Tags to apply to the function as a JSON string (e.g. {"Environment":"Production","Team":"DevOps"})'
required: false
durable-config:
description: 'Configuration settings for durable functions as a JSON string (e.g. {"ExecutionTimeout":3600,"RetentionPeriodInDays":7})'
required: false
outputs:
function-arn:
description: 'The ARN of the updated Lambda function.'
version:
description: 'The function version if a new version was published.'
runs:
using: 'node20'
main: 'dist/index.js'