Skip to content

Conversation

@Aashiq-J
Copy link
Member

@Aashiq-J Aashiq-J commented Sep 18, 2025

Description

Replace the reset-api script with terraform resource block

Release required?

  • No release
  • Patch release (x.x.X)
  • Minor release (x.X.x)
  • Major release (X.x.x)
Release notes content

Run the pipeline

If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.

Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:

/run pipeline

Checklist for reviewers

  • If relevant, a test for the change is included or updated with this PR.
  • If relevant, documentation for the change is included or updated with this PR.

For mergers

  • Use a conventional commit message to set the release level. Follow the guidelines.
  • Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
  • Use the Squash and merge option.

@Aashiq-J
Copy link
Member Author

/run pipeline

@Aashiq-J
Copy link
Member Author

/run pipeline

@Aashiq-J
Copy link
Member Author

         2025/09/18 16:45:05 Terraform plan | Terraform used the selected providers to generate the following execution
         2025/09/18 16:45:05 Terraform plan | plan. Resource actions are indicated with the following symbols:
         2025/09/18 16:45:05 Terraform plan |   + create
         2025/09/18 16:45:05 Terraform plan |   - destroy
         2025/09/18 16:45:05 Terraform plan | 
         2025/09/18 16:45:05 Terraform plan | Terraform will perform the following actions:
         2025/09/18 16:45:05 Terraform plan | 
         2025/09/18 16:45:05 Terraform plan |   # module.ocp_base.ibm_container_api_key_reset.reset_api_key will be created
         2025/09/18 16:45:05 Terraform plan |   + resource "ibm_container_api_key_reset" "reset_api_key" {
         2025/09/18 16:45:05 Terraform plan |       + id                = (known after apply)
         2025/09/18 16:45:05 Terraform plan |       + region            = "jp-osa"
         2025/09/18 16:45:05 Terraform plan |       + reset_api_key     = 1
         2025/09/18 16:45:05 Terraform plan |       + resource_group_id = "f5ded63a7bcd442a83353c98cf145433"
         2025/09/18 16:45:05 Terraform plan |     }
         2025/09/18 16:45:05 Terraform plan | 
         2025/09/18 16:45:05 Terraform plan |   # module.ocp_base.null_resource.reset_api_key will be destroyed
         2025/09/18 16:45:05 Terraform plan |   # (because null_resource.reset_api_key is not in configuration)
         2025/09/18 16:45:05 Terraform plan |   - resource "null_resource" "reset_api_key" {
         2025/09/18 16:45:05 Terraform plan |       - id = "9057395555416588595" -> null
         2025/09/18 16:45:05 Terraform plan |     }
         2025/09/18 16:45:05 Terraform plan | 
         2025/09/18 16:45:05 Terraform plan |   # module.ocp_base.time_sleep.wait_for_reset_api_key will be created
         2025/09/18 16:45:05 Terraform plan |   + resource "time_sleep" "wait_for_reset_api_key" {
         2025/09/18 16:45:05 Terraform plan |       + create_duration = "10s"
         2025/09/18 16:45:05 Terraform plan |       + id              = (known after apply)
         2025/09/18 16:45:05 Terraform plan |     }
         2025/09/18 16:45:05 Terraform plan | 
         2025/09/18 16:45:05 Terraform plan | Plan: 2 to add, 0 to change, 1 to destroy.
         2025/09/18 16:45:05 Command finished successfully.

This is expected, null resource to reset api-key will be deleted and the reset api key resource block will be used.

@Aashiq-J
Copy link
Member Author

/run pipeline

@Aashiq-J
Copy link
Member Author

/run pipeline

@Aashiq-J
Copy link
Member Author

         2025/09/19 08:12:53 Terraform destroy | 
         2025/09/19 08:12:53 Terraform destroy | Error: ---
         2025/09/19 08:12:53 Terraform destroy | id: terraform-c907de16
         2025/09/19 08:12:53 Terraform destroy | summary: 'DeleteSubnetWithContext on retry failed: timeout while waiting for state
         2025/09/19 08:12:53 Terraform destroy |   to become ''deleting, done, '' (last state: ''resources_attached'', timeout: 10m0s)'
         2025/09/19 08:12:53 Terraform destroy | severity: error
         2025/09/19 08:12:53 Terraform destroy | resource: ibm_is_subnet
         2025/09/19 08:12:53 Terraform destroy | operation: delete
         2025/09/19 08:12:53 Terraform destroy | component:
         2025/09/19 08:12:53 Terraform destroy |   name: github.com/IBM-Cloud/terraform-provider-ibm
         2025/09/19 08:12:53 Terraform destroy |   version: 1.82.1
         2025/09/19 08:12:53 Terraform destroy | ---
         2025/09/19 08:12:53 Terraform destroy | 
         2025/09/19 08:12:53 Terraform destroy | 
         2025/09/19 08:12:53 Terraform destroy | 
         2025/09/19 08:12:53 Terraform destroy | Error: ---
         2025/09/19 08:12:53 Terraform destroy | id: terraform-c907de16
         2025/09/19 08:12:53 Terraform destroy | summary: 'DeleteSubnetWithContext on retry failed: timeout while waiting for state
         2025/09/19 08:12:53 Terraform destroy |   to become ''deleting, done, '' (last state: ''resources_attached'', timeout: 10m0s)'
         2025/09/19 08:12:53 Terraform destroy | severity: error
         2025/09/19 08:12:53 Terraform destroy | resource: ibm_is_subnet
         2025/09/19 08:12:53 Terraform destroy | operation: delete
         2025/09/19 08:12:53 Terraform destroy | component:
         2025/09/19 08:12:53 Terraform destroy |   name: github.com/IBM-Cloud/terraform-provider-ibm
         2025/09/19 08:12:53 Terraform destroy |   version: 1.82.1
         2025/09/19 08:12:53 Terraform destroy | ---
         2025/09/19 08:12:53 Terraform destroy | 
         2025/09/19 08:12:53 Terraform destroy | 

error not related to the change.

@Aashiq-J
Copy link
Member Author

/run pipeline

@Aashiq-J
Copy link
Member Author

/run pipeline

@Aashiq-J Aashiq-J merged commit 381aaea into main Sep 22, 2025
2 checks passed
@Aashiq-J Aashiq-J deleted the api-reset branch September 22, 2025 08:43
@terraform-ibm-modules-ops
Copy link
Contributor

🎉 This PR is included in version 3.60.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants