Closed mk2 closed 3 years ago
Purpose: To upload a file only in a specific environment.
How to use:
in serverless.yaml:
custom: s3Sync: - bucketName: my-bucket localDir: files params: - "prod.json": OnlyForEnv: prod - "stg.json": OnlyForEnv: stg - "dev.json": OnlyForEnv: dev
The prod.json will be uploaded only in the prod environment, other files too.
prod.json
prod
@mk2 Sorry for the late reply. Look good! Thank you!
Released as v1.15.0.
Thanks!
Purpose: To upload a file only in a specific environment.
How to use:
in serverless.yaml:
The
prod.json
will be uploaded only in theprod
environment, other files too.