Files
floci/src/main/java/io/github/hectorvent
yoyo 675d5a33d0 Feat/cfn auto physical name generation (#163)
* refactor(cfn): add stackName param and generatePhysicalName utility

Add stackName parameter to provision() method signature and pass it
from CloudFormationService.executeTemplate(). Add generatePhysicalName
helper that generates AWS-like names: {stackName}-{logicalId}-{suffix}.

No resource naming behavior changed yet — this commit only introduces
the infrastructure for the next step.

* feat(cfn): use generatePhysicalName for all unnamed resources

Replace cfn-xxx random fallback names with AWS-like naming pattern
{stackName}-{logicalId}-{suffix} for 12 resource types:

- S3 Bucket (lowercase, max 63)
- SQS Queue (max 80)
- SNS Topic (max 256)
- DynamoDB Table/GlobalTable (max 255)
- Lambda Function (max 64)
- IAM Role (max 64), User (max 64), Policy (max 128),
  ManagedPolicy (max 128), InstanceProfile (max 128)
- SSM Parameter (path-based: /cfn/{stackName}/{logicalId})
- SecretsManager Secret (max 512)
- ECR Repository (lowercase, max 256)
2026-04-01 16:17:52 -05:00
..