Teams should import an existing RDS instance when the workload is already live and the main objective is to bring it under declarative control without cutover risk. Import is the right choice when downtime, data continuity, or operational stability matters more than recreating the environment from scratch.
Why This Matters for Security Teams
Importing an existing RDS instance is not just a migration tactic. It is a control decision that determines whether a live database can be brought under infrastructure-as-code without interrupting service, losing state, or creating duplicate records. For security and platform teams, the practical question is whether the current instance is already the system of record and whether a rebuild would introduce more operational risk than governance benefit.
This matters because databases often carry the highest blast radius in an application stack: credentials, application state, backup dependencies, and compliance obligations all converge there. Rebuilding can be cleaner in theory, but in live environments it can also force cutover windows, data synchronisation problems, and revalidation of downstream integrations. The better choice is often the one that preserves continuity while allowing the team to tighten change control, tagging, backup policy, and access boundaries under declarative management. The Ultimate Guide to NHIs notes that 97% of NHIs carry excessive privileges, which is a reminder that unmanaged access around stateful systems is usually the bigger problem than the import itself.
Practitioners should also align the decision with broader governance objectives described in the NIST Cybersecurity Framework 2.0, especially where asset visibility and controlled change management are weak. In practice, many security teams discover the real import problem only after the application is already dependent on a database that cannot be safely rebuilt without business interruption.
How It Works in Practice
Import is usually the right path when the existing RDS instance already supports production traffic and the goal is to align the resource with Terraform, CloudFormation, or another declarative system of record. The team first confirms that the instance is stable, inventoryable, and sufficiently documented, then models the current configuration so future changes can be managed predictably. The import step attaches the live resource to code without recreating it, which reduces cutover risk and avoids unnecessary data movement.
Operationally, the team should verify a few things before importing:
- The instance identifier, engine version, parameter group, subnet group, and backup settings are known and acceptable.
- Maintenance windows, encryption settings, and security groups are documented so drift can be measured after import.
- Application owners understand that import does not fix weak access control, poor rotation, or exposed secrets.
- Backup and recovery testing are already in place, because import preserves the resource but not the quality of its resilience.
That distinction matters for identity and access as well. The Ultimate Guide to NHIs shows that only 5.7% of organisations have full visibility into their service accounts, and that lack of visibility is often mirrored in database access paths. Importing an RDS instance should therefore be paired with reviewing the non-human identities that connect to it, not just the storage and compute settings. Current guidance suggests treating the imported database as a governed workload boundary, then mapping who or what can reach it through IAM roles, security groups, and secret rotation policies.
Teams should rebuild instead of import when the existing instance is too contaminated by drift, undocumented customisations, or inherited misconfiguration to serve as a trustworthy baseline. These controls tend to break down when the instance has become a hand-tuned production dependency with unknown application coupling and no reliable rollback path.
Common Variations and Edge Cases
Tighter control often increases short-term engineering overhead, requiring organisations to balance operational continuity against the cost of carrying legacy configuration forward. That tradeoff is real: import preserves uptime, but it can also preserve bad habits if the team mistakes attachment for remediation.
There is no universal standard for when import is preferable, but current guidance suggests a few common edge cases. Import is usually favored for stateful production databases, regulated workloads, and instances with hard dependencies on existing endpoints. Rebuild is usually better for non-production systems, obviously misconfigured instances, or workloads where schema and data can be recreated safely from source-of-truth systems.
Another common exception is when the database is only one part of a larger estate migration. If the surrounding network, identity, and backup controls are being redesigned at the same time, rebuilding may be cleaner because it allows the team to establish a new baseline rather than normalise an old one. The challenge is that rebuilds can hide data-risk issues until late in the process, so teams should validate recovery procedures, secret handling, and downstream authentication before making the call. The NIST CSF framing is useful here: manage the resource as part of a wider resilience and recovery program, not as an isolated asset. For organisations already struggling with secrets sprawl, the import decision should be accompanied by a hard review of access paths and rotation discipline rather than assumed to be a security improvement on its own.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-01 | Imported RDS instances still depend on non-human identities and secrets hygiene. |
| NIST CSF 2.0 | ID.AM-1 | Import decisions depend on accurate asset inventory and change visibility. |
| NIST CSF 2.0 | PR.AA-1 | RDS import should be paired with review of who can authenticate and access the database. |
Inventory the RDS service accounts, secrets, and access paths before and after import.
Related resources from NHI Mgmt Group
- When should security teams use kernel-level controls instead of eBPF for workload identity?
- How should teams secure non-human identities across cloud and SaaS?
- How should security teams decide whether JIT access is safe for non-human identities?
- How should teams reduce the risk from exposed NHI secrets?