floci-io/floci · error · AwsException

ApplicationAlreadyExistsException

ApplicationAlreadyExistsException

Error message

Application already exists:  " + name

What it means

Error "Application already exists: " + name" thrown in floci-io/floci.

Source

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

                cfg.setMinimumHealthyHosts(Map.of("type", "HOST_COUNT", "value", 1));
            }
        }
        return cfg;
    }

    private int extractMinutes(String name) {
        // e.g. "…Every1Minute" -> 1, "…5Minutes" -> 5
        java.util.regex.Matcher m = java.util.regex.Pattern.compile("(\\d+)Minute").matcher(name);
        return m.find() ? Integer.parseInt(m.group(1)) : 1;
    }

    // ---- Applications ----

    public Application createApplication(String region, String name, String computePlatform,
                                          List<Map<String, String>> tags) {
        Map<String, Application> store = applicationsFor(region);
        if (store.containsKey(name)) {
            throw new AwsException("ApplicationAlreadyExistsException",
                    "Application already exists: " + name, 400);
        }
        Application app = new Application();
        app.setApplicationId(UUID.randomUUID().toString());
        app.setApplicationName(name);
        app.setCreateTime(Instant.now().toEpochMilli() / 1000.0);
        app.setLinkedToGitHub(false);
        app.setComputePlatform(computePlatform != null ? computePlatform : "Server");
        store.put(name, app);
        persistRegion(applications, region);

        if (tags != null && !tags.isEmpty()) {
            String arn = applicationArn(region, name);
            applyTags(arn, tags);
        }
        return app;
    }

View on GitHub (pinned to 62ff490619)

Solutions

  1. Choose a different application name or delete the existing application first.

When it happens

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

Common situations: Occurs when creating a CodeDeploy application with a name that already exists. Choose a unique application name or reuse the existing application.


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