Skip to content

fix(infra): fix tf bug on lifecycle#70

Open
yaylymov wants to merge 3 commits into
mainfrom
fix-69-fix-pipeline
Open

fix(infra): fix tf bug on lifecycle#70
yaylymov wants to merge 3 commits into
mainfrom
fix-69-fix-pipeline

Conversation

@yaylymov

Copy link
Copy Markdown
Collaborator

This is a PR to fix our CD pipelines

Closes #69

@yaylymov yaylymov self-assigned this Jun 21, 2026
@yaylymov yaylymov added the bug Something isn't working label Jun 21, 2026
@yaylymov yaylymov linked an issue Jun 21, 2026 that may be closed by this pull request
@github-actions

Copy link
Copy Markdown

Terraform plan success

Show plan
Acquiring state lock. This may take a few moments...

Terraform 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_linux_virtual_machine.vm will be created
  + resource "azurerm_linux_virtual_machine" "vm" {
      + admin_username                                         = "azureuser"
      + allow_extension_operations                             = (known after apply)
      + bypass_platform_safety_checks_on_user_schedule_enabled = false
      + computer_name                                          = (known after apply)
      + disable_password_authentication                        = true
      + disk_controller_type                                   = (known after apply)
      + extensions_time_budget                                 = "PT1H30M"
      + id                                                     = (known after apply)
      + location                                               = "polandcentral"
      + max_bid_price                                          = -1
      + name                                                   = "team-team-dev-vm"
      + network_interface_ids                                  = (known after apply)
      + os_managed_disk_id                                     = (known after apply)
      + patch_assessment_mode                                  = (known after apply)
      + patch_mode                                             = (known after apply)
      + platform_fault_domain                                  = -1
      + priority                                               = "Regular"
      + private_ip_address                                     = (known after apply)
      + private_ip_addresses                                   = (known after apply)
      + provision_vm_agent                                     = (known after apply)
      + public_ip_address                                      = (known after apply)
      + public_ip_addresses                                    = (known after apply)
      + resource_group_name                                    = "team-team-dev-rg"
      + size                                                   = "Standard_B4s_v2"
      + tags                                                   = {
          + "environment" = "dev"
          + "managed"     = "terraform"
          + "project"     = "team-team"
        }
      + virtual_machine_id                                     = (known after apply)
      + vm_agent_platform_updates_enabled                      = (known after apply)

      + admin_ssh_key {
          + public_key = <<-EOT
                ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDOQfH+3wtrL89OEjd1/vodU2RUeJgRgHyLaAJAyee/6euOE6KkSUfUC3r3RhNObLdMADnqhqQ5TgPvD+uYBEHUn0dvRHe4GwmzfMXKUHXnfhZPT0/QS/sO6c0SwFjOGmKrZZIiFGFWpnFLUs3SObg7UW+NfXB9/aGfVHTGiRa3qq3XVKhXFWLyDPpJgJKzgM0j8eUClPWk7t3h7N3II9NPEDipILGUshFIovMU6UPPlG+Ri2JC9AHVNwvd9a23kY39P3gmjIz1yJfpXtDPbvVG4sE0CnBVBhPgifPo0eTMQUz7WcxTtDjlHAN2qYQFkSp2X0QpEUV/e5b8jDV69UZafsOdlM4fbl8fo8Z5c7NLAJcHzGMG8dIGcW3cuoYGD+QMgjSgdARd0zk+cjBdQ4iXI9q6hPOJFn+5KyQhWFW+sKJyljh64UEMly9vb8BpzUwnWWgNt8r1EJY4DkqD0tlMbwAEFJ9pibgSMESt1Q6vKc5sm/k2wXsAxNRYXEAjai0TCpJ/5FUmCqI+8WJrnwhS6Ibxn988bqVwa5Y1dsrc8aIsxXc6PQ/F4GHN6Rk17czEIj++sN8yligEAt0AcBvpEmnBmzppoCah+CprVNfP6RL0cseDuGZPnbwZo2BS1eYIDQzaTV9kgvd1eTQYbu/MK+OV39ZtoX1nyiKZIPbvJQ==
            EOT
          + username   = "azureuser"
        }

      + os_disk {
          + caching                   = "ReadWrite"
          + disk_size_gb              = 64
          + id                        = (known after apply)
          + name                      = "team-team-dev-osdisk"
          + storage_account_type      = "StandardSSD_LRS"
          + write_accelerator_enabled = false
        }

      + source_image_reference {
          + offer     = "ubuntu-24_04-lts"
          + publisher = "Canonical"
          + sku       = "server"
          + version   = "latest"
        }

      + termination_notification (known after apply)
    }

  # azurerm_network_interface.nic will be created
  + resource "azurerm_network_interface" "nic" {
      + accelerated_networking_enabled = false
      + applied_dns_servers            = (known after apply)
      + id                             = (known after apply)
      + internal_domain_name_suffix    = (known after apply)
      + ip_forwarding_enabled          = false
      + location                       = "polandcentral"
      + mac_address                    = (known after apply)
      + name                           = "team-team-dev-nic"
      + private_ip_address             = (known after apply)
      + private_ip_addresses           = (known after apply)
      + resource_group_name            = "team-team-dev-rg"
      + tags                           = {
          + "environment" = "dev"
          + "managed"     = "terraform"
          + "project"     = "team-team"
        }
      + virtual_machine_id             = (known after apply)

      + ip_configuration {
          + gateway_load_balancer_frontend_ip_configuration_id = (known after apply)
          + name                                               = "primary"
          + primary                                            = (known after apply)
          + private_ip_address                                 = (known after apply)
          + private_ip_address_allocation                      = "Dynamic"
          + private_ip_address_version                         = "IPv4"
          + public_ip_address_id                               = (known after apply)
          + subnet_id                                          = (known after apply)
        }
    }

  # azurerm_network_interface_security_group_association.nic_nsg will be created
  + resource "azurerm_network_interface_security_group_association" "nic_nsg" {
      + id                        = (known after apply)
      + network_interface_id      = (known after apply)
      + network_security_group_id = (known after apply)
    }

  # azurerm_network_security_group.nsg will be created
  + resource "azurerm_network_security_group" "nsg" {
      + id                  = (known after apply)
      + location            = "polandcentral"
      + name                = "team-team-dev-nsg"
      + resource_group_name = "team-team-dev-rg"
      + security_rule       = [
          + {
              + access                                     = "Allow"
              + destination_address_prefix                 = "*"
              + destination_address_prefixes               = []
              + destination_application_security_group_ids = []
              + destination_port_range                     = "22"
              + destination_port_ranges                    = []
              + direction                                  = "Inbound"
              + name                                       = "SSH"
              + priority                                   = 1000
              + protocol                                   = "Tcp"
              + source_address_prefix                      = "145.132.100.177/32"
              + source_address_prefixes                    = []
              + source_application_security_group_ids      = []
              + source_port_range                          = "*"
              + source_port_ranges                         = []
                # (1 unchanged attribute hidden)
            },
          + {
              + access                                     = "Allow"
              + destination_address_prefix                 = "*"
              + destination_address_prefixes               = []
              + destination_application_security_group_ids = []
              + destination_port_range                     = "443"
              + destination_port_ranges                    = []
              + direction                                  = "Inbound"
              + name                                       = "HTTPS"
              + priority                                   = 1020
              + protocol                                   = "Tcp"
              + source_address_prefix                      = "*"
              + source_address_prefixes                    = []
              + source_application_security_group_ids      = []
              + source_port_range                          = "*"
              + source_port_ranges                         = []
                # (1 unchanged attribute hidden)
            },
          + {
              + access                                     = "Allow"
              + destination_address_prefix                 = "*"
              + destination_address_prefixes               = []
              + destination_application_security_group_ids = []
              + destination_port_range                     = "80"
              + destination_port_ranges                    = []
              + direction                                  = "Inbound"
              + name                                       = "HTTP"
              + priority                                   = 1010
              + protocol                                   = "Tcp"
              + source_address_prefix                      = "*"
              + source_address_prefixes                    = []
              + source_application_security_group_ids      = []
              + source_port_range                          = "*"
              + source_port_ranges                         = []
                # (1 unchanged attribute hidden)
            },
        ]
      + tags                = {
          + "environment" = "dev"
          + "managed"     = "terraform"
          + "project"     = "team-team"
        }
    }

  # azurerm_public_ip.pip will be created
  + resource "azurerm_public_ip" "pip" {
      + allocation_method       = "Static"
      + ddos_protection_mode    = "VirtualNetworkInherited"
      + domain_name_label       = (known after apply)
      + fqdn                    = (known after apply)
      + id                      = (known after apply)
      + idle_timeout_in_minutes = 4
      + ip_address              = (known after apply)
      + ip_version              = "IPv4"
      + location                = "polandcentral"
      + name                    = "team-team-dev-pip"
      + resource_group_name     = "team-team-dev-rg"
      + sku                     = "Standard"
      + sku_tier                = "Regional"
      + tags                    = {
          + "environment" = "dev"
          + "managed"     = "terraform"
          + "project"     = "team-team"
        }
    }

  # azurerm_resource_group.rg will be created
  + resource "azurerm_resource_group" "rg" {
      + id       = (known after apply)
      + location = "polandcentral"
      + name     = "team-team-dev-rg"
      + tags     = {
          + "environment" = "dev"
          + "managed"     = "terraform"
          + "project"     = "team-team"
        }
    }

  # azurerm_subnet.subnet will be created
  + resource "azurerm_subnet" "subnet" {
      + address_prefixes                              = [
          + "10.30.1.0/24",
        ]
      + default_outbound_access_enabled               = true
      + id                                            = (known after apply)
      + name                                          = "team-team-dev-subnet"
      + private_endpoint_network_policies             = "Disabled"
      + private_link_service_network_policies_enabled = true
      + resource_group_name                           = "team-team-dev-rg"
      + virtual_network_name                          = "team-team-dev-vnet"
    }

  # azurerm_virtual_network.vnet will be created
  + resource "azurerm_virtual_network" "vnet" {
      + address_space                  = [
          + "10.30.0.0/16",
        ]
      + dns_servers                    = (known after apply)
      + guid                           = (known after apply)
      + id                             = (known after apply)
      + location                       = "polandcentral"
      + name                           = "team-team-dev-vnet"
      + private_endpoint_vnet_policies = "Disabled"
      + resource_group_name            = "team-team-dev-rg"
      + subnet                         = (known after apply)
      + tags                           = {
          + "environment" = "dev"
          + "managed"     = "terraform"
          + "project"     = "team-team"
        }
    }

  # local_file.ansible_inventory will be created
  + resource "local_file" "ansible_inventory" {
      + content              = (known after apply)
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0644"
      + filename             = "./../ansible/inventory.ini"
      + id                   = (known after apply)
    }

