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

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
主站蜘蛛池模板: 即墨市| 淳安县| 齐齐哈尔市| 天柱县| 石门县| 嘉祥县| 都匀市| 彰武县| 马龙县| 南汇区| 隆回县| 中西区| 洪泽县| 凌云县| 宝坻区| 永新县| 双桥区| 武强县| 乐陵市| 柯坪县| 无棣县| 蓬莱市| 遵义市| 定日县| 拜城县| 商南县| 米脂县| 巩留县| 塔城市| 思茅市| 阆中市| 邵阳县| 县级市| 谢通门县| 迁安市| 台中县| 崇明县| 明水县| 西乌珠穆沁旗| 浦东新区| 平谷区|