Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the DEPRECATED warnings #35

Merged
merged 1 commit into from
Mar 2, 2018
Merged

Conversation

jasonsattler
Copy link
Contributor

removing current will fix the messages.

Warning: module.platform.module.ecs.data.aws_region.current: "current": [DEPRECATED] Defaults to current provider region if no other filtering is enabled

You can find more info at hashicorp/terraform-provider-aws#3157

removing current will fix the messages.

Warning: module.platform.module.ecs.data.aws_region.current: "current": [DEPRECATED] Defaults to current provider region if no other filtering is enabled

You can find more info at hashicorp/terraform-provider-aws#3157
data "aws_region" "current" {
current = true
}
data "aws_region" "current" {}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does one even need the curly braces?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am pretty sure the answer is yes

@bengaywins bengaywins merged commit 2685be4 into master Mar 2, 2018
@bengaywins bengaywins deleted the Fix-Deprecated-warnings branch March 2, 2018 20:56
@jasonhancock
Copy link
Contributor

Error: Error refreshing state: 2 error(s) occurred:

* module.platform.module.ecs.data.aws_region.current: 1 error(s) occurred:

* module.platform.module.ecs.data.aws_region.current: data.aws_region.current: InvalidParameterValue: Invalid region: []
	status code: 400, request id: 4c4e57d2-e151-4b9b-aaad-813b87336ae5
* module.platform.module.services.data.aws_region.current: 1 error(s) occurred:

* module.platform.module.services.data.aws_region.current: data.aws_region.current: InvalidParameterValue: Invalid region: []
	status code: 400, request id: 48f8aaff-1cb0-4315-b604-9246b756f3b6

@jasonsattler
Copy link
Contributor Author

do you have a region on your provider?

@jasonsattler
Copy link
Contributor Author

The other thing is that I did see that error when Jenkins was on 0.10.8 when I was doing the terraform-aws-network module. What version of terraform are you using?

@sterfield
Copy link

sterfield commented Mar 6, 2018

Got the same error. I do not have a region in my AWS provider, but I do have the region setup in my env vars, using AWS_DEFAULT_REGION.

I'm using terraform 0.11.3

EDIT : scratch that, I have updated all my providers and it's now working as expected. Sorry for the noise.

@jasonsattler
Copy link
Contributor Author

We went a different route and removed that datasource. #36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants