Terraform Azure custom_data example
locals {
custom_data = <<CUSTOM_DATA
#!/bin/bash
echo "Execute your super awesome commands here!"
CUSTOM_DATA
}
# Encode and pass you script
custom_data = base64encode(local.custom_data)
# Using filebase64 to encode script
custom_data = filebase64("scripts/k8s-node.sh")