Skip to content

Exclude doesn't support individual resources #49

@ocervell

Description

@ocervell

AFAIK there is no way to exclude just one resource (individual VM or instance) using the exclude parameter: is this expected ?

E.g: I tried the following in a rule to prevent public IPs on CloudSQL, but the exclude is not working:

match:
    target: ["organization/*"]
    exclude: ["//cloudsql.googleapis.com/projects/<PROJECT>/instances/my-db"] 

or

match:
    target: ["organization/*"]
    exclude: ["organization/<ORG_ID>/folder/<FOLDER_NUMBER>/project/<PROJECT_NUMBER>/cloudsqlinstance/<INSTANCE_NUMBER>"] 

but excluding on the project level works (but might be inadequate for certain contexts):

match:
    target: ["organization/*"]
    exclude: ["organization/<ORG_ID>/folder/<FOLDER_NUMBER>/project/<PROJECT_NUMBER>"] 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions