@@ -27,7 +27,7 @@ import * as codebuild from 'aws-cdk-lib/aws-codebuild';
27
27
const amplifyApp = new amplify .App (this , ' MyApp' , {
28
28
sourceCodeProvider: new amplify .GitHubSourceCodeProvider ({
29
29
owner: ' <github-username>' ,
30
- repository: ' <repository-name>' ,
30
+ repository: ' <repository-name>' , // Just the repository name, NOT the full repository URL
31
31
accessToken: SecretValue .secretsManager (' my-github-token' ),
32
32
}),
33
33
buildSpec: codebuild .BuildSpec .fromObjectToYaml ({
@@ -62,7 +62,7 @@ To connect your `App` to GitLab, use the `GitLabSourceCodeProvider`:
62
62
const amplifyApp = new amplify .App (this , ' MyApp' , {
63
63
sourceCodeProvider: new amplify .GitLabSourceCodeProvider ({
64
64
owner: ' <gitlab-namespace-or-group>' ,
65
- repository: ' <repository-name>' ,
65
+ repository: ' <repository-name>' , // Just the repository name, NOT the full repository URL
66
66
oauthToken: SecretValue .secretsManager (' my-gitlab-token' ),
67
67
}),
68
68
});
@@ -159,7 +159,7 @@ Use `BasicAuth.fromCredentials` when referencing an existing secret:
159
159
const amplifyApp = new amplify .App (this , ' MyApp' , {
160
160
sourceCodeProvider: new amplify .GitHubSourceCodeProvider ({
161
161
owner: ' <github-username>' ,
162
- repository: ' <repository-name>' , // Just the repository name, NOT the full URL
162
+ repository: ' <repository-name>' , // Just the repository name, NOT the full repository URL
163
163
accessToken: SecretValue .secretsManager (' my-github-token' ),
164
164
}),
165
165
basicAuth: amplify .BasicAuth .fromCredentials (' username' , SecretValue .secretsManager (' my-github-token' )),
@@ -171,8 +171,8 @@ Use `BasicAuth.fromGeneratedPassword` to generate a password in Secrets Manager:
171
171
``` ts
172
172
const amplifyApp = new amplify .App (this , ' MyApp' , {
173
173
sourceCodeProvider: new amplify .GitHubSourceCodeProvider ({
174
- owner: ' <user >' ,
175
- repository: ' <repo >' ,
174
+ owner: ' <github-username >' ,
175
+ repository: ' <repository-name >' , // Just the repository name, NOT the full repository URL
176
176
oauthToken: SecretValue .secretsManager (' my-github-token' ),
177
177
}),
178
178
basicAuth: amplify .BasicAuth .fromGeneratedPassword (' username' ),
@@ -197,7 +197,7 @@ of branches:
197
197
const amplifyApp = new amplify .App (this , ' MyApp' , {
198
198
sourceCodeProvider: new amplify .GitHubSourceCodeProvider ({
199
199
owner: ' <github-username>' ,
200
- repository: ' <repository-name>' , // Just the repository name, NOT the full URL
200
+ repository: ' <repository-name>' , // Just the repository name, NOT the full repository URL
201
201
accessToken: SecretValue .secretsManager (' my-github-token' ),
202
202
}),
203
203
autoBranchCreation: { // Automatically connect branches that match a pattern set
@@ -214,8 +214,8 @@ Use the `customResponseHeaders` prop to configure custom response headers for an
214
214
``` ts
215
215
const amplifyApp = new amplify .App (this , ' App' , {
216
216
sourceCodeProvider: new amplify .GitHubSourceCodeProvider ({
217
- owner: ' <user >' ,
218
- repository: ' <repo >' ,
217
+ owner: ' <github-username >' ,
218
+ repository: ' <repository-name >' , // Just the repository name, NOT the full repository URL
219
219
oauthToken: SecretValue .secretsManager (' my-github-token' ),
220
220
}),
221
221
customResponseHeaders: [
0 commit comments