Amazon Web Services

[Tip] AWS IAM에서 사용기간(date) 설정하는 Policy 설정.

혀뇽뇽이·2019년 7월 17일·조회 2,274

관련 링크: 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"}
        }
    }
}

댓글 0

로그인 후 댓글을 남길 수 있습니다.

아직 댓글이 없습니다.