2.5.4 Prod Environment
Now that we are sure that our code works in dev
its time to push our changes in prod
environment.
๐ Create PR dev to prodโ
- Let's visit github.com and now Create a New Pull Request
- Let's create a new PR and select
base:main
andcompare:dev
as shown below andCreate Pull Request
- The PR will show the expected terraform changes in comments as shown below
๐ Merging PRโ
-
Let's now merge the Pull Request, which will activate the dev workflow to create an EC2 instance in the
prod
environment. Click onMerge Pull Request
and thenConfirm Merge
. -
Visit Github Actions and view that the Terraform Apply will be executed and an EC2 instance will be created in the
prod
environment as shown below
This completes the entire workflow from feature1
-> dev
-> prod