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 #575

Closed
wants to merge 1 commit into from
Closed

Update ec2.tf #575

wants to merge 1 commit into from

Conversation

env0-away-dev
Copy link
Collaborator

No description provided.

Copy link

env0 bot commented May 16, 2024

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

Plan: 0 to add, 1 to change, 0 to destroy.
Plan Details
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
!   update in-place

Terraform will perform the following actions:


  # module.acme-ec2.aws_instance.this[0] will be updated in-place
!   resource "aws_instance" "this" {
        id                                   = "i-06f0b214e20a9b123"
!       tags                                 = {
!           "Demo"                = "May 10" -> "May 16"
            "Name"                = "env0-acme-ec2"
            "Owner"               = "acme demo org"
            "Terraform"           = "true"
            "Test"                = "new tag"
            "env0_environment_id" = "1f7169d4-99d3-4db6-af29-1556136518d3"
            "env0_project_id"     = "7320dd7a-4822-426c-84b5-62ddd8be0799"
        }
!       tags_all                             = {
!           "Demo"                = "May 10" -> "May 16"
            # (6 unchanged elements hidden)
        }
        # (27 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.
Failed to calculate cost estimation

Full PR Plan logs on env0

Copy link

env0 bot commented May 16, 2024

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

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-091c4300a778841cc"
+       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.micro"
+       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"                = "May 16"
+           "Name"                = "acme-frontend"
+           "Owner"               = "acme demo org"
+           "Terraform"           = "true"
+           "Test"                = "new tag"
+           "env0_environment_id" = "2aec4259-9f09-403c-b9ec-85d2d2509cfb"
+           "env0_project_id"     = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
        }
+       tags_all                             = {
+           "Demo"                = "May 16"
+           "Name"                = "acme-frontend"
+           "Owner"               = "acme demo org"
+           "Terraform"           = "true"
+           "Test"                = "new tag"
+           "env0_environment_id" = "2aec4259-9f09-403c-b9ec-85d2d2509cfb"
+           "env0_project_id"     = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
        }
+       tenancy                              = "default"
+       volume_tags                          = {
+           "Name"                = "acme-frontend"
+           "env0_environment_id" = "2aec4259-9f09-403c-b9ec-85d2d2509cfb"
+           "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:  +$8 ($0.00 → $8)

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]
  +$8

+     Instance usage (Linux/UNIX, on-demand, t3a.micro)
      +$7

+     root_block_device
    
+         Storage (general purpose SSD, gp2)
          +$0.80

Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount:  +$8 ($0.00 → $8)

──────────────────────────────────
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 cost will increase by $8 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project                                    ┃ Baseline cost ┃ Usage cost ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json      ┃           +$8 ┃        +$0 ┃          +$8 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛

Full PR Plan logs on env0

Copy link

env0 bot commented May 16, 2024

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

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-091c4300a778841cc"
+       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.micro"
+       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"      = "May 16"
+           "Name"      = "acme-frontend"
+           "Owner"     = "acme demo org"
+           "Terraform" = "true"
+           "Test"      = "new tag"
        }
+       tags_all                             = {
+           "Demo"      = "May 16"
+           "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),
    ]
╷
│ 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:  +$8 ($0.00 → $8)

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]
  +$8

+     Instance usage (Linux/UNIX, on-demand, t3a.micro)
      +$7

+     root_block_device
    
+         Storage (general purpose SSD, gp2)
          +$0.80

Monthly cost change for env0/acme-demo/.env0workdir/env0_tf_plan.json
Amount:  +$8 ($0.00 → $8)

──────────────────────────────────
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 cost will increase by $8 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Changed project                                    ┃ Baseline cost ┃ Usage cost ┃ Total change ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━╋━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ env0/acme-demo/.env0workdir/env0_tf_plan.json      ┃           +$8 ┃        +$0 ┃          +$8 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛

Full PR Plan logs on env0

Copy link

env0 bot commented May 16, 2024

🚀  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 May 16, 2024

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

