update-function-configuration
command to update the Lambda function’s configuration.--vpc-config
parameter with the appropriate VPC configuration details, such as SubnetIds
and SecurityGroupIds
.aws lambda update-function-configuration --function-name <function-name> --vpc-config SubnetIds=<subnet-ids>,SecurityGroupIds=<security-group-ids>
update-function-configuration
command to update the Lambda function’s configuration.--kms-key-arn
parameter with the ARN of the KMS key to be used for encryption.aws lambda update-function-configuration --function-name <function-name> --kms-key-arn <kms-key-arn>
update-function-configuration
command to update the Lambda function’s configuration.--tracing-config
parameter with the appropriate tracing configuration details, such as Mode
set to Active
.aws lambda update-function-configuration --function-name <function-name> --tracing-config Mode=Active
timeout
parameter to a higher value, such as 5 minutes (300 seconds).VpcConfig
parameter with the appropriate VPC configuration details.KMSKeyArn
parameter with the ARN of the KMS key to be used for encryption.