내용으로 건너뛰기

Why cloudfront authorize GET method even we enable AWS_IAM for lambda URL

0

Hello,

I want to ask why cloudfront authorize GET method even we enable AWS_IAM for lambda URL? as I see by default I can use that method without any configuration.

1개 답변
1
수락된 답변

Hello,

CloudFront authorizes GET requests by default for performance reasons., It's designed to handle HTTP requests efficiently, and GET is one of the most common methods used to retrieve data.

AWS_IAM is for security. It verifies if a request is authorized before sending it to your Lambda function.

Both work together: CloudFront handles the request, and AWS_IAM checks if it's allowed.

WHY:

Because CloudFront's cache behavior is typically configured to allow public access to GET requests. To enforce AWS_IAM authorization, you need to ensure that the CloudFront behavior is set up to require signed URLs or restrict access via an origin request policy that includes proper authorization headers. Without these additional configurations, CloudFront will continue to authorize GET requests as it does by default.

전문가
답변함 일 년 전
전문가
검토됨 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