Jump to content

Recommended Posts

Posted

Oka s3 bucket lo files load chesi vere project vaallaki s3 bucket details ivvaali.. so that vaallu s3 bucket numdi files read chesukuntaru to upload into their db...each file some 100MB vuntadhi....

 

ARN copied .... vere emi ivvaali... google chesstha if i dont get the answer here :)

Posted
Just now, Mr Mirchi said:

Oka s3 bucket lo files load chesi vere project vaallaki s3 bucket details ivvaali.. so that vaallu s3 bucket numdi files read chesukuntaru to upload into their db...each file some 100MB vuntadhi....

 

ARN copied .... vere emi ivvaali... google chesstha if i dont get the answer here :)

first bucket ki kannalu emina unnayoo check cheyi bro ....

Posted
5 minutes ago, Mr Mirchi said:

Oka s3 bucket lo files load chesi vere project vaallaki s3 bucket details ivvaali.. so that vaallu s3 bucket numdi files read chesukuntaru to upload into their db...each file some 100MB vuntadhi....

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
Skip
 

ARN copied .... vere emi ivvaali... google chesstha if i dont get the answer here :)

Question....U guys using aws organizations?

Posted
25 minutes ago, Mr Mirchi said:

Oka s3 bucket lo files load chesi vere project vaallaki s3 bucket details ivvaali.. so that vaallu s3 bucket numdi files read chesukuntaru to upload into their db...each file some 100MB vuntadhi....

 

 

ARN copied .... vere emi ivvaali... google chesstha if i dont get the answer here :)

Did u check the IAM roles and security groups for the bucket?

 

Posted
10 minutes ago, kevinUsa said:

Did u check the IAM roles and security groups for the bucket?

 

Avathali team vadiki emi details ivvaali ani asking anthe

Posted
1 minute ago, Mr Mirchi said:

Avathali team vadiki emi details ivvaali ani asking anthe

you need to give cross-accout role access, if that team uses different account.

SOURCE BUCKET POLICY:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "DelegateS3Access",
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::DESTINATION_BUCKET_ACCOUNT_NUMBER:root"
            },
            "Action": [
                "s3:ListBucket",
                "s3:GetObject"
            ],
            "Resource": [
                "arn:aws:s3:::SOURCE_BUCKET_NAME/*",
                "arn:aws:s3:::SOURCE_BUCKET_NAME"
            ]
        }
    ]
}

 

DESTINATION IAM USER/ROLE POLICY:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:ListBucket",
                "s3:GetObject"
            ],
            "Resource": [
                "arn:aws:s3:::SOURCE_BUCKET_NAME",
                "arn:aws:s3:::SOURCE_BUCKET_NAME/*"
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
                "s3:ListBucket",
                "s3:PutObject",
                "s3:PutObjectAcl"
            ],
            "Resource": [
                "arn:aws:s3:::DESTINATION_BUCKET_NAME",
                "arn:aws:s3:::DESTINATION_BUCKET_NAME/*"
            ]
        }
    ]
}

 

Posted
13 minutes ago, Spartan said:

you need to give cross-accout role access, if that team uses different account.

SOURCE BUCKET POLICY:


{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "DelegateS3Access",
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::DESTINATION_BUCKET_ACCOUNT_NUMBER:root"
            },
            "Action": [
                "s3:ListBucket",
                "s3:GetObject"
            ],
            "Resource": [
                "arn:aws:s3:::SOURCE_BUCKET_NAME/*",
                "arn:aws:s3:::SOURCE_BUCKET_NAME"
            ]
        }
    ]
}

 

DESTINATION IAM USER/ROLE POLICY:


{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:ListBucket",
                "s3:GetObject"
            ],
            "Resource": [
                "arn:aws:s3:::SOURCE_BUCKET_NAME",
                "arn:aws:s3:::SOURCE_BUCKET_NAME/*"
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
                "s3:ListBucket",
                "s3:PutObject",
                "s3:PutObjectAcl"
            ],
            "Resource": [
                "arn:aws:s3:::DESTINATION_BUCKET_NAME",
                "arn:aws:s3:::DESTINATION_BUCKET_NAME/*"
            ]
        }
    ]
}

 

They dont have any account... they r going to access for the forst time to read files...So basically i need to give them new IAM user with read access and then ARN of the bucket..

question is do i need to give them the access ys as weel?

Posted
Just now, Mr Mirchi said:

They dont have any account... they r going to access for the forst time to read files...So basically i need to give them new IAM user with read access and then ARN of the bucket..

question is do i need to give them the access ys as weel?

how are they accessing the s3 bucket.?

DB lo em upload chestaru..? file names aa.?

if yes, create iam user , grant permissions to read objects ..they can use aws cli to get names and load into DB.

Posted
3 minutes ago, Mr Mirchi said:

They dont have any account... they r going to access for the forst time to read files...So basically i need to give them new IAM user with read access and then ARN of the bucket..

question is do i need to give them the access ys as weel?

If it is new department/project go with “aws organizations”...First...before creating iam user

Posted
1 hour ago, Mr Mirchi said:

Oka s3 bucket lo files load chesi vere project vaallaki s3 bucket details ivvaali.. so that vaallu s3 bucket numdi files read chesukuntaru to upload into their db...each file some 100MB vuntadhi....

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
Skip
 

ARN copied .... vere emi ivvaali... google chesstha if i dont get the answer here :)

Iam role

Posted
2 hours ago, Spartan said:

how are they accessing the s3 bucket.?

DB lo em upload chestaru..? file names aa.?

if yes, create iam user , grant permissions to read objects ..they can use aws cli to get names and load into DB.

Nenu Ade chepite dobbadu 

Posted
3 hours ago, Spartan said:

how are they accessing the s3 bucket.?

DB lo em upload chestaru..? file names aa.?

if yes, create iam user , grant permissions to read objects ..they can use aws cli to get names and load into DB.

File names kaadhu.. files read chesi valla db lo binary format lo store chesukuntaru .. some 1900 files... one time task le.. 

Posted
3 hours ago, Mr Mirchi said:

They dont have any account... they r going to access for the forst time to read files...So basically i need to give them new IAM user with read access and then ARN of the bucket..

question is do i need to give them the access ys as weel?

 

Make sure you have your bucket policy updated with readonly access for that user you've created

   {
            "Id": "bucketPolicy",
            "Statement": [
                    {
                            "Action": "s3:*",
                            "Effect": "Deny",
                            "NotPrincipal": {
                                    "AWS": [
                                            "arn:aws:iam::1234567890:user/alloweduser"
                                    ]
                            },
                            "Resource": [
                                    "arn:aws:s3:::examplebucket",
                                    "arn:aws:s3:::examplebucket/*"
                            ]
                    }
            ],
            "Version": "2012-10-17"
    }

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...