Skip to content

Test database added#13

Merged
st185229 merged 1 commit into
masterfrom
tf-nordcloud
Mar 13, 2021
Merged

Test database added#13
st185229 merged 1 commit into
masterfrom
tf-nordcloud

Conversation

@st185229
Copy link
Copy Markdown
Owner

No description provided.

@st185229 st185229 temporarily deployed to production March 13, 2021 22:25 Inactive
@github-actions
Copy link
Copy Markdown

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Plan 📖success

Show Plan ```terraform Running plan in the remote backend. Output will stream here. Pressing Ctrl-C will stop streaming the logs, but will not stop the plan running remotely.

Preparing the remote plan...

The remote workspace is configured to work with configuration at
terraform/notejam-tf relative to the target repository.

Terraform will upload the contents of the following directory,
excluding files or directories as defined by a .terraformignore file
at /home/runner/work/notejam/notejam/.terraformignore (if it is present),
in order to capture the filesystem context the remote workspace expects:
/home/runner/work/notejam/notejam

To view this run in a browser, visit:
https://app.terraform.io/app/notejam/notejam/runs/run-7tPLkFegfGuxX6tF

Waiting for the plan to start...

Terraform v0.14.8
Configuring remote state backend...
Initializing Terraform configuration...
tls_private_key.bastian_ssh: Refreshing state... [id=6512ea7bb2f0b46360a668a2c7233ecfcf6ab734]
module.app-cluster.random_id.log_analytics_workspace_name_suffix: Refreshing state... [id=PclsvXTaEeU]
azurerm_resource_group.rg_acr: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-acr]
azurerm_resource_group.rg_spoke: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-app]
module.app-cluster.azurerm_resource_group.k8s: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-app]
azurerm_resource_group.rg_hub: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-hub-network]
module.app-datbase-server.azurerm_resource_group.rg_db: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-notejam-db]
azurerm_container_registry.acr-nodejan: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-acr/providers/Microsoft.ContainerRegistry/registries/acrnoedjam]
module.app-cluster.azurerm_log_analytics_workspace.notejam: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-app/providers/Microsoft.OperationalInsights/workspaces/ws-notejam-4452209267597513189]
module.app-datbase-server.azurerm_mysql_server.mysqlserver: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-notejam-db/providers/Microsoft.DBforMySQL/servers/nordcloud-mysqlserver]
azurerm_virtual_network.hub_vnet: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-hub-network/providers/Microsoft.Network/virtualNetworks/hubVirtualNetwork]
azurerm_network_security_group.hub_nsg: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-hub-network/providers/Microsoft.Network/networkSecurityGroups/hubSecurityGroup]
random_id.randomId: Refreshing state... [id=Hvle0QLFeH8]
azurerm_public_ip.bastian_public_ip: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-hub-network/providers/Microsoft.Network/publicIPAddresses/bastianPubIP]
azurerm_network_security_group.ssh-80-8080: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-hub-network/providers/Microsoft.Network/networkSecurityGroups/bastian-jenkins-sg]
azurerm_virtual_network.app_vnet: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-app/providers/Microsoft.Network/virtualNetworks/spokeVirtualNetwork]
azurerm_network_security_group.app_nsg: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-app/providers/Microsoft.Network/networkSecurityGroups/appSecurityGroup]
azurerm_storage_account.nordcloudstorageaccount: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-hub-network/providers/Microsoft.Storage/storageAccounts/diag1ef95ed102c5787f]
module.app-db.azurerm_mysql_database.db: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-notejam-db/providers/Microsoft.DBforMySQL/servers/nordcloud-mysqlserver/databases/dbnotejam]
azurerm_network_security_rule.allow80: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-hub-network/providers/Microsoft.Network/networkSecurityGroups/bastian-jenkins-sg/securityRules/HTTP_80]
azurerm_network_security_rule.allow8080: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-hub-network/providers/Microsoft.Network/networkSecurityGroups/bastian-jenkins-sg/securityRules/HTTP_8080]
azurerm_virtual_network_peering.Spoke1ToHub: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-app/providers/Microsoft.Network/virtualNetworks/spokeVirtualNetwork/virtualNetworkPeerings/peerStoH]
azurerm_virtual_network_peering.HubToSpoke1: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-hub-network/providers/Microsoft.Network/virtualNetworks/hubVirtualNetwork/virtualNetworkPeerings/peerHtoS]
azurerm_role_assignment.acr-nodejan: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-acr/providers/Microsoft.ContainerRegistry/registries/acrnoedjam/providers/Microsoft.Authorization/roleAssignments/70359c31-cb25-359e-7be3-24ac9f87f24b]
module.app-cluster.azurerm_log_analytics_solution.notejam: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourcegroups/rg-app/providers/Microsoft.OperationsManagement/solutions/ContainerInsights(ws-notejam-4452209267597513189)]
module.app-cluster.azurerm_kubernetes_cluster.k8s: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourcegroups/rg-app/providers/Microsoft.ContainerService/managedClusters/aks-notejam]
azurerm_network_interface.bastian_nic: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-hub-network/providers/Microsoft.Network/networkInterfaces/bastianNIC]
azurerm_network_interface_security_group_association.nsg_associate: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-hub-network/providers/Microsoft.Network/networkInterfaces/bastianNIC|/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-hub-network/providers/Microsoft.Network/networkSecurityGroups/bastian-jenkins-sg]
azurerm_linux_virtual_machine.bastian_jenkins_vm: Refreshing state... [id=/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-hub-network/providers/Microsoft.Compute/virtualMachines/bastjenknc]

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:

  • create
    ~ update in-place

Terraform will perform the following actions:

azurerm_network_security_group.ssh-80-8080 will be updated in-place

~ resource "azurerm_network_security_group" "ssh-80-8080" {
id = "/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-hub-network/providers/Microsoft.Network/networkSecurityGroups/bastian-jenkins-sg"
name = "bastian-jenkins-sg"
~ security_rule = [
- {
- access = "Allow"
- description = ""
- destination_address_prefix = ""
- destination_address_prefixes = []
- destination_application_security_group_ids = []
- destination_port_range = "22"
- destination_port_ranges = []
- direction = "Inbound"
- name = "SSH"
- priority = 1001
- protocol = "Tcp"
- source_address_prefix = "
"
- source_address_prefixes = []
- source_application_security_group_ids = []
- source_port_range = ""
- source_port_ranges = []
},
- {
- access = "Allow"
- description = ""
- destination_address_prefix = "
"
- destination_address_prefixes = []
- destination_application_security_group_ids = []
- destination_port_range = "80"
- destination_port_ranges = []
- direction = "Inbound"
- name = "HTTP_80"
- priority = 1003
- protocol = "Tcp"
- source_address_prefix = ""
- source_address_prefixes = []
- source_application_security_group_ids = []
- source_port_range = "
"
- source_port_ranges = []
},
- {
- access = "Allow"
- description = ""
- destination_address_prefix = ""
- destination_address_prefixes = []
- destination_application_security_group_ids = []
- destination_port_range = "8080"
- destination_port_ranges = []
- direction = "Inbound"
- name = "HTTP_8080"
- priority = 1002
- protocol = "Tcp"
- source_address_prefix = "
"
- source_address_prefixes = []
- source_application_security_group_ids = []
- source_port_range = ""
- source_port_ranges = []
},
+ {
+ access = "Allow"
+ description = null
+ destination_address_prefix = "
"
+ destination_address_prefixes = []
+ destination_application_security_group_ids = []
+ destination_port_range = "22"
+ destination_port_ranges = []
+ direction = "Inbound"
+ name = "SSH"
+ priority = 1001
+ protocol = "Tcp"
+ source_address_prefix = ""
+ source_address_prefixes = []
+ source_application_security_group_ids = []
+ source_port_range = "
"
+ source_port_ranges = []
},
]
tags = {
"environment" = "nordcloud notejam test"
}
# (2 unchanged attributes hidden)
}

azurerm_public_ip.bastian_public_ip will be updated in-place

~ resource "azurerm_public_ip" "bastian_public_ip" {
~ allocation_method = "Static" -> "Dynamic"
id = "/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-hub-network/providers/Microsoft.Network/publicIPAddresses/bastianPubIP"
name = "bastianPubIP"
tags = {
"environment" = "nordcloud notejam test"
}
# (7 unchanged attributes hidden)
}

azurerm_virtual_network_peering.Spoke1ToHub will be created

  • resource "azurerm_virtual_network_peering" "Spoke1ToHub" {
    • allow_forwarded_traffic = (known after apply)
    • allow_gateway_transit = (known after apply)
    • allow_virtual_network_access = true
    • id = (known after apply)
    • name = "peerStoH"
    • remote_virtual_network_id = "/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-hub-network/providers/Microsoft.Network/virtualNetworks/hubVirtualNetwork"
    • resource_group_name = "rg-app"
    • use_remote_gateways = (known after apply)
    • virtual_network_name = "spokeVirtualNetwork"
      }

module.app-cluster.azurerm_kubernetes_cluster.k8s will be updated in-place

~ resource "azurerm_kubernetes_cluster" "k8s" {
id = "/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourcegroups/rg-app/providers/Microsoft.ContainerService/managedClusters/aks-notejam"
name = "aks-notejam"
tags = {
"environment" = "nordcloud notejam test"
}
# (20 unchanged attributes hidden)

  ~ addon_profile {

      - kube_dashboard {
          - enabled = false -> null
        }

        # (1 unchanged block hidden)
    }





    # (5 unchanged blocks hidden)
}

module.app-cluster.azurerm_resource_group.k8s will be updated in-place

~ resource "azurerm_resource_group" "k8s" {
id = "/subscriptions/81432554-220c-405f-9b16-8c1ef66ecfe5/resourceGroups/rg-app"
name = "rg-app"
~ tags = {
- "environment" = "nordcloud notejam test" -> null
}
# (1 unchanged attribute hidden)
}

module.test-db.azurerm_mysql_database.db will be created

  • resource "azurerm_mysql_database" "db" {
    • charset = "utf8"
    • collation = "utf8_unicode_ci"
    • id = (known after apply)
    • name = "testdbnotejam"
    • resource_group_name = "rg-notejam-db"
    • server_name = "nordcloud-mysqlserver"
      }

Plan: 2 to add, 4 to change, 0 to destroy.

</details>
*Pusher: @st185229, Action: `pull_request`*

@st185229 st185229 merged commit 4cef6d2 into master Mar 13, 2021
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.

1 participant