Questions tagged [vpc]

A Virtual Private Cloud (VPC) is an on demand configurable pool of shared computing resources allocated within a public cloud environment, providing certain level of isolation between the different organizations (denoted as users hereafter) using the resources. Please note that this tag is exclusively for programming questions.

655 questions
4
votes
3 answers

How to pass CIDR range for subnets using cidrsubnets to VPC module in Terraform Version 0.14

Terraform cidrsubnets gives me the following subnets which is what I want. Terraform Version I am using: Terraform v0.14.9 > cidrsubnets("172.16.0.0/18", 6, 6, 6, 6) tolist([ "172.16.0.0/24", "172.16.1.0/24", "172.16.2.0/24", …
Jwary
  • 137
  • 2
  • 16
4
votes
3 answers

Error creating VPC: UnauthorizedOperation

I am trying to create VPC by using terraform, I am using IAM user's secrate and access key for authentication. But when trying to create VPC it is throwing "Error creating VPC: UnauthorizedOperation: You are not authorized to perform this operation.…
4
votes
1 answer

What is the GCP equivalent of AWS Client VPN Endpoint

We are moving from AWS to the GCP. I used Client VPN Endpoint in AWS to get into the VPC network in the AWS. What is the alternative in GCP which I can quickly setup and get my laptop into the VPC network? If there is no exact alternative, what's…
4
votes
2 answers

Postgresql - Error Connection terminated due to connection timeout

I have created a google cloud function in google cloud which will connect to my postgresql instance created in Google cloud. I am using 'pg' node module. I have create a private IP for this. I am getting following error: Error: Connection…
Rekha
  • 59
  • 1
  • 7
4
votes
2 answers

How would I setup kuberentes ingress to for VPN-only access?

I've got a Kubernetes cluster with nginx ingress setup for public endpoints. That works great, but I have one service that I don't want to expose to the public, but I do want to expose to people who have vpc access via vpn. The people who will need…
ZECTBynmo
  • 3,197
  • 3
  • 25
  • 42
4
votes
2 answers

Invoke Private API Gateway Without Host/x-apigw-api-id Headers

I have a private API Gateway stage with an associated VPC endpoint, and I have already followed the instructions here: https://aws.amazon.com/premiumsupport/knowledge-center/api-gateway-vpc-connections/ on how to connect to my API from inside the…
Zarka
  • 58
  • 1
  • 6
4
votes
2 answers

Google Cloud Multiple Static IP Addresses

I am developing a platform which requires a VPN with a static IP, which will be routing data to a VPC. I would also like to have this VPC with a static external IP address, where I could develop my backend and frontend service. So, I end up with a…
Mike
  • 421
  • 5
  • 16
4
votes
2 answers

Elastic Beanstalk: Migrate DB Security Group to VPC Security Group

When trying to deploy my application, I recently got the following error: ERROR: Service:AmazonCloudFormation, Message:Stack named 'awseb-e-123-stack' aborted operation. Current state: 'UPDATE_ROLLBACK_IN_PROGRESS' Reason: The following resource(s)…
4
votes
2 answers

Connect to Google Cloud SQL via VPC?

I'm having two Projects in GCP with Cloud SQL & GKE Project A -> Cloud SQL Project B -> GKE Cluster Now I want to access Cloud SQL from GKE Cluster for which I have two options. 1. IPv4 address to connect 2. Clous SQL Proxy as sidecar But…
Siva
  • 7,780
  • 6
  • 47
  • 54
4
votes
1 answer

Terraform assigning elastic IPs to auto scaling group instances

I've just been using Terraform for a few days now and looking for guidance. I have two subnets under a vpc (private, public). What I'm trying to do is assign elastic IPs to each instance that the auto scaling group creates, or remove the elastic IP…
Greg Miller
  • 1,064
  • 13
  • 22
4
votes
2 answers

Do I need to define huge VPC subnets in order to run many Lambda functions in parallel?

I read that each AWS Lambda invocation gets it's own private IP (when running in VPC). Does this mean that if I want 50,000 Lambdas running in parallel I need it to run in a VPC subnet with 50,000 available private IPs?
Amir Mehler
  • 4,140
  • 3
  • 27
  • 36
4
votes
1 answer

Connecting from K8S pod in GKE to a VM internal IP on Google Cloud Platform

We have a requirement to connect from a POD in GKE to service running on a VM on it's internal IP address. The K8s cluster and the VM are on different network so we setup VPC Peering between these nets: As how to point to an external IP, we…
4
votes
1 answer

Single internet gateway to multiple VPC

1) Is it possible to attach single internet gateway to multiple VPC in AWS? what are the advantages or disadvantages of doing this? By default an internet gateway is created with a vpc attached it in AWS. I am trying to understand if can attach the…
ineyaz
  • 61
  • 1
  • 3
4
votes
2 answers

AWS: Why does an Internet Gateway perform NAT?

An Internet gateway serves two purposes: to provide a target in your VPC route tables for Internet-routable traffic, and to perform network address translation (NAT) for instances that have been assigned public IPv4 addresses. Source:…
yangmillstheory
  • 1,055
  • 13
  • 31
4
votes
3 answers

AWS lambda function can't reach the internet

I am running a lambda function that I would like to access both a private database server and the internet. I can reach the database just fine, but I am not able to reach the internet. The setup: VPC (10.0.0.0/16) Public-Subnet (10.0.0.0/24) …
Jay
  • 2,861
  • 3
  • 29
  • 51