使用 Amazon ElastiCache 进行内存数据缓存及性能优化
1. 网络配置
首先,我们需要对网络进行配置,使用两个公共子网来完成网络的正确设置。以下是相关的 CloudFormation 模板代码:
RouteTable:
Type: 'AWS::EC2::RouteTable'
Properties:
VpcId: !Ref VPC
SubnetRouteTableAssociationA:
Type: 'AWS::EC2::SubnetRouteTableAssociation'
Properties:
SubnetId: !Ref SubnetA
RouteTableId: !Ref RouteTable
RouteToInternet:
Type: 'AWS::EC2::Route'
Properties:
RouteTableId: !Ref RouteTable
DestinationCidrBlock: '0.0.0.0/0'
GatewayId: !Ref InternetGateway
DependsOn: VPCGatewayAttachment
SubnetRouteTableAssociationB: # [...]
NetworkAcl:
Type: AWS::EC2::NetworkAcl
Properties:
VpcId: !Ref VPC
SubnetNetworkAclAssociationA:
Type: 'AWS::EC2::SubnetNetworkAclAssociation'
Prope
超级会员免费看
订阅专栏 解锁全文
273

被折叠的 条评论
为什么被折叠?



