Skip to content
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 #695

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update ec2.tf #695

wants to merge 1 commit into from

Conversation

jpatterson23
Copy link
Collaborator

No description provided.

Copy link

env0 bot commented Dec 20, 2024

env0

The following env0 environments are affected by changes to this PR:

To apply changes to all the environments above, use:

env0 apply --all

To apply changes using custom filters (click here for more info), use:

env0 apply --path <project glob pattern>
env0 apply -e <environment alias>

Copy link

env0 bot commented Dec 20, 2024

env0
🚀  env0 had composed a PR Plan for environment Prod - 326535729404 / FrontEnd Servers-Commercial :

Plan: 1 to add, 0 to change, 1 to destroy.
Plan Details
OpenTofu 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-0cd202468248306f2" # 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" -> "Dec 20"
            "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" -> "Dec 20"
            # (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.
╵
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount:  -$14 ($28 → $15)
Percent: -49%
Cost Estimation Details
Key: * 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%) ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛

Full PR Plan logs on env0

Copy link

env0 bot commented Dec 20, 2024

env0
🚀  env0 had composed a PR Plan for environment dev / acme-demo simple-ec2-instance :

Plan: 1 to add, 0 to change, 1 to destroy.
Plan Details
OpenTofu 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" {
!       arn                                  = "arn:aws:ec2:us-west-2:244172364962:instance/i-0befb1384a358012a" -> (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-0befb1384a358012a" -> (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-0d4dd7e6e95b05f3d" -> (known after apply)
!       private_dns                          = "ip-10-0-3-15.us-west-2.compute.internal" -> (known after apply)
!       private_ip                           = "10.0.3.15" -> (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" -> "Dec 20"
            "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"                = "Dec 17" -> "Dec 20"
            # (6 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                  = 0 -> null
-           tags                  = {} -> null
-           throughput            = 0 -> null
-           volume_id             = "vol-0d80f2a735f036198" -> 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-0befb1384a358012a",
+       (known after apply),
    ]
!   private_ip = [
-       "10.0.3.15",
+       (known after apply),
    ]
!   public_ip  = [
-       "34.220.25.20",
+       (known after apply),
    ]
╷
│ 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.
╵
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount:  +$0.40 ($14 → $15)
Percent: +3%
Cost Estimation Details
Key: * usage cost, ~ changed, + added, - removed

──────────────────────────────────
Project: env0/acme-demo/.env0workdir/env0_tf_plan.json

! module.acme-ec2.aws_instance.this[0]
  +$0.40 ($14 → $15)

!     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:  +$0.40 ($14 → $15)
Percent: +3%

──────────────────────────────────
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.40 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project                                    ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json      ┃        +$0.40 ┃           - ┃ +$0.40 (+3%) ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛

Full PR Plan logs on env0

Copy link

env0 bot commented Dec 20, 2024

env0
🚀  env0 had composed a PR Plan for environment deva / FrontEnd Servers (EC2)-37746 :

Plan: 1 to add, 0 to change, 1 to destroy.
Plan Details
OpenTofu 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-0cd202468248306f2" # 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" -> "Dec 20"
            "Name"      = "acme-frontend"
            "Owner"     = "acme demo org"
            "Terraform" = "true"
            "Test"      = "new tag"
        }
!       tags_all                             = {
!           "Demo"      = "Oct 22" -> "Dec 20"
            # (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.
╵
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount:  -$13 ($28 → $15)
Percent: -48%
Cost Estimation Details
Key: * 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%) ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛

Full PR Plan logs on env0

Copy link

env0 bot commented Dec 20, 2024

env0
🚀  env0 had composed a PR Plan for environment Prod - 326535729404 / FrontEnd Servers EC2-54410 :

Plan: 1 to add, 0 to change, 0 to destroy.
Plan Details
OpenTofu 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-0cd202468248306f2"
+       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"                = "Dec 20"
+           "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"                = "Dec 20"
+           "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),
    ]
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount:  +$15 ($0.00 → $15)

Cost Estimation Details
Key: * 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 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛

Full PR Plan logs on env0

Copy link

env0 bot commented Dec 20, 2024

env0
🚀  env0 had composed a PR Plan for environment Stuff / FrontEnd Servers EC2-88735 :

 🚨 PR Plan Failed 🚨
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" {
│ 
╵

Full PR Plan logs on env0

Copy link

env0 bot commented Dec 20, 2024

env0
🚀  env0 had composed a PR Plan for environment Stuff / FrontEnd Servers EC2-65837 :

 🚨 PR Plan Failed 🚨
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" {
│ 
╵

Full PR Plan logs on env0

Copy link

env0 bot commented Dec 20, 2024

env0
🚀  env0 had composed a PR Plan for environment Dev - 244172364962 / FrontEnd Servers EC2-15976 :

 🚨 PR Plan Failed 🚨
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.
╵

Full PR Plan logs on env0

Copy link

env0 bot commented Dec 20, 2024

env0
🚀  env0 had composed a PR Plan for environment Stuff / kosta environment ec2 :

 🚨 PR Plan Failed 🚨
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" {
│ 
╵

