Skip to content

[Feature]: Add the ability to download objects from object storage bucket via linode_object_storage_object resource #1946

@aslepcev

Description

@aslepcev

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"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementissues that request a enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions