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

provider/aws: aws_neptune_cluster_instance unexpected state when configuring enhanced monitoring #15283

Closed
mvanzoest-rcd opened this issue Sep 22, 2020 · 2 comments · Fixed by #15284
Labels
bug Addresses a defect in current functionality. service/neptune Issues and PRs that pertain to the neptune service.
Milestone

Comments

@mvanzoest-rcd
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Terraform v0.12.28

provider "aws" (hashicorp/aws) 2.70.0

Affected Resource(s)

  • aws_neptune_cluster_instance

Terraform Configuration Files

Resource configuration:

# ...

resource "aws_neptune_cluster_instance" "cluster_instances" {
    count = var.instance_count
    identifier = "${local.prefix_instance_name}-${count.index}"
    cluster_identifier = "${aws_neptune_cluster.provisioned_cluster.id}"
    engine = "neptune"
    engine_version = var.engine_version
    instance_class = var.instance_class
    apply_immediately = var.apply_immediately
    auto_minor_version_upgrade = true
    neptune_subnet_group_name = aws_neptune_subnet_group.subnet_group.name
    neptune_parameter_group_name = aws_neptune_parameter_group.instance_parameter_group.name
    port = var.port

    tags = local.tags
    lifecycle {
        # Ensure if recreating instances that new ones are added first
        create_before_destroy = true
    }
    depends_on = [
        aws_neptune_cluster.provisioned_cluster,
        aws_neptune_subnet_group.subnet_group,
        aws_neptune_parameter_group.instance_parameter_group
    ]
}

# ...

Build (only displaying changes):

# aws_neptune_cluster_instance.cluster_instances[0] will be updated in-place
  ~ resource "aws_neptune_cluster_instance" "cluster_instances" {
        # ...
      ~ instance_class = "db.r5.large" -> "db.r5.xlarge"
        # ...
    }

Debug Output

Error: unexpected state 'configuring-enhanced-monitoring', wanted target 'available'. last error: %!s(<nil>)

  on main.tf line 106, in resource "aws_neptune_cluster_instance" "cluster_instances":
 106: resource "aws_neptune_cluster_instance" "cluster_instances" {

Panic Output

N/A

Expected Behavior

Apply should have succeeded.

Actual Behavior

Apply failed.

Steps to Reproduce

  1. Create a neptune cluster instance with instance type db.r5.large.

  2. Update the instance type to db.r5.xlarge, plan and try to apply.

  3. terraform apply

Important Factoids

References

@ghost ghost added the service/neptune Issues and PRs that pertain to the neptune service. label Sep 22, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Sep 22, 2020
@gdavison gdavison added bug Addresses a defect in current functionality. good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. and removed needs-triage Waiting for first response or review from a maintainer. good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. labels Sep 22, 2020
@gdavison gdavison added this to the v3.8.0 milestone Sep 22, 2020
@ghost
Copy link

ghost commented Sep 24, 2020

This has been released in version 3.8.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Oct 25, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Oct 25, 2020
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/neptune Issues and PRs that pertain to the neptune service.
Projects
None yet
2 participants