INNER CODE UNIT · TypeScript
hookWrapper
amplify-education/serverless-domain-manager · src/index.ts:77
public async hookWrapper (lifecycleFunc: any) {
// check if `customDomain` or `customDomains` config exists
this.validateConfigExists();
// init config variables
this.initializeVariables();
// Validate the domain configurations
this.validateDomainConfigs();
// setup AWS resources
await this.initSLSCredentials();
await this.initAWSRegion();
await this.initAWSResources();
// start of the legacy AWS SDK V2 creds support
// TODO: remove it in case serverless will add V3 support
// Probe for credential-resolution failures and fall back to framework-resolved
// credentials. osls v4 turns getCredentials() into a throwing removal stub
// (AWS_SDK_V2_SURFACE_REMOVED), so the call is guarded — on those frameworks
// credentials are already resolved in initSLSCredentials() via getAwsSdkV3Config().