Full PR Plan logs on env0

Copy link

env0 bot commented Dec 20, 2024

env0
🚀  env0 had composed a PR Plan for environment NonProd - 244172364962 / Turbonomic-EC2 :

Plan: 1 to add, 0 to change, 1 to destroy.
Plan Details
-/+ 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" {
!       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" -> "Dec 20"
            "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" -> "Dec 20"
            # (7 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                  = 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),
    ]
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount:  +$0.16 ($56 → $56)
Percent: 0%
Cost Estimation Details
Key: * 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%) ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛

Full PR Plan logs on env0

Copy link

env0 bot commented Dec 20, 2024

env0
🚀  env0 had composed a PR Plan for environment Testing OPA / FrontEnd Servers EC2-46330 :

Plan: 1 to add, 0 to change, 1 to destroy.
Plan Details
OpenTofu 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-08d0284faeed334a5" -> "ami-0cd202468248306f2" # forces replacement
!       arn                                  = "arn:aws:ec2:us-west-2:244172364962:instance/i-0ebcdc0d792349e74" -> (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-0ebcdc0d792349e74" -> (known after apply)
!       instance_initiated_shutdown_behavior = "stop" -> (known after apply)
!       instance_state                       = "running" -> (known after apply)
!       instance_type                        = "t3a.micro" -> "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-0ba7270a62f9a6aa7" -> (known after apply)
!       private_dns                          = "ip-10-0-3-113.us-west-2.compute.internal" -> (known after apply)
!       private_ip                           = "10.0.3.113" -> (known after apply)
+       public_dns                           = (known after apply)
!       public_ip                            = "52.39.78.101" -> (known after apply)
!       secondary_private_ips                = [] -> (known after apply)
!       security_groups                      = [] -> (known after apply)
!       tags                                 = {
!           "Demo"      = "September 17" -> "Dec 20"
            "Name"      = "acme-frontend"
            "Owner"     = "acme demo org"
            "Terraform" = "true"
            "Test"      = "new tag"
        }
!       tags_all                             = {
!           "Demo"      = "September 17" -> "Dec 20"
            # (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-0dfc3846728e07a7d" -> 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-0ebcdc0d792349e74",
+       (known after apply),
    ]
!   private_ip = [
-       "10.0.3.113",
+       (known after apply),
    ]
!   public_ip  = [
-       "52.39.78.101",
+       (known after apply),
    ]
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount:  +$7 ($7 → $15)
Percent: +100%
Cost Estimation Details
Key: * usage cost, ~ changed, + added, - removed

──────────────────────────────────
Project: env0/acme-demo/.env0workdir/env0_tf_plan.json

! module.acme-ec2.aws_instance.this[0]
  +$7 ($7 → $15)

!     Instance usage (Linux/UNIX, on-demand, t3a.micro → t3a.small)
      +$7 ($7 → $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:  +$7 ($7 → $15)
Percent: +100%

──────────────────────────────────
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 $7 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project                                    ┃ Baseline cost ┃ Usage cost* ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json      ┃           +$7 ┃           - ┃  +$7 (+100%) ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛

Full PR Plan logs on env0

Copy link

env0 bot commented Dec 20, 2024

env0
🚀  env0 had composed a PR Plan for environment NonProd - 244172364962 / FrontEnd Servers EC2-15000 :

Plan: 1 to add, 0 to change, 0 to destroy.
Plan Details
OpenTofu 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-0cd202468248306f2"
+       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"                = "Dec 20"
+           "ENV0_URL"            = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/7e7fa1a9-be99-4090-a511-ade96028711f"
+           "Name"                = "acme-frontend"
+           "Owner"               = "acme demo org"
+           "Terraform"           = "true"
+           "Test"                = "new tag"
+           "env0_environment_id" = "7e7fa1a9-be99-4090-a511-ade96028711f"
+           "env0_project_id"     = "7320dd7a-4822-426c-84b5-62ddd8be0799"
        }
+       tags_all                             = {
+           "Demo"                = "Dec 20"
+           "ENV0_URL"            = "https://app.env0.com/p/7320dd7a-4822-426c-84b5-62ddd8be0799/environments/7e7fa1a9-be99-4090-a511-ade96028711f"
+           "Name"                = "acme-frontend"
+           "Owner"               = "acme demo org"
+           "Terraform"           = "true"
+           "Test"                = "new tag"
+           "env0_environment_id" = "7e7fa1a9-be99-4090-a511-ade96028711f"
+           "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/7e7fa1a9-be99-4090-a511-ade96028711f"
+           "Name"                = "acme-frontend"
+           "env0_environment_id" = "7e7fa1a9-be99-4090-a511-ade96028711f"
+           "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.
╵
Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount:  +$28 ($0.00 → $28)

Cost Estimation Details
Key: * 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 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛

Full PR Plan logs on env0

Copy link

env0 bot commented Dec 20, 2024

env0
🚀  env0 had composed a PR Plan for environment Stuff / acme-demo simple-ec2-instance :

 🚨 PR Plan Failed 🚨
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.
╵

Full PR Plan logs on env0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant