Preserve aws deployment state in a file and then use to redeploy.
0
How can we achieve following? Is there a command/cli for doing this:
Preserve aws deployment state in a file and then use to redeploy. Use this file to deploy and clean and then redploy to bring in same running instances and services. Can we use Sam or another command to save the state in a yaml or a similar file?
- command save-state <aws-state.yaml>
- command clean-existing-state //wipes and cleans off aws deployed state, can probably turn off or even remove
- command restore-state <aws-state.yaml>
- vim aws-state.yaml //manually make certain changes
- command clean-existing-state
- command restore-state <aws-state.yaml> //redploy updated state
Thanks
asked a month ago1 views
1 Answers
0
If you want to define a repeatable deployment that you can use to manage your infrastructure, you've just defined cloudformation
While there are some attempts to turn existing infrastructure into CloudFormation, such as Cloudformer - it's quite difficult to do this reliably.
You can use Drift Detection to show where your infrastructure has changed
answered a month ago
Relevant questions
Amplify diff deploy: how to only redeploy on changes to a part of a monorepo?
asked 3 months agoNo option to retry failed App Runner service deployments
asked a month agoQuickSight: how to use data hosted on SharePoint?
asked 5 months agoCross account ecs fargate blue/green deploy from code pipeline
asked 6 months agoPreserve aws deployment state in a file and then use to redeploy.
asked a month agohow to automatically deploy a code to ecs in AWS pipeline
asked 5 months agoHow to deploy 4 lambdas in typescript using a code pipeline ?
asked 2 months agoHow to handle failed lambda functions
asked 2 months agoHow does AppConfig service figure out the targets for a deployment?
asked 2 years agoCodeDeploy, deployment failed after EC2 changed instance type
asked 3 years ago