-
Notifications
You must be signed in to change notification settings - Fork 4.5k
ecs service discovery: should the namespace be tied to the cluster? #3898
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-ecsRelated to Amazon Elastic ContainerRelated to Amazon Elastic ContainerguidanceQuestion that needs advice or information.Question that needs advice or information.
Description
❓ General Issue
The Question
When using aws_ecs.FargateService() and aws_ecs.Ec2Service() it is possible to pass cloud_map_options (Python) to the method to create a new service for service discovery. The namespace for Cloud Map seems to be tied to the ECS cluster, instead of the ECS service. Which is surprising, because it's a requirement that is only enforced by the CDK.
Is that intended? Because it could interfere with existing tools/infrastructure/policies. For example, a company could use one cluster per team/department, but a team might be allowed to use different namespaces.
Environment
- CDK CLI Version: 1.6.1
- Module Version: 1.6.1
- OS: all
- Language: all
Other information
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-ecsRelated to Amazon Elastic ContainerRelated to Amazon Elastic ContainerguidanceQuestion that needs advice or information.Question that needs advice or information.