Skip to content

Commit b48ad30

Browse files
authored
Use relative file path of lambda rather than absolute (#8)
1 parent 5a060fd commit b48ad30

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ is given
107107
| namespace | Namespace, which could be your organization name, e.g. 'eg' or 'cp' | string | - | yes |
108108
| python_version | The Python version to use | string | `2.7` | no |
109109
| schedule | CloudWatch Events rule schedule using cron or rate expression | string | `cron(0 3 * * ? *)` | no |
110-
| sns_arn | SNS ARN to pusblish alerts | string | `` | no |
110+
| sns_arn | SNS ARN to publish alerts | string | `` | no |
111111
| stage | Stage, e.g. 'prod', 'staging', 'dev', or 'test' | string | - | yes |
112112
| subnet_ids | Subnet ids | list | - | yes |
113113
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')` | map | `<map>` | no |

docs/terraform.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ is given
2222
| namespace | Namespace, which could be your organization name, e.g. 'eg' or 'cp' | string | - | yes |
2323
| python_version | The Python version to use | string | `2.7` | no |
2424
| schedule | CloudWatch Events rule schedule using cron or rate expression | string | `cron(0 3 * * ? *)` | no |
25-
| sns_arn | SNS ARN to pusblish alerts | string | `` | no |
25+
| sns_arn | SNS ARN to publish alerts | string | `` | no |
2626
| stage | Stage, e.g. 'prod', 'staging', 'dev', or 'test' | string | - | yes |
2727
| subnet_ids | Subnet ids | list | - | yes |
2828
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')` | map | `<map>` | no |

lambda/COPYRIGHT.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Files in this directory may be subject to the following notice:
2+
3+
Apache Software License 2.0
4+
5+
Copyright 2016 **Cloudreach Europe Limited** or its affiliates. All Rights Reserved.
6+
7+
Licensed under the Apache License, Version 2.0 (the "License");
8+
you may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ module "artifact" {
7676
source = "git::https://github.com/cloudposse/terraform-external-module-artifact.git?ref=tags/0.1.1"
7777
filename = "lambda.zip"
7878
module_name = "terraform-aws-lambda-elasticsearch-cleanup"
79-
module_path = "${path.module}"
79+
module_path = "${substr(path.module, length(path.cwd) + 1, -1)}"
8080
}
8181

8282
# Locals

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ variable "subnet_ids" {
3333
variable "sns_arn" {
3434
type = "string"
3535
default = ""
36-
description = "SNS ARN to pusblish alerts"
36+
description = "SNS ARN to publish alerts"
3737
}
3838

3939
variable "index" {

0 commit comments

Comments
 (0)