Skip to content

Commit

Permalink
Merge pull request #1301 from CDCgov/issue-1220-role_for_slot
Browse files Browse the repository at this point in the history
`AcrPull` Permission for the `pre-live` Slot
  • Loading branch information
halprin authored Sep 10, 2024
2 parents 031a436 + 011973a commit be06050
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions operations/template/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ resource "azurerm_role_assignment" "allow_app_to_pull_from_registry" {
scope = azurerm_container_registry.registry.id
}

resource "azurerm_role_assignment" "allow_app_slot_to_pull_from_registry" {
principal_id = azurerm_linux_web_app_slot.pre_live.identity.0.principal_id
role_definition_name = "AcrPull"
scope = azurerm_container_registry.registry.id
}

# Create the staging service plan
resource "azurerm_service_plan" "plan" {
name = "cdcti-${var.environment}-service-plan"
Expand Down

0 comments on commit be06050

Please sign in to comment.