Skip to content

Instantly share code, notes, and snippets.

@hassaku63
Created December 29, 2020 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hassaku63/f7b2bd7674b85293b0d140d269ca8ff9 to your computer and use it in GitHub Desktop.
Save hassaku63/f7b2bd7674b85293b0d140d269ca8ff9 to your computer and use it in GitHub Desktop.
AWS Cloud Map sample template
AWSTemplateFormatVersion: "2010-09-09"
Description: The AWS CloudFormation template for this Serverless application
Resources:
# Application resource
MyQueue:
Type: AWS::SQS::Queue
Properties:
Tags:
- Key: Name
Value: discoverly-test-queue
# Cloud Map
HttpNapempace:
Type: AWS::ServiceDiscovery::HttpNamespace
Properties:
Name: test-http-namespace
Service:
Type: AWS::ServiceDiscovery::Service
Properties:
Name: queue-service
NamespaceId: !Ref HttpNapempace
DiscoverlyInstance:
Type: AWS::ServiceDiscovery::Instance
Properties:
InstanceAttributes:
Env: dev
QueueUrl: !Ref MyQueue
InstanceId: my-queue
ServiceId: !Ref Service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment