Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-6145

jenkins/qa terraform destroy fails if there is an existing rds final snapshot

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: QA
    • Labels:

      Description

      AWS appears to prevent the overwrite of an existing final rds snapshot. This scenario may arise when creating/destroying a dev env multiple times. This can be avoided by disabling the final snapshot when destroying an rds instance. One way to resolve this would be to add a terraform var to signal this is his is a development env.

        Attachments

          Activity

          Hide
          jhoblitt Joshua Hoblitt added a comment -

          It took a couple of tries to find a good work around for this issue. I have opened a PR that adds a dev target to ./terraform/Makefile. If make dev is run, the tf rds instance is configured without regular backups or a final snapshot on destruction. I've been through 3+ apply/destroy cycles without any resource conflicts with this change.

          Show
          jhoblitt Joshua Hoblitt added a comment - It took a couple of tries to find a good work around for this issue. I have opened a PR that adds a dev target to ./terraform/Makefile . If make dev is run, the tf rds instance is configured without regular backups or a final snapshot on destruction. I've been through 3+ apply/destroy cycles without any resource conflicts with this change.
          Hide
          jhoblitt Joshua Hoblitt added a comment -

          Merge per verbal report that issue is resolved.

          Show
          jhoblitt Joshua Hoblitt added a comment - Merge per verbal report that issue is resolved.

            People

            • Assignee:
              jhoblitt Joshua Hoblitt
              Reporter:
              jhoblitt Joshua Hoblitt
              Reviewers:
              Jonathan Sick
              Watchers:
              Jonathan Sick, Joshua Hoblitt
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel