Loading...
Loading...
**upgrade from 0.11.3 to 0.11.14 not received any errors. upgrading from version: 0.11.14 to 0.12.29 throwing below error, tried different ways to work around to resolve by following all the git hub suggested issues nothing worked out. awsproviderversion=2.50.0** **_variables.tf_** ``` variable "dns_route53_hosted_zone_id" { default = "ZASDF123JJKL123" # used in resource type = string } variable "client_id" { default = "dev1" # used in resource type = string } ``` ### **dual-node-vpc-module** **_aws.route53.tf_** ``` resource "aws_route53_record" "services" { alias = "alfahostedzone" # resource is using provider alfahostedzone zone_id = "${var.dns_route53_hosted_zone_id}" name = "${lower(var.client_id)}-services.${lower(var.dns_domain)}" type = "A" ttl = "300" records = ["${aws_instance.linux.private_ip}"] } resource "aws_route53_record" "db" { alias = "alfahostedzone" # resource is using provider alfahostedzone zone_id = "${var.dns_route53_hosted_zone_id}" name = "${lower(var.client_id)}-db.${lower(var.dns_domain)}" type = "CNAME" ttl = "300" records = ["${aws_db_instance.primary.address}"] } ............... ............... ``` ### **dual-node-vpc-template** **_aws.vpc.tf_** ``` provider "aws" { allowed_account_ids = ["01234567890"] # dev1 account under main account assume_role { external_id = "dev1" role_arn = "${arn:aws:iam::01234567890:role/Myapp-Terraform-Deployment}" session_name = "Terraform_Deployment" } region = eu-west-1 version = 2.50.0 } provider "aws" { alias = "alfahostedzone" # this is called in module and in resource allowed_account_ids = ["312793456789"] # main account assume_role { external_id = "dev1" role_arn = "${arn:aws:iam::312793456789:role/Access_To_Myapp_Dot_Net_Hosted_Zone}" session_name = "TerraformAccessToRemoteHostedZone" } region = "eu-west-1" version = "2.50.0" } module "dual-node-vpc-template" { source = "git::ssh://git@..............dual-node-vpc-module....." providers = { aws = aws aws.alfahostedzone= aws.alfahostedzone } az_1 = "${module.environment.az_1["${lower(module.region.region)}"]}" ............... ............... } ``` **even after mentioning the providers under the module, still, the error persists a lot. tfplan output** ``` Error: Provider configuration not present To work with module.dual-node-vpc-template.aws_route53_record.services its original provider configuration at module.dual-node-vpc-template.provider.aws.alfahostedzone is required, but it has been removed. This occurs when a provider configuration is removed while objects created by that provider still exist in the state. Re-add the provider configuration to destroy module.dual-node-vpc-template.aws_route53_record.services, after which you can remove the provider configuration again. Error: Provider configuration not present To work with module.dual-node-vpc-template.aws_route53_record.example-db-services its original provider configuration at module.dual-node-vpc-template.provider.aws.alfahostedzone is required, but it has been removed. This occurs when a provider configuration is removed while objects created by that provider still exist in the state. Re-add the provider configuration to destroy module.dual-node-vpc-template.aws_route53_record.example-db-services, after which you can remove the provider configuration again. ............... ............... ```
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.