- Newest
- Most votes
- Most comments
Ok, I tried to run New-S3Bucket cmd but got this error:
PS C:!> New-S3Bucket -BucketName website-example -Region us-west-2 New-S3Bucket : Access Denied At line:1 char:1
- New-S3Bucket -BucketName website-example -Region us-west-2
-
- CategoryInfo : InvalidOperation: (Amazon.PowerShe...wS3BucketCmdlet:NewS3BucketCmdlet) [New-S3Bucket], AmazonS3Exception
- FullyQualifiedErrorId : Failed to create the specified bucket. Amazon S3 error: Access Denied,Amazon.PowerShell.Cmdlets.S3.NewS3BucketCmdlet
Write-S3Object led to the same error. What should I do to get these cmdlets working?
@Brettski-AWS, could you please tell me where and how can I give the proper rights for using Write-S3Object? I granted my user FullAccessRight before , but it doesn't seem to work.
In IAM (in the AWS console) try assigning the
AmazonS3FullAccess
policy to your user. I'd caution that you should cut down the permissions the user has in a production environment. Note that if you're part of a larger AWS Organization your ability to perform certain tasks may be restricted by a Service Control Policy.
While you can use Glacier in the way described in the other answer (and there's nothing wrong with that - it was how Glacier was originally designed to operate), Glacier can also be used as a storage class in S3 which can be simpler and takes away the need to handle vaults and so on - you just upload the objects you like and use the appropriate "storage class" parameter to tell S3 to put the files into Glacier.
If you are a newbie then I'd recommend going down the S3 storage class path because it is simpler and easier to deal with. Vaults still have their advantages but if you don't need to then go the other way.
Relevant content
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 months ago
"Access denied" is the standout for me here: You don't appear to have permissions to do that.