mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 14:30:28 -05:00
* feat(rds): automated backups, kept after a delete and restored from DescribeDBInstanceAutomatedBackups, DeleteDBInstanceAutomatedBackup, DescribeDBClusterAutomatedBackups, DeleteDBClusterAutomatedBackup, StartDBInstanceAutomatedBackupsReplication and StopDBInstanceAutomatedBackupsReplication answered UnsupportedOperation, and DeleteDBInstance and DeleteDBCluster ignored DeleteAutomatedBackups, so a deleted database could not be restored to a point in time. A live standalone instance with backups on now reports an active automated backup. A delete with DeleteAutomatedBackups=false keeps a retained one, with the PostgreSQL data saved outside mock mode, and RestoreDBInstanceToPointInTime (by DbiResourceId or backups ARN) and RestoreDBClusterToPointInTime (by DbClusterResourceId) restore from it. Replication to another Region is metadata only: the replica is listed as replicating, the source lists it under DBInstanceAutomatedBackupsReplications, and a stop or the source's delete keeps it as retained. Closes #6828 * fix(rds): restart stopped replication, use the replica's window, match the source ARN A stopped replica kept as retained refused a second start of replication to its Region; only a replica that is still replicating refuses it now, and a retained one is replaced. A restore from a replicating backup checked the time against the live source's window; it checks the replica's own window now and still copies the live source. A replication source ARN naming another account or service found this account's instance by identifier; the whole ARN must now match the instance's. The RDS count in the docs service matrix is 117, for the six new actions.
sdk-test-awscli
Compatibility tests for Floci using the AWS CLI v2 (2.22.35).
Tests are plain bash scripts that call aws CLI commands with --endpoint-url pointed at the emulator.
Services Covered
| Group | Description |
|---|---|
ssm |
Parameter Store — put, get, path, tags |
sqs |
Queues, send/receive/delete, attributes |
sns |
Topics, publish, attributes |
s3 |
Buckets, objects, tagging, copy, delete |
dynamodb |
Tables, put/get/update/query/delete items |
iam |
Users, roles, create/get/delete |
sts |
GetCallerIdentity |
ses |
Identities, sending, quotas, notification attributes |
secretsmanager |
Create/get/put/list/tag/delete secrets |
kms |
Keys, aliases, encrypt/decrypt |
cognito |
User pools, clients |
s3-notifications |
S3 → SQS event notifications |
Requirements
- AWS CLI v2
- bash
- jq
- bats-core (installed via
just setup-awscli)
Running
# All groups (from compatibility-tests/)
just test-awscli
# Run bats directly
./lib/run-bats-with-junit.sh sdk-test-awscli/test/ sdk-test-awscli/test-results/junit.xml
Configuration
| Variable | Default | Description |
|---|---|---|
FLOCI_ENDPOINT |
http://localhost:4566 |
Floci emulator endpoint |
AWS credentials are always test / test / us-east-1.
Docker
docker build -t floci-sdk-awscli .
docker run --rm --network host floci-sdk-awscli
# Custom endpoint (macOS/Windows)
docker run --rm -e FLOCI_ENDPOINT=http://host.docker.internal:4566 floci-sdk-awscli