freckle/aws-s3-lock
Wait on, acquire, and clean-up S3-based locks
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| bucket | Name of an existing S3 bucket to use. | yes | — |
| name | Name for the lock object. Include any prefix you want within the bucket. The key will be built as "name.created.uuid.expires". | — | ${{ github.workflow }}/${{ github.job }} |
| expires | How long before concurrent operations consider this lock expired. | — | 15m |
| timeout | How long to wait for the lock to become available. Default matches expires. | no | — |
| timeout-poll | How long to wait between attempts for the lock. Default is 5s. | — | 5s |
| context | Additional context to write as the body of the lock file. Concurrent operations waiting on this lock will display it. | — | ${{ github.workflow }} #${{ github.run_number }} |
Outputs
| name | description |
|---|---|
| key | Key of the S3 object representing the lock |
| acquired-at | Timestamp the lock was acquired |