1579
Amazon Simple Storage Service ユーザーガイド API バージョン 2006-03-01

Amazon Simple Storage Service - ユーザーガイド

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Amazon Simple Storage Service - API 2006-03-01
Amazon Simple Storage Service: Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.
Amazon Amazon Amazon Amazon Amazon Amazon
Amazon Simple Storage Service
Table of Contents Amazon S3 ................................................................................................................................ 1
Amazon S3 ..................................................................................................................... 1 ............................................................................................................... 1 .................................................................................................................. 1 ..................................................................................................................... 2 ........................................................................................................................ 2 .................................................................................... 3 ............................................................................................................... 3 ..................................................................................................................... 3
Amazon S3 .................................................................................................................. 4 ............................................................................................................................ 4 ..................................................................................................................... 5 .................................................................................................................................. 5 S3 ............................................................................................................. 5 ID .................................................................................................................... 5 ............................................................................................................... 5 S3 .......................................................................................................... 6 (ACL) ....................................................................................... 6 ........................................................................................................................ 6
Amazon S3 ................................................................................................ 7 ................................................................................................ 8
................................................................................................................... 9 Amazon S3 ............................................................................................................ 9
AWS Management Console ................................................................................................. 9 AWS Command Line Interface ............................................................................................ 10 AWS SDK ........................................................................................................................ 10 Amazon S3 REST API ...................................................................................................... 10
Amazon S3 ................................................................................................................ 10 PCI DSS ........................................................................................................ 11
.................................................................................................................................... 12 ............................................................................................................................ 12
AWS ..................................................................................................... 13 IAM .................................................................................................... 13 IAM ........................................................................................ 14
1: ................................................................................................. 15 2: ............................................................................... 17 3: ............................................................................... 17
S3 ......................................................................................................... 17 4: ........................................................................................ 18 5: ............................................................................ 19
.......................................................................................................... 19 .......................................................................................................... 19 ................................................................................................................. 20
............................................................................................................................ 20 ........................................................................................ 20 ............................................................ 21 ........................................................................................... 21 .................................................................................................... 22 Amazon S3 ............................................................................................... 22
............................................................................................................... 24 ....................................................................................................... 24 .......................................................................................................... 26 ................................................................................................................. 27 .................................................................................................................... 27
API 2006-03-01 iii
Tutorials .......................................................................................................................................... 30 S3 Object Lambda ................................................................................. 30
Prerequisites .................................................................................................................... 31 1: S3 ..................................................................................... 33 2: S3 ............................................................... 33 3: S3 .............................................................................. 34 4: Lambda ................................................................................... 35 5: Lambda IAM ........................................... 39 6: Object Lambda ............................................................. 39 7: ............................................................................. 40 8: ......................................................................................... 42 .................................................................................................................... 44
PII .............................................................................................................. 45 : IAM ...................................................................... 46 1: S3 ..................................................................................... 47 2: S3 ............................................................... 48 3: S3 .............................................................................. 48 4: Lambda .................................................... 49 5: S3 Object Lambda ......................................................... 50 6: S3 Object Lambda ..... 51 7: ............................................................................................... 52 .................................................................................................................... 54
............................................................................................. 55 : Route 53 ............................................... 56 1: S3 .................................................................................. 57 2: S3 ............................................................ 57 3: CloudFront .................................. 58 4: CloudFront ................................................. 58 5: CloudFront ............................ 60 6: CloudFront ................................................................................................................................ 61 7: CloudFront S3 .......................................................................................................... 64 () 8: CloudFront .............................................................................................................. 65 9: ...................................................................................... 65 .................................................................................................................... 68
................................................................................................ 69 .......................................................................................................................... 70 1: S3 ............................................... 70 2: MediaConvert IAM ........................................................... 72 3: Lambda IAM ................................................................ 72 4: Lambda .............................................. 74 5: S3 Amazon S3 ................................. 85 6: S3 IAM ........................................................... 88 7: S3 ......................................................... 90 8: S3 ....................................... 94 9: ...................................................................................... 94 .................................................................................................................... 96
............................................................................................................ 96 1: ......................................................................................... 97 2: ........................................................ 97 3: ........................................................ 98 4: ................................ 99 5: ............................................................... 100 6: ............................................................................... 101 7: ......................................................... 102
API 2006-03-01 iv
8: ........................................................................................ 102 ................................................................... 102
.................................................................................................................. 104 1: Route 53 .......................................................... 104 2: 2 ................................................................................. 104 3: .................................................................. 105 4: ............................................. 106 5: ........................................................................................ 106 6: .............................. 107 7: .................................................................. 108 8: ............................................................ 109 9: ..................................................................... 110 10: .............................................................. 111 11: ....................................................................... 112 12: ............................................................................. 115 Amazon CloudFront ................................................................ 116 ................................................................................... 119
............................................................................................................................... 121 ....................................................................................................................... 121
....................................................................................................................... 125 ............................................................................................................... 126
...................................................................................... 133 ......................................................................................................... 134 IPv6 S3 .................................................................................. 134 S3 ............................................................ 134 S3:// ............................................................................... 135
................................................................................................................. 135 ....................................................................................................................... 137 ........................................................................................... 140
............................................................................. 140 .................................................................... 141 Amazon S3 .................................................. 141 ................................................................................................ 141 ...................................................................................... 144
Transfer Acceleration ..................................................................................................... 144 Transfer acceleration ? .................................................................. 145 Transfer Acceleration ....................................................................... 145 ........................................................................................................................ 146 Transfer Acceleration ................................................................................... 147 ............................................................................................................... 152
........................................................................................................... 152 ...................................................................................... 153 ...................................................................................................... 153 requestPayment .............................................................................................. 154 .................................................. 155
............................................................................................................................. 156 ......................................................................................................................... 158
.......................................................................................................................... 158 .................................................................................................................. 159
........................................................................................................... 159 ............................................................................. 160
API 2006-03-01 v
.................................................................................................................... 162 .................................................................... 163 ............................................................................. 165 ...................................................................................... 166
..................................................................................................... 168 .............................................................................................. 176
.............................................................................................................. 212 ......................................................................................... 213
..................................................................................................... 220 ........................................................................................ 226
................................................................................................. 255 ...................................................................................................... 256 ................................................................................................... 257 ............................................................................................................... 266 ................................................................................................ 268 ...................................................................................... 268
URL .............................................................................................................. 269 URL ................................................................................................ 269 URL ................................................................................. 270 ......................................................................................................... 271 ............................................................................................. 274 ......................................................................................................... 279
................................................................................................................. 281 Object Lambda ............................................................................. 283 Amazon S3 Object Lambda ............................................................ 287 AWS CloudFormation ........................................................ 288 IAM ........................................................................................................ 291 Lambda ......................................................................................................... 294 AWS ........................................................................................... 307 S3 Object Lambda ...................................................... 308 ......................................................................................... 309
API 2006-03-01 vi
........................................................................................................................ 313 .............................................................. 313 ......................................................................................... 314
........................................................................................................... 317 Amazon S3 ........................................................................... 317 ................................................................................................... 317 VPC ......................................................................... 319 ................................................................................................ 320
........................................................................................................... 321 ................................................................................................... 322 ................................................................................................... 323 ........................................................ 325 ................................................................................................... 327
............................................................................................................................. 329 .......................................................................................... 331
.................................................................................. 338 .................................................................... 339 Amazon S3 Transfer Acceleration ................................. 340 .......................................................................... 340 ................................................................................................... 342 ................................................................................................ 343 ................................................................................... 344
.................................................................................. 344 ........................................................................................................... 345
............................................................................................................................. 347 .................................................................................................................................. 349
............................................................................................................................. 350 ....................................................................................................................... 350
......................................................................................................... 351 ......................................................................................... 395
................................................................................................. 399 ............. 399 AWS ........................................................... 400
AWS PrivateLink for Amazon S3 ............................................................................................... 400 VPC ........................................................................................... 400 AWS PrivateLink for Amazon S3 .................................................................... 401 Amazon S3 ................................................... 401 S3 S3 ... 402 DNS ....................................................................................... 405 VPC .................................................................................. 406
Identity and access management ............................................................................................... 408 .............................................................................................................................. 409 ...................................................................................... 415 ............................................................................................................... 419 ................................................................................ 427 AWS ................................................................................................. 572 ACL .................................................................................................. 574
API 2006-03-01 vii
CORS ................................................................................................................. 594 ......................................................................................... 605 ................................................................................................... 615 ...................................................................................................... 620
........................................................................................................ 624 ............................................................................................. 625 ACL ..................................................................................... 626 ACL ............................................................................................... 627 ................................................................................................ 629 ACL ............................................................... 629 ....................................................................... 629 ............................................................................................. 629 ACL ............................................................................................ 630 ............................................................................................................... 638 ............................................................................................. 641 ...................................................................................... 644 ACL ............................................................... 645 ................................................................................................... 646
........................................................................................................... 649 .............................................................................................................. 651 ................................................................................................................................ 652
...................................................................................................... 654 ........................................................................................... 655 ................................................................................................................. 656 ........................................................................................... 657
Amazon S3 ...................................................... 657 Amazon S3 ...................................................... 659
............................................................................................................................ 662 S3 ......................................................................................................... 662
......................... 663 S3 S3 ............................................................... 663 S3 .......................................................................................................... 664 ................................................................................ 667 MFA ............................................................................................................. 672 ....................................................................... 673 ....................................................................... 692
Amazon S3 AWS Backup ....................................................................................... 695 ........................................................................................ 696
...................................................................................... 697 ................................................................................ 698 ................................................................................ 703
........................................................................................................ 706 S3 .................................................................................................... 707 .......................................................................... 711 ................................................................................................ 712
..................................................................................................... 715 ................................................................................... 715 .... 716 ...................................................................................... 716 ................................................................................................ 717 Amazon S3 on Outposts .................................................................................................. 718 ............................................................................................. 719 ............................................................................. 719
Amazon S3 Intelligent-Tiering .................................................................................................... 720 S3 Intelligent-Tiering ......................................................................................... 720 S3 Intelligent-Tiering ............................................................................................ 722 S3 Intelligent-Tiering ............................................................................................ 725
API 2006-03-01 viii
.............................................................................................................. 729 ................................................................................ 729 ................................................................................................ 729 ......................................................................................................... 730 ................................................................................................... 735 ................................................................................................ 735 ................................................................................................ 746 ................................................................................... 748 ................................................................................................ 749 S3 .............................................................................................. 757
................................................................................................................. 768 Amazon S3 ................................................................................. 768 ......................................................................................................... 769 Amazon S3 ........................................................................................ 771 ................................................................................ 775 ......................................................................................................... 776 Athena .................................................................................. 778 ID NULL ..................................................... 781
.............................................................................................. 783 ...................................................................................... 783 .............................................................. 784 .................................................................... 784 S3 ........................................................................ 785 ................................................................................................... 785 ? ........................................................................................ 786 ................................................................................................... 788 ............................................................................. 829 ..................................................................................................................... 837 ................................................................................... 853 ................................................................................................... 855 ............................................................................................................... 857
........................................................................................................... 858 API ....................................................... 860 ..................................................................................................................... 861 ...................................................................................................... 862 ................................................................................................... 864
.............................................................................................................. 868 .............................................................................................................................. 869 ............................................................................................. 869
Amazon S3 Select .................................................................................................. 885 ..................................................................................................................... 885 ............................................................................................................ 886 ........................................................................................................................... 886 S3 Select ................................................................................................................ 887 SQL ........................................................................................................... 889
.................................................................................................................... 913 ............................................................................................................ 913 ......................................................................................................... 914 .................................................................................................................. 921 ................................................................................... 928 .................................................................................................................. 953 ............................................................................. 956 ..................................................................................................................... 966 S3 ........................................................................................... 976
Amazon S3 .............................................................................................................. 993 ................................................................................................................. 993
.................................................................................................................. 993
..................................................................................................................... 994 ................................................................................................................. 994 CloudTrail ........................................................................................................ 996
CloudTrail Amazon S3 CloudWatch Logs ................ 996 Amazon S3 SOAP API CloudTrail ......................................... 997 CloudTrail ...................................................................................................... 997 .......................................................................................................... 1001 CloudTrail ....................................................................................................... 1005 S3 ..................................................................................................... 1007
................................................................................................... 1013 ? .............................................................. 1013 ............................................................................... 1014 ....................................................................................................... 1014 ........................................................................... 1015 ............................. 1015 .................................................................................. 1015 ................................................................................................................... 1024 ....................................................................................................... 1034 S3 ..................................................................................................... 1034
CloudWatch ........................................................................... 1038 ........................................................................................... 1040 CloudWatch ............................................................................... 1047 CloudWatch ........................................................................................ 1048
Amazon S3 ....................................................................................................... 1054 ............................................................................................................................. 1054 .............................................................................................. 1055 SQSSNS Lambda ....................................................................... 1060 EventBridge ........................................................................................................ 1079
................................................................................................................. 1086 ............................................................................................................ 1086
.................................................................. 1086 .................................................................................................... 1087 ......................................................... 1088 ........................................................................................... 1089
S3 Storage Lens ................................................................................................................... 1091 S3 Storage Lens .............................................................................................. 1092 Organizations ..................................................................................................... 1098 S3 Storage Lens ..................................................................................... 1100 ........................................................................................ 1103 Amazon S3 Storage Lens .......................................... 1118 ....................................................................................................... 1122 S3 Storage Lens ................................................................................................. 1128
X-Ray ...................................................................................... 1157 X-Ray Amazon S3 .................................................................. 1157 .................................................................................................... 1158
..................................................................................................... 1159 ................................................................................................... 1159
..................................................................................... 1160 DNS CNAME ...................................................................................................... 1161 Route 53 ............................................................................. 1161 REST API ................................... 1161
....................................................................................... 1162 ............................................................................................. 1165
............................................................................... 1166 ............................................................................... 1166
API 2006-03-01 x
.................................................................................. 1169 ............................................................................. 1170
................................................................................................ 1173 ............................................................................................................... 1174
.................................................................................................... 1183 ........................................................................................... 1185 IPv6 .................................................................................... 1185 AWS SDK ........................................................................... 1192 REST API ............................................................................ 1219
AWS CLI ................................................................................................................... 1228 AWS SDKs ................................................................................................................ 1229
AWS SDK .......................................................................................................... 1230 ........................................................................ 1231 AWS SDK for Java .............................................................................................. 1237 AWS SDK for .NET ............................................................................................. 1238 AWS SDK for PHP PHP ............................................................. 1240 AWS SDK for Ruby 3 .......................................................................... 1241 AWS SDK for Python (Boto) ................................................................................. 1242 iOS Android AWS Mobile SDK ....................................................... 1242 AWS Amplify JavaScript ................................................................. 1242 AWS SDK for JavaScript ...................................................................................... 1243
REST API .................................................................................................................. 1243 ................................................................................................. 1243
........................................................................................................................... 1248 REST ................................................................................................. 1248 SOAP ................................................................................................ 1249 Amazon S3 ............................................................. 1250
........................................................................................................................ 1251 A: SOAP API .............................................................................................. 1251 B: (AWS 2) ............................................................ 1254
Amazon S3 ............................................................................................. 1284 ................................................................................................... 1285
.............................................................................................. 1285 ....................................................................................................... 1285 ..................................................................................... 1285 ................................................................................................. 1286 Amazon S3 Amazon EC2 ........................................... 1286 Transfer Acceleration .......................................... 1286 AWS SDK ......................................................................................... 1286
................................................................................................... 1287 ............................................................ 1287 .......................... 1287 ............................................................................... 1288 ....................................................................... 1289
S3 on Outposts ...................................................................................................................... 1290 S3 on Outposts ....................................................................................................... 1290
................................................................................................................... 1290 ...................................................................................................................... 1291 ................................................................................................................ 1291
API 2006-03-01 xi
Amazon Simple Storage Service
............................................................................................................................. 1291 .............................................................................................. 1292 .......................................................................................................... 1292 S3 on Outposts ................................................................................... 1292
S3 on Outposts ........................................................................................................... 1292 ................................................................................................................ 1292 ............................................................................... 1293 ................................................................................................................ 1293
.............................................................................................................. 1293 S3 on Outposts ................................................................................................. 1294
AWS Management Console ............................................................................................ 1294 AWS Command Line Interface ........................................................................................ 1294 AWS SDK .................................................................................................................... 1294
S3 on Outposts ....................................................................................................... 1294 ........................................................................................................................ 1295 Outpost ...................................................................................................................... 1295
AWS Outpost ............................................................................... 1295 Amazon S3 Outpost .......................................................... 1295
S3 on Outposts ........................................................................................................... 1296 ............................................................................................................................. 1296 API .......................................................................... 1297 Amazon S3 ......................................................................... 1297 .......................................................................................................... 1297
S3 on Outposts .................................................................................................... 1298 IAM ................................................................................................................... 1298 S3 ..................................................................................................... 1301 AWS CLI SDK for Java .............................................................................. 1303
S3 on Outposts ........................................................................................ 1308 .................................................................................. 1308 S3 on Outposts ............................................ 1308 Elastic Network Interface ....................................... 1309
S3 on Outposts .............................................................................................. 1309 ...................................................................................................................... 1309 .......................................................................................................... 1309 ............................................................................................................. 1310 S3 on Outposts API ............................................................................ 1310 S3 on Outposts ................................................................. 1311 ............................................................................................................. 1311 ................................................................................................................... 1314 ..................................................................................... 1315 ................................................................................................. 1319 ....................................................................................................... 1323 ....................................................................................................... 1323 ............................................................................................................. 1324 ................................................................................................. 1325 ................................................................................................... 1331
S3 on Outposts ........................................................................................ 1335 .................................................................................................... 1336 ....................................................................................................... 1337 ................................................................................................. 1339 ....................................................................................................... 1341 HeadBucket ........................................................................................................ 1343 ..................................................................................... 1345
........................................................................................................................ 1350 ................................................................................................................... 1350
API 2006-03-01 xii
Amazon Simple Storage Service
Amazon CloudWatch Events ........................................................................................... 1352 CloudTrail ............................................................................................................. 1353 S3 on Outposts ................................................................................................... 1353 .......................................................................................................... 1356
S3 on Outposts ....................................................................................................... 1356 S3 on Outposts API ....................................................................................................... 1357 S3 ................................................................................. 1358
...................................................................................................................................... 1360 ........................................................................................................................... 1361
.............................................................................................................................. 1477 URL ............................................................................................... 1478 ........................................................................ 1485 Lambda .......................... 1510 .......................................... 1511 .......................... 1513 .................................................................. 1521
............................................................................................................... 1523 Amazon Transcribe .............................................................................. 1523 ........................................................................ 1524 Amazon Textract .......................................... 1525 PPE ............................................................................................... 1526 ................................................... 1527 .................................................................................................... 1527 ..................................................................................... 1528 ........................................................................................ 1530 EXIF ................................................................................ 1531
API 2006-03-01 xiii
................................................................................................................. 1533 Amazon S3 .......................................................................... 1533
HTTP 503 ............................................................................................................................. 1533 CORS ...................................... 1534
Amazon S3 ID AWS Support .................................................................... 1534 HTTP ID ............................................................................ 1534 ID .............................................. 1535 AWS SDK ID ...................................................................... 1535 AWS CLI ID ........................................................................ 1537
........................................................................................................................ 1537 .......................................................................................................................... 1538
API 2006-03-01 xiv
Amazon S3 Amazon Simple Storage Service (Amazon S3) Amazon S3 IoT Amazon S3
• Amazon S3 (p. 1) • Amazon S3 (p. 4) • Amazon S3 (p. 7) • (p. 9) • Amazon S3 (p. 9) • Amazon S3 (p. 10) • PCI DSS (p. 11)
Amazon S3 Amazon S3 S3 Standard S3 – IA S3 1 – IA S3 Glacier Instant RetrievalS3 Glacier Flexible RetrievalS3 Glacier Deep Archive
S3 Intelligent-Tiering 4 4 2 2
Amazon S3 (p. 715)S3 Glacier Flexible Retrieval Amazon S3 Glacier
Amazon S3
• S3 – S3
API 2006-03-01 1
• S3 – Amazon S3 write-once-read-many (WORM)
• S3 – AWS 1
• S3 – 1 S3 API Amazon S3 AWS Lambda
Amazon S3 S3 S3 Amazon S3
• S3 – S3
• AWS Identity and Access Management (IAM) – AWS IAM Amazon S3 Amazon S3 IAM AWS S3
• – IAM S3
• Amazon S3 — Amazon S3
• (ACL) – ACL S3 () IAM ACL IAM IAM ACL (p. 415)
• S3 - ACL Amazon S3
• Access Analyzer for S3 – S3 S3

