Weitere ähnliche Inhalte
Ähnlich wie 現場的!AWSとオンプレの違い(赤べこバージョン) (20)
現場的!AWSとオンプレの違い(赤べこバージョン)
- 4. Akabeko Web Services
Work hard,
have fun,
make history!
決して簡単ではない大量の処理をさばくため、
どこからともなく(オンデマンドに)現れて、
多くのマシンが倒れる(H/W障害)中、
最後まで働いた(高可用性)
赤色の牛
- 16. {
"Parameters"
:
{
"KeyName"
:
{
"Description"
:
"Name
of
an
existing
EC2
KeyPair
to
enable
SSH
access
to
the
instance",
"Type"
:
"String"
}
},
"Mappings"
:
{
"RegionMap"
:
{
"us-‐east-‐1"
:
{
"AMI"
:
"ami-‐76f0061f"
},
"us-‐west-‐1"
:
{
"AMI"
:
"ami-‐655a0a20"
},
"eu-‐west-‐1"
:
{
"AMI"
:
"ami-‐7fd4e10b"
},
"ap-‐southeast-‐1"
:
{
"AMI"
:
"ami-‐72621c20"
},
"ap-‐northeast-‐1"
:
{
"AMI"
:
"ami-‐8e08a38f"
}
}
},
"Resources"
:
{
"Ec2Instance"
:
{
"Type"
:
"AWS::EC2::Instance",
"Properties"
:
{
"KeyName"
:
{
"Ref"
:
"KeyName"
},
"ImageId"
:
{
"Fn::FindInMap"
:
[
"RegionMap",
{
"Ref"
:
"AWS::Region"
},
"AMI"
]},
"UserData"
:
{
"Fn::Base64"
:
"80"
}
}
}
}
}
- 17.
"Outputs":
{
"InstallURL":
{
"Value":
{
"Fn::Join":
[
"",
[
"http://",
{
"Fn::GetAtt":
[
"ElasticLoadBalancer",
"DNSName"
]
},
"/wp-‐admin/install.php"
]
]
},
"Description"
:
"Installation
URL
of
the
WordPress
website"
},
"WebsiteURL":
{
"Value":
{
"Fn::Join":
[
"",
[
"http://",
{
"Fn::GetAtt":
[
"ElasticLoadBalancer",
"DNSName"
]
}
]
]
}
}
}
- 25. テンプレートのチェーン
"Resources":
{
"CloudFormationStackVPCBasic"
:
{
"Type":
"AWS::CloudFormation::Stack",
"Properties":
{
"TemplateURL":
"https://s3-‐ap-‐northeast-‐1.amazonaws.com/template.suz-‐lab.com/template/suz-‐lab_vpc-‐
basic-‐0.0.1.json",
"TimeoutInMinutes":
"60"
}
},
"CloudFormationStackOnDemandNAT"
:
{
"Type":
"AWS::CloudFormation::Stack",
"Properties":
{
"TemplateURL"
:
"https://s3-‐ap-‐northeast-‐1.amazonaws.com/template.suz-‐lab.com/template/suz-‐
lab_ondemand-‐nat-‐0.0.1.json",
"Parameters"
:
{
"KeyName":
{
"Ref":
"KeyName"
},
"ImageId":
{
"Ref":
"OnDemandNATImageId"
},
"InstanceType":
{
"Ref":
"OnDemandNATInstanceType"
},
"Name":
{
"Ref":
"OnDemandNATName"
},
"RouteTableId":
{
"Fn::GetAtt"
:
[
"CloudFormationStackVPCBasic",
"Outputs.RouteTableIdProtected"
]
},
"SecurityGroupId":
{
"Fn::GetAtt"
:
[
"CloudFormationStackVPCBasic",
"Outputs.SecurityGroupIdCommon"
]
},
"SubnetId":
{
"Fn::GetAtt"
:
[
"CloudFormationStackVPCBasic",
"Outputs.SubnetIdPublicVarA00"
]
},
"VpcId":
{
"Fn::GetAtt"
:
[
"CloudFormationStackVPCBasic",
"Outputs.VpcIdBasic"
]
}
}
}
}
},
親テンプレートの定義
- 26. 同一レイヤーは Auto Scaling で
"Resources":
{
"AutoScalingLaunchConfig"
:
{
"Type"
:
"AWS::AutoScaling::LaunchConfiguration",
"Properties"
:
{
"KeyName"
:
{
"Ref"
:
"KeyName"
},
"ImageId"
:
{
"Ref"
:
"ImageId"
},
"SecurityGroups"
:
{
"Ref"
:
"SecurityGroups"
},
"InstanceType"
:
{
"Ref"
:
"InstanceType"
}
}
},
"AutoScalingAutoScalingGroup"
:
{
"Type"
:
"AWS::AutoScaling::AutoScalingGroup",
"Properties"
:
{
"DesiredCapacity"
:
{
"Ref"
:
"CapacitySize"
},
"LaunchConfigurationName"
:
{
"Ref"
:
"AutoScalingLaunchConfig"
},
"MaxSize"
:
{
"Ref"
:
"CapacitySize"
},
"MinSize"
:
{
"Ref"
:
"CapacitySize"
},
"AvailabilityZones"
:
[
{
"Fn::FindInMap"
:
[
"AzMap",
{
"Ref"
:
"AWS::Region"
},
"Az1"
]
},
{
"Fn::FindInMap"
:
[
"AzMap",
{
"Ref"
:
"AWS::Region"
},
"Az2"
]
}
],
"Tags"
:
[
{
"Key"
:
"Name",
"Value"
:
{
"Ref"
:
"Name"
},
"PropagateAtLaunch"
:
true
}
]
}
}
},
Parameters
- 37. メニュー サービス項目 提供有無
ライト コンサルティング プランに含まれます
初期費用
プランに含まれます
※インスタンス構築費用
AWS利用料 プランに含まれます
バースト保障 プランに含まれます
監視/運用/保守
平日営業時間帯
(平日10:00-19:00)
平日時間外
(0:00-10:00、19:00-24:00)
土曜、日曜、祝祭日
(0:00-24:00)
監視 プランに含まれます プランに含まれます プランに含まれます
運用 プランに含まれます なし なし
保守 プランに含まれます プランに含まれます プランに含まれます
専用サーバープラン
- 38. メニュー サービス項目 提供有無
ライト コンサルティング プランに含まれます
初期費用
プランに含まれます
※インスタンス構築費用
AWS利用料 プランに含まれます
バースト保障 なし
監視/運用/保守
平日営業時間帯
(平日10:00-19:00)
平日時間外
(0:00-10:00、19:00-24:00)
土曜、日曜、祝祭日
(0:00-24:00)
監視 プランに含まれます プランに含まれます プランに含まれます
運用 プランに含まれます なし なし
保守 プランに含まれます なし なし
専用サーバーライトプラン
↑New!!
MICROプラン ライト 2万円/月
SMALLプラン ライト 3万円/月
: