The snapshots data source can be used to search for and return an existing snapshot which can then be used to provision a server.
data "profitbricks_snapshot" "snapshot_example" { name = "my snapshot" size = "2" location = "location_id" }
name
- (Required) Name or part of the name of an existing snapshot that you want to search for. location
- (Optional) Id of the existing snapshot's location. size
- (Optional) The size of the snapshot to look for. id
- UUID of the snapshot
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/profitbricks/d/profitbricks_snapshot.html