resource "google_storage_bucket" "etcd-backup" {
name = "${var.etcd_bucket}"
location = "US-WEST1"
project = "${var.project_id}"
}
cheers
</jima>
Use "terraform import"
-- Stuart Clark
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/7cdc2f82-b74a-40e0-e1c6-d55805e4ca68%40Jahingo.com.
For more options, visit https://groups.google.com/d/optout.
Why cannot we use a "data" resource rather than "terraform import". Would love to learn
It depends what you are trying to achieve.
If you are wanting Terraform to manage the bucket, add the resource and the run "terraform import".
If you are just wanting to refer to the bucket elsewhere, but not
manage the bucket, use a data source.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/CAG9tf--O8AsJcO_nmoV6%2BihGX4JoTLyXbHr_udJgz0rAYBbn6g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
-- Stuart Clark