-
Notifications
You must be signed in to change notification settings - Fork 15
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
Update ec2.tf #575
Conversation
🚀 env0 had composed a PR Plan for environment NonProd - 244172364962 / acme-demo simple-ec2-instance :
Plan DetailsTerraform 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.
|
🚀 env0 had composed a PR Plan for environment Prod - 326535729404 / FrontEnd Servers EC2-43289 :
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-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),
]
Cost Estimation DetailsKey: * 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 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
🚀 env0 had composed a PR Plan for environment deva / FrontEnd Servers (EC2)-37746 :
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-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.
╵
Cost Estimation DetailsKey: * 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 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┻━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ |
🚀 env0 had composed a PR Plan for environment Stuff / FrontEnd Servers EC2-65837 :
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" {
│
╵
|
🚀 env0 had composed a PR Plan for environment Prod - 326535729404 / FrontEnd Servers-Commercial :
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-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.
╵
|
🚀 env0 had composed a PR Plan for environment Stuff / kosta environment ec2 :
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" {
│
╵
|
🚀 env0 had composed a PR Plan for environment NonProd - 244172364962 / FrontEnd Servers EC2-1758 :
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-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.
|
🚀 env0 had composed a PR Plan for environment Stuff / FrontEnd Servers EC2-88735 :
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" {
│
╵
|
🚀 env0 had composed a PR Plan for environment Shenanigans / FrontEnd Servers EC2-25623 (april2):
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 had composed a PR Plan for environment Stuff / acme-demo simple-ec2-instance :
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.
╵
|
🚀 env0 had composed a PR Plan for environment NonProd - 244172364962 / FrontEnd Servers EC2-85463 :
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-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.
|
env0 apply -e demo0516 |
This is the env0 🤖 👋 Apply requirements aren't met for this pull request. See the "Apply Requirements" section here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
env0 apply -e demo0516 |
🚀 env0 had composed a Deployment for environment NonProd - 244172364962 / FrontEnd Servers EC2-85463 (demo0516):
Deployment Detailsmodule.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",
] |
No description provided.