Provider doesn't support data source

743 views
Skip to first unread message

Francisco

unread,
Nov 4, 2016, 3:39:39 PM11/4/16
to Terraform
Hi,

I am using following code inside a module:

data "aws_region" "current" {
  current = true
}

data "aws_vpc" "selected" {
  id = "${var.vpc_id}"
}

Something is wrong when I issue a plan:

Errors:

  * data.aws_region.current: Provider doesn't support data source: aws_region
  * data.aws_region.current: Provider doesn't support data source: aws_region
  * data.aws_region.current: Provider doesn't support data source: aws_region
  * data.aws_vpc.selected: Provider doesn't support data source: aws_vpc

What is the problem?

Regards

David Adams

unread,
Nov 4, 2016, 3:42:25 PM11/4/16
to terrafo...@googlegroups.com
Sounds like you need to upgrade Terraform. Those data sources were added in 0.7.6. The current version is 0.7.9.

--
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-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/32b54365-c064-4f1b-a376-b0dfdf758aec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Francisco

unread,
Nov 4, 2016, 3:46:24 PM11/4/16
to Terraform
You were completely right Adams. After upgrade it works like a charm.

Thanks for your support in this group :)

Regards.

El viernes, 4 de noviembre de 2016, 20:42:25 (UTC+1), David Adams escribió:
Sounds like you need to upgrade Terraform. Those data sources were added in 0.7.6. The current version is 0.7.9.
On Fri, Nov 4, 2016 at 2:39 PM, Francisco <fr.me...@gmail.com> wrote:
Hi,

I am using following code inside a module:

data "aws_region" "current" {
  current = true
}

data "aws_vpc" "selected" {
  id = "${var.vpc_id}"
}

Something is wrong when I issue a plan:

Errors:

  * data.aws_region.current: Provider doesn't support data source: aws_region
  * data.aws_region.current: Provider doesn't support data source: aws_region
  * data.aws_region.current: Provider doesn't support data source: aws_region
  * data.aws_vpc.selected: Provider doesn't support data source: aws_vpc

What is the problem?

Regards

--
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.
Reply all
Reply to author
Forward
0 new messages