added additional information for s3 discovery usage

Signed-off-by: Nigel Wright <nigel.wright@roamdigital.com>
This commit is contained in:
Nigel Wright
2021-12-28 13:25:05 +13:00
parent 5284458e18
commit 3df39d8ed3
+13
View File
@@ -26,3 +26,16 @@ catalog:
```
Note the `s3-discovery` type, as this is not a regular `url` processor.
As this processor is not one of the default providers, you will also need to add the below:
```javascript
/* packages/backend/src/plugins/catalog.ts */
import { AwsS3DiscoveryProcessor} from '@backstage/plugin-catalog-backend';
const builder = await CatalogBuilder.create(env);
/** ... other processors ... */
builder.addProcessor(new AwsS3DiscoveryProcessor(env.reader))
```