Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
77 views

Amazon Web Services - How To Enable VPC Access For AWS CodeBuild - Code Pipeline - Stack Overflow

1. The document is a Stack Overflow post asking how to enable VPC access for AWS CodeBuild/Code Pipeline projects so that tests can access resources like a Neptune database within a VPC. 2. The top response recommends configuring the CodeBuild project's environment to use subnets and security groups that provide access to the necessary resources like Neptune within the VPC. 3. Another response notes that the IAM role used by CodeBuild also needs permissions to access the Neptune database, like using an AWS managed policy.

Uploaded by

futuregm2400
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views

Amazon Web Services - How To Enable VPC Access For AWS CodeBuild - Code Pipeline - Stack Overflow

1. The document is a Stack Overflow post asking how to enable VPC access for AWS CodeBuild/Code Pipeline projects so that tests can access resources like a Neptune database within a VPC. 2. The top response recommends configuring the CodeBuild project's environment to use subnets and security groups that provide access to the necessary resources like Neptune within the VPC. 3. Another response notes that the IAM role used by CodeBuild also needs permissions to access the Neptune database, like using an AWS managed policy.

Uploaded by

futuregm2400
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

4/13/22, 12:02 PM amazon web services - How to enable VPC access for AWS CodeBuild/Code Pipeline?

- Stack Overflow

How to enable VPC access for AWS CodeBuild/Code Pipeline?


Asked
11 months ago Modified
10 months ago Viewed
969 times

How to enable VPC access for AWS CodeBuild/Code Pipeline ?

2 I am working on the Neptune database and it requires VPC to access. While building code inside
AWS CodeBuild . My tests are failing because it's not able to access the Neptune database. How can
I configure the pipeline to allow CodeBuild to access the VPC?

amazon-web-services aws-lambda aws-codepipeline aws-codebuild aws-devops

Share Improve this question Follow edited Jun 1, 2021 at 0:30 asked May 15, 2021 at 11:03
krystan honour Thirumal
6,234 3 33 63 5,269 7 39 74

Did you ever find an answer to this? I've placed my build in the correct VPC and ensured that the related
SGs allow 8182, but my tests are still unable to connect to Neptune.
– JTW
Jan 11 at 17:26

No, I am testing it locally and commit.


–  Thirumal
Jan 12 at 7:04

please post what your tests look like and how they execute
– krystan honour
Jan 14 at 11:18

Sorted by:
3 Answers
Highest score (default)

This AWS Documentation guide will help you to configure your Code Build Project with your VPC.

3 But I am sure, you must have gone through it. Please share the error as well.

Link

Share Improve this answer Follow answered May 15, 2021 at 12:46
bhavuk bhardwaj
205 1 7

Select environments from your CodeBuild project settings and in the advanced setting section you
can select VPC, subnet and security group for your project.
3
For Subnets,
Subnet choose a private subnet that has routes to your db. If internet access required, NAT
Join Stack must be
Overflow
gateway to attached in the
find the best routetotable
answer your of privatequestion,
technical subnet
subnet. CodeBuild
help othersonly works with Nat not
Sign up
answerwith
theirs.
public subnet for internet access.
https://stackoverflow.com/questions/67546002/how-to-enable-vpc-access-for-aws-codebuild-code-pipeline 1/2
4/13/22, 12:02 PM amazon web services - How to enable VPC access for AWS CodeBuild/Code Pipeline? - Stack Overflow

Share Improve this answer Follow edited Jun 4, 2021 at 14:38 answered May 15, 2021 at 13:25
Jyothish Kumar S
user 767 1 5 16

Be sure you have enabled AWS IAM authentication on your Neptune database config. You then
need to allow the role you are running CodeBuild under to access that Neptune database. you will
1 then be able to access it. Assuming it is an IAM error, please post more information if this is not
the case. You will need to ensure the role you run as has the correct permissions to query
Neptune.

There are detailed documents here on how to do this.

You can assign a managed policy to your role the following are available

1. NeptuneReadOnlyAccess

2. NeptuneFullAccess

3. NuptuneConsoleFullAccess <-- not really applicable to a CI process.

Share Improve this answer Follow edited Jun 1, 2021 at 0:54 answered Jun 1, 2021 at 0:48
krystan honour
6,234 3 33 63

This provides Neptune API access - not Neptune graph access.


– JTW
Jan 12 at 19:33

Join Stack Overflow to find the best answer to your technical question, help others
Sign up
answer theirs.

https://stackoverflow.com/questions/67546002/how-to-enable-vpc-access-for-aws-codebuild-code-pipeline 2/2

You might also like