Update ec2.tf - #831
Conversation
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] will be created
+ resource "aws_instance" "this" {
+ ami = "ami-0a15226b1f7f23580"
+ arn = (known after apply)
+ associate_public_ip_address = true
+ availability_zone = (known after apply)
+ cpu_core_count = (known after apply)
+ cpu_threads_per_core = (known after apply)
+ disable_api_termination = false
+ ebs_optimized = false
+ get_password_data = false
+ host_id = (known after apply)
+ id = (known after apply)
+ instance_initiated_shutdown_behavior = (known after apply)
+ instance_state = (known after apply)
+ instance_type = "t3a.medium"
+ ipv6_address_count = (known after apply)
+ ipv6_addresses = (known after apply)
+ key_name = (known after apply)
+ monitoring = false
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
+ primary_network_interface_id = (known after apply)
+ private_dns = (known after apply)
+ private_ip = (known after apply)
+ public_dns = (known after apply)
+ public_ip = (known after apply)
+ secondary_private_ips = (known after apply)
+ security_groups = (known after apply)
+ source_dest_check = true
+ subnet_id = "subnet-00d0e578ddbcd203b"
+ tags = {
+ "Demo" = "Aug 14"
+ "Name" = "env0-acme-ec2"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "env0_environment_id" = "e263abe0-32a9-432a-9440-42d6a97cd9e8"
+ "env0_project_id" = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
}
+ tags_all = {
+ "Demo" = "Aug 14"
+ "Name" = "env0-acme-ec2"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "env0_environment_id" = "e263abe0-32a9-432a-9440-42d6a97cd9e8"
+ "env0_project_id" = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
}
+ tenancy = "default"
+ volume_tags = {
+ "Name" = "env0-acme-ec2"
+ "env0_environment_id" = "e263abe0-32a9-432a-9440-42d6a97cd9e8"
+ "env0_project_id" = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
}
+ vpc_security_group_ids = (known after apply)
+ credit_specification {
+ cpu_credits = "standard"
}
+ ebs_block_device (known after apply)
+ enclave_options (known after apply)
+ ephemeral_block_device (known after apply)
+ metadata_options (known after apply)
+ network_interface (known after apply)
+ root_block_device (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ instances = [
+ (known after apply),
]
+ private_ip = [
+ (known after apply),
]
+ public_ip = [
+ (known after apply),
]Cost Estimation DetailsKey: * usage cost, ~ changed, + added, - removed
──────────────────────────────────
Project: env0/acme-demo/.env0workdir/env0_tf_plan.json
+ module.acme-ec2.aws_instance.this[0]
+$28
+ Instance usage (Linux/UNIX, on-demand, t3a.medium)
+$27
+ root_block_device
+ Storage (general purpose SSD, gp2)
+$0.80
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount: +$28 ($0.00 → $28)
──────────────────────────────────
Key: * usage cost, ~ changed, + added, - removed
*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.
1 cloud resource was detected:
∙ 1 was estimated
Infracost estimate: Monthly estimate increased by $28 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json ┃ +$28 ┃ - ┃ +$28 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
|
Plan DetailsTerraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# module.acme-ec2.aws_instance.this[0] must be replaced
-/+ resource "aws_instance" "this" {
! ami = "ami-0cd202468248306f2" -> "ami-0a15226b1f7f23580" # forces replacement
! arn = "arn:aws:ec2:us-west-2:244172364962:instance/i-00a3d8a53ca05e968" -> (known after apply)
! availability_zone = "us-west-2b" -> (known after apply)
! cpu_core_count = 1 -> (known after apply)
! cpu_threads_per_core = 2 -> (known after apply)
- hibernation = false -> null
+ host_id = (known after apply)
! id = "i-00a3d8a53ca05e968" -> (known after apply)
! instance_initiated_shutdown_behavior = "stop" -> (known after apply)
! instance_state = "running" -> (known after apply)
! ipv6_address_count = 0 -> (known after apply)
! ipv6_addresses = [] -> (known after apply)
+ key_name = (known after apply)
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
! primary_network_interface_id = "eni-0af5cbb5de8bc39d5" -> (known after apply)
! private_dns = "ip-10-0-3-165.us-west-2.compute.internal" -> (known after apply)
! private_ip = "10.0.3.165" -> (known after apply)
+ public_dns = (known after apply)
! public_ip = "54.185.159.91" -> (known after apply)
! secondary_private_ips = [] -> (known after apply)
! security_groups = [] -> (known after apply)
! tags = {
! "Demo" = "Dec 31" -> "Aug 14"
"Name" = "env0-acme-ec2"
"Owner" = "acme demo org"
"Terraform" = "true"
- "Test" = "new tag" -> null
}
! tags_all = {
! "Demo" = "Dec 31" -> "Aug 14"
- "Test" = "new tag" -> null
# (3 unchanged elements hidden)
}
! vpc_security_group_ids = [
- "sg-08fdaac30443c7649",
] -> (known after apply)
# (10 unchanged attributes hidden)
- enclave_options {
- enabled = false -> null
}
- metadata_options {
- http_endpoint = "enabled" -> null
- http_put_response_hop_limit = 1 -> null
- http_tokens = "optional" -> null
}
- root_block_device {
- delete_on_termination = true -> null
- device_name = "/dev/sda1" -> null
- encrypted = false -> null
- iops = 100 -> null
- tags = {} -> null
- throughput = 0 -> null
- volume_id = "vol-017793bccfdafd96d" -> null
- volume_size = 8 -> null
- volume_type = "gp2" -> null
}
# (1 unchanged block hidden)
}
Plan: 1 to add, 0 to change, 1 to destroy.
Changes to Outputs:
! instances = [
- "i-00a3d8a53ca05e968",
+ (known after apply),
]
! private_ip = [
- "10.0.3.165",
+ (known after apply),
]
! public_ip = [
- "54.185.159.91",
+ (known after apply),
] |
|
Plan DetailsTerraform 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:
# module.acme-ec2.aws_instance.this[0] will be created
+ resource "aws_instance" "this" {
+ ami = "ami-0a15226b1f7f23580"
+ arn = (known after apply)
+ associate_public_ip_address = true
+ availability_zone = (known after apply)
+ cpu_core_count = (known after apply)
+ cpu_threads_per_core = (known after apply)
+ disable_api_termination = false
+ ebs_optimized = false
+ get_password_data = false
+ host_id = (known after apply)
+ id = (known after apply)
+ instance_initiated_shutdown_behavior = (known after apply)
+ instance_state = (known after apply)
+ instance_type = "t3a.small"
+ ipv6_address_count = (known after apply)
+ ipv6_addresses = (known after apply)
+ key_name = (known after apply)
+ monitoring = false
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
+ primary_network_interface_id = (known after apply)
+ private_dns = (known after apply)
+ private_ip = (known after apply)
+ public_dns = (known after apply)
+ public_ip = (known after apply)
+ secondary_private_ips = (known after apply)
+ security_groups = (known after apply)
+ source_dest_check = true
+ subnet_id = "subnet-0239c0713c64a677f"
+ tags = {
+ "Demo" = "Aug 14"
+ "Name" = "env0-acme-ec2"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
}
+ tags_all = {
+ "Demo" = "Aug 14"
+ "Name" = "env0-acme-ec2"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
}
+ tenancy = "default"
+ volume_tags = {
+ "Name" = "env0-acme-ec2"
}
+ vpc_security_group_ids = (known after apply)
+ credit_specification {
+ cpu_credits = "standard"
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ instances = [
+ (known after apply),
]
+ private_ip = [
+ (known after apply),
]
+ public_ip = [
+ (known after apply),
] |
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] must be replaced
-/+ resource "aws_instance" "this" {
! ami = "ami-070686bd03233cfa1" -> "ami-0a15226b1f7f23580" # forces replacement
! arn = "arn:aws:ec2:us-west-2:244172364962:instance/i-0b46d59e8354a7f04" -> (known after apply)
! availability_zone = "us-west-2b" -> (known after apply)
! cpu_core_count = 1 -> (known after apply)
! cpu_threads_per_core = 2 -> (known after apply)
- hibernation = false -> null
+ host_id = (known after apply)
! id = "i-0b46d59e8354a7f04" -> (known after apply)
! instance_initiated_shutdown_behavior = "stop" -> (known after apply)
! instance_state = "running" -> (known after apply)
! instance_type = "t3a.medium" -> "t3a.small"
! ipv6_address_count = 0 -> (known after apply)
! ipv6_addresses = [] -> (known after apply)
+ key_name = (known after apply)
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
! primary_network_interface_id = "eni-0bd89af263c63c9fc" -> (known after apply)
! private_dns = "ip-10-0-3-33.us-west-2.compute.internal" -> (known after apply)
! private_ip = "10.0.3.33" -> (known after apply)
+ public_dns = (known after apply)
! public_ip = "54.191.205.29" -> (known after apply)
! secondary_private_ips = [] -> (known after apply)
! security_groups = [] -> (known after apply)
! tags = {
! "Demo" = "Oct 22" -> "Aug 14"
"Name" = "acme-frontend"
"Owner" = "acme demo org"
"Terraform" = "true"
- "Test" = "new tag" -> null
}
! tags_all = {
! "Demo" = "Oct 22" -> "Aug 14"
- "Test" = "new tag" -> null
# (3 unchanged elements hidden)
}
! vpc_security_group_ids = [
- "sg-08fdaac30443c7649",
] -> (known after apply)
# (9 unchanged attributes hidden)
- enclave_options {
- enabled = false -> null
}
- metadata_options {
- http_endpoint = "enabled" -> null
- http_put_response_hop_limit = 1 -> null
- http_tokens = "optional" -> null
}
- root_block_device {
- delete_on_termination = true -> null
- device_name = "/dev/sda1" -> null
- encrypted = false -> null
- iops = 0 -> null
- tags = {} -> null
- throughput = 0 -> null
- volume_id = "vol-051300b7b4477f948" -> null
- volume_size = 8 -> null
- volume_type = "standard" -> null
}
# (1 unchanged block hidden)
}
Plan: 1 to add, 0 to change, 1 to destroy.
Changes to Outputs:
! instances = [
- "i-0b46d59e8354a7f04",
+ (known after apply),
]
! private_ip = [
- "10.0.3.33",
+ (known after apply),
]
! public_ip = [
- "54.191.205.29",
+ (known after apply),
]
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "team_name" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵Cost Estimation DetailsKey: * usage cost, ~ changed, + added, - removed
──────────────────────────────────
Project: env0/acme-demo/.env0workdir/env0_tf_plan.json
! module.acme-ec2.aws_instance.this[0]
-$13 ($28 → $15)
! Instance usage (Linux/UNIX, on-demand, t3a.medium → t3a.small)
-$14 ($27 → $14)
! root_block_device
! Storage (magnetic) → (general purpose SSD, gp2)
+$0.40 ($0.40 → $0.80)
- I/O requests
Monthly cost depends on usage
-$0.05 per 1M request
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount: -$13 ($28 → $15)
Percent: -48%
──────────────────────────────────
Key: * usage cost, ~ changed, + added, - removed
*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.
1 cloud resource was detected:
∙ 1 was estimated
Infracost estimate: Monthly estimate decreased by $13 ↓
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json ┃ -$13 ┃ - ┃ -$13 (-48%) ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
! update in-place
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] will be updated in-place
! resource "aws_instance" "this" {
id = "i-048b41453ecada4f5"
! instance_type = "t3a.small" -> "t3a.large"
! tags = {
! "Demo" = "May 20" -> "Aug 14"
"ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/77cb936f-9c1d-43eb-ab47-ab20aa36e045"
"Name" = "acme-frontend-testing"
"Owner" = "acme demo org"
"Terraform" = "true"
- "Test" = "new taga" -> null
"env0_environment_id" = "77cb936f-9c1d-43eb-ab47-ab20aa36e045"
"env0_project_id" = "7320dd7a-4822-426c-84b5-62ddd8be0799"
}
! tags_all = {
! "Demo" = "May 20" -> "Aug 14"
- "Test" = "new taga" -> null
# (6 unchanged elements hidden)
}
# (26 unchanged attributes hidden)
# (4 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "db_username" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "password" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵Cost Estimation DetailsKey: * usage cost, ~ changed, + added, - removed
──────────────────────────────────
Project: env0/acme-demo/.env0workdir/env0_tf_plan.json
! module.acme-ec2.aws_instance.this[0]
+$41 ($15 → $56)
! Instance usage (Linux/UNIX, on-demand, t3a.small → t3a.large)
+$41 ($14 → $55)
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount: +$41 ($15 → $56)
Percent: +283%
──────────────────────────────────
Key: * usage cost, ~ changed, + added, - removed
*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.
1 cloud resource was detected:
∙ 1 was estimated
Infracost estimate: Monthly estimate increased by $41 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json ┃ +$41 ┃ - ┃ +$41 (+283%) ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
! update in-place
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] will be updated in-place
! resource "aws_instance" "this" {
id = "i-0324387a20dfca2a4"
! instance_type = "t3a.small" -> "t3a.large"
! tags = {
! "Demo" = "May 20" -> "Aug 14"
"ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/6e7541c8-63b6-4e29-99ff-682fa52b4090"
"Name" = "karl-testing"
"Owner" = "acme demo org"
"Terraform" = "true"
- "Test" = "new taga" -> null
"env0_environment_id" = "6e7541c8-63b6-4e29-99ff-682fa52b4090"
"env0_project_id" = "7320dd7a-4822-426c-84b5-62ddd8be0799"
}
! tags_all = {
! "Demo" = "May 20" -> "Aug 14"
- "Test" = "new taga" -> null
# (6 unchanged elements hidden)
}
# (26 unchanged attributes hidden)
# (4 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "db_username" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "password" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵Cost Estimation DetailsKey: * usage cost, ~ changed, + added, - removed
──────────────────────────────────
Project: env0/acme-demo/.env0workdir/env0_tf_plan.json
! module.acme-ec2.aws_instance.this[0]
+$41 ($15 → $56)
! Instance usage (Linux/UNIX, on-demand, t3a.small → t3a.large)
+$41 ($14 → $55)
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount: +$41 ($15 → $56)
Percent: +283%
──────────────────────────────────
Key: * usage cost, ~ changed, + added, - removed
*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.
1 cloud resource was detected:
∙ 1 was estimated
Infracost estimate: Monthly estimate increased by $41 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json ┃ +$41 ┃ - ┃ +$41 (+283%) ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
! update in-place
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] will be updated in-place
! resource "aws_instance" "this" {
id = "i-0e9f0e6c4c2a34d0e"
! instance_type = "t3a.small" -> "t3a.medium"
! tags = {
! "Demo" = "May 20" -> "Aug 14"
"ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/89dee430-91a5-4cc2-94c9-7303bb3627a7"
"Name" = "acme-frontend"
"Owner" = "acme demo org"
"Terraform" = "true"
- "Test" = "new taga" -> null
"env0_environment_id" = "89dee430-91a5-4cc2-94c9-7303bb3627a7"
"env0_project_id" = "7320dd7a-4822-426c-84b5-62ddd8be0799"
}
! tags_all = {
! "Demo" = "May 20" -> "Aug 14"
- "Test" = "new taga" -> null
# (6 unchanged elements hidden)
}
# (26 unchanged attributes hidden)
# (4 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "password" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "db_username" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵Cost Estimation DetailsKey: * usage cost, ~ changed, + added, - removed
──────────────────────────────────
Project: env0/acme-demo/.env0workdir/env0_tf_plan.json
! module.acme-ec2.aws_instance.this[0]
+$14 ($15 → $28)
! Instance usage (Linux/UNIX, on-demand, t3a.small → t3a.medium)
+$14 ($14 → $27)
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount: +$14 ($15 → $28)
Percent: +94%
──────────────────────────────────
Key: * usage cost, ~ changed, + added, - removed
*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.
1 cloud resource was detected:
∙ 1 was estimated
Infracost estimate: Monthly estimate increased by $14 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json ┃ +$14 ┃ - ┃ +$14 (+94%) ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] will be created
+ resource "aws_instance" "this" {
+ ami = "ami-0a15226b1f7f23580"
+ arn = (known after apply)
+ associate_public_ip_address = true
+ availability_zone = (known after apply)
+ cpu_core_count = (known after apply)
+ cpu_threads_per_core = (known after apply)
+ disable_api_termination = false
+ ebs_optimized = false
+ get_password_data = false
+ host_id = (known after apply)
+ id = (known after apply)
+ instance_initiated_shutdown_behavior = (known after apply)
+ instance_state = (known after apply)
+ instance_type = "t3a.small"
+ ipv6_address_count = (known after apply)
+ ipv6_addresses = (known after apply)
+ key_name = (known after apply)
+ monitoring = false
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
+ primary_network_interface_id = (known after apply)
+ private_dns = (known after apply)
+ private_ip = (known after apply)
+ public_dns = (known after apply)
+ public_ip = (known after apply)
+ secondary_private_ips = (known after apply)
+ security_groups = (known after apply)
+ source_dest_check = true
+ subnet_id = "subnet-0239c0713c64a677f"
+ tags = {
+ "Demo" = "Aug 14"
+ "Name" = "acme-frontend"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
}
+ tags_all = {
+ "Demo" = "Aug 14"
+ "Name" = "acme-frontend"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
}
+ tenancy = "default"
+ volume_tags = {
+ "Name" = "acme-frontend"
}
+ vpc_security_group_ids = (known after apply)
+ credit_specification {
+ cpu_credits = "standard"
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ instances = [
+ (known after apply),
]
+ private_ip = [
+ (known after apply),
]
+ public_ip = [
+ (known after apply),
] |
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] will be created
+ resource "aws_instance" "this" {
+ ami = "ami-0a15226b1f7f23580"
+ arn = (known after apply)
+ associate_public_ip_address = true
+ availability_zone = (known after apply)
+ cpu_core_count = (known after apply)
+ cpu_threads_per_core = (known after apply)
+ disable_api_termination = false
+ ebs_optimized = false
+ get_password_data = false
+ host_id = (known after apply)
+ id = (known after apply)
+ instance_initiated_shutdown_behavior = (known after apply)
+ instance_state = (known after apply)
+ instance_type = "t3a.large"
+ ipv6_address_count = (known after apply)
+ ipv6_addresses = (known after apply)
+ key_name = (known after apply)
+ monitoring = false
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
+ primary_network_interface_id = (known after apply)
+ private_dns = (known after apply)
+ private_ip = (known after apply)
+ public_dns = (known after apply)
+ public_ip = (known after apply)
+ secondary_private_ips = (known after apply)
+ security_groups = (known after apply)
+ source_dest_check = true
+ subnet_id = "subnet-0239c0713c64a677f"
+ tags = {
+ "Demo" = "Aug 14"
+ "Name" = "acme-frontend"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
}
+ tags_all = {
+ "Demo" = "Aug 14"
+ "Name" = "acme-frontend"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
}
+ tenancy = "default"
+ volume_tags = {
+ "Name" = "acme-frontend"
}
+ vpc_security_group_ids = (known after apply)
+ credit_specification {
+ cpu_credits = "standard"
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ instances = [
+ (known after apply),
]
+ private_ip = [
+ (known after apply),
]
+ public_ip = [
+ (known after apply),
]Cost Estimation DetailsKey: * usage cost, ~ changed, + added, - removed
──────────────────────────────────
Project: env0/acme-demo/.env0workdir/env0_tf_plan.json
+ module.acme-ec2.aws_instance.this[0]
+$56
+ Instance usage (Linux/UNIX, on-demand, t3a.large)
+$55
+ root_block_device
+ Storage (general purpose SSD, gp2)
+$0.80
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount: +$56 ($0.00 → $56)
──────────────────────────────────
Key: * usage cost, ~ changed, + added, - removed
*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.
1 cloud resource was detected:
∙ 1 was estimated
Infracost estimate: Monthly estimate increased by $56 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json ┃ +$56 ┃ - ┃ +$56 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
|
Failure Details╷
│ Error: error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.
│
│ Please see https://registry.terraform.io/providers/hashicorp/aws
│ for more information about providing credentials.
│
│ Error: NoCredentialProviders: no valid providers in chain. Deprecated.
│ For verbose messaging see aws.Config.CredentialsChainVerboseErrors
│
│
│ with provider["registry.opentofu.org/hashicorp/aws"],
│ on provider.tf line 10, in provider "aws":
│ 10: provider "aws" {
│
╵
|
|
Failure Details╷
│ Error: InvalidVpcID.NotFound: The vpc ID 'vpc-0af0fdb55cb58d823' does not exist
│ status code: 400, request id: ee2b0932-9543-4339-8993-e3c414bf7301
│
│ with data.aws_vpc.selected,
│ on ec2.tf line 32, in data "aws_vpc" "selected":
│ 32: data "aws_vpc" "selected" {
│
╵
|
|
Failure Details╷
│ Error: No value for required variable
│
│ on variables.tf line 11:
│ 11: variable "vpc_id" {
│
│ The root module input variable "vpc_id" is not set, and has no default
│ value. Use a -var or -var-file command line argument to provide a value for
│ this variable.
╵
|
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] must be replaced
-/+ resource "aws_instance" "this" {
! ami = "ami-04f5a6a7ecc99fbe2" -> "ami-0a15226b1f7f23580" # forces replacement
! arn = "arn:aws:ec2:us-west-2:779182809717:instance/i-0133195ac504330b1" -> (known after apply)
! availability_zone = "us-west-2a" -> (known after apply)
! cpu_core_count = 1 -> (known after apply)
! cpu_threads_per_core = 2 -> (known after apply)
- hibernation = false -> null
+ host_id = (known after apply)
- iam_instance_profile = "kosta-testing-drift-blame" -> null
! id = "i-0133195ac504330b1" -> (known after apply)
! instance_initiated_shutdown_behavior = "stop" -> (known after apply)
! instance_state = "running" -> (known after apply)
! ipv6_address_count = 0 -> (known after apply)
! ipv6_addresses = [] -> (known after apply)
+ key_name = (known after apply)
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
! primary_network_interface_id = "eni-04c6d7086a31ad8f9" -> (known after apply)
! private_dns = "ip-10-25-134-109.us-west-2.compute.internal" -> (known after apply)
! private_ip = "10.25.134.109" -> (known after apply)
! public_dns = "ec2-34-222-155-167.us-west-2.compute.amazonaws.com" -> (known after apply)
! public_ip = "34.222.155.167" -> (known after apply)
! secondary_private_ips = [] -> (known after apply)
! security_groups = [] -> (known after apply)
! tags = {
! "Demo" = "Feb 20" -> "Aug 14"
"Name" = "acme-frontend"
"Owner" = "acme demo org"
"Terraform" = "true"
- "Test" = "new tag" -> null
"env0_environment_id" = "52fdda43-e6ac-437d-99a4-cdddf98bf3f0"
"env0_project_id" = "ef472c82-bb0d-49d8-8bd8-27ec702ab776"
}
! tags_all = {
! "Demo" = "Feb 20" -> "Aug 14"
- "Test" = "new tag" -> null
# (5 unchanged elements hidden)
}
! vpc_security_group_ids = [
- "sg-0e5c4b7d6b7208b08",
] -> (known after apply)
# (10 unchanged attributes hidden)
- enclave_options {
- enabled = false -> null
}
- metadata_options {
- http_endpoint = "enabled" -> null
- http_put_response_hop_limit = 1 -> null
- http_tokens = "optional" -> null
}
- root_block_device {
- delete_on_termination = true -> null
- device_name = "/dev/sda1" -> null
- encrypted = false -> null
- iops = 100 -> null
- tags = {} -> null
- throughput = 0 -> null
- volume_id = "vol-0cc844ccfddb286c4" -> null
- volume_size = 8 -> null
- volume_type = "gp2" -> null
}
# (1 unchanged block hidden)
}
Plan: 1 to add, 0 to change, 1 to destroy.
Changes to Outputs:
! instances = [
- "i-0133195ac504330b1",
+ (known after apply),
]
! private_ip = [
- "10.25.134.109",
+ (known after apply),
]
! public_ip = [
- "34.222.155.167",
+ (known after apply),
] |
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
! update in-place
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] will be updated in-place
! resource "aws_instance" "this" {
id = "i-0edb9a0c30d5b4a71"
! tags = {
! "Demo" = "May 20" -> "Aug 14"
"ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/83d50452-1db5-4fa1-9d6e-f9fa21a2e160"
"Name" = "karl-testing"
"Owner" = "acme demo org"
"Terraform" = "true"
- "Test" = "new taga" -> null
"env0_environment_id" = "83d50452-1db5-4fa1-9d6e-f9fa21a2e160"
"env0_project_id" = "7320dd7a-4822-426c-84b5-62ddd8be0799"
}
! tags_all = {
! "Demo" = "May 20" -> "Aug 14"
- "Test" = "new taga" -> null
# (6 unchanged elements hidden)
}
# (27 unchanged attributes hidden)
# (4 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "password" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "db_username" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵ |
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] will be created
+ resource "aws_instance" "this" {
+ ami = "ami-0a15226b1f7f23580"
+ arn = (known after apply)
+ associate_public_ip_address = true
+ availability_zone = (known after apply)
+ cpu_core_count = (known after apply)
+ cpu_threads_per_core = (known after apply)
+ disable_api_termination = false
+ ebs_optimized = false
+ get_password_data = false
+ host_id = (known after apply)
+ id = (known after apply)
+ instance_initiated_shutdown_behavior = (known after apply)
+ instance_state = (known after apply)
+ instance_type = "t3a.medium"
+ ipv6_address_count = (known after apply)
+ ipv6_addresses = (known after apply)
+ key_name = (known after apply)
+ monitoring = false
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
+ primary_network_interface_id = (known after apply)
+ private_dns = (known after apply)
+ private_ip = (known after apply)
+ public_dns = (known after apply)
+ public_ip = (known after apply)
+ secondary_private_ips = (known after apply)
+ security_groups = (known after apply)
+ source_dest_check = true
+ subnet_id = "subnet-00d0e578ddbcd203b"
+ tags = {
+ "Demo" = "Aug 14"
+ "Name" = "acme-luis"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "env0_environment_id" = "40774c06-1206-4fa1-a9ca-5970b3931b15"
+ "env0_project_id" = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
}
+ tags_all = {
+ "Demo" = "Aug 14"
+ "Name" = "acme-luis"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "env0_environment_id" = "40774c06-1206-4fa1-a9ca-5970b3931b15"
+ "env0_project_id" = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
}
+ tenancy = "default"
+ volume_tags = {
+ "Name" = "acme-luis"
+ "env0_environment_id" = "40774c06-1206-4fa1-a9ca-5970b3931b15"
+ "env0_project_id" = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
}
+ vpc_security_group_ids = (known after apply)
+ credit_specification {
+ cpu_credits = "standard"
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ instances = [
+ (known after apply),
]
+ private_ip = [
+ (known after apply),
]
+ public_ip = [
+ (known after apply),
]Cost Estimation DetailsKey: * usage cost, ~ changed, + added, - removed
──────────────────────────────────
Project: env0/acme-demo/.env0workdir/env0_tf_plan.json
+ module.acme-ec2.aws_instance.this[0]
+$28
+ Instance usage (Linux/UNIX, on-demand, t3a.medium)
+$27
+ root_block_device
+ Storage (general purpose SSD, gp2)
+$0.80
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount: +$28 ($0.00 → $28)
──────────────────────────────────
Key: * usage cost, ~ changed, + added, - removed
*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.
1 cloud resource was detected:
∙ 1 was estimated
Infracost estimate: Monthly estimate increased by $28 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json ┃ +$28 ┃ - ┃ +$28 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] will be created
+ resource "aws_instance" "this" {
+ ami = "ami-0a15226b1f7f23580"
+ arn = (known after apply)
+ associate_public_ip_address = true
+ availability_zone = (known after apply)
+ cpu_core_count = (known after apply)
+ cpu_threads_per_core = (known after apply)
+ disable_api_termination = false
+ ebs_optimized = false
+ get_password_data = false
+ host_id = (known after apply)
+ id = (known after apply)
+ instance_initiated_shutdown_behavior = (known after apply)
+ instance_state = (known after apply)
+ instance_type = "t3a.large"
+ ipv6_address_count = (known after apply)
+ ipv6_addresses = (known after apply)
+ key_name = (known after apply)
+ monitoring = false
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
+ primary_network_interface_id = (known after apply)
+ private_dns = (known after apply)
+ private_ip = (known after apply)
+ public_dns = (known after apply)
+ public_ip = (known after apply)
+ secondary_private_ips = (known after apply)
+ security_groups = (known after apply)
+ source_dest_check = true
+ subnet_id = "subnet-0239c0713c64a677f"
+ tags = {
+ "Demo" = "Aug 14"
+ "ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/3cf66970-fab8-40ef-acac-d0798ee0320b"
+ "Name" = "acme-frontend"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "env0_environment_id" = "3cf66970-fab8-40ef-acac-d0798ee0320b"
+ "env0_project_id" = "7320dd7a-4822-426c-84b5-62ddd8be0799"
}
+ tags_all = {
+ "Demo" = "Aug 14"
+ "ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/3cf66970-fab8-40ef-acac-d0798ee0320b"
+ "Name" = "acme-frontend"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "env0_environment_id" = "3cf66970-fab8-40ef-acac-d0798ee0320b"
+ "env0_project_id" = "7320dd7a-4822-426c-84b5-62ddd8be0799"
}
+ tenancy = "default"
+ volume_tags = {
+ "ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/3cf66970-fab8-40ef-acac-d0798ee0320b"
+ "Name" = "acme-frontend"
+ "env0_environment_id" = "3cf66970-fab8-40ef-acac-d0798ee0320b"
+ "env0_project_id" = "7320dd7a-4822-426c-84b5-62ddd8be0799"
}
+ vpc_security_group_ids = (known after apply)
+ credit_specification {
+ cpu_credits = "standard"
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ instances = [
+ (known after apply),
]
+ private_ip = [
+ (known after apply),
]
+ public_ip = [
+ (known after apply),
]
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "db_username" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "password" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵Cost Estimation DetailsKey: * usage cost, ~ changed, + added, - removed
──────────────────────────────────
Project: env0/acme-demo/.env0workdir/env0_tf_plan.json
+ module.acme-ec2.aws_instance.this[0]
+$56
+ Instance usage (Linux/UNIX, on-demand, t3a.large)
+$55
+ root_block_device
+ Storage (general purpose SSD, gp2)
+$0.80
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount: +$56 ($0.00 → $56)
──────────────────────────────────
Key: * usage cost, ~ changed, + added, - removed
*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.
1 cloud resource was detected:
∙ 1 was estimated
Infracost estimate: Monthly estimate increased by $56 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json ┃ +$56 ┃ - ┃ +$56 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] will be created
+ resource "aws_instance" "this" {
+ ami = "ami-0a15226b1f7f23580"
+ arn = (known after apply)
+ associate_public_ip_address = true
+ availability_zone = (known after apply)
+ cpu_core_count = (known after apply)
+ cpu_threads_per_core = (known after apply)
+ disable_api_termination = false
+ ebs_optimized = false
+ get_password_data = false
+ host_id = (known after apply)
+ id = (known after apply)
+ instance_initiated_shutdown_behavior = (known after apply)
+ instance_state = (known after apply)
+ instance_type = "t3a.medium"
+ ipv6_address_count = (known after apply)
+ ipv6_addresses = (known after apply)
+ key_name = (known after apply)
+ monitoring = false
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
+ primary_network_interface_id = (known after apply)
+ private_dns = (known after apply)
+ private_ip = (known after apply)
+ public_dns = (known after apply)
+ public_ip = (known after apply)
+ secondary_private_ips = (known after apply)
+ security_groups = (known after apply)
+ source_dest_check = true
+ subnet_id = "subnet-0239c0713c64a677f"
+ tags = {
+ "Demo" = "Aug 14"
+ "ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/d2124cb0-3e67-484c-a06e-1d6e2aaa8353"
+ "Name" = "acme-frontend"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "env0_environment_id" = "d2124cb0-3e67-484c-a06e-1d6e2aaa8353"
+ "env0_project_id" = "7320dd7a-4822-426c-84b5-62ddd8be0799"
}
+ tags_all = {
+ "Demo" = "Aug 14"
+ "ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/d2124cb0-3e67-484c-a06e-1d6e2aaa8353"
+ "Name" = "acme-frontend"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "env0_environment_id" = "d2124cb0-3e67-484c-a06e-1d6e2aaa8353"
+ "env0_project_id" = "7320dd7a-4822-426c-84b5-62ddd8be0799"
}
+ tenancy = "default"
+ volume_tags = {
+ "ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/d2124cb0-3e67-484c-a06e-1d6e2aaa8353"
+ "Name" = "acme-frontend"
+ "env0_environment_id" = "d2124cb0-3e67-484c-a06e-1d6e2aaa8353"
+ "env0_project_id" = "7320dd7a-4822-426c-84b5-62ddd8be0799"
}
+ vpc_security_group_ids = (known after apply)
+ credit_specification {
+ cpu_credits = "standard"
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ instances = [
+ (known after apply),
]
+ private_ip = [
+ (known after apply),
]
+ public_ip = [
+ (known after apply),
]
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "password" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "db_username" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵Cost Estimation DetailsKey: * usage cost, ~ changed, + added, - removed
──────────────────────────────────
Project: env0/acme-demo/.env0workdir/env0_tf_plan.json
+ module.acme-ec2.aws_instance.this[0]
+$28
+ Instance usage (Linux/UNIX, on-demand, t3a.medium)
+$27
+ root_block_device
+ Storage (general purpose SSD, gp2)
+$0.80
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount: +$28 ($0.00 → $28)
──────────────────────────────────
Key: * usage cost, ~ changed, + added, - removed
*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.
1 cloud resource was detected:
∙ 1 was estimated
Infracost estimate: Monthly estimate increased by $28 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json ┃ +$28 ┃ - ┃ +$28 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
|
Failure Details╷
│ Error: multiple VPCs matched; use additional constraints to reduce matches to a single VPC
│
│ with data.aws_vpc.selected,
│ on ec2.tf line 32, in data "aws_vpc" "selected":
│ 32: data "aws_vpc" "selected" {
│
╵
|
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
! update in-place
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] will be updated in-place
! resource "aws_instance" "this" {
id = "i-086a41dae20d02f21"
! instance_type = "t3a.small" -> "t3a.large"
! tags = {
! "Demo" = "May 20" -> "Aug 14"
"ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/33262836-7f8d-4ebc-b9a4-86639a09033d"
"Name" = "acme-frontend"
"Owner" = "acme demo org"
"Terraform" = "true"
- "Test" = "new taga" -> null
"env0_environment_id" = "33262836-7f8d-4ebc-b9a4-86639a09033d"
"env0_project_id" = "7320dd7a-4822-426c-84b5-62ddd8be0799"
}
! tags_all = {
! "Demo" = "May 20" -> "Aug 14"
- "Test" = "new taga" -> null
# (6 unchanged elements hidden)
}
# (26 unchanged attributes hidden)
# (4 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "password" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "db_username" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵Cost Estimation DetailsKey: * usage cost, ~ changed, + added, - removed
──────────────────────────────────
Project: env0/acme-demo/.env0workdir/env0_tf_plan.json
! module.acme-ec2.aws_instance.this[0]
+$41 ($15 → $56)
! Instance usage (Linux/UNIX, on-demand, t3a.small → t3a.large)
+$41 ($14 → $55)
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount: +$41 ($15 → $56)
Percent: +283%
──────────────────────────────────
Key: * usage cost, ~ changed, + added, - removed
*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.
1 cloud resource was detected:
∙ 1 was estimated
Infracost estimate: Monthly estimate increased by $41 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json ┃ +$41 ┃ - ┃ +$41 (+283%) ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] must be replaced
-/+ resource "aws_instance" "this" {
! ami = "ami-07182692443fccde1" -> "ami-0a15226b1f7f23580" # forces replacement
! arn = "arn:aws:ec2:us-west-2:244172364962:instance/i-06f32226ffd418da7" -> (known after apply)
! availability_zone = "us-west-2b" -> (known after apply)
! cpu_core_count = 1 -> (known after apply)
! cpu_threads_per_core = 2 -> (known after apply)
- hibernation = false -> null
+ host_id = (known after apply)
! id = "i-06f32226ffd418da7" -> (known after apply)
! instance_initiated_shutdown_behavior = "stop" -> (known after apply)
! instance_state = "running" -> (known after apply)
! ipv6_address_count = 0 -> (known after apply)
! ipv6_addresses = [] -> (known after apply)
+ key_name = (known after apply)
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
! primary_network_interface_id = "eni-0452c18647b2fb372" -> (known after apply)
! private_dns = "ip-10-0-3-60.us-west-2.compute.internal" -> (known after apply)
! private_ip = "10.0.3.60" -> (known after apply)
+ public_dns = (known after apply)
! public_ip = "35.93.189.223" -> (known after apply)
! secondary_private_ips = [] -> (known after apply)
! security_groups = [] -> (known after apply)
! tags = {
! "Demo" = "May 20" -> "Aug 14"
"Name" = "env0-acme-ec2"
"Owner" = "acme demo org"
"Terraform" = "true"
- "Test" = "new taga" -> null
"env0_environment_id" = "c80bc11d-1eb2-45fa-a591-69ffd3c5d439"
"env0_project_id" = "cd11f372-4ed1-4214-8029-96f2eb0babc0"
}
! tags_all = {
! "Demo" = "May 20" -> "Aug 14"
- "Test" = "new taga" -> null
# (5 unchanged elements hidden)
}
! vpc_security_group_ids = [
- "sg-08fdaac30443c7649",
] -> (known after apply)
# (10 unchanged attributes hidden)
! ebs_block_device {
+ ami = (known after apply)
+ arn = (known after apply)
+ associate_public_ip_address = (known after apply)
+ availability_zone = (known after apply)
+ cpu_core_count = (known after apply)
+ cpu_threads_per_core = (known after apply)
+ disable_api_termination = (known after apply)
+ ebs_optimized = (known after apply)
+ get_password_data = (known after apply)
+ hibernation = (known after apply)
+ host_id = (known after apply)
+ iam_instance_profile = (known after apply)
+ id = (known after apply)
+ instance_initiated_shutdown_behavior = (known after apply)
+ instance_state = (known after apply)
+ instance_type = (known after apply)
+ ipv6_address_count = (known after apply)
+ ipv6_addresses = (known after apply)
+ key_name = (known after apply)
+ monitoring = (known after apply)
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
+ primary_network_interface_id = (known after apply)
+ private_dns = (known after apply)
+ private_ip = (known after apply)
+ public_dns = (known after apply)
+ public_ip = (known after apply)
+ secondary_private_ips = (known after apply)
+ security_groups = (known after apply)
+ source_dest_check = (known after apply)
+ subnet_id = (known after apply)
+ tags = (known after apply)
+ tags_all = (known after apply)
+ tenancy = (known after apply)
+ user_data = (known after apply)
+ user_data_base64 = (known after apply)
+ volume_tags = (known after apply)
+ vpc_security_group_ids = (known after apply)
} -> (known after apply)
! enclave_options {
+ ami = (known after apply)
+ arn = (known after apply)
+ associate_public_ip_address = (known after apply)
+ availability_zone = (known after apply)
+ cpu_core_count = (known after apply)
+ cpu_threads_per_core = (known after apply)
+ disable_api_termination = (known after apply)
+ ebs_optimized = (known after apply)
+ get_password_data = (known after apply)
+ hibernation = (known after apply)
+ host_id = (known after apply)
+ iam_instance_profile = (known after apply)
+ id = (known after apply)
+ instance_initiated_shutdown_behavior = (known after apply)
+ instance_state = (known after apply)
+ instance_type = (known after apply)
+ ipv6_address_count = (known after apply)
+ ipv6_addresses = (known after apply)
+ key_name = (known after apply)
+ monitoring = (known after apply)
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
+ primary_network_interface_id = (known after apply)
+ private_dns = (known after apply)
+ private_ip = (known after apply)
+ public_dns = (known after apply)
+ public_ip = (known after apply)
+ secondary_private_ips = (known after apply)
+ security_groups = (known after apply)
+ source_dest_check = (known after apply)
+ subnet_id = (known after apply)
+ tags = (known after apply)
+ tags_all = (known after apply)
+ tenancy = (known after apply)
+ user_data = (known after apply)
+ user_data_base64 = (known after apply)
+ volume_tags = (known after apply)
+ vpc_security_group_ids = (known after apply)
} -> (known after apply)
! ephemeral_block_device {
+ ami = (known after apply)
+ arn = (known after apply)
+ associate_public_ip_address = (known after apply)
+ availability_zone = (known after apply)
+ cpu_core_count = (known after apply)
+ cpu_threads_per_core = (known after apply)
+ disable_api_termination = (known after apply)
+ ebs_optimized = (known after apply)
+ get_password_data = (known after apply)
+ hibernation = (known after apply)
+ host_id = (known after apply)
+ iam_instance_profile = (known after apply)
+ id = (known after apply)
+ instance_initiated_shutdown_behavior = (known after apply)
+ instance_state = (known after apply)
+ instance_type = (known after apply)
+ ipv6_address_count = (known after apply)
+ ipv6_addresses = (known after apply)
+ key_name = (known after apply)
+ monitoring = (known after apply)
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
+ primary_network_interface_id = (known after apply)
+ private_dns = (known after apply)
+ private_ip = (known after apply)
+ public_dns = (known after apply)
+ public_ip = (known after apply)
+ secondary_private_ips = (known after apply)
+ security_groups = (known after apply)
+ source_dest_check = (known after apply)
+ subnet_id = (known after apply)
+ tags = (known after apply)
+ tags_all = (known after apply)
+ tenancy = (known after apply)
+ user_data = (known after apply)
+ user_data_base64 = (known after apply)
+ volume_tags = (known after apply)
+ vpc_security_group_ids = (known after apply)
} -> (known after apply)
! metadata_options {
+ ami = (known after apply)
+ arn = (known after apply)
+ associate_public_ip_address = (known after apply)
+ availability_zone = (known after apply)
+ cpu_core_count = (known after apply)
+ cpu_threads_per_core = (known after apply)
+ disable_api_termination = (known after apply)
+ ebs_optimized = (known after apply)
+ get_password_data = (known after apply)
+ hibernation = (known after apply)
+ host_id = (known after apply)
+ iam_instance_profile = (known after apply)
+ id = (known after apply)
+ instance_initiated_shutdown_behavior = (known after apply)
+ instance_state = (known after apply)
+ instance_type = (known after apply)
+ ipv6_address_count = (known after apply)
+ ipv6_addresses = (known after apply)
+ key_name = (known after apply)
+ monitoring = (known after apply)
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
+ primary_network_interface_id = (known after apply)
+ private_dns = (known after apply)
+ private_ip = (known after apply)
+ public_dns = (known after apply)
+ public_ip = (known after apply)
+ secondary_private_ips = (known after apply)
+ security_groups = (known after apply)
+ source_dest_check = (known after apply)
+ subnet_id = (known after apply)
+ tags = (known after apply)
+ tags_all = (known after apply)
+ tenancy = (known after apply)
+ user_data = (known after apply)
+ user_data_base64 = (known after apply)
+ volume_tags = (known after apply)
+ vpc_security_group_ids = (known after apply)
} -> (known after apply)
! network_interface {
+ ami = (known after apply)
+ arn = (known after apply)
+ associate_public_ip_address = (known after apply)
+ availability_zone = (known after apply)
+ cpu_core_count = (known after apply)
+ cpu_threads_per_core = (known after apply)
+ disable_api_termination = (known after apply)
+ ebs_optimized = (known after apply)
+ get_password_data = (known after apply)
+ hibernation = (known after apply)
+ host_id = (known after apply)
+ iam_instance_profile = (known after apply)
+ id = (known after apply)
+ instance_initiated_shutdown_behavior = (known after apply)
+ instance_state = (known after apply)
+ instance_type = (known after apply)
+ ipv6_address_count = (known after apply)
+ ipv6_addresses = (known after apply)
+ key_name = (known after apply)
+ monitoring = (known after apply)
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
+ primary_network_interface_id = (known after apply)
+ private_dns = (known after apply)
+ private_ip = (known after apply)
+ public_dns = (known after apply)
+ public_ip = (known after apply)
+ secondary_private_ips = (known after apply)
+ security_groups = (known after apply)
+ source_dest_check = (known after apply)
+ subnet_id = (known after apply)
+ tags = (known after apply)
+ tags_all = (known after apply)
+ tenancy = (known after apply)
+ user_data = (known after apply)
+ user_data_base64 = (known after apply)
+ volume_tags = (known after apply)
+ vpc_security_group_ids = (known after apply)
} -> (known after apply)
! root_block_device {
+ ami = (known after apply)
+ arn = (known after apply)
+ associate_public_ip_address = (known after apply)
+ availability_zone = (known after apply)
+ cpu_core_count = (known after apply)
+ cpu_threads_per_core = (known after apply)
+ disable_api_termination = (known after apply)
+ ebs_optimized = (known after apply)
+ get_password_data = (known after apply)
+ hibernation = (known after apply)
+ host_id = (known after apply)
+ iam_instance_profile = (known after apply)
+ id = (known after apply)
+ instance_initiated_shutdown_behavior = (known after apply)
+ instance_state = (known after apply)
+ instance_type = (known after apply)
+ ipv6_address_count = (known after apply)
+ ipv6_addresses = (known after apply)
+ key_name = (known after apply)
+ monitoring = (known after apply)
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
+ primary_network_interface_id = (known after apply)
+ private_dns = (known after apply)
+ private_ip = (known after apply)
+ public_dns = (known after apply)
+ public_ip = (known after apply)
+ secondary_private_ips = (known after apply)
+ security_groups = (known after apply)
+ source_dest_check = (known after apply)
+ subnet_id = (known after apply)
+ tags = (known after apply)
+ tags_all = (known after apply)
+ tenancy = (known after apply)
+ user_data = (known after apply)
+ user_data_base64 = (known after apply)
+ volume_tags = (known after apply)
+ vpc_security_group_ids = (known after apply)
} -> (known after apply)
# (1 unchanged block hidden)
}
Plan: 1 to add, 0 to change, 1 to destroy.
Changes to Outputs:
! instances = [
- "i-06f32226ffd418da7",
+ (known after apply),
]
! private_ip = [
- "10.0.3.60",
+ (known after apply),
]
! public_ip = [
- "35.93.189.223",
+ (known after apply),
] |
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
! update in-place
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] will be updated in-place
! resource "aws_instance" "this" {
id = "i-02f5ea650cec47b46"
! instance_type = "t3a.small" -> "t3a.large"
! tags = {
! "Demo" = "May 20" -> "Aug 14"
"ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/4cbb9cfc-3ade-44d1-afe6-59045ec9d9fb"
"Name" = "acme-frontend"
"Owner" = "acme demo org"
"Terraform" = "true"
- "Test" = "new taga" -> null
"env0_environment_id" = "4cbb9cfc-3ade-44d1-afe6-59045ec9d9fb"
"env0_project_id" = "7320dd7a-4822-426c-84b5-62ddd8be0799"
}
! tags_all = {
! "Demo" = "May 20" -> "Aug 14"
- "Test" = "new taga" -> null
# (6 unchanged elements hidden)
}
# (26 unchanged attributes hidden)
# (4 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "password" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "db_username" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵Cost Estimation DetailsKey: * usage cost, ~ changed, + added, - removed
──────────────────────────────────
Project: env0/acme-demo/.env0workdir/env0_tf_plan.json
! module.acme-ec2.aws_instance.this[0]
+$41 ($15 → $56)
! Instance usage (Linux/UNIX, on-demand, t3a.small → t3a.large)
+$41 ($14 → $55)
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount: +$41 ($15 → $56)
Percent: +283%
──────────────────────────────────
Key: * usage cost, ~ changed, + added, - removed
*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.
1 cloud resource was detected:
∙ 1 was estimated
Infracost estimate: Monthly estimate increased by $41 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json ┃ +$41 ┃ - ┃ +$41 (+283%) ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] will be created
+ resource "aws_instance" "this" {
+ ami = "ami-0a15226b1f7f23580"
+ arn = (known after apply)
+ associate_public_ip_address = true
+ availability_zone = (known after apply)
+ cpu_core_count = (known after apply)
+ cpu_threads_per_core = (known after apply)
+ disable_api_termination = false
+ ebs_optimized = false
+ get_password_data = false
+ host_id = (known after apply)
+ id = (known after apply)
+ instance_initiated_shutdown_behavior = (known after apply)
+ instance_state = (known after apply)
+ instance_type = "t3a.large"
+ ipv6_address_count = (known after apply)
+ ipv6_addresses = (known after apply)
+ key_name = (known after apply)
+ monitoring = false
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
+ primary_network_interface_id = (known after apply)
+ private_dns = (known after apply)
+ private_ip = (known after apply)
+ public_dns = (known after apply)
+ public_ip = (known after apply)
+ secondary_private_ips = (known after apply)
+ security_groups = (known after apply)
+ source_dest_check = true
+ subnet_id = "subnet-00d0e578ddbcd203b"
+ tags = {
+ "Demo" = "Aug 14"
+ "Name" = "acme-frontend"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "env0_environment_id" = "7dc5b34b-bd34-47d9-8288-51feca8c8d8e"
+ "env0_project_id" = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
}
+ tags_all = {
+ "Demo" = "Aug 14"
+ "Name" = "acme-frontend"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "env0_environment_id" = "7dc5b34b-bd34-47d9-8288-51feca8c8d8e"
+ "env0_project_id" = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
}
+ tenancy = "default"
+ volume_tags = {
+ "Name" = "acme-frontend"
+ "env0_environment_id" = "7dc5b34b-bd34-47d9-8288-51feca8c8d8e"
+ "env0_project_id" = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
}
+ vpc_security_group_ids = (known after apply)
+ credit_specification {
+ cpu_credits = "standard"
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ instances = [
+ (known after apply),
]
+ private_ip = [
+ (known after apply),
]
+ public_ip = [
+ (known after apply),
]Cost Estimation DetailsKey: * usage cost, ~ changed, + added, - removed
──────────────────────────────────
Project: env0/acme-demo/.env0workdir/env0_tf_plan.json
+ module.acme-ec2.aws_instance.this[0]
+$56
+ Instance usage (Linux/UNIX, on-demand, t3a.large)
+$55
+ root_block_device
+ Storage (general purpose SSD, gp2)
+$0.80
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount: +$56 ($0.00 → $56)
──────────────────────────────────
Key: * usage cost, ~ changed, + added, - removed
*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.
1 cloud resource was detected:
∙ 1 was estimated
Infracost estimate: Monthly estimate increased by $56 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json ┃ +$56 ┃ - ┃ +$56 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] must be replaced
-/+ resource "aws_instance" "this" {
! ami = "ami-04f5a6a7ecc99fbe2" -> "ami-0a15226b1f7f23580" # forces replacement
! arn = "arn:aws:ec2:us-west-2:326535729404:instance/i-0cd07d46b3d86081f" -> (known after apply)
! associate_public_ip_address = false -> true # forces replacement
! availability_zone = "us-west-2a" -> (known after apply)
! cpu_core_count = 1 -> (known after apply)
! cpu_threads_per_core = 2 -> (known after apply)
- hibernation = false -> null
+ host_id = (known after apply)
! id = "i-0cd07d46b3d86081f" -> (known after apply)
! instance_initiated_shutdown_behavior = "stop" -> (known after apply)
! instance_state = "stopped" -> (known after apply)
! ipv6_address_count = 0 -> (known after apply)
! ipv6_addresses = [] -> (known after apply)
+ key_name = (known after apply)
+ outpost_arn = (known after apply)
+ password_data = (known after apply)
+ placement_group = (known after apply)
! primary_network_interface_id = "eni-0ef0d576afc86fb4b" -> (known after apply)
! private_dns = "ip-172-32-21-113.us-west-2.compute.internal" -> (known after apply)
! private_ip = "172.32.21.113" -> (known after apply)
+ public_dns = (known after apply)
+ public_ip = (known after apply)
! secondary_private_ips = [] -> (known after apply)
! security_groups = [] -> (known after apply)
! tags = {
! "Demo" = "March 18" -> "Aug 14"
"Name" = "acme-frontend-drift-cause-test"
"Owner" = "acme demo org"
"Terraform" = "true"
- "Test" = "new tag" -> null
}
! tags_all = {
! "Demo" = "March 18" -> "Aug 14"
- "Test" = "new tag" -> null
# (3 unchanged elements hidden)
}
! vpc_security_group_ids = [
- "sg-02f4a89f8b797a3da",
] -> (known after apply)
# (9 unchanged attributes hidden)
- enclave_options {
- enabled = false -> null
}
- metadata_options {
- http_endpoint = "enabled" -> null
- http_put_response_hop_limit = 1 -> null
- http_tokens = "optional" -> null
}
- root_block_device {
- delete_on_termination = true -> null
- device_name = "/dev/sda1" -> null
- encrypted = false -> null
- iops = 100 -> null
- tags = {} -> null
- throughput = 0 -> null
- volume_id = "vol-0c277c1c503b04a75" -> null
- volume_size = 8 -> null
- volume_type = "gp2" -> null
}
# (1 unchanged block hidden)
}
Plan: 1 to add, 0 to change, 1 to destroy.
Changes to Outputs:
! instances = [
- "i-0cd07d46b3d86081f",
+ (known after apply),
]
! private_ip = [
- "172.32.21.113",
+ (known after apply),
]
! public_ip = [
- "54.200.121.69",
+ (known after apply),
] |
|
Failure Details╷
│ Error: multiple VPCs matched; use additional constraints to reduce matches to a single VPC
│
│ with data.aws_vpc.selected,
│ on ec2.tf line 32, in data "aws_vpc" "selected":
│ 32: data "aws_vpc" "selected" {
│
╵
|
|
Plan DetailsOpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
! update in-place
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] will be updated in-place
! resource "aws_instance" "this" {
id = "i-00226ba015ce69b77"
! instance_type = "t3a.small" -> "t3a.large"
! tags = {
! "Demo" = "May 20" -> "Aug 14"
"ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/c1ae964e-a3c4-41b9-b908-967f4980bf53"
"Name" = "acme-frontend"
"Owner" = "acme demo org"
"Terraform" = "true"
- "Test" = "new taga" -> null
"env0_environment_id" = "c1ae964e-a3c4-41b9-b908-967f4980bf53"
"env0_project_id" = "7320dd7a-4822-426c-84b5-62ddd8be0799"
}
! tags_all = {
! "Demo" = "May 20" -> "Aug 14"
- "Test" = "new taga" -> null
# (6 unchanged elements hidden)
}
# (26 unchanged attributes hidden)
# (4 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "db_username" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "password" but a value
│ was found in file "env0.auto.tfvars.json". If you meant to use this value,
│ add a "variable" block to the configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide
│ certain "global" settings to all configurations in your organization. To
│ reduce the verbosity of these warnings, use the -compact-warnings option.
╵Cost Estimation DetailsKey: * usage cost, ~ changed, + added, - removed
──────────────────────────────────
Project: env0/acme-demo/.env0workdir/env0_tf_plan.json
! module.acme-ec2.aws_instance.this[0]
+$41 ($15 → $56)
! Instance usage (Linux/UNIX, on-demand, t3a.small → t3a.large)
+$41 ($14 → $55)
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount: +$41 ($15 → $56)
Percent: +283%
──────────────────────────────────
Key: * usage cost, ~ changed, + added, - removed
*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options.
1 cloud resource was detected:
∙ 1 was estimated
Infracost estimate: Monthly estimate increased by $41 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json ┃ +$41 ┃ - ┃ +$41 (+283%) ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |


No description provided.