vpc

AWS cross-az traffic

一个人想着一个人 提交于 2019-12-12 01:48:14
问题 i have two instances in two different availability-zones which need to communicate with each other. they are inside vpc private subnets- a) Will the traffic go through NAT when they talk to each other ? b) And what will happen if they are in public subnet and have elastic ip attached ? c) What if they are in ec2 classic in two different az ? 回答1: All of these scenarios can go either way, depending on how the instances address each other. All VPC instances have a private IP address, even if

Mailing isn't working in Django AWS Lambda (Zappa) behind a VPC

和自甴很熟 提交于 2019-12-11 16:18:57
问题 I have an AWS lambda function (Django zappa) that is running inside a VPC thus I'm not able to send emails because Lambda isn't connected to the internet, I tried NAT Gatway but with no hope. I created a NAT Gatway using one public subnet of the VPC. Created another private subnet with a route table that routes 0.0.0.0/0 to the NAT Gateway. I would appreciate any help. 回答1: Go to VPC Dashboard and use the Launch VPC Dashboard Create (Allocate) an elastic IP address and keep it handy. Select

NAT网关、vpc、子网、弹性IP 基本概念整理

浪子不回头ぞ 提交于 2019-12-11 13:17:57
NAT网关 NAT网关(NAT Gateway)是一款企业级的公网网关,提供NAT代理(SNAT和DNAT)、高达10Gbps级别转发能力以及跨可用区的容灾能力。 功能简介 NAT网关作为一个网关设备,需要绑定公网IP才能正常工作。创建NAT网关后,您可以为NAT网关绑定弹性公网IP(EIP)。 说明 对于2017年11月3日23:59分之前账号下存在NAT带宽包的全部用户,您仍需使用NAT带宽包为该NAT网关提供公网IP。如需使用EIP绑定NAT网关的功能,请参见 为什么在NAT网关控制台不能绑定EIP 中的操作步骤。 NAT网关支持SNAT和DNAT功能。 SNAT可以为VPC内无公网IP的ECS实例提供访问互联网的代理服务。 DNAT可以将NAT网关上的公网IP映射给ECS实例使用,使ECS实例能够提供互联网服务。 vpc 私有网络(VPC) 私有网络是针对公有云的基础网络(经典网络)来定义的一种概念。 VPC(Virtual Private Cloud)是公有云上自定义的逻辑隔离网络空间,是一块可我们自定义的网络空间,与我们在数据中心运行的传统网络相似,托管在VPC内的是我们在私有云上的服务资源,如云主机、负载均衡、云数据库等。我们可以自定义网段划分、IP地址和路由策略等,并通过安全组和网络ACL等实现多层安全防护。同时也可以通过VPN或专线连通VPC与我们的数据中心

Access VM instance from Google Cloud Function via internal ip address

流过昼夜 提交于 2019-12-11 06:11:54
问题 I have a VM instance with Redis running on internal ip 10.132.0.3 also it's external ip is 35.233.12.123 I'd like to connect to it from google cloud function. But there is no connection via internal ip, while connection via external ip works. As I understand Google's cloud functions don't have access to VPC networks and my instances in it via internal ip addresses. So the questiona are: Is it possible to access the VM instance by internal ip from cloud function somehow? The external ip

JQ: Select when attribute value exists in a bash array

。_饼干妹妹 提交于 2019-12-11 02:47:25
问题 I'm using jq 1.4. I trying to select elements when VPCZoneIdentifier exists in my $selected_subnets (bash variable). selected_subnets="valueA valueB" input='{"elements":[ {"name": "nameA", "VPCZoneIdentifier": "valueA"}, {"name": "nameB", "VPCZoneIdentifier": "valueB"}, {"name": "nameC", "VPCZoneIdentifier": "valueC"} ]}' test and match fn are only available on v1.5. 回答1: This is a little tricky, but it can be done with reduce . The whole thing could look like this: selected_subnets_json=$

AWS Networking Series

