Class CmsServiceTopologyConfiguration

java.lang.Object
com.cloudforgeci.api.core.topology.CmsServiceTopologyConfiguration
All Implemented Interfaces:
BaseConfiguration, TopologyConfiguration

public final class CmsServiceTopologyConfiguration extends Object implements TopologyConfiguration
CMS-specific topology that auto-wires infrastructure from CmsSpec capabilities.

Unlike the generic ApplicationServiceTopologyConfiguration, this topology reads the CMS plugin's declared capabilities and conditionally provisions:

  • S3 media bucket — when CmsSpec.supportsS3MediaStorage() == true
  • ElastiCache Redis — when CmsSpec.supportsObjectCache() == true and preferredCacheBackend() == "redis"
  • CloudFront CDN — when CmsSpec.supportsCdnIntegration() == true and either a custom domain or S3 media bucket is present
  • Route53 DNS records — when a hosted zone and ALB are available
  • ECS/EC2 auto-scaling — when min/max capacity is configured

cdk.json example

{
  "context": {
    "cfc": {
      "topology": "cms-service",
      "applicationId": "wordpress",
      "runtime": "fargate",
      "env": "prod",
      "domain": "example.com",
      "subdomain": "blog",
      "enableSsl": true,
      "authMode": "alb-oidc"
    }
  }
}
Since:
3.1.0
See Also: