Show Plan
```
terraform
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:
# aws_lightsail_instance.vita_db will be created
+ resource "aws_lightsail_instance" "vita_db" {
+ arn = (known after apply)
+ availability_zone = "ap-southeast-1a"
+ blueprint_id = "debian_11"
+ bundle_id = "small_2_0"
+ cpu_count = (known after apply)
+ created_at = (known after apply)
+ id = (known after apply)
+ ip_address_type = "dualstack"
+ ipv6_address = (known after apply)
+ ipv6_addresses = (known after apply)
+ is_static_ip = (known after apply)
+ key_pair_name = "vita_db_key"
+ name = "mongo-enterprise"
+ private_ip_address = (known after apply)
+ public_ip_address = (known after apply)
+ ram_size = (known after apply)
+ tags_all = (known after apply)
+ user_data = (known after apply)
+ username = (known after apply)
}
# aws_lightsail_instance_public_ports.vita_db_ports will be created
+ resource "aws_lightsail_instance_public_ports" "vita_db_ports" {
+ id = (known after apply)
+ instance_name = "mongo-enterprise"
+ port_info {
+ cidrs = (known after apply)
+ from_port = 22
+ ipv6_cidrs = (known after apply)
+ protocol = "tcp"
+ to_port = 22
}
+ port_info {
+ cidrs = (known after apply)
+ from_port = 27017
+ ipv6_cidrs = (known after apply)
+ protocol = "tcp"
+ to_port = 27017
}
}
# aws_lightsail_key_pair.vita_db_key will be created
+ resource "aws_lightsail_key_pair" "vita_db_key" {
+ arn = (known after apply)
+ encrypted_fingerprint = (known after apply)
+ encrypted_private_key = (known after apply)
+ fingerprint = (known after apply)
+ id = (known after apply)
+ name = "vita_db_key"
+ private_key = (known after apply)
+ public_key = (known after apply)
}
# aws_lightsail_static_ip.vita_db_ip will be created
+ resource "aws_lightsail_static_ip" "vita_db_ip" {
+ arn = (known after apply)
+ id = (known after apply)
+ ip_address = (known after apply)
+ name = "vita_db_ip"
+ support_code = (known after apply)
}
# aws_lightsail_static_ip_attachment.vita_db_ip_attach will be created
+ resource "aws_lightsail_static_ip_attachment" "vita_db_ip_attach" {
+ id = (known after apply)
+ instance_name = (known after apply)
+ ip_address = (known after apply)
+ static_ip_name = (known after apply)
}
# local_file.ansible_inventory will be created
+ resource "local_file" "ansible_inventory" {
+ content = (known after apply)
+ directory_permission = "0777"
+ file_permission = "0777"
+ filename = "./provisioning/inventory"
+ id = (known after apply)
}
# local_sensitive_file.private_key will be created
+ resource "local_sensitive_file" "private_key" {
+ content = (sensitive value)
+ directory_permission = "0700"
+ file_permission = "0400"
+ filename = "./private.key"
+ id = (known after apply)
}
# null_resource.lightsail_provisioner will be created
+ resource "null_resource" "lightsail_provisioner" {
+ id = (known after apply)
+ triggers = {
+ "inventory" = (known after apply)
}
}
Plan: 8 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ ip = (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.
```
Show Plan
```
terraform
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:
# aws_lightsail_instance.vita_db will be created
+ resource "aws_lightsail_instance" "vita_db" {
+ arn = (known after apply)
+ availability_zone = "ap-southeast-1a"
+ blueprint_id = "debian_11"
+ bundle_id = "small_2_0"
+ cpu_count = (known after apply)
+ created_at = (known after apply)
+ id = (known after apply)
+ ip_address_type = "dualstack"
+ ipv6_address = (known after apply)
+ ipv6_addresses = (known after apply)
+ is_static_ip = (known after apply)
+ key_pair_name = "vita_db_key"
+ name = "mongo-enterprise"
+ private_ip_address = (known after apply)
+ public_ip_address = (known after apply)
+ ram_size = (known after apply)
+ tags_all = (known after apply)
+ user_data = (known after apply)
+ username = (known after apply)
}
# aws_lightsail_instance_public_ports.vita_db_ports will be created
+ resource "aws_lightsail_instance_public_ports" "vita_db_ports" {
+ id = (known after apply)
+ instance_name = "mongo-enterprise"
+ port_info {
+ cidrs = (known after apply)
+ from_port = 22
+ ipv6_cidrs = (known after apply)
+ protocol = "tcp"
+ to_port = 22
}
+ port_info {
+ cidrs = (known after apply)
+ from_port = 27017
+ ipv6_cidrs = (known after apply)
+ protocol = "tcp"
+ to_port = 27017
}
}
# aws_lightsail_key_pair.vita_db_key will be created
+ resource "aws_lightsail_key_pair" "vita_db_key" {
+ arn = (known after apply)
+ encrypted_fingerprint = (known after apply)
+ encrypted_private_key = (known after apply)
+ fingerprint = (known after apply)
+ id = (known after apply)
+ name = "vita_db_key"
+ private_key = (known after apply)
+ public_key = (known after apply)
}
# aws_lightsail_static_ip.vita_db_ip will be created
+ resource "aws_lightsail_static_ip" "vita_db_ip" {
+ arn = (known after apply)
+ id = (known after apply)
+ ip_address = (known after apply)
+ name = "vita_db_ip"
+ support_code = (known after apply)
}
# aws_lightsail_static_ip_attachment.vita_db_ip_attach will be created
+ resource "aws_lightsail_static_ip_attachment" "vita_db_ip_attach" {
+ id = (known after apply)
+ instance_name = (known after apply)
+ ip_address = (known after apply)
+ static_ip_name = (known after apply)
}
# local_file.ansible_inventory will be created
+ resource "local_file" "ansible_inventory" {
+ content = (known after apply)
+ directory_permission = "0777"
+ file_permission = "0777"
+ filename = "./provisioning/inventory"
+ id = (known after apply)
}
# local_sensitive_file.private_key will be created
+ resource "local_sensitive_file" "private_key" {
+ content = (sensitive value)
+ directory_permission = "0700"
+ file_permission = "0400"
+ filename = "./private.key"
+ id = (known after apply)
}
# null_resource.lightsail_provisioner will be created
+ resource "null_resource" "lightsail_provisioner" {
+ id = (known after apply)
+ triggers = {
+ "inventory" = (known after apply)
}
}
Plan: 8 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ ip = (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 Format and Style 🖌
success
Terraform Initialization ⚙️
success
Terraform Validation 🤖
success
Terraform Plan 📖
success
Show Plan
``` terraform 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: # aws_lightsail_instance.vita_db will be created + resource "aws_lightsail_instance" "vita_db" { + arn = (known after apply) + availability_zone = "ap-southeast-1a" + blueprint_id = "debian_11" + bundle_id = "small_2_0" + cpu_count = (known after apply) + created_at = (known after apply) + id = (known after apply) + ip_address_type = "dualstack" + ipv6_address = (known after apply) + ipv6_addresses = (known after apply) + is_static_ip = (known after apply) + key_pair_name = "vita_db_key" + name = "mongo-enterprise" + private_ip_address = (known after apply) + public_ip_address = (known after apply) + ram_size = (known after apply) + tags_all = (known after apply) + user_data = <<-EOT #!/bin/bash apt-get -y update # add docker repo sudo apt-get install -y ca-certificates curl gnupg lsb-release sudo mkdir -p /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null # add hashicorp repo wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list # installation sudo apt-get -y update sudo apt-get -y install docker-ce docker-ce-cli containerd.io nomad python3-pip pip install python-nomad # remove default config file sudo rm /etc/nomad.d/nomad.hcl # indicate program exited touch /tmp/finished EOT + username = (known after apply) } # aws_lightsail_instance_public_ports.vita_db_ports will be created + resource "aws_lightsail_instance_public_ports" "vita_db_ports" { + id = (known after apply) + instance_name = "mongo-enterprise" + port_info { + cidrs = (known after apply) + from_port = 22 + ipv6_cidrs = (known after apply) + protocol = "tcp" + to_port = 22 } + port_info { + cidrs = (known after apply) + from_port = 27017 + ipv6_cidrs = (known after apply) + protocol = "tcp" + to_port = 27017 } } # aws_lightsail_key_pair.vita_db_key will be created + resource "aws_lightsail_key_pair" "vita_db_key" { + arn = (known after apply) + encrypted_fingerprint = (known after apply) + encrypted_private_key = (known after apply) + fingerprint = (known after apply) + id = (known after apply) + name = "vita_db_key" + private_key = (known after apply) + public_key = (known after apply) } # aws_lightsail_static_ip.vita_db_ip will be created + resource "aws_lightsail_static_ip" "vita_db_ip" { + arn = (known after apply) + id = (known after apply) + ip_address = (known after apply) + name = "vita_db_ip" + support_code = (known after apply) } # aws_lightsail_static_ip_attachment.vita_db_ip_attach will be created + resource "aws_lightsail_static_ip_attachment" "vita_db_ip_attach" { + id = (known after apply) + instance_name = (known after apply) + ip_address = (known after apply) + static_ip_name = (known after apply) } # local_file.ansible_inventory will be created + resource "local_file" "ansible_inventory" { + content = (known after apply) + directory_permission = "0777" + file_permission = "0777" + filename = "./provisioning/inventory" + id = (known after apply) } # local_sensitive_file.private_key will be created + resource "local_sensitive_file" "private_key" { + content = (sensitive value) + directory_permission = "0700" + file_permission = "0400" + filename = "./private.key" + id = (known after apply) } # null_resource.lightsail_provisioner will be created + resource "null_resource" "lightsail_provisioner" { + id = (known after apply) + triggers = { + "inventory" = (known after apply) } } Plan: 8 to add, 0 to change, 0 to destroy. Changes to Outputs: + ip = (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. ```Pusher: @Mike2060, Action:
pull_request