https://github.com/deimosfr/octest
https://github.com/deimosfr/octest
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/deimosfr/octest
- Owner: deimosfr
- Created: 2025-04-29T16:48:13.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-04-29T17:24:41.000Z (about 1 month ago)
- Last Synced: 2025-05-04T09:06:41.403Z (29 days ago)
- Language: Shell
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS S3 CLI Example with Qovery Lifecycle Job
This example demonstrates how to use AWS S3 CLI commands within a Qovery Lifecycle Job.
## Overview
This project shows how to:
- Set up a Lifecycle Job in Qovery
- Use AWS S3 CLI to interact with S3 buckets
- Execute S3 operations as automated tasks (create and delete buckets)## Configuration
1. Configure your Qovery Lifecycle Job with:
- **Start script**: `/app/scripts/start.sh`
- **Stop script**: `/app/scripts/stop.sh`
2. Set up AWS credentials as environment variables and S3 bucket names in the Qovery environment:
- `AWS_ACCESS_KEY_ID`
- `AWS_SECRET_ACCESS_KEY`
- `AWS_DEFAULT_REGION`
- `S3_BUCKET_NAME`## Usage
The Lifecycle Job will execute the specified AWS S3 CLI commands based on your configuration.
When you start it, you should see output similar to:
```bash
Creating S3 bucket: test-bucket in region: us-east-2
{
"Location": "http://test-bucket.s3.amazonaws.com/"
}
Bucket test-bucket created successfully!
Bucket versioning enabled
```Check the Qovery documentation for more details on setting up and managing Lifecycle Jobs.
## Resources
- [Qovery Documentation](https://hub.qovery.com/docs/using-qovery/configuration/lifecycle-job/)
- [AWS S3 CLI Documentation](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/index.html)