Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSFactory ¶
func NewAWSFactory ¶
func NewAWSFactory(ctx context.Context, configFactory ConfigFactory) (*AWSFactory, error)
NewAWSFactory creates a new factory for AWS clients.
func (*AWSFactory) GetDynamoDBClient ¶
func (d *AWSFactory) GetDynamoDBClient() *dynamodb.Client
GetDynamoDBClient returns a singleton instance of a DynamoDB client
type ConfigFactory ¶
func NewContextualConfigFactory ¶
func NewContextualConfigFactory() ConfigFactory
type ConfigFactoryFunc ¶
type SecretAccessKeyDecoder ¶
type StaticConfig ¶
type TerraformOutput ¶
type TerraformOutput struct { StaticConfig DynamoDBName string ArchiveMainBucketName string ArchiveCacheBucketName string ArchiveJobsSNSARN string ArchiveJobsSQSURL string }
TerraformOutput is the content of `infra-data` output and can be used as Names and as ConfigFactory.
func ReadTerraformOutputFile ¶
func ReadTerraformOutputFile(ctx context.Context, outputFile string) (*TerraformOutput, error)
ReadTerraformOutputFile read the `terraform output -json` file as base to configure the application.
func (*TerraformOutput) DynamoDBMainTable ¶
func (t *TerraformOutput) DynamoDBMainTable() string
Click to show internal directories.
Click to hide internal directories.