How to create PROD environment from my DEV environment?
See original GitHub issue@ericclemmons @RossWilliams Currently happily using aws-amplify v1.1.29
, other versions have left my project shaky so i am happy in this one. I’m almost at a stage where i’m ok to have my amplify project (which i believe i set up with a DEV denomination), to a PROD one.
Could someone let me know, step by step how i can safely make a duplicate/replica PROD environment of my DEV environment? Also, how, when i’m happy with updates in DEV, how do i safely make these changes available in the PROD environment?
p.s. i’m not using GitHub
Thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Building & Releasing to Deployment Environments - Harness
Leverage multiple deployment environments to thoroughly validate changes before pushing them to production. Make sure that your pre-prod or ...
Read more >Create target environment - Azure Pipelines - Microsoft Learn
Create an environment ... Select Pipelines > Environments > Create environment. ... Enter information for the environment, and then select Create.
Read more >How to create a development environment - SashiDo.io
All you need to do is navigate to your SashiDo dashboard and click on the “Create New App” button at the bottom right...
Read more >Create Production and Development Environments on AWS
main.tf – configures the resources that make up your infrastructure. · variables.tf- declares variables to mark the dev and prod environments, along with...
Read more >Set up projects for development and production environments
Create a project for your development environment. · Implement the snippet in the head tag for that environment. · Add the collaborators who...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can create many environments at practically zero cost as long as you don’t use the @searchable directive. The cli command is:
amplify env add
and follow the prompts to create a new environment. Then you can push to that environmentamplify push --yes
and switch back and forth between environmentsamplify env checkout DEV|PROD|TEST|NEXT
For my iOS app I switch back and forth between environments by using a ENV files that holds information about user pool ids, client ids, endpoints, etc. I then setup a schema in XCode for each environment and set the ENVFILE environment variable for the run process. I also change the bundle ID and display name for each environment so that i can have 4 versions of my app on a phone at once.
What you need to remember about deploying to production - after the initial deployment, you can’t modify more than 1 GSI at a time on each DynamoDB table. You need to be aware that if you schema evolves greatly, you then need to plan out multiple deploys.
For production you need to consider a few other items. These are some random things to check that I can remember off the top of my head. You likely want to consult a more general “how to manage an AWS account” guide:
Hi there, I’ve got a question regarding to this. How can i replicate/copy data (data from DynamoDB, user data from Cognito) from the dev environment to the pro environment? Is there a way? How can i do it? Could anyone please to advise me?( Sorry if my question is silly because i’m new to this field.!)