Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LoScriptler opened this issue Oct 17, 2024 · 1 comment
Labels
bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. service/neptune Issues and PRs that pertain to the neptune service.

Comments

@LoScriptler
Copy link

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

@LoScriptler LoScriptler added the bug Addresses a defect in current functionality. label Oct 17, 2024
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added service/neptune Issues and PRs that pertain to the neptune service. needs-triage Waiting for first response or review from a maintainer. labels Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. service/neptune Issues and PRs that pertain to the neptune service.
Projects
None yet
Development

No branches or pull requests

1 participant