Skip to content

Commit

Permalink
Patch bugs for release v0.3.3 (#122)
Browse files Browse the repository at this point in the history
* Add dependency to fix #109

* Update comments for solutions depends_on block

* Add super-linter outputs to gitignore

* Remove tags from unsupported resources

* Update release version in docs

* Update `github/super-linter` to `v4.1.0`

* Set active Subscription for SPN Generator
  • Loading branch information
Kevin Rowlandson authored Jun 7, 2021
1 parent 4211133 commit 1829729
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
fetch-depth: 0

- name: Run github/super-linter
uses: docker://github/super-linter:v3.15.3
uses: docker://github/super-linter:v4.1.0
env:
# Lint all code
VALIDATE_ALL_CODEBASE: true
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@ override.tf.json

# Ignore Visual Studio Code config
**/.vscode/*

# Ignore Super-Linter log
**/super-linter.report
**/super-linter.report/*
**/super-linter.log
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ variable "root_name" {
module "enterprise_scale" {
source = "Azure/caf-enterprise-scale/azurerm"
version = "0.3.2"
version = "0.3.3"
root_parent_id = data.azurerm_client_config.current.tenant_id
root_id = var.root_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ data "azurerm_client_config" "current" {}
module "enterprise_scale" {
source = "Azure/caf-enterprise-scale/azurerm"
version = "0.3.2"
version = "0.3.3"
root_parent_id = data.azurerm_client_config.current.tenant_id
root_id = var.root_id
Expand Down
2 changes: 1 addition & 1 deletion docs/wiki/[Examples]-Deploy-Default-Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ data "azurerm_client_config" "current" {}
module "enterprise_scale" {
source = "Azure/caf-enterprise-scale/azurerm"
version = "0.3.2"
version = "0.3.3"
root_parent_id = data.azurerm_client_config.current.tenant_id
root_id = "myorg-1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ data "azurerm_client_config" "current" {}
module "enterprise_scale" {
source = "Azure/caf-enterprise-scale/azurerm"
version = "0.3.2"
version = "0.3.3"
root_parent_id = data.azurerm_client_config.current.tenant_id
root_id = "myorg-2"
Expand Down
6 changes: 3 additions & 3 deletions docs/wiki/[Examples]-Deploy-Using-Module-Nesting.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The extra code needed to extend your configuration, is the following:
module "enterprise_scale_nested_landing_zone" {
source = "Azure/caf-enterprise-scale/azurerm"
version = "0.3.2"
version = "0.3.3"
root_parent_id = "${var.root_id}-landing-zones"
Expand Down Expand Up @@ -128,7 +128,7 @@ data "azurerm_client_config" "current" {}
module "enterprise_scale" {
source = "Azure/caf-enterprise-scale/azurerm"
version = "0.3.2"
version = "0.3.3"
root_parent_id = data.azurerm_client_config.current.tenant_id
root_id = var.root_id
Expand Down Expand Up @@ -171,7 +171,7 @@ module "enterprise_scale" {
module "enterprise_scale_nested_landing_zone" {
source = "Azure/caf-enterprise-scale/azurerm"
version = "0.3.2"
version = "0.3.3"
root_parent_id = "${var.root_id}-landing-zones"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ data "azurerm_client_config" "current" {}
module "enterprise_scale" {
source = "Azure/caf-enterprise-scale/azurerm"
version = "0.3.2"
version = "0.3.3"
root_parent_id = data.azurerm_client_config.current.tenant_id
root_id = "myorg-1"
Expand Down
2 changes: 1 addition & 1 deletion docs/wiki/[User-Guide]-Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Copy and paste the following 'module' block into your Terraform configuration, i
```hcl
module "caf-enterprise-scale" {
source = "Azure/caf-enterprise-scale/azurerm"
version = "0.3.2"
version = "0.3.3"
# insert the 1 required variable here
}
```
Expand Down
7 changes: 5 additions & 2 deletions resources.management.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ resource "azurerm_log_analytics_solution" "enterprise_scale" {
# Optional resource attributes
tags = each.value.template.tags

# Set explicit dependency on Resource Group and Log Analytics workspace deployments
# Set explicit dependency on Resource Group, Log Analytics
# workspace and Automation Account to fix issue #109.
# Ideally we would limit to specific solutions, but the
# depends_on block only supports static values.
depends_on = [
azurerm_resource_group.enterprise_scale,
azurerm_log_analytics_workspace.enterprise_scale,
azurerm_automation_account.enterprise_scale,
]

}
Expand Down Expand Up @@ -82,7 +86,6 @@ resource "azurerm_log_analytics_linked_service" "enterprise_scale" {
# Optional resource attributes
read_access_id = each.value.template.read_access_id
write_access_id = each.value.template.write_access_id
tags = each.value.template.tags

# Set explicit dependency on Resource Group, Log Analytics workspace and Automation Account deployments
depends_on = [
Expand Down
4 changes: 4 additions & 0 deletions tests/scripts/azp-spn-generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ az login \
--password "$ARM_CLIENT_SECRET" \
--query [?isDefault]

echo "==> Setting active Subscription..."
az account set \
--subscription "$ARM_SUBSCRIPTION_ID"

echo "==> Create or update Resource Group..."
RSG_NAME="$DEFAULT_PREFIX"
az group create \
Expand Down

0 comments on commit 1829729

Please sign in to comment.