Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(codebuild): Lambda compute for codebuild projects #27934

Merged
merged 29 commits into from
Dec 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
35ae34a
feat(codebuild): add lambda compute support
sakurai-ryo Nov 10, 2023
6b8fe84
feat(codebuild): for Lambda compute, change imagePullPrincipalType to…
sakurai-ryo Nov 10, 2023
3557354
feat(codebuild): add integration test
sakurai-ryo Nov 10, 2023
6fca0bf
Merge branch 'master' of https://github.com/sakurai-ryo/aws-cdk into …
sakurai-ryo Nov 10, 2023
4a1cc22
feat(codebuild): add integration test for arm lambda image
sakurai-ryo Nov 10, 2023
2c28108
feat(codebuild): removed extra whitespace.
sakurai-ryo Nov 10, 2023
f2a7a08
feat(codebuild): removed extra whitespace.
sakurai-ryo Nov 10, 2023
f7e433e
feat(codebuild): removed extra whitespace
sakurai-ryo Nov 10, 2023
50f59e3
feat(codebuild): fix for the review
sakurai-ryo Nov 13, 2023
b9e81a4
feat(codebuild): remove comment
sakurai-ryo Nov 13, 2023
c5e140a
feat(codebuild): fix for the review
sakurai-ryo Nov 13, 2023
fdae4be
feat(codebuild): fix comment
sakurai-ryo Nov 13, 2023
1c0fc9b
feat(codebuild): fixed
sakurai-ryo Nov 14, 2023
4cc8c38
feat(codebuild): fixed for the review
sakurai-ryo Nov 14, 2023
3cbfdee
feat(codebuild): fixed for the review
sakurai-ryo Nov 15, 2023
526027c
feat(codebuild): fix for the review
sakurai-ryo Nov 15, 2023
8a31341
feat(codebuild): fix build
sakurai-ryo Nov 15, 2023
260393e
feat(codebuild): fix tests
sakurai-ryo Nov 15, 2023
f2c19d8
feat(codebuild): fix integ tests
sakurai-ryo Nov 15, 2023
3360dee
feat(codebuild): fixed for the review
sakurai-ryo Nov 17, 2023
23c299e
feat(codebuild): fixed integ-tests
sakurai-ryo Nov 17, 2023
41cff9b
Merge branch 'master' of https://github.com/sakurai-ryo/aws-cdk into …
sakurai-ryo Nov 17, 2023
031f50a
Merge branch 'master' of https://github.com/sakurai-ryo/aws-cdk into …
sakurai-ryo Dec 6, 2023
6be4824
Merge branch 'master' of https://github.com/sakurai-ryo/aws-cdk into …
sakurai-ryo Dec 14, 2023
dee315f
feat(codebuild): fix for the review
sakurai-ryo Dec 14, 2023
55f0270
Merge branch 'master' of https://github.com/sakurai-ryo/aws-cdk into …
sakurai-ryo Dec 21, 2023
aeb5a73
fix for the review
sakurai-ryo Dec 21, 2023
a96385e
add: assertion
sakurai-ryo Dec 21, 2023
8118619
Merge branch 'main' into add-lambda-compute-suport
mergify[bot] Dec 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
{
"Resources": {
"MyProjectRole9BBE5233": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "codebuild.amazonaws.com"
}
}
],
"Version": "2012-10-17"
}
}
},
"MyProjectRoleDefaultPolicyB19B7C29": {
"Type": "AWS::IAM::Policy",
"Properties": {
"PolicyDocument": {
"Statement": [
{
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Effect": "Allow",
"Resource": [
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":logs:",
{
"Ref": "AWS::Region"
},
":",
{
"Ref": "AWS::AccountId"
},
":log-group:/aws/codebuild/",
{
"Ref": "MyProject39F7B0AE"
},
":*"
]
]
},
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":logs:",
{
"Ref": "AWS::Region"
},
":",
{
"Ref": "AWS::AccountId"
},
":log-group:/aws/codebuild/",
{
"Ref": "MyProject39F7B0AE"
}
]
]
}
]
},
{
"Action": [
"codebuild:BatchPutCodeCoverages",
"codebuild:BatchPutTestCases",
"codebuild:CreateReport",
"codebuild:CreateReportGroup",
"codebuild:UpdateReport"
],
"Effect": "Allow",
"Resource": {
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":codebuild:",
{
"Ref": "AWS::Region"
},
":",
{
"Ref": "AWS::AccountId"
},
":report-group/",
{
"Ref": "MyProject39F7B0AE"
},
"-*"
]
]
}
}
],
"Version": "2012-10-17"
},
"PolicyName": "MyProjectRoleDefaultPolicyB19B7C29",
"Roles": [
{
"Ref": "MyProjectRole9BBE5233"
}
]
}
},
"MyProject39F7B0AE": {
"Type": "AWS::CodeBuild::Project",
"Properties": {
"Artifacts": {
"Type": "NO_ARTIFACTS"
},
"Cache": {
"Type": "NO_CACHE"
},
"EncryptionKey": "alias/aws/s3",
"Environment": {
"ComputeType": "BUILD_LAMBDA_1GB",
"Image": "aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs18",
"PrivilegedMode": false,
"Type": "ARM_LAMBDA_CONTAINER"
},
"ServiceRole": {
"Fn::GetAtt": [
"MyProjectRole9BBE5233",
"Arn"
]
},
"Source": {
"BuildSpec": "{\n \"version\": \"0.2\",\n \"phases\": {\n \"build\": {\n \"commands\": [\n \"ls\"\n ]\n }\n }\n}",
"Type": "NO_SOURCE"
}
}
}
},
"Outputs": {
"ExportsOutputRefMyProject39F7B0AE1CE3CA42": {
"Value": {
"Ref": "MyProject39F7B0AE"
},
"Export": {
"Name": "codebuild-project-linux-arm-lambda:ExportsOutputRefMyProject39F7B0AE1CE3CA42"
}
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading