github.com/hugorut/terraform@v1.1.3/src/terraform/testdata/validate-required-provider-config/main.tf (about) 1 # This test verifies that the provider local name, local config and fqn map 2 # together properly when the local name does not match the type. 3 4 terraform { 5 required_providers { 6 arbitrary = { 7 source = "hashicorp/aws" 8 } 9 } 10 } 11 12 # hashicorp/test has required provider config attributes. This "arbitrary" 13 # provider configuration block should map to hashicorp/test. 14 provider "arbitrary" { 15 required_attribute = "bloop" 16 } 17 18 resource "aws_instance" "test" { 19 provider = "arbitrary" 20 }