官术网_书友最值得收藏!

Resources

Resources are your actual pieces of AWS infrastructure. These are your EC2 instances, S3 buckets, ELBs, and so on. Almost any resource type you can create by pointing and clicking in the AWS web console can also be created using CloudFormation.

It's not practical to list all the AWS resource types in this chapter, although you will get familiar with the most common types as you work your way through the recipes in this book. AWS keeps a definitive list of resources types here 
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html.

There are a few important things to keep in mind about CloudFormation resources:

  • New or bleeding-edge AWS resources are often not immediately supported. CloudFormation support typically lags a few weeks (sometimes months) behind the release of new AWS features. This used to be quite frustrating for anyone to whom infrastructure automation is key. Fast-forward to today, and this situation is somewhat mitigated by the ability to use custom resources. These are discussed further on in this chapter.
  • Resources have a default return value. You can use Ref to fetch these return values for use elsewhere in your template. For example, the AWS::EC2::VPC resource type has a default return value that is the ID of the VPC. They look something like this: vpc-11aa111a.
  • Resources often contain additional return values. These additional values are fetched using the inbuilt Fn::GetAtt function. Continuing from the previous example, the AWS::EC2::VPC resource type also returns the following:
    • CidrBlock
    • DefaultNetworkAcl
    • DefaultSecurityGroup
    • Ipv6CidrBlocks
主站蜘蛛池模板: 兖州市| 达拉特旗| 临洮县| 长乐市| 滦南县| 武冈市| 安岳县| 惠东县| 恩平市| 筠连县| 肥城市| 孟州市| 利津县| 泰兴市| 班玛县| 普安县| 都兰县| 客服| 城步| 当雄县| 高唐县| 四平市| 南岸区| 通河县| 财经| 八宿县| 安远县| 五家渠市| 武鸣县| 当涂县| 温泉县| 虞城县| 西藏| 庐江县| 亚东县| 依兰县| 景泰县| 赣榆县| 建德市| 攀枝花市| 清河县|