Category : amazon-web-services

I’ve created a .platform/nginx/conf.d/elasticbeanstalk/laravel.conf Where i put the following : fastcgi_param REMOTE_ADDR $http_x_forwarded_for I need to rewrite REMOTE_ADDR, so i can use superglobal $_SERVER[‘REMOTE_ADDR’] to get the visitor’s IP, not the loadbalancer’s. But this doesn’t seem to work, i’ve also tried the same using ebextensions to elasticbeanstalk/php.conf – but didn’t work. When adding the line ..

Read more

Here is my problem. 1.This is my S3 bucket and in Reportes folder are my Reports. when I code; files = Storage::disk(‘s3’)->files(‘Reportes’); I get something like this: (All my reportes Stored) And "Reportes/1059660_Julio_2020.pdf" is what it takes to download it with Storage::disk(‘s3’)->get($thisone); right ? WELL! My Problem is when I try to download it Laravel ..

Read more

I’m using Laravel 7 and AWS elastic beanstalk I link the normal domain without any problem and it works but when I link the project with HTTPS I got this error: Mixed Content: The page at ‘https://my-domain.com’ was loaded over HTTPS, but requested an insecure stylesheet ‘http://www.my-domain.com/cp/assets/css/components/portlets/portlet.css’. This request has been blocked; the content must ..

Read more

I have group on cognito : user, owner, administrator, etc. logic : class CognitoService { public function adminAddUserToGroup($username, $group) { $this->client->adminAddUserToGroup([ ‘GroupName’ => $group, ‘UserPoolId’ => $this->user_pool_id, ‘Username’ => $username, ]); return true; } } class AuthController extends Controller { public function register(Request $request) { // create user $username = ‘[email protected]’; $group = ‘owner’; $this->cognitoClient->adminAddUserToGroup($username, ..

Read more

I’m using AWS Elastic Beanstalk to deploy my Laravel project and deployed the codes this early year. The weird thing is, when I check some of the files were automatically generated as a backup file using the codes from January 2020 even though we’ve updated the codes recently. Below is the picture of the files ..

Read more

I have this mail test class to send email to user by SES: class Test extends Mailable { use Queueable, SerializesModels; public function build() { return $this->markdown(‘admin.emails.email-user2’); } } by tinker: Mail::to(‘[email protected]’)->send(new AppMailAdminTest()); Even I opened case and convert from sandbox to production: My .env: MAIL_MAILER=ses MAIL_HOST=smtp.mailtrap.io MAIL_PORT=null MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null [email protected] MAIL_FROM_NAME="${APP_NAME}" AWS_ACCESS_KEY_ID=AK###IAV66######### AWS_SECRET_ACCESS_KEY=P+G0x21#######ZJklHhRZbh#####kMu ..

Read more

I create new Elasticbeanstalk project version PHP 7.3 running on 64bit Amazon Linux I need to install supervisor for running queue work, so I enter to the project dir which is /var/app/current/ by SHH connection then run this command: sudo yum install supervisor I got this: [[email protected]###-##-10-##01 current]$ sudo yum install supervisor Loaded plugins: priorities, ..

Read more

Thank you in advance I have my s3 bucket and set the credentials to the below environment variable AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_DEFAULT_REGION= AWS_BUCKET= FILESYSTEM_DRIVER=s3 I have installed "league/flysystem-aws-s3-v3": "^1.0" when I am trying to upload the file with the below code Storage::disk(‘s3’)->put($filePath, file_get_contents($request->file(‘image’)), ‘public’); it is giving me below error local.ERROR: Error executing "PutObject" on "{bucket_path}/images/blogs/b1fdcce2ebfaf7cbf6e929789935be9bblog.jpg"; ..

Read more

An email from Amazon AWS states: Beginning October 1st, 2020, Amazon SES will only support requests signed using Signature Version 4. You can easily identify API requests that use Signature Version 3 by looking at the request headers. Requests that use the Signature Version 3 resemble the following example: X-Amzn-Authorization: AWS3-HTTPS AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE,Algorithm=HMACSHA256,Signature=lBP67vCvGl … I have ..

Read more

I need to connect to SSH to connect to amazon code-commit so my steps: create new ssh called: asw-code-commit with asw-code-commit.pub upload the ssh to asw user IAM and got my SSH key ID update config in .ssh folder to this: Host git-codecommit.*.amazonaws.com User APKAV66BIP######## IdentityFile ~/.ssh/aws-code-commit save and connect to ssh by this: ssh ..

Read more

We are currently using a lumen framework provided service layer on top of aws-sdk-php called aws-sdk-php-laravel. We are facing some throttling issue with ELB (describeTags).(AWS) Throttling (client): Rate exceeded – <ErrorResponse xmlns="http://elasticloadbalancing.amazonaws.com/ $client = app(‘aws’)->createClient(‘ElasticLoadBalancingV2’, [ ‘region’ => $region, ‘stats’ => [ ‘retries’ => true, ‘timer’ => false, ‘http’ => true ]]); This is the ..

Read more

I’m working from a Windows environment. I have just deployed a Laravel app to Elastic Beanstalk using a source bundle, and I have set the document root to ‘/public’. However, when I navigate to the URL, I receive this error message: file_put_contents(C:wamp64wwwpersonal-crmstorageframework/sessions/1DOesd8X7yUmaIabJIy8B9QG0dvmVe34ajcdgLjy): failed to open stream: No such file or directory Prior to uploading, I ..

Read more

I have created a Laravel application and used node js with socket.io for the chat and I want both the application to run on the same domain and my website is hosted on the AWS server. I had installed an SSL certificate using ACM When I open my Laravel website (https//:example.com) on a browser it ..

Read more