Skip to content

Commit ba2d98b

Browse files
committedFeb 24, 2025·
Merge remote-tracking branch 'origin/main' into develop
2 parents 5b4c2f2 + 9722865 commit ba2d98b

File tree

4 files changed

+46
-5
lines changed

4 files changed

+46
-5
lines changed
 

‎.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ jobs:
164164
terraform init -backend=false
165165
terraform validate -no-color
166166
- name: SonarCloud Scan
167-
uses: sonarsource/sonarcloud-github-action@master
167+
uses: SonarSource/sonarqube-scan-action@v5.0.0
168168
env:
169169
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
170170
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

‎CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
### Fixed
1414
### Security
1515

16+
## [1.6.1]
17+
18+
### Added
19+
- Issue 282 - API Key request for bulk download (Fathom API key)
20+
### Changed
21+
### Deprecated
22+
### Removed
23+
### Fixed
24+
### Security
25+
1626
## [1.6.0]
1727

1828
### Added

‎terraform/hydrocron-apigw.tf

+33-3
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ resource "aws_api_gateway_api_key" "confluence-user-key" {
105105
}
106106

107107

108+
resource "aws_api_gateway_api_key" "fathom-user-key" {
109+
name = "${local.aws_resource_prefix}-api-key-fathom"
110+
}
111+
112+
108113
# Usage Plans
109114
resource "aws_api_gateway_usage_plan" "default-user-usage-plan" {
110115
name = "${local.aws_resource_prefix}-usage-plan-default"
@@ -131,8 +136,8 @@ resource "aws_api_gateway_usage_plan_key" "default-user-usage-key" {
131136
}
132137

133138

134-
resource "aws_api_gateway_usage_plan" "trusted-user-usage-plan" {
135-
name = "${local.aws_resource_prefix}-usage-plan-trusted"
139+
resource "aws_api_gateway_usage_plan" "confluence-user-usage-plan" {
140+
name = "${local.aws_resource_prefix}-usage-plan-confluence"
136141
description = "Hydrocron trusted user usage plan"
137142
api_stages {
138143
api_id = aws_api_gateway_rest_api.hydrocron-api-gateway.id
@@ -152,5 +157,30 @@ resource "aws_api_gateway_usage_plan" "trusted-user-usage-plan" {
152157
resource "aws_api_gateway_usage_plan_key" "confluence-user-usage-key" {
153158
key_id = aws_api_gateway_api_key.confluence-user-key.id
154159
key_type = "API_KEY"
155-
usage_plan_id = aws_api_gateway_usage_plan.trusted-user-usage-plan.id
160+
usage_plan_id = aws_api_gateway_usage_plan.confluence-user-usage-plan.id
161+
}
162+
163+
164+
resource "aws_api_gateway_usage_plan" "fathom-user-usage-plan" {
165+
name = "${local.aws_resource_prefix}-usage-plan-fathom"
166+
description = "Hydrocron trusted user usage plan"
167+
api_stages {
168+
api_id = aws_api_gateway_rest_api.hydrocron-api-gateway.id
169+
stage = aws_api_gateway_stage.hydrocron-api-gateway-stage.stage_name
170+
}
171+
quota_settings {
172+
limit = 11200000
173+
period = "MONTH"
174+
}
175+
throttle_settings {
176+
burst_limit = 200
177+
rate_limit = 2000
178+
}
179+
}
180+
181+
182+
resource "aws_api_gateway_usage_plan_key" "fathom-user-usage-key" {
183+
key_id = aws_api_gateway_api_key.fathom-user-key.id
184+
key_type = "API_KEY"
185+
usage_plan_id = aws_api_gateway_usage_plan.fathom-user-usage-plan.id
156186
}

‎terraform/hydrocron-ssm.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ resource "aws_ssm_parameter" "trusted-user-parameter" {
1919
type = "SecureString"
2020
value = jsonencode(
2121
[
22-
"${aws_api_gateway_api_key.confluence-user-key.value}"
22+
"${aws_api_gateway_api_key.confluence-user-key.value}",
23+
"${aws_api_gateway_api_key.fathom-user-key.value}"
2324
]
2425
)
2526
}

0 commit comments

Comments
 (0)
Please sign in to comment.