@gammarers/aws-codeconnections-host-custom-resource
Project description
AWS CodeConnections Host Custom Resource
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.
Install
TypeScript
install by npm
npm install @gammarers/aws-codeconnections-host-custom-resource
install by yarn
yarn add @gammarers/aws-codeconnections-host-custom-resource
Python
install by pip
pip install gammarers.aws-budgets-notification
Example
import { CodeConnectionsHostCustomResource, CodeConnectionsHostProviderType } from '@gammarers/aws-codeconnections-host-custom-resource';
const codeConnectionsHostCustomResource = new CodeConnectionsHostCustomResource(this, 'CodeConnectionsHost', {
name: 'gitlab.example.com', // required, connection host name (Minimum length of 1. Maximum length of 64.)
providerEndpoint: 'https://gitlab.example.com', // required, your provider endpoint (Minimum length of 1. Maximum length of 512.)
providerType: CodeConnectionsHostProviderType.GIT_LAB_SELF_MANAGED,
});
// get host arn
const hostArn = gitLabSelfManagedConnectionHostCustomResource.findHostArn();
new codeconnections.CfnConnection(this, 'Connection', {
connectionName: 'example-gitlab-connection',
hostArn,
});
How to complete (Update a pending connection)
Deploy completed after being configured in EXAMPLE. At this point, the status is ‘Pending’ as shown below because authentication has not yet been completed.
Select the ‘Connection’ you have created to display the Connection detail screen.
You will see the ‘Pending’ status as follows. Select ‘Update pending connection’.
A screen to enter the Provide personal access token (pat) will be displayed; the pat should be created in the target host environment (only api should be enabled). Enter the pat and select ‘Continue’.
The host authorisation screen will appear as shown below, select ‘Authorise’ (the screen will pop up).
If you have not logged in, a login screen will be displayed, please log in.
When completed, the status will change to ‘Available’ as follows. This completes all Connection settings.
License
This project is licensed under the Apache-2.0 License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gammarers_aws_codeconnections_host_custom_resource-0.5.0.tar.gz
.
File metadata
- Download URL: gammarers_aws_codeconnections_host_custom_resource-0.5.0.tar.gz
- Upload date:
- Size: 413.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39d76af69fe19e378590ebf24d8b8810798001b7886547fd5e91c2d5616909f3 |
|
MD5 | 3f5989ad7b387b059648834d22468afe |
|
BLAKE2b-256 | b62ae3e4e4a35a0fc8f26041f9cfbeb7ba697210e79eb1496edfca6e517e912d |
File details
Details for the file gammarers.aws_codeconnections_host_custom_resource-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: gammarers.aws_codeconnections_host_custom_resource-0.5.0-py3-none-any.whl
- Upload date:
- Size: 412.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acf1b40600cf87b1b7614e2bcc0f4e3725c6fe3b9b9b84853b7e8271a782a932 |
|
MD5 | b9af966f67e16130009751a8e2550a4b |
|
BLAKE2b-256 | 21a80de51cfe57487fcaaa5c7a5cac4e1133a11b33a6d1c00257936713f3e8ab |