Can’t push image to Amazon ECR – fails with “no basic auth credentials”

if you run $(aws ecr get-login –region us-east-1) it will be all done for you Update July 2021: get-login is now deprecated in version 1 of the AWS CLI. If you’re using version 2 of the AWS CLI, you must use get-login-password. You can pipe the output of get-login-password to your docker login command to … Read more

S3 – Access-Control-Allow-Origin Header

Usually, all you need to do is to “Add CORS Configuration” in your bucket properties. The <CORSConfiguration> comes with some default values. That’s all I needed to solve your problem. Just click “Save” and try again to see if it worked. If it doesn’t, you could also try the code below (from alxrb answer) which … Read more

When to use Amazon Cloudfront or S3

Amazon S3 is designed for large-capacity, low-cost file storage in one specific geographical region.* The storage and bandwidth costs are quite low. Amazon CloudFront is a Content Delivery Network (CDN) which proxies and caches web data at edge locations as close to users as possible. When end users request an object using this domain name, … Read more

What data is stored in Ephemeral Storage of Amazon EC2 instance?

Basically, root volume (your entire virtual system disk) is ephemeral, but only if you choose to create AMI backed by Amazon EC2 instance store. If you choose to create AMI backed by EBS then your root volume is backed by EBS and everything you have on your root volume will be saved between reboots. If … Read more

S3 Static Website Hosting Route All Paths to Index.html

It’s very easy to solve it without url hacks, with CloudFront help. Create S3 bucket, for example: react Create CloudFront distributions with these settings: Default Root Object: index.html Origin Domain Name: S3 bucket domain, for example: react.s3.amazonaws.com Go to Error Pages tab, click on Create Custom Error Response: HTTP Error Code: 403: Forbidden (404: Not … Read more

AWS ssh access ‘Permission denied (publickey)’ issue [closed]

For Ubuntu instances: chmod 600 ec2-keypair.pem ssh -v -i ec2-keypair.pem ubuntu@ec2-174-129-185-190.compute-1.amazonaws.com For other instances, you might have to use ec2-user instead of ubuntu. Most EC2 Linux images I’ve used only have the root user created by default. See also: http://www.youtube.com/watch?v=WBro0TEAd7g

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)