aws / aws/aws-sdk-java-v2

Not allowed to configure Weight parameter for CNAME created by CloudMap

Open
#6,754 1 comment 0 reactions 0 assignees View on GitHub
feature-request service-api
Dominant language
Java
Stars
2.6k
Forks
1k
Avg merge
2d 9h
Merged PRs (30d)
51

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.