You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- ec2_networking_resources - Add optional networking resources and ability to delete resources created by role. (https://github.com/redhat-cop/cloud.aws_ops/pull/126)
Copy file name to clipboardexpand all lines: roles/ec2_networking_resources/README.md
+34-15
Original file line number
Diff line number
Diff line change
@@ -26,24 +26,28 @@ An AWS account with the following permissions:
26
26
Role Variables
27
27
--------------
28
28
29
-
***ec2_networking_resources_vpc_name**: (Required) The name of the VPC to create.
30
-
***ec2_networking_resources_vpc_cidr_block**: (Required) The CIDR block to use for the VPC being created.
31
-
***ec2_networking_resources_subnet_cidr_block**: (Required) The CIDR block to use for subnet being created.
32
-
***ec2_networking_resources_sg_internal_name**: (Required) The name of the security group to create.
33
-
***ec2_networking_resources_sg_internal_description**: (Required) The description of the security group being created.
34
-
***ec2_networking_resources_sg_internal_rules**: (Optional) List of rules to apply to the security group being created. By default, a rule allowing SSH access from within the VPC will be added. A rule should contain the following keys:
35
-
***proto** (str): The IP protocol name.
36
-
***ports** (str): A list of ports traffic is going to. Can be a single port, or a range of ports, for example, 8000-8010.
37
-
***cidr_ip** (str): The CIDR block traffic is coming from.
29
+
***ec2_networking_resources_operation**: (Optional) Target operation for the networking resources role. Choices are ["create", "delete"]. Defaults to "create".
30
+
***ec2_networking_resources_vpc_name**: (Required) The name of the VPC to create or delete.
31
+
***ec2_networking_resources_vpc_cidr_block**: (Optional) The CIDR block to use for the VPC being created. Required if `ec2_networking_resources_operation` is "create".
32
+
***ec2_networking_resources_subnet_cidr_block**: (Optional) The CIDR block to use for subnet being created. Required if `ec2_networking_resources_operation` is "create".
33
+
***ec2_networking_resources_sg_name**: (Optional) The name of the security group to create. Required if `ec2_networking_resources_operation` is "create".
34
+
***ec2_networking_resources_sg_description**: (Optional) The description of the security group being created. Defaults to "Security group for EC2 instance".
35
+
***ec2_networking_resources_sg_rules**: (Optional) List of rules to apply to the security group being created. By default, a rule allowing SSH access from within the VPC will be added. A rule should contain the following keys:
36
+
***proto** (str): The IP protocol name.
37
+
***ports** (list): A list of ports traffic is going to. Can be a single port or a range of ports, for example 8000-8010.
38
+
***cidr_ip** (str): The CIDR block traffic is coming from.
39
+
***ec2_networking_resources_create_igw**: (Optional) Whether to create an internet gateway and route traffic to it. Defaults to `false`.
msg: "When creating resources, all of the following options must be provided: ec2_networking_resources_vpc_cidr_block, ec2_networking_resources_subnet_cidr_block, ec2_networking_resources_sg_name"
5
+
when: ec2_networking_resources_vpc_cidr_block | default("", true) == "" or
6
+
ec2_networking_resources_subnet_cidr_block | default("", true) == "" or
0 commit comments