-
Notifications
You must be signed in to change notification settings - Fork 913
Reconciling azure terraform state with what is actually deployed to azure #8454
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
base: main
Are you sure you want to change the base?
Reconciling azure terraform state with what is actually deployed to azure #8454
Conversation
Signed-off-by: Mark Rossetti <[email protected]>
Signed-off-by: ritikaguptams <[email protected]>
…he sub Signed-off-by: Mark Rossetti <[email protected]>
Signed-off-by: Mark Rossetti <[email protected]>
Signed-off-by: Mark Rossetti <[email protected]>
OK - These changes should be ready to review. Now when I run
One is just a casing issue (dnszones -> dnsZones) and the other is a deleted tag but the tag is in the terraform config so I'm not entirely sure what is going on with that... |
/assign @jsturtevant @jackfrancis @nojnhuh |
Signed-off-by: Mark Rossetti <[email protected]>
I'm adding the terraform lock file because this is recommended by terraform
|
variable "subscription_id" { | ||
type = string | ||
default = "46678f10-4bbb-447e-98e8-d2829589f2d8" | ||
description = "Azure Subscription ID to use for the azurerm provider." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure why you added this specifically, but I just a note that I had to still switch my az cli
login to the correct sub to run terraform init
. But this does make it clear that this is the sub we wish to be operating on in the rest of the scripts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was having issues where terraform wasn't picking up the subscription from my az cli login context.
I don't remember what exactly the error was but this fixed it.
/lgtm |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jsturtevant, marosset The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/assign @ameukam @BenTheElder @dims |
There has been a lot of drift between what is actually deployed in the azure CNCF sub and what is listed in the terraform config and this PR aims to reconcile that.
There were a few PRs that went stale such as
As well as other updates to address breaking changes in the terraform resource specifications.