By default, you can access GitHub and GitLab from the studio workspace. If you are using a private Git repository, follow these steps:
- Create a Studio: You should use a VPC with private subnets that have a NAT gateway to enable communication with the internet.
- Ensure that the security group for the default workspace has an outbound rule allowing HTTPS traffic on port 443 to the destination 0.0.0.0/0
- Create VPC Endpoint:
Make sure the endpoint uses private subnets.
Confirm that the security group attached to the endpoint allows inbound rules for HTTPS traffic on port 443 with the source set to either "Your VPC Address" or "0.0.0.0/0".
Upload the following configuration file into your Amazon S3 storage location that is used for your Studio in a folder called life-cycle-configuration:
s3://BUCKET-NAME/life-cycle-configuration/configuration.json
GitServerDnsName - The DNS name of your Git server. For example "git.example.com".
GitServerIpV4List - A list of IPv4 addresses that belong to your Git servers, the example VPC CIDR is 10.0.0.0/16, DNS is 10.0.0.2
[
{
"Type": "PrivatelyHostedGitConfig",
"Value": [
{
"DnsServerIpV4": "10.0.0.2",
"GitServerDnsName": "git.example.com",
"GitServerIpV4List": [
"1.2.3.4"
]
}
]
}
]
"If you are facing issues, you may need to stop the workspace and start it again."
Top comments (0)