Comments (3)
As a workaround, I have removed these policy assignments for the LandingZone:
modules/archetypes/lib/archetype_definitions/archetype_definition_es_landing_zones.tmpl.json
After that, I was able to deploy successfully (to greenfield env).
And I see that these policy assignments have been created as well. But they have not been deployed. I checked it in state file.
But I still can't find the reason for that...
from terraform-azurerm-caf-enterprise-scale.
thank you for your feedback, @VitaliZhur
It looks like you have tried to adjust the configuration in main.tf
from within the module.
In this case, deployment failures are expected.
Our suggestion would be to follow the module user guide and examples page for a successful deployment.
This is the minimum default configuration and you can find it here:
# We strongly recommend using the required_providers block to set the
# Azure Provider source and version being used.
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">= 2.46.1"
}
}
}
provider "azurerm" {
features {}
}
# You can use the azurerm_client_config data resource to dynamically
# extract the current Tenant ID from your connection settings.
data "azurerm_client_config" "current" {}
# Call the caf-enterprise-scale module directly from the Terraform Registry
# pinning to the latest version
module "enterprise_scale" {
source = "Azure/caf-enterprise-scale/azurerm"
version = "0.3.0"
root_parent_id = data.azurerm_client_config.current.tenant_id
root_id = "myorg-1"
root_name = "My Organization 1"
}
For more information around the module, please check our wiki.
from terraform-azurerm-caf-enterprise-scale.
Thanks for your answer. I understood my issue, instead of creating a new project with only main.tf to start. I cloned your repo and tried to deploy from there.
from terraform-azurerm-caf-enterprise-scale.
Related Issues (20)
- Feature Request - On/Off switch to control policy assignments HOT 6
- use existing management group as a parent HOT 5
- How to change the default virtual hub attribute HOT 3
- How to reference custom role in policy? HOT 2
- How to assign roles to policy with SystemAssigned identity? HOT 1
- Error: Invalid index error: archetype_definition = local.archetype_definitions[local.archetype_id] on tf apply/delete etc HOT 3
- `root_name` limited to 24 characters, should be 90 HOT 2
- Bug report: threat_intelligence_allowlist HOT 4
- Error: Invalid for_each argument" because local.azurerm_policy_definition_external_lookup will be known only after apply HOT 13
- Policy Definition 'Deploy Diagnostic Settings for Log Analytics to Log Analytics workspace' incorrectly reports non-compliance HOT 1
- Policy Assignment User assigned Managed Identity was not working as expected HOT 2
- Unable to create Default InvalidSubscriptionId - Message="The provided subscription identifier XXX is malformed or invalid." HOT 4
- Bug Report: Non Compliance message for kubernetes policies HOT 4
- Feature Request: Enable Specifying Role Assignment Principal Type
- How to avoid Decommissioned, Landing Zones and Sandboxes Management Groups creation HOT 2
- Bug Report: Policy Sets not found in Azure Government HOT 3
- Unable to associate NSG's with Subnets
- Importing Subscriptions into Management Groups HOT 2
- Bug Report : Unable to create policy for custom landing zone HOT 6
- Bug Report/ How to : Not able to create Custom Policy definition and assignment using Custom Landing Zones HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-azurerm-caf-enterprise-scale.