I have the same problem, but I don’t understand the answer. How am I doing this wrong in this example?
terraform {
required_providers {
bless = {
source = "registry.terraform.io/chanzuckerberg/bless"
version = "~> 0.5"
}
}
required_version = ">= 0.13"
}
data "aws_region" "current" {}
data "aws_caller_identity" "current" {}
# // Configure the terraform-provider-bless
provider "bless" {
region = data.aws_region.current.name
}
module "bless" {
// Replace with latest cztack stable release https://github.com/chanzuckerberg/cztack/releases
source = "github.com/chanzuckerberg/cztack//bless-ca?ref=v0.49.0"
project = "firehawk-codepipeline"
service = "bless"
env = "dev"
owner = "andrewgr"
region = data.aws_region.current.name
authorized_users = ["andrewgr"]
aws_account_id = data.aws_caller_identity.current.account_id
}
This produces the following error in terraform .13
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/bless: provider registry registry.terraform.io does not have a provider
│ named registry.terraform.io/hashicorp/bless
│
│ Did you intend to use chanzuckerberg/bless? If so, you must specify that source address in each module which requires that provider. To see
│ which modules are currently depending on hashicorp/bless, run the following command:
│ terraform providers