amazon-vpc

EC2 instance has no public DNS

早过忘川 提交于 2019-11-28 15:13:51
A guy I work with gave me the EC2 credentials to log onto his EC2 console. I was not the one who set it up. Some of the instances show a public dns name and others have a blank public DNS. I want to be able to connect to the instances that have a blank public DNS. I have not been able to figure out why these show up as blank. Mat I had the same problem an solved it. Have a look at the step-by-step instructions: Go to console.aws.amazon.com Go To Services -> VPC Open Your VPCs select your VPC connected to your EC2 and select Actions => Edit DNS Hostnames ---> Change DNS hostnames: to YES Hope

AWS VPC - Internet Gateway vs. NAT [closed]

点点圈 提交于 2019-11-28 15:01:17
What is an Internet Gateway? What is a NAT Instance? What services do they offer? Reading AWS VPC documentation, I gather they both map private IP addresses to internet route-able addresses for the outgoing requests and route the incoming responses from the internet to the requester on the subnet. So what are the differences between them? What scenarios do I use a NAT Instance instead of (or besides) an Internet Gateway? Are they essentially EC2 instances running some network applications or are they special hardware like a router? Instead of simply pointing to AWS documentation links, can you

How to connect to outside world from amazon vpc?

℡╲_俬逩灬. 提交于 2019-11-28 13:27:59
问题 I have amazon VPC set through wizard as "public only network", so all my instances are in public subnet. Instances within VPC that have Elastic IP assigned connect to internet without any troubles. But instances without elastic IP can't connect anywhere. Internet gateway is present. Route table in aws console looks like Destination Target 10.0.0.0/16 local 0.0.0.0/0 igw-nnnnn and route from inside instance shows Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10

how is cluster IP in kubernetes-aws configured?

自作多情 提交于 2019-11-28 09:28:45
I am very new to kubernetes and have just got a stock kubernetes v.1.3.5 cluster up on AWS using kube-up. So far, I have been playing around with kubernetes in understanding it's mechanics (nodes, pods, svc and stuff). Based on my initial (or maybe crude) understanding , I had few questions: 1) How does routing to cluster IP work here (i.e in kube-aws) ? I see that the services have IPs in the range 10.0.0.0/16. I did a deployment with rc=3 of stock nginx and then attached a service to it with Node Port exposed. All works great! I can connect to the service from my dev machine. This nginx

Allow AWS Lambda to access RDS Database

爷,独闯天下 提交于 2019-11-28 05:24:57
I am trying to connect to RDS Database from an AWS Lambda (Java). Which IP should I enable from the RDS Security group rules? You can't enable this via IP. First you will need to enable VPC access for the Lambda function, during which you will assign it a Security Group. Then, within the Security Group assigned to the RDS instance you will enable access for the Security Group assigned to the Lambda function. You can configure Lambda to access your RDS instance. You can enable this using Lambda management console. Select Lambda function which need access to RDS instance and then go to

Connecting to Amazon RDS instance through EC2 instance using MySQL Workbench

前提是你 提交于 2019-11-28 04:23:26
In AWS I have a VPC set up with a Bastion Host. The bastion host is a single EC2 instance with a public address trough which you can SSH to any other server on the VPC. I have created an RDS MySQL instance within the VPC and I would like to connect to it using MySQL workbench. I have followed the steps detailed here , however in "Step 6: Setting up remote SSH Configuration", it asks me to "Provide the Public DNS of the Amazon EC2 instance" (i.e. the bastion host). MySQL workbench then does checks for certain MySQL resources on that server. However, this is not correct in my opinion as I have

How to assign EIP to Autoscaling Group of VPC in Cloudformation template

与世无争的帅哥 提交于 2019-11-28 00:38:02
问题 I want to assign one of my reserved Elastic IP's(ec2 classic ip) to Autoscaling group in VPC. Using AWS Cli I moved ip to vpc: $ aws ec2 move-address-to-vpc --public-ip 23.23.23.23 And saw in aws concole, that this IP passed to VPC. And Assigned in tags of AutoscalingGroup in Cloudformation template in Resources: "Process": { "Type" : "AWS::AutoScaling::AutoScalingGroup", "Properties": { "LaunchConfigurationName": {"Ref": "PreprocessorLC"}, "LoadBalancerNames": [{"Ref": "ProcessELB"}],

Ansible lookup values from complex structure?

安稳与你 提交于 2019-11-28 00:34:42
I'm working on an Ansible playbook where I use the ec2_vpc_subnet_facts to register facts about subnets in a VPC like: - ec2_vpc_subnet_facts: region: "{{ ec2_region }}" filters: vpc-id: "{{ vpc.vpc.id }}" register: vpc_subnet_facts thus getting back a structure like (removed irrelevant attributes): "vpc_subnet_facts": { "changed": false, "subnets": [ { ... "id": "subnet-0bb50753", ... "tags": { "Name": "mytag1" }, ... }, { ... "id": "subnet-0bb50754", ... "tags": { "Name": "mytag2" }, ... } ] } Later in the playbook, when creating the EC2 instances the idea is to lookup a subnet ID based on

Amazon ELB in VPC

折月煮酒 提交于 2019-11-27 16:43:02
We're using Amazon EC2, and we want to put an ELB (load balancer) to 2 instances on a private subnet. If we just add the private subnet to the ELB, it will not get any connections, if we attach both subnets to the ELB then it can access the instances, but it often will get time-outs. Has anyone successfully implemented an ELB within the private subnet of their VPC? If so, could you perhaps explain the procedure to me? Thanks Nathan Pahucki My teammate and I just have implemented ELB in a VPC with 2 private subnets in different availability zones. The reason you get timeouts is that for each

Adding AWS Lambda with VPC configuration causes timeout when accessing S3

让人想犯罪 __ 提交于 2019-11-27 13:42:42
问题 I am trying to access S3 and resources on my VPC from AWS Lambda but since I configured my AWS Lambda to access VPC it's timing out when accessing S3. Here's the code from __future__ import print_function import boto3 import logging import json print('Loading function') s3 = boto3.resource('s3') import urllib def lambda_handler(event, context): logging.getLogger().setLevel(logging.INFO) # Get the object from the event and show its content type bucket = event['Records'][0]['s3']['bucket'][