Merge pull request #12709 from Bonial-International-GmbH/pjungermann/s3/deprecate-processor

chore(catalog): deprecate `AwsS3DiscoveryProcessor`
This commit is contained in:
Ben Lambert
2022-07-19 15:10:11 +02:00
committed by GitHub
4 changed files with 10 additions and 25 deletions
-24
View File
@@ -76,27 +76,3 @@ builder.addEntityProvider(
}),
);
```
## Alternative Processor
As alternative to the entity provider `AwsS3EntityProvider`
you can still use the `AwsS3DiscoveryProcessor`.
```yaml
# app-config.yaml
catalog:
locations:
- type: s3-discovery
target: https://sample-bucket.s3.us-east-2.amazonaws.com/prefix/
```
```ts
/* packages/backend/src/plugins/catalog.ts */
import { AwsS3DiscoveryProcessor } from '@backstage/plugin-catalog-backend-module-aws';
const builder = await CatalogBuilder.create(env);
/** ... other processors ... */
builder.addProcessor(new AwsS3DiscoveryProcessor(env.reader));
```