Plan: 9 to add, 0 to change, 0 to destroy.

Changes to Outputs:
  + fqdn           = (known after apply)
  + public_ip      = (known after apply)
  + resource_group = "team-team-dev-rg"
  + ssh_command    = (known after apply)
Releasing state lock. This may take a few moments...

@github-actions

Copy link
Copy Markdown

Terraform plan success

Show plan
Acquiring state lock. This may take a few moments...
azurerm_resource_group.rg: Refreshing state... [id=/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg]
azurerm_public_ip.pip: Refreshing state... [id=/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Network/publicIPAddresses/team-team-dev-pip]
azurerm_virtual_network.vnet: Refreshing state... [id=/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Network/virtualNetworks/team-team-dev-vnet]
azurerm_network_security_group.nsg: Refreshing state... [id=/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Network/networkSecurityGroups/team-team-dev-nsg]
azurerm_subnet.subnet: Refreshing state... [id=/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Network/virtualNetworks/team-team-dev-vnet/subnets/team-team-dev-subnet]
azurerm_network_interface.nic: Refreshing state... [id=/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Network/networkInterfaces/team-team-dev-nic]
azurerm_network_interface_security_group_association.nic_nsg: Refreshing state... [id=/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Network/networkInterfaces/team-team-dev-nic|/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Network/networkSecurityGroups/team-team-dev-nsg]
azurerm_linux_virtual_machine.vm: Refreshing state... [id=/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Compute/virtualMachines/team-team-dev-vm]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place

