Skip to content

Commit

Permalink
chore(example): updated default example
Browse files Browse the repository at this point in the history
  • Loading branch information
rdunn-Hypr committed Jul 30, 2024
1 parent b469f45 commit a9b63b6
Showing 1 changed file with 23 additions and 25 deletions.
48 changes: 23 additions & 25 deletions examples/default/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,67 +4,65 @@ module "example_lambda_applcation" {
aws = aws
}

application_name = "test_lambda_app"
application_name = "service-env-example-com"
application_runtime = "python3.8"
application_version = "0.0.1"
artifact_bucket = "labda-app.stage.example.com"
artifact_bucket = "labda-app.env.example.com"
artifact_bucket_key = "0.0.1/app.zip"
application_memory = 256
application_timeout = 20
layer_artifact_key = "0.0.1/layers.zip"

parameter_store_path = "/service/env/environment/"

lambda_functions_config = {
external_endpoint_function = {
name = "external_endpoint_function"
description = "external_endpoint_function description"
ext-function = {
name = "ext-function"
description = "external endpoint function description"
handler = "external_endpoint_function.handler.handle"
enable_vpc = false
},
internal_endpoint_function = {
name = "internal_endpoint_function"
description = "internal_endpoint_function description"
int-function = {
name = "int-function"
description = "internal endpoint function description"
handler = "internal_endpoint_function.handler.handle"
enable_vpc = false
}
}

internal_entrypoint_config = {
internal_endpoint_function = {
name = "internal_endpoint_functionRule"
description = "internal_endpoint_function Rule description"
int-function = {
name = "int-function-rule"
description = "internal endpoint function Rule description"
event_pattern_json = { "source" : ["internal_endpoint_event.created"] }
}
}

enable_api_gateway = true
api_gateway_route_config = {
ext-function = {
operation_name = "service:ext-function"
}
}

application_env_vars = {
name = "foo"
}

enable_datastore = true
create_dynamodb_table = true
dynamodb_table_name = "test_lambda_app"
dynamodb_table_name = "LA-service-env-example-com"
dynamodb_hash_key = "PK"
dynamodb_hash_key_type = "S"
dynamodb_range_key = "SK"
dynamodb_range_key_type = "S"
dynamodb_autoscale_min_read_capacity = 1
dynamodb_autoscale_min_write_capacity = 1

dynamodb_global_secondary_index_map = [
{
name = "Test-Index"
hash_key = "HK"
range_key = "RK"
write_capacity = 1
read_capacity = 1
projection_type = "KEYS_ONLY"
}
]

tags = {
Environment = "stage"
env = "stage"
}

}

provider "aws" {
Expand All @@ -73,4 +71,4 @@ provider "aws" {

variable "aws_region" {
default = "us-east-2"
}
}

0 comments on commit a9b63b6

Please sign in to comment.