GoogleCloudPlatform / GoogleCloudPlatform/config-validator
Exclude doesn't support individual resources
- Dominant language
- Go
- Stars
- 48
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
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//instances/my-db"]
```
or
```
match:
target: ["organization/*"]
exclude: ["organization//folder//project//cloudsqlinstance/"]
```
but excluding on the project level works (but might be inadequate for certain contexts):
```
match:
target: ["organization/*"]
exclude: ["organization//folder//project/"]
```
Contributor guide
Assessment
This issue has not been assessed yet.