-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into changelog-from-1.2.5
- Loading branch information
Showing
23 changed files
with
294 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
resource "azurerm_storage_account" "example" { | ||
name = "storageaccountname" | ||
resource_group_name = azurerm_resource_group.example.name | ||
location = azurerm_resource_group.example.location | ||
account_tier = "Standard" | ||
account_replication_type = "GRS" | ||
network_rules { | ||
bypass = ["AzureServices", "Logging", "Metrics"] | ||
default_action = "Deny" | ||
ip_rules = ["100.1.1.123/32"] | ||
} | ||
tags = { | ||
environment = "staging" | ||
} | ||
} | ||
|
||
resource "azurerm_resource_group" "example" { | ||
name = "example-resources" | ||
location = "West Europe" | ||
} | ||
|
||
provider "azurerm" { | ||
features {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"format_version":"0.1","terraform_version":"0.12.25","planned_values":{"root_module":{"resources":[{"address":"azurerm_resource_group.example","mode":"managed","type":"azurerm_resource_group","name":"example","provider_name":"azurerm","schema_version":0,"values":{"location":"westeurope","name":"example-resources","tags":null,"timeouts":null}},{"address":"azurerm_storage_account.example","mode":"managed","type":"azurerm_storage_account","name":"example","provider_name":"azurerm","schema_version":2,"values":{"account_kind":"StorageV2","account_replication_type":"GRS","account_tier":"Standard","custom_domain":[],"enable_https_traffic_only":true,"is_hns_enabled":false,"location":"westeurope","name":"storageaccountname","network_rules":[{"bypass":["AzureServices","Logging","Metrics"],"default_action":"Deny","ip_rules":["100.1.1.123/32"]}],"resource_group_name":"example-resources","static_website":[],"tags":{"environment":"staging"},"timeouts":null}}]}},"resource_changes":[{"address":"azurerm_resource_group.example","mode":"managed","type":"azurerm_resource_group","name":"example","provider_name":"azurerm","change":{"actions":["create"],"before":null,"after":{"location":"westeurope","name":"example-resources","tags":null,"timeouts":null},"after_unknown":{"id":true}}},{"address":"azurerm_storage_account.example","mode":"managed","type":"azurerm_storage_account","name":"example","provider_name":"azurerm","change":{"actions":["create"],"before":null,"after":{"account_kind":"StorageV2","account_replication_type":"GRS","account_tier":"Standard","custom_domain":[],"enable_https_traffic_only":true,"is_hns_enabled":false,"location":"westeurope","name":"storageaccountname","network_rules":[{"bypass":["AzureServices","Logging","Metrics"],"default_action":"Deny","ip_rules":["100.1.1.123/32"]}],"resource_group_name":"example-resources","static_website":[],"tags":{"environment":"staging"},"timeouts":null},"after_unknown":{"access_tier":true,"blob_properties":true,"custom_domain":[],"id":true,"identity":true,"network_rules":[{"bypass":[false,false,false],"ip_rules":[false],"virtual_network_subnet_ids":true}],"primary_access_key":true,"primary_blob_connection_string":true,"primary_blob_endpoint":true,"primary_blob_host":true,"primary_connection_string":true,"primary_dfs_endpoint":true,"primary_dfs_host":true,"primary_file_endpoint":true,"primary_file_host":true,"primary_location":true,"primary_queue_endpoint":true,"primary_queue_host":true,"primary_table_endpoint":true,"primary_table_host":true,"primary_web_endpoint":true,"primary_web_host":true,"queue_properties":true,"secondary_access_key":true,"secondary_blob_connection_string":true,"secondary_blob_endpoint":true,"secondary_blob_host":true,"secondary_connection_string":true,"secondary_dfs_endpoint":true,"secondary_dfs_host":true,"secondary_file_endpoint":true,"secondary_file_host":true,"secondary_location":true,"secondary_queue_endpoint":true,"secondary_queue_host":true,"secondary_table_endpoint":true,"secondary_table_host":true,"secondary_web_endpoint":true,"secondary_web_host":true,"static_website":[],"tags":{}}}}],"configuration":{"provider_config":{"azurerm":{"name":"azurerm","expressions":{"features":[{}]}}},"root_module":{"resources":[{"address":"azurerm_resource_group.example","mode":"managed","type":"azurerm_resource_group","name":"example","provider_config_key":"azurerm","expressions":{"location":{"constant_value":"West Europe"},"name":{"constant_value":"example-resources"}},"schema_version":0},{"address":"azurerm_storage_account.example","mode":"managed","type":"azurerm_storage_account","name":"example","provider_config_key":"azurerm","expressions":{"account_replication_type":{"constant_value":"GRS"},"account_tier":{"constant_value":"Standard"},"location":{"references":["azurerm_resource_group.example"]},"name":{"constant_value":"storageaccountname"},"network_rules":[{"bypass":{"constant_value":["AzureServices","Logging","Metrics"]},"default_action":{"constant_value":"Deny"},"ip_rules":{"constant_value":["100.1.1.123/32"]}}],"resource_group_name":{"references":["azurerm_resource_group.example"]},"tags":{"constant_value":{"environment":"staging"}}},"schema_version":2}]}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Feature: Feature for issue #285 | ||
Scenario: Ensure 'Trusted Microsoft Services' is enabled for Storage Account access | ||
Given I have azurerm_storage_account defined | ||
Then it must contain network_rules | ||
And it must contain bypass | ||
And any of its values must match the "(^AzureServices$)" regex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Failure: bypass property in azurerm_storage_account.example resource does not match with \(\^AzureServicesBad\$\) case insensitive regex. It is set to \[\{\'address\': \'azurerm_storage_account.example\', \'values\': \[\[\'AzureServices\', \'Logging\', \'Metrics\'\], \[False, False, False\]\], \'type\': \'azurerm_storage_account\'\}\]. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
resource "azurerm_storage_account" "example" { | ||
name = "storageaccountname" | ||
resource_group_name = azurerm_resource_group.example.name | ||
location = azurerm_resource_group.example.location | ||
account_tier = "Standard" | ||
account_replication_type = "GRS" | ||
network_rules { | ||
bypass = ["AzureServices", "Logging", "Metrics"] | ||
default_action = "Deny" | ||
ip_rules = ["100.1.1.123/32"] | ||
} | ||
tags = { | ||
environment = "staging" | ||
} | ||
} | ||
|
||
resource "azurerm_resource_group" "example" { | ||
name = "example-resources" | ||
location = "West Europe" | ||
} | ||
|
||
provider "azurerm" { | ||
features {} | ||
} |
Oops, something went wrong.