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

provider: deprecate skip_credentials_validation #10464

Merged

Conversation

magodo
Copy link
Collaborator

@magodo magodo commented Feb 4, 2021

This field got added to allow people to input fake data to get terraform validate working - which is fine but some people then complained that plan showed invalid data because of it - in short it shouldn’t have been added in the first.

This field got added to allow people to input fake data to get `terraform
validate` working - which is fine but some people then complained that
plan showed invalid data because of it - in short it shouldn’t have been
added in the first.
Copy link
Member

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

hey @magodo

Thanks for this PR - taking a look through this mostly LGTM - but we'll need to add a deprecation message to the existing field rather than outright removing it for the moment (although the behaviour can be removed, since this hasn't worked since ~2.0 anyway).

Thanks!

azurerm/internal/provider/provider.go Show resolved Hide resolved
@tombuildsstuff tombuildsstuff added this to the v2.47.0 milestone Feb 4, 2021
@ghost ghost added size/S and removed size/XS labels Feb 4, 2021
Copy link
Member

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@tombuildsstuff tombuildsstuff merged commit 9090813 into hashicorp:master Feb 11, 2021
tombuildsstuff added a commit that referenced this pull request Feb 11, 2021
@ghost
Copy link

ghost commented Feb 11, 2021

This has been released in version 2.47.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.47.0"
}
# ... other configuration ...

@NewGyu
Copy link

NewGyu commented Feb 22, 2021

Hi @magodo . Should this warning be shown evenif the field is not specified explicitly?

My main.tf is as below. The skip_credentials_validation is not specified explicitly.

provider "azurerm" {
  subscription_id = "6fd834f7-50a1-4d6a-b4f5-735ed47cbe9f"
  features {}
}

But the message below is shown when terraform plan is running.

Warning: "skip_credentials_validation": [DEPRECATED] This field is deprecated and will be removed in version 3.0 of the Azure Provider.

Is this expected?

@NewGyu
Copy link

NewGyu commented Feb 22, 2021

Sorry, #10560 means that. (I didn't read this thread enough.)

@ghost
Copy link

ghost commented Mar 13, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@hashicorp hashicorp locked as resolved and limited conversation to collaborators Mar 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants