Garret Harp
01/31/2022, 2:21 AMimport { AlgoliaIndex } from '@garretcharp/cdk-constructs-algolia-v2'
import { SecretValue } from 'aws-cdk-lib'
const MyIndex = new AlgoliaIndex(this, 'MyIndex', {
indexName: `${this.stage}-my-index`,
// See: <https://www.algolia.com/doc/api-reference/settings-api-parameters>
settings: {
searchableAttributes: ['name']
},
apiKey: SecretValue.plainText('my-algolia-api-key'),
appId: 'my-algolia-app-id'
})
If you run into any issues let me know š Source code: https://github.com/garretcharp/cdk-constructsAdriĆ”n Mouly
01/31/2022, 4:24 AM