Skip to content

Redundant empty provider block on cross-account module. #117

@sgkouts85

Description

@sgkouts85

Description

Is there going to be a fix that will eliminate the error below? If you execute the example that is provided in GitRepo for cross-account VPC association this error shows up by default.

`Warning: Redundant empty provider block

on .terraform/modules/zone_cross_account_vpc_association/modules/zone-cross-account-vpc-association/versions.tf line 13:
13: provider "aws" {

Earlier versions of Terraform used empty provider blocks ("proxy provider configurations") for child modules to declare their need to be passed a provider configuration by their callers. That
approach was ambiguous and is now deprecated.

If you control this module, you can migrate to the new declaration syntax by removing all of the empty provider "aws" blocks and then adding or updating an entry like the following to the
required_providers block of module.zone_cross_account_vpc_association:
aws = {
source = "hashicorp/aws"
configuration_aliases = [
aws.r53_owner,
aws.vpc_owner,
]
}`

Versions

  • Module version: 5.0.0

  • Terraform version: 1.11.3

  • Provider version(s): aws: v5.94.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions