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

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
主站蜘蛛池模板: 全州县| 贵州省| 兴城市| 平塘县| 留坝县| 山丹县| 社会| 互助| 璧山县| 怀化市| 通河县| 泾阳县| 凭祥市| 南阳市| 吉林省| 香格里拉县| 惠东县| 襄汾县| 蓬安县| 海林市| 延川县| 涿鹿县| 凤山县| 吴桥县| 鲁山县| 新兴县| 安顺市| 张掖市| 五大连池市| 大厂| 苍南县| 万载县| 姜堰市| 大埔县| 水城县| 隆回县| 广汉市| 大理市| 乐东| 张北县| 漾濞|