title | platform |
---|---|
About the aws_network_manager_global_network Resource |
aws |
Use the aws_network_manager_global_network
InSpec audit resource to test properties of a specific AWS Network Manager global network.
The AWS::NetworkManager::GlobalNetwork
resource describes one or more global networks.
Ensure that Global Network ID exists.
describe aws_network_manager_global_network(global_network_id: 'GLOBAL_NETWORK_ID') do
it { should exist }
end
global_network_id
(required)
The ID of the global network.
For additional information, see the AWS documentation on AWS Network Manager Global Network.
Property | Description |
---|---|
global_network_id | The ID of the global network. |
global_network_arn | The Amazon Resource Name (ARN) of the global network. |
description | The description of the global network. |
created_at | The date and time that the global network was created. |
state | The state of the global network. |
tags | The tags for the global network. |
describe aws_network_manager_global_network(global_network_id: 'GLOBAL_NETWORK_ID') do
its('global_network_id') { should eq 'GLOBAL_NETWORK_ID' }
end
describe aws_network_manager_global_network(global_network_id: 'GLOBAL_NETWORK_ID') do
its('state') { should eq 'AVAILABLE' }
end
This InSpec audit resource has the following special matchers. For a full list of available matchers, please visit our Universal Matchers page.
The controls will pass if the get
method returns at least one result.
Use should
to test that the entity exists.
describe aws_network_manager_global_network(global_network_id: 'GLOBAL_NETWORK_ID') do
it { should exist }
end
Use should_not
to test the entity does not exist.
describe aws_network_manager_global_network(global_network_id: 'GLOBAL_NETWORK_ID') do
it { should_not exist }
end
Use should
to check if the entity is available.
describe aws_network_manager_global_network(global_network_id: 'GLOBAL_NETWORK_ID') do
it { should be_available }
end
Your Principal will need the NetworkManager:Client:DescribeGlobalNetworksResponse
action with Effect
set to Allow
.