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

No attribute for certificate identifier in resource: aws_rds_cluster_instance #11142

Closed
ghost opened this issue Dec 4, 2019 · 4 comments
Closed
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/rds Issues and PRs that pertain to the rds service.
Milestone

Comments

@ghost
Copy link

ghost commented Dec 4, 2019

This issue was originally opened by @Naveenraaj as hashicorp/terraform#23556. It was migrated here as a result of the provider split. The original body of the issue is below.


Current Terraform Version

Terraform v0.12.17

Use-cases

AWS has notified to update the certificate for RDS DBs to rds-ca-2019, i am trying to do it using terraform and i am having resource: aws_rds_cluster_instance .

Above mentioned resource does not have an attribute for specifying the CA Certificate, as per the documentation.
An attribute called ca_cert-identifier is available for similar resource: aws_db_instance.

Attempted Solutions

main.tf:

provider "aws" {
  region = "us-east-1"
}

resource "aws_rds_cluster" "aurora" {
  availability_zones      = ["us-east-1a", "us-east-1b", "us-east-1c"]
  cluster_identifier      = "testingcert"
  engine                  = "aurora-mysql"
  engine_version          = "5.7.12"
  master_username         = "rdsmysql"
  master_password         = "Thisispassword"
  backup_retention_period = 3
  storage_encrypted       = "true"
  apply_immediately       = true
  lifecycle {
    create_before_destroy = true
  }
}

resource "aws_rds_cluster_instance" "cluster_instances" {
  cluster_identifier  = aws_rds_cluster.aurora.id
  instance_class      = "db.t2.small"
  engine              = "aurora-mysql"
  engine_version      = "5.7.12"
  publicly_accessible = true
  apply_immediately   = true
  ca_cert_identifier  = "rds-ca-2019"
}

Ran terraform plan

Result:

terraform plan

Error: Unsupported argument

  on main.tf line 27, in resource "aws_rds_cluster_instance" "cluster_instances":
  27:   ca_cert_identifier  = "rds-ca-2019"

An argument named "ca_cert_identifier" is not expected here.

Proposal

Please let us know, if i am missing anything in my code or this is a new feature that will be implemented in future.

References

PR #10954 is open for adding the attribute, if this is the fix, kindly prioritize the merge of this PR.

@ghost ghost added the service/rds Issues and PRs that pertain to the rds service. label Dec 4, 2019
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Dec 4, 2019
@rspljignesh
Copy link

Hello, Can someone please look into this PR, as AWS provider has already added support for the same. We are eagerly waiting for this solution for Terraform 0.12.

Thanks

@bflad bflad added this to the v2.44.0 milestone Jan 2, 2020
@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Jan 2, 2020
@bflad
Copy link
Contributor

bflad commented Jan 2, 2020

Support for the ca_cert_identifier argument for the aws_rds_cluster_instance resource was recently merged (#10954) and will release in version 2.44.0 of the Terraform AWS Provider, next Thursday.

@bflad bflad closed this as completed Jan 2, 2020
@ghost
Copy link
Author

ghost commented Jan 10, 2020

This has been released in version 2.44.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
Author

ghost commented Mar 27, 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 and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/rds Issues and PRs that pertain to the rds service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants