Updating terraform

Moving .tfvars into root of module
This commit is contained in:
2020-07-24 14:50:05 +01:00
parent 39da0583bf
commit 6a1e94cc9e
3 changed files with 5 additions and 4 deletions

View File

@@ -17,7 +17,8 @@
.PHONY: apply destroy-backend destroy destroy-target plan-destroy plan plan-target prep .PHONY: apply destroy-backend destroy destroy-target plan-destroy plan plan-target prep
-include Makefile.env -include Makefile.env
VARS="variables/$(ENV)-$(REGION).tfvars" # VARS="variables/$(ENV)-$(REGION).tfvars"
VARS="$(ENV)-$(REGION).tfvars"
CURRENT_FOLDER=$(shell basename "$$(pwd)") CURRENT_FOLDER=$(shell basename "$$(pwd)")
S3_BUCKET="$(ENV)-$(REGION)-$(PROJECT)-terraform" S3_BUCKET="$(ENV)-$(REGION)-$(PROJECT)-terraform"
DYNAMODB_TABLE="$(ENV)-$(REGION)-$(PROJECT)-terraform" DYNAMODB_TABLE="$(ENV)-$(REGION)-$(PROJECT)-terraform"

View File

@@ -85,9 +85,9 @@ data "archive_file" "lambda_main" {
# } # }
resource "aws_lambda_function" "directory_indexes" { resource "aws_lambda_function" "directory_indexes" {
provider = aws.us_east_1 provider = aws.us_east_1
function_name = "${var.stage}-${var.name}-directory_indexes" function_name = "${var.stage}-${var.name}-directory_indexes"
filename = "${var.source_file}.zip" filename = "${var.source_file}.zip"
source_code_hash = data.archive_file.lambda_main.output_base64sha256 source_code_hash = data.archive_file.lambda_main.output_base64sha256
# s3_bucket = aws_s3_bucket.lambda_s3.id # s3_bucket = aws_s3_bucket.lambda_s3.id
# s3_key = var.lambda_key # s3_key = var.lambda_key