Newbie in AWS Glacier - how to connect to my storage and upload files there via PowerShell?

0

Hi,

I'm a newbie with S3 and would like to know step by step how to connect, upload and read file(s) to my S3 Glacier storage via PowerShell? Link https://docs.aws.amazon.com/powershell/latest/reference/items/New-GLCVault.html looks very uninformative and convoluted regarding credentials to be used for connecting, and also has no samples to play with. Could anybody describe me step by step how to connect from my PowerShell console and do all the described steps for S3? AWSPowerShell.NetCore was installed on my Win machine, so cmdlets seem to be available. Thanks in advance!

질문됨 3달 전258회 조회
4개 답변
0

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?

답변함 2달 전
  • "Access denied" is the standout for me here: You don't appear to have permissions to do that.

0

@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.

답변함 2달 전
  • 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.

0
profile pictureAWS
전문가
kentrad
답변함 3달 전
0

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.

profile pictureAWS
전문가
답변함 3달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