mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
34 lines
1.7 KiB
Plaintext
34 lines
1.7 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * installing/installing_aws/installing-aws-user-infra.adoc
|
|
// * installing/installing_aws/installing-restricted-networks-aws.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="installation-aws-creating-cloudformation-stack_{context}"]
|
|
= Creating the CloudFormation stack for compute machines
|
|
|
|
You can create a stack of {aws-short} resources for the compute machines by using the CloudFormation template that was previously shared.
|
|
|
|
[IMPORTANT]
|
|
====
|
|
When you use the CloudFormation template for the control plane machines, the template provisions all the three control plane machines with a single stack; however, when you use the CloudFormation template to deploy the compute machines, you must create the number of stacks based on the number that you defined in the `install-config.yaml` file. Each stack is provisioned once for each machine. To provision a new compute machine, you must change the stack name.
|
|
====
|
|
|
|
.Procedure
|
|
* To create the CloudFormation stack for compute machines, run the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ aws cloudformation create-stack --stack-name <name> \// <1>
|
|
--template-body file://<template>.yaml \// <2>
|
|
--parameters file://<parameters>.json <3>
|
|
----
|
|
<1> Specify the `<name>` with the name for the CloudFormation stack, such as `cluster-worker-1`. You need the name of this stack if you remove the cluster.
|
|
<2> Specify the relative path and the name of the CloudFormation template YAML file that you saved.
|
|
<3> Specify the relative path and the name of the JSON file for the CloudFormation parameters.
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
arn:aws:cloudformation:us-east-1:269333783861:stack/cluster-worker-1/729ee301-1c2a-11eb-348f-sd9888c65b59
|
|
---- |