-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1d7629
commit 15e8dcc
Showing
19 changed files
with
3,146 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...ting/framework-integ/test/aws-ecs-patterns/test/ec2/integ.queue-processing-ecs-service.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import * as path from 'path'; | ||
import * as ec2 from 'aws-cdk-lib/aws-ec2'; | ||
import * as ecs from 'aws-cdk-lib/aws-ecs'; | ||
import { App, Stack } from 'aws-cdk-lib'; | ||
import * as integ from '@aws-cdk/integ-tests-alpha'; | ||
import { QueueProcessingEc2Service } from 'aws-cdk-lib/aws-ecs-patterns'; | ||
|
||
const app = new App(); | ||
const stack = new Stack(app, 'aws-ecs-patterns-queue'); | ||
|
||
const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); | ||
const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); | ||
cluster.addCapacity('DefaultAutoScalingGroup', { instanceType: new ec2.InstanceType('t2.micro') }); | ||
|
||
new QueueProcessingEc2Service(stack, 'QueueProcessingService', { | ||
cluster, | ||
image: new ecs.AssetImage(path.join(__dirname, '..', 'sqs-reader')), | ||
memoryReservationMiB: 512, | ||
}); | ||
|
||
new integ.IntegTest(app, 'queueProcessingFargateServiceTest', { | ||
testCases: [stack], | ||
}); | ||
|
||
app.synth(); |
19 changes: 19 additions & 0 deletions
19
...est/aws-ecs/test/integ.cluster-with-iam-statement.js.snapshot/aws-ecs-cluster.assets.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.