-
Notifications
You must be signed in to change notification settings - Fork 10
Create Azure storage account and container to store HL7 files for automated testing #1280
Conversation
@@ -55,3 +55,45 @@ resource "azurerm_role_assignment" "allow_api_read_write" { | |||
role_definition_name = "Storage Blob Data Contributor" | |||
principal_id = azurerm_linux_web_app.api.identity.0.principal_id | |||
} | |||
|
|||
resource "azurerm_storage_account" "automated_storage" { |
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 set this storage account with encryption with our customer managed key? You can take inspiration from CDCgov/reportstream-sftp-ingestion#144
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.
I'm adding the azurerm_storage_account_customer_managed_key
for the new container. Do I also need to add a new azurerm_key_vault_access_policy
unique to this new container? Similar to azurerm_key_vault_access_policy.allow_storage_storage_account_wrapping
?
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.
I just added the changes here: f91a4fa
|
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.
This looks right to me!
…omated testing (#1280) * Added initial terraform config for sftp storage * Create buckets for initial and final hl7 files. Disabled SFTP as we may not use it * Added role assignment. Still need to figure out the principal_id * Updated principal_id to var.deployer_id * Added customer managed key for new container * Commenting code as workaround for order of execution issue with terraform apply * Uncommenting code to apply changes --------- Co-authored-by: halprin <[email protected]>
Create Azure storage account and container to store HL7 files for automated testing
This PR creates an Azure storage account to use for the RS automated integration tests. It creates one container where we'll store the final HL7 files uploaded by RS at the end of the message flow
Issue
#1255