Skip to content

Commit

Permalink
add ws to project setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vlasic committed Sep 2, 2021
1 parent 575cfb5 commit 9743236
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions internal/backend/assets/terraform/templates/setup.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ locals {
layers = ["arn:aws:lambda:eu-central-1:553035198032:layer:git-lambda2:8", "arn:aws:lambda:eu-central-1:477361877445:layer:terraform-lambda:1"]
}
}
handler = {
name = "ws"
s3_key = "functions/ws.zip"
memory_size = 128
timeout = 900
}
}

terraform {
Expand All @@ -56,6 +62,12 @@ module "iam" {
backend_role_arn = module.funcs.role_arn
}

module "ws" {
source = "http://localhost:8080/terraform/modules/backend-ws.zip"
handler = local.handler
s3_bucket = local.functions_bucket
}

# expose aws region and profile for use in shell scripts
output "aws_region" {
value = local.aws_region
Expand All @@ -76,3 +88,11 @@ output "url" {
output "cli_role" {
value = module.iam.cli_role
}

output "ws_url" {
value = module.ws.url
}

output "ws_handler" {
value = module.ws.handler
}

0 comments on commit 9743236

Please sign in to comment.