-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
@vb-git14 commented on Tue Aug 23 2022
Hi All,
I am new to inspec and am writing a few tests on for my Infra Compliance on GCP. There are a few cases that require combination of a few things like checking if the bucket used in the sink for cloud logging is regional and in Europe. I have been trying something in the below direction, but with little success:
control "ABC" do
impact 1.0
google_logging_project_sinks(project: "project").names.each do |sink_name|
describe google_logging_project_sink(project: "project", name: sink_name).where(destination: "storage.googleapis.com") do |destination_name|
describe google_storage_bucket(name: 'destinaation_name') do
its('location'){ should be_in ['EU'] }
end
end
end
Any help will be much appreciated.
Metadata
Metadata
Assignees
Labels
No labels