Open itd-seb opened 3 years ago
Hey @seb-itd,
Thanks heaps for raising!
Looks like the SecretId property could be a variety of different formats for this case (despite the name 👎). I've done some regex magic to hopefully resolve the issue. The fix will be available in v0.28.0.
Let me know if you experience any issues.
When retrieving a secret value the output for the resource ARN will be doubled like so: { "Effect": "Allow", "Action": [ "secretsmanager:GetResourcePolicy", "secretsmanager:GetSecretValue", "secretsmanager:DescribeSecret" ], "Resource": "arn:aws:secretsmanager:eu-central-1:XXX:secret:arn:aws:secretsmanager:eu-central-1:XXX:secret:*" } Used command: iamlive --set-ini --account-id "XXX" --mode proxy --output-file cicd-policy.json --sort-alphabetical