Created
December 29, 2020 18:02
-
-
Save hassaku63/f7b2bd7674b85293b0d140d269ca8ff9 to your computer and use it in GitHub Desktop.
AWS Cloud Map sample template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
see also