Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
31 changes: 31 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion examples/complete/fixtures.us-east-2.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

Expand Down
2 changes: 1 addition & 1 deletion test/src/examples_complete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down