Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task/dev275 tf upgrades #571

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Task/dev275 tf upgrades #571

wants to merge 20 commits into from

Conversation

m-juckes-pins
Copy link
Contributor

@m-juckes-pins m-juckes-pins commented Oct 22, 2024

Describe your changes

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide

Upgrading Terraform from version 3 -> 4.5.0

---- The flag is obsolete because the goal is to have each namespace AZ by default in the supported regions.
---- Registration: Some resource providers need to be registered manually before you can use them

Issue ticket number and link

Type of change 🧩

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Other (please explain in the description section above)

Checklist before requesting a review

  • I have performed a self-review of my own code
  • I have double checked this work does not include any hardcoded secrets or passwords
  • I have made corresponding changes to the documentation
  • I have provided details on how I have tested my code
  • I have referenced the ticket number above
  • I have provided a description of the ticket
  • I have included unit tests to cover any testable code changes

@m-juckes-pins
Copy link
Contributor Author

Had to delete the .terraform folder and then re-run tf init as it was erroring

@@ -97,8 +97,8 @@ module "app_api" {
}

providers = {
azurerm = azurerm
azurerm.tooling = azurerm.tooling
Copy link
Contributor Author

@m-juckes-pins m-juckes-pins Oct 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This couldn't pass the validation with it in

│ Error: Cannot override provider configuration 
│ 
│   on app-api.tf line 101, in module "app_api":
│  101:     azurerm.tooling = azurerm.tooling   
│ 
│ The configuration of module.app_api has its own local configuration for azurerm.tooling, and so it cannot accept an overridden configuration provided by the root module.

@m-juckes-pins

This comment was marked as outdated.

@m-juckes-pins
Copy link
Contributor Author

Tflint needs to be at root level also for it to work with pre-commits

@m-juckes-pins

This comment was marked as outdated.

skip_provider_registration = true
alias = "horizon"
subscription_id = var.horizon_infra_config.subscription_id
resource_provider_registrations = "none"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants