Example #1
0
 public MyStack()
 {
     var example = new Aws.Ec2.VpcEndpointRouteTableAssociation("example", new Aws.Ec2.VpcEndpointRouteTableAssociationArgs
     {
         RouteTableId  = aws_route_table.Example.Id,
         VpcEndpointId = aws_vpc_endpoint.Example.Id,
     });
 }
Example #2
0
 public MyStack()
 {
     var s3 = Output.Create(Aws.Ec2.GetVpcEndpoint.InvokeAsync(new Aws.Ec2.GetVpcEndpointArgs
     {
         ServiceName = "com.amazonaws.us-west-2.s3",
         VpcId       = aws_vpc.Foo.Id,
     }));
     var privateS3 = new Aws.Ec2.VpcEndpointRouteTableAssociation("privateS3", new Aws.Ec2.VpcEndpointRouteTableAssociationArgs
     {
         RouteTableId  = aws_route_table.Private.Id,
         VpcEndpointId = s3.Apply(s3 => s3.Id),
     });
 }