Answers for "Terraform Azure custom_data example"

0

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")
Posted by: Guest on July-02-2021

Browse Popular Code Answers by Language