Postman에서 AWS S3에 접근하는 방법

2025. 2. 2. 16:22·☁️Cloud/AWS
728x90
SMALL

Postman을 통해 AWS S3에 요청하려면, AWS Signature 인증을 적용해야 함


✅ (1) Postman 환경 변수 설정

  • AWS 인증을 위해 Postman의 환경 변수(Variables)를 설정
    📌 Postman 환경 변수 추가 (Variables 탭에서 설정)
변수명 설명 예시 값
aws_access_key AWS 액세스 키 (IAM 사용자 생성) AKIAXXXXXX
aws_secret_key AWS 시크릿 키 (IAM 사용자 생성) abcd1234XXXX
aws_region AWS 리전 us-east-1
bucket_name S3 버킷 이름 my-test-bucket

✅ (2) S3 버킷 목록 조회 (GET 요청)

📌 Postman 요청 설정

  • Method: GET
  • URL:
    https://s3.amazonaws.com/
  • Headers:
    Authorization: AWS_ACCESS_KEY_ID:AWS_SECRET_ACCESS_KEY 
    x-amz-date: <ISO 8601 format>

✔ 성공 응답 (XML)

<ListAllMyBucketsResult>
	<Buckets>
		<Bucket>
			<Name>my-test-bucket</Name>
			<CreationDate>2024-02-02T00:00:00.000Z</CreationDate>
		</Bucket>
	</Buckets> 
</ListAllMyBucketsResult>
 
 
 

🚀 S3 버킷 목록이 응답으로 오면, Postman에서 AWS S3에 정상적으로 접근 가능하다는 의미


✅ (3) S3 파일 업로드 (PUT 요청)

📌 Postman 요청 설정

  • Method: PUT
  • URL:
    https://s3.amazonaws.com/{{bucket_name}}/testfile.txt
  • Headers:
    Content-Type: text/plain 
    Authorization: AWS_ACCESS_KEY_ID:AWS_SECRET_ACCESS_KEY 
    x-amz-date: <ISO 8601 format>
  • Body: Raw (text/plain)
    This is a test file for S3.

 

✔ 성공 응답 (HTTP 200 OK)

HTTP/1.1 200 OK

🚀 파일이 업로드되면 S3가 정상적으로 작동


✅ (4) S3 파일 다운로드 (GET 요청)

📌 Postman 요청 설정

  • Method: GET
  • URL:
    https://s3.amazonaws.com/{{bucket_name}}/testfile.txt

✔ 성공 응답 (파일 데이터 반환)

This is a test file for S3.
 

 


✅ (5) S3 파일 삭제 (DELETE 요청)

📌 Postman 요청 설정

  • Method: DELETE
  • URL:
    https://s3.amazonaws.com/{{bucket_name}}/testfile.txt

✔ 성공 응답 (HTTP 204 No Content)

HTTP/1.1 204 No Content
 

🚀 파일이 삭제되면, Postman에서 AWS S3가 정상적으로 작동하는 것을 확인 가능


🎯 결론

✅ Postman에서 AWS S3에 접속 가능 여부를 테스트할 수 있음.
✅ AWS Signature 인증을 적용한 REST API 요청을 수행해야 함.
✅ S3 버킷 목록 조회, 파일 업로드/다운로드/삭제 등의 기능 테스트 가능.
✅ Postman 환경 변수를 활용하면 쉽게 AWS API 테스트 가능.

LIST

'☁️Cloud > AWS' 카테고리의 다른 글

AWS Distributed Load Testing (DLT) on AWS Fargate 상세 설정 방법  (1) 2025.02.15
AWS Cloudshell 내 eksctl 설치 스크립트  (0) 2025.02.14
SSM Parameter Store  (0) 2024.03.25
AMI 다른 계정과 공유  (0) 2024.03.25
AWS KMS / KMS Multi-Region Keys  (0) 2024.03.25
'☁️Cloud/AWS' 카테고리의 다른 글
  • AWS Distributed Load Testing (DLT) on AWS Fargate 상세 설정 방법
  • AWS Cloudshell 내 eksctl 설치 스크립트
  • SSM Parameter Store
  • AMI 다른 계정과 공유
terranbin
terranbin
Studying Computer Science
  • terranbin
    Engineer
    terranbin
  • 전체
    오늘
    어제
    • 분류 전체보기 (129)
      • ☁️Cloud (42)
        • AWS (38)
        • MS Azure (4)
      • 🐳 Infra (1)
        • System (12)
        • DRBD (3)
      • 🔌Network (8)
      • 🔹Storage (8)
      • 🔹Kubernetes (15)
      • 🔹 DevOps (8)
      • 🔹Study (4)
      • 🔹Install (6)
      • 🔹ETC (2)
      • 🔹PostMan (6)
      • 🔹Openstack (3)
      • 🔹RcloneView (6)
      • 🔹Test (0)
      • 🔹Debug (2)
      • 🔹DBMS (2)
  • 블로그 메뉴

    • 홈
  • 링크

    • sungbin
    • Github
  • 공지사항

  • 인기 글

  • 태그

    ceph
    S3
    OpenStack
    설치
    aws dlt
    rocky8
    EBS
    postman
    kubernetes
    distributed load testing
    terraform
    Google Drive
    rcloneview
    SAA
    network
    rocky9
    EC2
    AWS
    centos7
    kubectl
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
terranbin
Postman에서 AWS S3에 접근하는 방법
상단으로

티스토리툴바