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
= Creating a Virtual Private Cloud using the ROSA CLI
12
+
13
+
The `rosa create network` command is available in v.1.2.48 or later of the ROSA CLI. This command uses AWS CloudFormation to create a VPC and other networking components used to install a ROSA cluster. CloudFormation is a native AWS infrastructure-as-code tool, compatible with the AWS CLI. For more information on AWS CloudFormation, see the additional resources.
14
+
15
+
If you do not specify a template, CloudFormation uses a default template that creates the following parameters:
16
+
17
+
[cols="2a,3a",options="header"]
18
+
|===
19
+
|VPC parameter
20
+
|Value
21
+
22
+
| Availability Zones
23
+
| 1
24
+
25
+
| Region
26
+
| `us-east-1`
27
+
28
+
| VPC CIDR
29
+
| `10.0.0.0/16`
30
+
|===
31
+
32
+
You can create and customize CloudFormation templates can also be used with the command. See the additional resources for information on the Default VPC template.
33
+
34
+
.Prerequisites
35
+
36
+
* You have configured your AWS account
37
+
* You have configured your Red Hat accounts
38
+
* You have installed and configured the ROSA CLI to the latest version
39
+
40
+
.Procedure
41
+
. Use the following command to create an AWS VPC using the default CloudFormations template:
42
+
+
43
+
[source,terminal]
44
+
----
45
+
$ rosa create network
46
+
----
47
+
48
+
. Optional: If you want to modify a parameter, you can specify `--param Param1=Value1`, `--param Param2=Value2`, and so on. For example, if you wanted to modify the region, name, AZ count, and VPC's CIDR parameters, you could run:
. The full list of parameters available in the default template.
56
+
+
57
+
.Example template
58
+
+
59
+
[source,yaml]
60
+
----
61
+
Parameters:
62
+
AvailabilityZoneCount:
63
+
Type: Number
64
+
Description: "Number of Availability Zones to use"
65
+
Default: 1
66
+
MinValue: 1
67
+
MaxValue: 3
68
+
Region:
69
+
Type: String
70
+
Description: "AWS Region"
71
+
Default: "us-west-2"
72
+
Name:
73
+
Type: String
74
+
Description: "Name prefix for resources"
75
+
VpcCidr:
76
+
Type: String
77
+
Description: CIDR block for the VPC
78
+
Default: '10.0.0.0/16'
79
+
----
80
+
+
81
+
The command takes about 5 minutes to run, providing regular status updates from AWS as resources are created. If there is an issue with CloudFormation, a rollback will be attempted. If any other issues are encountered, please follow the error message instructions or contact AWS support.
82
+
+
83
+
[NOTE]
84
+
====
85
+
Save the subnet IDs that are created as a result of this command since these subnets are needed when creating the cluster. Replace `$SUBNET_IDS` in the `rosa cluster create` command below with these values in a comma-separated list.
86
+
87
+
During the cluster creation, you can select your create network stack with the following step:
88
+
89
+
[source,terminal]
90
+
----
91
+
? Additional 'Compute' Security Group IDs (optional): sg-0d1fba92a71d6cc6d ('rosa-network-stack-269733383066-SecurityGroup-zD8qkxnh6wwL')
92
+
----
93
+
====
94
+
95
+
. To delete the Cloudformation stack that was created, run the following command:
= Configuring and using custom CloudFormation templates
8
+
9
+
You can use a custom CloudFormation template by specifying a new directory with `--template-dir`, and then specifying a template name when you use `rosa create network`. You can also simply use the aws cloudformations command directly when using custom CloudFormation templates.
10
+
11
+
.Procedure
12
+
13
+
* Run the following command to use a CloudFormation template stored locally at `/rosa/templates/customtemplatename/cloudformation.yaml`:
14
+
+
15
+
[source,terminal]
16
+
----
17
+
$ rosa create network customtemplatename --template-dir='/rosa/templates'
18
+
----
19
+
+
20
+
[NOTE]
21
+
====
22
+
The default directory is `/cmd/create/network/templates/rosa/`.
23
+
24
+
As with any VPC used for ROSA, the VPC created by this method is not managed by ROSA, and ROSA is not aware of its dependency on this VPC. If you manipulate the VPC while a ROSA cluster is running within it, you could introduce risk to the cluster.
=== Creating a Virtual Private Cloud for your {hcp-title} clusters
25
+
== Creating a Virtual Private Cloud for your {hcp-title} clusters
26
26
27
-
You must have a Virtual Private Cloud (VPC) to create {hcp-title} cluster. You can use the following methods to create a VPC:
27
+
You must have a Virtual Private Cloud (VPC) to create {hcp-title} cluster. You can use the following methods to create a VPC:
28
28
29
+
* Create a VPC using the ROSA CLI
29
30
* Create a VPC by using a Terraform template
30
31
* Manually create the VPC resources in the AWS console
31
32
@@ -34,24 +35,53 @@ You must have a Virtual Private Cloud (VPC) to create {hcp-title} cluster. You c
34
35
The Terraform instructions are for testing and demonstration purposes. Your own installation requires some modifications to the VPC for your own use. You should also ensure that when you use this Terraform script it is in the same region that you intend to install your cluster. In these examples, use `us-east-2`.
* See the link:https://aws.amazon.com/cloudformation/[AWS CloudFormation] for more information about structuring CloudFormation files to create VPCs.
48
+
* See this link:https://github.com/openshift/rosa/blob/master/cmd/create/network/templates/rosa-quickstart-default-vpc/cloudformation.yaml[default VPC AWS CloudFormation template] for more information.
* See the link:https://github.com/openshift-cs/terraform-vpc-example[Terraform VPC] repository for a detailed list of all options available when customizing the VPC for your needs.
If your cluster fails to install, check these common troubleshooting issues:
66
+
67
+
* Make sure your link:https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html[DHCP option set] includes a domain name, and ensure that the domain name does not include any spaces or capital letters.
68
+
* If your VPC uses a custom DNS resolver (the `domain name servers` field of your DHCP option set is not `AmazonProvideDNS`), make sure it is able to properly resolve the private hosted zones configured in Route53.
69
+
70
+
For more information about troubleshooting ROSA cluster installations, see xref:../support/troubleshooting/rosa-troubleshooting-installations.adoc#rosa-troubleshooting-installations[Troubleshooting {product-title} installations].
71
+
72
+
==== Get support
73
+
If you need additional xref:../support/getting-support.adoc#getting-support[support], visit the Red Hat Customer Portal to review knowledge base articles, submit a support case, and review additional product documentation and resources.
== Creating a Virtual Private Cloud for your egress lockdown {hcp-title} clusters
54
+
== Creating a Virtual Private Cloud for your {hcp-title} clusters
55
55
56
-
You must have a Virtual Private Cloud (VPC) to create {hcp-title} clusters. You can use one of the following methods to create a VPC:
56
+
You must have a Virtual Private Cloud (VPC) to create {hcp-title} cluster. You can use the following methods to create a VPC:
57
57
58
+
* Create a VPC using the ROSA CLI
58
59
* Create a VPC by using a Terraform template
59
60
* Manually create the VPC resources in the AWS console
60
61
61
62
[NOTE]
62
63
====
63
-
The Terraform instructions are for testing and demonstration purposes. Your own installation requires modifications to the VPC for your specific needs and constraints. You should also ensure that when you use the following Terraform script it is in the same region that you intend to install your cluster.
64
+
The Terraform instructions are for testing and demonstration purposes. Your own installation requires some modifications to the VPC for your own use. You should also ensure that when you use this Terraform script it is in the same region that you intend to install your cluster. In these examples, use `us-east-2`.
* See the link:https://github.com/openshift-cs/terraform-vpc-example/tree/main/zero-egress[Zero Egress Terraform VPC Example] repository for a detailed list of all options available when customizing the VPC for your needs.
76
+
* See the link:https://aws.amazon.com/cloudformation/[AWS CloudFormation] for more information about structuring CloudFormation files to create VPCs.
77
+
* See this link:https://github.com/openshift/rosa/blob/master/cmd/create/network/templates/rosa-quickstart-default-vpc/cloudformation.yaml[default VPC AWS CloudFormation template] for more information.
* See the link:https://github.com/openshift-cs/terraform-vpc-example[Terraform VPC] repository for a detailed list of all options available when customizing the VPC for your needs.
If your cluster fails to install, check these common troubleshooting issues:
95
+
96
+
* Make sure your link:https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html[DHCP option set] includes a domain name, and ensure that the domain name does not include any spaces or capital letters.
97
+
* If your VPC uses a custom DNS resolver (the `domain name servers` field of your DHCP option set is not `AmazonProvideDNS`), make sure it is able to properly resolve the private hosted zones configured in Route53.
98
+
99
+
For more information about troubleshooting ROSA cluster installations, see xref:../support/troubleshooting/rosa-troubleshooting-installations.adoc#rosa-troubleshooting-installations[Troubleshooting {product-title} installations].
100
+
101
+
==== Get support
102
+
If you need additional xref:../support/getting-support.adoc#getting-support[support], visit the Red Hat Customer Portal to review knowledge base articles, submit a support case, and review additional product documentation and resources.
* link:https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.2/deploy/subnet_discovery/[Subnet Auto Discovery]
114
+
115
+
[role="_additional-resources"]
116
+
.Additional resources
117
+
118
+
* See the link:https://github.com/openshift-cs/terraform-vpc-example/tree/main/zero-egress[Zero Egress Terraform VPC Example] repository for a detailed list of all options available when customizing the VPC for your needs.
* See the link:https://aws.amazon.com/cloudformation/[AWS CloudFormation] for more information about structuring CloudFormation files to create VPCs.
50
+
* See this link:https://github.com/openshift/rosa/blob/master/cmd/create/network/templates/rosa-quickstart-default-vpc/cloudformation.yaml[default VPC AWS CloudFormation template] for more information.
* See the link:https://github.com/openshift-cs/terraform-vpc-example[Terraform VPC] repository for a detailed list of all options available when customizing the VPC for your needs.
If your cluster fails to install, check these common troubleshooting issues:
68
+
69
+
* Make sure your link:https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html[DHCP option set] includes a domain name, and ensure that the domain name does not include any spaces or capital letters.
70
+
* If your VPC uses a custom DNS resolver (the `domain name servers` field of your DHCP option set is not `AmazonProvideDNS`), make sure it is able to properly resolve the private hosted zones configured in Route53.
71
+
72
+
For more information about troubleshooting ROSA cluster installations, see xref:../support/troubleshooting/rosa-troubleshooting-installations.adoc#rosa-troubleshooting-installations[Troubleshooting {product-title} installations].
73
+
74
+
==== Get support
75
+
If you need additional xref:../support/getting-support.adoc#getting-support[support], visit the Red Hat Customer Portal to review knowledge base articles, submit a support case, and review additional product documentation and resources.
Copy file name to clipboardExpand all lines: rosa_hcp/rosa-hcp-sts-creating-a-cluster-quickly.adoc
+13
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,7 @@ To create a {hcp-title} cluster, you must have the following items:
73
73
74
74
You must have a Virtual Private Cloud (VPC) to create {hcp-title} cluster. You can use the following methods to create a VPC:
75
75
76
+
* Create a VPC using the ROSA CLI
76
77
* Create a VPC by using a Terraform template
77
78
* Manually create the VPC resources in the AWS console
78
79
@@ -81,6 +82,18 @@ You must have a Virtual Private Cloud (VPC) to create {hcp-title} cluster. You c
81
82
The Terraform instructions are for testing and demonstration purposes. Your own installation requires some modifications to the VPC for your own use. You should also ensure that when you use this Terraform script it is in the same region that you intend to install your cluster. In these examples, use `us-east-2`.
* See the link:https://aws.amazon.com/cloudformation/[AWS CloudFormation] for more information about structuring CloudFormation files to create VPCs.
95
+
* See this link:https://github.com/openshift/rosa/blob/master/cmd/create/network/templates/rosa-quickstart-default-vpc/cloudformation.yaml[default VPC AWS CloudFormation template] for more information.
0 commit comments