AWS::EC2::InstanceConnectEndpoint AWS::EC2::InternetGateway AWS::EC2::IPAM AWS::EC2::IPAMAllocation AWS::EC2::IPAMPool AWS::EC2::IPAMPoolCidr AWS::EC2::IPAMResourceDiscovery AWS::EC2::IPAMResourceDiscoveryAssociation AWS::EC2::IPAMScope AWS::EC2::KeyPair AWS::EC2::LaunchTemplate Accelerator...
A security group connection tracking specification that enables you to set the idle timeout for connection tracking on an Elastic network interface. For more information, seeConnection tracking timeoutsin theAmazon EC2 User Guide. Syntax To declare this entity in your AWS CloudFormati...
使用CloudFormation 模板设置 AWS EC2 实例主机名 "SaltMasterGroup": {"Type":"AWS::AutoScaling::AutoScalingGroup","Properties": {"DesiredCapacity":"1","LaunchConfigurationName": {"Ref":"SaltMasterLaunchConfig"},"Tags": [ {"Key":"Name","Value":"saltmaster.lab.example.com","PropagateAtLaunch...
前面简单的过了一遍模板的9大模块,这一节学习一下他的内置函数(Intrinsic function)。 官方文档链接https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference.html Fn::Base64 这个是返回一个字符串的base64格式,一般的使用场景是创建EC2 实例的时候配置 UserData使用的。注意Yaml...
Name: 'MyEC2Instance_ID' template主要分为几部分,Parameters用来描述参数,Conditions用来描述创建资源的条件,Resources描述需要的资源,Outputs输入变量,可供其他stack使用。 template可以是本地文件,也可以是放在s3上的文件 stack: 管理资源的集合,一个template对应一个stack ...
Cloudformation里面,整个架构都是在template里面定义的,然后通过这个template生成对应的Stack. 非常的详细和有用,初看有些枯燥,但是细细品味很有意思,下面是豆子的学习笔记。在template里面,他一共有9个section可以定义,但是只有resource这个模块是必须存在的,其他8
AWS官方提供了一个参考手册,https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-whatis-howdoesitwork.html 非常的详细和有用,初看有些枯燥,但是细细品味很有意思,下面是豆子的学习笔记。 在template里面,他一共有9个section可以定义,但是只有resource这个模块是必须存在的,其他8个模块都是可选项。
4.7、创建EC2实例 五、AWS 控制台创建堆栈(stack) 六、参考文档 最近打算系统性的整理和分享AWS相关知识,而AWS CloudFormation这服务非常能提高你学习AWS的效率。所以先从这个服务开始介绍,后续我也会经常用到这个服务。 首先提醒一下,AWS CloudFormation需要你具有一定的AWS相关知识,比如在AWS Console上创建过VPC和EC2...
Description: "Create a LAMP stack using a single EC2 instance and a local MySQL database for storage. This template demonstrates using the AWS CloudFormation bootstrap scripts to install the packages and files necessary to deploy the Apache web server, PHP, and MySQL when the instance is launche...
上图:最终回到ec2的控制台,可以看到刚才用cloudformation创建好的LAMP单机已经可以使用了,并且这台机器的securitygroup也是刚通过a-nice-template创建的。 上图:点击cloudformation这里模板的URL链接也可以访问刚创建的ec2。 上图:实验完成后记得删除资源,以免扣费。