Terraform will perform the following actions:

  # azurerm_network_security_group.nsg will be updated in-place
  ~ resource "azurerm_network_security_group" "nsg" {
        id                  = "/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Network/networkSecurityGroups/team-team-dev-nsg"
        name                = "team-team-dev-nsg"
      ~ security_rule       = [
          - {
              - access                                     = "Allow"
              - destination_address_prefix                 = "*"
              - destination_address_prefixes               = []
              - destination_application_security_group_ids = []
              - destination_port_range                     = "22"
              - destination_port_ranges                    = []
              - direction                                  = "Inbound"
              - name                                       = "SSH"
              - priority                                   = 1000
              - protocol                                   = "Tcp"
              - source_address_prefix                      = "20.55.47.115/32"
              - source_address_prefixes                    = []
              - source_application_security_group_ids      = []
              - source_port_range                          = "*"
              - source_port_ranges                         = []
                # (1 unchanged attribute hidden)
            },
          - {
              - access                                     = "Allow"
              - destination_address_prefix                 = "*"
              - destination_address_prefixes               = []
              - destination_application_security_group_ids = []
              - destination_port_range                     = "443"
              - destination_port_ranges                    = []
              - direction                                  = "Inbound"
              - name                                       = "HTTPS"
              - priority                                   = 1020
              - protocol                                   = "Tcp"
              - source_address_prefix                      = "*"
              - source_address_prefixes                    = []
              - source_application_security_group_ids      = []
              - source_port_range                          = "*"
              - source_port_ranges                         = []
                # (1 unchanged attribute hidden)
            },
          - {
              - access                                     = "Allow"
              - destination_address_prefix                 = "*"
              - destination_address_prefixes               = []
              - destination_application_security_group_ids = []
              - destination_port_range                     = "80"
              - destination_port_ranges                    = []
              - direction                                  = "Inbound"
              - name                                       = "HTTP"
              - priority                                   = 1010
              - protocol                                   = "Tcp"
              - source_address_prefix                      = "*"
              - source_address_prefixes                    = []
              - source_application_security_group_ids      = []
              - source_port_range                          = "*"
              - source_port_ranges                         = []
                # (1 unchanged attribute hidden)
            },
          + {
              + access                                     = "Allow"
              + destination_address_prefix                 = "*"
              + destination_address_prefixes               = []
              + destination_application_security_group_ids = []
              + destination_port_range                     = "22"
              + destination_port_ranges                    = []
              + direction                                  = "Inbound"
              + name                                       = "SSH"
              + priority                                   = 1000
              + protocol                                   = "Tcp"
              + source_address_prefix                      = "20.169.74.48/32"
              + source_address_prefixes                    = []
              + source_application_security_group_ids      = []
              + source_port_range                          = "*"
              + source_port_ranges                         = []
                # (1 unchanged attribute hidden)
            },
          + {
              + access                                     = "Allow"
              + destination_address_prefix                 = "*"
              + destination_address_prefixes               = []
              + destination_application_security_group_ids = []
              + destination_port_range                     = "443"
              + destination_port_ranges                    = []
              + direction                                  = "Inbound"
              + name                                       = "HTTPS"
              + priority                                   = 1020
              + protocol                                   = "Tcp"
              + source_address_prefix                      = "*"
              + source_address_prefixes                    = []
              + source_application_security_group_ids      = []
              + source_port_range                          = "*"
              + source_port_ranges                         = []
            },
          + {
              + access                                     = "Allow"
              + destination_address_prefix                 = "*"
              + destination_address_prefixes               = []
              + destination_application_security_group_ids = []
              + destination_port_range                     = "80"
              + destination_port_ranges                    = []
              + direction                                  = "Inbound"
              + name                                       = "HTTP"
              + priority                                   = 1010
              + protocol                                   = "Tcp"
              + source_address_prefix                      = "*"
              + source_address_prefixes                    = []
              + source_application_security_group_ids      = []
              + source_port_range                          = "*"
              + source_port_ranges                         = []
            },
        ]
        tags                = {
            "environment" = "dev"
            "managed"     = "terraform"
            "project"     = "team-team"
        }
        # (2 unchanged attributes hidden)
    }

  # local_file.ansible_inventory will be created
  + resource "local_file" "ansible_inventory" {
      + content              = <<-EOT
            [app]
            74.248.37.27 ansible_user=azureuser ansible_ssh_private_key_file=ssh/id_rsa
            
            [app:vars]
            ansible_python_interpreter=/usr/bin/python3
            ansible_ssh_common_args='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
            app_fqdn=team-team-dev-7d5c6b.polandcentral.cloudapp.azure.com
            app_public_ip=74.248.37.27
        EOT
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0644"
      + filename             = "./../ansible/inventory.ini"
      + id                   = (known after apply)
    }

