Created
December 8, 2022 19:12
-
-
Save niski84/3c4f73211b61a8c78bf416da99766bd4 to your computer and use it in GitHub Desktop.
AllowAccessToOnlyFewSecrets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowAccessToGogAndGogCloneSecrets", | |
"Effect": "Allow", | |
"Action": [ | |
"secretsmanager:GetSecretValue" | |
], | |
"Resource": [ | |
"arn:aws:secretsmanager:us-east-1:123456789012:secret:/gog/*", | |
"arn:aws:secretsmanager:us-east-1:123456789012:secret:/gog-clone/*" | |
] | |
}, | |
{ | |
"Sid": "DenyAccessToOtherSecrets", | |
"Effect": "Deny", | |
"Action": [ | |
"secretsmanager:GetSecretValue" | |
], | |
"Resource": [ | |
"arn:aws:secretsmanager:us-east-1:123456789012:secret:*" | |
], | |
"Condition": { | |
"StringNotLike": { | |
"secretsmanager:Name": [ | |
"/gog/*", | |
"/gog-clone/*" | |
] | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment