Skip to content

Instantly share code, notes, and snippets.

@eulersson
Created February 20, 2019 00:06
Show Gist options
  • Save eulersson/b7c5dac552a420e2cabdacdb99eac67a to your computer and use it in GitHub Desktop.
Save eulersson/b7c5dac552a420e2cabdacdb99eac67a to your computer and use it in GitHub Desktop.
LocalNamespace:
Type: AWS::ServiceDiscovery::PrivateDnsNamespace
Properties:
Vpc: !Ref VPC
Name: local
NginxLocalDiscoveryService:
Type: AWS::ServiceDiscovery::Service
Properties:
Name: ecsfs-nginx
HealthCheckCustomConfig:
FailureThreshold: 1
DnsConfig:
DnsRecords:
- Type: A
TTL: 60
NamespaceId: !GetAtt LocalNamespace.Id
BackendLocalDiscoveryService:
Type: AWS::ServiceDiscovery::Service
Properties:
Name: ecsfs-backend
HealthCheckCustomConfig:
FailureThreshold: 1
DnsConfig:
DnsRecords:
- Type: A
TTL: 60
NamespaceId: !GetAtt LocalNamespace.Id
FrontendLocalDiscoveryService:
Type: AWS::ServiceDiscovery::Service
Properties:
Name: ecsfs-frontend
HealthCheckCustomConfig:
FailureThreshold: 1
DnsConfig:
DnsRecords:
- Type: A
TTL: 60
NamespaceId: !GetAtt LocalNamespace.Id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment