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

fix: await resource initialization #221

Merged
merged 2 commits into from
Jun 7, 2024
Merged

Conversation

rdhar
Copy link
Member

@rdhar rdhar commented Jun 7, 2024

In order to ensure AWS resources provisioned by TF have a chance to initialize before being deprovisioned again.

@github-actions github-actions bot added the tf:plan Pull requests that plan TF code label Jun 7, 2024
Copy link

github-actions bot commented Jun 7, 2024

{"tf":"plan","chdir":"11_fail_data_source_error"}

Error: Read local file data source error
TF Tests by @rdhar via pull_request at 2024-06-07T10:27:43Z.
Error: Read local file data source error

  with data.local_file.path,
  on main.tf line 1, in data "local_file" "path":
   1: data "local_file" "path" {

The file at given path cannot be read.

+Original Error: open /error: no such file or directory

Copy link

github-actions bot commented Jun 7, 2024

{"tf":"plan","chdir":"11_fail_data_source_error"}

Error: Read local file data source error
TF Tests by @rdhar via pull_request at 2024-06-07T10:27:43Z.
Error: Read local file data source error

  with data.local_file.path,
  on main.tf line 1, in data "local_file" "path":
   1: data "local_file" "path" {

The file at given path cannot be read.

+Original Error: open /error: no such file or directory

Copy link

github-actions bot commented Jun 7, 2024

{"tf":"plan","chdir":"10_fail_invalid_resource_type"}

Error: Invalid resource type
TF Tests by @rdhar via pull_request at 2024-06-07T10:27:43Z.
Error: Invalid resource type

  on main.tf line 1, in resource "random_pets" "name":
   1: resource "random_pets" "name" {

The provider hashicorp/random does not support resource type "random_pets".
Did you mean "random_pet"?

Copy link

github-actions bot commented Jun 7, 2024

{"tf":"plan","chdir":"10_fail_invalid_resource_type"}

Error: Invalid resource type
TF Tests by @rdhar via pull_request at 2024-06-07T10:27:43Z.
Error: Invalid resource type

  on main.tf line 1, in resource "random_pets" "name":
   1: resource "random_pets" "name" {

The provider hashicorp/random does not support resource type "random_pets".
Did you mean "random_pet"?

@rdhar rdhar merged commit 978688c into main Jun 7, 2024
16 checks passed
@rdhar rdhar deleted the await-resource-initialization branch June 7, 2024 10:29
@github-actions github-actions bot added the tf:apply Pull requests that apply TF code label Jun 7, 2024
Copy link

github-actions bot commented Jun 7, 2024

{"tf":"apply","chdir":"50_pass_one"}

Outline of changes.
random_pet.name[0] will be created
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
TF Tests by @rdhar via pull_request at 2024-06-07T10:29:29Z.
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Copy link

github-actions bot commented Jun 7, 2024

{"tf":"apply","chdir":"52_pass_format_diff"}

Format check diff.
main.tf
--- old/main.tf
+++ new/main.tf
@@ -1,3 +1,3 @@
 resource "random_pet" "name" {
-  count =1
+  count = 1
 }
Outline of changes.
random_pet.name[0] will be created
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
TF Tests by @rdhar via pull_request at 2024-06-07T10:29:29Z.
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Copy link

github-actions bot commented Jun 7, 2024

{"tf":"apply","chdir":"52_pass_format_diff"}

Format check diff.
main.tf
--- old/main.tf
+++ new/main.tf
@@ -1,3 +1,3 @@
 resource "random_pet" "name" {
-  count =1
+  count = 1
 }
Outline of changes.
random_pet.name[0] will be created
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
TF Tests by @rdhar via pull_request at 2024-06-07T10:29:29Z.
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Copy link

github-actions bot commented Jun 7, 2024

{"tf":"apply","chdir":"50_pass_one"}

Outline of changes.
random_pet.name[0] will be created
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
TF Tests by @rdhar via pull_request at 2024-06-07T10:29:29Z.
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Copy link

github-actions bot commented Jun 7, 2024

{"tf":"apply","chdir":"stacks/sample_bucket","backend-config":"backend/dev.tfbackend"}

Format check diff.
main.tf
--- old/main.tf
+++ new/main.tf
@@ -9,5 +9,5 @@
 # Output the ID of the sample S3 bucket.
 output "sample_bucket_id" {
   description = "ID of the sample S3 bucket."
-  value        = module.sample_bucket.id
+  value       = module.sample_bucket.id
 }
Outline of changes.
module.sample_bucket.aws_s3_bucket.sample will be created
module.sample_bucket.aws_s3_bucket_versioning.sample will be created
Apply complete! Resources: 2 added, 0 changed, 0 destroyed.
TF Sample by @rdhar via pull_request at 2024-06-07T10:29:29Z.
Apply complete! Resources: 2 added, 0 changed, 0 destroyed.

Outputs:

sample_bucket_id = "sample20240607102950562900000001"

Copy link

github-actions bot commented Jun 7, 2024

{"tf":"apply","chdir":"stacks/sample_bucket","backend-config":"backend/stg.tfbackend"}

Format check diff.
main.tf
--- old/main.tf
+++ new/main.tf
@@ -9,5 +9,5 @@
 # Output the ID of the sample S3 bucket.
 output "sample_bucket_id" {
   description = "ID of the sample S3 bucket."
-  value        = module.sample_bucket.id
+  value       = module.sample_bucket.id
 }
Outline of changes.
module.sample_bucket.aws_s3_bucket.sample will be created
module.sample_bucket.aws_s3_bucket_versioning.sample will be created
Apply complete! Resources: 2 added, 0 changed, 0 destroyed.
TF Sample by @rdhar via pull_request at 2024-06-07T10:29:29Z.
Apply complete! Resources: 2 added, 0 changed, 0 destroyed.

Outputs:

sample_bucket_id = "sample20240607102950625700000001"

Copy link

github-actions bot commented Jun 7, 2024

{"tf":"apply","chdir":"stacks/sample_instance","var-file":"env/stg.tfvars"}

Outline of changes.
aws_instance.sample will be created
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
TF Sample by @rdhar via pull_request at 2024-06-07T10:29:29Z.
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Outputs:

sample_instance_id = "i-007e6db6a741ffd05"

Copy link

github-actions bot commented Jun 7, 2024

{"tf":"apply","chdir":"stacks/sample_instance","var-file":"env/dev.tfvars"}

Outline of changes.
aws_instance.sample will be created
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
TF Sample by @rdhar via pull_request at 2024-06-07T10:29:29Z.
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Outputs:

sample_instance_id = "i-025d240f1377ed584"

Copy link

github-actions bot commented Jun 7, 2024

{"tf":"apply","chdir":"stacks/sample_bucket","backend-config":"backend/dev.tfbackend","destroy":true,"auto-approve":true}

Format check diff.
main.tf
--- old/main.tf
+++ new/main.tf
@@ -9,5 +9,5 @@
 # Output the ID of the sample S3 bucket.
 output "sample_bucket_id" {
   description = "ID of the sample S3 bucket."
-  value        = module.sample_bucket.id
+  value       = module.sample_bucket.id
 }
Outline of changes.
module.sample_bucket.aws_s3_bucket.sample will be created
module.sample_bucket.aws_s3_bucket_versioning.sample will be created
Apply complete! Resources: 0 added, 0 changed, 2 destroyed.
TF Sample by @rdhar via pull_request at 2024-06-07T10:29:29Z.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  - destroy

Terraform will perform the following actions:

  # module.sample_bucket.aws_s3_bucket.sample will be destroyed
  - resource "aws_s3_bucket" "sample" {
      - arn                         = "arn:aws:s3:::sample20240607102950562900000001" -> null
      - bucket                      = "sample20240607102950562900000001" -> null
      - bucket_domain_name          = "sample20240607102950562900000001.s3.amazonaws.com" -> null
      - bucket_prefix               = "sample" -> null
      - bucket_regional_domain_name = "sample20240607102950562900000001.s3.eu-west-1.amazonaws.com" -> null
      - force_destroy               = false -> null
      - hosted_zone_id              = "Z1BKCTXD74EZPE" -> null
      - id                          = "sample20240607102950562900000001" -> null
      - object_lock_enabled         = false -> null
      - region                      = "eu-west-1" -> null
      - request_payer               = "BucketOwner" -> null
      - tags                        = {
          - "Name" = "sample-bucket"
        } -> null
      - tags_all                    = {
          - "Name"      = "sample-bucket"
          - "Stack"     = "sample_bucket"
          - "Terraform" = "default"
        } -> null

      - grant {
          - id          = "7e2dd88a0345f411744e1475d3a823736728b6da43611c1d67bb56c38007bee9" -> null
          - permissions = [
              - "FULL_CONTROL",
            ] -> null
          - type        = "CanonicalUser" -> null
        }

      - server_side_encryption_configuration {
          - rule {
              - bucket_key_enabled = false -> null

              - apply_server_side_encryption_by_default {
                  - sse_algorithm = "AES256" -> null
                }
            }
        }

      - versioning {
          - enabled    = true -> null
          - mfa_delete = false -> null
        }
    }

  # module.sample_bucket.aws_s3_bucket_versioning.sample will be destroyed
  - resource "aws_s3_bucket_versioning" "sample" {
      - bucket = "sample20240607102950562900000001" -> null
      - id     = "sample20240607102950562900000001" -> null

      - versioning_configuration {
          - status = "Enabled" -> null
        }
    }

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

Changes to Outputs:
  - sample_bucket_id = "sample20240607102950562900000001" -> null

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

Copy link

github-actions bot commented Jun 7, 2024

{"tf":"apply","chdir":"stacks/sample_bucket","backend-config":"backend/stg.tfbackend","destroy":true,"auto-approve":true}

Format check diff.
main.tf
--- old/main.tf
+++ new/main.tf
@@ -9,5 +9,5 @@
 # Output the ID of the sample S3 bucket.
 output "sample_bucket_id" {
   description = "ID of the sample S3 bucket."
-  value        = module.sample_bucket.id
+  value       = module.sample_bucket.id
 }
Outline of changes.
module.sample_bucket.aws_s3_bucket.sample will be created
module.sample_bucket.aws_s3_bucket_versioning.sample will be created
Apply complete! Resources: 0 added, 0 changed, 2 destroyed.
TF Sample by @rdhar via pull_request at 2024-06-07T10:29:29Z.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  - destroy

Terraform will perform the following actions:

  # module.sample_bucket.aws_s3_bucket.sample will be destroyed
  - resource "aws_s3_bucket" "sample" {
      - arn                         = "arn:aws:s3:::sample20240607102950625700000001" -> null
      - bucket                      = "sample20240607102950625700000001" -> null
      - bucket_domain_name          = "sample20240607102950625700000001.s3.amazonaws.com" -> null
      - bucket_prefix               = "sample" -> null
      - bucket_regional_domain_name = "sample20240607102950625700000001.s3.eu-west-1.amazonaws.com" -> null
      - force_destroy               = false -> null
      - hosted_zone_id              = "Z1BKCTXD74EZPE" -> null
      - id                          = "sample20240607102950625700000001" -> null
      - object_lock_enabled         = false -> null
      - region                      = "eu-west-1" -> null
      - request_payer               = "BucketOwner" -> null
      - tags                        = {
          - "Name" = "sample-bucket"
        } -> null
      - tags_all                    = {
          - "Name"      = "sample-bucket"
          - "Stack"     = "sample_bucket"
          - "Terraform" = "default"
        } -> null

      - grant {
          - id          = "7e2dd88a0345f411744e1475d3a823736728b6da43611c1d67bb56c38007bee9" -> null
          - permissions = [
              - "FULL_CONTROL",
            ] -> null
          - type        = "CanonicalUser" -> null
        }

      - server_side_encryption_configuration {
          - rule {
              - bucket_key_enabled = false -> null

              - apply_server_side_encryption_by_default {
                  - sse_algorithm = "AES256" -> null
                }
            }
        }

      - versioning {
          - enabled    = true -> null
          - mfa_delete = false -> null
        }
    }

  # module.sample_bucket.aws_s3_bucket_versioning.sample will be destroyed
  - resource "aws_s3_bucket_versioning" "sample" {
      - bucket = "sample20240607102950625700000001" -> null
      - id     = "sample20240607102950625700000001" -> null

      - versioning_configuration {
          - status = "Enabled" -> null
        }
    }

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

Changes to Outputs:
  - sample_bucket_id = "sample20240607102950625700000001" -> null

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

Copy link

github-actions bot commented Jun 7, 2024

{"tf":"apply","chdir":"51_pass_character_limit"}

Outline of changes.
random_pet.name[0] will be created
random_pet.name[1] will be created
random_pet.name[2] will be created
random_pet.name[3] will be created
random_pet.name[4] will be created
random_pet.name[5] will be created
random_pet.name[6] will be created
random_pet.name[7] will be created
random_pet.name[8] will be created
random_pet.name[9] will be created
random_pet.name[10] will be created
random_pet.name[11] will be created
random_pet.name[12] will be created
random_pet.name[13] will be created
random_pet.name[14] will be created
random_pet.name[15] will be created
random_pet.name[16] will be created
random_pet.name[17] will be created
random_pet.name[18] will be created
random_pet.name[19] will be created
random_pet.name[20] will be created
random_pet.name[21] will be created
random_pet.name[22] will be created
random_pet.name[23] will be created
random_pet.name[24] will be created
random_pet.name[25] will be created
random_pet.name[26] will be created
random_pet.name[27] will be created
random_pet.name[28] will be created
random_pet.name[29] will be created
random_pet.name[30] will be created
random_pet.name[31] will be created
random_pet.name[32] will be created
random_pet.name[33] will be created
random_pet.name[34] will be created
random_pet.name[35] will be created
random_pet.name[36] will be created
random_pet.name[37] will be created
random_pet.name[38] will be created
random_pet.name[39] will be created
random_pet.name[40] will be created
random_pet.name[41] will be created
random_pet.name[42] will be created
random_pet.name[43] will be created
random_pet.name[44] will be created
random_pet.name[45] will be created
random_pet.name[46] will be created
random_pet.name[47] will be created
random_pet.name[48] will be created
random_pet.name[49] will be created
random_pet.name[50] will be created
random_pet.name[51] will be created
random_pet.name[52] will be created
random_pet.name[53] will be created
random_pet.name[54] will be created
random_pet.name[55] will be created
random_pet.name[56] will be created
random_pet.name[57] will be created
random_pet.name[58] will be created
random_pet.name[59] will be created
random_pet.name[60] will be created
random_pet.name[61] will be created
random_pet.name[62] will be created
random_pet.name[63] will be created
random_pet.name[64] will be created
random_pet.name[65] will be created
random_pet.name[66] will be created
random_pet.name[67] will be created
random_pet.name[68] will be created
random_pet.name[69] will be created
random_pet.name[70] will be created
random_pet.name[71] will be created
random_pet.name[72] will be created
random_pet.name[73] will be created
random_pet.name[74] will be created
random_pet.name[75] will be created
random_pet.name[76] will be created
random_pet.name[77] will be created
random_pet.name[78] will be created
random_pet.name[79] will be created
random_pet.name[80] will be created
random_pet.name[81] will be created
random_pet.name[82] will be created
random_pet.name[83] will be created
random_pet.name[84] will be created
random_pet.name[85] will be created
random_pet.name[86] will be created
random_pet.name[87] will be created
random_pet.name[88] will be created
random_pet.name[89] will be created
random_pet.name[90] will be created
random_pet.name[91] will be created
random_pet.name[92] will be created
random_pet.name[93] will be created
random_pet.name[94] will be created
random_pet.name[95] will be created
random_pet.name[96] will be created
random_pet.name[97] will be created
random_pet.name[98] will be created
random_pet.name[99] will be created
random_pet.name[100] will be created
random_pet.name[101] will be created
random_pet.name[102] will be created
random_pet.name[103] will be created
random_pet.name[104] will be created
random_pet.name[105] will be created
random_pet.name[106] will be created
random_pet.name[107] will be created
random_pet.name[108] will be created
random_pet.name[109] will be created
random_pet.name[110] will be created
random_pet.name[111] will be created
random_pet.name[112] will be created
random_pet.name[113] will be created
random_pet.name[114] will be created
random_pet.name[115] will be created
random_pet.name[116] will be created
random_pet.name[117] will be created
random_pet.name[118] will be created
random_pet.name[119] will be created
random_pet.name[120] will be created
random_pet.name[121] will be created
random_pet.name[122] will be created
random_pet.name[123] will be created
random_pet.name[124] will be created
random_pet.name[125] will be created
random_pet.name[126] will be created
random_pet.name[127] will be created
random_pet.name[128] will be created
random_pet.name[129] will be created
random_pet.name[130] will be created
random_pet.name[131] will be created
random_pet.name[132] will be created
random_pet.name[133] will be created
random_pet.name[134] will be created
random_pet.name[135] will be created
random_pet.name[136] will be created
random_pet.name[137] will be created
random_pet.name[138] will be created
random_pet.name[139] will be created
random_pet.name[140] will be created
random_pet.name[141] will be created
random_pet.name[142] will be created
random_pet.name[143] will be created
random_pet.name[144] will be created
random_pet.name[145] will be created
random_pet.name[146] will be created
random_pet.name[147] will be created
random_pet.name[148] will be created
random_pet.name[149] will be created
random_pet.name[150] will be created
random_pet.name[151] will be created
random_pet.name[152] will be created
random_pet.name[153] will be created
random_pet.name[154] will be created
random_pet.name[155] will be created
random_pet.name[156] will be created
random_pet.name[157] will be created
random_pet.name[158] will be created
random_pet.name[159] will be created
random_pet.name[160] will be created
random_pet.name[161] will be created
random_pet.name[162] will be created
random_pet.name[163] will be created
random_pet.name[164] will be created
random_pet.name[165] will be created
random_pet.name[166] will be created
random_pet.name[167] will be created
random_pet.name[168] will be created
random_pet.name[169] will be created
random_pet.name[170] will be created
random_pet.name[171] will be created
random_pet.name[172] will be created
random_pet.name[173] will be created
random_pet.name[174] will be created
random_pet.name[175] will be created
random_pet.name[176] will be created
random_pet.name[177] will be created
random_pet.name[178] will be created
random_pet.name[179] will be created
random_pet.name[180] will be created
random_pet.name[181] will be created
random_pet.name[182] will be created
random_pet.name[183] will be created
random_pet.name[184] will be created
random_pet.name[185] will be created
random_pet.name[186] will be created
random_pet.name[187] will be created
random_pet.name[188] will be created
random_pet.name[189] will be created
random_pet.name[190] will be created
random_pet.name[191] will be created
random_pet.name[192] will be created
random_pet.name[193] will be created
random_pet.name[194] will be created
random_pet.name[195] will be created
random_pet.name[196] will be created
random_pet.name[197] will be created
random_pet.name[198] will be created
random_pet.name[199] will be created
random_pet.name[200] will be created
random_pet.name[201] will be created
random_pet.name[202] will be created
random_pet.name[203] will be created
random_pet.name[204] will be created
random_pet.name[205] will be created
random_pet.name[206] will be created
random_pet.name[207] will be created
random_pet.name[208] will be created
random_pet.name[209] will be created
random_pet.name[210] will be created
random_pet.name[211] will be created
random_pet.name[212] will be created
random_pet.name[213] will be created
random_pet.name[214] will be created
random_pet.name[215] will be created
random_pet.name[216] will be created
random_pet.name[217] will be created
random_pet.name[218] will be created
random_pet.name[219] will be created
random_pet.name[220] will be created
random_pet.name[221] will be created
random_pet.name[222] will be created
random_pet.name[223] will be created
random_pet.name[224] will be created
random_pet.name[225] will be created
random_pet.name[226] will be created
random_pet.name[227] will be created
random_pet.name[228] will be created
random_pet.name[229] will be created
random_pet.name[230] will be created
random_pet.name[231] will be created
random_pet.name[232] will be created
random_pet.name[233] will be created
random_pet.name[234] will be created
random_pet.name[235] will be created
random_pet.name[236] will be created
random_pet.name[237] will be created
random_pet.name[238] will be created
random_pet.name[239] will be created
random_pet.name[240] will be created
random_pet.name[241] will be created
random_pet.name[242] will be created
random_pet.name[243] will be created
random_pet.name[244] will be created
random_pet.name[245] will be created
random_pet.name[246] will be created
random_pet.name[247] will be created
random_pet.name[248] will be created
random_pet.name[249] will be created
random_pet.name[250] will be created
random_pet.name[251] will be created
random_pet.name[252] will be created
random_pet.name[253] will be created
random_pet.name[254] will be created
random_pet.name[255] will be created
random_pet.name[256] will be created
random_pet.name[257] will be created
random_pet.name[258] will be created
random_pet.name[259] will be created
random_pet.name[260] will be created
random_pet.name[261] will be created
random_pet.name[262] will be created
random_pet.name[263] will be created
random_pet.name[264] will be created
random_pet.name[265] will be created
random_pet.name[266] will be created
random_pet.name[267] will be created
random_pet.name[268] will be created
random_pet.name[269] will be created
random_pet.name[270] will be created
random_pet.name[271] will be created
random_pet.name[272] will be created
random_pet.name[273] will be created
random_pet.name[274] will be created
random_pet.name[275] will be created
random_pet.name[276] will be created
random_pet.name[277] will be created
random_pet.name[278] will be created
random_pet.name[279] will be created
random_pet.name[280] will be created
random_pet.name[281] will be created
random_pet.name[282] will be created
random_pet.name[283] will be created
random_pet.name[284] will be created
random_pet.name[285] will be created
random_pet.name[286] will be created
random_pet.name[287] will be created
random_pet.name[288] will be created
random_pet.name[289] will be created
random_pet.name[290] will be created
random_pet.name[291] will be created
random_pet.name[292] will be created
random_pet.name[293] will be created
random_pet.name[294] will be created
random_pet.name[295] will be created
random_pet.name[296] will be created
random_pet.name[297] will be created
random_pet.name[298] will be created
random_pet.name[299] will be created
random_pet.name[300] will be created
random_pet.name[301] will be created
random_pet.name[302] will be created
random_pet.name[303] will be created
random_pet.name[304] will be created
random_pet.name[305] will be created
random_pet.name[306] will be created
random_pet.name[307] will be created
random_pet.name[308] will be created
random_pet.name[309] will be created
random_pet.name[310] will be created
random_pet.name[311] will be created
random_pet.name[312] will be created
random_pet.name[313] will be created
random_pet.name[314] will be created
random_pet.name[315] will be created
random_pet.name[316] will be created
random_pet.name[317] will be created
random_pet.name[318] will be created
random_pet.name[319] will be created
random_pet.name[320] will be created
random_pet.name[321] will be created
random_pet.name[322] will be created
random_pet.name[323] will be created
random_pet.name[324] will be created
random_pet.name[325] will be created
random_pet.name[326] will be created
random_pet.
Apply complete! Resources: 10000 added, 0 changed, 0 destroyed.
TF Tests by @rdhar via pull_request at 2024-06-07T10:29:29Z.
Apply complete! Resources: 10000 added, 0 changed, 0 destroyed.

Copy link

github-actions bot commented Jun 7, 2024

{"tf":"apply","chdir":"stacks/sample_instance","var-file":"env/stg.tfvars","destroy":true,"auto-approve":true}

Outline of changes.
aws_instance.sample will be created
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
TF Sample by @rdhar via pull_request at 2024-06-07T10:29:29Z.
Changes to Outputs:
  - sample_instance_id = "i-025d240f1377ed584" -> null

You can apply this plan to save these new output values to the Terraform
state, without changing any real infrastructure.

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

Copy link

github-actions bot commented Jun 7, 2024

{"tf":"apply","chdir":"stacks/sample_instance","var-file":"env/dev.tfvars","destroy":true,"auto-approve":true}

Outline of changes.
aws_instance.sample will be created
Apply complete! Resources: 0 added, 0 changed, 1 destroyed.
TF Sample by @rdhar via pull_request at 2024-06-07T10:29:29Z.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  - destroy

Terraform will perform the following actions:

  # aws_instance.sample will be destroyed
  - resource "aws_instance" "sample" {
      - ami                                  = "ami-006cfe9f763a1cb77" -> null
      - arn                                  = "arn:aws:ec2:eu-west-1:813676077823:instance/i-025d240f1377ed584" -> null
      - associate_public_ip_address          = true -> null
      - availability_zone                    = "eu-west-1a" -> null
      - cpu_core_count                       = 1 -> null
      - cpu_threads_per_core                 = 1 -> null
      - disable_api_stop                     = false -> null
      - disable_api_termination              = false -> null
      - ebs_optimized                        = false -> null
      - get_password_data                    = false -> null
      - hibernation                          = false -> null
      - id                                   = "i-025d240f1377ed584" -> null
      - instance_initiated_shutdown_behavior = "stop" -> null
      - instance_state                       = "running" -> null
      - instance_type                        = "t2.nano" -> null
      - ipv6_address_count                   = 0 -> null
      - ipv6_addresses                       = [] -> null
      - monitoring                           = false -> null
      - placement_partition_number           = 0 -> null
      - primary_network_interface_id         = "eni-07407016dd8126c7c" -> null
      - private_dns                          = "ip-172-31-11-108.eu-west-1.compute.internal" -> null
      - private_ip                           = "172.31.11.108" -> null
      - public_dns                           = "ec2-54-78-112-76.eu-west-1.compute.amazonaws.com" -> null
      - public_ip                            = "54.78.112.76" -> null
      - secondary_private_ips                = [] -> null
      - security_groups                      = [
          - "default",
        ] -> null
      - source_dest_check                    = true -> null
      - subnet_id                            = "subnet-0a46c4fd66b400de6" -> null
      - tags                                 = {
          - "Name" = "sample-instance"
        } -> null
      - tags_all                             = {
          - "Environment" = "Undefined"
          - "Name"        = "sample-instance"
          - "Stack"       = "sample_instance"
          - "Terraform"   = "default"
        } -> null
      - tenancy                              = "default" -> null
      - user_data_replace_on_change          = false -> null
      - vpc_security_group_ids               = [
          - "sg-0f742cecdce2139d5",
        ] -> null

      - capacity_reservation_specification {
          - capacity_reservation_preference = "open" -> null
        }

      - cpu_options {
          - core_count       = 1 -> null
          - threads_per_core = 1 -> null
        }

      - credit_specification {
          - cpu_credits = "standard" -> null
        }

      - enclave_options {
          - enabled = false -> null
        }

      - maintenance_options {
          - auto_recovery = "default" -> null
        }

      - metadata_options {
          - http_endpoint               = "enabled" -> null
          - http_protocol_ipv6          = "disabled" -> null
          - http_put_response_hop_limit = 1 -> null
          - http_tokens                 = "optional" -> null
          - instance_metadata_tags      = "disabled" -> null
        }

      - private_dns_name_options {
          - enable_resource_name_dns_a_record    = false -> null
          - enable_resource_name_dns_aaaa_record = false -> null
          - hostname_type                        = "ip-name" -> null
        }

      - root_block_device {
          - delete_on_termination = true -> null
          - device_name           = "/dev/sda1" -> null
          - encrypted             = false -> null
          - iops                  = 100 -> null
          - tags                  = {} -> null
          - tags_all              = {
              - "Environment" = "Undefined"
              - "Stack"       = "sample_instance"
              - "Terraform"   = "default"
            } -> null
          - throughput            = 0 -> null
          - volume_id             = "vol-01e0a4ddc2f3797a6" -> null
          - volume_size           = 8 -> null
          - volume_type           = "gp2" -> null
        }
    }

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

Changes to Outputs:
  - sample_instance_id = "i-025d240f1377ed584" -> null

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

Copy link

github-actions bot commented Jun 7, 2024

{"tf":"apply","chdir":"51_pass_character_limit"}

Outline of changes.
random_pet.name[0] will be created
random_pet.name[1] will be created
random_pet.name[2] will be created
random_pet.name[3] will be created
random_pet.name[4] will be created
random_pet.name[5] will be created
random_pet.name[6] will be created
random_pet.name[7] will be created
random_pet.name[8] will be created
random_pet.name[9] will be created
random_pet.name[10] will be created
random_pet.name[11] will be created
random_pet.name[12] will be created
random_pet.name[13] will be created
random_pet.name[14] will be created
random_pet.name[15] will be created
random_pet.name[16] will be created
random_pet.name[17] will be created
random_pet.name[18] will be created
random_pet.name[19] will be created
random_pet.name[20] will be created
random_pet.name[21] will be created
random_pet.name[22] will be created
random_pet.name[23] will be created
random_pet.name[24] will be created
random_pet.name[25] will be created
random_pet.name[26] will be created
random_pet.name[27] will be created
random_pet.name[28] will be created
random_pet.name[29] will be created
random_pet.name[30] will be created
random_pet.name[31] will be created
random_pet.name[32] will be created
random_pet.name[33] will be created
random_pet.name[34] will be created
random_pet.name[35] will be created
random_pet.name[36] will be created
random_pet.name[37] will be created
random_pet.name[38] will be created
random_pet.name[39] will be created
random_pet.name[40] will be created
random_pet.name[41] will be created
random_pet.name[42] will be created
random_pet.name[43] will be created
random_pet.name[44] will be created
random_pet.name[45] will be created
random_pet.name[46] will be created
random_pet.name[47] will be created
random_pet.name[48] will be created
random_pet.name[49] will be created
random_pet.name[50] will be created
random_pet.name[51] will be created
random_pet.name[52] will be created
random_pet.name[53] will be created
random_pet.name[54] will be created
random_pet.name[55] will be created
random_pet.name[56] will be created
random_pet.name[57] will be created
random_pet.name[58] will be created
random_pet.name[59] will be created
random_pet.name[60] will be created
random_pet.name[61] will be created
random_pet.name[62] will be created
random_pet.name[63] will be created
random_pet.name[64] will be created
random_pet.name[65] will be created
random_pet.name[66] will be created
random_pet.name[67] will be created
random_pet.name[68] will be created
random_pet.name[69] will be created
random_pet.name[70] will be created
random_pet.name[71] will be created
random_pet.name[72] will be created
random_pet.name[73] will be created
random_pet.name[74] will be created
random_pet.name[75] will be created
random_pet.name[76] will be created
random_pet.name[77] will be created
random_pet.name[78] will be created
random_pet.name[79] will be created
random_pet.name[80] will be created
random_pet.name[81] will be created
random_pet.name[82] will be created
random_pet.name[83] will be created
random_pet.name[84] will be created
random_pet.name[85] will be created
random_pet.name[86] will be created
random_pet.name[87] will be created
random_pet.name[88] will be created
random_pet.name[89] will be created
random_pet.name[90] will be created
random_pet.name[91] will be created
random_pet.name[92] will be created
random_pet.name[93] will be created
random_pet.name[94] will be created
random_pet.name[95] will be created
random_pet.name[96] will be created
random_pet.name[97] will be created
random_pet.name[98] will be created
random_pet.name[99] will be created
random_pet.name[100] will be created
random_pet.name[101] will be created
random_pet.name[102] will be created
random_pet.name[103] will be created
random_pet.name[104] will be created
random_pet.name[105] will be created
random_pet.name[106] will be created
random_pet.name[107] will be created
random_pet.name[108] will be created
random_pet.name[109] will be created
random_pet.name[110] will be created
random_pet.name[111] will be created
random_pet.name[112] will be created
random_pet.name[113] will be created
random_pet.name[114] will be created
random_pet.name[115] will be created
random_pet.name[116] will be created
random_pet.name[117] will be created
random_pet.name[118] will be created
random_pet.name[119] will be created
random_pet.name[120] will be created
random_pet.name[121] will be created
random_pet.name[122] will be created
random_pet.name[123] will be created
random_pet.name[124] will be created
random_pet.name[125] will be created
random_pet.name[126] will be created
random_pet.name[127] will be created
random_pet.name[128] will be created
random_pet.name[129] will be created
random_pet.name[130] will be created
random_pet.name[131] will be created
random_pet.name[132] will be created
random_pet.name[133] will be created
random_pet.name[134] will be created
random_pet.name[135] will be created
random_pet.name[136] will be created
random_pet.name[137] will be created
random_pet.name[138] will be created
random_pet.name[139] will be created
random_pet.name[140] will be created
random_pet.name[141] will be created
random_pet.name[142] will be created
random_pet.name[143] will be created
random_pet.name[144] will be created
random_pet.name[145] will be created
random_pet.name[146] will be created
random_pet.name[147] will be created
random_pet.name[148] will be created
random_pet.name[149] will be created
random_pet.name[150] will be created
random_pet.name[151] will be created
random_pet.name[152] will be created
random_pet.name[153] will be created
random_pet.name[154] will be created
random_pet.name[155] will be created
random_pet.name[156] will be created
random_pet.name[157] will be created
random_pet.name[158] will be created
random_pet.name[159] will be created
random_pet.name[160] will be created
random_pet.name[161] will be created
random_pet.name[162] will be created
random_pet.name[163] will be created
random_pet.name[164] will be created
random_pet.name[165] will be created
random_pet.name[166] will be created
random_pet.name[167] will be created
random_pet.name[168] will be created
random_pet.name[169] will be created
random_pet.name[170] will be created
random_pet.name[171] will be created
random_pet.name[172] will be created
random_pet.name[173] will be created
random_pet.name[174] will be created
random_pet.name[175] will be created
random_pet.name[176] will be created
random_pet.name[177] will be created
random_pet.name[178] will be created
random_pet.name[179] will be created
random_pet.name[180] will be created
random_pet.name[181] will be created
random_pet.name[182] will be created
random_pet.name[183] will be created
random_pet.name[184] will be created
random_pet.name[185] will be created
random_pet.name[186] will be created
random_pet.name[187] will be created
random_pet.name[188] will be created
random_pet.name[189] will be created
random_pet.name[190] will be created
random_pet.name[191] will be created
random_pet.name[192] will be created
random_pet.name[193] will be created
random_pet.name[194] will be created
random_pet.name[195] will be created
random_pet.name[196] will be created
random_pet.name[197] will be created
random_pet.name[198] will be created
random_pet.name[199] will be created
random_pet.name[200] will be created
random_pet.name[201] will be created
random_pet.name[202] will be created
random_pet.name[203] will be created
random_pet.name[204] will be created
random_pet.name[205] will be created
random_pet.name[206] will be created
random_pet.name[207] will be created
random_pet.name[208] will be created
random_pet.name[209] will be created
random_pet.name[210] will be created
random_pet.name[211] will be created
random_pet.name[212] will be created
random_pet.name[213] will be created
random_pet.name[214] will be created
random_pet.name[215] will be created
random_pet.name[216] will be created
random_pet.name[217] will be created
random_pet.name[218] will be created
random_pet.name[219] will be created
random_pet.name[220] will be created
random_pet.name[221] will be created
random_pet.name[222] will be created
random_pet.name[223] will be created
random_pet.name[224] will be created
random_pet.name[225] will be created
random_pet.name[226] will be created
random_pet.name[227] will be created
random_pet.name[228] will be created
random_pet.name[229] will be created
random_pet.name[230] will be created
random_pet.name[231] will be created
random_pet.name[232] will be created
random_pet.name[233] will be created
random_pet.name[234] will be created
random_pet.name[235] will be created
random_pet.name[236] will be created
random_pet.name[237] will be created
random_pet.name[238] will be created
random_pet.name[239] will be created
random_pet.name[240] will be created
random_pet.name[241] will be created
random_pet.name[242] will be created
random_pet.name[243] will be created
random_pet.name[244] will be created
random_pet.name[245] will be created
random_pet.name[246] will be created
random_pet.name[247] will be created
random_pet.name[248] will be created
random_pet.name[249] will be created
random_pet.name[250] will be created
random_pet.name[251] will be created
random_pet.name[252] will be created
random_pet.name[253] will be created
random_pet.name[254] will be created
random_pet.name[255] will be created
random_pet.name[256] will be created
random_pet.name[257] will be created
random_pet.name[258] will be created
random_pet.name[259] will be created
random_pet.name[260] will be created
random_pet.name[261] will be created
random_pet.name[262] will be created
random_pet.name[263] will be created
random_pet.name[264] will be created
random_pet.name[265] will be created
random_pet.name[266] will be created
random_pet.name[267] will be created
random_pet.name[268] will be created
random_pet.name[269] will be created
random_pet.name[270] will be created
random_pet.name[271] will be created
random_pet.name[272] will be created
random_pet.name[273] will be created
random_pet.name[274] will be created
random_pet.name[275] will be created
random_pet.name[276] will be created
random_pet.name[277] will be created
random_pet.name[278] will be created
random_pet.name[279] will be created
random_pet.name[280] will be created
random_pet.name[281] will be created
random_pet.name[282] will be created
random_pet.name[283] will be created
random_pet.name[284] will be created
random_pet.name[285] will be created
random_pet.name[286] will be created
random_pet.name[287] will be created
random_pet.name[288] will be created
random_pet.name[289] will be created
random_pet.name[290] will be created
random_pet.name[291] will be created
random_pet.name[292] will be created
random_pet.name[293] will be created
random_pet.name[294] will be created
random_pet.name[295] will be created
random_pet.name[296] will be created
random_pet.name[297] will be created
random_pet.name[298] will be created
random_pet.name[299] will be created
random_pet.name[300] will be created
random_pet.name[301] will be created
random_pet.name[302] will be created
random_pet.name[303] will be created
random_pet.name[304] will be created
random_pet.name[305] will be created
random_pet.name[306] will be created
random_pet.name[307] will be created
random_pet.name[308] will be created
random_pet.name[309] will be created
random_pet.name[310] will be created
random_pet.name[311] will be created
random_pet.name[312] will be created
random_pet.name[313] will be created
random_pet.name[314] will be created
random_pet.name[315] will be created
random_pet.name[316] will be created
random_pet.name[317] will be created
random_pet.name[318] will be created
random_pet.name[319] will be created
random_pet.name[320] will be created
random_pet.name[321] will be created
random_pet.name[322] will be created
random_pet.name[323] will be created
random_pet.name[324] will be created
random_pet.name[325] will be created
random_pet.name[326] will be created
random_pet.
Apply complete! Resources: 10000 added, 0 changed, 0 destroyed.
TF Tests by @rdhar via pull_request at 2024-06-07T10:29:29Z.
Apply complete! Resources: 10000 added, 0 changed, 0 destroyed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tf:apply Pull requests that apply TF code tf:plan Pull requests that plan TF code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant