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

Scale down environments #36

Merged
merged 1 commit into from
Jun 29, 2024
Merged

Conversation

soerenmartius
Copy link
Contributor

No description provided.

@soerenmartius soerenmartius requested a review from a team as a code owner June 29, 2024 19:11
Copy link

github-actions bot commented Jun 29, 2024

Preview of Terragrunt changes in 62aecde

🔍 View Details on Terramate Cloud

Changed Stacks

non-prod/us-east-1/qa/webserver-cluster
non-prod/us-east-1/stage/webserver-cluster
prod/us-east-1/prod/mysql
prod/us-east-1/prod/webserver-cluster

Terragrunt Plan

terramate: Entering stack in /non-prod/us-east-1/qa/webserver-cluster
terramate: Executing command "terragrunt show -no-color out.tfplan"

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:

  # aws_autoscaling_group.webserver_example will be updated in-place
  ~ resource "aws_autoscaling_group" "webserver_example" {
        id                               = "terraform-20240411214857543600000003"
      ~ max_size                         = 2 -> 1
      ~ min_size                         = 2 -> 0
        name                             = "terraform-20240411214857543600000003"
        # (29 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }

  # aws_launch_template.webserver_example will be updated in-place
  ~ resource "aws_launch_template" "webserver_example" {
        id                                   = "lt-0e77c14f9021af137"
      ~ image_id                             = "ami-0e001c9271cf7f3b9" -> "ami-0111190769c4329ae"
      ~ latest_version                       = 1 -> (known after apply)
        name                                 = "webserver-example-qa20240411214857052900000001"
        tags                                 = {}
        # (16 unchanged attributes hidden)
    }

Plan: 0 to add, 2 to change, 0 to destroy.
terramate: Entering stack in /non-prod/us-east-1/stage/webserver-cluster
terramate: Executing command "terragrunt show -no-color out.tfplan"

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:

  # aws_autoscaling_group.webserver_example will be updated in-place
  ~ resource "aws_autoscaling_group" "webserver_example" {
        id                               = "terraform-20240411215837619000000003"
      ~ max_size                         = 2 -> 1
      ~ min_size                         = 2 -> 0
        name                             = "terraform-20240411215837619000000003"
        # (29 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }

  # aws_launch_template.webserver_example will be updated in-place
  ~ resource "aws_launch_template" "webserver_example" {
        id                                   = "lt-0243edbf1da81e61f"
      ~ image_id                             = "ami-0e001c9271cf7f3b9" -> "ami-0111190769c4329ae"
      ~ latest_version                       = 1 -> (known after apply)
        name                                 = "webserver-example-stage20240411215837104900000001"
        tags                                 = {}
        # (16 unchanged attributes hidden)
    }

Plan: 0 to add, 2 to change, 0 to destroy.
terramate: Entering stack in /prod/us-east-1/prod/mysql
terramate: Executing command "terragrunt show -no-color out.tfplan"

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:

  # aws_db_instance.mysql will be updated in-place
  ~ resource "aws_db_instance" "mysql" {
      ~ allocated_storage                     = 120 -> 50
        id                                    = "db-QQMLEBQWYYCWOOILNQ4RVHT7Z4"
        tags                                  = {}
        # (68 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.
terramate: Entering stack in /prod/us-east-1/prod/webserver-cluster
terramate: Executing command "terragrunt show -no-color out.tfplan"

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:

  # aws_autoscaling_group.webserver_example will be updated in-place
  ~ resource "aws_autoscaling_group" "webserver_example" {
        id                               = "terraform-20240411220753344400000003"
      ~ max_size                         = 5 -> 2
      ~ min_size                         = 1 -> 0
        name                             = "terraform-20240411220753344400000003"
        # (29 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Copy link

terramate-cloud bot commented Jun 29, 2024

Terramate Cloud Preview of commit 62aecde

Changed Resources

View Details on Terramate Cloud for Preview 3610

Action Resource
🌀 UPDATE aws_db_instance.mysql
🌀 UPDATE aws_autoscaling_group.webserver_example
🌀 UPDATE aws_launch_template.webserver_example
🌀 UPDATE aws_autoscaling_group.webserver_example
🌀 UPDATE aws_autoscaling_group.webserver_example
🌀 UPDATE aws_launch_template.webserver_example

Changed Stacks

⚠️ 4 stacks with changing resources

/non-prod/us-east-1/qa/webserver-cluster
/non-prod/us-east-1/stage/webserver-cluster
/prod/us-east-1/prod/mysql
/prod/us-east-1/prod/webserver-cluster

@soerenmartius soerenmartius merged commit bfda858 into main Jun 29, 2024
1 check passed
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