aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

aws servicecatalog accessLevelFilter issue

Open vutratenko opened this issue 9 years ago • 1 comments

For some reason, aws servicecatalog doesn't take accessLevelFilter parameter from IAM. E.g. I have following described n IAM role:

{
            "Effect": "Allow",
            "Action": [
                "servicecatalog:DescribeRecord",
                "servicecatalog:ListRecordHistory",
                "servicecatalog:ScanProvisionedProducts",
                "servicecatalog:TerminateProvisionedProduct",
                "servicecatalog:UpdateProvisionedProduct"
            ],
            "Resource": "*",
            "Condition": {
                "StringEquals": {
                    "servicecatalog:roleLevel": "self"
                }
            }
},

But if I am trying to run aws --region=us-east-1 servicecatalog scan-provisioned-products without --access-level-filter Key="Role",Value="self" keys on the instance with corresponding IAM role assigned, I'm getting following :

{
    "ProvisionedProducts": []
}

Is this normal behavior or should I see all products launched by this role?

vutratenko avatar Sep 12 '17 09:09 vutratenko

Since this is a service usage question and I don't know the answer offhand this question would probably be best addressed through either stack overflow or a support ticket.

stealthycoin avatar Sep 12 '17 17:09 stealthycoin