Skip to content

Commit

Permalink
High level adjustments of structure and import pattern, also new emai…
Browse files Browse the repository at this point in the history
…l stack (#688)

* add validate

* Add vallidation logic to main

* Define new recources for email stack

* clean up and add email data bucket

* adjust stacks and tsconfig

* tsconfig changes

* ignoreing false pos pws

* fix weird typo

* Fix some typing stuff etc

* move additionalRules

* update deployment test with test config values

* fixing more false pos secret detections

* replace code with tests

* bun up

* fix issue where ses cant publish to sns

* fix issue where security group wasnt reachable.  fwiw this syntax is very strange, always has been.  you can check out the createTriggers lambda to see where else we use it

* deploy dependency and permission fixes

* fix non-namespaced resource name causing collision

* namespace

* remove email identity creation

---------

Co-authored-by: Mike Dial <[email protected]>
  • Loading branch information
benjaminpaige and mdial89f authored Jul 29, 2024
1 parent b280bc7 commit fa78912
Show file tree
Hide file tree
Showing 36 changed files with 2,141 additions and 1,983 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ build_run

# tests
coverage
__snapshots__
__snapshots__
bin
3 changes: 1 addition & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"recommendations": [
"bradlc.vscode-tailwindcss",
"dbaeumer.vscode-eslint",
"rvest.vs-code-prettier-eslint",
"ZixuanChen.vitest-explorer"
"rvest.vs-code-prettier-eslint"
]
}
4 changes: 2 additions & 2 deletions bin/app.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env node
import "source-map-support/register";
import * as cdk from "aws-cdk-lib";
import { ParentStack } from "../lib/parent-stack";
import { DeploymentConfig } from "../lib/deployment-config";
import { ParentStack } from "../lib/stacks/parent";
import { DeploymentConfig } from "../lib/stacks/deployment-config";
import { validateEnvVariable } from "shared-utils";

async function main() {
Expand Down
Binary file modified bun.lockb
Binary file not shown.
6 changes: 5 additions & 1 deletion docs/docs/services/email.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ The email services uses the serverless-ses-template plugin to manage the email t
- name: the template name (note, the stage name is appended to this during deployment so branch templates remain unique to that stage). At this time, the naming standard for email templates is based on the event details. Specifically, the action and the authority values from the decoded event. If action is not included in the event data, "new-submission" is assumed.
- subject: the subject line of the email, may contain replacement values using {{name}}.
- html: the email body in html, may contain replacement values using {{name}}.
- text: the email body in text, may contain replacement values using {{name}}.
- text: the email body in text, may contain replacement values using {{name}}.

## Email Sending Service with AWS CDK

This guide provides an overview and implementation of a robust email sending service using AWS Cloud Development Kit (CDK). The service includes features such as dedicated IP pools, configuration sets, verified email identities, and monitoring through SNS topics.
333 changes: 0 additions & 333 deletions lib/auth-stack.ts

This file was deleted.

Loading

0 comments on commit fa78912

Please sign in to comment.