Skip to main content
Version: v1.4.0

S3 Bucket

The S3Retriever will use the aws-sdk to access your flag in an S3 bucket.

Example

err := ffclient.Init(ffclient.Config{
PollingInterval: 3 * time.Second,
Retriever: &s3retriever.Retriever{
Bucket: "tpoi-test",
Item: "flag-config.yaml",
AwsConfig: aws.Config{
Region: aws.String("eu-west-1"),
},
},
})
defer ffclient.Close()

Configuration fields

To configure your S3 file location:

FieldDescription
BucketThe name of your bucket.
ItemThe location of your file in the bucket.
AwsConfigAn instance of aws.Config that configure your access to AWS
check this documentation for more info.

Get the latest GO Feature Flag updates