버전 5(V5) AWS Tools for PowerShell 가 릴리스되었습니다.
새 버전의 도구 사용을 시작하려면 AWS Tools for PowerShell 사용 설명서(V5), 특히 V5로 마이그레이션 주제를 참조하세요.
기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
Amazon S3에 인라인 텍스트 콘텐츠 업로드
Write-S3Object cmdlet에서는 Amazon S3에 인라인 텍스트 콘텐츠를 업로드하는 기능을 지원합니다. -Content (별칭 -Text)를 사용하면 파일에 먼저 붙여 넣지 않고도 Amazon S3에 업로드할 텍스트 기반 내용을 지정할 수 있습니다. 이 파라미터에는 간단한 한 줄 문자열은 물론 여기에 나오는 여러 줄을 포함하는 문자열도 사용할 수 있습니다.
PS ># Specifying content in-line, single line text:PS >write-s3objectamzn-s3-demo-bucket-key myobject.txt -content "file content"PS ># Specifying content in-line, multi-line text: (note final newline needed to end in-line here-string)PS >write-s3objectamzn-s3-demo-bucket-key myobject.txt -content @">>line 1>>line 2>>line 3>>"@>>PS ># Specifying content from a variable: (note final newline needed to end in-line here-string)PS >$x = @">>line 1>>line 2>>line 3>>"@>>PS >write-s3objectamzn-s3-demo-bucket-key myobject.txt -content $x