Amazon S3 스토리지 렌즈 사용을 위한 도우미 파일
예제에 다음 JSON 파일과 키 입력을 사용하십시오.
JSON의 S3 스토리지 렌즈 예제 구성
예 config.json
config.json 파일에는 S3 스토리지 렌즈 조직 수준의 고급 지표 및 권장 사항 구성에 대한 세부 정보가 들어 있습니다. 다음 예시를 사용하려면 를 실제 정보로 대체하십시오.user input placeholders
참고
고급 지표 및 권장 사항에 대해서는 추가 요금이 부과됩니다. 자세한 내용은 고급 지표 및 권장 사항을 참조하십시오.
{ "Id": "SampleS3StorageLensConfiguration", //Use this property to identify your S3 Storage Lens configuration. "AwsOrg": { //Use this property when enabling S3 Storage Lens for AWS Organizations. "Arn": "arn:aws:organizations::123456789012:organization/o-abcdefgh" }, "AccountLevel": { "ActivityMetrics": { "IsEnabled":true}, "AdvancedCostOptimizationMetrics": { "IsEnabled":true}, "AdvancedDataProtectionMetrics": { "IsEnabled":true}, "DetailedStatusCodesMetrics": { "IsEnabled":true}, "BucketLevel": { "ActivityMetrics": { "IsEnabled":true}, "AdvancedDataProtectionMetrics": { "IsEnabled":true}, "AdvancedCostOptimizationMetrics": { "IsEnabled":true}, "DetailedStatusCodesMetrics": { "IsEnabled":true}, "PrefixLevel":{ "StorageMetrics":{ "IsEnabled":true, "SelectionCriteria":{ "MaxDepth":5, "MinStorageBytesPercentage":1.25, "Delimiter":"/" } } } } }, "Exclude": { //Replace with "Include" if you prefer to include Regions. "Regions": [ "eu-west-1" ], "Buckets": [ //This attribute is not supported for AWS Organizations-level configurations. "arn:aws:s3:::" ] }, "IsEnabled": true, //Whether the configuration is enabled "DataExport": { //Details about the metrics export "S3BucketDestination": { "OutputSchemaVersion": "amzn-s3-demo-source-bucketV_1", "Format": "CSV", //You can add "Parquet" if you prefer. "AccountId": "111122223333", "Arn": "arn:aws:s3:::", // The destination bucket for your metrics export must be in the same Region as your S3 Storage Lens configuration. "Prefix": "amzn-s3-demo-destination-bucketprefix-for-your-export-destination", "Encryption": { "SSES3": {} } }, "CloudWatchMetrics": { "IsEnabled":true} } }
JSON의 Storage Lens 그룹을 사용한 S3 Storage Lens 예제 구성
예 config.json
config.json 파일에는 스토리지 렌즈 그룹을 사용할 때 스토리지 렌즈 구성에 적용하려는 세부 정보가 들어 있습니다. 예제를 사용하려면 를 실제 정보로 대체하십시오.user
input placeholders
모든 Storage Lens 그룹을 대시보드에 연결하려면 다음 구문으로 Storage Lens 구성을 업데이트하십시오.
{ "Id": "ExampleS3StorageLensConfiguration", "AccountLevel": { "ActivityMetrics": { "IsEnabled":true}, "AdvancedCostOptimizationMetrics": { "IsEnabled":true}, "AdvancedDataProtectionMetrics": { "IsEnabled":true }, "BucketLevel": { "ActivityMetrics": { "IsEnabled":true}, "StorageLensGroupLevel": {}, "IsEnabled":true}
Storage Lens 대시보드 구성(slg-1 및 slg-2)에 Storage Lens 그룹을 두 개만 포함하려면 다음 구문을 사용하십시오.
{ "Id": "ExampleS3StorageLensConfiguration", "AccountLevel": { "ActivityMetrics": { "IsEnabled":true}, "AdvancedCostOptimizationMetrics": { "IsEnabled":true}, "AdvancedDataProtectionMetrics": { "IsEnabled":true}, "BucketLevel": { "ActivityMetrics": { "IsEnabled":true}, "StorageLensGroupLevel": { "SelectionCriteria": { "Include": [ "arn:aws:s3:us-east-1:111122223333:storage-lens-group/slg-1", "arn:aws:s3:us-east-1:444455556666:storage-lens-group/slg-2" ] }, "IsEnabled":true}
특정 Storage Lens 그룹만 대시보드 구성에 연결되지 않도록 제외하려면 다음 구문을 사용하십시오.
{ "Id": "ExampleS3StorageLensConfiguration", "AccountLevel": { "ActivityMetrics": { "IsEnabled":true}, "AdvancedCostOptimizationMetrics": { "IsEnabled":true}, "AdvancedDataProtectionMetrics": { "IsEnabled":true}, "BucketLevel": { "ActivityMetrics": { "IsEnabled":true}, "StorageLensGroupLevel": { "SelectionCriteria": { "Exclude": [ "arn:aws:s3:us-east-1:111122223333:storage-lens-group/slg-1", "arn:aws:s3:us-east-1:444455556666:storage-lens-group/slg-2" ] }, "IsEnabled":true}
JSON의 S3 스토리지 렌즈 예제 태그 구성
예 tags.json
tags.json 파일에는 S3 스토리지 렌즈 구성에 적용하려는 태그가 들어 있습니다. 이 예제를 사용하려면 를 사용자의 정보로 대체합니다.user input
placeholders
[ { "Key": "key1", "Value": "value1" }, { "Key": "key2", "Value": "value2" } ]
S3 스토리지 렌즈 예제 구성 IAM 권한
예 permissions.json - 특정 대시보드 이름
이 정책 예시에서는 대시보드 이름이 지정된 S3 스토리지 렌즈 IAM permissions.json 파일을 보여줍니다. , value1, us-east-1 및 your-dashboard-name를 실제 값으로 바꾸십시오.example-account-id
예 permissions.json - 특정 대시보드 이름 없음
이 정책 예시에서는 대시보드 이름이 지정되지 않은 S3 스토리지 렌즈 IAM permissions.json 파일을 보여줍니다. , value1 및 us-east-1를 사용자의 값으로 바꿉니다.example-account-id