You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { Construct } from "constructs";
import { Stack } from "aws-cdk-lib";
import { SesSmtpCredentials } from "ses-smtp-credentials-cdk/cdkv2";
export class EmailInitialiser extends Construct {
public readonly username: string;
public readonly password: string;
constructor(scope: Construct, id: string) {
super(scope, id);
const smtpCredentials = new SesSmtpCredentials(this, id + "Credentials", {
region: Stack.of(scope).region,
});
this.username = smtpCredentials.username();
this.password = smtpCredentials.password();
}
}
Received response status [FAILED] from custom resource. Message returned: Error: Cannot find module 'utf8'
Require stack:
- /var/task/index.js
- /var/runtime/UserFunction.js
- /var/runtime/Runtime.js
- /var/runtime/index.js
at _loadUserApp (/var/runtime/UserFunction.js:221:13)
at Object.module.exports.load (/var/runtime/UserFunction.js:279:17)
at Object.<anonymous> (/var/runtime/index.js:43:34)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: