How to configure EC2 and S3

1. Create ec2 instance
    launch instance
    Select the AMIs
    select the Instance type which is required
    click launch
2. Create S3 bucket
    create bucket
    create bucket
3. Go to Security IAM
    click user
    user name (test)
    Access type select both option (programmatic, Aws Managament Console)
    select Custom password (test12)
    click Review
    click create user
    it's showing Access key id and click show and showing Secret access key

4. Go to Groups
    create New Group
    set group name (s3testing)
    Policy Type search (s3)
    s3 full access
    next step
    create group
    select group which create (s3testing)
    click group action type
    add users to group
    select user which is create for s3 bucket access

5. Go to ec2 instance by command line
    open putty
    give the ip address and key
    username (ec2-user)
6. install Packeges
    # yum install gcc libstdc++-devel gcc-c++ curl-devel libxml2-devel openssl-devel mailcap)
    # yum remove fuse
    # cd /usr/src/
    # wget
    # tar xzf fufuse-3.0.1.tar.g
    # cd fuse-3.0.1
    # ./configure --prefix=/usr/local
    # make && make install
    # export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    # ldconfig
    # modprobe fuse
    # touch /etc/passwd-s3fs
    # vi /etc/passwd-s3fs (AWS_ACCESS_KEY_ID:AWS_SECRET_ACCESS_KEY )
    # chmod 644 /etc/passwd-s3fs
    # cd /usr/src/
    # wget
    # tar xzf s3fs-1.74.tar.gz
    # cd s3fs-1.74
    # ./configure --prefix=/usr/local
    # make && make install
    # mkdir /s3mnt
    # chmod 777  /s3mnt
    # s3fs testing_bhandari (bucket name) /s3mnt
    # dh -h
How to configure EC2 and S3 How to configure EC2 and S3 Reviewed by Unknown on October 31, 2017 Rating: 5

No comments:

Powered by Blogger.

Get Updates On

Linux Tutorial

AWS Tutorial

Devops Tutorial

We are going to send you our resources for free. To collect your copy at first, join our mailing list. So don't miss any updates, stay connected!