How can I setup bref to store data in a bucket or in a ElastiCache/memcache #935
mkochstroer
started this conversation in
Ideas
Replies: 1 comment
-
@mkochstroer that is not handled by Bref (nor should be handled by Bref IMHO). If you need to store data, then your own code should handle it. Here are some ideas though :
Also Bref integrates with Serverless Framework so you can write Cloudformation templates to create the S3 buckets or Elasticache clusters. For example service: bref-s3-app
provider:
name: aws
runtime: provided.al2
environment:
APP_ENV: prod
S3_UPLOAD_BUCKET_NAME: !Ref UploadBucket
functions:
website:
handler: public/index.php
timeout: 28 # in seconds (API Gateway has a timeout of 29 seconds)
layers:
- ${bref:layer.php-80-fpm}
events:
- httpApi: '*'
plugins:
- ./vendor/bref/bref
resources:
Resources:
UploadBucket:
Type: "AWS::S3::Bucket"
Properties:
BucketName: ${self:provider.stage}-uploads
AccessControl: Private
Then use the Without more informations about your needs, it's hard to help you more. Feel free to give more details or ask more precise questions 🙂 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a tutorial how to setup bref so that the app can store data in a ElastiCache? Or in an S3 bucket?
Beta Was this translation helpful? Give feedback.
All reactions