By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Stack Refactoring for Enhanced Infrastructure Management in AWS CloudFormation Service
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > Stack Refactoring for Enhanced Infrastructure Management in AWS CloudFormation Service
News

Stack Refactoring for Enhanced Infrastructure Management in AWS CloudFormation Service

News Room
Last updated: 2025/02/13 at 12:51 PM
News Room Published 13 February 2025
Share
SHARE

AWS released a new feature within its CloudFormation service, enabling users to move resources between stacks. According to the company, this feature will improve modularity, organization, and alignment with changing business requirements.

Stack refactoring is a strategic approach to restructuring CloudFormation stacks that involves moving resources from one stack to another or renaming a resource with a new logical ID within the same stack. This functionality is particularly valuable for developers that aim to improve efficiency and clarity, break down large, monolithic stacks into smaller, more manageable ones, reorganize resources to better align with application architectures or organizational structures, and enhance the readability of templates by renaming the logical IDs of resources. Additionally, refactoring stacks improves resource management and aids in cost optimization through precise scaling and allocation.

Kevin DeJong, a software development engineer – Infrastructure as Code at AWS, writes:

Stack refactoring in AWS CloudFormation represents a significant advancement in infrastructure management. It offers a safer and more efficient way to reorganize your cloud resources without disruption. This feature eliminates the traditional need to remove a resource with a retain policy and then import it when restructuring stacks, helping you reduce misconfiguration risk and save time.

Using the AWS CLI to perform the stack refactoring, it would look like this:


aws cloudformation create-stack --stack-name new-stack --template-body file://after.yaml

aws cloudformation create-stack --stack-name old-stack --template-body file://before.yaml

aws cloudformation update-stack --stack-name new-stack --use-previous-template

aws cloudformation update-stack --stack-name old-stack

In comparison, AWS CloudFormation tooling like Azure CLI and Bicep, along with Terraform, have stack refactoring and infrastructure management features, each offering unique features tailored to different environments:

  • Azure CLI allows for comprehensive management of Azure deployment stacks across various scopes, enabling actions on unmanaged resources,
  • while Bicep, a domain-specific language for Azure Resource Manager, simplifies the creation and management of deployment stacks with its readable syntax and module support.
  • In contrast, Terraform by HashiCorp provides an infrastructure-as-code approach that supports multi-cloud environments and includes refactoring capabilities through features like the moved block and terraform state mv command.

Will Dady, a tech and coding enthusiast, posted on Bluesky:

Great to see AWS has now added a “stack refactoring” feature to CloudFormation! This should prevent the need to delete-then-import to move resources between stacks, which, in my experience, has always been a butt-clenching experience.

Lastly, AWS states that the refactoring stack feature is available in all AWS regions that offer AWS CloudFormation.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article What Makes Warren Buffett So Successful?
Next Article At the Paris AI Action Summit, the Global South rises
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

The 50-inch 4-Series Fire TV just hit its lowest price ever by a landslide
News
News All Stage 2025: Prepare 4 VC’s Jason Kraus will instruct on how to turn chaos into momentum | News
News
I tested four camera phones and the Samsung Galaxy S25 still has a shutter lag problem
News
Africa’s digital transformation: Lessons from telecom and banking
Computing

You Might also Like

News

The 50-inch 4-Series Fire TV just hit its lowest price ever by a landslide

3 Min Read
News

News All Stage 2025: Prepare 4 VC’s Jason Kraus will instruct on how to turn chaos into momentum | News

3 Min Read
News

I tested four camera phones and the Samsung Galaxy S25 still has a shutter lag problem

11 Min Read
News

Boy, 12, shot dead at playground as police launch urgent manhunt for killer

4 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?