Esempio n. 1
0
 public MyStack()
 {
     var exampleGateway = new Aws.DirectConnect.Gateway("exampleGateway", new Aws.DirectConnect.GatewayArgs
     {
         AmazonSideAsn = "64512",
     });
     var exampleVpc = new Aws.Ec2.Vpc("exampleVpc", new Aws.Ec2.VpcArgs
     {
         CidrBlock = "10.255.255.0/28",
     });
     var exampleVpnGateway = new Aws.Ec2.VpnGateway("exampleVpnGateway", new Aws.Ec2.VpnGatewayArgs
     {
         VpcId = exampleVpc.Id,
     });
     var exampleGatewayAssociation = new Aws.DirectConnect.GatewayAssociation("exampleGatewayAssociation", new Aws.DirectConnect.GatewayAssociationArgs
     {
         AllowedPrefixes =
         {
             "210.52.109.0/24",
             "175.45.176.0/22",
         },
         AssociatedGatewayId = exampleVpnGateway.Id,
         DxGatewayId         = exampleGateway.Id,
     });
 }
Esempio n. 2
0
 public MyStack()
 {
     var example = new Aws.DirectConnect.Gateway("example", new Aws.DirectConnect.GatewayArgs
     {
         AmazonSideAsn = "64512",
     });
 }
Esempio n. 3
0
 public MyStack()
 {
     var exampleGateway = new Aws.DirectConnect.Gateway("exampleGateway", new Aws.DirectConnect.GatewayArgs
     {
         AmazonSideAsn = "64512",
     });
     var exampleTransitVirtualInterface = new Aws.DirectConnect.TransitVirtualInterface("exampleTransitVirtualInterface", new Aws.DirectConnect.TransitVirtualInterfaceArgs
     {
         AddressFamily = "ipv4",
         BgpAsn        = 65352,
         ConnectionId  = aws_dx_connection.Example.Id,
         DxGatewayId   = exampleGateway.Id,
         Vlan          = 4094,
     });
 }
Esempio n. 4
0
 public MyStack()
 {
     var accepter = new Aws.Provider("accepter", new Aws.ProviderArgs
     {
     });
     var accepterCallerIdentity = Output.Create(Aws.GetCallerIdentity.InvokeAsync());
     // Creator's side of the VIF
     var creator = new Aws.DirectConnect.HostedTransitVirtualInterface("creator", new Aws.DirectConnect.HostedTransitVirtualInterfaceArgs
     {
         AddressFamily  = "ipv4",
         BgpAsn         = 65352,
         ConnectionId   = "dxcon-zzzzzzzz",
         OwnerAccountId = accepterCallerIdentity.Apply(accepterCallerIdentity => accepterCallerIdentity.AccountId),
         Vlan           = 4094,
     }, new CustomResourceOptions
     {
         DependsOn =
         {
             "aws_dx_gateway.example",
         },
     });
     // Accepter's side of the VIF.
     var example = new Aws.DirectConnect.Gateway("example", new Aws.DirectConnect.GatewayArgs
     {
         AmazonSideAsn = "64512",
     }, new CustomResourceOptions
     {
         Provider = "aws.accepter",
     });
     var accepterHostedTransitVirtualInterfaceAcceptor = new Aws.DirectConnect.HostedTransitVirtualInterfaceAcceptor("accepterHostedTransitVirtualInterfaceAcceptor", new Aws.DirectConnect.HostedTransitVirtualInterfaceAcceptorArgs
     {
         DxGatewayId = example.Id,
         Tags        =
         {
             { "Side", "Accepter" },
         },
         VirtualInterfaceId = creator.Id,
     }, new CustomResourceOptions
     {
         Provider = "aws.accepter",
     });
 }
Esempio n. 5
0
 public MyStack()
 {
     var exampleGateway = new Aws.DirectConnect.Gateway("exampleGateway", new Aws.DirectConnect.GatewayArgs
     {
         AmazonSideAsn = "64512",
     });
     var exampleVpc = new Aws.Ec2.Vpc("exampleVpc", new Aws.Ec2.VpcArgs
     {
         CidrBlock = "10.255.255.0/28",
     });
     var exampleVpnGateway = new Aws.Ec2.VpnGateway("exampleVpnGateway", new Aws.Ec2.VpnGatewayArgs
     {
         VpcId = exampleVpc.Id,
     });
     var exampleGatewayAssociation = new Aws.DirectConnect.GatewayAssociation("exampleGatewayAssociation", new Aws.DirectConnect.GatewayAssociationArgs
     {
         AssociatedGatewayId = exampleVpnGateway.Id,
         DxGatewayId         = exampleGateway.Id,
     });
 }
Esempio n. 6
0
 public MyStack()
 {
     var exampleGateway = new Aws.DirectConnect.Gateway("exampleGateway", new Aws.DirectConnect.GatewayArgs
     {
         AmazonSideAsn = "64512",
     });
     var exampleTransitGateway = new Aws.Ec2TransitGateway.TransitGateway("exampleTransitGateway", new Aws.Ec2TransitGateway.TransitGatewayArgs
     {
     });
     var exampleGatewayAssociation = new Aws.DirectConnect.GatewayAssociation("exampleGatewayAssociation", new Aws.DirectConnect.GatewayAssociationArgs
     {
         AllowedPrefixes =
         {
             "10.255.255.0/30",
             "10.255.255.8/30",
         },
         AssociatedGatewayId = exampleTransitGateway.Id,
         DxGatewayId         = exampleGateway.Id,
     });
 }