How to create S3 bucket using Terraform | Terraform AWS Cloud Tutorial

Learn how to create s3 bucket in AWS using Terraform. In this video I will explain how you can setup and create S3 bucket in Terraform using code example.
Connect with me on LinkedIn: / nasiullha-chaudhari-5a...
Terraform is an insfrastructure as code tool used to create resources on different providers like AWS, Azure, GCP and other providers.
As we are creating S3 bucket in AWS we will be using AWS Provider: registry.terraform.io/provide...
Official Terraform documentation for creating AWS S3 bucket aws_s3_bucket : registry.terraform.io/provide...
#terraform code
resource "aws_s3_bucket" "b" {
bucket = "my-tf-test-bucket12312"
acl = "private"
versioning {
enabled = true
}
tags = {
Name = "My bucket"
Environment = "Dev"
}
}
--------------------------------------------------------------------------------------------------------------------
How to become Devops engineer from scratch : • Fresher to Remote DevO...
Tutorial on How to create EC2 instance with keypair in Terraform : • How to create AWS Keyp...
create RDS Database in Terraform : • How to deploy MySQL Da...
Learn How to create VPC in Terraform : • How to create AWS VPC ...
---------------------------------------------------------------------------------------------------------------------
#aws #terraform
create s3 bucket using terraform,create aws s3 bucket using terraform,s3 bucket terraform,s3 bucket terraform example,terraform s3 bucket creation,terraform s3 bucket example,how to create s3 bucket using terraform,terraform s3 bucket module,create s3 using terraform,create aws s3 bucket,s3 bucket in aws terraform,aws s3 bucket tutorial terraform,how to create s3 bucket in aws using terraform in telugu,terraform tutorial,s3 bucket terraform code,s3 terraform demo,create s3 bucket using terraform,create aws s3 bucket using terraform,s3 bucket terraform,s3 bucket terraform example,terraform s3 bucket creation,terraform s3 bucket example,how to create s3 bucket using terraform,terraform s3 bucket module,create s3 using terraform,create aws s3 bucket,s3 bucket in aws terraform,aws s3 bucket tutorial terraform,how to create s3 bucket in aws using terraform in telugu,terraform tutorial,s3 bucket terraform code,s3 terraform demo
create s3 bucket using terraform,create aws s3 bucket using terraform,s3 bucket terraform,s3 bucket terraform example,terraform s3 bucket creation,terraform s3 bucket example,how to create s3 bucket using terraform,terraform s3 bucket module,create s3 using terraform,create aws s3 bucket,s3 bucket in aws terraform,aws s3 bucket tutorial terraform,how to create s3 bucket in aws using terraform in telugu,terraform tutorial,s3 bucket terraform code,s3 terraform demo
create s3 bucket using terraform,create aws s3 bucket using terraform,s3 bucket terraform,s3 bucket terraform example,terraform s3 bucket creation,terraform s3 bucket example,how to create s3 bucket using terraform,terraform s3 bucket module,create s3 using terraform,create aws s3 bucket,s3 bucket in aws terraform,aws s3 bucket tutorial terraform,how to create s3 bucket in aws using terraform in telugu,terraform tutorial,s3 bucket terraform code,s3 terraform demo
,create s3 bucket using terraform,create aws s3 bucket using terraform,s3 bucket terraform,s3 bucket terraform example,terraform s3 bucket creation,terraform s3 bucket example,how to create s3 bucket using terraform,terraform s3 bucket module,create s3 using terraform,create aws s3 bucket,s3 bucket in aws terraform,aws s3 bucket tutorial terraform,how to create s3 bucket in aws using terraform in telugu,terraform tutorial,s3 bucket terraform code,s3 terraform demo
create s3 bucket using terraform,create aws s3 bucket using terraform,s3 bucket terraform,s3 bucket terraform example,terraform s3 bucket creation,terraform s3 bucket example,how to create s3 bucket using terraform,terraform s3 bucket module,create s3 using terraform,create aws s3 bucket,s3 bucket in aws terraform,aws s3 bucket tutorial terraform,how to create s3 bucket in aws using terraform in telugu,terraform tutorial,s3 bucket terraform code,s3 terraform demo

