terraform-provider-mongodbatlas
terraform-provider-mongodbatlas copied to clipboard
Invalid resource type: resource "mongodbatlas_serverless_instance"
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
-
terraform init
-
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 as a beta feature did you set the env variable per the README first? Once serverless is GA that will not be needed.
Never received a response and serverless is now GA so no longer an issue.