From b09194aa04bb08467662b91f49b3499e01c1310f Mon Sep 17 00:00:00 2001 From: Michal Hajas Date: Wed, 11 Sep 2024 11:20:59 +0200 Subject: [PATCH] Remove fencing tags and rename stonith->fencing Signed-off-by: Michal Hajas --- provision/opentofu/modules/aws/accelerator/main.tf | 4 ++-- .../accelerator/src/{stonith_lambda.py => fencing_lambda.py} | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) rename provision/opentofu/modules/aws/accelerator/src/{stonith_lambda.py => fencing_lambda.py} (99%) diff --git a/provision/opentofu/modules/aws/accelerator/main.tf b/provision/opentofu/modules/aws/accelerator/main.tf index c4505b168..974e8fd9c 100644 --- a/provision/opentofu/modules/aws/accelerator/main.tf +++ b/provision/opentofu/modules/aws/accelerator/main.tf @@ -63,9 +63,9 @@ module "lambda_function" { } function_name = var.name - handler = "stonith_lambda.handler" + handler = "fencing_lambda.handler" runtime = "python3.12" - source_path = "src/stonith_lambda.py" + source_path = "src/fencing_lambda.py" create_lambda_function_url = true timeout = 15 diff --git a/provision/opentofu/modules/aws/accelerator/src/stonith_lambda.py b/provision/opentofu/modules/aws/accelerator/src/fencing_lambda.py similarity index 99% rename from provision/opentofu/modules/aws/accelerator/src/stonith_lambda.py rename to provision/opentofu/modules/aws/accelerator/src/fencing_lambda.py index 0d74b9208..bc54d95d7 100644 --- a/provision/opentofu/modules/aws/accelerator/src/stonith_lambda.py +++ b/provision/opentofu/modules/aws/accelerator/src/fencing_lambda.py @@ -1,4 +1,3 @@ -# tag::fencing[] from urllib.error import HTTPError import boto3 @@ -170,4 +169,3 @@ def handler(event, context): SECRETS_REGION = env('SECRETS_REGION') WEBHOOK_USER = env('WEBHOOK_USER') WEBHOOK_USER_SECRET = env('WEBHOOK_USER_SECRET') -# end::fencing[]