Skip to content

Commit 49abf36

Browse files
committed
chore: remove unused load testing lambda env variables
1 parent 97f4f9e commit 49abf36

File tree

6 files changed

+0
-55
lines changed

6 files changed

+0
-55
lines changed

.github/workflows/terragrunt-apply-staging.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ env:
4545
TF_VAR_cognito_code_template_id: 12a18f84-062c-4a67-8310-bf114af051ea
4646
TF_VAR_email_address_contact_us: ${{ vars.STAGING_CONTACT_US_EMAIL }}
4747
TF_VAR_email_address_support: ${{ vars.STAGING_SUPPORT_EMAIL }}
48-
TF_VAR_load_testing_form_id: ${{ secrets.STAGING_LOAD_TESTING_FORM_ID }}
49-
TF_VAR_load_testing_form_private_key: ${{ secrets.STAGING_LOAD_TESTING_FORM_PRIVATE_KEY }}
5048
TF_VAR_load_testing_zitadel_app_private_key: ${{ secrets.STAGING_ZITADEL_APPLICATION_KEY }}
5149
TF_VAR_zitadel_administration_key: ${{ secrets.STAGING_ZITADEL_ADMINISTRATION_KEY }}
5250
TF_VAR_hcaptcha_site_verify_key: ${{ secrets.STAGING_HCAPTCHA_SITE_VERIFY_KEY }}

.github/workflows/terragrunt-plan-all-staging.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ env:
3737
TF_VAR_cognito_code_template_id: 12a18f84-062c-4a67-8310-bf114af051ea
3838
TF_VAR_email_address_contact_us: ${{ vars.STAGING_CONTACT_US_EMAIL }}
3939
TF_VAR_email_address_support: ${{ vars.STAGING_SUPPORT_EMAIL }}
40-
TF_VAR_load_testing_form_id: ${{ secrets.STAGING_LOAD_TESTING_FORM_ID }}
41-
TF_VAR_load_testing_form_private_key: ${{ secrets.STAGING_LOAD_TESTING_FORM_PRIVATE_KEY }}
4240
TF_VAR_load_testing_zitadel_app_private_key: ${{ secrets.STAGING_ZITADEL_APPLICATION_KEY }}
4341
TF_VAR_zitadel_administration_key: ${{ secrets.STAGING_ZITADEL_ADMINISTRATION_KEY }}
4442
TF_VAR_hcaptcha_site_verify_key: ${{ secrets.STAGING_HCAPTCHA_SITE_VERIFY_KEY }}

.github/workflows/terragrunt-plan-staging.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ env:
4747
TF_VAR_cognito_code_template_id: 12a18f84-062c-4a67-8310-bf114af051ea
4848
TF_VAR_email_address_contact_us: ${{ vars.STAGING_CONTACT_US_EMAIL }}
4949
TF_VAR_email_address_support: ${{ vars.STAGING_SUPPORT_EMAIL }}
50-
TF_VAR_load_testing_form_id: ${{ secrets.STAGING_LOAD_TESTING_FORM_ID }}
51-
TF_VAR_load_testing_form_private_key: ${{ secrets.STAGING_LOAD_TESTING_FORM_PRIVATE_KEY }}
5250
TF_VAR_load_testing_zitadel_app_private_key: ${{ secrets.STAGING_ZITADEL_APPLICATION_KEY }}
5351
TF_VAR_zitadel_administration_key: ${{ secrets.STAGING_ZITADEL_ADMINISTRATION_KEY }}
5452
TF_VAR_hcaptcha_site_verify_key: ${{ secrets.STAGING_HCAPTCHA_SITE_VERIFY_KEY }}

aws/load_testing/inputs.tf

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,6 @@ variable "lambda_submission_function_name" {
88
type = string
99
}
1010

11-
variable "load_testing_form_id" {
12-
description = "Form ID that will be used to generate, retrieve and confirm responses."
13-
type = string
14-
sensitive = true
15-
}
16-
17-
variable "load_testing_form_private_key" {
18-
description = "Private key JSON of the form that will be used to authenticate the API requests. This must be a key from the `var.load_testing_form_id` form."
19-
type = string
20-
sensitive = true
21-
}
22-
2311
variable "load_testing_zitadel_app_private_key" {
2412
description = "Private key JSON of the Zitadel application to perform access token introspection requests."
2513
type = string

aws/load_testing/lambda.tf

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,6 @@ resource "aws_lambda_function" "load_testing" {
1515
ignore_changes = [image_uri]
1616
}
1717

18-
environment {
19-
variables = {
20-
LOCUST_RUN_TIME = "3m"
21-
LOCUST_LOCUSTFILE = "./tests/locust_test_file.py"
22-
LOCUST_HOST = "https://${var.domains[0]}"
23-
LOCUST_SPAWN_RATE = "1"
24-
LOCUST_NUM_USERS = "1"
25-
}
26-
}
27-
2818
tracing_config {
2919
mode = "PassThrough"
3020
}
@@ -76,10 +66,7 @@ data "aws_iam_policy_document" "load_test_lambda" {
7666
"ssm:GetParameters",
7767
]
7868
resources = [
79-
aws_ssm_parameter.load_testing_form_id.arn,
80-
aws_ssm_parameter.load_testing_form_private_key.arn,
8169
aws_ssm_parameter.load_testing_zitadel_app_private_key.arn,
82-
aws_ssm_parameter.load_testing_submit_form_server_action_id_key.arn,
8370
]
8471
}
8572

aws/load_testing/parameters.tf

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,7 @@
1-
resource "aws_ssm_parameter" "load_testing_form_id" {
2-
# checkov:skip=CKV_AWS_337: default service encryption key is acceptable
3-
name = "/load-testing/form-id"
4-
description = "Form ID that will be used to generate, retrieve and confirm responses."
5-
type = "SecureString"
6-
value = var.load_testing_form_id
7-
}
8-
9-
resource "aws_ssm_parameter" "load_testing_form_private_key" {
10-
# checkov:skip=CKV_AWS_337: default service encryption key is acceptable
11-
name = "/load-testing/form-private-key"
12-
description = "Private key JSON of the form that will be used to authenticate the API requests. This must be a key for the `/load-testing/form-id` form."
13-
type = "SecureString"
14-
value = var.load_testing_form_private_key
15-
}
16-
171
resource "aws_ssm_parameter" "load_testing_zitadel_app_private_key" {
182
# checkov:skip=CKV_AWS_337: default service encryption key is acceptable
193
name = "/load-testing/zitadel-app-private-key"
204
description = "Private key JSON of the Zitadel application to perform access token introspection requests."
215
type = "SecureString"
226
value = var.load_testing_zitadel_app_private_key
237
}
24-
25-
resource "aws_ssm_parameter" "load_testing_submit_form_server_action_id_key" {
26-
# checkov:skip=CKV_AWS_337: default service encryption key is acceptable
27-
name = "/load-testing/submit-form-server-action-id"
28-
description = "NextJS server action identifier associated to 'submitForm' function."
29-
type = "SecureString"
30-
value = "TBD"
31-
}

0 commit comments

Comments
 (0)