Skip to content

provider block ignored for hashicorp provider aliased to another one #26556

@radeksimko

Description

@radeksimko

Terraform Version

v0.13.3

Terraform Configuration Files

terraform {
  required_providers {
    google = {
      source  = "hashicorp/aws"
      version = "~> 3.6.0"
    }
  }
}

provider "google" {
  region = "us-east-1"
}

resource "aws_vpc" "example" {
  provider = google
  cidr_block = "10.0.0.0/16"
}

Expected Behavior

$ terraform validate
Success! The configuration is valid.

Actual Behavior

$ terraform validate

Error: Missing required argument

The argument "region" is required, but was not set.

Steps to Reproduce

  1. terraform init
  2. terraform validate

cc @mildwonkey

Metadata

Metadata

Assignees

Labels

bugnewnew issue not yet triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions