I'm currently working on a AWS SSO project.
Important note: Currently AWS SSO do not support Custom Managed Policy.
So basically I need a PowerUser profile but with some minor adjustments (such as removing some actions on Guardduty for example)
Will this work?
Type: AWS::SSO::PermissionSet
Properties:
InlinePolicy: '
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"NotAction": [
"guardduty:Get*",
"guardduty:List*"
],
"Resource": "*"
}
]
}
'
InstanceArn: arn:...:sso....
ManagedPolicies:
- arn:....:PowerUserAccess
Name: MyPermSet
Will the deny in the inline policy override every actions?
Do i need to add target resources:
"Resource": "guardduty:*"
How does AWS interpret policies? Managed first then Inline can override them? The other way around?
I'm a bit lost.