Store ECR Container Registry credentials
Stores AWS Elastic Container Registry credentials at organization level. The credentials will be encrypted and stored securely.
Path Parameters
CybeDefend organization ID
"550e8400-e29b-41d4-a716-446655440000"
Body
ECR credentials to store
Display name for the credential
"ECR Prod"
AWS Region
"us-east-1"
Existing credential id to update (rotation/type switch)
Deprecated: credentials are org-level. Ignored.
"097bbbf4-d1eb-4512-9950-684445279808"
Authentication mode
static_keys, iam_role AWS Account ID (12 digits) — required for static_keys mode
"123456789012"
AWS Access Key ID — required for static_keys mode
"AKIAIOSFODNN7EXAMPLE"
AWS Secret Access Key — required for static_keys mode
"wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
IAM role ARN to assume — required for iam_role mode. e.g. arn:aws:iam::123456789012:role/cybedefend-ecr
"arn:aws:iam::123456789012:role/cybedefend-ecr"
External ID enforced in the role trust policy (iam_role mode). Use the value returned by the prepare-iam-role endpoint.
Description for this credential
"Production ECR registry"
Response
Credentials stored successfully
Credential ID
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
AWS Account ID (12 digits)
"123456789012"
AWS Region
"us-east-1"
Creation date
"2025-01-01T00:00:00Z"
AWS Access Key ID (static_keys mode only)
"AKIAIOSFODNN7EXAMPLE"
Authentication mode
static_keys, iam_role IAM role ARN (iam_role mode only)
"arn:aws:iam::123456789012:role/cybedefend-ecr"
Description
"Production ECR registry"