Skip to content

Commit

Permalink
Update base-service.ts
Browse files Browse the repository at this point in the history
Allows for custom Service Discovery creation, for example, creating Record A and SRV at the same time.
  • Loading branch information
codephi authored Aug 27, 2024
1 parent cc75ded commit d709194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-ecs/lib/base/base-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@ export abstract class BaseService extends Resource
/**
* Associate Service Discovery (Cloud Map) service
*/
private addServiceRegistry(registry: ServiceRegistry) {
public addServiceRegistry(registry: ServiceRegistry) {
if (this.serviceRegistries.length >= 1) {
throw new Error('Cannot associate with the given service discovery registry. ECS supports at most one service registry per service.');
}
Expand Down

0 comments on commit d709194

Please sign in to comment.