Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to internal enterprise host (Github entreprise) #7121

Open
embaya opened this issue Jun 1, 2024 · 1 comment
Open

Access to internal enterprise host (Github entreprise) #7121

embaya opened this issue Jun 1, 2024 · 1 comment
Labels
blocked/more-info-needed More info is needed from the requester. If no response in 14 days, it will become stale.

Comments

@embaya
Copy link

embaya commented Jun 1, 2024

Description

I try to call github enterprise with my application (in Go) with SAM local, but I get a timeout (the code runs fine without SAM).I suspect a network access problem, so I tried adding a VpcConfig (SubnetIds and SecurityGroupIds) in the template but it didn't change anything. I also tried running my command like this (sam local invoke --profile=dev --region=eu-west-3 --docker-network host), but still the same problem.
I connected to the container to call my github and I have the problem. Knowing that I have no problems with other images

Any ideas

Template

AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Globals:
  Function:
    Timeout: 5

Resources:
  GithubTokenFunction:
    Type: AWS::Serverless::Function
    Metadata:
      BuildMethod: makefile
    Properties:
      CodeUri: .
      Handler: generate_github_token
      Runtime: go1.x
      Timeout: 45
      Architectures:
        - x86_64

Environment

SAM CLI, version 1.118.0
Archlinux

@embaya embaya added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Jun 1, 2024
@hnnasit
Copy link
Contributor

hnnasit commented Jun 6, 2024

Hi @embaya, thanks for reporting the issue. Are you able to provide the lambda function code and steps to reproduce the behavior? Trying to replicate the behavior to see what's happening.

@hnnasit hnnasit added blocked/more-info-needed More info is needed from the requester. If no response in 14 days, it will become stale. and removed stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/more-info-needed More info is needed from the requester. If no response in 14 days, it will become stale.
Projects
None yet
Development

No branches or pull requests

2 participants