floci-io/floci · error · AwsException

DeploymentGroupAlreadyExistsException

DeploymentGroupAlreadyExistsException

Error message

Deployment group already exists:  " + groupName

What it means

Error "Deployment group already exists: " + groupName" thrown in floci-io/floci.

Source

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

                    if (a == null) {
                        throw new AwsException("ApplicationDoesNotExistException",
                                "Application does not exist: " + n, 400);
                    }
                    return a;
                })
                .collect(Collectors.toList());
    }

    // ---- Deployment Groups ----

    public DeploymentGroup createDeploymentGroup(String region, String appName, String groupName,
                                                  String deploymentConfigName, String serviceRoleArn,
                                                  Map<String, Object> fields) {
        getApplication(region, appName);
        Map<String, Map<String, DeploymentGroup>> appGroups = deploymentGroupsFor(region);
        Map<String, DeploymentGroup> groupStore = appGroups.computeIfAbsent(appName, a -> new ConcurrentHashMap<>());
        if (groupStore.containsKey(groupName)) {
            throw new AwsException("DeploymentGroupAlreadyExistsException",
                    "Deployment group already exists: " + groupName, 400);
        }

        DeploymentGroup group = new DeploymentGroup();
        group.setApplicationName(appName);
        group.setDeploymentGroupId(UUID.randomUUID().toString());
        group.setDeploymentGroupName(groupName);
        group.setDeploymentConfigName(deploymentConfigName != null ? deploymentConfigName : "CodeDeployDefault.OneAtATime");
        group.setServiceRoleArn(serviceRoleArn);
        applyGroupFields(group, fields);
        groupStore.put(groupName, group);
        persistRegion(deploymentGroups, region);
        return group;
    }

    public DeploymentGroup getDeploymentGroup(String region, String appName, String groupName) {
        getApplication(region, appName);
        Map<String, Map<String, DeploymentGroup>> appGroups = deploymentGroupsFor(region);

View on GitHub (pinned to 62ff490619)

Solutions

  1. Choose a different deployment group name or delete the existing group first.

When it happens

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

Common situations: Occurs when creating a deployment group whose name already exists in the application. Use a unique deployment group name.


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