Skip to content

Commit 7dd5e61

Browse files
committed
chore(docs): update readme(add description, example, license)
1 parent 06a374d commit 7dd5e61

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,29 @@
11
# AWS CodeConnections Host Custom Resource
2+
3+
This AWS CDK Construct provides a custom resource (Lambda Function) to create a connection host for Self-Managed GitLab, which is not yet supported by CloudFormation. Additionally, even after creating the Host and the connection, authentication must be done via a browser.
4+
5+
6+
## Example
7+
8+
```typescript
9+
import { RDSDatabaseAutoRunningStopStack } from '@gammarers/aws-codeconnections-host-custom-resource';
10+
11+
const codeConnectionsHostCustomResource = new CodeConnectionsHostCustomResource(this, 'CodeConnectionsHost', {
12+
name: 'gitlab.example.com', // required, connection host name (Minimum length of 1. Maximum length of 64.)
13+
providerEndpoint: 'https://gitlab.example.com', // required, your provider endpoint (Minimum length of 1. Maximum length of 512.)
14+
providerType: 'GitLabSelfManaged', // required, Bitbucket | GitHub | GitHubEnterpriseServer | GitLab | GitLabSelfManaged
15+
});
16+
17+
// get host arn
18+
const hostArn = codeConnectionsHostCustomResource.getResponseField('HostArn');
19+
20+
new codeconnections.CfnConnection(this, 'Connection', {
21+
connectionName: 'example-gitlab-connection',
22+
hostArn,
23+
});
24+
25+
```
26+
27+
## License
28+
29+
This project is licensed under the Apache-2.0 License.

0 commit comments

Comments
 (0)