- Ansible 2 Cloud Automation Cookbook
- Aditya Patawari Vikas Aggarwal
- 189字
- 2021-06-24 18:43:37
How it works...
Here we have used variables registered from previous tasks to pass the VPC ID as an input (vpc_id). This task creates a security group with the name my_first_sg. The parameter rules is used for defining all ingress policies and similarly rules_egress for outbound policies. Every block inside ingress rules requires four key bits of information; that is, the protocol (TCP, UDP, or ICMP), the start of the port range (from_port), the end of the port range (to_port), and the CIDR to the whitelist. In all other protocols (except ICMP) we define the port range. But if we choose protocol as ICMP we have to define ICMP code. For example, 8 is used for ICMP echo requests and -1 is a wildcard (that is, any ICMP type number). We have allowed port 80 and port 443 from anywhere; that is 0.0.0.0/0. But port 22 (which is a default port for SSH connections) and all ICMP requests are accessible within the CIDR address space of our VPC.
- PPT,要你好看
- 大數(shù)據(jù)專業(yè)英語
- Visual FoxPro 6.0數(shù)據(jù)庫與程序設計
- Hands-On Data Science with SQL Server 2017
- CorelDRAW X4中文版平面設計50例
- 21天學通Visual C++
- DevOps:Continuous Delivery,Integration,and Deployment with DevOps
- 網(wǎng)絡管理工具實用詳解
- 大數(shù)據(jù)技術基礎:基于Hadoop與Spark
- Excel 2010函數(shù)與公式速查手冊
- 機器人人工智能
- 電動汽車驅動與控制技術
- 數(shù)據(jù)結構與實訓
- 多媒體技術應用教程
- 運動控制系統(tǒng)應用及實例解析