Skip to content

Not allowed to configure Weight parameter for CNAME created by CloudMap #6754

@fcappi

Description

@fcappi

Describe the bug

  1. Create CloudMap namespace, service and service instances. Make sure you choose option to allow service discovery via DNS queries and to register instances as CNAME
  2. Go to route53 and try to update weight property of CNAME records, so you can control how much traffic goes to each instance.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

You should be able to update weight property for CNAMEs created by cloud map

Current Behavior

Update fails with message:

Error occurred
Please try again later.
(The resource hostedzone/**** can only be managed through AWS Cloud Map (arn:aws:servicediscovery:eu-west-2::namespace/ns-))

And there is no option to configure weight on cloud map

Reproduction Steps

  1. Create CloudMap namespace, service and service instances. Make sure you choose option to allow service discovery via DNS queries and to register instances as CNAME
  2. Go to route53 and try to update weight property of CNAME records, so you can control how much traffic goes to each instance.

Possible Solution

Add new attribute on service instance to configure weight for CNAME (Example: AWS_CNAME_WEIGHT)

https://docs.aws.amazon.com/cloud-map/latest/api/API_Instance.html

Additional Information/Context

No response

AWS Java SDK version used

any

JDK version used

any

Operating System and version

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.service-apiThis issue is due to a problem in a service API, not the SDK implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions