Documentation ¶
Index ¶
- func InitializeDynamoDb(tableName string, schema *dynamodb.CreateTableInput, ...) error
- func InitializeS3Bucket(bucketName, region string, svc s3iface.S3API) error
- func NewAwsSession(key string, secret string, region string) (*session.Session, error)
- func NewAwsSessionFromSharedConfig() (*session.Session, error)
- func NewDynamoDbClient(key string, secret string, region string) dynamodbiface.DynamoDBAPI
- func NewS3Client(key string, secret string, region string) s3iface.S3API
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeDynamoDb ¶
func InitializeDynamoDb(tableName string, schema *dynamodb.CreateTableInput, db dynamodbiface.DynamoDBAPI) error
InitializeDynamoDb - checks if table exists, in case it doesn't it creates it
func InitializeS3Bucket ¶
InitializeS3Bucket - checks if bucket exists, in case it doesn't it creates it
func NewAwsSession ¶
Create new AWS Session with provided API key, Secret and Region
func NewAwsSessionFromSharedConfig ¶
Create new AWS Session using shared config (.aws/ dir and env)
func NewDynamoDbClient ¶
func NewDynamoDbClient(key string, secret string, region string) dynamodbiface.DynamoDBAPI
Create new DynamoDB client
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.