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

Validation of the Key Vault's name is not executed when it is terraform plan #265

Closed
changeworld opened this issue Aug 23, 2017 · 3 comments · Fixed by #270
Closed

Validation of the Key Vault's name is not executed when it is terraform plan #265

changeworld opened this issue Aug 23, 2017 · 3 comments · Fixed by #270
Assignees
Labels

Comments

@changeworld
Copy link
Contributor

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

Terraform v0.10.2

Affected Resource(s)

Please list the resources as a list, for example:

  • azurerm_key_vault

Terraform Configuration Files

variable "subscription_id" {}
variable "client_id" {}
variable "client_secret" {}
variable "tenant_id" {}

# Configure the Microsoft Azure Provider
provider "azurerm" {
  subscription_id = "${var.subscription_id}"
  client_id       = "${var.client_id}"
  client_secret   = "${var.client_secret}"
  tenant_id       = "${var.tenant_id}"
}

resource "azurerm_resource_group" "test" {
  name     = "testKeyVault"
  location = "West US"
}

resource "azurerm_key_vault" "test" {
  name                = "abcdefghijklmnopqrstuvwxyz"
  location            = "West US"
  resource_group_name = "${azurerm_resource_group.test.name}"

  sku {
    name = "standard"
  }

  tenant_id = "${var.tenant_id}"

  access_policy {
    tenant_id = "${var.tenant_id}"
    object_id = "d746815a-0433-4a21-b95d-fc437d2d475b"

    key_permissions = [
      "all",
    ]

    secret_permissions = [
      "get",
    ]
  }

  enabled_for_disk_encryption = true

  tags {
    environment = "Test"
  }
}

Debug Output

Debug Output

Expected Behavior

Run Validation at running terraform plan.

Actual Behavior

There was no error when running terraform plan.
However, validation error occurred when running terraform apply.

Steps to Reproduce

  1. terraform plan
  2. terraform apply
@changeworld changeworld changed the title Validation is not executed when terraform plan Validation of the name of Key Vault is not executed when it is terraform plan Aug 23, 2017
@changeworld changeworld changed the title Validation of the name of Key Vault is not executed when it is terraform plan Validation of the Key Vault's name is not executed when it is terraform plan Aug 23, 2017
@tombuildsstuff tombuildsstuff self-assigned this Aug 24, 2017
@tombuildsstuff
Copy link
Contributor

Hey @changeworld

Thanks for opening this issue - I've opened #270 which includes a fix for this.

Thanks!

@changeworld
Copy link
Contributor Author

Thanks!

@ghost
Copy link

ghost commented Apr 1, 2020

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!

@ghost ghost locked and limited conversation to collaborators Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants