update-function-configuration
command to update the Lambda function’s configuration.--vpc-config
parameter with the appropriate values for 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 value Mode=Active
.aws lambda update-function-configuration --function-name <function-name> --tracing-config Mode=Active
update-function-configuration
API to add the VPC configuration to the Lambda function.update-function-configuration
API to enable CloudTrail logging for the Lambda function.TracingConfig
parameter to 'Active'
to enable CloudTrail logging.update-function-configuration
API to enable X-Ray tracing for the Lambda function.TracingConfig
parameter to 'Active'
to enable X-Ray tracing.