All Products
Search
Document Center

Key Management Service:Overview of Dynamic ECS secrets

Last Updated:Mar 31, 2026

Static ECS logon credentials — passwords and SSH keys set once and changed only when someone remembers to update them — stay valid even after a breach goes undetected. Dynamic ECS secrets address this by having Secrets Manager periodically rotate ECS logon credentials to strong passwords and SSH keys automatically, so a leaked credential expires at the next rotation cycle without any manual effort.

How it works

When a rotation is triggered — either on a schedule or on demand — Secrets Manager sends a rotation command to Cloud Assistant. Cloud Assistant then calls the plug-in installed on the ECS instance to apply the new credential. After rotation completes, use the new secret to log on to the instance.

Architecture diagram showing rotation flow from Secrets Manager through Cloud Assistant to the ECS instance

Security mechanisms

Secrets Manager provides centralized, secure management of ECS secrets through four mechanisms:

  • Encryption protection: Dedicated hardware encrypts ECS secrets to protect them at rest.

  • Permission management: Fine-grained permission management based on Resource Access Management (RAM) reduces the risk of secret leaks.

  • Manual rotation: When a secret is leaked, immediately rotate it to block intrusions.

  • Periodic rotation: ECS logon credentials rotate on a schedule to strong passwords and SSH keys — even if a leak goes undetected, the exposed credential expires at the next rotation.

Get started

To use dynamic ECS secrets, grant Secrets Manager the permissions to manage passwords and SSH keys for your ECS instances. Once permissions are in place, Secrets Manager manages the logon credentials on your behalf.

  1. Create a dynamic ECS secret.

  2. Monitor secret rotation.

  3. Log on to the ECS instance using the current secret from Secrets Manager.

Limitations

Instance typeSupported credential types
LinuxPasswords and SSH keys
WindowsPasswords only