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

data aws_db_cluster_snapshot can return unavailble snapshot #16266

Closed
DrMerlin opened this issue Nov 18, 2020 · 2 comments
Closed

data aws_db_cluster_snapshot can return unavailble snapshot #16266

DrMerlin opened this issue Nov 18, 2020 · 2 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/rds Issues and PRs that pertain to the rds service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.

Comments

@DrMerlin
Copy link

DrMerlin commented Nov 18, 2020

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

Description

When configured per the manual: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/db_cluster_snapshot

and retrieving: most_recent = true

The data source will sometimes return an in-progress snapshot, which is not available.

It should also accept a parameter: available = true or status = available

or similar which would filter out in-progress or status: copying snapshots.

data.aws_db_cluster_snapshot.cluster_snapshot
{
"allocated_storage" = 1680
"availability_zones" = [
"us-east-2a",
"us-east-2b",
"us-east-2c",
]
"db_cluster_identifier" = ""
"db_cluster_snapshot_arn" = ""
"db_cluster_snapshot_identifier" = ""
"engine" = "aurora-postgresql"
"engine_version" = "10.11"
"id" = ""
"include_public" = false
"include_shared" = false
"kms_key_id" = ""
"license_model" = "postgresql-license"
"most_recent" = true
"port" = 0
"snapshot_create_time" = "2020-08-26T06:24:23Z"
"snapshot_type" = "manual"
"source_db_cluster_snapshot_arn" = ""
"status" = "copying"
"storage_encrypted" = false
"tags" = {}
"vpc_id" = ""
}

New or Affected Resource(s)

  • aws_db_cluster_snapshot

Potential Terraform Configuration

data "aws_db_cluster_snapshot" "cluster_snapshot" {
  db_cluster_identifier = "<id>"
  most_recent           = true
}
@DrMerlin DrMerlin added the enhancement Requests to existing resources that expand the functionality or scope. label Nov 18, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Nov 18, 2020
@ghost ghost added the service/rds Issues and PRs that pertain to the rds service. label Nov 18, 2020
@breathingdust breathingdust removed the needs-triage Waiting for first response or review from a maintainer. label Sep 8, 2021
Copy link

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@github-actions github-actions bot added the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Dec 31, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 18, 2024
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 Mar 20, 2024
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. stale Old or inactive issues managed by automation, if no further action taken these will get closed.
Projects
None yet
2 participants