Open
Conversation
|
Отлично |
This file contains hidden or 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
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.
TFlint:
root@nt src]# docker run --rm -v $(pwd):/tflint -t ghcr.io/terraform-linters/tflint --config=/tflint/.tflint.hcl --chdir=/tflint
[root@nt src]#
Chekov:
terraform scan results:
Passed checks: 2, Failed checks: 0, Skipped checks: 0
Check: CKV_TF_2: "Ensure Terraform module sources use a tag with a version number"
PASSED for resource: analytics_vm
File: /main.tf:29-47
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/supply-chain-policies/terraform-policies/ensure-terraform-module-sources-use-tag
Check: CKV_TF_2: "Ensure Terraform module sources use a tag with a version number"
PASSED for resource: marketing_vm
File: /main.tf:49-68
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/supply-chain-policies/terraform-policies/ensure-terraform-module-sources-use-tag
[root@nt src]# terraform plan
data.template_file.cloudinit: Reading...
module.marketing_vm.data.yandex_compute_image.my_image: Reading...
module.analytics_vm.data.yandex_compute_image.my_image: Reading...
data.template_file.cloudinit: Read complete after 0s [id=c570666f4efd1577763e8af5d8fd7d948de7a69724a57e5ea3cc3a7fe7458e3c]
module.analytics_vm.data.yandex_compute_image.my_image: Read complete after 0s [id=fd892vjp5gajiqr0g1b3]
module.marketing_vm.data.yandex_compute_image.my_image: Read complete after 1s [id=fd892vjp5gajiqr0g1b3]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
Terraform will perform the following actions:
yandex_vpc_network.develop will be created
}
yandex_vpc_subnet.develop_a will be created
]
}
yandex_vpc_subnet.develop_b will be created
]
}
module.analytics_vm.yandex_compute_instance.vm[0] will be created
allow_stopping_for_update = true
created_at = (known after apply)
description = "TODO: description; {{terraform managed}}"
folder_id = (known after apply)
fqdn = (known after apply)
gpu_cluster_id = (known after apply)
hostname = "develop-vm-0"
id = (known after apply)
labels = {
}
maintenance_grace_period = (known after apply)
maintenance_policy = (known after apply)
metadata = {
#cloud-config
users:
- name: ubuntu
groups: sudo
shell: /bin/bash
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJbFQwlXpyF5D6x8yiptgTG/Are3CfQ94MRINvltKRs2
package_update: true
package_upgrade: false
packages:
- vim
- nginx
EOT
}
name = "develop-vm-0"
network_acceleration_type = "standard"
platform_id = "standard-v1"
service_account_id = (known after apply)
status = (known after apply)
zone = "ru-central1-a"
boot_disk {
auto_delete = true
device_name = (known after apply)
disk_id = (known after apply)
mode = (known after apply)
initialize_params {
}
}
network_interface {
}
resources {
}
scheduling_policy {
}
}
module.analytics_vm.yandex_compute_instance.vm[1] will be created
allow_stopping_for_update = true
created_at = (known after apply)
description = "TODO: description; {{terraform managed}}"
folder_id = (known after apply)
fqdn = (known after apply)
gpu_cluster_id = (known after apply)
hostname = "develop-vm-1"
id = (known after apply)
labels = {
}
maintenance_grace_period = (known after apply)
maintenance_policy = (known after apply)
metadata = {
#cloud-config
users:
- name: ubuntu
groups: sudo
shell: /bin/bash
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJbFQwlXpyF5D6x8yiptgTG/Are3CfQ94MRINvltKRs2
package_update: true
package_upgrade: false
packages:
- vim
- nginx
EOT
}
name = "develop-vm-1"
network_acceleration_type = "standard"
platform_id = "standard-v1"
service_account_id = (known after apply)
status = (known after apply)
zone = "ru-central1-a"
boot_disk {
auto_delete = true
device_name = (known after apply)
disk_id = (known after apply)
mode = (known after apply)
initialize_params {
}
}
network_interface {
}
resources {
}
scheduling_policy {
}
}
module.marketing_vm.yandex_compute_instance.vm[0] will be created
allow_stopping_for_update = true
created_at = (known after apply)
description = "TODO: description; {{terraform managed}}"
folder_id = (known after apply)
fqdn = (known after apply)
gpu_cluster_id = (known after apply)
hostname = "stage-web-stage-0"
id = (known after apply)
labels = {
}
maintenance_grace_period = (known after apply)
maintenance_policy = (known after apply)
metadata = {
#cloud-config
users:
- name: ubuntu
groups: sudo
shell: /bin/bash
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJbFQwlXpyF5D6x8yiptgTG/Are3CfQ94MRINvltKRs2
package_update: true
package_upgrade: false
packages:
- vim
- nginx
EOT
}
name = "stage-web-stage-0"
network_acceleration_type = "standard"
platform_id = "standard-v1"
service_account_id = (known after apply)
status = (known after apply)
zone = "ru-central1-a"
boot_disk {
auto_delete = true
device_name = (known after apply)
disk_id = (known after apply)
mode = (known after apply)
initialize_params {
}
}
network_interface {
}
resources {
}
scheduling_policy {
}
}
module.vpc_dev.yandex_vpc_network.vpc_dev will be created
}
module.vpc_dev.yandex_vpc_subnet.vpc_subnet_dev will be created
]
}
Plan: 8 to add, 0 to change, 0 to destroy.
Changes to Outputs:
]
}