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 DocDB cluster fails to create Invalid DB Engine #33763

Closed
rymaclen opened this issue Oct 4, 2023 · 7 comments
Closed

[Bug]: AWS DocDB cluster fails to create Invalid DB Engine #33763

rymaclen opened this issue Oct 4, 2023 · 7 comments
Labels
bug Addresses a defect in current functionality. service/docdb Issues and PRs that pertain to the docdb service.

Comments

@rymaclen
Copy link

rymaclen commented Oct 4, 2023

Terraform Core Version

1.6.0

AWS Provider Version

5.21.0

Affected Resource(s)

aws_docdb_cluster

Expected Behavior

Expect to be able to create a document db cluster with or without the docdb engine specified

Actual Behavior

Fails to create documentdb cluster citing invalid db engine. Occurs when the engine field is explicit or implicit.

Relevant Error/Panic Output Snippet

╷
│ Error: creating DocumentDB cluster: InvalidParameterValue: Invalid DB engine
│       status code: 400, request id: 82bce636-397d-4ec7-8043-f2d96e1abd39
│ 
│   with aws_docdb_cluster.testr,
│   on 07-docdb-cluster-instance.tf line 3, in resource "aws_docdb_cluster" "testr":
│    3: resource "aws_docdb_cluster" "testr" {

Terraform Configuration Files

resource "aws_docdb_cluster" "testr" {
cluster_identifier = "testr"
availability_zones = ["us-west-1a", "us-west-1c"]
db_subnet_group_name = aws_docdb_subnet_group.prod-db-subnet-group.name
vpc_security_group_ids = [aws_security_group.docdb-access.id]
engine = "docdb"
master_username = "test"
master_password = "testing123"
depends_on = [aws_docdb_subnet_group.prod-db-subnet-group]
}

Steps to Reproduce

run terraform apply with the below:

resource "aws_docdb_cluster" "testr" {
  cluster_identifier     = "testr"
  availability_zones     = ["us-west-1a", "us-west-1c"]
  engine                 = "docdb"
  master_username        = "test"
  master_password        = "testing123"
}

Debug Output

No response

Panic Output

No response

Important Factoids

Not that I know of. Its new

References

https://registry.terraform.io/providers/hashicorp/aws/5.19.0/docs/resources/docdb_cluster

Would you like to implement a fix?

None

@rymaclen rymaclen added the bug Addresses a defect in current functionality. label Oct 4, 2023
@github-actions
Copy link

github-actions bot commented Oct 4, 2023

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 the service/docdb Issues and PRs that pertain to the docdb service. label Oct 4, 2023
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Oct 4, 2023
@rymaclen
Copy link
Author

rymaclen commented Oct 4, 2023

I am able to create the db using aws cli with the same parameters but still no dice on terraform

@gbw
Copy link
Contributor

gbw commented Oct 12, 2023

I believe @ewbankkit's changes in #33790 addresses this.

@rymaclen
Copy link
Author

rymaclen commented Oct 16, 2023

I am still having this issue after upgrading to the AWS 5.21.0 version. The behavior has not changed

Terraform v1.6.0
on darwin_arm64

  • provider registry.terraform.io/hashicorp/aws v5.21.0
  • provider registry.terraform.io/hashicorp/random v3.5.1

@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Oct 16, 2023
@ewbankkit
Copy link
Contributor

@rymaclen It looks like DocumentDB is not available in us-west-1: https://docs.aws.amazon.com/documentdb/latest/developerguide/what-is.html.

@rymaclen
Copy link
Author

Thank you! That would be why.

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/docdb Issues and PRs that pertain to the docdb service.
Projects
None yet
Development

No branches or pull requests

3 participants