Skip to content

Commit

Permalink
infrastructure stack
Browse files Browse the repository at this point in the history
  • Loading branch information
edo92 committed Jan 3, 2022
1 parent 115bb39 commit 65bca0c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions lib/stack/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import * as config from "@config";
import * as cdk from "@aws-cdk/core";
import { Resources } from "@pattern/Resources";
import { EcsService } from "@pattern/EcsService";

export class Infrastructure extends cdk.Stack {
constructor(scope: cdk.Construct, id: string) {
super(scope, id);

/**
*
* Base Resources
*/
const resources = new Resources(this, "Base-Resources");

/**
*
* Ecs Service
*/
new EcsService(this, "Ecs-Service", {
vpc: resources.vpc,
elb: resources.loadBalancer,
names: config.resource_names,
});
}
}

0 comments on commit 65bca0c

Please sign in to comment.