- Go to the AWS Management Console.
- Log in using your AWS account credentials.
- In the console, search for and select CloudFormation from the list of services.
- Click on the Create stack button.
- Choose With new resources (standard).
- In the Specify template section, you have three options:
- Upload a template file: Select this option to upload the YAML file from your computer.
- Amazon S3 URL: If your YAML file is already uploaded to S3, you can enter its URL here.
- Sample templates: Choose from the available sample templates.
- If you select Upload a template file, click Choose file and select the YAML file from your computer.
- Click Next.
- Enter a name for the stack in the Stack name field.
- If your YAML file has parameters, you will see fields to enter values for them. Provide the required values
- Click Next.
- You can configure additional options such as:
- Tags: Add tags for the stack.
- IAM role: Select an IAM role if needed.
- Advanced options: Configure any advanced options as necessary.
- Click Next.
- Review all the information you have entered.
- Check the box I acknowledge that AWS CloudFormation might create IAM resources if your template creates IAM resources.
- Click Create stack.
- After clicking Create stack, you will be redirected to the Stacks page.
- Here, you can monitor the status of your stack. When the process is complete, the status will change to CREATE_COMPLETE.
- If there are errors during the stack creation process, you can click on the stack name to view detailed error messages in the Events tab.
- Ensure that you have the appropriate IAM permissions to create the resources specified in your YAML file.