-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fec176
commit 454bee8
Showing
4 changed files
with
102 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,7 +74,7 @@ | |
"memory_limit": "1024", | ||
"min_count": 1, | ||
"max_count": 1, | ||
"image_tag": "ga-281", | ||
"image_tag": "ga-285", | ||
"allow_ecs_exec": true, | ||
"env_vars": { | ||
"NODE_ENV": "production", | ||
|
@@ -151,11 +151,16 @@ | |
"REDIS_USERNAME": "app", | ||
"REDIS_USE_TLS": "true", | ||
"BASE_URL": "https://dev.aoe.fi/api/v1/", | ||
"EMAIL_FROM": "oppimateriaalivaranto@aoe.fi", | ||
"EMAIL_FROM": "admin@dev.aoe.fi", | ||
"TRANSPORT_AUTH_USER": "[email protected]", | ||
"TRANSPORT_AUTH_HOST": "XXXX", | ||
"TRANSPORT_PORT": "25", | ||
"SEND_EMAIL": "0", | ||
|
||
"SEND_SYSTEM_NOTIFICATION_EMAIL" : "0", | ||
"SEND_EXPIRATION_NOTIFICATION_EMAIL" : "0", | ||
"SEND_RATING_NOTIFICATION:EMAIL": "0", | ||
"SEND_VERIFICATION_EMAIL": "1", | ||
|
||
"VERIFY_EMAIL_REDIRECT_URL": "/", | ||
|
||
"CLOUD_STORAGE_ENABLED": "1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Stack, StackProps } from 'aws-cdk-lib'; | ||
import { Construct } from 'constructs'; | ||
import * as ses from 'aws-cdk-lib/aws-ses' | ||
import { HostedZone } from 'aws-cdk-lib/aws-route53'; | ||
import * as cdk from 'aws-cdk-lib'; | ||
import { EmailIdentity } from "aws-cdk-lib/aws-ses"; | ||
|
||
interface sesProps extends StackProps { | ||
hostedZone: HostedZone | ||
} | ||
|
||
export class SesStack extends Stack { | ||
public emailIdentity: EmailIdentity; | ||
|
||
constructor(scope: Construct, id: string, props: sesProps) { | ||
super(scope, id, props); | ||
this.emailIdentity = new ses.EmailIdentity(this, 'EmailIdentity', { | ||
identity: ses.Identity.publicHostedZone(props.hostedZone) | ||
}) | ||
|
||
new cdk.CfnOutput(this, 'EmailIdentityArn', { | ||
value: this.emailIdentity.emailIdentityArn, | ||
description: 'The ARN of the SES Email Identity', | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters