Author:
Fluent Commerce
Changed on:
28 Nov 2023
Use the template below to create secrets in localstack before starting the application. The SDK expects ALL secrets to be prefixed with "fc/connect/\/". See Fluent Connector Configuration | Credential / Secrets Configuration for details on required secrets.
1docker exec -d localstack awslocal secretsmanager create-secret --name fc/connect/<FC-CONNECTOR>/api/fluent/activeAccounts --secret-string "{\"accounts\":[{\"name\":\"<FLUENT-ACCOUNT>\", \"region\":\"<FC-ACCOUNT-REGION>\" , \"retailers\":[<FLUENT-RETAILER1>,<FLUENT-RETAILER2>]}]}" ;
2docker exec -d localstack awslocal secretsmanager create-secret --name fc/connect/<FC-CONNECTOR>/<FLUENT-ACCOUNT>/api/fluent-account/<FLUENT-RETAILER> --secret-string "{\"retailer\":\"<FLUENT-RETAILER>\", \"userName\":\"<FC-USERNAME>\", \"password\":\"<FC-PASSWORD>\"}";
Language: plain_text
Name: Example
Description:
[Warning: empty required content area]The property FC-CONNECTOR value must match the connector configuration name found at
`application-connector.yml`
`connector-name: <FC-CONNECTOR>`
This is required when sending events to the queues or managing secrets in localstack directly from your terminal window.
`aws configure --profile localstack`
`export AWS_PROFILE=localstack`
Please note that localstack region is defaulted to "us-east-1".
Create a run configuration setting the spring profiles and environment variables and selecting the correct pre-configured localstack AWS profile. The application runs precisely the same way as it would in production, which is achieved by the properties below.
`connector`
`dev-aws`
For the IntelliJ community version, pass the spring profile configuration as JVM parameters:
`-Dspring.profiles.active=connector,dev-aws`
Create a run configuration and set the spring profiles and the environment variables.
Copyright © 2024 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.