hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.8k stars 9.15k forks source link

[Bug]: aws_neptune_cluster_endpoint (api error InvalidParameterValue: Endpoint type not supported by the cluster) #39776

Open LoScriptler opened 1 day ago

LoScriptler commented 1 day ago

Terraform Core Version

1.9.5

AWS Provider Version

5.72.1

Affected Resource(s)

aws_neptune_cluster_endpoint

Expected Behavior

Creation of the custom end point writer for neptune

Actual Behavior

When I create this resource resource "aws_neptune_cluster_endpoint" "neptune_ep_custom_writer" { cluster_identifier = var.switch_endpoint ? var.cluster_id_gamma : var.cluster_id_beta cluster_endpoint_identifier = "w-${var.resource_prefix}-endpoint-writer" endpoint_type = "WRITER" } I have an error but if I create READER there is't a error

Relevant Error/Panic Output Snippet

> │ Error: creating Neptune Cluster Endpoint: operation error Neptune: CreateDBClusterEndpoint, https response error StatusCode: 400, RequestID: b187f16d-c6c3-4620-aed7-961ae405cd43, api error InvalidParameterValue: Endpoint type not supported by the cluster
│ 
│   with aws_neptune_cluster_endpoint.neptune_ep_custom_writer,
│   on endpoint_custom.tf line 7, in resource "aws_neptune_cluster_endpoint" "neptune_ep_custom_writer":
│    7: resource "aws_neptune_cluster_endpoint" "neptune_ep_custom_writer" {

Terraform Configuration Files

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 5.72.1"
    }
  }

  required_version = "~> 1.9"
}

provider "aws" {
  region              = var.region
  allowed_account_ids = [var.account_id]
  default_tags {
    tags = {
      ManagedBy  = "terraform"
      Repository = local.repository
      "crif:env" = upper(var.env)
    }
  }
}

resource "aws_neptune_cluster_endpoint" "neptune_ep_custom_writer" {
  cluster_identifier          = var.switch_endpoint ? var.cluster_id_gamma : var.cluster_id_beta
  cluster_endpoint_identifier = "w-${var.resource_prefix}-endpoint-writer"
  endpoint_type               = "WRITER"
}

Steps to Reproduce

simply apply

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 1 day ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue