0

I have a Terraform HCL file with a remote-exec provisioner that looks like this..

resource "openstack_compute_instance_v2" "sandboxvm" {
  provisioner "remote-exec" {
    inline = [<<EOF
      echo "start of sandboxvm provision..."
    EOF
    ]
  }
}

I know user-data gets stored on the OpenStack metadata server. I learned that the hard way when I wrote this answer. Does the OpenStack metadata server have access to the script used by this provisioner?

Evan Carroll
  • 2,921
  • 6
  • 37
  • 85

1 Answers1

0

No

Having just done tested the remote-exec provisioner it does not..

$ curl http://169.254.169.254/latest/meta-data/
ami-id
ami-launch-index
ami-manifest-path
block-device-mapping/
hostname
instance-action
instance-id
instance-type
local-hostname
local-ipv4
placement/
public-hostname
public-ipv4
public-keys/
reservation-id
Evan Carroll
  • 2,921
  • 6
  • 37
  • 85