Skip to main content

AWS CloudFormation - FAQs

  • How to delete the resources created through CloudFormation?

    They can be deleted by deleting the CloudFormation stack

    aws cloudformation delete-stack --stack-name <STACK_NAME> --profile <PROFILE> --region <REGION>


  • I have created an SQS Queue by running a CloudFormation Stack. After that, I have deleted that SQS Queue. Can I recreate that SQS Queue by running the CloudFormation Stack again?

    No, it is not possible. In this case, the SQS can be recreated by creating a new CloudFormation Stack and running it

  • How to create a CloudFormation Stack using a yaml template file through AWS CLI?

    aws cloudformation create-stack --stack-name <STACK_NAME> --profile <PROFILE> --region <REGION> --template-body file://template.yaml


  • How to specify the parameter values in the above command?

    aws cloudformation create-stack --stack-name <STACK_NAME> --profile <PROFILE> --region <REGION> --template-body file://template.yaml --parameters ParameterKey=<PARAMETER_KEY>,ParameterValue=<PARAMETER_VALUE>

Comments

Popular posts from this blog

AWS Route53 - Private Hosted Zone

AWS - Error - An error occurred (ExpiredToken) when calling the DescribeStacks operation: The security token included in the request is expired

Error:   An error occurred (ExpiredToken) when calling the DescribeStacks operation: The security token included in the request is expired. Reason: It occurred when I ran a MAKE command with a profile having expired token (security credentials) Fix: Generate new security credentials (aws sts assume-role) and run the command again

AWS CloudTrail

AWS CloudTrail is an API monitoring service.  It records activities in your account. We can log those activities in S3 bucket It gives visibility to user activities e.g., if you want to know who created an EC2 instance, you can get the answer using CloudTrail Using CloudTrail, you can track changes to AWS resources in your accounts