-
Notifications
You must be signed in to change notification settings - Fork 5
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
[CES-36] - Unify terraform state files location #1254
Open
christian-calabrese
wants to merge
3
commits into
main
Choose a base branch
from
CES-36-unify-terraform-state-location
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
christian-calabrese
temporarily deployed
to
prod-ci
October 22, 2024 09:19
— with
GitHub Actions
Inactive
christian-calabrese
had a problem deploying
to
prod-ci
October 22, 2024 09:19
— with
GitHub Actions
Failure
christian-calabrese
had a problem deploying
to
prod-ci
October 22, 2024 09:19
— with
GitHub Actions
Failure
christian-calabrese
temporarily deployed
to
prod-ci
October 22, 2024 09:19
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
October 22, 2024 09:19
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
October 22, 2024 09:19
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
October 22, 2024 09:19
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
October 22, 2024 09:19
— with
GitHub Actions
Inactive
christian-calabrese
had a problem deploying
to
prod-ci
October 22, 2024 09:19
— with
GitHub Actions
Failure
Terraform Plan ('src/domains/eucovidcert/prod/westeurope') 📖Terraform Planmodule.function_apps.data.azurerm_linux_function_app.function_services[0]: Still reading... [10s elapsed]
module.function_apps.data.azurerm_linux_function_app.function_services[1]: Still reading... [10s elapsed]
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# module.function_apps.module.function_eucovidcert.azurerm_linux_function_app.this will be updated in-place
~ resource "azurerm_linux_function_app" "this" {
id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-eucovidcert/providers/Microsoft.Web/sites/io-p-eucovidcert-fn"
name = "io-p-eucovidcert-fn"
tags = {
"CostCenter" = "TS310 - PAGAMENTI & SERVIZI"
"CreatedBy" = "Terraform"
"Environment" = "Prod"
"ManagementTeam" = "IO Wallet"
"Owner" = "IO"
"Source" = "https://github.com/pagopa/io-infra/blob/main/src/domains/eucovidcert/prod/westeurope"
}
# (32 unchanged attributes hidden)
~ site_config {
~ health_check_eviction_time_in_min = 0 -> 10
# (30 unchanged attributes hidden)
# (6 unchanged blocks hidden)
}
# (1 unchanged block hidden)
}
# module.function_apps.module.function_eucovidcert_staging_slot.azurerm_linux_function_app_slot.this will be updated in-place
~ resource "azurerm_linux_function_app_slot" "this" {
id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-eucovidcert/providers/Microsoft.Web/sites/io-p-eucovidcert-fn/slots/staging"
name = "staging"
# Warning: this attribute value will no longer be marked as sensitive
# after applying this change. The value is unchanged.
~ storage_account_name = (sensitive value)
tags = {
"CostCenter" = "TS310 - PAGAMENTI & SERVIZI"
"CreatedBy" = "Terraform"
"Environment" = "Prod"
"ManagementTeam" = "IO Wallet"
"Owner" = "IO"
"Source" = "https://github.com/pagopa/io-infra/blob/main/src/domains/eucovidcert/prod/westeurope"
}
# (29 unchanged attributes hidden)
~ site_config {
~ health_check_eviction_time_in_min = 0 -> 10
# (31 unchanged attributes hidden)
# (7 unchanged blocks hidden)
}
}
Plan: 0 to add, 2 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────
Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.
|
christian-calabrese
temporarily deployed
to
prod-ci
October 22, 2024 10:34
— with
GitHub Actions
Inactive
christian-calabrese
had a problem deploying
to
prod-ci
October 22, 2024 10:34
— with
GitHub Actions
Failure
christian-calabrese
had a problem deploying
to
prod-ci
October 22, 2024 10:34
— with
GitHub Actions
Failure
christian-calabrese
temporarily deployed
to
prod-ci
October 22, 2024 10:34
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
October 22, 2024 10:34
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
October 22, 2024 10:34
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
October 22, 2024 10:34
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
October 22, 2024 10:34
— with
GitHub Actions
Inactive
christian-calabrese
had a problem deploying
to
prod-ci
October 22, 2024 10:34
— with
GitHub Actions
Failure
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 10:06
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 10:06
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 10:06
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 10:06
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 10:06
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 10:06
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 10:06
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 11:04
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 11:04
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 11:04
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 11:04
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 11:04
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 11:04
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 11:04
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 11:04
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 11:04
— with
GitHub Actions
Inactive
christian-calabrese
force-pushed
the
CES-36-unify-terraform-state-location
branch
from
November 5, 2024 13:56
df0a762
to
4ec12c7
Compare
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 13:56
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 13:56
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 13:56
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 13:56
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 13:56
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 13:56
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 13:56
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 13:56
— with
GitHub Actions
Inactive
christian-calabrese
temporarily deployed
to
prod-ci
November 5, 2024 13:56
— with
GitHub Actions
Inactive
Quality Gate passedIssues Measures |
📖 Terraform Plan ('src/load-test/prod') - successTerraform PlanTerraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# azurerm_load_test.weu_common will be created
+ resource "azurerm_load_test" "weu_common" {
+ data_plane_uri = (known after apply)
+ description = "A Load Test resource with access to IO Prod environment to test private components"
+ id = (known after apply)
+ location = "westeurope"
+ name = "io-p-weu-common-lt-01"
+ resource_group_name = "io-p-weu-load-test-rg-01"
+ tags = {
+ "CostCenter" = "TS310 - PAGAMENTI & SERVIZI"
+ "CreatedBy" = "Terraform"
+ "Environment" = "Prod"
+ "Owner" = "IO"
+ "Source" = "https://github.com/pagopa/io-infra/blob/main/src/load-test/prod"
}
+ identity {
+ principal_id = (known after apply)
+ tenant_id = (known after apply)
+ type = "SystemAssigned"
}
}
# azurerm_private_dns_zone_virtual_network_link.azurewebsites_private_vnet_itn_common will be created
+ resource "azurerm_private_dns_zone_virtual_network_link" "azurewebsites_private_vnet_itn_common" {
+ id = (known after apply)
+ name = "io-p-weu-load-test-vnet-01"
+ private_dns_zone_name = "privatelink.azurewebsites.net"
+ registration_enabled = false
+ resource_group_name = "io-p-rg-common"
+ tags = {
+ "CostCenter" = "TS310 - PAGAMENTI & SERVIZI"
+ "CreatedBy" = "Terraform"
+ "Environment" = "Prod"
+ "Owner" = "IO"
+ "Source" = "https://github.com/pagopa/io-infra/blob/main/src/load-test/prod"
}
+ virtual_network_id = (known after apply)
}
# azurerm_resource_group.load_test will be created
+ resource "azurerm_resource_group" "load_test" {
+ id = (known after apply)
+ location = "westeurope"
+ name = "io-p-weu-load-test-rg-01"
+ tags = {
+ "CostCenter" = "TS310 - PAGAMENTI & SERVIZI"
+ "CreatedBy" = "Terraform"
+ "Environment" = "Prod"
+ "Owner" = "IO"
+ "Source" = "https://github.com/pagopa/io-infra/blob/main/src/load-test/prod"
}
}
# azurerm_subnet.weu_load_test will be created
+ resource "azurerm_subnet" "weu_load_test" {
+ address_prefixes = [
+ "10.40.0.0/26",
]
+ enforce_private_link_endpoint_network_policies = (known after apply)
+ enforce_private_link_service_network_policies = (known after apply)
+ id = (known after apply)
+ name = "io-p-weu-load-test-snet-01"
+ private_endpoint_network_policies = (known after apply)
+ private_endpoint_network_policies_enabled = (known after apply)
+ private_link_service_network_policies_enabled = (known after apply)
+ resource_group_name = "io-p-weu-load-test-rg-01"
+ virtual_network_name = "io-p-weu-load-test-vnet-01"
}
# azurerm_virtual_network.weu_load_test will be created
+ resource "azurerm_virtual_network" "weu_load_test" {
+ address_space = [
+ "10.40.0.0/22",
]
+ dns_servers = (known after apply)
+ guid = (known after apply)
+ id = (known after apply)
+ location = "westeurope"
+ name = "io-p-weu-load-test-vnet-01"
+ resource_group_name = "io-p-weu-load-test-rg-01"
+ subnet = (known after apply)
+ tags = {
+ "CostCenter" = "TS310 - PAGAMENTI & SERVIZI"
+ "CreatedBy" = "Terraform"
+ "Environment" = "Prod"
+ "Owner" = "IO"
+ "Source" = "https://github.com/pagopa/io-infra/blob/main/src/load-test/prod"
}
}
# azurerm_virtual_network_peering.weu_common will be created
+ resource "azurerm_virtual_network_peering" "weu_common" {
+ allow_forwarded_traffic = false
+ allow_gateway_transit = false
+ allow_virtual_network_access = true
+ id = (known after apply)
+ name = "io-p-vnet-common-to-io-p-weu-load-test-vnet-01-peer"
+ remote_virtual_network_id = (known after apply)
+ resource_group_name = "io-p-rg-common"
+ use_remote_gateways = false
+ virtual_network_name = "io-p-vnet-common"
}
# azurerm_virtual_network_peering.weu_load_test will be created
+ resource "azurerm_virtual_network_peering" "weu_load_test" {
+ allow_forwarded_traffic = false
+ allow_gateway_transit = false
+ allow_virtual_network_access = false
+ id = (known after apply)
+ name = "io-p-weu-load-test-vnet-01-to-io-p-vnet-common-peer"
+ remote_virtual_network_id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-rg-common/providers/Microsoft.Network/virtualNetworks/io-p-vnet-common"
+ resource_group_name = "io-p-weu-load-test-rg-01"
+ use_remote_gateways = false
+ virtual_network_name = "io-p-weu-load-test-vnet-01"
}
Plan: 7 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ load_test_weu_common = {
+ id = (known after apply)
+ location = "westeurope"
+ name = "io-p-weu-common-lt-01"
+ principal_id = (known after apply)
}
─────────────────────────────────────────────────────────────────────────────
Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now. |
📖 Terraform Plan ('src/domains/elt/prod') - successTerraform PlanTerraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# module.function_apps.module.function_elt.azurerm_linux_function_app.this will be updated in-place
~ resource "azurerm_linux_function_app" "this" {
~ app_settings = {
~ "COSMOSDB_REPLICA_URI" = "https://io-p-cosmos-api.documents.azure.com:443/" -> "https://io-p-cosmos-api-northeurope.documents.azure.com:443/"
# (110 unchanged elements hidden)
}
id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-elt-rg/providers/Microsoft.Web/sites/io-p-fn-elt"
name = "io-p-fn-elt"
tags = {
"CostCenter" = "TS310 - PAGAMENTI & SERVIZI"
"CreatedBy" = "Terraform"
"Environment" = "Prod"
"ManagementTeam" = "IO Platform"
"Owner" = "IO"
"Source" = "https://github.com/pagopa/io-infra/blob/main/src/domains/elt/prod"
}
# (31 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
# module.function_apps.module.function_elt.azurerm_service_plan.this[0] will be updated in-place
~ resource "azurerm_service_plan" "this" {
id = "/subscriptions/ec285037-c673-4f58-b594-d7c480da4e8b/resourceGroups/io-p-elt-rg/providers/Microsoft.Web/serverFarms/io-p-plan-fnelt"
~ maximum_elastic_worker_count = 3 -> 1
name = "io-p-plan-fnelt"
tags = {
"CostCenter" = "TS310 - PAGAMENTI & SERVIZI"
"CreatedBy" = "Terraform"
"Environment" = "Prod"
"ManagementTeam" = "IO Platform"
"Owner" = "IO"
"Source" = "https://github.com/pagopa/io-infra/blob/main/src/domains/elt/prod"
}
# (10 unchanged attributes hidden)
}
Plan: 0 to add, 2 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────
Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Terraform state files are currently placed in different storage accounts.
Starting from io-infra, it is necessary to unify the location of those state files and place them in Italy North.
Major Changes
Pointing all the terraform configurations of io-infra to the storage account in Italy North called
iopitntfst001
Dependencies
Testing
Documentation
Other Considerations