• S3 Object Lambda – Amazon S3 GET
• – S3 Amazon Simple Notification Service (Amazon SNS)Amazon Simple Queue Service (Amazon SQS) AWS Lambda
API 2006-03-01 2
Amazon S3 Amazon S3

• Amazon S3 Amazon CloudWatch – TS3
• AWS CloudTrail – Amazon S3 AWS CloudTrail S3 API

• AWSTrusted Advisor – AWS AWS
Amazon S3
• Amazon S3 Storage Lens – S3 Storage Lens 29 AWS
• –
• S3 – Amazon S3 Amazon S3 (p. 769)
Amazon S3 AWS Amazon S3 PUT DELETE PUT DELETE Amazon S3 SelectAmazon S3 (ACL)Amazon S3 (HEAD ) Amazon S3 (p. 7)
API 2006-03-01 3
Amazon S3 Amazon S3
Amazon S3 AWS Amazon S3 ()
S3 S3 Versioning
AWS Identity and Access Management(IAM) (ACL) S3
• (p. 4) • (p. 5) • (p. 5) • S3 (p. 5) • ID (p. 5) • (p. 5) • S3 (p. 6) • (ACL) (p. 6) • (p. 6)
Amazon S3 100 Service Quotas
photos/puppy.jpg () DOC-EXAMPLE-BUCKET URL https://DOC-EXAMPLE-BUCKET.s3.us-west-2.amazonaws.com/photos/puppy.jpg (p. 133)
AWS S3 (p. 662)

