Skip to content

ecs service discovery: should the namespace be tied to the cluster? #3898

@bgdnlp

Description

@bgdnlp

❓ 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

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-ecsRelated to Amazon Elastic ContainerguidanceQuestion that needs advice or information.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions