mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
* fix(rds): populate MasterUserSecret for Aurora clusters with ManageMasterUserPassword CreateDBCluster ignored ManageMasterUserPassword, so aws_rds_cluster with manage_master_user_password=true always returned an empty master_user_secret, breaking any Terraform reference to master_user_secret[0]. The instance path already generates the managed secret; the cluster path never parsed the option. Mirror the instance behavior on the cluster path: - CreateDBCluster / ModifyDBCluster parse ManageMasterUserPassword and MasterUserSecretKmsKeyId and generate a Secrets Manager secret (rds!<clusterResourceId>, OwningService=rds, tagged aws:rds:primaryDBClusterArn) - DescribeDBClusters and the other cluster responses render <MasterUserSecret> - ModifyDBCluster enables the secret on demand and removes it when the option is turned off with a caller-supplied password - DeleteDBCluster deletes the managed secret - Startup ownership backfill also covers persisted clusters Closes #3061 * fix(rds): roll back cluster managed secret on failed create and honor KMS re-key Addresses review feedback on the cluster managed-master-user-password path: - doCreateDbCluster now deletes the just-created managed secret if proxy startup or persistence fails afterwards. The cluster is never stored in that case, so DeleteDBCluster could not otherwise reach the orphaned secret. - ModifyDBCluster with MasterUserSecretKmsKeyId on a cluster that already has a managed secret re-keys the existing secret via updateSecret instead of silently dropping the request.
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