Skip to content

Commit 0c55bb5

Browse files
committed
Dual stack ECS Client
1 parent 3b93dd3 commit 0c55bb5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

agent/app/agent.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,9 @@ func (agent *ecsAgent) start() int {
328328

329329
// Exclusion of IPv6 port bindings is controlled by configuration for historical reasons.
330330
ecsclient.WithIPv6PortBindingExcluded(agent.cfg.ShouldExcludeIPv6PortBinding.Enabled()),
331+
332+
// If instance is IPv6-only then we must use dualstack ECS endpoints
333+
ecsclient.WithDualStackEnabled(agent.cfg.InstanceIPCompatibility.IsIPv6Only()),
331334
}
332335

333336
clientFactory := ecsclient.NewECSClientFactory(agent.credentialsCache, cfgAccessor, agent.ec2MetadataClient,

0 commit comments

Comments
 (0)