Plan: 0 to add, 1 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:
!   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-001d5cda6ec966075"
!       tags                                 = {
!           "Demo"                = "May 9" -> "May 16"
            "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"                = "May 9" -> "May 16"
+           "env0_environment_id" = "7ee16a20-530b-47c6-a86e-55eaafe93abb"
+           "env0_project_id"     = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
            # (4 unchanged elements hidden)
        }
!       volume_tags                          = {
+           "env0_environment_id" = "7ee16a20-530b-47c6-a86e-55eaafe93abb"
+           "env0_project_id"     = "edba559d-ae7f-467d-a2f8-1b5a54709ead"
            # (1 unchanged element 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 "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.
╵
Failed to calculate cost estimation

Full PR Plan logs on env0

Copy link

env0 bot commented May 16, 2024

🚀  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 May 16, 2024

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

Plan: 0 to add, 1 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:
!   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-06adb6a99cf2934ed"
!       tags                                 = {
!           "Demo"                = "May 10" -> "May 16"
            "Name"                = "acme-frontend"
            "Owner"               = "acme demo org"
            "Terraform"           = "true"
            "Test"                = "new tag"
            "env0_environment_id" = "9e3cf887-590f-4dcd-b001-178cf1defde0"
            "env0_project_id"     = "7320dd7a-4822-426c-84b5-62ddd8be0799"
        }
!       tags_all                             = {
!           "Demo"                = "May 10" -> "May 16"
            # (6 unchanged elements hidden)
        }
        # (27 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.
Failed to calculate cost estimation

Full PR Plan logs on env0

Copy link

env0 bot commented May 16, 2024

🚀  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 May 16, 2024

🚀  env0 had composed a PR Plan for environment Shenanigans / FrontEnd Servers EC2-25623 (april2):

 🚨 PR Plan Failed 🚨
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 33, in data "aws_vpc" "selected":
│   33: data "aws_vpc" "selected" {
│ 
╵

To rerun the PR Plan, use the following comment:

env0 plan -e april2

Full PR Plan logs on env0

Copy link

env0 bot commented May 16, 2024

🚀  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

Copy link

env0 bot commented May 16, 2024

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

Plan: 0 to add, 1 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:
!   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-0154c4c39a3bb9069"
!       tags                                 = {
!           "Demo"                = "May 10" -> "May 16"
            "Name"                = "acme-frontend"
            "Owner"               = "acme demo org"
            "Terraform"           = "true"
            "Test"                = "new tag"
            "env0_environment_id" = "4f29c9af-64d2-4e32-b899-87058137b30e"
            "env0_project_id"     = "7320dd7a-4822-426c-84b5-62ddd8be0799"
        }
!       tags_all                             = {
!           "Demo"                = "May 10" -> "May 16"
            # (6 unchanged elements hidden)
        }
        # (27 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.
Failed to calculate cost estimation

Full PR Plan logs on env0

@env0-away-dev
Copy link
Collaborator Author

env0 apply -e demo0516

Copy link

env0 bot commented May 16, 2024

This is the env0 🤖 👋

Apply requirements aren't met for this pull request.

See the "Apply Requirements" section here

Copy link
Collaborator

@away168 away168 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@env0-away-dev
Copy link
Collaborator Author

env0 apply -e demo0516

Copy link

env0 bot commented May 16, 2024

🚀  env0 had composed a Deployment for environment NonProd - 244172364962 / FrontEnd Servers EC2-85463 (demo0516):

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Deployment Details
module.acme-ec2.aws_instance.this[0]: Modifying... [id=i-0154c4c39a3bb9069]

module.acme-ec2.aws_instance.this[0]: Modifications complete after 3s [id=i-0154c4c39a3bb9069]


Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

Outputs:

instances = [
  "i-0154c4c39a3bb9069",
]
private_ip = [
  "10.0.3.94",
]
public_ip = [
  "34.219.255.16",
]

Full Deployment logs on env0

@away168 away168 closed this Aug 22, 2024
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.

2 participants