孤人 提交于 2019-12-10 21:43:47
AWS networking 最近開始錄製了一系列AWS networking的影片(英文), 目的是讓大家透過Solution Architect的角度,來了解在AWS上我們可考慮使用的network方案。 已錄製主題: AWS network - Internet Route Solutions (Internet, VPN, Direct Connect) AWS network - Internal Route and Inter VPC Route (VPC endpoints, PrivateLink, VPC peering) AWS network - across-region and across-account route AWS network - Transit Gateway, Direct Connect Gateway 這個月剛剛通過AWS SAP證照,因為準備過程中發現networking佔的比例極高,也是我準備過程中花最多時間了解的部分,所以想將此資訊趁還熟悉時整理起來,分享給大家。 来源: CSDN 作者: 蔡昇祐 链接: https://blog.csdn.net/uopsdod/article/details/103482016

01 ,VPC-mysql-emr 学习 :

隐身守侯 提交于 2019-12-10 12:45:16
1 ,vpc : 名字 :dft vpcID : vpc-fbd47792 2 ,子网 : dft03 ( subnet-9375d6fa ) dft01 dft02 dft03 3 ,安全组 : j ( sg-3bc38a52 ) 4 ,创建 mysql : msql 版本 : 5.7.22 vpc : vpc-fbd47792 子网组 : default 安全组 : default ( sg-3bc38a52 ) 创建 5 ,创建 emr : 配置 : [ { "Classification" : "hive-site" , "Properties" : { "javax.jdo.option.ConnectionURL" : "jdbc:mysql://sflmysql03.cbgb7etsvnph.rds.cn-northwest-1.amazonaws.com.cn:3306/hivemysql?createDatabaseIfNotExist=true" , "javax.jdo.option.ConnectionDriverName" : "org.mariadb.jdbc.Driver" , "javax.jdo.option.ConnectionUserName" : "sfl" , "javax.jdo.option.ConnectionPassword" :

Terraform throws “groupName cannot be used with the parameter subnet” or “VPC security groups may not be used for a non-VPC launch”

妖精的绣舞 提交于 2019-12-10 01:06:52
问题 When trying to figure out how to configure a aws_instance with AWS VPC the following errors occur: * Error launching source instance: InvalidParameterCombination: The parameter groupName cannot be used with the parameter subnet status code: 400, request id: [] or * Error launching source instance: InvalidParameterCombination: VPC security groups may not be used for a non-VPC launch status code: 400, request id: [] 回答1: This is due to how a security group is associated with an instance.

阿里云数据备份——通过VPC通道

混江龙づ霸主 提交于 2019-12-09 16:00:10
用阿里云的用户都知道,阿里云有自动备份功能,但是当用了二年之后你才发现,不知不觉数据就存了20个T了,妈呀,这费用老高了,一年不知道要给阿里云那投资几十万,本地再想把这些数据拷贝出来,发现还要增加带宽,又要给阿里云加钱,这费用也蛮高的。怎么办呢,有没有更合适的办法解决这个问题呢? 当然,有。现在就和大家介绍下我们的VPC专用通道,可以更智能更快速的解决阿里云用户的数据备份问题。 首先,介绍下我们公司【微网聚力】拥有全国分布式IDC资源,己拥有30+真实数据中心,10000R+机柜资源,SD-WAN节点覆盖,全国资源快速交付能力。我们的品牌UCache数据中心,致力于为您提供专属的高品质数据中心管理平台,帮助企业运营和管理高标准数据中心服务与资产。 华北区【微网聚力】主要以自建机房&运营商合作机房为主,如:兆维机房、数北机房、东四机房、来广营机房(促)、昌平机房(促)、京北数据中心(新)等,关于带宽可提供单线、BGP多线代播、动态BGP等核心及骨干网带宽,不止如此,关于传输我公司属于基础电信服务提供商:固定网传输:A2-20172005资质,(这里说明下,目前,除了电信、联通、移动这种基础运营商会有A2资质,普通的IDC同行很少有同时具备IDC、ISP资质,又同时持有A2传输资质,我公司目前不一定是唯一一家,但基本上很难再找到第二家了。)那么,重点来了,有这些有什么用呢,当然

Allow one VPC and deny others in a VPC Service Perimeter GCP

二次信任 提交于 2019-12-08 03:38:03
问题 I have created a VPC Service Perimeter for a project in GCP and added Google Cloud Storage to it. Is there a way in GCP to allow access to Google Cloud Storage API (via gsutil or any other means) only to the VMs or resources in a particular VPC? If I have three VPCs ( vpc-a , vpc-b and vpc-c ), I want only the instances in vpc-a to access the Cloud Storage buckets and VPC Service Perimeter to deny access to resources from vpc-b and vpc-c . All my instances will be private (no public IP