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): attribute-based compute type for Fleet #32251

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
4bd1584
feat: attribute based compute type
badmintoncryer Nov 20, 2024
83f2140
compute configuration
badmintoncryer Nov 22, 2024
211d820
add integ test
badmintoncryer Nov 22, 2024
605fd16
add unit test
badmintoncryer Nov 22, 2024
8ee1d1c
update readme
badmintoncryer Nov 22, 2024
4ed820d
Merge branch 'main' into compute-config
badmintoncryer Nov 22, 2024
47d1de2
Update README.md
badmintoncryer Nov 22, 2024
c8f21ef
fix readme
badmintoncryer Nov 22, 2024
b895761
Merge branch 'main' into compute-config
badmintoncryer Nov 23, 2024
decf3a3
Merge branch 'main' into compute-config
badmintoncryer Nov 23, 2024
52b4ef6
Merge branch 'main' into compute-config
badmintoncryer Nov 26, 2024
1359119
Merge branch 'main' into compute-config
badmintoncryer Nov 27, 2024
8d1bead
Merge branch 'main' into compute-config
badmintoncryer Dec 2, 2024
d978959
Merge branch 'main' into compute-config
badmintoncryer Dec 5, 2024
382571d
Merge branch 'main' into compute-config
badmintoncryer Dec 18, 2024
fffcf47
Merge branch 'main' into compute-config
badmintoncryer Dec 18, 2024
43b9bfa
Update packages/aws-cdk-lib/aws-codebuild/README.md
badmintoncryer Dec 20, 2024
14842cc
Update packages/aws-cdk-lib/aws-codebuild/README.md
badmintoncryer Dec 20, 2024
1679302
update compute type
badmintoncryer Dec 22, 2024
06080d5
set default value
badmintoncryer Dec 22, 2024
483bedb
update test
badmintoncryer Dec 22, 2024
cc122af
Merge branch 'main' into compute-config
badmintoncryer Dec 22, 2024
83da08e
fix attribute based compute
badmintoncryer Dec 23, 2024
30f86e7
Merge branch 'main' into compute-config
badmintoncryer Dec 23, 2024
222731b
Merge remote-tracking branch 'origin/main' into compute-config
badmintoncryer Dec 27, 2024
629680b
update
badmintoncryer Dec 27, 2024
6c45f77
fix unit test
badmintoncryer Dec 27, 2024
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

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,235 @@
{
"Resources": {
"MyFleet1E628396": {
"Type": "AWS::CodeBuild::Fleet",
"Properties": {
"BaseCapacity": 1,
"ComputeConfiguration": {
"disk": 10,
"machineType": "GENERAL",
"memory": 4,
"vCpu": 2
},
"ComputeType": "ATTRIBUTE_BASED_COMPUTE",
"EnvironmentType": "LINUX_CONTAINER",
"Name": "MyFleet"
}
},
"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_GENERAL1_SMALL",
"Fleet": {
"FleetArn": {
"Fn::GetAtt": [
"MyFleet1E628396",
"Arn"
]
}
},
"Image": "aws/codebuild/standard:7.0",
"ImagePullCredentialsType": "CODEBUILD",
"PrivilegedMode": false,
"Type": "LINUX_CONTAINER"
},
"ServiceRole": {
"Fn::GetAtt": [
"MyProjectRole9BBE5233",
"Arn"
]
},
"Source": {
"BuildSpec": "{\n \"version\": \"0.2\",\n \"phases\": {\n \"build\": {\n \"commands\": [\n \"echo \\\"Nothing to do!\\\"\"\n ]\n }\n }\n}",
"Type": "NO_SOURCE"
}
}
}
},
"Outputs": {
"ExportsOutputFnGetAttMyFleet1E628396Arn64216BDA": {
"Value": {
"Fn::GetAtt": [
"MyFleet1E628396",
"Arn"
]
},
"Export": {
"Name": "AttributeBasedComputeFleetIntegStack:ExportsOutputFnGetAttMyFleet1E628396Arn64216BDA"
}
},
"ExportsOutputRefMyProject39F7B0AE1CE3CA42": {
"Value": {
"Ref": "MyProject39F7B0AE"
},
"Export": {
"Name": "AttributeBasedComputeFleetIntegStack: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.

Loading
Loading