Plan: 1 to add, 1 to change, 0 to destroy.
Releasing state lock. This may take a few moments...

@github-actions

Copy link
Copy Markdown

Terraform plan success

Show plan
Acquiring state lock. This may take a few moments...
azurerm_resource_group.rg: Refreshing state... [id=/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg]
azurerm_public_ip.pip: Refreshing state... [id=/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Network/publicIPAddresses/team-team-dev-pip]
azurerm_virtual_network.vnet: Refreshing state... [id=/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Network/virtualNetworks/team-team-dev-vnet]
azurerm_network_security_group.nsg: Refreshing state... [id=/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Network/networkSecurityGroups/team-team-dev-nsg]
azurerm_subnet.subnet: Refreshing state... [id=/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Network/virtualNetworks/team-team-dev-vnet/subnets/team-team-dev-subnet]
azurerm_network_interface.nic: Refreshing state... [id=/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Network/networkInterfaces/team-team-dev-nic]
azurerm_network_interface_security_group_association.nic_nsg: Refreshing state... [id=/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Network/networkInterfaces/team-team-dev-nic|/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Network/networkSecurityGroups/team-team-dev-nsg]
azurerm_linux_virtual_machine.vm: Refreshing state... [id=/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Compute/virtualMachines/team-team-dev-vm]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place

