floci-io/floci · error · AwsException

DeploymentDoesNotExistException

DeploymentDoesNotExistException

Error message

Deployment does not exist: ${deploymentId}

What it means

Error "Deployment does not exist: ${deploymentId}" thrown in floci-io/floci.

Source

Thrown at src/main/java/io/github/hectorvent/floci/services/codedeploy/CodeDeployService.java:610

        targetMap.put("lambdaTarget", lambdaTargetMap);
        ConcurrentHashMap<String, Map<String, Object>> targets = new ConcurrentHashMap<>();
        targets.put(targetId, targetMap);
        deploymentTargetsFor(region).put(deploymentId, targets);

        AtomicBoolean stopFlag = new AtomicBoolean(false);
        stopFlags.put(deploymentId, stopFlag);

        String finalEffectiveConfig = effectiveConfig;
        Thread.ofVirtual().name("codedeploy-" + deploymentId).start(
                () -> runStateMachine(region, deployment, appSpec, lambdaTargetMap, stopFlag, finalEffectiveConfig));

        return deploymentId;
    }

    public Deployment getDeployment(String region, String deploymentId) {
        Deployment d = deploymentsFor(region).get(deploymentId);
        if (d == null) {
            throw new AwsException("DeploymentDoesNotExistException",
                    "Deployment does not exist: " + deploymentId, 400);
        }
        return d;
    }

    public List<String> listDeployments(String region, String appName, String groupName, List<String> statuses) {
        return deploymentsFor(region).values().stream()
                .filter(d -> appName == null || appName.equals(d.getApplicationName()))
                .filter(d -> groupName == null || groupName.equals(d.getDeploymentGroupName()))
                .filter(d -> statuses == null || statuses.isEmpty() || statuses.contains(d.getStatus()))
                .map(Deployment::getDeploymentId)
                .collect(Collectors.toList());
    }

    public Map<String, String> stopDeployment(String region, String deploymentId) {
        Deployment d = getDeployment(region, deploymentId);
        String status = d.getStatus();
        if ("Succeeded".equals(status) || "Failed".equals(status) || "Stopped".equals(status)) {

View on GitHub (pinned to 62ff490619)

Solutions

  1. Verify the deployment id; list deployments to find valid ids.

When it happens

Trigger: Thrown at src/main/java/io/github/hectorvent/floci/services/codedeploy/CodeDeployService.java:610 when the library encounters an invalid state.

Common situations: Occurs when querying or stopping a deployment id that does not exist. Verify the deployment id returned by CreateDeployment.


AI-assisted analysis of floci-io/floci@62ff490619 (2026-08-14). Data as JSON: /api/errors/a3143fea87bc4a92. Report an issue: GitHub.