Skip to content

Commit

Permalink
Merge pull request #1074 from dbsystel/fix/1073-iam-policy
Browse files Browse the repository at this point in the history
fix: 1073 fix IAM policy for string parameters
  • Loading branch information
zh32 authored Nov 21, 2024
2 parents 8f227a5 + d2e0adf commit 23ac30a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/SopsSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,11 @@ export class SopsSync extends Construct {
resources: [
`arn:aws:ssm:${Stack.of(this).region}:${
Stack.of(this).account
}:parameter/${props.parameterName}`,
}:parameter${
props.parameterName.startsWith('/')
? props.parameterName
: `/${props.parameterName}`
}`,
],
}),
);
Expand Down

0 comments on commit 23ac30a

Please sign in to comment.