Skip to content

Conversation

@akellaumesh
Copy link
Contributor

@akellaumesh akellaumesh commented Sep 27, 2025

This fixes the apply cli output to show the actions invoked in bold.

➜ /workspaces/terraform/test-actions (bugfix/terraform-apply-cli-actions-output-missing) $ ../terraform init
Initializing the backend...
Initializing provider plugins...
- terraform.io/builtin/terraform is built in to Terraform
- Reusing previous version of austinvalle/bufo from the dependency lock file
- Using previously-installed austinvalle/bufo v2.0.0

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
➜ /workspaces/terraform/test-actions (bugfix/terraform-apply-cli-actions-output-missing) $ ../terraform plan

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  terraform_data.test will be created
  + resource "terraform_data" "test" {
      + id = (known after apply)
    }

    Actions to be invoked after this change in order:
    action "bufo_print" "success" {
        config {
            color = true
        }
    }


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

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform
apply" now.
➜ /workspaces/terraform/test-actions (bugfix/terraform-apply-cli-actions-output-missing) $ ../terraform apply

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  terraform_data.test will be created
  + resource "terraform_data" "test" {
      + id = (known after apply)
    }

    Actions to be invoked after this change in order:
    action "bufo_print" "success" {
        config {
            color = true
        }
    }


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

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

terraform_data.test: Creating...
terraform_data.test: Creation complete after 0s [id=8c17cc4c-6b36-3955-2317-0e915d0de500]
Action started: action.bufo_print.success (triggered by terraform_data.test)
Action action.bufo_print.success (triggered by terraform_data.test): 

Bufo: "bufo-cant-find-an-issue.png"

Action complete: action.bufo_print.success (triggered by terraform_data.test)

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

Fixes #37689

Target Release

1.15.x

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

@akellaumesh akellaumesh requested a review from a team as a code owner September 27, 2025 16:30
@hashicorp-cla-app
Copy link

hashicorp-cla-app bot commented Sep 27, 2025

CLA assistant check
All committers have signed the CLA.

@akellaumesh akellaumesh force-pushed the bugfix/terraform-apply-cli-actions-output-missing branch from 844007c to f13a3ae Compare September 27, 2025 16:51
@crw crw added the bug label Sep 29, 2025
@crw
Copy link
Contributor

crw commented Sep 29, 2025

Hi @akellaumesh, thanks for this submission. I will raise it in triage. In the meantime please sign the CLA so that we can consider the review. Thank you!

@akellaumesh
Copy link
Contributor Author

Hello, thank you for the update. I have just signed the CLA.

Copy link
Contributor

@DanielMSchmidt DanielMSchmidt left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the help! I'll add a backport label so we can make sure this lands in 1.14

@DanielMSchmidt DanielMSchmidt added the 1.14-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged label Sep 30, 2025
@akellaumesh akellaumesh force-pushed the bugfix/terraform-apply-cli-actions-output-missing branch from 4f142aa to a62eddc Compare October 1, 2025 18:08
@akellaumesh
Copy link
Contributor Author

Thanks a lot for the help! I'll add a backport label so we can make sure this lands in 1.14

I have moved the file to 1.14 version

Copy link
Contributor

@mildwonkey mildwonkey left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution, @akellaumesh !

@mildwonkey mildwonkey merged commit ea20db6 into hashicorp:main Oct 2, 2025
7 checks passed
@akellaumesh akellaumesh deleted the bugfix/terraform-apply-cli-actions-output-missing branch October 2, 2025 16:04
@dbanck dbanck mentioned this pull request Oct 6, 2025
3 tasks
@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2025

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

1.14-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

terraform apply CLI Action output missing "Actions: n invoked"

4 participants