Skip to main content

jsp

console AWS

 

VPC

Your VPCs

create VPC

 

subnets

create subnet 

  • VPC ID : vpc-A
  • subnet name : vpcA-pub
  • IPv4 subnet CIDR block

 

internet gateways

create internet gateway

vpcA-IGW

sélectionner > actions > attach to vpc

 

route tables

rafraichir

localiser la table lié au vpc et la renommer 

l'ouvrir

dans routes, cliquer sur "edit routes"

"add route" 0.0.0.0/0 vers internet gateway > choisir la IGW créée précédemment

dans subnet associations > explicit associations > edit subnet associations > cocher vpcA-pub > save associations

 

EC2 

instances

launch instances

  • name : EC2-vpcA
  • instance type : t3.micro
  • key pair : vockey
  • network settings :> edit 
    • vpc : vpcA
    • subnet : vpcA-pub
    • auto assign public ip : enable
    • firewall
      • create security group
      • SG name : SG-EC2-vpcA
      • description : SG-EC2-vpcA
  • advanced details 
    • IAM : labinstance
    • DNS Hostname : cocher enable resource based IPv4

launch instance

refaire pareil avec vpc-b 

adapter les valeurs et utiliser 10.1.0.0/16