Script the vault.hcl file when creating an EC2 instance

yes, i am a rookie linux guy w/ 30 years IT experience lol.
Does anyone know of a way to do an echo command and and do a >> to create my vault.hcl file?

listener "tcp" {
  address     = "0.0.0.0:8200"
  cluster_address = "0.0.0.0:8201"
  tls_disable = 1
}
 
 
storage "raft" {
  path = "/vault-data"
  node_id = "hostname"
}
 
ui = true
log_level = "ERROR"
api_addr = “http://publicIP:8200” ( can also be the privateIP) 
#cluster_name = "my-vault-cluster"
cluster_addr = “http://privateIP:8201”  
disable_mlock = true

Have you tried a Here Document?