Skip to content

Commit 4e5efd6

Browse files
committed
refactor(s3): support reading jsonata for s3
1 parent ab6f6e6 commit 4e5efd6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/deploy/stepFunctions/compileIamRole.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,9 +655,10 @@ function resolveS3BucketReferences(bucket, resources) {
655655
}
656656

657657
function getS3ObjectPermissions(action, state) {
658-
const bucket = state.Parameters.Bucket || '*';
659-
const key = state.Parameters.Key || '*';
660-
const prefix = state.Parameters.Prefix;
658+
// Use the helper so both Arguments (JSONata) and Parameters (JSONPath) are supported
659+
const bucket = getParameterOrArgument(state, 'Bucket') || '*';
660+
const key = getParameterOrArgument(state, 'Key') || '*';
661+
const prefix = getParameterOrArgument(state, 'Prefix');
661662
let arn;
662663

663664
if (action === 's3:listObjectsV2') {

0 commit comments

Comments
 (0)