Open mwardbopp opened 1 year ago
I was able to workaround this by using a local_file and then using that content for the network_file
data "local_file" "ztp-primary_gw" {
filename = "${aviatrix_edge_equinix.primary_gw.gw_name}-${aviatrix_edge_equinix.primary_gw.site_id}-cloud-init.txt" # Path to your local file
}
resource "equinix_network_file" "aviatrix-cloudinit-file" {
file_name = "ztp-cloud-init.txt"
content = data.local_file.ztp-primary_gw.content
metro_code = "NY"
device_type_code = "AVIATRIX_EDGE"
process_type = "CLOUD_INIT"
self_managed = true
byol = true
depends_on = [ aviatrix_edge_equinix.primary_gw ]
lifecycle {
ignore_changes = [content]
}
}
Terraform Version
1.6.2
Equinix Provider Version
1.18.0
Effected Terraform Resources
equinix_network_file equinix_network_device
Terraform Config Files
Debug Output
Panic Output
No response
Expected Behavior
Not require doing two "terraform apply" to get this to work
Actual Behavior
Steps to Reproduce
1st terraform apply