This repository was archived by the owner on Jun 17, 2025. It is now read-only.
generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
fix: force delete kms key during testing #209
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/run pipeline |
This was referenced Jun 4, 2024
ocofaigh
reviewed
Jun 4, 2024
examples/complete/main.tf
Outdated
@@ -28,7 +28,8 @@ module "key_protect_all_inclusive" { | |||
key_ring_name = "icd-edb" |
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.
can you add force_delete_key_ring = true
as well?
ocofaigh
suggested changes
Jun 4, 2024
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.
@shemau 1 comment. Also pre-commit hook failed
/run pipeline |
/run pipeline |
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185:
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: Terraform used the selected providers to generate the following execution
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: plan. Resource actions are indicated with the following symbols:
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: ~ update in-place
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185:
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: Terraform will perform the following actions:
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185:
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: # module.key_protect_all_inclusive.module.kms_key_rings["icd-edb"].ibm_kms_key_rings.key_ring will be updated in-place
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: ~ resource "ibm_kms_key_rings" "key_ring" {
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: ~ force_delete = false -> true
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: id = "icd-edb:keyRing:crn:v1:bluemix:public:kms:eu-de:a/abac0df06b644a9cabc6e44f55b3880e:be69ec9b-8e84-4459-859a-5276f45fd57f::"
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: # (3 unchanged attributes hidden)
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: }
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185:
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: # module.key_protect_all_inclusive.module.kms_keys["icd-edb.edb-upg-yxwn2d-edb"].ibm_kms_key.key will be updated in-place
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: ~ resource "ibm_kms_key" "key" {
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: ~ force_delete = false -> true
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: id = "crn:v1:bluemix:public:kms:eu-de:a/abac0df06b644a9cabc6e44f55b3880e:be69ec9b-8e84-4459-859a-5276f45fd57f:key:85ee47dd-0907-4bb4-a223-7828147d383b"
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: # (14 unchanged attributes hidden)
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: }
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185:
TestRunUpgradeCompleteExample 2024-06-04T10:50:49Z command.go:185: Plan: 0 to add, 2 to change, 0 to destroy. The change is confined to the complete example used for upgrade testing, related to the KMS module upgrade. Skipping upgrade test. |
/run pipeline |
ocofaigh
approved these changes
Jun 4, 2024
🎉 This PR is included in version 1.7.5 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The complete test should force delete the KMS key.
Release required?
x.x.X
)x.X.x
)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:
Checklist for reviewers
For mergers