API 2006-03-01 4

Amazon S3 Content-Type HTTP
() (p. 5) ID (p. 5) S3 Amazon S3 (p. 158)
( ) 1 ID S3 Amazon S3 + +
Amazon S3 https://DOC- EXAMPLE-BUCKET.s3.us-west-2.amazonaws.com/photos/puppy.jpg URL DOC- EXAMPLE-BUCKETphotos/puppy.jpg
(p. 159)
S3 S3 S3
S3 (p. 662)
ID S3 Amazon S3 ID ID null () (CopyObject PutObject) ID
S3 (p. 662)
AWS Identity and Access Management (IAM) 20 KB
API 2006-03-01 5
AWS JSON S3 ( IP ) S3 (p. 508)
Amazon (ARN) .html
S3 Amazon S3 GetObject PutObject S3 Amazon S3
(p. 605)Virtual Private Cloud (VPC) Amazon S3
Amazon S3 (p. 312)
(ACL) ACL ACL ACL AWS ACL IAM ACL (ACL) (p. 574)
AWS S3 ACL ACL IAM S3 (VPC) AWS Organizations (SCP)
Amazon S3 ACL ACL ACL ACL AWS ACL (p. 624)
Amazon S3 AWS
API 2006-03-01 6
AWS ()
Note
AWS Amazon S3 AWS AWS AWS
Amazon S3 AWS
Amazon S3 Amazon S3 AWS Amazon S3 PUT DELETE PUT DELETE Amazon S3 SelectAmazon S3 (ACL)Amazon S3 (HEAD )
PUT GET
Amazon S3 AWS PUT PUT (GET LIST) PUT
• Amazon S3
• Amazon S3
• Amazon S3

