- AWS Administration Cookbook
- Lucas Chan Rowan Udell
- 242字
- 2021-07-09 18:18:27
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.
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
推薦閱讀
- 大數據技術與應用基礎
- 腦動力:C語言函數速查效率手冊
- 大數據專業英語
- 傳感器技術應用
- Mastering Elastic Stack
- 基于ARM 32位高速嵌入式微控制器
- Grome Terrain Modeling with Ogre3D,UDK,and Unity3D
- 零起點學西門子S7-200 PLC
- 嵌入式操作系統原理及應用
- Mastering Geospatial Analysis with Python
- Excel 2007終極技巧金典
- Instant Slic3r
- 菜鳥起飛電腦組裝·維護與故障排查
- 輸送技術、設備與工業應用
- Hands-On Artificial Intelligence for Beginners