Skip to content

Instantly share code, notes, and snippets.

@CsBigDataHub
Forked from mikaelkrief/subnet.rb
Created July 14, 2021 04:39
Show Gist options
  • Save CsBigDataHub/a2615f83f562ab2297d4de22abc59892 to your computer and use it in GitHub Desktop.
Save CsBigDataHub/a2615f83f562ab2297d4de22abc59892 to your computer and use it in GitHub Desktop.
control "subnet" do
describe azurerm_subnet(resource_group: 'MyResourceGroup', vnet: 'vnet-prod', name: 'subnet-web') do
it { should exist }
its('address_prefix') { should eq '192.168.0.0/24' }
its('nsg') { should eq 'my-nsg'}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment