-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ec2.tf #729
base: main
Are you sure you want to change the base?
Update ec2.tf #729
Conversation
The following env0 environments are affected by changes to this PR:
To apply changes to all the environments above, use:
To apply changes using custom filters (click here for more info), use:
|
Failure Details╷
│ Error: Invalid backend configuration argument
│
│ The backend configuration argument "bucket" given on the command line is
│ not expected for the selected backend type.
╵
╷
│ Error: Invalid backend configuration argument
│
│ The backend configuration argument "dynamodb_table" given on the command
│ line is not expected for the selected backend type.
╵
|
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-061ec8eaee2cdba48"
+ 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" = "Feb 12"
+ "Name" = "env0-acme-ec2"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "Test" = "new tag"
}
+ tags_all = {
+ "Demo" = "Feb 12"
+ "Name" = "env0-acme-ec2"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "Test" = "new tag"
}
+ 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-0cd202468248306f2" -> "ami-061ec8eaee2cdba48" # forces replacement
! arn = "arn:aws:ec2:us-west-2:244172364962:instance/i-0d412a3c54efede3a" -> (known after apply)
! associate_public_ip_address = false -> true # forces replacement
! 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-0d412a3c54efede3a" -> (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-03b85aa0308d2c2d0" -> (known after apply)
! private_dns = "ip-10-0-3-232.us-west-2.compute.internal" -> (known after apply)
! private_ip = "10.0.3.232" -> (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" = "Dec 17" -> "Feb 12"
"ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/78a77c76-cab0-44ad-bd0d-60792ad423e0"
"Name" = "turbonomic-ec2"
"Owner" = "acme demo org"
"Terraform" = "true"
"Test" = "new tag"
"env0_environment_id" = "78a77c76-cab0-44ad-bd0d-60792ad423e0"
"env0_project_id" = "7320dd7a-4822-426c-84b5-62ddd8be0799"
}
! tags_all = {
! "Demo" = "Dec 17" -> "Feb 12"
# (7 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 = 3000 -> null
- tags = {} -> null
- throughput = 125 -> null
- volume_id = "vol-0b861faeaa0e7edcb" -> null
- volume_size = 8 -> null
- volume_type = "gp3" -> null
}
# (1 unchanged block hidden)
}
Plan: 1 to add, 0 to change, 1 to destroy.
Changes to Outputs:
! instances = [
- "i-0d412a3c54efede3a",
+ (known after apply),
]
! private_ip = [
- "10.0.3.232",
+ (known after apply),
]
! public_ip = [
- "35.90.131.209",
+ (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]
+$0.16 ($56 → $56)
! root_block_device
! Storage (general purpose SSD, gp3 → gp2)
+$0.16 ($0.64 → $0.80)
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount: +$0.16 ($56 → $56)
Percent: 0%
──────────────────────────────────
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 $0.16 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json ┃ +$0.16 ┃ - ┃ +$0.16 (0%) ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
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-061ec8eaee2cdba48" # 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" -> "Feb 12"
"Name" = "env0-acme-ec2"
"Owner" = "acme demo org"
"Terraform" = "true"
"Test" = "new tag"
}
! tags_all = {
! "Demo" = "Dec 31" -> "Feb 12"
# (4 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 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-061ec8eaee2cdba48"
+ 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" = "Feb 12"
+ "Name" = "acme-frontend"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "Test" = "new tag"
+ "env0_environment_id" = "3d85a284-69e4-41b0-a74d-30ee56a8e90c"
+ "env0_project_id" = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
}
+ tags_all = {
+ "Demo" = "Feb 12"
+ "Name" = "acme-frontend"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "Test" = "new tag"
+ "env0_environment_id" = "3d85a284-69e4-41b0-a74d-30ee56a8e90c"
+ "env0_project_id" = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
}
+ tenancy = "default"
+ volume_tags = {
+ "Name" = "acme-frontend"
+ "env0_environment_id" = "3d85a284-69e4-41b0-a74d-30ee56a8e90c"
+ "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:
+ create
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] will be created
+ resource "aws_instance" "this" {
+ ami = "ami-061ec8eaee2cdba48"
+ 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" = "Feb 12"
+ "Name" = "acme-frontend"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "Test" = "new tag"
}
+ tags_all = {
+ "Demo" = "Feb 12"
+ "Name" = "acme-frontend"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "Test" = "new tag"
}
+ 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),
]
|
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" {
│
╵
|
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-0ff379b8a57eb4a86"
! tags = {
! "Demo" = "Feb 11" -> "Feb 12"
"Name" = "env0-acme-ec2"
"Owner" = "acme demo org"
"Terraform" = "true"
"Test" = "new tag"
"env0_environment_id" = "c80bc11d-1eb2-45fa-a591-69ffd3c5d439"
"env0_project_id" = "cd11f372-4ed1-4214-8029-96f2eb0babc0"
}
! tags_all = {
! "Demo" = "Feb 11" -> "Feb 12"
# (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 "billing_org" 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.
╵
|
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: 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:
+ create
OpenTofu will perform the following actions:
# module.acme-ec2.aws_instance.this[0] will be created
+ resource "aws_instance" "this" {
+ ami = "ami-061ec8eaee2cdba48"
+ 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" = "Feb 12"
+ "ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/8f3ea92d-d004-438f-91fc-27b354965075"
+ "Name" = "acme-frontend"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "Test" = "new tag"
+ "env0_environment_id" = "8f3ea92d-d004-438f-91fc-27b354965075"
+ "env0_project_id" = "7320dd7a-4822-426c-84b5-62ddd8be0799"
}
+ tags_all = {
+ "Demo" = "Feb 12"
+ "ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/8f3ea92d-d004-438f-91fc-27b354965075"
+ "Name" = "acme-frontend"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "Test" = "new tag"
+ "env0_environment_id" = "8f3ea92d-d004-438f-91fc-27b354965075"
+ "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/8f3ea92d-d004-438f-91fc-27b354965075"
+ "Name" = "acme-frontend"
+ "env0_environment_id" = "8f3ea92d-d004-438f-91fc-27b354965075"
+ "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 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
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" {
│
╵
|
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-03304e63982adde14"
! tags = {
! "Demo" = "Feb 11" -> "Feb 12"
"ENV0_URL" = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/99eca892-2030-4832-8055-a8df7b5f84f3"
"Name" = "acme-frontend"
"Owner" = "acme demo org"
"Terraform" = "true"
"Test" = "new tag"
"env0_environment_id" = "99eca892-2030-4832-8055-a8df7b5f84f3"
"env0_project_id" = "7320dd7a-4822-426c-84b5-62ddd8be0799"
}
! tags_all = {
! "Demo" = "Feb 11" -> "Feb 12"
# (7 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 "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.
╵
|
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-061ec8eaee2cdba48" # 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" -> "Feb 12"
"Name" = "acme-frontend"
"Owner" = "acme demo org"
"Terraform" = "true"
"Test" = "new tag"
}
! tags_all = {
! "Demo" = "Oct 22" -> "Feb 12"
# (4 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:
-/+ 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-0037cdcf69f8fc0cc" -> "ami-061ec8eaee2cdba48" # forces replacement
! arn = "arn:aws:ec2:us-west-2:326535729404:instance/i-0cf47fcf535085da5" -> (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)
! id = "i-0cf47fcf535085da5" -> (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-08c803700878ef197" -> (known after apply)
! private_dns = "ip-10-0-2-169.us-west-2.compute.internal" -> (known after apply)
! private_ip = "10.0.2.169" -> (known after apply)
+ public_dns = (known after apply)
! public_ip = "52.39.136.229" -> (known after apply)
! secondary_private_ips = [] -> (known after apply)
! security_groups = [] -> (known after apply)
! tags = {
! "Demo" = "Nov 1" -> "Feb 12"
"Name" = "acme-frontend"
"Owner" = "acme demo org"
"Terraform" = "true"
"Test" = "new tag"
"env0_environment_id" = "7ee16a20-530b-47c6-a86e-55eaafe93abb"
"env0_project_id" = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
}
! tags_all = {
! "Demo" = "Nov 1" -> "Feb 12"
# (6 unchanged elements hidden)
}
! vpc_security_group_ids = [
- "sg-0b322ebd8665b193e",
] -> (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-037ec5392c05245ac" -> 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-0cf47fcf535085da5",
+ (known after apply),
]
! private_ip = [
- "10.0.2.169",
+ (known after apply),
]
! public_ip = [
- "52.39.136.229",
+ (known after apply),
]
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "instance_count" 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 ($28 → $15)
! Instance usage (Linux/UNIX, on-demand, t3a.medium → t3a.small)
-$14 ($27 → $14)
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount: -$14 ($28 → $15)
Percent: -49%
──────────────────────────────────
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 $14 ↓
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json ┃ -$14 ┃ - ┃ -$14 (-49%) ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
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-061ec8eaee2cdba48"
+ 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-00d0e578ddbcd203b"
+ tags = {
+ "Demo" = "Feb 12"
+ "Name" = "acme-frontend-asaf"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "Test" = "new tag"
+ "env0_environment_id" = "4b8af3b5-ded4-435b-adbc-0de202bc3f56"
+ "env0_project_id" = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
}
+ tags_all = {
+ "Demo" = "Feb 12"
+ "Name" = "acme-frontend-asaf"
+ "Owner" = "acme demo org"
+ "Terraform" = "true"
+ "Test" = "new tag"
+ "env0_environment_id" = "4b8af3b5-ded4-435b-adbc-0de202bc3f56"
+ "env0_project_id" = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
}
+ tenancy = "default"
+ volume_tags = {
+ "Name" = "acme-frontend-asaf"
+ "env0_environment_id" = "4b8af3b5-ded4-435b-adbc-0de202bc3f56"
+ "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]
+$15
+ Instance usage (Linux/UNIX, on-demand, t3a.small)
+$14
+ root_block_device
+ Storage (general purpose SSD, gp2)
+$0.80
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount: +$15 ($0.00 → $15)
──────────────────────────────────
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 $15 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json ┃ +$15 ┃ - ┃ +$15 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
No description provided.