secrets[].valueFrom, read by the AWS CLI or any SDK with an
ECS credential, and listed, versioned, deleted and restored
from the portal under Secrets › Secrets Manager. The portal never shows a
value: it is written once, and read only by the task or your shell.
Isolation is AWS’s own account boundary — the same one that keeps your
clusters yours. A secret’s ARN carries your account id, and nothing in any
other organization’s account is reachable from it.
One setting
The same endpoint override you set for ECS, for the Secrets Manager service:SecretList is a success. Or, in ~/.aws/config, next to the ECS lines:
Create and read
create-secret (tagged
aireserve:managed=portal); its detail panel carries this exact
get-secret-value line with the endpoint export above it, ready to paste.
Names are up to 512 characters of letters, numbers and / _ + = . @ -; a
path such as prod/api/database-url reads well in a task definition.
Inject into a task
Reference the secret by ARN in a container’ssecrets array; ECS resolves
it when the task starts and sets the environment variable:
:key:: to the ARN
(…:secret:prod/api/credentials-AbCdEf:password::). The task execution
role your account ships with (AireserveEcsTaskExecution) may read secrets,
so nothing else is needed. The portal’s secret detail panel copies this entry
with the ARN filled in; the Variables dialog of a deployed service takes
the same NAME=<ARN> lines.
Versions and rollback
Everyput-secret-value (the portal’s Update value) stores a new
version and moves the AWSCURRENT label onto it; the version that was
current becomes AWSPREVIOUS. Tasks that start from then on, and every
get-secret-value, read AWSCURRENT; tasks already running keep what they
started with until they are replaced (a Redeploy does that).
AWSCURRENT to an older version — the portal’s Make
current button on the Versions list:
Delete and restore
Deletion is scheduled, never immediate: a 7–30 day recovery window (the portal offers 7, 14 or 30; 30 is the default) during which the secret is recoverable withrestore-secret. Tasks that reference a scheduled
secret fail to start right away, and no version can be read — that is the
signal to restore.
From an agent
The MCP containers domain haslist_secrets, get_secret (metadata and versions only),
promote_secret_version, delete_secret and
restore_secret. A value an agent stores is one the user handed it; no value
ever comes back over that connection — the agent points the user at the
get-secret-value line instead.
Secrets Manager’s own charges (per secret per month, per 10,000 API calls) are AWS resources in your account and are
metered to your wallet like the rest of it. Rotation with a Lambda function is not available in the container account
today; rotate with
put-secret-value.