• Amazon S3 2 PUT


• (PUT DELETE ) 15
Amazon S3
R1 ( 1) R2 ( 2) W1 ( 1) W2 ( 2) S3 R1 R2 color = ruby
R1 W2 R1 color = ruby color = garnet R2 W1 W2 R2 color = garnet
W1 W2 Amazon S3 last- writer-wins Amazon S3 W2 Amazon EC2
API 2006-03-01 8
W1
Amazon S3 AWS
• Amazon Elastic Compute Cloud (Amazon EC2) – AWS Amazon EC2 Amazon EC2 ()
• Amazon EMR – Amazon EMR Amazon EC2 Amazon S3 Hadoop
• AWSSnow – AWS Snow AWS
• AWS Transfer Family – (SSH) SFTPSSL FTPSFTPAmazon S3 Amazon Elastic File SystemAmazon EFS
Amazon S3 Amazon S3
AWS Management Console Amazon S3 AWS AWS AWS Management Console AWS Management Console [S3] Amazon S3
API 2006-03-01 9
AWS Command Line Interface AWS AWS (S3 )
AWS Command Line Interface (AWS CLI) AWS AWS CLI WindowsmacOSLinux AWS Command Line InterfaceAmazon S3 AWS CLI s3api s3control
AWS SDK AWS (JavaPythonRuby.NETiOSAndroid ) SDK () AWS SDK S3 AWS Amazon S3 REST AWS SDK Amazon S3 Amazon S3 REST API SDK AWS SDK AWS
Amazon S3 AWS SDK Amazon S3 (p. 1183)
Amazon S3 REST API Amazon S3 AWS Amazon S3 REST API S3 AWS REST API Amazon S3 HTTP REST API HTTP
REST API HTTP
REST API HTTP HTTP ( ) HTTP
REST API Amazon S3 (p. 1183)
Note
SOAP API HTTP HTTPS Amazon S3 SOAP REST API AWS SDK
Amazon S3 Amazon S3
API 2006-03-01 10

Amazon S3 AWS Amazon S3
AWS Amazon S3 AWS AWS Amazon S3 Amazon S3 AWS
AWS Billing and Cost Management AWS AWS Billing AWS AWS AWS Support
PCI DSS Amazon S3 Payment Card Industry (PCI) Data Security Standard (DSS) PCI DSS (AWS PCI Compliance Package ) PCI DSS 1
API 2006-03-01 11
Amazon S3 Amazon S3
Amazon S3
Amazon S3 Amazon S3 Amazon S3 Amazon S3 Amazon S3 AWS

: Amazon S3 (p. 12)
• : Amazon S3 (p. 12) • 1: S3 (p. 15) • 2: (p. 17) • 3: (p. 17) • 4: (p. 18) • 5: (p. 19) • (p. 20) • (p. 24)
: Amazon S3 AWS Amazon S3 AWS AWS
Amazon S3 Amazon S3 Amazon S3 Amazon S3 Amazon S3 AWS
Amazon S3
AWS Amazon S3 AWS Management Console AWS Management Console AWS Management Console
• AWS (p. 13)
API 2006-03-01 12
• IAM (p. 13) • IAM (p. 14)
AWS AWS
AWS

AWS https://aws.amazon.com/ [My Account] ()
IAM (AWS) 1 ID ID AWS ID AWS root E
Important
AWS IAM
()
1. [Root user ()] AWS IAM
Note
IAM Administrator
2. [Users ()][Add user ()] 3. [User name] () Administrator 4. [AWS Management Console access () ]
[Custom password] ()
API 2006-03-01 13
5. () AWS [User must create a new password at next sign-in ( )]
6. [Next: Permissions (: )] 7. [Set permissions ()] [Add user to group ()]
8. [Create group ()] 9. [Create group] () [Group name] ()
Administrators 10. [Filter policies ()] [AWS managed - job function ( -
)] 11. [AdministratorAccess] [Create group
()]
13. [Next: Tags] (: ) 14. ()
IAM IAM IAM
15. [Next: Review] (: ) [Create user] ()
AWS AWS
IAM IAM IAM AWS
IAM IAM IAM IAM [IAM users sign-in link] (IAM ) AWS URL () AWS ID
URL AWS ID IAM AWS
AWS
AWS ID () AWS
API 2006-03-01 14
https://aws_account_id_or_alias.signin.aws.amazon.com/console
your_user_name @ your_aws_account_id
1: S3 AWS AWS Management Console Amazon S3 Amazon S3 Amazon S3
Note
2. []

