Skip to content

Commit c74393e

Browse files
author
Ben Fortuna
committed
Fixed examples
1 parent 06563d4 commit c74393e

File tree

11 files changed

+14
-13
lines changed

11 files changed

+14
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Created by .ignore support plugin (hsz.mobi)
22
terraform-aws-lambda-function.iml
33
.terraform/
4+
*.zip

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
SHELL:=/bin/bash
22
TERRAFORM_VERSION=0.12.24
3-
TERRAFORM=docker run --rm -v "${PWD}:/work" -v "${HOME}:/root" -e AWS_DEFAULT_REGION=$(AWS_DEFAULT_REGION) -e http_proxy=$(http_proxy) --net=host -w /work hashicorp/terraform:$(TERRAFORM_VERSION)
3+
TERRAFORM=docker run --rm -it -v "${PWD}:/work" -v "${HOME}:/root" -e AWS_DEFAULT_REGION=$(AWS_DEFAULT_REGION) -e http_proxy=$(http_proxy) --net=host -w /work hashicorp/terraform:$(TERRAFORM_VERSION)
44

5-
TERRAFORM_DOCS=docker run --rm -v "${PWD}:/work" tmknom/terraform-docs
5+
TERRAFORM_DOCS=docker run --rm -it -v "${PWD}:/work" tmknom/terraform-docs
66

7-
CHECKOV=docker run --rm -t -v "${PWD}:/work" bridgecrew/checkov
7+
CHECKOV=docker run --rm -it -v "${PWD}:/work" bridgecrew/checkov
88

99
TFSEC=docker run --rm -it -v "${PWD}:/work" liamg/tfsec
1010

11-
DIAGRAMS=docker run -t -v "${PWD}:/work" figurate/diagrams python
11+
DIAGRAMS=docker run -it -v "${PWD}:/work" figurate/diagrams python
1212

1313
EXAMPLE=$(wordlist 2, $(words $(MAKECMDGOALS)), $(MAKECMDGOALS))
1414

examples/dynamodb-table-import/vars.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ variable "environment" {
1616

1717
variable "role" {
1818
description = "IAM role assumed by the Lambda function"
19-
default = "dynamodb-lambda-role"
19+
default = "iam-lambda-role"
2020
}

examples/dynamodb-table-put/vars.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ variable "environment" {
1616

1717
variable "role" {
1818
description = "IAM role assumed by the Lambda function"
19-
default = "dynamodb-lambda-role"
19+
default = "iam-lambda-role"
2020
}

examples/ec2-ami-deletion/vars.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ variable "environment" {
1616

1717
variable "role" {
1818
description = "IAM role assumed by the Lambda function"
19-
default = "ec2-lambda-role"
19+
default = "iam-lambda-role"
2020
}

examples/ec2-instance-cycle/vars.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ variable "environment" {
1616

1717
variable "role" {
1818
description = "IAM role assumed by the Lambda function"
19-
default = "ec2-lambda-role"
19+
default = "iam-lambda-role"
2020
}

examples/rds-cluster-cycle/vars.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ variable "environment" {
1616

1717
variable "role" {
1818
description = "IAM role assumed by the Lambda function"
19-
default = "rds-lambda-role"
19+
default = "iam-lambda-role"
2020
}

examples/rds-cluster-snapshot/vars.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ variable "environment" {
1616

1717
variable "role" {
1818
description = "IAM role assumed by the Lambda function"
19-
default = "rds-lambda-role"
19+
default = "iam-lambda-role"
2020
}

examples/rds-instance-cycle/vars.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ variable "environment" {
1616

1717
variable "role" {
1818
description = "IAM role assumed by the Lambda function"
19-
default = "rds-lambda-role"
19+
default = "iam-lambda-role"
2020
}

examples/rds-instance-snapshot/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
data "archive_file" "function" {
2-
source_file = "lambda_handler.py"
2+
source_file = "${path.module}/lambda_handler.py"
33
output_path = "rds-instance-snapshot.zip"
44
type = "zip"
55
}

0 commit comments

Comments
 (0)