Skip to main content

AWS CodeConnections Host Custom Resource

GitHub npm (scoped) GitHub Workflow Status (branch) GitHub release (latest SemVer)

View on Construct Hub

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.

CodeConnection Setup 01

Select the ‘Connection’ you have created to display the Connection detail screen.

CodeConnection Setup 02

You will see the ‘Pending’ status as follows. Select ‘Update pending connection’.

CodeConnection Setup 03

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’.

CodeConnection Setup 04

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.

CodeConnection Setup 05

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.

Metadata

Release files for gammarers.aws-codeconnections-host-custom-resource 0.8.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gammarers.aws-codeconnections-host-custom-resource 0.8.9
File Size Uploaded Provenance Actions
gammarers_aws_codeconnections_host_custom_resource-0.8.9.tar.gz 414.0 kB Without provenance Details for gammarers_aws_codeconnections_host_custom_resource-0.8.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gammarers.aws-codeconnections-host-custom-resource 0.8.9
File Interpreter ABI Platform Actions
gammarers_aws_codeconnections_host_custom_resource-0.8.9-py3-none-any.whl Python 3 none any Details for gammarers_aws_codeconnections_host_custom_resource-0.8.9-py3-none-any.whl

Total release size: 827.0 kB

Release files / gammarers_aws_codeconnections_host_custom_resource-0.8.9.tar.gz

Download URL gammarers_aws_codeconnections_host_custom_resource-0.8.9.tar.gz
Size 414.0 kB
Tags Source
SHA-256 checksum
How to use checksums
573bb9b6fa39851d7f4cf84bbcc49eab887dad2b7c3dceda9e4c0bf9d2bfb677
BLAKE2b-256 checksum
How to use checksums
36876e802fa757d9b12edca88efd2caff97b6d93b01b39111d281a09ece4a51d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.14.0

Release files / gammarers_aws_codeconnections_host_custom_resource-0.8.9-py3-none-any.whl

Download URL gammarers_aws_codeconnections_host_custom_resource-0.8.9-py3-none-any.whl
Size 413.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e73765cfe86e22a1a0039daede1ace0ed1fc8ef0d0afafaee7d00cdceb8424ab
BLAKE2b-256 checksum
How to use checksums
b6c8623f4161f234b45695921d8fe42ef152d76e61a9c025cf6e060742bc3f09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.14.0

Security for gammarers.aws-codeconnections-host-custom-resource 0.8.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.9 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page