File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -635,6 +635,17 @@ var TerraformPluginSDKExternalNameConfigs = map[string]config.ExternalName{
635635 // No import
636636 "aws_codecommit_trigger" : config .IdentifierFromProvider ,
637637
638+ // codebuild
639+ //
640+ // CodeBuild Projects can be imported using the name
641+ "aws_codebuild_project" : config .NameAsIdentifier ,
642+ // CodeBuild Report Groups can be imported using the name
643+ "aws_codebuild_report_group" : config .NameAsIdentifier ,
644+ // CodeBuild Source Credentials can be imported using the arn
645+ "aws_codebuild_source_credential" : config .IdentifierFromProvider ,
646+ // CodeBuild Webhooks can be imported using the project name
647+ "aws_codebuild_webhook" : config .ParameterAsIdentifier ("project_name" ),
648+
638649 // codepipeline
639650 //
640651 // CodePipelines can be imported using the name
Original file line number Diff line number Diff line change 182182"aws_codecommit_approval_rule_template_association",
183183"aws_codecommit_repository",
184184"aws_codecommit_trigger",
185+ "aws_codebuild_project",
186+ "aws_codebuild_report_group",
187+ "aws_codebuild_source_credential",
188+ "aws_codebuild_webhook",
185189"aws_codedeploy_app",
186190"aws_codedeploy_deployment_config",
187191"aws_codedeploy_deployment_group",
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+ #
3+ # SPDX-License-Identifier: CC0-1.0
4+
5+ apiVersion : iam.aws.upbound.io/v1beta1
6+ kind : Role
7+ metadata :
8+ name : example-codebuild-role
9+ labels :
10+ testing.upbound.io/example-name : example-codebuild-project
11+ spec :
12+ forProvider :
13+ assumeRolePolicy : |
14+ {
15+ "Version": "2012-10-17",
16+ "Statement": [
17+ {
18+ "Effect": "Allow",
19+ "Principal": {
20+ "Service": "codebuild.amazonaws.com"
21+ },
22+ "Action": "sts:AssumeRole"
23+ }
24+ ]
25+ }
26+ ---
27+ apiVersion : iam.aws.upbound.io/v1beta1
28+ kind : RolePolicy
29+ metadata :
30+ name : example-codebuild-policy
31+ labels :
32+ testing.upbound.io/example-name : example-codebuild-project
33+ spec :
34+ forProvider :
35+ policy : |
36+ {
37+ "Version": "2012-10-17",
38+ "Statement": [
39+ {
40+ "Effect": "Allow",
41+ "Resource": ["*"],
42+ "Action": [
43+ "logs:CreateLogGroup",
44+ "logs:CreateLogStream",
45+ "logs:PutLogEvents"
46+ ]
47+ }
48+ ]
49+ }
50+ region : us-west-1
51+ roleSelector :
52+ matchLabels :
53+ testing.upbound.io/example-name : example-codebuild-project
54+ ---
55+ apiVersion : codebuild.aws.upbound.io/v1beta1
56+ kind : Project
57+ metadata :
58+ name : example
59+ annotations :
60+ meta.upbound.io/example-id : codebuild/v1beta1/project
61+ labels :
62+ testing.upbound.io/example-name : example-codebuild-project
63+ spec :
64+ forProvider :
65+ region : us-west-1
66+ name : example-project
67+ description : Example CodeBuild Project
68+ serviceRoleSelector :
69+ matchLabels :
70+ testing.upbound.io/example-name : example-codebuild-project
71+ artifacts :
72+ - type : NO_ARTIFACTS
73+ environment :
74+ - computeType : BUILD_GENERAL1_SMALL
75+ image : aws/codebuild/standard:5.0
76+ type : LINUX_CONTAINER
77+ source :
78+ - type : NO_SOURCE
79+ buildspec : |
80+ version: 0.2
81+ phases:
82+ build:
83+ commands:
84+ - echo "Hello, World!"
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+ #
3+ # SPDX-License-Identifier: CC0-1.0
4+
5+ apiVersion : s3.aws.upbound.io/v1beta1
6+ kind : Bucket
7+ metadata :
8+ name : example-codebuild-reports
9+ labels :
10+ testing.upbound.io/example-name : example-codebuild-reportgroup
11+ spec :
12+ forProvider :
13+ region : us-west-1
14+ ---
15+ apiVersion : codebuild.aws.upbound.io/v1beta1
16+ kind : ReportGroup
17+ metadata :
18+ name : example
19+ annotations :
20+ meta.upbound.io/example-id : codebuild/v1beta1/reportgroup
21+ labels :
22+ testing.upbound.io/example-name : example-codebuild-reportgroup
23+ spec :
24+ forProvider :
25+ region : us-west-1
26+ name : example-report-group
27+ type : TEST
28+ exportConfig :
29+ - type : S3
30+ s3Destination :
31+ - bucketSelector :
32+ matchLabels :
33+ testing.upbound.io/example-name : example-codebuild-reportgroup
34+ encryptionDisabled : false
35+ packaging : NONE
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+ #
3+ # SPDX-License-Identifier: CC0-1.0
4+
5+ apiVersion : codebuild.aws.upbound.io/v1beta1
6+ kind : SourceCredential
7+ metadata :
8+ name : example
9+ annotations :
10+ meta.upbound.io/example-id : codebuild/v1beta1/sourcecredential
11+ labels :
12+ testing.upbound.io/example-name : example-codebuild-sourcecredential
13+ spec :
14+ forProvider :
15+ region : us-west-1
16+ authType : PERSONAL_ACCESS_TOKEN
17+ serverType : GITHUB
18+ tokenSecretRef :
19+ key : token
20+ name : github-token
21+ namespace : upbound-system
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+ #
3+ # SPDX-License-Identifier: CC0-1.0
4+
5+ apiVersion : iam.aws.upbound.io/v1beta1
6+ kind : Role
7+ metadata :
8+ name : example-webhook-role
9+ labels :
10+ testing.upbound.io/example-name : example-codebuild-webhook
11+ spec :
12+ forProvider :
13+ assumeRolePolicy : |
14+ {
15+ "Version": "2012-10-17",
16+ "Statement": [
17+ {
18+ "Effect": "Allow",
19+ "Principal": {
20+ "Service": "codebuild.amazonaws.com"
21+ },
22+ "Action": "sts:AssumeRole"
23+ }
24+ ]
25+ }
26+ ---
27+ apiVersion : codebuild.aws.upbound.io/v1beta1
28+ kind : Project
29+ metadata :
30+ name : example-webhook-project
31+ labels :
32+ testing.upbound.io/example-name : example-codebuild-webhook
33+ spec :
34+ forProvider :
35+ region : us-west-1
36+ name : example-webhook-project
37+ serviceRoleSelector :
38+ matchLabels :
39+ testing.upbound.io/example-name : example-codebuild-webhook
40+ artifacts :
41+ - type : NO_ARTIFACTS
42+ environment :
43+ - computeType : BUILD_GENERAL1_SMALL
44+ image : aws/codebuild/standard:5.0
45+ type : LINUX_CONTAINER
46+ source :
47+ - type : GITHUB
48+ location : https://github.com/example/example-repo.git
49+ ---
50+ apiVersion : codebuild.aws.upbound.io/v1beta1
51+ kind : Webhook
52+ metadata :
53+ name : example
54+ annotations :
55+ meta.upbound.io/example-id : codebuild/v1beta1/webhook
56+ labels :
57+ testing.upbound.io/example-name : example-codebuild-webhook
58+ spec :
59+ forProvider :
60+ region : us-west-1
61+ projectNameSelector :
62+ matchLabels :
63+ testing.upbound.io/example-name : example-codebuild-webhook
64+ filterGroup :
65+ - filter :
66+ - type : EVENT
67+ pattern : PUSH
68+ - type : HEAD_REF
69+ pattern : refs/heads/main
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+ #
3+ # SPDX-License-Identifier: CC0-1.0
4+
5+ apiVersion : iam.aws.m.upbound.io/v1beta1
6+ kind : Role
7+ metadata :
8+ name : example-codebuild-role
9+ labels :
10+ testing.upbound.io/example-name : example-codebuild-project
11+ spec :
12+ forProvider :
13+ assumeRolePolicy : |
14+ {
15+ "Version": "2012-10-17",
16+ "Statement": [
17+ {
18+ "Effect": "Allow",
19+ "Principal": {
20+ "Service": "codebuild.amazonaws.com"
21+ },
22+ "Action": "sts:AssumeRole"
23+ }
24+ ]
25+ }
26+ ---
27+ apiVersion : iam.aws.m.upbound.io/v1beta1
28+ kind : RolePolicy
29+ metadata :
30+ name : example-codebuild-policy
31+ labels :
32+ testing.upbound.io/example-name : example-codebuild-project
33+ spec :
34+ forProvider :
35+ policy : |
36+ {
37+ "Version": "2012-10-17",
38+ "Statement": [
39+ {
40+ "Effect": "Allow",
41+ "Resource": ["*"],
42+ "Action": [
43+ "logs:CreateLogGroup",
44+ "logs:CreateLogStream",
45+ "logs:PutLogEvents"
46+ ]
47+ }
48+ ]
49+ }
50+ region : us-west-1
51+ roleSelector :
52+ matchLabels :
53+ testing.upbound.io/example-name : example-codebuild-project
54+ ---
55+ apiVersion : codebuild.aws.m.upbound.io/v1beta1
56+ kind : Project
57+ metadata :
58+ name : example
59+ annotations :
60+ meta.upbound.io/example-id : codebuild/v1beta1/project
61+ labels :
62+ testing.upbound.io/example-name : example-codebuild-project
63+ spec :
64+ forProvider :
65+ region : us-west-1
66+ name : example-project
67+ description : Example CodeBuild Project
68+ serviceRoleSelector :
69+ matchLabels :
70+ testing.upbound.io/example-name : example-codebuild-project
71+ artifacts :
72+ - type : NO_ARTIFACTS
73+ environment :
74+ - computeType : BUILD_GENERAL1_SMALL
75+ image : aws/codebuild/standard:5.0
76+ type : LINUX_CONTAINER
77+ source :
78+ - type : NO_SOURCE
79+ buildspec : |
80+ version: 0.2
81+ phases:
82+ build:
83+ commands:
84+ - echo "Hello, World!"
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+ #
3+ # SPDX-License-Identifier: CC0-1.0
4+
5+ apiVersion : s3.aws.m.upbound.io/v1beta1
6+ kind : Bucket
7+ metadata :
8+ name : example-codebuild-reports
9+ labels :
10+ testing.upbound.io/example-name : example-codebuild-reportgroup
11+ spec :
12+ forProvider :
13+ region : us-west-1
14+ ---
15+ apiVersion : codebuild.aws.m.upbound.io/v1beta1
16+ kind : ReportGroup
17+ metadata :
18+ name : example
19+ annotations :
20+ meta.upbound.io/example-id : codebuild/v1beta1/reportgroup
21+ labels :
22+ testing.upbound.io/example-name : example-codebuild-reportgroup
23+ spec :
24+ forProvider :
25+ region : us-west-1
26+ name : example-report-group
27+ type : TEST
28+ exportConfig :
29+ - type : S3
30+ s3Destination :
31+ - bucketSelector :
32+ matchLabels :
33+ testing.upbound.io/example-name : example-codebuild-reportgroup
34+ encryptionDisabled : false
35+ packaging : NONE
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+ #
3+ # SPDX-License-Identifier: CC0-1.0
4+
5+ apiVersion : codebuild.aws.m.upbound.io/v1beta1
6+ kind : SourceCredential
7+ metadata :
8+ name : example
9+ annotations :
10+ meta.upbound.io/example-id : codebuild/v1beta1/sourcecredential
11+ labels :
12+ testing.upbound.io/example-name : example-codebuild-sourcecredential
13+ spec :
14+ forProvider :
15+ region : us-west-1
16+ authType : PERSONAL_ACCESS_TOKEN
17+ serverType : GITHUB
18+ tokenSecretRef :
19+ key : token
20+ name : github-token
21+ namespace : upbound-system
You can’t perform that action at this time.
0 commit comments