Skip to content
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

Updating to add Bulk scanning api to new Management API service. #543

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion infrastructure/aat.tfvars
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# API Gateway Thumbprint
# This is the thumbprint of the API Gateway certificate. This is used to verify the certificate of the API Gateway when the client connects to it.
bulkscanning_api_gateway_certificate_thumbprints = ["7744A2F56BD3B73C0D7FED61309E1C65AF08538C","792265A947D0C76D4F67A0878B1D06E60976DFDA","4396D69786566676383DD5BFF84B95E2A9975263"]
bulkscanning_api_gateway_certificate_thumbprints = ["7744A2F56BD3B73C0D7FED61309E1C65AF08538C","792265A947D0C76D4F67A0878B1D06E60976DFDA","4396D69786566676383DD5BFF84B95E2A9975263","BFE89B4BA1F47E048CFDF125C2E1BB4E2CC26083"]
21 changes: 21 additions & 0 deletions infrastructure/cft-api-mgmt.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
locals {
cft_api_mgmt_name = join("-", ["cft-api-mgmt", var.env])
cft_api_mgmt_rg = join("-", ["cft", var.env, "network-rg"])
}

resource "azurerm_template_deployment" "cft-bulk-scanning-payment" {
template_body = data.template_file.api_template.rendered
name = "cft-bulk-scanning-payment-${var.env}"
deployment_mode = "Incremental"
resource_group_name = local.cft_api_mgmt_rg
count = var.env != "preview" ? 1: 0

parameters = {
apiManagementServiceName = local.cft_api_mgmt_name
apiName = "bulk-scanning-payment-api"
apiProductName = "bulk-scanning-payment"
serviceUrl = "http://ccpay-bulkscanning-api-${var.env}.service.core-compute-${var.env}.internal"
apiBasePath = local.api_base_path
policy = data.template_file.policy_template.rendered
}
}
3 changes: 2 additions & 1 deletion infrastructure/demo.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
# "3D4A8AD0F5EF4779347B0E448ABC1ADC4D61BDF9" - Exela Cert (old)
# "792265A947D0C76D4F67A0878B1D06E60976DFDA" - Exela Cert (new)
# "4396D69786566676383DD5BFF84B95E2A9975263" - Iron Mountain Cert
bulkscanning_api_gateway_certificate_thumbprints = ["7744A2F56BD3B73C0D7FED61309E1C65AF08538C","792265A947D0C76D4F67A0878B1D06E60976DFDA","4396D69786566676383DD5BFF84B95E2A9975263"]
# "BFE89B4BA1F47E048CFDF125C2E1BB4E2CC26083" - Dave Jones
bulkscanning_api_gateway_certificate_thumbprints = ["7744A2F56BD3B73C0D7FED61309E1C65AF08538C","792265A947D0C76D4F67A0878B1D06E60976DFDA","4396D69786566676383DD5BFF84B95E2A9975263","BFE89B4BA1F47E048CFDF125C2E1BB4E2CC26083"]

additional_databases = [
"postgresql-db2"
Expand Down
Loading