Skip to content

Commit

Permalink
Merge pull request #6 from smallcase/feat/network-array
Browse files Browse the repository at this point in the history
feat: changed readme
  • Loading branch information
gagan1510 authored Feb 17, 2022
2 parents e0ca3ad + 64d0849 commit 2e9cc9b
Showing 1 changed file with 28 additions and 23 deletions.
51 changes: 28 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,45 +14,52 @@ import { App } from '@aws-cdk/core';
export class UnknownAPIStackDev extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
new MicroService(stack, 'UnknownAPI', {
appName: 'UnknownAPI',
env: 'development',
new MicroService(this, 'test', {
appName: 'test',
env: 'prod',
asgMaxSize: '1',
asgMinSize: '1',
diskSize: 20,
instanceLabels: [
{
key: 'NODE-VERSION',
key: 'SUDOERS_GROUPS_TAG',
propagateAtLaunch: true,
value: '12',
},
{
key: 'TYPE',
propagateAtLaunch: true,
value: 'application',
value: 'Developers',
},
],
instanceType: 't3.micro',
vpc: 'vpc-1234567',
port: 8000,
protocol: 'HTTP',
healthCheckPath: '/health',
subnets: ['subnet-987654321', 'subnet-12345678'],
role: {
type: 'existing',
roleArn: 'arn:aws:iam::123456789233:instance-profile/API-DEV',
},
sshKey: 'master-dev',
subnets: ['subnet-12345678', 'subnet-123456789'],
tcpRules: [
{
sourceSG: 'sg-12345678',
description: 'ssh rule',
port: 22,
},
{
sourceSG: 'sg-987654321',
description: 'from load balancer',
port: 8000,
},
],
networkProps: [
{
healthCheckPath: '/health',
host: 'abc-test-123.smallcase.com',
lbArn: 'arn:aws:elasticloadbalancing:ap-south-1:123456789233:loadbalancer/app/API-DEV-External',
sslEnabled: false,
port: 8000,
protocol: 'HTTP',
zoneName: 'smallcase.com',
zoneId: '1234567891011'
},
],
host: 'abc-test-123.smallcase.com',
lbArn: 'arn:aws:elasticloadbalancing:ap-south-1:12345678910:loadbalancer/app/API-DEV-External',
sslEnabled: false,
sshKey: 'master-dev',
createCodedeployApplication: true,
role: {
type: 'new',
},
});
}
}
Expand Down Expand Up @@ -149,5 +156,3 @@ Deploy using
```
~ -> cdk deploy
```

PS: Because of an [aws-cdk issue](https://github.com/aws/aws-cdk/issues/6803), creating a Route 53 record from existing load balancer is not possible using cdk.

0 comments on commit 2e9cc9b

Please sign in to comment.