- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
Update Amazon Simple Queue Service (SQS) queue permissions.
Publicly-available Amazon SQS queues give unauthorized users access to potentially intercept, delete, or send queue messages, which can lead to data leaks.
Follow the Managing access to resources docs to learn how to implement a permissions policy in the AWS console.
Run the list-queues
command to get a list of queue URLs.
aws sqs list-queues --region insert-your-region-here
Run the get-queue-attributes
command with a queue URL returned in step 1.
aws sqs get-queue-attributes \
--queue-url https://queue.amazonaws.com/123456789012/YourQueue \
--attribute-names Policy
Run the remove-permission
command to remove any unwanted permissions from your queue policy.
aws sqs remove-permission \
--region insert-your-region-here \
--queue-url https://queue.amazonaws.com/YourAccountID/YourQueue \
--label insert-label-name \
--aws-account-ids insert-aws-account-ids-here \
--actions insert-action-to-remove
Run the add-permission
command to add a new permission to your queue policy.
aws sqs add-permission \
--queue-url https://queue.amazonaws.com/YourAccountID/YourQueue \
--label insert-label-name \
--aws-account-ids insert-aws-account-ids-here \
--actions insert-action-to-add
Complete steps 2 through 4 for any remaining queue URLs returned from step 1 for each region you have SQS enabled.