terraform-provider-mongodbatlas icon indicating copy to clipboard operation
terraform-provider-mongodbatlas copied to clipboard

Invalid resource type: resource "mongodbatlas_serverless_instance"

Open tcarrondo opened this issue 2 years ago • 1 comments

Terraform CLI and Terraform MongoDB Atlas Provider Version

$ terraform version
Terraform v1.0.0
on linux_amd64
+ provider registry.terraform.io/hashicorp/aws v4.8.0
+ provider registry.terraform.io/mongodb/mongodbatlas v1.3.1

Terraform Configuration File

terraform {
  required_version = ">= 1.0"
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 4.8.0"
    }
    mongodbatlas = {
      source  = "mongodb/mongodbatlas"
      version = "1.3.1"
    }
  }
}

resource "mongodbatlas_serverless_instance" "main" {
  project_id   = "<PROJECT_ID>"
  name         = "<SERVERLESS_INSTANCE_NAME>"

  provider_settings_backing_provider_name = "AWS"
  provider_settings_provider_name = "SERVERLESS"
  provider_settings_region_name = "US_EAST_1"
}

Steps to Reproduce

  1. terraform init
  2. terraform plan

Expected Behavior

It should plan creation of a serverless instance

Actual Behavior

Error: Invalid resource type
│ 
│   on mongodb.tf line 15, in resource "mongodbatlas_serverless_instance" "main":
│   15: resource "mongodbatlas_serverless_instance" "main" {
│ 
│ The provider mongodb/mongodbatlas does not support resource type "mongodbatlas_serverless_instance".

tcarrondo avatar Apr 14 '22 12:04 tcarrondo

@tcarrondo as a beta feature did you set the env variable per the README first? Once serverless is GA that will not be needed.

themantissa avatar Apr 21 '22 21:04 themantissa

Never received a response and serverless is now GA so no longer an issue.

themantissa avatar Oct 19 '22 20:10 themantissa