Hi, and welcomes of his lesson, Samarasinghe throughout the course.
We've been creating lots of terror from files.
And one thing we've also been doing is we've been initialise into projects a lot and we've been creating
a lot of state files.
Now, the state, far as you mentioned, is probably the most important thing in terraformed hands down.
If you lose it, you are pretty much screwed.
And as your infrastructure starts to get more complex, the more important it is to keep up files safe.
One of the ways TerraForm allows us to do that is using something called a remote backend.
And you may be wondering, why are the A.W. management console open?
Well, that is because we can use an as free bucket to store state file that way when we're working
as part of a team.
We have one central place where we keep a vault and we could also enable Bush control, which means
as we make changes.
It's like a snapshot is taken.
You can get more complex and will include linked to it as well, because what you can introduce is something
called St.Paul looking super, all working as part of a big team.
And what you can do is you can prevent engineers overwriting if two people are working with it at the
same time.
Anyway, let's jump into this simple example for now.
So we're gonna type in this very.
Then we're gonna click create buckets and we see here DNS compliant name.
That means it has to be globally unique because a little fun fact.
You can use S3 buckets to host Web sites as long as a static so you can save and cut down a massive
cost.
But the main has to match the bucket you create.
So let's go ahead and enter something unique.
Somebody put my name so T.J. and I'm gonna call it remotes dash back.
And if I want to be really unique, I'll throw in a date.
So let's put in 2020 and copy this, because you're going to need it very shortly.
Will click next.
If you were using this in the workplace, you want to enable versioning.
As I said, it takes like almost like a mini snapshot.
So any time is a change, it's tracked.
Well, click next.
We can block public access.
That's fine, and we click create buckets.
There's nothing in there right now.
So what we'll do is we'll go over to Terrible and go ahead and set this up.