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?

1 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.