{"id":13123,"date":"2022-04-25T08:01:01","date_gmt":"2022-04-25T15:01:01","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=13123"},"modified":"2025-06-13T20:40:18","modified_gmt":"2025-06-14T03:40:18","slug":"vpc-peering-capella-aws","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/pt\/vpc-peering-capella-aws\/","title":{"rendered":"Emparelhamento de VPC com Capella e AWS - um passo a passo"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Uma das perguntas mais frequentes que recebemos de novos usu\u00e1rios do cluster do Couchbase Capella \u00e9 como configurar e conectar-se ao servi\u00e7o totalmente gerenciado. A comunica\u00e7\u00e3o entre seu aplicativo e o cluster hospedado na Internet \u00e9 trivial, mas a conex\u00e3o em uma rede privada \u00e9 mais desafiadora. A necessidade de se conectar por uma rede privada do seu AWS VPC ao VPC do Couchbase se tornar\u00e1 cada vez mais cr\u00edtica para aplicativos de miss\u00e3o cr\u00edtica de alto desempenho.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Configura\u00e7\u00e3o <\/span><b>Emparelhamento de VPC <\/b><span style=\"font-weight: 400\">requer uma pequena quantidade de trabalho em ambos os lados da rede. H\u00e1 uma documenta\u00e7\u00e3o detalhada no site do Couchbase <\/span><a href=\"https:\/\/docs.couchbase.com\/cloud\/clouds\/private-network.html\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">site<\/span><\/a><span style=\"font-weight: 400\">. No entanto, esperamos que este passo a passo facilite um pouco as coisas para o usu\u00e1rio iniciante. Come\u00e7aremos sem ter nenhuma das VPCs configuradas e construiremos do zero. \u00c9 compreens\u00edvel que a VPC de um aplicativo j\u00e1 esteja configurada e n\u00e3o siga todas essas etapas, mas o passo a passo deve, pelo menos, lhe dar uma ideia do processo.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-weight: 400\">Cria\u00e7\u00e3o de um cluster do Couchbase Capella no AWS<\/span><\/h2>\n<p><span style=\"font-weight: 400\">O ideal \u00e9 que as pessoas j\u00e1 tenham experi\u00eancia em criar um banco de dados do Couchbase Capella neste momento. Caso contr\u00e1rio, v\u00e1 para <\/span><a href=\"https:\/\/cloud.couchbase.com\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">cloud.couchbase.com<\/span><\/a><span style=\"font-weight: 400\"> e inscreva-se para uma avalia\u00e7\u00e3o gratuita ou inicie um novo cluster com as especifica\u00e7\u00f5es de que voc\u00ea precisa.<\/span><\/p>\n<p><span style=\"font-weight: 400\">H\u00e1 dois aspectos essenciais que devem ser levados em conta ao criar seu cluster. Primeiro, a regi\u00e3o em que voc\u00ea implementa o cluster deve corresponder \u00e0 regi\u00e3o do VPS AWS que voc\u00ea est\u00e1 usando.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Em seguida, o bloco CIDR de seu cluster implantado <\/span><i><span style=\"font-weight: 400\">DEVE ser diferente <\/span><\/i><span style=\"font-weight: 400\">do AWS VPC. Observe o bloco CIDR <\/span><i><span style=\"font-weight: 400\">antes de clicar em<\/span><\/i> <b>Implementar<\/b><span style=\"font-weight: 400\">. Se o seu AWS VPC j\u00e1 existir com um bloco CIDR, voc\u00ea poder\u00e1 personalizar o Capella para evitar duplica\u00e7\u00e3o.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-13124\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/04\/vpc-peering-couchbase-aws1-1024x431.jpg\" alt=\"VPC peering setting CIDR block before deploy\" width=\"900\" height=\"379\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws1-1024x431.jpg 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws1-300x126.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws1-768x323.jpg 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws1-20x8.jpg 20w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws1-1320x556.jpg 1320w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws1.jpg 1377w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-weight: 400\">Cria\u00e7\u00e3o de uma VPC no AWS<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Criaremos uma nova VPC do zero neste passo a passo; no entanto, como dito anteriormente, \u00e9 poss\u00edvel que sua VPC j\u00e1 exista. Nesse caso, basta garantir que ela siga estas diretrizes.<\/span><\/p>\n<p><span style=\"font-weight: 400\">V\u00e1 at\u00e9 o site <\/span><b>VPC <\/b><span style=\"font-weight: 400\">do console de gerenciamento do AWS e selecione <\/span><b>Criar VPC.<\/b><\/p>\n<h3><b>Requisitos de configura\u00e7\u00e3o de VPS para o Couchbase Capella no AWS<\/b><\/h3>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">O VPC deve existir na mesma regi\u00e3o que seu Cluster Capella<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">A VPC requer uma sub-rede p\u00fablica<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">O bloco CIDR IPv4 deve ser diferente do Cluster Capella<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Os nomes de host DNS devem estar ativados<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">A resolu\u00e7\u00e3o de DNS deve estar ativada<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Para um exemplo de implementa\u00e7\u00e3o, voc\u00ea pode ver a configura\u00e7\u00e3o que criei abaixo.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13141\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/04\/image_2022-04-22_220819438.png\" alt=\"creating a vpc in aws\" width=\"852\" height=\"780\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/image_2022-04-22_220819438.png 852w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/image_2022-04-22_220819438-300x275.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/image_2022-04-22_220819438-768x703.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/image_2022-04-22_220819438-20x18.png 20w\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-weight: 400\">Cria\u00e7\u00e3o de uma inst\u00e2ncia do EC2 em sua VPC<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Antes de escolher uma inst\u00e2ncia apropriada do EC2, revise as especifica\u00e7\u00f5es recomendadas e as pr\u00e1ticas recomendadas para configura\u00e7\u00f5es de servidor no Couchbase <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/current\/install\/pre-install.html\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">documenta\u00e7\u00e3o<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">V\u00e1 at\u00e9 o site <\/span><b>EC2<\/b><span style=\"font-weight: 400\"> do AWS Management Console e selecione <\/span><b>Iniciar inst\u00e2ncia.<\/b><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Escolhemos o <\/span><i><span style=\"font-weight: 400\">Amazon Linux<\/span><\/i><span style=\"font-weight: 400\"> para este exemplo.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Selecione um <\/span><i><span style=\"font-weight: 400\">Tipo de inst\u00e2ncia<\/span><\/i><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Criar um novo <\/span><i><span style=\"font-weight: 400\">Par de chaves<\/span><\/i><span style=\"font-weight: 400\"> e fa\u00e7a o download, ou selecione uma credencial existente, se voc\u00ea j\u00e1 tiver uma.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"padding-left: 40px\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13128\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/04\/vpc-peering-couchbase-aws5.jpg\" alt=\"Creating an EC2 instance in your VPC\" width=\"657\" height=\"824\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws5.jpg 657w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws5-239x300.jpg 239w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws5-300x376.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws5-16x20.jpg 16w\" sizes=\"auto, (max-width: 657px) 100vw, 657px\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Certifique-se de selecionar a VPC que foi criada.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Escolha uma sub-rede P\u00daBLICA dessa VPC.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Ativar <\/span><i><span style=\"font-weight: 400\">Atribui\u00e7\u00e3o autom\u00e1tica de endere\u00e7o IP<\/span><\/i><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Adicionar um novo <\/span><i><span style=\"font-weight: 400\">Regra TCP personalizada <\/span><\/i><span style=\"font-weight: 400\">em <\/span><i><span style=\"font-weight: 400\">Grupos de seguran\u00e7a<\/span><\/i><span style=\"font-weight: 400\"> para o intervalo de portas 8091. As conex\u00f5es n\u00e3o criptografadas com o tr\u00e1fego do Couchbase Server for Administration usam essa porta.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Criar ou selecionar um <\/span><i><span style=\"font-weight: 400\">Par de chaves<\/span><\/i><span style=\"font-weight: 400\">permitindo que voc\u00ea acesse a m\u00e1quina quando ela tiver sido criada.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13127\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/04\/vpc-peering-couchbase-aws4.jpg\" alt=\"Setting up VPC network and key pair in EC2\" width=\"531\" height=\"859\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws4.jpg 531w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws4-185x300.jpg 185w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws4-300x485.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws4-12x20.jpg 12w\" sizes=\"auto, (max-width: 531px) 100vw, 531px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><b>Teste a conex\u00e3o com o Couchbase (p\u00fablico)<\/b><\/h3>\n<p><span style=\"font-weight: 400\">Podemos verificar se temos acesso p\u00fablico ao cluster depois que a inst\u00e2ncia do EC2 for implementada. Posteriormente, podemos comparar o endere\u00e7o IP que recebemos de <\/span><i><span style=\"font-weight: 400\">nslookup<\/span><\/i><span style=\"font-weight: 400\"> para verificar se a rede privada foi configurada corretamente.<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Depois de fazer o download do <\/span><i><span style=\"font-weight: 400\">Par de chaves, <\/span><\/i><span style=\"font-weight: 400\">modificar o <\/span><i><span style=\"font-weight: 400\">.pem<\/span><\/i><span style=\"font-weight: 400\"> com as permiss\u00f5es de arquivo <\/span><i><span style=\"font-weight: 400\">chmod<\/span><\/i><span style=\"font-weight: 400\"> comando:<\/span>\n<ul>\n<li style=\"font-weight: 400\"><i><span style=\"font-weight: 400\">chmod 400 mykeypair.pem<\/span><\/i><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Obtenha o endere\u00e7o IPv4 p\u00fablico de sua inst\u00e2ncia do EC2.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">SSH na m\u00e1quina.<\/span>\n<ul>\n<li style=\"font-weight: 400\"><i><span style=\"font-weight: 400\">ssh -i mykeypair.pem ec2-user@0.0.0.0<\/span><\/i><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"padding-left: 40px\"><i><\/i><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-13130\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/04\/vpc-peering-couchbase-aws7-1024x85.jpg\" alt=\"Setting permissions on PEM file\" width=\"900\" height=\"75\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws7-1024x85.jpg 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws7-300x25.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws7-768x64.jpg 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws7-20x2.jpg 20w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws7.jpg 1194w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Acesse o site do Capella Cluster <\/span><b>Conectar <\/b><span style=\"font-weight: 400\">e copie o registro SRV do DNS.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13129\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/04\/vpc-peering-couchbase-aws6.jpg\" alt=\"Testing connection to Capella cluster\" width=\"821\" height=\"387\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws6.jpg 821w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws6-300x141.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws6-768x362.jpg 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws6-818x387.jpg 818w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws6-20x9.jpg 20w\" sizes=\"auto, (max-width: 821px) 100vw, 821px\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Executar <\/span><i><span style=\"font-weight: 400\">nslookup <\/span><\/i><span style=\"font-weight: 400\">no registro DNS SRV do Capella Cluster para obter uma lista dos nomes de host<\/span>\n<ul>\n<li style=\"font-weight: 400\"><em><span style=\"font-weight: 400\">nslookup -type=SRV _couchbases._tcp.cb.xxxxxxxxxxxxxxxxxxxx.cloud.couchbase.com<\/span><\/em><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-13132\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/04\/vpc-peering-couchbase-aws9-1024x198.jpg\" alt=\"\" width=\"900\" height=\"174\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws9-1024x198.jpg 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws9-300x58.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws9-768x149.jpg 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws9-20x4.jpg 20w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws9-1320x256.jpg 1320w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws9.jpg 1378w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Executar <\/span><i><span style=\"font-weight: 400\">nslookup <\/span><\/i><span style=\"font-weight: 400\">em um dos nomes de host para visualizar o endere\u00e7o IP (p\u00fablico) ao qual estamos nos conectando.<\/span>\n<ul>\n<li style=\"font-weight: 400\"><em><span style=\"font-weight: 400\">nslookup xxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxx.cloud.couchbase.com<\/span><\/em><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Observe esse endere\u00e7o IP p\u00fablico, pois ele deve mudar quando o peering de VPC for configurado e estivermos usando o privado.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-13131\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/04\/vpc-peering-couchbase-aws8-1024x216.jpg\" alt=\"\" width=\"900\" height=\"190\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws8-1024x216.jpg 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws8-300x63.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws8-768x162.jpg 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws8-20x4.jpg 20w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws8.jpg 1256w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-weight: 400\">Cria\u00e7\u00e3o da conex\u00e3o de peering<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Muitas das etapas anteriores foram precursoras da prepara\u00e7\u00e3o da rede privada. No mundo real, \u00e9 prov\u00e1vel que voc\u00ea j\u00e1 tenha clusters e inst\u00e2ncias do EC2 em funcionamento. Nesse caso, siga as etapas daqui em diante. No entanto, vale a pena verificar sua configura\u00e7\u00e3o em rela\u00e7\u00e3o \u00e0s etapas anteriores para garantir que tudo o que \u00e9 necess\u00e1rio esteja configurado.<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Verifique se o nome de host DNS e a resolu\u00e7\u00e3o DNS est\u00e3o ativados em seu AWS VPC<\/span>\n<ul>\n<li style=\"font-weight: 400\"><b>A\u00e7\u00f5es &gt; Editar nome de host DNS<\/b><span style=\"font-weight: 400\"> - Ativado<\/span><\/li>\n<li style=\"font-weight: 400\"><b>A\u00e7\u00f5es &gt; Editar resolu\u00e7\u00e3o de DNS<\/b><span style=\"font-weight: 400\"> - Ativado<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-13135\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/04\/vpc-peering-couchbase-aws12-1024x222.jpg\" alt=\"Enabling DNS hostname and resolution in AWS VPC\" width=\"900\" height=\"195\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws12-1024x222.jpg 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws12-300x65.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws12-768x167.jpg 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws12-20x4.jpg 20w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws12-1320x286.jpg 1320w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws12.jpg 1379w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">No cluster do Couchbase Capella, v\u00e1 para a se\u00e7\u00e3o <\/span><b>Conectar<\/b><span style=\"font-weight: 400\"> e selecione <\/span><b>Gerenciar redes privadas &gt; Configurar rede privada<\/b>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Verifique os dois requisitos e continue.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Preencha as informa\u00e7\u00f5es de sua conex\u00e3o de peering:<\/span>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">A <\/span><i><span style=\"font-weight: 400\">Nome <\/span><\/i><span style=\"font-weight: 400\">para a conex\u00e3o<\/span><\/li>\n<li style=\"font-weight: 400\"><i><span style=\"font-weight: 400\">ID da conta AWS <\/span><\/i><span style=\"font-weight: 400\">= ID do propriet\u00e1rio<\/span><\/li>\n<li style=\"font-weight: 400\"><i><span style=\"font-weight: 400\">ID da rede virtual <\/span><\/i><span style=\"font-weight: 400\">= ID VPC<\/span><\/li>\n<li style=\"font-weight: 400\"><i><span style=\"font-weight: 400\">Regi\u00f5es dispon\u00edveis <\/span><\/i><span style=\"font-weight: 400\">= Regi\u00e3o VPC<\/span><\/li>\n<li style=\"font-weight: 400\"><i><span style=\"font-weight: 400\">Bloco CIDR <\/span><\/i><span style=\"font-weight: 400\">= Bloco CIDR IPv4<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Clique em <\/span><b>Link <\/b><span style=\"font-weight: 400\">para iniciar a conex\u00e3o<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13133\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/04\/vpc-peering-couchbase-aws10.jpg\" alt=\"setup private network in capella\" width=\"876\" height=\"618\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws10.jpg 876w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws10-300x212.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws10-768x542.jpg 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws10-20x14.jpg 20w\" sizes=\"auto, (max-width: 876px) 100vw, 876px\" \/><\/p>\n<p><span style=\"font-weight: 400\">Depois de clicar no bot\u00e3o <\/span><b>Link <\/b><span style=\"font-weight: 400\">o Capella configurar\u00e1 e criar\u00e1 uma solicita\u00e7\u00e3o de conex\u00e3o de emparelhamento para seu AWS VPC.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-weight: 400\">Configura\u00e7\u00e3o final do AWS VPC<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Para facilitar a comunica\u00e7\u00e3o por meio da nova rede privada, precisamos definir algumas configura\u00e7\u00f5es em seu AWS VPC.<\/span><\/p>\n<h3><b>Aceitar a solicita\u00e7\u00e3o de peering<\/b><\/h3>\n<ol>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Ir para <\/span><b>VPC &gt; Conex\u00f5es de peering <\/b><span style=\"font-weight: 400\">no AWS e encontre o <\/span><i><span style=\"font-weight: 400\">pendente <\/span><\/i><span style=\"font-weight: 400\">conex\u00e3o<\/span> <span style=\"font-weight: 400\">do Grupo Capella. Pode levar alguns minutos para aparecer depois que voc\u00ea iniciou o link original da Capella.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Selecione <\/span><b>A\u00e7\u00f5es &gt; Aceitar solicita\u00e7\u00e3o<\/b><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Observe o <\/span><i><span style=\"font-weight: 400\">ID da conex\u00e3o de emparelhamento <\/span><\/i><span style=\"font-weight: 400\">e <\/span><i><span style=\"font-weight: 400\">Bloco CIDR do solicitante <\/span><\/i><span style=\"font-weight: 400\">valores.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-13134\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/04\/vpc-peering-couchbase-aws11-1024x472.jpg\" alt=\"Accepting peering requests in AWS\" width=\"900\" height=\"415\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws11-1024x472.jpg 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws11-300x138.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws11-768x354.jpg 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws11-20x9.jpg 20w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws11.jpg 1221w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><b>Associar a VPC \u00e0 zona hospedada<\/b><\/h3>\n<p><span style=\"font-weight: 400\">Para a pr\u00f3xima etapa, use a ferramenta CLI do AWS (\u00e9 poss\u00edvel encontrar conselhos sobre como configur\u00e1-la em seu computador local <\/span><a href=\"https:\/\/aws.amazon.com\/cli\/\"><span style=\"font-weight: 400\">aqui<\/span><\/a><span style=\"font-weight: 400\">). Certifique-se de configurar a CLI do AWS para usar as credenciais de um usu\u00e1rio do AWS Identity and Access Management (IAM) que tenha acesso ao Route 53.<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">No Cluster Capella, v\u00e1 para <\/span><b>Conectar &gt; Redes privadas<\/b><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Clique na rede privada que acabou de ser configurada.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Copie o segundo comando.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-13136\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/04\/vpc-peering-couchbase-aws13-1024x501.jpg\" alt=\"Associate VPC with Hosted Zone\" width=\"900\" height=\"440\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws13-1024x501.jpg 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws13-300x147.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws13-768x376.jpg 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws13-20x10.jpg 20w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws13.jpg 1099w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Cole o comando em uma m\u00e1quina com a configura\u00e7\u00e3o da CLI do AWS.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Execute o comando que associa as zonas hospedadas entre as VPCs.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-13137\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/04\/vpc-peering-couchbase-aws14-1024x331.jpg\" alt=\"Commands to associate hosted zones between VPCs\" width=\"900\" height=\"291\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws14-1024x331.jpg 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws14-300x97.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws14-768x248.jpg 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws14-20x6.jpg 20w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws14.jpg 1101w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><b>Modificar as tabelas de rotas<\/b><\/h3>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Goto <\/span><b>VPC &gt; Tabelas de rota<\/b><span style=\"font-weight: 400\"> na AWS.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Para cada uma das tabelas de rotas associadas \u00e0 sua VPC, conclua as etapas a seguir:<\/span>\n<ul>\n<li style=\"font-weight: 400\"><b>A\u00e7\u00f5es &gt; Editar rotas<\/b><\/li>\n<li style=\"font-weight: 400\"><b>Adicionar rota<\/b>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Colar o <\/span><i><span style=\"font-weight: 400\">Bloco CIDR do solicitante <\/span><\/i><span style=\"font-weight: 400\">de sua solicita\u00e7\u00e3o de peering<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">No <\/span><i><span style=\"font-weight: 400\">Alvo <\/span><\/i><span style=\"font-weight: 400\">caixa, selecione <\/span><i><span style=\"font-weight: 400\">Conex\u00e3o de peering<\/span><\/i><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Selecione no menu suspenso o valor que corresponde ao seu <\/span><i><span style=\"font-weight: 400\">ID da conex\u00e3o de emparelhamento<\/span><\/i><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><b>Salvar altera\u00e7\u00f5es<\/b><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Repita o processo para outras tabelas de rotas em uso.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none\"><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-13138\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/04\/vpc-peering-couchbase-aws15-1024x278.jpg\" alt=\"Modifying route tables in AWS VPC\" width=\"900\" height=\"244\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws15-1024x278.jpg 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws15-300x81.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws15-768x208.jpg 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws15-20x5.jpg 20w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws15-1320x358.jpg 1320w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws15.jpg 1379w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-weight: 400\">Teste a conex\u00e3o com o Couchbase (privado)<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Nesse ponto, o emparelhamento de VPC foi configurado com \u00eaxito entre o cluster do Couchbase e seu AWS VPC. Para verificar se a sua inst\u00e2ncia do EC2 agora est\u00e1 se comunicando de forma privada com o cluster, execute novamente o comando <\/span><i><span style=\"font-weight: 400\">nslookup <\/span><\/i><span style=\"font-weight: 400\">no mesmo nome de host que executamos no comando <\/span><i><span style=\"font-weight: 400\">p\u00fablico <\/span><\/i><span style=\"font-weight: 400\">teste de conex\u00e3o.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-13139\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/04\/vpc-peering-couchbase-aws16-1024x258.jpg\" alt=\"\" width=\"900\" height=\"227\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws16-1024x258.jpg 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws16-300x76.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws16-768x193.jpg 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws16-20x5.jpg 20w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws16.jpg 1199w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p><span style=\"font-weight: 400\">A resposta deve nos mostrar que estamos nos comunicando com o <\/span><i><span style=\"font-weight: 400\">endere\u00e7o IP privado da m\u00e1quina <\/span><\/i><span style=\"font-weight: 400\">em vez do p<\/span><i><span style=\"font-weight: 400\">p\u00fablico <\/span><\/i><span style=\"font-weight: 400\">um. Isso valida que a resolu\u00e7\u00e3o de DNS est\u00e1 funcionando corretamente.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Para validar isso ainda mais, podemos verificar a conectividade de rede entre o n\u00f3 do aplicativo e o cluster do Capella usando <\/span><i><span style=\"font-weight: 400\">traceroute<\/span><\/i><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-13140\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/04\/vpc-peering-couchbase-aws17-1024x100.png\" alt=\"Test connection to Couchbase with traceroute\" width=\"900\" height=\"88\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws17-1024x100.png 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws17-300x29.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws17-768x75.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws17-20x2.png 20w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws17-1320x128.png 1320w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/04\/vpc-peering-couchbase-aws17.png 1379w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p><span style=\"font-weight: 400\">Se a resposta for r\u00e1pida e bem-sucedida, podemos ter certeza de que o roteamento est\u00e1 configurado corretamente, pois tocamos a porta criptografada do Couchbase.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-weight: 400\">E agora?<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Cobrimos v\u00e1rias etapas para configurar o cluster e o AWS antes de mergulhar no emparelhamento de VPC. Se voc\u00ea j\u00e1 tiver o cluster e a configura\u00e7\u00e3o do AWS, s\u00f3 precisar\u00e1 seguir as duas \u00faltimas se\u00e7\u00f5es que compartilhamos acima.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Esta postagem aborda uma das muitas abordagens para o emparelhamento de VPC. Como cada pessoa tem diferentes ambientes e restri\u00e7\u00f5es da AWS, pode haver outras quest\u00f5es a serem abordadas em seu caso de uso espec\u00edfico. Esperamos que isso o ajude a iniciar sua busca pelo peering de VPC daqui para frente.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Acesse os recursos a seguir para saber mais sobre o Couchbase Capella e como obter a ajuda de que voc\u00ea precisa:<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Revisar o abrangente <\/span><a href=\"https:\/\/docs.couchbase.com\/cloud\/index.html\"><span style=\"font-weight: 400\">Documenta\u00e7\u00e3o da Capella<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Fa\u00e7a perguntas sobre o <\/span><a href=\"https:\/\/www.couchbase.com\/blog\/pt\/forums\/\"><span style=\"font-weight: 400\">F\u00f3runs do Couchbase<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><a href=\"https:\/\/www.couchbase.com\/blog\/pt\/couchbase-on-discord\/\"><span style=\"font-weight: 400\">Junte-se a n\u00f3s no Discord<\/span><\/a><span style=\"font-weight: 400\"> para colaborar com outras pessoas.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Obter <\/span><a href=\"https:\/\/support.couchbase.com\"><span style=\"font-weight: 400\">suporte oficial para produtos Couchbase<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>One of the most asked questions we receive from new Couchbase Capella cluster users is how do I set up and connect to the fully managed service. Communication between your application and the internet-hosted cluster is trivial, but connecting over [&hellip;]<\/p>","protected":false},"author":74466,"featured_media":4513,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[2225,1816],"tags":[10124,9243,9582,9581,9583],"ppma_author":[9167],"class_list":["post-13123","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-couchbase-server","tag-amazon-web-services-aws","tag-cloud-native-database","tag-ec2","tag-vpc","tag-vpc-peering"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.1 (Yoast SEO v26.1.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>VPC Peering: A Walkthrough with Capella and AWS | Couchbase<\/title>\n<meta name=\"description\" content=\"Setting up VPC Peering requires a small amount of work on both sides of the network. This is an easy step-by-step walkthrough for the first-time user.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/pt\/vpc-peering-capella-aws\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"VPC Peering with Capella and AWS - a Walkthrough\" \/>\n<meta property=\"og:description\" content=\"Setting up VPC Peering requires a small amount of work on both sides of the network. This is an easy step-by-step walkthrough for the first-time user.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/pt\/vpc-peering-capella-aws\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-25T15:01:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-14T03:40:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/01\/partner-engage-3-copy.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2048\" \/>\n\t<meta property=\"og:image:height\" content=\"881\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Daniel Bull, Associate Solutions Engineer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daniel Bull, Associate Solutions Engineer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/\"},\"author\":{\"name\":\"Daniel Bull, Associate Solutions Engineer\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/7f9d5e0c7963a172db12fb5e5e2583e1\"},\"headline\":\"VPC Peering with Capella and AWS &#8211; a Walkthrough\",\"datePublished\":\"2022-04-25T15:01:01+00:00\",\"dateModified\":\"2025-06-14T03:40:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/\"},\"wordCount\":1372,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/01\/partner-engage-3-copy.jpg\",\"keywords\":[\"Amazon Web Services (AWS)\",\"Cloud-Native Database\",\"EC2\",\"VPC\",\"VPC Peering\"],\"articleSection\":[\"Couchbase Capella\",\"Couchbase Server\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/\",\"name\":\"VPC Peering: A Walkthrough with Capella and AWS | Couchbase\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/01\/partner-engage-3-copy.jpg\",\"datePublished\":\"2022-04-25T15:01:01+00:00\",\"dateModified\":\"2025-06-14T03:40:18+00:00\",\"description\":\"Setting up VPC Peering requires a small amount of work on both sides of the network. This is an easy step-by-step walkthrough for the first-time user.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/01\/partner-engage-3-copy.jpg\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/01\/partner-engage-3-copy.jpg\",\"width\":2048,\"height\":881,\"caption\":\"VPC Peering - AWS and Couchbase Capella cluster\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"VPC Peering with Capella and AWS &#8211; a Walkthrough\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/7f9d5e0c7963a172db12fb5e5e2583e1\",\"name\":\"Daniel Bull, Associate Solutions Engineer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/1a793e281f03204d89cd07cc2163a58e\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/07\/daniel-bull-couchbase-engineering.jpeg\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/07\/daniel-bull-couchbase-engineering.jpeg\",\"caption\":\"Daniel Bull, Associate Solutions Engineer\"},\"description\":\"Daniel Bull is an Associate Solutions Engineer at Couchbase\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/daniel-bull-00a102b5\/\"],\"url\":\"https:\/\/www.couchbase.com\/blog\/pt\/author\/daniel-bull\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"VPC Peering: A Walkthrough with Capella and AWS | Couchbase","description":"A configura\u00e7\u00e3o do emparelhamento de VPC requer um pouco de trabalho em ambos os lados da rede. Este \u00e9 um passo a passo f\u00e1cil para o usu\u00e1rio iniciante.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/pt\/vpc-peering-capella-aws\/","og_locale":"pt_BR","og_type":"article","og_title":"VPC Peering with Capella and AWS - a Walkthrough","og_description":"Setting up VPC Peering requires a small amount of work on both sides of the network. This is an easy step-by-step walkthrough for the first-time user.","og_url":"https:\/\/www.couchbase.com\/blog\/pt\/vpc-peering-capella-aws\/","og_site_name":"The Couchbase Blog","article_published_time":"2022-04-25T15:01:01+00:00","article_modified_time":"2025-06-14T03:40:18+00:00","og_image":[{"width":2048,"height":881,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/01\/partner-engage-3-copy.jpg","type":"image\/jpeg"}],"author":"Daniel Bull, Associate Solutions Engineer","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Daniel Bull, Associate Solutions Engineer","Est. reading time":"10 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/"},"author":{"name":"Daniel Bull, Associate Solutions Engineer","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/7f9d5e0c7963a172db12fb5e5e2583e1"},"headline":"VPC Peering with Capella and AWS &#8211; a Walkthrough","datePublished":"2022-04-25T15:01:01+00:00","dateModified":"2025-06-14T03:40:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/"},"wordCount":1372,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/01\/partner-engage-3-copy.jpg","keywords":["Amazon Web Services (AWS)","Cloud-Native Database","EC2","VPC","VPC Peering"],"articleSection":["Couchbase Capella","Couchbase Server"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/","url":"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/","name":"VPC Peering: A Walkthrough with Capella and AWS | Couchbase","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/01\/partner-engage-3-copy.jpg","datePublished":"2022-04-25T15:01:01+00:00","dateModified":"2025-06-14T03:40:18+00:00","description":"A configura\u00e7\u00e3o do emparelhamento de VPC requer um pouco de trabalho em ambos os lados da rede. Este \u00e9 um passo a passo f\u00e1cil para o usu\u00e1rio iniciante.","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/01\/partner-engage-3-copy.jpg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2018\/01\/partner-engage-3-copy.jpg","width":2048,"height":881,"caption":"VPC Peering - AWS and Couchbase Capella cluster"},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/vpc-peering-capella-aws\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"VPC Peering with Capella and AWS &#8211; a Walkthrough"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"Blog do Couchbase","description":"Couchbase, o banco de dados NoSQL","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"Blog do Couchbase","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/7f9d5e0c7963a172db12fb5e5e2583e1","name":"Daniel Bull, engenheiro de solu\u00e7\u00f5es associado","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/1a793e281f03204d89cd07cc2163a58e","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/07\/daniel-bull-couchbase-engineering.jpeg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/07\/daniel-bull-couchbase-engineering.jpeg","caption":"Daniel Bull, Associate Solutions Engineer"},"description":"Daniel Bull \u00e9 engenheiro de solu\u00e7\u00f5es associado da Couchbase","sameAs":["https:\/\/www.linkedin.com\/in\/daniel-bull-00a102b5\/"],"url":"https:\/\/www.couchbase.com\/blog\/pt\/author\/daniel-bull\/"}]}},"authors":[{"term_id":9167,"user_id":74466,"is_guest":0,"slug":"daniel-bull","display_name":"Daniel Bull, Associate Solutions Engineer","avatar_url":{"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/07\/daniel-bull-couchbase-engineering.jpeg","url2x":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/07\/daniel-bull-couchbase-engineering.jpeg"},"author_category":"","last_name":"Bull","first_name":"Daniel","job_title":"","user_url":"","description":"Daniel Bull \u00e9 engenheiro de solu\u00e7\u00f5es associado da Couchbase"}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts\/13123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/users\/74466"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/comments?post=13123"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts\/13123\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/media\/4513"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/media?parent=13123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/categories?post=13123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/tags?post=13123"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/ppma_author?post=13123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}