generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 3
fix: add fix for KMS cross account bug #355
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
08291c6
fix: add fix for KMS cross account bug
ocofaigh fe94b37
handle use case where empty string passed for secret_groups
ocofaigh 580f0df
add variable validation instead
ocofaigh aa8076f
typo
ocofaigh e46d8fb
handle use case where 'existing_event_notifications_instance_crn' mig…
ocofaigh 7ccf681
remove validation
ocofaigh 151b2e9
fix logic
ocofaigh c0e3ad6
add 1 more fix for EN
ocofaigh 306ad18
logic update
ocofaigh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,7 +74,7 @@ variable "skip_secrets_manager_iam_auth_policy" { | |
| } | ||
|
|
||
| variable "secrets_manager_resource_tags" { | ||
| type = list(any) | ||
| type = list(string) | ||
| description = "The list of resource tags you want to associate with your Secrets Manager instance. Applies only if `existing_secrets_manager_crn` is not provided." | ||
| default = [] | ||
| } | ||
|
|
@@ -88,7 +88,7 @@ variable "secret_groups" { | |
| access_group_roles = optional(list(string), ["SecretsReader"]) | ||
| access_group_tags = optional(list(string)) | ||
| })) | ||
| description = "Secret Manager secret group and access group configurations. If a prefix input variable is specified, it is added to the `access_group_name` value in the `<prefix>-value` format. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-secrets-manager/tree/main/solutions/fully-configurable/provisioning_secrets_groups.md)." | ||
| description = "Secret Manager secret group and access group configurations. If a prefix input variable is specified, it is added to the `access_group_name` value in the `<prefix>-value` format. If you do not wish to create any groups, et the value to `[]`. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-secrets-manager/tree/main/solutions/fully-configurable/provisioning_secrets_groups.md)." | ||
|
||
| nullable = false | ||
| default = [ | ||
| { | ||
|
|
@@ -99,6 +99,10 @@ variable "secret_groups" { | |
| access_group_roles = ["SecretsReader"] | ||
| } | ||
| ] | ||
| validation { | ||
| error_message = "The value of secret_groups cannot be an empty string. If you do not want to create any groups, set the value to []." | ||
| condition = var.secret_groups == "" | ||
| } | ||
| validation { | ||
| error_message = "The name of the secret group cannot be null or empty string." | ||
| condition = length([ | ||
|
|
||
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.
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.
set the value...