feat: handle potential future case of no awsS3 integration

Relates-to: PR #10480
Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
This commit is contained in:
Patrick Jungermann
2022-04-07 16:21:25 +02:00
parent 5454a0d34f
commit 3f801d1279
@@ -63,6 +63,9 @@ export class AwsS3EntityProvider implements EntityProvider {
// In this case, we still want the first one though, but have no means to select it
// just from the bucket name (and region).
const integration = ScmIntegrations.fromConfig(configRoot).awsS3.list()[0];
if (!integration) {
throw new Error('No integration found for awsS3');
}
return providerConfigs.map(
providerConfig =>