Skip to content

Commit

Permalink
Merge pull request #324 from dnicolson/add-s3-properties
Browse files Browse the repository at this point in the history
Add additional S3 properties
  • Loading branch information
iann0036 committed May 31, 2023
2 parents f65ce6a + 6bf0ece commit ccb72df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
6 changes: 5 additions & 1 deletion RESOURCE_COVERAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16188,7 +16188,11 @@ ObjectLockEnabled: [ ]
OwnershipControls: [X]
Rules: [X]
ObjectOwnership: [X]
PublicAccessBlockConfiguration: [ ]
PublicAccessBlockConfiguration: [X]
BlockPublicAcls: [X]
IgnorePublicAcls: [X]
BlockPublicPolicy: [X]
RestrictPublicBuckets: [X]
ReplicationConfiguration: [X]
Role: [X]
Rules: [X]
Expand Down
15 changes: 7 additions & 8 deletions js/services/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,11 @@ async function updateDatatableStorageS3() {
Bucket: bucket.Name
}, false).then((data) => {
bucket['OwnershipControls'] = data.OwnershipControls;
}).catch(() => { }),
sdkcall("S3", "getPublicAccessBlock", {
Bucket: bucket.Name
}, false).then((data) => {
bucket['PublicAccessBlockConfiguration'] = data.PublicAccessBlockConfiguration;
}).catch(() => { })
]).then(async () => {
$('#section-storage-s3-buckets-datatable').deferredBootstrapTable('append', [{
Expand Down Expand Up @@ -1140,14 +1145,8 @@ service_mapping_functions.push(function(reqParams, obj, tracked_resources){
});
}

/*
TODO:
AccessControl: String
PublicAccessBlockConfiguration:
PublicAccessBlockConfiguration
Tags:
- Resource Tag
*/
reqParams.cfn['PublicAccessBlockConfiguration'] = obj.data.PublicAccessBlockConfiguration;
reqParams.cfn['Tags'] = obj.data.Tags;

tracked_resources.push({
'obj': obj,
Expand Down

0 comments on commit ccb72df

Please sign in to comment.