From 74f6b756090c3ff1800a8cf92bbffbad4fcf982c Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Tue, 21 Oct 2025 15:34:19 +0300 Subject: [PATCH 1/4] Clean up Makefile by removing unused targets Removed README_DEPS and lint target from Makefile. --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3df9e7e --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +SHELL := /bin/bash +LAMBDA_DIR := lambda +DEPS_CONTAINER := alpine:3.11 + +-include $(shell curl -sSL -o .build-harness "https://cloudposse.tools/build-harness"; echo .build-harness) + +readme/build: + @atmos docs generate readme + +readme: + @atmos docs generate readme + +define docker +docker run -i -v $(PWD)/$(LAMBDA_DIR)/:/code -w /code $(DEPS_CONTAINER) /bin/sh -c '$(1)' +endef + +## Install dependencies +dependencies: + @echo "==> Installing Lambda function dependencies..." + @$(call docker, apk add --update py-pip && \ + pip install virtualenv && \ + virtualenv venv --always-copy && \ + source ./venv/bin/activate && \ + ./venv/bin/pip install -qUr requirements.txt) + +## Build Lambda function zip +build: dependencies + @echo "==> Building Lambda function zip..." + @mkdir -p artifacts + @cd $(LAMBDA_DIR) && zip -r ../artifacts/lambda.zip * + @ls -l artifacts/lambda.zip From efcecda11808a5504e98f4388f5d108922cee549 Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Tue, 21 Oct 2025 15:48:25 +0300 Subject: [PATCH 2/4] Update dns_zone_id in fixtures.us-east-2.tfvars --- examples/complete/fixtures.us-east-2.tfvars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/complete/fixtures.us-east-2.tfvars b/examples/complete/fixtures.us-east-2.tfvars index 3bd87c8..f4b15f1 100644 --- a/examples/complete/fixtures.us-east-2.tfvars +++ b/examples/complete/fixtures.us-east-2.tfvars @@ -24,7 +24,7 @@ ebs_volume_size = 10 create_iam_service_linked_role = false -dns_zone_id = "Z3SO0TKDDQ0RGG" +dns_zone_id = "Z0880904EUMUUAAGCA17" schedule = "rate(5 minutes)" From d7e2a9cf4b65e599dad796b3e1f4cf1b9648843b Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Tue, 21 Oct 2025 16:45:24 +0300 Subject: [PATCH 3/4] Update expected domainHostname in test --- test/src/examples_complete_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/examples_complete_test.go b/test/src/examples_complete_test.go index 61d1e49..17757c6 100644 --- a/test/src/examples_complete_test.go +++ b/test/src/examples_complete_test.go @@ -60,7 +60,7 @@ func TestExamplesComplete(t *testing.T) { // Run `terraform output` to get the value of an output variable domainHostname := terraform.Output(t, terraformOptions, "domain_hostname") // Verify we're getting back the outputs we expect - assert.Equal(t, "eg-test-es-cleanup-"+randId+".testing.cloudposse.co", domainHostname) + assert.Equal(t, "eg-test-es-cleanup-"+randId+".modules.cptest.test-automation.app", domainHostname) // Run `terraform output` to get the value of an output variable kibanaHostname := terraform.Output(t, terraformOptions, "kibana_hostname") From 346aaadc17cc7a5a1afee5fee665b4504faff126 Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Tue, 21 Oct 2025 17:31:01 +0300 Subject: [PATCH 4/4] Update expected output for kibanaHostname test --- test/src/examples_complete_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/examples_complete_test.go b/test/src/examples_complete_test.go index 17757c6..088db82 100644 --- a/test/src/examples_complete_test.go +++ b/test/src/examples_complete_test.go @@ -65,7 +65,7 @@ func TestExamplesComplete(t *testing.T) { // Run `terraform output` to get the value of an output variable kibanaHostname := terraform.Output(t, terraformOptions, "kibana_hostname") // Verify we're getting back the outputs we expect - assert.Equal(t, kibanaSubdomain+".testing.cloudposse.co", kibanaHostname) + assert.Equal(t, kibanaSubdomain+".modules.cptest.test-automation.app", kibanaHostname) // Run `terraform output` to get the value of an output variable domainEndpoint := terraform.Output(t, terraformOptions, "domain_endpoint")