This package has been deprecated

Author message:

AWS CDK v1 has reached End-of-Support on 2023-06-01. This package is no longer being updated, and users should migrate to AWS CDK v2. For more information on how to migrate, see https://docs.aws.amazon.com/cdk/v2/guide/migrating-v2.html

@aws-cdk/aws-servicediscovery
TypeScript icon, indicating that this package has built-in type declarations

1.204.0 • Public • Published

Amazon ECS Service Discovery Construct Library


End-of-Support

AWS CDK v1 has reached End-of-Support on 2023-06-01. This package is no longer being updated, and users should migrate to AWS CDK v2.

For more information on how to migrate, see the Migrating to AWS CDK v2 guide.


This module is part of the AWS Cloud Development Kit project.

This package contains constructs for working with AWS Cloud Map

AWS Cloud Map is a fully managed service that you can use to create and maintain a map of the backend services and resources that your applications depend on.

For further information on AWS Cloud Map, see the AWS Cloud Map documentation

HTTP Namespace Example

The following example creates an AWS Cloud Map namespace that supports API calls, creates a service in that namespace, and registers an instance to it:

Creating a Cloud Map service within an HTTP namespace

Private DNS Namespace Example

The following example creates an AWS Cloud Map namespace that supports both API calls and DNS queries within a vpc, creates a service in that namespace, and registers a loadbalancer as an instance:

Creating a Cloud Map service within a Private DNS namespace

Public DNS Namespace Example

The following example creates an AWS Cloud Map namespace that supports both API calls and public DNS queries, creates a service in that namespace, and registers an IP instance:

Creating a Cloud Map service within a Public namespace

For DNS namespaces, you can also register instances to services with CNAME records:

Creating a Cloud Map service within a Public namespace

Package Sidebar

Install

npm i @aws-cdk/aws-servicediscovery

Weekly Downloads

35,751

Version

1.204.0

License

Apache-2.0

Unpacked Size

1.04 MB

Total Files

32

Last publish

Collaborators

  • amzn-oss
  • aws-cdk-team