mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
DeleteStack swallowed every resource-deletion failure and always reported DELETE_COMPLETE. Deleting a stack that owned a non-empty AWS::S3::Bucket therefore "succeeded" while the bucket and its objects were left behind, which diverges from AWS (S3 refuses to delete a non-empty bucket, so the stack must end in DELETE_FAILED). - CloudFormationResourceProvisioner#delete no longer wraps resource deletion in a catch-all; failures propagate to the stack-level handler. The lenient *Safe helpers and the intentional KMS key no-op are preserved. - CloudFormationService#deleteStackResources now records per-resource failures: the resource is marked DELETE_FAILED with a reason and event, remaining resources are still attempted, and the stack settles into DELETE_FAILED (retaining the stack and its exports) instead of being reported as deleted. Resources left in DELETE_FAILED are re-attempted on a subsequent delete, matching AWS retry behavior. This corrects the same silent-success deviation for every managed resource type, not just S3 buckets. Adds a Java integration regression test and AWS CLI compatibility tests covering both the non-empty (DELETE_FAILED) and empty (DELETE_COMPLETE) bucket cases. Fixes #1539
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