Skip to content

Commit 5686e2c

Browse files
Gowiemjamengualactions-bot
authored
[AUTOMATED] Update Version Pinning for Terraform to support 0.13 (#16)
* [AUTOMATED] Update Version Pinning for Terraform to support 0.13 ## What 1. Update Version Pinning for Terraform to support 0.13 ## Why 1. This is a relatively minor update that the CloudPosse module already likely supports. 1. This allows module consumers to not individually update our Terraform module to support Terraform 0.13. * Update variables.tf updating nodejs runtime * Updated README.md * Update fixtures.us-east-1.tfvars Fixing node js version Co-authored-by: PePe Amengual <[email protected]> Co-authored-by: actions-bot <[email protected]>
1 parent e57c441 commit 5686e2c

File tree

6 files changed

+142
-124
lines changed

6 files changed

+142
-124
lines changed

README.md

Lines changed: 88 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
1-
<!--
2-
3-
4-
5-
6-
7-
8-
1+
# terraform-aws-ses-lambda-forwarder [![Latest Release](https://img.shields.io/github/release/cloudposse/terraform-aws-ses-lambda-forwarder.svg)](https://github.com/cloudposse/terraform-aws-ses-lambda-forwarder/releases/latest) [![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
92

3+
[![README Header][readme_header_img]][readme_header_link]
104

5+
[![Cloud Posse][logo]](https://cpco.io/homepage)
116

7+
<!--
128
139
1410
1511
1612
** DO NOT EDIT THIS FILE
17-
**
18-
** This file was automatically generated by the `build-harness`.
19-
** 1) Make all changes to `README.yaml`
13+
**
14+
** This file was automatically generated by the `build-harness`.
15+
** 1) Make all changes to `README.yaml`
2016
** 2) Run `make init` (you only need to do this once)
21-
** 3) Run`make readme` to rebuild this file.
17+
** 3) Run`make readme` to rebuild this file.
2218
**
2319
** (We maintain HUNDREDS of open source projects. This is how we maintain our sanity.)
2420
**
@@ -27,30 +23,14 @@
2723
2824
2925
30-
31-
32-
33-
34-
35-
36-
37-
38-
39-
40-
-->
41-
[![README Header][readme_header_img]][readme_header_link]
42-
43-
[![Cloud Posse][logo]](https://cpco.io/homepage)
44-
45-
# terraform-aws-ses-lambda-forwarder [![Latest Release](https://img.shields.io/github/release/cloudposse/terraform-aws-ses-lambda-forwarder.svg)](https://github.com/cloudposse/terraform-aws-ses-lambda-forwarder/releases/latest) [![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
46-
26+
-->
4727

4828
This is a terraform module that creates an email forwarder using a combination of AWS SES and Lambda running the [aws-lambda-ses-forwarder](https://www.npmjs.com/package/aws-lambda-ses-forwarder) NPM module.
4929

5030

5131
---
5232

53-
This project is part of our comprehensive ["SweetOps"](https://cpco.io/sweetops) approach towards DevOps.
33+
This project is part of our comprehensive ["SweetOps"](https://cpco.io/sweetops) approach towards DevOps.
5434
[<img align="right" title="Share via Email" src="https://docs.cloudposse.com/images/ionicons/ios-email-outline-2.0.1-16x16-999999.svg"/>][share_email]
5535
[<img align="right" title="Share on Google+" src="https://docs.cloudposse.com/images/ionicons/social-googleplus-outline-2.0.1-16x16-999999.svg" />][share_googleplus]
5636
[<img align="right" title="Share on Facebook" src="https://docs.cloudposse.com/images/ionicons/social-facebook-outline-2.0.1-16x16-999999.svg" />][share_facebook]
@@ -71,7 +51,7 @@ It's 100% Open Source and licensed under the [APACHE2](LICENSE).
7151

7252

7353

74-
We literally have [*hundreds of terraform modules*][terraform_modules] that are Open Source and well-maintained. Check them out!
54+
We literally have [*hundreds of terraform modules*][terraform_modules] that are Open Source and well-maintained. Check them out!
7555

7656

7757

@@ -160,8 +140,9 @@ module "ses_lambda_forwarder" {
160140

161141

162142

143+
<!-- markdownlint-disable -->
163144
## Makefile Targets
164-
```
145+
```text
165146
Available targets:
166147
167148
help Help screen
@@ -170,61 +151,78 @@ Available targets:
170151
lint Lint terraform code
171152
172153
```
154+
<!-- markdownlint-restore -->
155+
## Requirements
156+
157+
| Name | Version |
158+
|------|---------|
159+
| terraform | >= 0.12.0, < 0.14.0 |
160+
| aws | ~> 2.0 |
161+
| external | ~> 1.2 |
162+
| local | ~> 1.3 |
163+
| template | ~> 2.0 |
164+
165+
## Providers
166+
167+
| Name | Version |
168+
|------|---------|
169+
| aws | ~> 2.0 |
170+
173171
## Inputs
174172

175173
| Name | Description | Type | Default | Required |
176-
|------|-------------|:----:|:-----:|:-----:|
177-
| artifact_filename | Artifact filename | string | `lambda.zip` | no |
178-
| artifact_url | URL template for the remote artifact | string | `https://artifacts.cloudposse.com/$$${module_name}/$$${git_ref}/$$${filename}` | no |
179-
| attributes | Additional attributes (e.g. `1`) | list(string) | `<list>` | no |
180-
| delimiter | Delimiter to be used between `namespace`, `stage`, `name` and `attributes` | string | `-` | no |
181-
| domain | Root domain name | string | - | yes |
182-
| forward_emails | Map of forward emails | map(list(string)) | `<map>` | no |
183-
| lambda_runtime | Lambda runtime | string | `nodejs8.10` | no |
184-
| name | Application or solution name (e.g. `app`) | string | `ses` | no |
185-
| namespace | Namespace (e.g. `cp` or `cloudposse`) | string | `` | no |
186-
| region | AWS Region the SES should reside in | string | - | yes |
187-
| relay_email | Email that used to relay from | string | - | yes |
188-
| spf | DNS SPF record value | string | `v=spf1 include:amazonses.com -all` | no |
189-
| stage | Stage (e.g. `prod`, `dev`, `staging`) | string | `` | no |
190-
| tags | Additional tags (e.g. map(`BusinessUnit`,`XYZ`) | map(string) | `<map>` | no |
174+
|------|-------------|------|---------|:--------:|
175+
| artifact\_filename | Artifact filename | `string` | `"lambda.zip"` | no |
176+
| artifact\_url | URL template for the remote artifact | `string` | `"https://artifacts.cloudposse.com/$${module_name}/$${git_ref}/$${filename}"` | no |
177+
| attributes | Additional attributes (e.g. `1`) | `list(string)` | `[]` | no |
178+
| delimiter | Delimiter to be used between `namespace`, `stage`, `name` and `attributes` | `string` | `"-"` | no |
179+
| domain | Root domain name | `string` | n/a | yes |
180+
| forward\_emails | Map of forward emails | `map(list(string))` | <pre>{<br> "[email protected]": [<br> "[email protected]"<br> ]<br>}</pre> | no |
181+
| lambda\_runtime | Lambda runtime | `string` | `"nodejs12.x"` | no |
182+
| name | Application or solution name (e.g. `app`) | `string` | `"ses"` | no |
183+
| namespace | Namespace (e.g. `cp` or `cloudposse`) | `string` | `""` | no |
184+
| region | AWS Region the SES should reside in | `string` | n/a | yes |
185+
| relay\_email | Email that used to relay from | `string` | n/a | yes |
186+
| spf | DNS SPF record value | `string` | `"v=spf1 include:amazonses.com -all"` | no |
187+
| stage | Stage (e.g. `prod`, `dev`, `staging`) | `string` | `""` | no |
188+
| tags | Additional tags (e.g. map(`BusinessUnit`,`XYZ`) | `map(string)` | `{}` | no |
191189

192190
## Outputs
193191

194192
| Name | Description |
195193
|------|-------------|
196-
| artifact_base64sha256 | Base64 encoded SHA256 hash of the artifact file |
197-
| artifact_file | Full path to the locally downloaded artifact |
198-
| artifact_git_ref | Git commit hash corresponding to the artifact |
199-
| artifact_url | URL corresponding to the artifact |
200-
| lambda_function_arn | Lamnda Function ARN |
201-
| lambda_function_source_code_size | The size in bytes of the Lambda Function .zip file |
202-
| lambda_function_version | Latest published version of the Lambda Function |
203-
| lambda_iam_policy_arn | Lamnda IAM Policy ARN |
204-
| lambda_iam_policy_id | Lamnda IAM Policy ID |
205-
| lambda_iam_policy_name | Lamnda IAM Policy name |
206-
| s3_bucket_arn | Lamnda IAM Policy ARN |
207-
| s3_bucket_domain_name | Lamnda IAM Policy ARN |
208-
| s3_bucket_id | Lamnda IAM Policy name |
209-
| ses_domain_identity_arn | The ARN of the domain identity |
210-
| ses_domain_identity_verification_arn | The ARN of the domain identity |
211-
| ses_receipt_rule_name | The name of the SES receipt rule |
212-
| ses_receipt_rule_set_name | The name of the SES receipt rule set |
194+
| artifact\_base64sha256 | Base64 encoded SHA256 hash of the artifact file |
195+
| artifact\_file | Full path to the locally downloaded artifact |
196+
| artifact\_git\_ref | Git commit hash corresponding to the artifact |
197+
| artifact\_url | URL corresponding to the artifact |
198+
| lambda\_function\_arn | Lamnda Function ARN |
199+
| lambda\_function\_source\_code\_size | The size in bytes of the Lambda Function .zip file |
200+
| lambda\_function\_version | Latest published version of the Lambda Function |
201+
| lambda\_iam\_policy\_arn | Lamnda IAM Policy ARN |
202+
| lambda\_iam\_policy\_id | Lamnda IAM Policy ID |
203+
| lambda\_iam\_policy\_name | Lamnda IAM Policy name |
204+
| s3\_bucket\_arn | Lamnda IAM Policy ARN |
205+
| s3\_bucket\_domain\_name | Lamnda IAM Policy ARN |
206+
| s3\_bucket\_id | Lamnda IAM Policy name |
207+
| ses\_domain\_identity\_arn | The ARN of the domain identity |
208+
| ses\_domain\_identity\_verification\_arn | The ARN of the domain identity |
209+
| ses\_receipt\_rule\_name | The name of the SES receipt rule |
210+
| ses\_receipt\_rule\_set\_name | The name of the SES receipt rule set |
213211

214212

215213

216214

217215

218216
## References
219217

220-
For additional context, refer to some of these links.
218+
For additional context, refer to some of these links.
221219

222220
- [aws-lambda-ses-forwarder](https://www.npmjs.com/package/aws-lambda-ses-forwarder) - A Node.js script for AWS Lambda that uses the inbound/outbound capabilities of AWS Simple Email Service (SES) to run a "serverless" email forwarding service.
223221

224222

225223
## Help
226224

227-
**Got a question?** We got answers.
225+
**Got a question?** We got answers.
228226

229227
File a GitHub [issue](https://github.com/cloudposse/terraform-aws-ses-lambda-forwarder/issues), send us an [email][email] or join our [Slack Community][slack].
230228

@@ -233,7 +231,7 @@ File a GitHub [issue](https://github.com/cloudposse/terraform-aws-ses-lambda-for
233231
## DevOps Accelerator for Startups
234232

235233

236-
We are a [**DevOps Accelerator**][commercial_support]. We'll help you build your cloud infrastructure from the ground up so you can own it. Then we'll show you how to operate it and stick around for as long as you need us.
234+
We are a [**DevOps Accelerator**][commercial_support]. We'll help you build your cloud infrastructure from the ground up so you can own it. Then we'll show you how to operate it and stick around for as long as you need us.
237235

238236
[![Learn More](https://img.shields.io/badge/learn%20more-success.svg?style=for-the-badge)][commercial_support]
239237

@@ -262,11 +260,11 @@ Participate in our [Discourse Forums][discourse]. Here you'll find answers to co
262260

263261
## Newsletter
264262

265-
Sign up for [our newsletter][newsletter] that covers everything on our technology radar. Receive updates on what we're up to on GitHub as well as awesome new projects we discover.
263+
Sign up for [our newsletter][newsletter] that covers everything on our technology radar. Receive updates on what we're up to on GitHub as well as awesome new projects we discover.
266264

267265
## Office Hours
268266

269-
[Join us every Wednesday via Zoom][office_hours] for our weekly "Lunch & Learn" sessions. It's **FREE** for everyone!
267+
[Join us every Wednesday via Zoom][office_hours] for our weekly "Lunch & Learn" sessions. It's **FREE** for everyone!
270268

271269
[![zoom](https://img.cloudposse.com/fit-in/200x200/https://cloudposse.com/wp-content/uploads/2019/08/Powered-by-Zoom.png")][office_hours]
272270

@@ -297,28 +295,30 @@ Copyright © 2017-2020 [Cloud Posse, LLC](https://cpco.io/copyright)
297295

298296

299297

300-
## License
298+
## License
301299

302-
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
300+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
303301

304302
See [LICENSE](LICENSE) for full details.
305303

306-
Licensed to the Apache Software Foundation (ASF) under one
307-
or more contributor license agreements. See the NOTICE file
308-
distributed with this work for additional information
309-
regarding copyright ownership. The ASF licenses this file
310-
to you under the Apache License, Version 2.0 (the
311-
"License"); you may not use this file except in compliance
312-
with the License. You may obtain a copy of the License at
313-
314-
https://www.apache.org/licenses/LICENSE-2.0
315-
316-
Unless required by applicable law or agreed to in writing,
317-
software distributed under the License is distributed on an
318-
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
319-
KIND, either express or implied. See the License for the
320-
specific language governing permissions and limitations
321-
under the License.
304+
```text
305+
Licensed to the Apache Software Foundation (ASF) under one
306+
or more contributor license agreements. See the NOTICE file
307+
distributed with this work for additional information
308+
regarding copyright ownership. The ASF licenses this file
309+
to you under the Apache License, Version 2.0 (the
310+
"License"); you may not use this file except in compliance
311+
with the License. You may obtain a copy of the License at
312+
313+
https://www.apache.org/licenses/LICENSE-2.0
314+
315+
Unless required by applicable law or agreed to in writing,
316+
software distributed under the License is distributed on an
317+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
318+
KIND, either express or implied. See the License for the
319+
specific language governing permissions and limitations
320+
under the License.
321+
```
322322

323323

324324

@@ -340,7 +340,7 @@ This project is maintained and funded by [Cloud Posse, LLC][website]. Like it? P
340340

341341
We're a [DevOps Professional Services][hire] company based in Los Angeles, CA. We ❤️ [Open Source Software][we_love_open_source].
342342

343-
We offer [paid support][commercial_support] on all of our projects.
343+
We offer [paid support][commercial_support] on all of our projects.
344344

345345
Check out [our other projects][github], [follow us on twitter][twitter], [apply for a job][jobs], or [hire us][hire] to help with your cloud strategy and implementation.
346346

docs/targets.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
<!-- markdownlint-disable -->
12
## Makefile Targets
2-
```
3+
```text
34
Available targets:
45
56
help Help screen
@@ -8,3 +9,4 @@ Available targets:
89
lint Lint terraform code
910
1011
```
12+
<!-- markdownlint-restore -->

docs/terraform.md

Lines changed: 48 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,57 @@
1+
## Requirements
2+
3+
| Name | Version |
4+
|------|---------|
5+
| terraform | >= 0.12.0, < 0.14.0 |
6+
| aws | ~> 2.0 |
7+
| external | ~> 1.2 |
8+
| local | ~> 1.3 |
9+
| template | ~> 2.0 |
10+
11+
## Providers
12+
13+
| Name | Version |
14+
|------|---------|
15+
| aws | ~> 2.0 |
16+
117
## Inputs
218

319
| Name | Description | Type | Default | Required |
4-
|------|-------------|:----:|:-----:|:-----:|
5-
| artifact_filename | Artifact filename | string | `lambda.zip` | no |
6-
| artifact_url | URL template for the remote artifact | string | `https://artifacts.cloudposse.com/$$${module_name}/$$${git_ref}/$$${filename}` | no |
7-
| attributes | Additional attributes (e.g. `1`) | list(string) | `<list>` | no |
8-
| delimiter | Delimiter to be used between `namespace`, `stage`, `name` and `attributes` | string | `-` | no |
9-
| domain | Root domain name | string | - | yes |
10-
| forward_emails | Map of forward emails | map(list(string)) | `<map>` | no |
11-
| lambda_runtime | Lambda runtime | string | `nodejs8.10` | no |
12-
| name | Application or solution name (e.g. `app`) | string | `ses` | no |
13-
| namespace | Namespace (e.g. `cp` or `cloudposse`) | string | `` | no |
14-
| region | AWS Region the SES should reside in | string | - | yes |
15-
| relay_email | Email that used to relay from | string | - | yes |
16-
| spf | DNS SPF record value | string | `v=spf1 include:amazonses.com -all` | no |
17-
| stage | Stage (e.g. `prod`, `dev`, `staging`) | string | `` | no |
18-
| tags | Additional tags (e.g. map(`BusinessUnit`,`XYZ`) | map(string) | `<map>` | no |
20+
|------|-------------|------|---------|:--------:|
21+
| artifact\_filename | Artifact filename | `string` | `"lambda.zip"` | no |
22+
| artifact\_url | URL template for the remote artifact | `string` | `"https://artifacts.cloudposse.com/$${module_name}/$${git_ref}/$${filename}"` | no |
23+
| attributes | Additional attributes (e.g. `1`) | `list(string)` | `[]` | no |
24+
| delimiter | Delimiter to be used between `namespace`, `stage`, `name` and `attributes` | `string` | `"-"` | no |
25+
| domain | Root domain name | `string` | n/a | yes |
26+
| forward\_emails | Map of forward emails | `map(list(string))` | <pre>{<br> "[email protected]": [<br> "[email protected]"<br> ]<br>}</pre> | no |
27+
| lambda\_runtime | Lambda runtime | `string` | `"nodejs12.x"` | no |
28+
| name | Application or solution name (e.g. `app`) | `string` | `"ses"` | no |
29+
| namespace | Namespace (e.g. `cp` or `cloudposse`) | `string` | `""` | no |
30+
| region | AWS Region the SES should reside in | `string` | n/a | yes |
31+
| relay\_email | Email that used to relay from | `string` | n/a | yes |
32+
| spf | DNS SPF record value | `string` | `"v=spf1 include:amazonses.com -all"` | no |
33+
| stage | Stage (e.g. `prod`, `dev`, `staging`) | `string` | `""` | no |
34+
| tags | Additional tags (e.g. map(`BusinessUnit`,`XYZ`) | `map(string)` | `{}` | no |
1935

2036
## Outputs
2137

2238
| Name | Description |
2339
|------|-------------|
24-
| artifact_base64sha256 | Base64 encoded SHA256 hash of the artifact file |
25-
| artifact_file | Full path to the locally downloaded artifact |
26-
| artifact_git_ref | Git commit hash corresponding to the artifact |
27-
| artifact_url | URL corresponding to the artifact |
28-
| lambda_function_arn | Lamnda Function ARN |
29-
| lambda_function_source_code_size | The size in bytes of the Lambda Function .zip file |
30-
| lambda_function_version | Latest published version of the Lambda Function |
31-
| lambda_iam_policy_arn | Lamnda IAM Policy ARN |
32-
| lambda_iam_policy_id | Lamnda IAM Policy ID |
33-
| lambda_iam_policy_name | Lamnda IAM Policy name |
34-
| s3_bucket_arn | Lamnda IAM Policy ARN |
35-
| s3_bucket_domain_name | Lamnda IAM Policy ARN |
36-
| s3_bucket_id | Lamnda IAM Policy name |
37-
| ses_domain_identity_arn | The ARN of the domain identity |
38-
| ses_domain_identity_verification_arn | The ARN of the domain identity |
39-
| ses_receipt_rule_name | The name of the SES receipt rule |
40-
| ses_receipt_rule_set_name | The name of the SES receipt rule set |
40+
| artifact\_base64sha256 | Base64 encoded SHA256 hash of the artifact file |
41+
| artifact\_file | Full path to the locally downloaded artifact |
42+
| artifact\_git\_ref | Git commit hash corresponding to the artifact |
43+
| artifact\_url | URL corresponding to the artifact |
44+
| lambda\_function\_arn | Lamnda Function ARN |
45+
| lambda\_function\_source\_code\_size | The size in bytes of the Lambda Function .zip file |
46+
| lambda\_function\_version | Latest published version of the Lambda Function |
47+
| lambda\_iam\_policy\_arn | Lamnda IAM Policy ARN |
48+
| lambda\_iam\_policy\_id | Lamnda IAM Policy ID |
49+
| lambda\_iam\_policy\_name | Lamnda IAM Policy name |
50+
| s3\_bucket\_arn | Lamnda IAM Policy ARN |
51+
| s3\_bucket\_domain\_name | Lamnda IAM Policy ARN |
52+
| s3\_bucket\_id | Lamnda IAM Policy name |
53+
| ses\_domain\_identity\_arn | The ARN of the domain identity |
54+
| ses\_domain\_identity\_verification\_arn | The ARN of the domain identity |
55+
| ses\_receipt\_rule\_name | The name of the SES receipt rule |
56+
| ses\_receipt\_rule\_set\_name | The name of the SES receipt rule set |
4157

examples/complete/fixtures.us-east-1.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ domain = "testing.cloudposse.co"
1818

1919
spf = "v=spf1 include:amazonses.com -all"
2020

21-
lambda_runtime = "nodejs8.10"
21+
lambda_runtime = "nodejs12.x"
2222

2323
artifact_url = "https://artifacts.cloudposse.com/terraform-external-module-artifact/example/test.zip"
2424

0 commit comments

Comments
 (0)