Skip to content

Commit 51c82a0

Browse files
authored
Merge pull request #84636 from aldiazRH/OSDOCS-12371
2 parents 542a3db + 247a548 commit 51c82a0

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

modules/rosa-create-objects.adoc

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,73 @@ Add a machine pool with tags to a cluster.
861861
$ rosa create machinepool --cluster=mycluster --replicas=2 --instance-type=r5.2xlarge --tags='foo bar,bar baz' --name=mp-1
862862
----
863863

864+
[id="rosa-create-network_{context}"]
865+
== create network
866+
867+
Create a network that creates any necessary AWS resources through AWS CloudFormation templates. This helper command is intended to help create and configure a VPC for use with {hcp-title}. This command also supports zero egress clusters.
868+
869+
[IMPORTANT]
870+
====
871+
Running this command creates resources within your AWS account.
872+
====
873+
874+
[NOTE]
875+
====
876+
For custom or advanced configuration, it is highly recommended to use the AWS CLI directly using the `aws cloudformation` command or create a new custom template with the required configurations.
877+
====
878+
879+
.Syntax
880+
[source,terminal]
881+
----
882+
$ rosa create network [flags]
883+
----
884+
885+
.Arguments
886+
[cols="30,70"]
887+
|===
888+
|Option |Definition
889+
890+
|<template-name>
891+
|Allows you to use a custom template. Templates must be in the template folder, structured as `templates/<template-name>/cloudformation.yaml`. If no template name is provided, the command uses the default template. For binary builds, this template directory must be referenced manually after it is downloaded.
892+
893+
|===
894+
895+
.Default template YAML
896+
[source,yaml]
897+
----
898+
include::https://raw.githubusercontent.com/openshift/rosa/refs/heads/master/cmd/create/network/templates/rosa-quickstart-default-vpc/cloudformation.yaml[]
899+
----
900+
901+
.Flags
902+
[cols="30,70"]
903+
|===
904+
|Option |Definition
905+
906+
|--template-dir
907+
|Allows you to specify the path to the template directory. Overrides the `OCM_TEMPLATE_DIR` environment variable. Required if not running the command inside the template directory.
908+
909+
|--param Name
910+
|Define the name of your network. A required parameter when using a custom template file.
911+
912+
|--param Region
913+
|Define the region of your network. A required parameter when using a custom template file.
914+
915+
|--param <various>
916+
|Available parameters depend on the template. Use `--help` when in the template directory to find available parameters.
917+
918+
|--mode=manual
919+
|Provides AWS commands to create the network stack.
920+
921+
|===
922+
923+
.Example
924+
Create a basic network with regular arguments and flags.
925+
926+
[source,terminal]
927+
----
928+
$ rosa create network rosa-quickstart-default-vpc --param Tags=key1=value1,key2=value2 --param Name=example-stack --param Region=us-west-2
929+
----
930+
864931
[id="rosa-create-ocm-role_{context}"]
865932
== create ocm-role
866933

rosa_release_notes/rosa-release-notes.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ toc::[]
1616
[id="rosa-q4-2024_{context}"]
1717
=== Q4 2024
1818

19+
* **`rosa create network` command added for {hcp-title} clusters.** You can now use the `rosa create network` command when creating {hcp-title} clusters to create networks using AWS CloudFormation templates. This helper command is intended to help create and configure a VPC for use with {hcp-title}. This command also supports zero egress clusters. For more information, see xref:../cli_reference/rosa_cli/rosa-manage-objects-cli.adoc#rosa-create-network_rosa-managing-objects-cli[create network].
20+
1921
* **Create additional security groups in {hcp-title} clusters.** Starting with ROSA CLI version 1.2.47, you can now create additional security groups using the ROSA CLI when creating {hcp-title} clusters. Note that additional security group IDs attached to the machine pool cannot be modified. To remove or add more security group IDs, replace the entire machine pool with a new one.
2022

2123
* **ROSA CLI update.** The ROSA CLI (`rosa`) was updated to a new version. For information about what has changed in this release, see the link:https://github.com/openshift/rosa/releases/[ROSA CLI release notes]. For more information about the ROSA CLI (`rosa`), see xref:../cli_reference/rosa_cli/rosa-get-started-cli.adoc#rosa-about_rosa-getting-started-cli[About the ROSA CLI].

0 commit comments

Comments
 (0)