In this section we are getting started with a CDK application.
We are developing our first CDK project.
So we will start with a cbdc application and development path and step by step together.
So in this video we are going to getting started with a double CDK and we are developing our first CD
application for infrastructure as code.
So we have set up our development environment and ready to writing a CD.
Kay Applications.
Basically we are going to learn about the structure of the HDC project, how to use a construct library
in order to define a resources using code.
How to synthesize and deploy collection of the resource using the Cdcc Toolkit Command Line.
So we will use all these Cdcc synthesise and deploy commands using the Cdcc toolkit, and we are going
to create this kind of application.
If you can see the image on the slide, we when we are creating a cdcc application, we will have one
stack and we can create a constructs which constructs include a Lambda S3 or some are these components
from the application.
After that, this will be exported to the cloud formation with creating a template file and cloud formation
create and resources on the A account.
So let's see how we can do that.
The standard of the Cdcc development workflow is similar to developing with creating React JS application.
As you remember that in the front end applications we can use React JS and the similar workflow like
creating a JS and CDK application.
But of course there is some extra steps, but the main idea is the familiar of the development application
and the CDK application.
What is using it can be used NPM packages and so on.
So let me break down what we are going to do one by one.
The first one is creating the application from the template provided by the CDK application.
So we are going to create a template of the CDK application with using the CDK init command.
And the second step is the adding some code to the application to create resources within the stack.
As you can see this image, we are going to adding some code for adding a squiz S3 for creating these
kind of constructs into the code.
This is the second step and the third step is willing the application.
It is optional.
It is not necessary.
The CDK toolkit already do it for our service.
If if you forget but it is optional, you can also build the application.
The fourth step is synthesize takes in the application in order to create an a cloud formation template.
We are in the fourth step and this is the here you can see this arrow.
We are basically synthesize the ZETEC in the CDK application in order to create cloud formation templates.
And the last step is to deploy, deploy one or more steps to your aid account that we configured before.
So that means after we are creating the cloud formation template, we are deploying the application
using the cloud formation to the target icon.
So we will follow all these steps together.
CDK has some steps that we can follow the best practices when developing our CDK application, and we
can say that the build step creates the syntax and the type errors.
And also the synthesised step is quite logical errors in defining your resources.
We will also see that when we are synthesizing these application, we can face some errors that we are
going to fix.
Another best practice is the deployment may find permission issues.
So so when we are deploying with the CDCC deployed command, it is required some permissions and we
give that permissions on the CDK toolkit.
And as always, you go back to the code and find the problem, fix it.
Then we'll synthesize and deploy again.
This is the lifecycle of the CDK that we are already know in the last sections, so we will follow these
lifecycle when developing the CDK application.
In the next video, I will walk through creating and deploying a simple a CDK application from initializing
the project to the deploying the resulting a cloud formation templates.
The application contains one stack which contains one resource, which is the Amazon S3 bucket.
So that means in the next video we are creating a CDK application.
It will has one stack and we are going to create S3 bucket and we synthesize and see that cloud formation
template file.
Maybe we can deploy it to the target environment.