Amazon Web Services - How To Enable VPC Access For AWS CodeBuild - Code Pipeline - Stack Overflow
Amazon Web Services - How To Enable VPC Access For AWS CodeBuild - Code Pipeline - Stack Overflow
- Stack Overflow
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?
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
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.
You can assign a managed policy to your role the following are available
1. NeptuneReadOnlyAccess
2. NeptuneFullAccess
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
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