Skip to content

io microsphere multiple active zone spring aws EcsTaskMetadataEndpointV4ZoneLocator

github-actions[bot] edited this page Jun 20, 2026 · 5 revisions

EcsTaskMetadataEndpointV4ZoneLocator

Type: Class | Module: microsphere-multiactive-aws | Package: io.microsphere.multiple.active.zone.spring.aws | Since: 1.0.0

Source: microsphere-multiactive-aws/src/main/java/io/microsphere/multiple/active/zone/spring/aws/EcsTaskMetadataEndpointV4ZoneLocator.java

Overview

The ZoneLocator based on Task metadata endpoint version 4.

The environment variable is injected by default into the containers of Amazon ECS tasks launched on Amazon EC2 Linux instances that are running at least version 1.39.0 of the Amazon ECS container agent. For Amazon EC2 Windows instances that use awsvpc network mode, the Amazon ECS container agent must be at least version 1.54.0

Declaration

public class EcsTaskMetadataEndpointV4ZoneLocator extends AbstractZoneLocator implements EnvironmentAware

Author: Mercy

Version Information

  • Introduced in: 1.0.0
  • Current Project Version: 0.2.7-SNAPSHOT

Version Compatibility

This component is tested and compatible with the following Java versions:

Java Version Status
Java 17 ✅ Compatible
Java 21 ✅ Compatible
Java 25 ✅ Compatible

Usage

Maven Dependency

Add the following dependency to your pom.xml:

<dependency>
    <groupId>io.github.microsphere-projects</groupId>
    <artifactId>microsphere-multiactive-aws</artifactId>
    <version>${microsphere-multiactive.version}</version>
</dependency>

Tip: Use the BOM (microsphere-multiactive-dependencies) for consistent version management. See the Getting Started guide.

Import

import io.microsphere.multiple.active.zone.spring.aws.EcsTaskMetadataEndpointV4ZoneLocator;

API Reference

Public Methods

Method Description
supports
locate
setEnvironment

See Also

  • ZoneLocator

This documentation was auto-generated from the source code of microsphere-multiactive.

Clone this wiki locally