S3 Bucket action doesn't apply to any resources
2022-02-14
Question I'm following the instructions from this answer to generate the follow S3 bucket policy: { "Id": "Policy1495981680273", "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1495981517155", "Action": [ "s3:GetObject" ], "Effect": "Allow", "Resource": "arn:aws:s3:::surplace-audio", "Principal": "*" } ] } I get back the following error: Action does not apply to any resource(s) in statement What am I missing from my policy? Answer From IAM docs, http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html#Action Some services do not let you specify actions for individual resources; instead, any actions that you list in the Action or NotAction element apply to all resources in that service.…
S3 Static Website Hosting Route All Paths to Index.html
2022-02-14
Question I am using S3 to host a javascript app that will use HTML5 pushStates. The problem is if the user bookmarks any of the URLs, it will not resolve to anything. What I need is the ability to take all url requests and serve up the root index.html in my S3 bucket, rather than just doing a full redirect. Then my javascript application could parse the URL and serve the proper page.…
scp (secure copy) to ec2 instance without password
2022-02-14
Question I have an EC2 instance running (FreeBSD 9 AMI ami-8cce3fe5), and I can ssh into it using my amazon-created key file without password prompt, no problem. However, when I want to copy a file to the instance using scp I am asked to enter a password: scp somefile.txt -i mykey.pem root@my.ec2.id.amazonaws.com:/ Password: Any ideas why this is happening/how it can be prevented? Answer I figured it out. I had the arguments in the wrong order.…
Setting up FTP on Amazon Cloud Server [closed]
2022-02-14
Question Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. </div> This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered. Closed 4 years ago.…
SSH to Elastic Beanstalk instance
2022-02-14
Question I just signed up for Amazon's new Elastic Beanstalk offering. What I can't figure out is how to SSH to a Beanstalk instance. I don't have a private key because Beanstalk generated the instance on my behalf. Answer I found it to be a 2-step process. This assumes that you've already set up a keypair to access EC2 instances in the relevant region. Configure Security Group In the AWS console, open the EC2 tab.…
WARNING: UNPROTECTED PRIVATE KEY FILE! when trying to SSH into Amazon EC2 Instance
2022-02-14
Question I'm working to set up Panda on an Amazon EC2 instance. I set up my account and tools last night and had no problem using SSH to interact with my own personal instance, but right now I'm not being allowed permission into Panda's EC2 instance. Getting Started with Panda I'm getting the following error: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ Permissions 0644 for ‘~/.ec2/id_rsa-gsg-keypair’ are too open. It is recommended that your private key files are NOT accessible by others.…
What data is stored in Ephemeral Storage of Amazon EC2 instance?
2022-02-14
Question I am trying to stop a Amazon EC2 instance and get the warning message Warning: Please note that any data on the ephemeral storage of your instance will be lost when it is stopped. My Question What data is stored in ephemeral storage of an Amazon EC2 instance? Answer Basically, root volume (your entire virtual system disk) is ephemeral, but only if you choose to create AMI backed by Amazon EC2 instance store.…