(p. 125)
Important
4. [Region] () AWS
Amazon S3 AWS AWS
5. Object Ownership ACL
ACL
API 2006-03-01 15

ACL
Amazon S3 bucket-owner- full-control ACL ACL (p. 645)
• [] — AWS ACL
Note
6. [Bucket settings for Block Public Access ()]
1 Amazon S3 (p. 605)
7. () S3
a. []
b. enable []
S3 S3 (p. 706)
Note
16
8. [Create bucket] ()
Amazon S3
2:

1. Amazon S3 (https://console.aws.amazon.com/s3/) 2. [Buckets ()] 3. [Objects ()] [Upload ()] 4. [Files and Folders ()] [Add files ()] 5. [Open ()] 6. [Upload]


3:
S3 Amazon S3 URL S3
Note
. . AWS Command Line Interface (AWS CLI)AWS SDK REST API
API 2006-03-01 17
S3
2. [Buckets] ()
3. S3
• [Show versions] () [Action] () [Download] () [Download as] ()


4:

1. [] 2. []
a. (favorite-pics ) b. [] c. [Save]
3. Amazon S3 4. 5. [Actions ()] [Copy ()]
[Copy ()] 6.
a. [Browse S3 (S3 )] b.
c. []
[] [] s3://bucket- name/folder-name/
7. []
API 2006-03-01 18
Amazon S3
Amazon S3 5: (p. 19)
5:

AWS
• (p. 19) • (p. 19) • (p. 20)

1. [Buckets ()] 2. 3. [Actions] () [Delete] ()

5. [] Amazon S3


1. [Buckets ()] [Empty ()] 2. [Empty
bucket] () permanently delete
Important
[Empty bucket: Status (: )]
4. [Exit ()]

1. [Buckets ()] 2. [] 3. [Delete bucket ]()
Important
4. [Delete bucket ()]
Amazon S3
Amazon S3
• (p. 20) • (p. 21) • (p. 21) • (p. 22) • Amazon S3 (p. 22)
Amazon S3 AWS AWS Amazon S3
API 2006-03-01 20
• – Amazon S3
• – Amazon S3 Amazon S3 (p. 1159)
• –
• –
S3 S3 Amazon S3
• S3 – S3
• AWS Identity and Access Management (IAM) – AWS IAM Amazon S3 Amazon S3 IAM AWS Amazon S3
• – IAM S3
• (ACL) – ACL S3 () IAM ACL IAM IAM ACL (p. 415)
• S3 - ACL Amazon S3
• Access Analyzer for S3 – S3 S3
AWS
• – Amazon S3 AWS AWS
• – Amazon S3
API 2006-03-01 21
• –
S3 Amazon S3 S3 S3 Object Lock
• (p. 993) – Amazon S3 AWS AWS
• Amazon S3 (p. 1086) – Amazon S3 Amazon S3 Storage Lens (p. 1091) S3 Storage Lens 29 (p. 1086)
Amazon S3 Amazon S3 REST REST API Amazon S3 REST API AWS SDK Amazon S3 AWS Command Line Interface (AWS CLI) Amazon S3 API (p. 1183)
Amazon S3 REST API Amazon S3 HTTP REST API HTTP REST API HTTP REST API Amazon S3 (p. 1243)

AWS CLI
AWS CLI Amazon S3 AWS CLI AWS CLI Amazon S3 (p. 1228)
AWS CLI Amazon S3 2 (s3) API (s3api s3control) S3 s3api s3control Amazon S3 API
Amazon S3 AWS CLI s3s3api s3control
AWS SDK Explorer
Amazon S3 AWS SDK AWS SDK REST API AWS AWS Mobile SDK Amplify JavaScript
API 2006-03-01 22
Amazon Simple Storage Service Amazon S3
AWS SDK Visual Studio Eclipse for Java IDE AWS Explorer SDK Explorer AWS
AWS SDK Amazon S3 (p. 1229)

API 2006-03-01 23
Amazon S3
• (p. 24) • (p. 26) • (p. 27) • (p. 27)
Amazon S3  
S3
ACL 3
ACL
ACL
• [ ()] - AWS ACL
ACL (p. 624)

S3 S3 4 AWS [Block all public access ( )] Amazon S3  
(p. 608)
S3 AWS Identity and Access Management (IAM) ID IAM ID
(p. 606)
IAM ID
1: (p. 544)

Principal Amazon S3
Effect Deny Allow s3:* Deny
Amazon S3 (p. 437)
VPC
API 2006-03-01 25
VPC (p. 506)
Amazon S3

S3 S3 (p. 662) S3 (p. 706)

(p. 729)

(p. 783)

Amazon CloudFront Amazon S3 HTTP CloudFront Amazon S3 HTTPS HTTPS HTTP
Amazon CloudFront []
API 2006-03-01 26

S3

IAM IAM IAM IAM
1 IAM (p. 535)

Amazon S3 ACL ACL ACL ACL AWS
Important
ACL 3: (p. 555)

Amazon S3 (p. 266)

IAM AWS


Amazon S3 3
• Amazon S3 (SSE-S3) • AWS Key Management Service (AWS KMS) (SSE-KMS) • (SSE-C)
(p. 351)
Amazon S3 (p. 395)

4 HTTP AWS AWS ID 2
(AWS 4) 4

API 2006-03-01 28
AWS Amazon S3
• Amazon CloudWatch • AWS CloudTrail • Amazon S3 • AWS Trusted Advisor
Amazon S3 (p. 649)
Amazon S3 AWS CloudTrail Amazon S3 AWS CloudTrail CloudTrail S3 Amazon S3 Amazon GuardDuty S3 CloudTrail S3 GuardDuty S3 S3
Amazon GuardDuty Amazon GuardDuty Amazon S3
API 2006-03-01 29
Tutorials Amazon S3
• : S3 Object Lambda (p. 30) • : S3 Object Lambda Amazon Comprehend PII
(p. 45) • : Amazon S3Amazon CloudFrontAmazon Route 53
(p. 55) • :S3 AWS Lambda AWS Elemental MediaConvert
(p. 69) • : Amazon S3 (p. 96) • Route 53 (p. 102)
: S3 Object Lambda
Amazon S3 e (PII) PII
S3 Object Lambda S3 AWS Lambda S3 Object Lambda S3 Object Lambda S3 GET Lambda S3 S3 S3 Object Lambda Lambda S3 Object Lambda
API 2006-03-01 30
Objective
S3 GET S3 S3 S3 Object Lambda
• Prerequisites (p. 31) • 1: S3 (p. 33) • 2: S3 (p. 33) • 3: S3 (p. 34) • 4: Lambda (p. 35) • 5: Lambda IAM (p. 39) • 6: Object Lambda (p. 39) • 7: (p. 40) • 8: (p. 42) • (p. 44)
Prerequisites AWS AWS Identity and Access Management (IAM) 3.8 Python
• AWS IAM () (p. 32) • Python 3.8 (p. 32)
API 2006-03-01 31
Amazon Simple Storage Service Prerequisites
AWS IAM ( ) IAM IAM IAM IAM AWS
IAM
• AWSLambda_FullAccess – Lambda • IAMFullAccess – IAM • IAMAccessAnalyzerReadOnlyAccess – IAM Access Analyzer

Note
1. Python
python --version
3.
Windows [Python 3.X PATH ] []
4. 5. Python 3.8
macOS
6. pip3 pip python 3.8 pip3
pip --version

Amazon S3 (p. 125)
5. [] AWS
(p. 121) 6. [] (
)
7.
8. []
tutorial.txt
Amazon S3 Object Lambda Tutorial: You can add your own code to process data retrieved from S3 before returning it to an application.

API 2006-03-01 33
Amazon Simple Storage Service 3: S3
2. [] 3. [] 1 (p. 33) (tutorial-bucket
) 4. [Objects ()] [Upload ()] 5. [] [] [] 6. [Open ()]
7. [Upload ()]
3: S3 S3 Object Lambda S3 1 (p. 33) S3 AWS
Object Lambda

2. [] 3. [] [] 4. [] (tutorial-access-point)

Amazon S3 (p. 317)
5. [] 1 (p. 33) (tutorial-bucket)S3
() [S3 )] [S3 )] [] []
6. [] []
Virtual Private Cloud (p. 319)
7.
(p. 320)
8.
() (p. 314)
9. []
4: Lambda S3 Object Lambda Lambda
• Lambda (p. 35) • Lambda () (p. 38) • .zip Lambda Lambda (
) (p. 38)
lambda 2. object-lambda Lambda
Python transform.py
import boto3 import requests
# This function capitalizes all text in the original object def lambda_handler(event, context): object_context = event["getObjectContext"] # Get the presigned URL to fetch the requested original object # from S3 s3_url = object_context["inputS3Url"] # Extract the route and request token from the input context request_route = object_context["outputRoute"] request_token = object_context["outputToken"] # Get the original S3 object using the presigned URL response = requests.get(s3_url) original_object = response.content.decode("utf-8")
# Transform all text in the original object to uppercase # You can replace it with your custom code based on your use case transformed_object = original_object.upper()
# Write object back to S3 Object Lambda s3 = boto3.client('s3') # The WriteGetObjectResponse API sends the transformed data # back to S3 Object Lambda and then to the user s3.write_get_object_response( Body=transformed_object, RequestRoute=request_route, RequestToken=request_token)
# Exit the Lambda function: return the status code return {'status_code': 200}
Note
API 2006-03-01 35
S3 Object Lambda WriteGetObjectResponse (p. 295)
S3 Object Lambda Lambda S3 Object Lambda Lambda S3 Object Lambda Lambda Lambda
Lambda
• inputS3Url – Lambda URL Lambda URL Amazon S3
• outputRoute – Lambda WriteGetObjectResponse S3 Object Lambda URL
• outputToken – WriteGetObjectResponse S3 Object Lambda
(p. 305) Amazon S3 Object Lambda AWS Lambda (p. 294)
3. virtualenv
4. object-lambda venv
python -m virtualenv venv
macOS
lambda_handler Lambda AWS SDK for Python (Boto3)
API 2006-03-01 36
pip3 install boto3
pip3 install requests
7.
Tip
macOS
macOS
37
lambda.zip$ # transform.py # __pycache__ | boto3/ # certifi/ # pip/ # requests/ ...
Lambda () 1. AWS Management Console AWS Lambda (https://
console.aws.amazon.com/lambda/)
2. [] 3. [] 4. [Author from scratch] 5. []
a. [] tutorial-object-lambda-function b. [] Python 3.8
6. [] [] [ Lambda ]
5 (p. 39)AmazonS3ObjectLambdaExecutionRolePolicy Lambda
7. 8. []
.zip Lambda Lambda () 1. AWS Lambda (https://console.aws.amazon.com/lambda/)
2. Lambda (tutorial-object-lambda-function) 3. Lambda [] [] [
][.zip ] 4. [] .zip 5. lambda.zip [] 6. [Save] 7. [] [] 8. [] Python 3.8
9. Lambda Lambda
[] transform.lambda_handler
10. [Save]
IAM
11. () Lambda [] [] [] [] 1 0 []
Lambda 3 S3 Object Lambda i Lambda 60
5: Lambda IAM Lambda GetObject Lambda WriteGetObjectResponse API IAM
IAM Lambda
2. 4 (p. 35) (tutorial-object-lambda-function)
3. Lambda [] []
4. [] [] IAM 5. Lambda IAM [] [] [
] 6. [] [] AmazonS3ObjectLambdaExecutionRolePolicy
AmazonS3ObjectLambdaExecutionRolePolicy
6: Object Lambda S3 Object Lambda S3 GET Lambda S3 S3 Object Lambda Lambda JSON Lambda
S3 Object Lambda
1. AWS Management Console Amazon S3 (https:// console.aws.amazon.com/s3/)
2. [Object Lambda ] 3. [Object Lambda ] [Object Lambda ]
4. [Object Lambda ] Object Lambda
(tutorial-object-lambda-accesspoint) 5. [] 3 (p. 34)
(tutorial-access-point)[]
API 2006-03-01 39
6. [Lambda ] 2 • [] [Lambda ]
4 (p. 35) Lambda (tutorial-object-lambda- function)
• [ARN ] 4 (p. 35) Lambda Amazon (ARN)
7. [Lambda ] $LATEST ( 4 (p. 35) Lambda )
8. () Lambda GET [Lambda ] [Lambda ] 2
S3 Object Lambda Range partNumber (p. 303)
9. () [ - ] JSON Lambda
S3 Object Lambda Lambda JSON Lambda Object Lambda Lambda
(p. 305)
10. () [ - ] [] [] Amazon S3 Object Lambda Amazon CloudWatch CloudWatch
11. [Object Lambda -]
() Object Lambda GetObject API
12. [Object Lambda ]
7: S3 Object Lambda S3 Object Lambda
• S3 Object Lambda (p. 40) • Python (p. 41)
S3 Object Lambda S3 Object Lambda S3 Object Lambda GetObject API S3 Object Lambda Lambda S3 GetObject API
API 2006-03-01 40
1. AWS Management Console Amazon S3 (https:// console.aws.amazon.com/s3/)
2. [Object Lambda ] 3. [Object Lambda ] 6 (p. 39) S3 Object Lambda
(tutorial-object-lambda-accesspoint) 4. S3 Object Lambda [] 2 (p. 33) S3
(tutorial.txt)
5. [] []
Python S3 Object Lambda 6 (p. 39) S3 S3 Object Lambda ARN
Python S3 S3 Object Lambda
1. AWS Management Console Amazon S3 (https:// console.aws.amazon.com/s3/)
2. [Object Lambda ] 3. [Object Lambda ] 6 (p. 39) S3 Object Lambda
(tutorial-object-lambda- accesspoint)
4. [ARN ] 5. ARN 6. Python S3 (
tutorial.txt) S3 Object Lambda ( tutorial.txt)
import boto3
s3 = boto3.client('s3')
def getObject(bucket, key): objectBody = s3.get_object(Bucket = bucket, Key = key) print(objectBody["Body"].read().decode("utf-8")) print("\n")
print('Original object from the S3 bucket:') # Replace the two input parameters of getObject() below with # the S3 bucket name that you created in Step 1 (p. 33) and # the name of the file that you uploaded to the S3 bucket in Step 2 (p. 33) getObject("tutorial-bucket", "tutorial.txt")
print('Object transformed by S3 Object Lambda:') # Replace the two input parameters of getObject() below with # the ARN of your S3 Object Lambda access point that you saved earlier and # the name of the file with the transformed data (which in this case is # the same as the name of the file that you uploaded to the S3 bucket # in Step 2 (p. 33))
API 2006-03-01 41
getObject("arn:aws:s3-object-lambda:us-west-2:111122223333:accesspoint/tutorial-object- lambda-accesspoint", "tutorial.txt")
7. Python (tutorial_print.py) 4 (p. 35) (object-lambda)
8. 4 (p. 35) (object-lambda)
python3 tutorial_print.py
()
Original object from the S3 bucket: Amazon S3 Object Lambda Tutorial: You can add your own code to process data retrieved from S3 before returning it to an application.
Object transformed by S3 Object Lambda: AMAZON S3 OBJECT LAMBDA TUTORIAL: YOU CAN ADD YOUR OWN CODE TO PROCESS DATA RETRIEVED FROM S3 BEFORE RETURNING IT TO AN APPLICATION.
8: S3 Object Lambda AWS
• Object Lambda (p. 42) • S3 (p. 43) • Lambda (p. 43) • Lambda (p. 43) • CloudWatch Logs (p. 43) • S3 (p. 43) • S3 (p. 44) • IAM (p. 44)
Object Lambda 1. AWS Management Console Amazon S3 (https://
console.aws.amazon.com/s3/) 2. [Object Lambda ] 3. [Object Lambda ] 6 (p. 39) S3 Object Lambda
(tutorial-object-lambda- accesspoint)
Lambda
S3 1. AWS Management Console Amazon S3 (https://
console.aws.amazon.com/s3/) 2. [] 3. 3 (p. 34) (tutorial-access-point)
4. [] 5.
[]
Lambda 1. AWS Management Console AWS Lambda (https://
console.aws.amazon.com/lambda/) 2. [] 3. 4 (p. 35) (tutorial-object-lambda-function) 4. Lambda [] []
5. [] [] IAM 6. Lambda IAM [] [] 7. []
Lambda 1. AWS Lambda (https://console.aws.amazon.com/lambda/)
2. 4 (p. 35) (tutorial-
object-lambda-function) 3. [] [] 4. []
CloudWatch Logs 1. CloudWatch (https://console.aws.amazon.com/cloudwatch/) 2. [] 3. 4 (p. 35) Lambda
(tutorial-object-lambda-function) 4. 5. [] [] 6. []
S3 1. AWS Management Console Amazon S3 (https://
console.aws.amazon.com/s3/) 2. []
API 2006-03-01 43
3. [] 2 (p. 33) (tutorial-bucket)
4. (tutorial.txt) 5. [] 6. [] [?]
permanently delete 7. []
S3 1. AWS Management Console Amazon S3 (https://
console.aws.amazon.com/s3/) 2. [] 3. [] 1 (p. 33)
(tutorial-bucket) 4. [] 5. []
[]
iam/) 2. []
3. [] 4. [?]
[]
S3 Object Lambda

: S3 Object Lambda Amazon Comprehend PII (p. 45)
• • • XML JSON • • •
S3 Object Lambda, S3 Object Lambda (p. 281)
API 2006-03-01 44
: S3 Object Lambda Amazon Comprehend PII
Amazon S3 (PII) PII PII
S3 Object Lambda Amazon Comprehend AWS Lambda S3 PII Lambda S3 Object Lambda (Analytics ) S3 GET S3 Object Lambda Lambda S3 S3 PII S3 Object Lambda
Lambda Amazon Comprehend ( (NLP) ) PII ()PII Amazon Comprehend 4 PIN (SSN) 4 Amazon Comprehend UTF-8 PII Amazon Comprehend Amazon Comprehend ?
Objective
Lambda ComprehendPiiRedactionS3ObjectLambda S3 Object Lambda Amazon Comprehend PII PII
AWS Serverless Application Repository AWS Lambda S3 Object Lambda
• : IAM (p. 46) • 1: S3 (p. 47)
API 2006-03-01 45
Amazon Simple Storage Service : IAM
• 2: S3 (p. 48) • 3: S3 (p. 48) • 4: Lambda (p. 49) • 5: S3 Object Lambda (p. 50) • 6: S3 Object Lambda
(p. 51) • 7: (p. 52) • (p. 54)
: IAM AWS Identity and Access Management(IAM) AWS
IAM IAM IAM IAM AWS
Note
IAM AWS :
• AWSLambda_FullAccess – Lambda • AWSCloudFormationFullAccess – AWS CloudFormation • IAMFullAccess – IAM • IAMAccessAnalyzerReadOnlyAccess – IAM Access Analyzer

IAM IAM
1. AWS Management Console IAM (https://console.aws.amazon.com/ iam/)
2. [Policies ()] 3. [Create policy] 4. Service [Visual editor] [] [Serverless Application
Repository] 5. [] [] [ Serverless Application
Repository (serverlessrepo:*)]
API 2006-03-01 46
IAM IAM
6. [] []
IAM
7. [: ] 8. [: ] 9. [] [] [] ()
[]
10. [] IAM
11. [] [] [] 12. [] [] 13. (tutorial-serverless-
application-repository) [: ] 14. [] []


Amazon S3 (p. 125)
5. [] AWS
(p. 121) 6. [] (
)
7.
API 2006-03-01 47
8. []
2: S3 SSN PII S3 PII
tutorial.txt Amazon Comprehend
Hello Zhang Wei, I am John. Your AnyCompany Financial Services, LLC credit card account 1111-0000-1111-0008 has a minimum payment of $24.53 that is due by July 31st. Based on your autopay settings, we will withdraw your payment on the due date from your bank account number XXXXXX1111 with the routing number XXXXX0000.
Your latest statement was mailed to 100 Main Street, Any City, WA 98121. After your payment is received, you will receive a confirmation text message at 206-555-0100. If you have questions about your bill, AnyCompany Customer Service is available by phone at 206-555-0199 or email at [email protected].

1. AWS Management Console Amazon S3 (https:// console.aws.amazon.com/s3/)
2. [] 3. [] 1 (p. 47) (tutorial-
bucket) 4. [Objects ()] [Upload ()] 5. [] [] [] 6. [Open ()]
7. [Upload ()]
3: S3 S3 Object Lambda S3 1 (p. 47) S3 AWS
Object Lambda

API 2006-03-01 48
4. [] (tutorial-pii- access-point)
Amazon S3 (p. 317)
5. [] 1 (p. 47) (tutorial-bucket)S3
() [S3 )] [S3 )] [] []
6. [] []
Virtual Private Cloud (p. 319)
7. (p. 320)
8.
() (p. 314)
9. []
4: Lambda PII AWS Lambda ComprehendPiiRedactionS3ObjectLambda S3 Object Lambda
Lambda
1. AWS Management Console AWS Serverless Application Repository ComprehendPiiRedactionS3ObjectLambda
2. [] [] (ComprehendPiiRedactionS3ObjectLambda)
() Lambda
3. [MaskCharacter] (*) PII
4. [MaskMode] (MASK) MaskMode PII MASK PII_ENTITY_TYPE
5. [PiiEntityTypes] ALL PiiEntityTypes PII
PII Amazon Comprehend (PII)
6.
() Readme
7. [I acknowledge that this app creates custom IAM roles ( IAM )]
8. [Deploy] () 9. [] Lambda [ ID]
Lambda
5: S3 Object Lambda S3 Object Lambda S3 GET Lambda S3 PII S3 Object Lambda Lambda Lambda JSON
S3 Object Lambda Lambda (p. 305)
S3 Object Lambda
1. AWS Management Console Amazon S3 (https:// console.aws.amazon.com/s3/)
2. [Object Lambda ] 3. [Object Lambda ] [Object Lambda ]
4. Object Lambda ] Object Lambda
(tutorial-pii-object-lambda-accesspoint). 5. [] 3 (p. 48)
(tutorial-pii-access-point)[]
6. [Lambda ] 2 • [] [Lambda ]
4 (p. 49) Lambda (serverlessrepo- ComprehendPiiRedactionS3ObjectLambda)
• ARN ] 4 (p. 49) Lambda Amazon (ARN)
7. [Lambda ] $LATEST ( 4 (p. 49) Lambda )
8. () Lambda GET [Lambda ] [Lambda ] 2
S3 Object Lambda Range partNumber (p. 303)
9. () [ - ] JSON Lambda
API 2006-03-01 50
S3 Object Lambda Lambda JSON Lambda Object Lambda Lambda
(p. 305)
10. () [ - ] [] [] Amazon S3 Object Lambda Amazon CloudWatch CloudWatch
11. [Object Lambda -]
() Object Lambda GetObject API
12. [Object Lambda ]
6: S3 Object Lambda S3 Object Lambda PII
S3 Object Lambda
S3 Object Lambda S3 Object Lambda GetObject API S3 Object Lambda Lambda PII S3 GetObject API
1. AWS Management Console Amazon S3 (https:// console.aws.amazon.com/s3/)
2. [Object Lambda ] 3. [Object Lambda ] 5 (p. 50) S3 Object Lambda
(tutorial-pii-object-lambda-accesspoint) 4. S3 Object Lambda [] 2 (p. 48) S3
(tutorial.txt)

Hello *********. Your AnyCompany Financial Services, LLC credit card account ******************* has a minimum payment of $24.53 that is due by *********. Based on your autopay settings, we will withdraw your payment on the due date from your bank account ********** with the routing number *********.
Your latest statement was mailed to **********************************. After your payment is received, you will receive a confirmation text message at ************. If you have questions about your bill, AnyCompany Customer Service is available by phone at ************ or
API 2006-03-01 51
email at **********************.
7: S3 Object Lambda AWS
• Object Lambda (p. 52) • S3 (p. 52) • Lambda (p. 52) • CloudWatch Logs (p. 53) • S3 (p. 53) • S3 (p. 53) • Lambda IAM (p. 53) • IAM (p. 54) • IAM (p. 54)
Object Lambda 1. AWS Management Console Amazon S3 (https://
console.aws.amazon.com/s3/) 2. [Object Lambda ] 3. [Object Lambda ] 5 (p. 50) S3 Object Lambda
(tutorial-pii-object-lambda- accesspoint)
Lambda
S3 1. AWS Management Console Amazon S3 (https://
console.aws.amazon.com/s3/) 2. [] 3. 3 (p. 48) (tutorial-pii-access-point)
4. [] 5.
[]

3. [] [] 4. []
CloudWatch Logs 1. CloudWatch (https://console.aws.amazon.com/cloudwatch/) 2. [] 3. 4 (p. 49) Lambda
(serverlessrepo-ComprehendPiiRedactionS3ObjectLambda) 4. [] [] 5. []
S3 1. AWS Management Console Amazon S3 (https://
console.aws.amazon.com/s3/) 2. [] 3. ] 2 (p. 48)
(tutorial-bucket) 4. (tutorial.txt) 5. [] 6. [] [?]
permanently delete 7. []
S3 1. AWS Management Console Amazon S3 (https://
console.aws.amazon.com/s3/) 2. [] 3. [] 1 (p. 47)
(tutorial-bucket) 4. [] 5. []
[]
Lambda IAM 1. AWS Management Console IAM (https://console.aws.amazon.com/
iam/) 2. []
4 (p. 49) Lambda (serverlessrepo-ComprehendPiiRedactionS3ObjectLambda)
3. []
4. [] [Delete] ()
IAM 1. AWS Management Console IAM (https://console.aws.amazon.com/
iam/) 2. [Policies ()] 3. [] [ (p. 46)]
(tutorial-serverless-application-repository)
4. [] [] 5.
[]
iam/) 2. []
3. [] 4. [?]
[]

IAM 1 S3 Object Lambda (IAM ) ComprehendPiiRedactionS3ObjectLambda Lambda S3 Object Lambda S3 Object Lambda S3 S3
S3 S3 IAM (p. 312)
Lambda S3 S3 Object Lambda Object Lambda IAM (p. 291)
• Lambda Lambda S3 Object Lambda
S3 Object Lambda Amazon Comprehend ()
API 2006-03-01 54
S3 Object Lambda Amazon Comprehend Medical(HIPAA NLP )
S3 Object Lambda Lambda : S3 Object Lambda (p. 30)
: Amazon S3Amazon CloudFrontAmazon Route 53
Amazon S3 Amazon CloudFront (VOD)
CloudFront (CDN) CloudFront CloudFront HTTPS CloudFront Amazon CloudFront Amazon CloudFront
CloudFront () CloudFront CloudFront S3 CloudFront Amazon CloudFront
Objective
Route 53
CloudFront (DNS) Amazon Route 53 S3
• : Route 53 (p. 56) • 1: S3 (p. 57) • 2: S3 (p. 57) • 3: CloudFront (p. 58) • 4: CloudFront (p. 58) • 5: CloudFront (p. 60) • 6: CloudFront
(p. 61) • 7: CloudFront S3
(p. 64) • () 8: CloudFront
(p. 65) • 9: (p. 65) • (p. 68)
: Route 53 Route 53 CloudFront (example.com)
S3 CloudFront URL
https://CloudFront distribution domain name/Path to an S3 video
https://d111111abcdef8.cloudfront.net/sample.mp4
https://CloudFront distribution alternate domain name/Path to an S3 video
https://www.example.com/sample.mp4
Amazon Route 53 Route 5