“The destination CIDR block 192.168.9.0/27 is equal to or more specific than one of this VPC’s CIDR blocks. This route can target only an intrface or

I have two other templates. This template is taking imports from another template and I can share them if need be. I am working on a project with a tight deadline and I am trying to get this done. Any suggestions or feedback would be great

Im getting this error and I am honestly not sure why. Can anyone help me with this?

The other 2 templates. One is a Transit Gateway, The Other has VPCS, Internet Gateway, some routes to IG, Subnets and Route Tables. I will share those templates if is needed.

Here is the code with the routes and a few Transit Gateway Routes for the Transit Gateway Attachments.

Any questions please ask

{
“AWSTemplateFormatVersion”: “2010-09-09”,
“Description”: “Template for a startup company looking to move their services to the cloud”,
“Parameters”: {
“TransitGatewayRouteCIDR”: {
“Type”: “String”,
“Description”: “Route for Transit Gateway”,
“Default”: “192.168.7.0/24”
},
“TransitGatewayRouteCIDR2”: {
“Type”: “String”,
“Description”: “Route for Transit Gateway”,
“Default”: “192.168.5.0/24”
},
“TransitGatewayRouteCIDR3”: {
“Type”: “String”,
“Description”: “Route for Transit Gateway”,
“Default”: “192.168.9.0/24”
},
“TransitGatewayRouteCIDR4”: {
“Type”: “String”,
“Description”: “Route for Transit Gateway”,
“Default”: “192.168.8.0/24”
},
“PrivateRoute1”: {
“Type”: “String”,
“Description”: “Route for the private subnets to communicate”,
“Default”: “192.168.7.0/24”
},
“PrivateRoute2”: {
“Type”: “String”,
“Description”: “Route for the pribate subnets to communicate with one another”,
“Default”: “192.168.5.0/24”
},
“RoutingDomainPrivateRoute”: {
“Type”: “String”,
“Description”: “Route for the private subnets to communicate”,
“Default”: “192.168.9.0/24”
},
“RoutingDomainPrivateRoute2”: {
“Type”: “String”,
“Description”: “Route for the pribate subnets to communicate with one another”,
“Default”: “192.168.8.0/24”
},
“RoutingDomainStackName”: {
“Type”: “String”,
“Description”: “Stack name for the template with VPC and other resources”,
“Default”: “RoutingDomain”
},
“TransitGatewayStackName” : {
“Type” : “String”,
“Description” : “Stack name for the template with the Transit Gateway”,
“Default” : “TransitGateway”
}
},
“Resources”: {
“PrivateRoute1A”: {
“Type”: “AWS::EC2::Route”,
“Properties”: {
“RouteTableId”: {
“Fn::ImportValue”: {
“Fn::Sub”: “${RoutingDomainStackName}-RouteTableID”
}
},
“DestinationCidrBlock”: {
“Ref”: “PrivateRoute1”
},
“GatewayId”: {
“Fn::ImportValue”: {
“Fn::Sub”: “${TransitGatewayStackName}-TransitGatewayID”
}
}
}
},
“PrivateRoute2A”: {
“Type”: “AWS::EC2::Route”,
“Properties”: {
“RouteTableId”: {
“Fn::ImportValue”: {
“Fn::Sub”: “${RoutingDomainStackName}-RouteTableIDB”
}
},
“DestinationCidrBlock”: {
“Ref”: “PrivateRoute2”
},
“GatewayId”: {
“Fn::ImportValue”: {
“Fn::Sub”: “${TransitGatewayStackName}-TransitGatewayID”
}
}
}
},
“RDPrivateRoute1”: {
“Type”: “AWS::EC2::Route”,
“Properties”: {
“RouteTableId”: {
“Fn::ImportValue”: {
“Fn::Sub”: “${RoutingDomainStackName}-RouteTableIDC”
}
},
“DestinationCidrBlock”: {
“Ref”: “RoutingDomainPrivateRoute”
},
“GatewayId”: {
“Fn::ImportValue”: {
“Fn::Sub”: “${TransitGatewayStackName}-TransitGatewayID”
}
}
}
},
“RDPrivateRoute2”: {
“Type”: “AWS::EC2::Route”,
“Properties”: {
“RouteTableId”: {
“Fn::ImportValue”: {
“Fn::Sub”: “${RoutingDomainStackName}-RouteTableIDD”
}
},
“DestinationCidrBlock”: {
“Ref”: “RoutingDomainPrivateRoute2”
},
“GatewayId”: {
“Fn::ImportValue”: {
“Fn::Sub”: “${TransitGatewayStackName}-TransitGatewayID”
}
}
}
},
“TransitGatewayRoute”: {
“Type”: “AWS::EC2::TransitGatewayRoute”,
“Properties”: {
“DestinationCidrBlock”: {
“Ref”: “TransitGatewayRouteCIDR”
},
“TransitGatewayAttachmentId”: {
“Fn::ImportValue”: {
“Fn::Sub”: “${RoutingDomainStackName}-TransitGatewayAttachmentID”
}
},
“TransitGatewayRouteTableId”: {
“Fn::ImportValue”: {
“Fn::Sub”: “${RoutingDomainStackName}-RouteTableID1”
}

            }
        }
    },
    "TransitGatewayRoute2": {
        "Type": "AWS::EC2::TransitGatewayRoute",
        "Properties": {
            "DestinationCidrBlock": {
                "Ref": "TransitGatewayRouteCIDR2"
            },
            "TransitGatewayAttachmentId": {
                "Fn::ImportValue": {
                    "Fn::Sub": "${RoutingDomainStackName}-TransitGatewayAttachmentIDb"
                }
            },
            "TransitGatewayRouteTableId": {
                "Fn::ImportValue": {
                    "Fn::Sub": "${RoutingDomainStackName}-RouteTableID2"
                }
            }
        }
    },
    "TransitGatewayRoute3": {
        "Type": "AWS::EC2::TransitGatewayRoute",
        "Properties": {
            "DestinationCidrBlock": {
                "Ref": "TransitGatewayRouteCIDR3"
            },
            "TransitGatewayAttachmentId": {
                "Fn::ImportValue": {
                    "Fn::Sub": "${RoutingDomainStackName}-TransitGatewayAttachmentIDc"
                }
            },
            "TransitGatewayRouteTableId": {
                "Fn::ImportValue": {
                    "Fn::Sub": "${RoutingDomainStackName}-RouteTableID1"
                }
            }
        }
    },
    "TransitGatewayRoute4": {
        "Type": "AWS::EC2::TransitGatewayRoute",
        "Properties": {
            "DestinationCidrBlock": {
                "Ref": "TransitGatewayRouteCIDR4"
            },
            "TransitGatewayAttachmentId": {
                "Fn::ImportValue": {
                    "Fn::Sub": "${RoutingDomainStackName}-TransitGatewayAttachmentIDd"
                }
            },
            "TransitGatewayRouteTableId": {
                "Fn::ImportValue": {
                    "Fn::Sub": "${RoutingDomainStackName}-RouteTableID2"
                }
            }
        }
    }
}

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật