Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c6e2091

Browse files
initial commit
1 parent 21c1413 commit c6e2091

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+9930
-6
lines changed

‎README.md

Lines changed: 963 additions & 6 deletions
Large diffs are not rendered by default.

‎cdk.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"app": "npx ts-node --prefer-ts-exts infra/app-main",
3+
"context": {
4+
"@aws-cdk/aws-ecr-assets:dockerIgnoreSupport": true,
5+
"@aws-cdk/aws-rds:lowercaseDbIdentifier": true
6+
}
7+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
def handle(event, context):
3+
print('event--->', event)
4+
5+
print('stage', event['detail']['stage'])
6+
print('action', event['detail']['action'])
7+
print('state', event['detail']['state'])
8+
9+
return 'ok'
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"version": "0",
3+
"id": "a88c9e57-54d0-56da-f578-c9267dce6ca0",
4+
"detail-type": "CodePipeline Action Execution State Change",
5+
"source": "aws.codepipeline",
6+
"account": "***********",
7+
"time": "2022年03月19日T16:44:21Z",
8+
"region": "ap-northeast-2",
9+
"resources": [
10+
"arn:aws:codepipeline:ap-northeast-2:***********:LiveProtoDev-AllStackDeploy"
11+
],
12+
"detail": {
13+
"pipeline": "LiveProtoDev-AllStackDeploy",
14+
"execution-id": "b00f02d1-09ea-4afb-a7af-9359d305397b",
15+
"stage": "DevDeployStage2",
16+
"action": "ChannelBackend",
17+
"input-artifacts": [
18+
{
19+
"name": "SourceOutput",
20+
"s3location": {
21+
"bucket": "liveprotodev-maincicdpip-simplepipelinecicdpipeli-15ripklll31ac",
22+
"key": "LiveProtoDev-AllStac/SourceOutp/vvsz3Pz"
23+
}
24+
}
25+
],
26+
"state": "STARTED",
27+
"region": "ap-northeast-2",
28+
"type": {
29+
"owner": "AWS",
30+
"provider": "CodeBuild",
31+
"category": "Build",
32+
"version": "1"
33+
},
34+
"version": 5.0
35+
}
36+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"version": "0",
3+
"id": "e75f110d-13c2-5780-d29b-6822d4ad4598",
4+
"detail-type": "CodePipeline Action Execution State Change",
5+
"source": "aws.codepipeline",
6+
"account": "***********",
7+
"time": "2022年03月19日T16:47:28Z",
8+
"region": "ap-northeast-2",
9+
"resources": [
10+
"arn:aws:codepipeline:ap-northeast-2:***********:LiveProtoDev-AllStackDeploy"
11+
],
12+
"detail": {
13+
"pipeline": "LiveProtoDev-AllStackDeploy",
14+
"execution-id": "b00f02d1-09ea-4afb-a7af-9359d305397b",
15+
"stage": "DevDeployStage2",
16+
"execution-result": {
17+
"external-execution-url": "https://console.aws.amazon.com/codebuild/home?region=ap-northeast-2#/builds/SimplePipelineChannelBacken-4HYYzMl5gpfh:9776da58-f174-4e8d-9d35-02eb49d3a5f8/view/new",
18+
"external-execution-id": "SimplePipelineChannelBacken-4HYYzMl5gpfh:9776da58-f174-4e8d-9d35-02eb49d3a5f8"
19+
},
20+
"output-artifacts": [
21+
{
22+
"name": "ChannelBackendBuildOutput",
23+
"s3location": {
24+
"bucket": "liveprotodev-maincicdpip-simplepipelinecicdpipeli-15ripklll31ac",
25+
"key": "LiveProtoDev-AllStac/ChannelBac/e6b3vDU"
26+
}
27+
}
28+
],
29+
"action": "ChannelBackend",
30+
"state": "SUCCEEDED",
31+
"region": "ap-northeast-2",
32+
"type": {
33+
"owner": "AWS",
34+
"provider": "CodeBuild",
35+
"category": "Build",
36+
"version": "1"
37+
},
38+
"version": 5.0
39+
}
40+
}

‎config/app-config-sample1.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"Project": {
3+
"Name": "Pipeline",
4+
"Stage": "Sample1",
5+
"Account": "75157*******",
6+
"Region": "us-east-2",
7+
"Profile": "cdk-demo"
8+
},
9+
10+
"Stack": {
11+
"Approach1Pipeline": {
12+
"Name": "Approach1PipelineStack"
13+
},
14+
"Approach2Pipeline": {
15+
"Name": "Approach2PipelineStack"
16+
},
17+
"Approach3Pipeline": {
18+
"Name": "Approach3PipelineStack",
19+
20+
"PipelineName": "Approach3Pipeline",
21+
22+
"ActionFlow": [
23+
{
24+
"Name": "GitClone",
25+
"Stage": "SourceStage",
26+
"Kind": "SourceCodeCommit",
27+
"Enable": true,
28+
29+
"Detail": {
30+
"RepositoryName": "sample-repo",
31+
"BranchName": "release_cicd"
32+
}
33+
},
34+
{
35+
"Name": "DeployAllStacks",
36+
"Stage": "DevDeployStage",
37+
"Kind": "BuildCodeBuild",
38+
"Enable": true,
39+
"Detail": {
40+
"AppConfigFile": "config/app-config-sample1.json",
41+
"BuildDeployStacks": {
42+
"StackNameList": ["Sample1Service1Stack"]
43+
}
44+
}
45+
}
46+
]
47+
},
48+
"Sample1Service1": {
49+
"Name": "Sample1Service1Stack"
50+
}
51+
}
52+
}

‎config/app-config-sample2.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"Project": {
3+
"Name": "Pipeline",
4+
"Stage": "Sample2",
5+
"Account": "75157*******",
6+
"Region": "us-east-2",
7+
"Profile": "cdk-demo"
8+
},
9+
10+
"Stack": {
11+
"Sample2Service1": {
12+
"Name": "Sample2Service1Stack"
13+
},
14+
"Sample2Service2": {
15+
"Name": "Sample2Service2Stack"
16+
},
17+
"Sample2Service3": {
18+
"Name": "Sample2Service3Stack"
19+
},
20+
"Sample2Pipeline": {
21+
"Name": "Sample2PipelineStack"
22+
}
23+
}
24+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"Project": {
3+
"Name": "HelloWorld",
4+
"Stage": "Prod",
5+
"Account": "91708*******",
6+
"Region": "ap-northeast-2",
7+
"Profile": "cdk-demo"
8+
},
9+
10+
"Stack": {
11+
"Sample3Service1": {
12+
"Name": "Sample3Service1Stack"
13+
}
14+
}
15+
}

‎config/app-config-sample3-prod.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"Project": {
3+
"Name": "HelloWorld",
4+
"Stage": "Prod",
5+
"Account": "75157*******",
6+
"Region": "ap-northeast-2",
7+
"Profile": "cdk-demo"
8+
},
9+
10+
"Stack": {
11+
"Sample3Service1": {
12+
"Name": "Sample3Service1Stack"
13+
}
14+
}
15+
}

‎config/app-config-sample3-test.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"Project": {
3+
"Name": "HelloWorld",
4+
"Stage": "Test",
5+
"Account": "75157*******",
6+
"Region": "us-east-2",
7+
"Profile": "cdk-demo"
8+
},
9+
10+
"Stack": {
11+
"Sample3Service1": {
12+
"Name": "Sample3Service1Stack"
13+
}
14+
}
15+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /