1 Answer
- Newest
- Most votes
- Most comments
4
There is no API to clear the AWS batch job history.
The job state for SUCCEEDED
and FAILED
jobs is persisted in AWS Batch for at least 7 days (see here and here).
If this account is a member of an organization you can create and associate SCP (Service Control Policy) to this account that will prevent any principal from describing that job (and remove the SCP after 7 days has passed).
Example:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Action": "batch:DescribeJobs",
"Resource": "arn:aws:batch:REGION:ACCOUNT_ID:job/JOB_ID"
}
]
}
Relevant content
- asked 9 months ago
- asked 6 months ago
- asked 8 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago