- 필수 기능
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- 디지털 경험
- 소프트웨어 제공
- 보안
- 로그 관리
- 관리
- 인프라스트럭처
- ci
- containers
- csm
- ndm
- otel_guides
- overview
- slos
- synthetics
- tests
- 워크플로
Identify when a Lambda function can be invoked by anyone, either directly or through a Lambda function URL.
Giving anonymous users the ability to invoke Amazon Lambda functions can lead to data loss, data exposure, and unexpected AWS billing charges.
Follow the Using resource-based policies for AWS lambda docs to update your AWS lambda function permissions.
remove-permission
with your function name and statement ID.remove-permission.sh
aws lambda remove-permission
--function-name your-function-name
--statement-id ab-12ab34c5-6a78-9b0c-123d-a123b456c789
add-permission
with your function name, statement ID, principal for the trusted account, and action.add-permission.sh
aws lambda add-permission
--function-name your-function-name
--statement-id ab-12ab34c5-6a78-9b0c-123d-a123b456c789
--principal 0123456780123
--action lambda:InvokeFunction