Questions tagged [amazon-vpc]

Amazon Virtual Private Cloud (Amazon VPC) lets you provision a logically isolated section of the Amazon Web Services (AWS) Cloud where you can launch AWS resources in a virtual network that you define

Amazon Virtual Private Cloud (Amazon VPC) lets you provision a logically isolated section of the Amazon Web Services (AWS) Cloud where you can launch AWS resources in a virtual network that you define. For additional information, see:

724 questions
0
votes
1 answer

AWS - Accessing cross account and cross region resources in a secured manner

I'm trying to secure an ec2 instance using security groups to do the following VPC A (Account - A, Region - A) VPC B (Account - B, Region - B) I want an ec2 instance in VPC A to be able to access ecr repositories in VPC B over HTTPS. Since both…
0
votes
1 answer

How should I distribute my CIDR ranges for multiple environments?

I'm designing an architecture for a system (built on AWS) which will have multiple different production environments, in different zones. Initially I had thought that it would be a good idea to use 1 VPC per environment, with another Operations and…
mdarwin
  • 121
  • 7
0
votes
2 answers

AWS - NAT between several VPC

In AWS, I have several VPC. In each VPC, I have an EC2 instance, running a server. For the moment, each EC2 has an Elastic IP because my servers are dedicated for IoT, and our connected objects need a dedicated IP address, they cannot use DNS. And…
iAmoric
  • 121
  • 4
0
votes
1 answer

aws - can I configure ip allow rules for a specific endpoint

My Config is a single EC2 instance. I'm new to aws and inherited this architecture. We want to create an endpoint that will be accessible only from the office (specific IP). What is the best way to achieve that? is there a vpc / security group rule…
WebQube
  • 131
  • 5
0
votes
1 answer

My AWS VPN setup results in no traffic working when connecting

I crossposted this to stackoverflow here https://stackoverflow.com/questions/62585272/my-aws-vpn-setup-results-in-no-traffic-working-when-connecting in the hope of finding a solution... Apologies. I have created a VPN to our VPC but when I connect…
transient_loop
  • 459
  • 1
  • 4
  • 11
0
votes
1 answer

AWS: VPN between VPC and an external resource with IKEv2 and ESP

I need to set up a VPN tunnel between the VPC in AWS and an external server with content that I want to access securely. The idea is to use the Site-to-site VPN Connection with Virtual Private Gateway and a Customer Gateway. The tunnels are…
0
votes
2 answers

CIDR ipv4 allocation to subnet

I have my VPC configured with 10.0.0.0/16 CIDR. I want to create around 7-10 subnets in this VPC. On my calculation, I have decided to have 8 subnets where each subnet can host 8192 resources (8192*8=65536). As per my calculation, 2^13=8192.…
0
votes
1 answer

CIDR is not within the CIDR ranges of VPC

I have created a custom VPC with CIDR of 10.0.0.0/16. I want to create 2 subnets with 10.1.0.0/16 and 10.2.0.0/16. But I am unable to do. Getting error: CIDR is not within the CIDR ranges of VPC Why is that? In default CIDR of 172.31.0.0/16, we can…
0
votes
1 answer

EC2 Instance gateway change automatically

Some of my instances are deployed with code into its /etc/rc.local #!/bin/sh # Managed by puppet - do not modify /sbin/route del default /sbin/route add default gw 11.0.0.254 All works fine at the beginning but after a few minutes the gateway…
icalvete
  • 141
  • 9
0
votes
1 answer

Unable to connect to redis on amazon (same VPC different subnets)

I am trying to set up a Redis cluster using amazon's ElasticCache I have a VPC with the following CIDR: 10.0.0.0/16. Which has five subnets: 2 private - 10.0.3.0/24 and 10.0.1.0/24 3 public - 10.0.0.0/24 10.0.2.0/24 10.0.4.0/24 After the creation…
0
votes
1 answer

Routing to a simulated network running inside an AWS Instance

So, we're running a simulated network on a server in AWS and i'm trying to figure our how to enable routing to that simulated network both from inside AWS and from our remote offices. Our VPC CIDR is 10.10.0.0/18 The Simulated network is…
MCC
  • 1
0
votes
0 answers

Can't connect to a public accessible AWS RDS

I was running a serverless web application on a lambda inside a VPC, and connecting to a Aurora-MySQL RDS instance, with inbound rules to allow traffic from the security group of the lambda The connection was working fine, however, quite often the…
dfranca
  • 135
  • 8
0
votes
0 answers

How to securely connect two VPC without using Connection Peering

Suppose some services are running on EC2 instances on VPC A and other services are running on on-premise hardware or even other Cloud Computing environments, say Cluster B equipped with the public IP. We want to securely connect the VPC A instances…
0
votes
1 answer

Connect to active directory over peered VPC

I have a VPC(VPC1) where my main instances are running, and I have another one (VPC2)specifically for directory service (AD Connector) and a MS AD server running. I have created a VPC peering (which is Active) and all the route tables of these VPC's…
0
votes
1 answer

How to make AWS resolves domain name to internal IP

I have a VPC peering established with MongoDB Atlas, however when I try to resolve the database cluster's domain from within an EC2 instance in the same VPC, I get back the public IP. This is a problem because the whitelist can't contain any public…