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.83k stars 9.17k forks source link

Support Neptune #4713

Closed atsushi-ishibashi closed 6 years ago

atsushi-ishibashi commented 6 years ago

Community Note

Description

New or Affected Resource(s)

Potential Terraform Configuration

resource "aws_neptune_cluster" "example" {
  cluster_identifier = "example"
  engine = "neptune"
  engine_version = "1.0.1"
  cluster_parameter_group_name = "${aws_neptune_cluster_parameter_group.example.name}"
  subnet_group_name = "${aws_neptune_subnet_group.example.name}"
  database_name = "database"
  master_username = "user"
  master_password = "password"
  ...

}

resource "aws_neptune_cluster_instance" "example" {
  identifier = "example"
  cluster_identifier = "${aws_neptune_cluster.example.id}"
  engine = "neptune"
  instance_class = "db.m4.large"
  ...

}

resource "aws_neptune_subnet_group" "example" {
  name = "example"
  description = "example description"
  subnet_ids = ["${aws_subnet.frontend.id}", "${aws_subnet.backend.id}"]
}

resource "aws_neptune_parameter_group" "example" {
  name = "example"
  family = "example"
  description = "example description"
}

resource "aws_neptune_cluster_parameter_group" "example" {
  name = "example"
  family = "example"
  description = "example description"
}

resource "aws_neptune_event_subscription" "example" {
  name = "example"
  sns_topic = "${aws_sns_topic.example.arn}"
  source_type = "db-instance"
  source_ids = ["${aws_neptune_cluster_instance.example.id}"]
  event_categories = [
    "creation",
    "failover",
    ...
  ]
}

Order

  1. aws_neptune_parameter_group,aws_neptune_cluster_parameter_group,aws_neptune_subnet_group
  2. aws_neptune_cluster
  3. aws_neptune_cluster_instance
  4. aws_neptune_event_subscription

References

dav009 commented 6 years ago

opened PR for aws_neptune_parameter_group https://github.com/terraform-providers/terraform-provider-aws/pull/4724

saravanan30erd commented 6 years ago

@atsushi-ishibashi @dav009 I would like to work on aws_neptune_subnet_group, anyone working on this?

atsushi-ishibashi commented 6 years ago

@saravanan30erd I'm not👍

dav009 commented 6 years ago

@saravanan30erd go for it 👍. I will address the requested changes in the open PR soon 🙇

saravanan30erd commented 6 years ago

@atsushi-ishibashi @bflad It looks like both RDS and Neptune using same resource DB Subnet Group for subnet groups, so I think we can use the same resource aws_db_subnet_group with just updating document, any thoughts?

bflad commented 6 years ago

@saravanan30erd each service requires its own connection/endpoint and resource handling will likely vary between the two. Definitely create separate resources even if they look very similar.

saravanan30erd commented 6 years ago

@atsushi-ishibashi @dav009 I am working on aws_neptune_cluster_parameter_group

bflad commented 6 years ago

For those following along:

saravanan30erd commented 6 years ago

@dav009 I am working on aws_neptune_cluster

angelinatquach commented 6 years ago

@saravanan30erd do you have an expected completion date? Great work so far btw! Really appreciating the rapid development.

saravanan30erd commented 6 years ago

@angelinatquach I am expecting to finish this resource before next release.

austinkelleher commented 6 years ago

We are using Neptune too and really looking forward to seeing this implemented. Thanks for your work on this @saravanan30erd!

saravanan30erd commented 6 years ago

@bflad still two resources are remaining aws_neptune_cluster_instance and aws_neptune_event_subscription, I am working on aws_neptune_cluster_instance.

bflad commented 6 years ago

I'll be picking up aws_neptune_event_subscription this week. 👍

saravanan30erd commented 6 years ago

@bflad I already started and on the half way :)-

bflad commented 6 years ago

@saravanan30erd even better! 😄

bflad commented 6 years ago

As of version 1.31.0 of the AWS provider, releasing shortly, all the above mentioned resources have been implemented. 🎉 For future bug reports and feature requests, please submit separate issues so we have a clear definition of done. Thanks!

ghost commented 4 years ago

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!