Пікірлер: 40

  • @luismontero5760
    @luismontero5760 Жыл бұрын

    Excelent, but if I want to create an S3 bucket to save my terraform state How I can do? If i put this in my terraform config It will try to create the same S3 bucket in every commit or not?

  • @cloudchamp

    @cloudchamp

    Жыл бұрын

    Nice question No. Terraform is going to have the record of s3 bucket created on first apply so it will compare the terraform state and not create bucket on each commit.

  • @luismontero5760

    @luismontero5760

    Жыл бұрын

    @@cloudchamp Thanks for your answer, right know I'm having an issue 'cause I'm using Github Actions, I already create the key pair, vpc, SG, EC2.. Know I'm trying to add S3 backend but I can't 'cause S3 bucket is no created, so, I commented that part but now If I commit it said "keypair already exist" ... Have I to close the student session in AWS and open another one? in order to create the S3 bucket first and after that add backend? idk

  • @nasiullachaudhari6841

    @nasiullachaudhari6841

    Жыл бұрын

    @@luismontero5760 if possible create a S3 bucket manually and then add backend details so it won't be managed by terraform👍

  • @nasiullachaudhari6841

    @nasiullachaudhari6841

    Жыл бұрын

    @@luismontero5760 and the bucket should be created first and then backend config should be added. Check the video by cloudchamp on how to setup S3 as a backend for terraform state 👍

  • @blazedteen917
    @blazedteen917 Жыл бұрын

    Very helpful terraform tutorial 🙏

  • @gamingchamp3070
    @gamingchamp3070 Жыл бұрын

    Perfect! Thank you for sharing this aws s3 video

  • @cloudchamp

    @cloudchamp

    Жыл бұрын

    You're welcome!

  • @blazedteen917
    @blazedteen917 Жыл бұрын

    This is amazing,!!!🙏

  • @nabichaudhari7536
    @nabichaudhari7536 Жыл бұрын

    Excellent!

  • @nabichaudhari7536
    @nabichaudhari7536 Жыл бұрын

    Created my S3 bucket using this

  • @mhenterprises5804
    @mhenterprises5804 Жыл бұрын

    Informative

  • @cloudchamp

    @cloudchamp

    Жыл бұрын

    Thank You 🙏

  • @nabi140
    @nabi140 Жыл бұрын

    👍

  • @cloudchamp

    @cloudchamp

    Жыл бұрын

    Thank You 🙏

  • @bhavikattipraveen3030
    @bhavikattipraveen3030Ай бұрын

    what if I want to update the only tags of already existing s3 bucket like new tag needs to be updated

  • @user-ju1co7wu9b
    @user-ju1co7wu9b10 ай бұрын

    Thank you

  • @cloudchamp

    @cloudchamp

    10 ай бұрын

    You are welcome 🤗

  • @vinaykumar-pj8ce
    @vinaykumar-pj8ce Жыл бұрын

    It's great to learn so much from your videos :) By the way, I have one doubt . what If someone from the developer team modifies or deletes the resource without our knowledge. When we run Terraform apply, what will happen?

  • @cloudchamp

    @cloudchamp

    Жыл бұрын

    If they do it through the console terraform will not know and only add changes defined in terraform configurations 👍🏻 Because editing anything in console will not change the state file

  • @mallikarjunrterdal

    @mallikarjunrterdal

    Жыл бұрын

    Technically, when you are using Terraform, you should give only read only permissions to all users other than the terraform user. This will stop people from intentional or unintentional modification of AWS env. But it is not possible all the times. In that case, when someone makes changes to AWS env directly, Terraform will not get to know that someone has modified the state. So it will try to restore it to the previous state. So, if you want your changes to stay, make sure you commit your changes to Terraform so that you don't lose your data/env

  • @vinaykumar-pj8ce

    @vinaykumar-pj8ce

    Жыл бұрын

    @@mallikarjunrterdal Thank you

  • @durgeshverma712
    @durgeshverma712 Жыл бұрын

    Very helpful and have questions how to turn on termination option EC2 by terraform

  • @cloudchamp

    @cloudchamp

    Жыл бұрын

    Hello Durgesh not clear what are you asking? Are you talking about deletion protection or are you asking how to delete instance using terraform?

  • @durgeshverma712

    @durgeshverma712

    Жыл бұрын

    @@cloudchamp ec2 termination protection

  • @cloudchamp

    @cloudchamp

    Жыл бұрын

    @@durgeshverma712 disable_api_termination = true, will enable termination protection for the instance. Hope this helps :)

  • @durgeshverma712

    @durgeshverma712

    Жыл бұрын

    @@cloudchamp if possible add this when u create terraform vdo .

  • @yucel2378
    @yucel23788 ай бұрын

    hi when I try to create that I recieve creating Amazon S3 (Simple Storage) Bucket (yucelfuatbucket): AccessDenied: Access Denied I add permission to my aws user to create s3 bucket but I still get this error. Please help

  • @cloudchamp

    @cloudchamp

    8 ай бұрын

    Make sure you have and also the bucket name is unique

  • @git_t0v
    @git_t0v Жыл бұрын

    Very useful content. I just don't understand why content creators have to work and talk so fast. Just slow it down some.

  • @cloudchamp

    @cloudchamp

    Жыл бұрын

    Noted

  • @MrKiru100
    @MrKiru100 Жыл бұрын

    How to enable server access login??

  • @cloudchamp

    @cloudchamp

    Жыл бұрын

    in aws s3 resource add logging block defining the bucket where you want to store the logs along with target_prefix. For more information and syntax I would highly recommend checking the Official Terraform documentation.

  • @KoljaMineralka
    @KoljaMineralka Жыл бұрын

    you are using old syntax, bucket acl should be a separate resource, it was in the documentation in front of you, same with bucket lifecycle rules

  • @cloudchamp

    @cloudchamp

    Жыл бұрын

    Yes you can use separate resource for acl and versioning 👍🏻 but this works too!

  • @KoljaMineralka

    @KoljaMineralka

    Жыл бұрын

    @@cloudchamp in production you're suppose to maintain the code up to date, when you'll be forced to update syntaxt after 1-2 years it will be painful, trust me. Keep on posting new vids!

  • @cloudchamp

    @cloudchamp

    Жыл бұрын

    @@KoljaMineralka I agree!

  • @kasirbarati3336
    @kasirbarati3336 Жыл бұрын

    there was a obvious deprecation note there, how did you ignore that? kzread.info/dash/bejne/rIF5w6eGgN21p9Y.html

  • @MrMadmaggot
    @MrMadmaggot3 ай бұрын

    But how u connected the terraform with aws? wtf?

  • @cloudchamp

    @cloudchamp

    3 ай бұрын

    How to Connect AWS with Terraform | Set Credentials & Configure kzread.info/dash/bejne/g5yhqNClksXdgJc.html