1 00:00:00,000 --> 00:00:02,220 ‫So here is a handy feature 2 00:00:02,220 --> 00:00:03,690 ‫of Elastic Beanstalk. 3 00:00:03,690 --> 00:00:06,900 ‫It is allowing you to clone an existing environment 4 00:00:06,900 --> 00:00:08,160 ‫into a new environment 5 00:00:08,160 --> 00:00:10,920 ‫and it will have the exact same configuration 6 00:00:10,920 --> 00:00:12,030 ‫which is extremely helpful 7 00:00:12,030 --> 00:00:14,850 ‫if you already have a production version of your application 8 00:00:14,850 --> 00:00:16,410 ‫and you want to deploy a test version 9 00:00:16,410 --> 00:00:17,880 ‫with the exact same settings, 10 00:00:17,880 --> 00:00:19,410 ‫then you would just do a cloning 11 00:00:19,410 --> 00:00:21,990 ‫between your prod environment and your new environment 12 00:00:21,990 --> 00:00:23,100 ‫for testing. 13 00:00:23,100 --> 00:00:25,200 ‫All the resources and the configuration 14 00:00:25,200 --> 00:00:27,480 ‫of the original environment are preserved. 15 00:00:27,480 --> 00:00:29,820 ‫So that includes the load balancer type 16 00:00:29,820 --> 00:00:32,820 ‫and the configuration, the RDS database type 17 00:00:32,820 --> 00:00:34,590 ‫although if you have an RDS database 18 00:00:34,590 --> 00:00:36,180 ‫the data is not going to be preserved, 19 00:00:36,180 --> 00:00:39,000 ‫but the configuration of your RDS database will, 20 00:00:39,000 --> 00:00:40,860 ‫environment variables and so on. 21 00:00:40,860 --> 00:00:42,480 ‫And after cloning an environment 22 00:00:42,480 --> 00:00:44,220 ‫you can change its settings. 23 00:00:44,220 --> 00:00:46,860 ‫So let's quickly go see in the console how this works. 24 00:00:46,860 --> 00:00:48,240 ‫So let's have a look at cloning. 25 00:00:48,240 --> 00:00:50,640 ‫So if I click on My Application dev, 26 00:00:50,640 --> 00:00:52,860 ‫Action and then Clone Environment 27 00:00:52,860 --> 00:00:56,040 ‫I have the option to clone it into a new environment. 28 00:00:56,040 --> 00:00:59,640 ‫For example, dev two or test or whatever you want. 29 00:00:59,640 --> 00:01:02,490 ‫And as you can see, the options are quite limited. 30 00:01:02,490 --> 00:01:06,000 ‫You can clone into a new platform version if you wanted to 31 00:01:06,000 --> 00:01:08,640 ‫or not even actually, and choose a service role. 32 00:01:08,640 --> 00:01:10,530 ‫And then you click on Clone and this will create 33 00:01:10,530 --> 00:01:13,980 ‫an entirely same environment hence cloning. 34 00:01:13,980 --> 00:01:16,470 ‫Of course, then once you have cloned an environment 35 00:01:16,470 --> 00:01:18,240 ‫you can customize its settings 36 00:01:18,240 --> 00:01:19,800 ‫thanks to the Configuration tab. 37 00:01:19,800 --> 00:01:20,820 ‫But I just went through the option, 38 00:01:20,820 --> 00:01:23,820 ‫and again, the goal of it is maybe to deploy a new version 39 00:01:23,820 --> 00:01:26,250 ‫to do some tests and then to perform 40 00:01:26,250 --> 00:01:29,070 ‫a swap of the environment to name. 41 00:01:29,070 --> 00:01:30,390 ‫Okay, that's it for this lecture. 42 00:01:30,390 --> 00:01:33,423 ‫I hope you liked it, and I will see you in the next lecture.