Description
At the moment, it's only possible to upload content to object storage using linode_object_storage_object
It would be great if there was an option to download object from object storage as well.
Besides downloading the file, other example usecase could be something like this:
data "linode_object_storage_object" "bootstrap_script" {
bucket = "bucket-name"
key = "my-bootstrap-script.sh"
}
resource "linode_instance" "foo" {
instance_type = "g6-nanode-1"
ami = "linode/ubuntu22"
metadata {
user_data = data.linode_object_storage_object.bootstrap_script.body
}
}
New or Affected Terraform Resources
linode_object_storage_object
Potential Terraform Configuration
resource "linode_object_storage_object" "object" {
bucket = "my-bucket"
region = "us-mia"
key = "bar.txt"
destination = "/foo/bar.txt"
}