Skip to content

Commit

Permalink
terraform-1 v.1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
117thDragon committed Nov 11, 2023
1 parent 7c0f703 commit 7cd91b6
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 39 deletions.
16 changes: 8 additions & 8 deletions terraform/main.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#terraform {
# required_providers {
# yandex = {
# source = "yandex-cloud/yandex"
# }
# }
# required_version = ">= 0.13"
#}
terraform {
required_providers {
yandex = {
source = "yandex-cloud/yandex"
}
}
required_version = ">= 0.13"
}

provider "yandex" {
service_account_key_file = var.service_account_key_file
Expand Down
56 changes: 28 additions & 28 deletions terraform/terraform.tfstate
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"version": 4,
"terraform_version": "1.6.3",
"serial": 34,
"serial": 44,
"lineage": "1e42e9e5-7733-0ac2-908d-075c08b959a9",
"outputs": {
"external_ip_address_app": {
"value": [
"158.160.114.160",
"158.160.55.206"
"158.160.54.178",
"84.201.132.5"
],
"type": [
"tuple",
Expand All @@ -19,7 +19,7 @@
},
"external_ip_address_lb": {
"value": [
"158.160.131.213"
"158.160.129.230"
],
"type": [
"list",
Expand All @@ -43,8 +43,8 @@
"boot_disk": [
{
"auto_delete": true,
"device_name": "fhm65kccp91pfb4os398",
"disk_id": "fhm65kccp91pfb4os398",
"device_name": "fhmhgnd2rvthoabj4qfl",
"disk_id": "fhmhgnd2rvthoabj4qfl",
"initialize_params": [
{
"block_size": 4096,
Expand All @@ -59,14 +59,14 @@
"mode": "READ_WRITE"
}
],
"created_at": "2023-11-10T14:28:56Z",
"created_at": "2023-11-11T06:37:35Z",
"description": "",
"filesystem": [],
"folder_id": "b1g9rbhfq6ba8dfpgv37",
"fqdn": "fhm3k7s6udmvebhdpvlo.auto.internal",
"fqdn": "fhm5880c9dumgtg1uf9e.auto.internal",
"gpu_cluster_id": "",
"hostname": "",
"id": "fhm3k7s6udmvebhdpvlo",
"id": "fhm5880c9dumgtg1uf9e",
"labels": null,
"local_disk": [],
"metadata": {
Expand All @@ -86,15 +86,15 @@
{
"dns_record": [],
"index": 0,
"ip_address": "10.128.0.32",
"ip_address": "10.128.0.30",
"ipv4": true,
"ipv6": false,
"ipv6_address": "",
"ipv6_dns_record": [],
"mac_address": "d0:0d:3a:1f:86:f3",
"mac_address": "d0:0d:54:20:0c:4b",
"nat": true,
"nat_dns_record": [],
"nat_ip_address": "158.160.114.160",
"nat_ip_address": "158.160.54.178",
"nat_ip_version": "IPV4",
"security_group_ids": [],
"subnet_id": "e9bmh97l31novt99ndqb"
Expand Down Expand Up @@ -138,8 +138,8 @@
"boot_disk": [
{
"auto_delete": true,
"device_name": "fhmpfiiv1rrqhglm8djn",
"disk_id": "fhmpfiiv1rrqhglm8djn",
"device_name": "fhmtkt90esgmdr78t6lc",
"disk_id": "fhmtkt90esgmdr78t6lc",
"initialize_params": [
{
"block_size": 4096,
Expand All @@ -154,14 +154,14 @@
"mode": "READ_WRITE"
}
],
"created_at": "2023-11-10T14:28:56Z",
"created_at": "2023-11-11T06:37:35Z",
"description": "",
"filesystem": [],
"folder_id": "b1g9rbhfq6ba8dfpgv37",
"fqdn": "fhmvr2g0maf7946bs1hi.auto.internal",
"fqdn": "fhm3e01shnu7dfvaa5eq.auto.internal",
"gpu_cluster_id": "",
"hostname": "",
"id": "fhmvr2g0maf7946bs1hi",
"id": "fhm3e01shnu7dfvaa5eq",
"labels": null,
"local_disk": [],
"metadata": {
Expand All @@ -181,15 +181,15 @@
{
"dns_record": [],
"index": 0,
"ip_address": "10.128.0.10",
"ip_address": "10.128.0.18",
"ipv4": true,
"ipv6": false,
"ipv6_address": "",
"ipv6_dns_record": [],
"mac_address": "d0:0d:1f:d8:a0:0b",
"mac_address": "d0:0d:37:00:3c:8d",
"nat": true,
"nat_dns_record": [],
"nat_ip_address": "158.160.55.206",
"nat_ip_address": "84.201.132.5",
"nat_ip_version": "IPV4",
"security_group_ids": [],
"subnet_id": "e9bmh97l31novt99ndqb"
Expand Down Expand Up @@ -253,20 +253,20 @@
"unhealthy_threshold": 2
}
],
"target_group_id": "enp4mt208lei639h0j70"
"target_group_id": "enp1m0s0glq1k4mk4kik"
}
],
"created_at": "2023-11-10T14:32:20Z",
"created_at": "2023-11-11T06:40:41Z",
"deletion_protection": false,
"description": "",
"folder_id": "b1g9rbhfq6ba8dfpgv37",
"id": "enp336ksrlasakqgv9oq",
"id": "enp2u59k6oh0huiskgq0",
"labels": null,
"listener": [
{
"external_address_spec": [
{
"address": "158.160.131.213",
"address": "158.160.129.230",
"ip_version": "ipv4"
}
],
Expand Down Expand Up @@ -300,20 +300,20 @@
{
"schema_version": 0,
"attributes": {
"created_at": "2023-11-10T14:32:18Z",
"created_at": "2023-11-11T06:40:39Z",
"description": "",
"folder_id": "b1g9rbhfq6ba8dfpgv37",
"id": "enp4mt208lei639h0j70",
"id": "enp1m0s0glq1k4mk4kik",
"labels": null,
"name": "reddit-tg",
"region_id": "ru-central1",
"target": [
{
"address": "10.128.0.10",
"address": "10.128.0.18",
"subnet_id": "e9bmh97l31novt99ndqb"
},
{
"address": "10.128.0.32",
"address": "10.128.0.30",
"subnet_id": "e9bmh97l31novt99ndqb"
}
],
Expand Down
2 changes: 1 addition & 1 deletion terraform/terraform.tfstate.backup
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 4,
"terraform_version": "1.6.3",
"serial": 29,
"serial": 39,
"lineage": "1e42e9e5-7733-0ac2-908d-075c08b959a9",
"outputs": {},
"resources": [],
Expand Down
4 changes: 2 additions & 2 deletions terraform/terraform.tfvars.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cloud_id = "12341234123412341234"
folder_id = "12341234123412341234"
zone = "ru-central1-a"
image_id = "12341234123412341234"
public_key_path = "~/.ssh/yc.pub"
privat_key_path = "~/.ssh/yc"
public_key_path = "/home/admins/.ssh/yc.pub"
privat_key_path = "/home/admins/.ssh/yc"
subnet_id = "12341234123412341234"
service_account_key_file = "/home/admins/otus/secrets/sa-terraform-key.json"

0 comments on commit 7cd91b6

Please sign in to comment.