/
cdk.EXAMPLE.json
135 lines (134 loc) · 3.92 KB
/
cdk.EXAMPLE.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"app": "npx ts-node --prefer-ts-exts bin/main.ts",
"watch": {
"include": ["**"],
"exclude": [
"README.md",
"cdk*.json",
"**/*.d.ts",
"**/*.js",
"tsconfig.json",
"package*.json",
"yarn.lock",
"node_modules",
"test"
]
},
"context": {
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
"@aws-cdk/core:checkSecretUsage": true,
"@aws-cdk/core:target-partitions": ["aws", "aws-cn"],
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
"@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,
"@aws-cdk/aws-iam:minimizePolicies": true,
"@aws-cdk/core:validateSnapshotRemovalPolicy": true,
"@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName": true,
"@aws-cdk/aws-s3:createDefaultLoggingPolicy": true,
"@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption": true,
"@aws-cdk/aws-apigateway:disableCloudWatchRole": true,
"@aws-cdk/core:enablePartitionLiterals": true,
"@aws-cdk/aws-events:eventsTargetQueueSameAccount": true,
"@aws-cdk/aws-iam:standardizedServicePrincipals": true,
"@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker": true,
"@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName": true,
"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true,
"@aws-cdk/aws-route53-patters:useCertificate": true,
"@aws-cdk/customresources:installLatestAwsSdkDefault": false,
"@aws-cdk/aws-rds:databaseProxyUniqueResourceName": true,
"@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup": true,
"@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId": true,
"@aws-cdk/aws-ec2:launchTemplateDefaultUserData": true,
"@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments": true,
"@aws-cdk/aws-redshift:columnId": true,
"service": "app",
"owner": "user",
"addresses": ["user@your-domain.com"],
"environment": "dev",
"repository": "test-repo",
"branch": "feature",
"resourceConfig": {
"apigateway": {
"stage": "default"
},
"lambda": {
"bucket": "lambda-packages",
"alias": "live",
"package": "function.zip"
},
"cloudfront": {
"singleHeaderConfig": {
"header": "aws-cf-cd-staging",
"value": true
},
"stagingDistributionCleanupEnabled": false
},
"codebuild": {
"localDir": "scripts/build"
}
},
"environments": [
{
"name": "dev",
"account": "000000000000",
"region": "ap-northeast-1",
"hostedZone": "dev.example.com",
"webAcl": "dummy-arn-1",
"isDev": true
},
{
"name": "stg",
"account": "111111111111",
"region": "ap-northeast-1",
"hostedZone": "stg.example.com",
"webAcl": "dummy-arn-2",
"isDev": false
},
{
"name": "prod",
"account": "222222222222",
"region": "ap-northeast-1",
"hostedZone": "example.com",
"webAcl": "dummy-arn-3",
"isDev": false
}
],
"pipelines": [
{
"name": "item1",
"path": "backend/item1",
"type": "backend"
},
{
"name": "item2",
"path": "backend/item2",
"type": "backend"
},
{
"name": "item1-v2",
"path": "backend-v2/item1",
"type": "backend"
},
{
"name": "item2-v2",
"path": "backend-v2/item1",
"type": "backend"
},
{
"name": "frontend",
"path": "frontend",
"type": "frontend"
}
],
"containers": [
{
"name": "sample",
"environment": "dev",
"repository": "ecr-repo/sample",
"imagePath": "src/image/sample-container",
"version": ["1.0.0"],
"tag": "1.0.0"
}
]
}
}