This repository contains an AWS CloudFormation project that simplifies the management of AWS resources using infrastructure as code. With CloudFormation, you can create, update, and delete stacks of AWS resources in a controlled and automated manner.
Stack name must have maximum 34 characters as a limitation.
The "Stack Create" chapter provides guidance on how to create a new CloudFormation stack. It covers the following topics:
- Prerequisites for creating a stack.
- Redis credentials must be configured in AWS Secrets Manager
- CloudFormation templates are available in the S3 Bucket together will the Lambda archives and the Layers for Lambda.
- How to define and configure a CloudFormation template.
- Login to AWS Console and navigate to CloudFormation.
- Go to Stacks, press Create stack and choose With new resources (standard).
- Select the template source as Amazon S3 URL and below set the URL from S3 for the desired version. The template for CloudFormation is of type .yml.
- Press Next.
- In the Specify stack details page complete the fields with the desired values. All the parameters with [Required] tag must have a value.
- Press Next.
- In the Configure stack options don’t change anything. Just press Next.
- On the Review stack name page double check that all the parameters have the correct values, then go at the bottom of the page, check I acknowledge that AWS CloudFormation might create IAM resources with customized names and press Submit.
- After that, the stack Creation will begin and all the resources states will be displayed in the Events tab.
- The deployment process of the stack.
- The stack begins with the resource creation as defined in the CloudFormation template.
- Once the resources are created, the Lambda function is triggered and will create the required resource if no error is raised.
The "Stack Update" chapter discusses the process of updating an existing CloudFormation stack. It includes information on:
- Modifying existing AWS resources within a stack.
- Modifying resources requires an already created stack in a COMPLETE state.
- To start an Update action, select that stack and press the Update button.
- On the Update stack page check the Use current template box and click Next.
- On the Specify stack details change the parameters as desired but only the ones accepted by Swagger as a PUT action. Then press Next.
- In the Configuration stack options page just press Next.
- In the Review stack name page check the I acknowledge that AWS CloudFormation might create IAM resources with customized names button and press Submit.
- Check the Events page and wait for the Update to complete.
In the "Stack Delete" chapter, we explore the steps involved in deleting a CloudFormation stack. This chapter covers:
- How to initiate the deletion process.
- For the Delete action, press the Delete button and confirm that the stack should be permanently deleted.
- After all the resources created by CloudFormation template are deleted, in the Events tab the last event must be DELETE_COMPLETE for the resource having the Logical ID the name of the stack.
This concludes the overview of the AWS CloudFormation project. You can use this repository to manage your Redis infrastructure efficiently and consistently.