Terraform will perform the following actions:

  # azurerm_network_security_group.nsg will be updated in-place
  ~ resource "azurerm_network_security_group" "nsg" {
        id                  = "/subscriptions/37846a99-b4f2-427d-b619-0b92987a5370/resourceGroups/team-team-dev-rg/providers/Microsoft.Network/networkSecurityGroups/team-team-dev-nsg"
        name                = "team-team-dev-nsg"
      ~ security_rule       = [
          - {
              - access                                     = "Allow"
              - destination_address_prefix                 = "*"
              - destination_address_prefixes               = []
              - destination_application_security_group_ids = []
              - destination_port_range                     = "22"
              - destination_port_ranges                    = []
              - direction                                  = "Inbound"
              - name                                       = "SSH"
              - priority                                   = 1000
              - protocol                                   = "Tcp"
              - source_address_prefix                      = "172.208.153.210/32"
              - source_address_prefixes                    = []
              - source_application_security_group_ids      = []
              - source_port_range                          = "*"
              - source_port_ranges                         = []
                # (1 unchanged attribute hidden)
            },
          - {
              - access                                     = "Allow"
              - destination_address_prefix                 = "*"
              - destination_address_prefixes               = []
              - destination_application_security_group_ids = []
              - destination_port_range                     = "443"
              - destination_port_ranges                    = []
              - direction                                  = "Inbound"
              - name                                       = "HTTPS"
              - priority                                   = 1020
              - protocol                                   = "Tcp"
              - source_address_prefix                      = "*"
              - source_address_prefixes                    = []
              - source_application_security_group_ids      = []
              - source_port_range                          = "*"
              - source_port_ranges                         = []
                # (1 unchanged attribute hidden)
            },
          - {
              - access                                     = "Allow"
              - destination_address_prefix                 = "*"
              - destination_address_prefixes               = []
              - destination_application_security_group_ids = []
              - destination_port_range                     = "80"
              - destination_port_ranges                    = []
              - direction                                  = "Inbound"
              - name                                       = "HTTP"
              - priority                                   = 1010
              - protocol                                   = "Tcp"
              - source_address_prefix                      = "*"
              - source_address_prefixes                    = []
              - source_application_security_group_ids      = []
              - source_port_range                          = "*"
              - source_port_ranges                         = []
                # (1 unchanged attribute hidden)
            },
          + {
              + access                                     = "Allow"
              + destination_address_prefix                 = "*"
              + destination_address_prefixes               = []
              + destination_application_security_group_ids = []
              + destination_port_range                     = "22"
              + destination_port_ranges                    = []
              + direction                                  = "Inbound"
              + name                                       = "SSH"
              + priority                                   = 1000
              + protocol                                   = "Tcp"
              + source_address_prefix                      = "172.183.94.128/32"
              + source_address_prefixes                    = []
              + source_application_security_group_ids      = []
              + source_port_range                          = "*"
              + source_port_ranges                         = []
                # (1 unchanged attribute hidden)
            },
          + {
              + access                                     = "Allow"
              + destination_address_prefix                 = "*"
              + destination_address_prefixes               = []
              + destination_application_security_group_ids = []
              + destination_port_range                     = "443"
              + destination_port_ranges                    = []
              + direction                                  = "Inbound"
              + name                                       = "HTTPS"
              + priority                                   = 1020
              + protocol                                   = "Tcp"
              + source_address_prefix                      = "*"
              + source_address_prefixes                    = []
              + source_application_security_group_ids      = []
              + source_port_range                          = "*"
              + source_port_ranges                         = []
            },
          + {
              + access                                     = "Allow"
              + destination_address_prefix                 = "*"
              + destination_address_prefixes               = []
              + destination_application_security_group_ids = []
              + destination_port_range                     = "80"
              + destination_port_ranges                    = []
              + direction                                  = "Inbound"
              + name                                       = "HTTP"
              + priority                                   = 1010
              + protocol                                   = "Tcp"
              + source_address_prefix                      = "*"
              + source_address_prefixes                    = []
              + source_application_security_group_ids      = []
              + source_port_range                          = "*"
              + source_port_ranges                         = []
            },
        ]
        tags                = {
            "environment" = "dev"
            "managed"     = "terraform"
            "project"     = "team-team"
        }
        # (2 unchanged attributes hidden)
    }

  # local_file.ansible_inventory will be created
  + resource "local_file" "ansible_inventory" {
      + content              = <<-EOT
            [app]
            74.248.37.27 ansible_user=azureuser ansible_ssh_private_key_file=ssh/id_rsa
            
            [app:vars]
            ansible_python_interpreter=/usr/bin/python3
            ansible_ssh_common_args='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
            app_fqdn=team-team-dev-7d5c6b.polandcentral.cloudapp.azure.com
            app_public_ip=74.248.37.27
        EOT
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0644"
      + filename             = "./../ansible/inventory.ini"
      + id                   = (known after apply)
    }

Plan: 1 to add, 1 to change, 0 to destroy.
Releasing state lock. This may take a few moments...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix pipeline

1 participant