관련 링크: https://docs.aws.amazon.com/ko_kr/IAM/latest/UserGuide/reference_policies_examples_aws-dates.html
Policy에서 다음과 같이 Condition을 주어서 사용기간을 제한할 수 있다.
다음의 예제를 참고 바랍니다.
예제> 2017년 7월 1일과 2017년 12월 31일(UTC) 사이에 발생하는 작업으로 제한됩니다.
{
"Version": "2012-10-17",
"Statement": {
"Effect": "Allow",
"Action": "service-prefix
:action-name
",
"Resource": "*",
"Condition": {
"DateGreaterThan": {"aws:CurrentTime": "2017-07-01T00:00:00Z"},
"DateLessThan": {"aws:CurrentTime": "2017-12-31T23:59:59Z"}
}
}
}