-
Notifications
You must be signed in to change notification settings - Fork 57
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
Shanice/upgrade terraform #8102
base: main
Are you sure you want to change the base?
Conversation
… data.log_analytics_workspace_id covers this configuration
Currently smoke testing |
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.
Unfortunately, if we want to push a full upgrade, there is still additional work to do. 1.9.6 was released yesterday.
with: | ||
terraform_version: 1.3.3 | ||
terraform_version: 1.9.5 |
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.
Heads up, applicable to all files: TF is now on version 1.9.6.
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.
Changes made to 1.9.6
@@ -85,9 +85,9 @@ runs: | |||
run: ./build_and_push.sh | |||
|
|||
- name: Terraform setup | |||
uses: hashicorp/setup-terraform@v2.0.3 | |||
uses: hashicorp/setup-terraform@v3.1.1 |
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.
Heads up, applicable to all files: setup-terraform
is now on version 3.1.2.
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.
Changes made to 3.1.2
@@ -6,18 +6,10 @@ resource "azurerm_monitor_diagnostic_setting" "collect_appserviceconsolelogs" { | |||
|
|||
enabled_log { | |||
category = "AppServiceConsoleLogs" | |||
retention_policy { |
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.
To clarify... are we removing this because it is deprecated? 🤔
And are we not replacing it with azurerm_storage_management_policy
as suggested because it is being deprecated in v4? See also (https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/migrate-to-azure-storage-lifecycle-policy?tabs=portal)
With this being removed, is there any way to configure this or are we relying on some defaults somewhere? 👀
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.
This is a good callout. We can't change retention policies for logs without threatening our ATO. Definitely need to make sure we're accounting for it somewhere.
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.
Due to this PR only upgrading terraform
and setup-terraform
and not the azure provider, we're fine because we're still using hashicorp/azurerm 3.100.0
. In the PR I'll push out after this one, I'll address all of the deprecated attributes. The attributes that come up as not supported would affect this PR
In the ticket for the azurerm provider upgrade, I added your comment in the details so I'll make sure its included and verify it stays within the requirements of the ATO. Thank you both for bringing this to my attention, good catch.
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'm not so sure that logic makes sense. If you change the code here, you will change the retention policy, regardless of whether you are just intending to upgrade provider versions.
Take a look at your most recent deploy: https://github.com/CDCgov/prime-simplereport/actions/runs/10953277197/job/30413331322#step:3:1
The terraform apply
phase shows multiple places where we can see retention adjustments. There are also places where OMHS-placed tags are getting blown away. I don't think these changes can be propagated up to Prod in their current state.
Can we figure out what's going on here before we proceed further?
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 misunderstood, and agree with waiting to push this forward. The resource @emyl3 referenced has to be added and figure out why the OMHS-placed tags are being removed during terraform apply.
Quality Gate passedIssues Measures |
DEVOPS PULL REQUEST
Related Issue
Changes Proposed
Additional Information
Testing
Deployed the changes to the following environments [
dev1
,dev4
,dev2
,dev3
] and completed smoke testingThe following workflows have been tested on the environments mentioned above: