-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Server-Side Encryption for SQS Queues (#1619)
* feat: Server-Side Encryption for SQS Queues [#187061621](https://www.pivotaltracker.com/story/show/187061621) * fix: description must be in accordance with the code [#187061621](https://www.pivotaltracker.com/story/show/187061621) * test: version is not necessary [#187061621](https://www.pivotaltracker.com/story/show/187061621) * feat: KMS support [#187061621](https://www.pivotaltracker.com/story/show/187061621) * chore: remove unnecessary comment [#187061621](https://www.pivotaltracker.com/story/show/187061621) * chore: keep variables closer to where they are used [#187061621](https://www.pivotaltracker.com/story/show/187061621) * chore: use last version functionality of CF CLI [#187061621](https://www.pivotaltracker.com/story/show/187061621) * chore: apply correct format [#187061621](https://www.pivotaltracker.com/story/show/187061621) * test: delete unnecessary env variable [#187061621](https://www.pivotaltracker.com/story/show/187061621)
- Loading branch information
1 parent
b3bc27b
commit 80a79b5
Showing
10 changed files
with
208 additions
and
48 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
locals { | ||
// Convert the default KMS master key ID to a list if it's not empty, or an empty list otherwise. | ||
default_kms_key_id_as_list = var.kms_master_key_id != "" ? [var.kms_master_key_id] : [] | ||
|
||
// Split the extra KMS key IDs into a list if not empty, or an empty list otherwise. | ||
kms_extra_key_ids_as_list = var.kms_extra_key_ids != "" ? split(",", var.kms_extra_key_ids) : [] | ||
|
||
// Combine the default and extra KMS key IDs into a single list, ensuring distinct values and removing any empty elements, | ||
// then join them into a single comma-separated string. | ||
kms_all_key_ids = join(",", compact(distinct(concat(local.default_kms_key_id_as_list, local.kms_extra_key_ids_as_list)))) | ||
} |
This file contains 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 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
Oops, something went wrong.