Detect lambda drift with terraform
To detect drift in your Lambda function's code using the hash, you can compare the current hash in your Terraform state with the actual deployed Lambda's hash.
terraform state show aws_lambda_function.hello_world | grep source_code_hash
aws lambda get-function --function-name hello_world --query 'Configuration.CodeSha256' --output text
No hay comentarios:
Publicar un comentario