New answers tagged amazon-web-services
1
vote
What Linux distribution is the Amazon Linux AMI based on?
The easiest place to get this answer is from the horses mouth.
"AL2023 is RPM-based and includes components sourced from multiple versions of Fedora and other distributions, such as CentOS 9 ...
0
votes
Use IAM to Allow User to Edit AWS / EC2 Security Groups?
You should define the below permissions under the policy assigned to the IAM. this will restrict the user access to ONLY change the INBOUND/OTBOUND rules for a SPECIFIC security group. (Make sure to ...
0
votes
AWS SSM InvalidDocument: Document with name SSM-SessionManagerRunShell does not exist
Turns out this was a transient issue - there is a delay between switching from basic/standard to advanced tiers.
0
votes
Locked out of my own server: getting "Too many authentication failures" right away when connecting via ssh
TL;DR: Put private keys you don't want $ ssh to try for every host in a sub-directory such as ~/.ssh/id.d/. For hosts that should use a specific, non-default key, use IdentityFile together with ...
-1
votes
How can I get AWS cloudwatch logs into GCP stack driver logs viewer?
As of 2023, Google's officially documented answer is use BindPlane (Open Telemetry) agents in your infra to collect your logging and metrics and ship them to GCP, and they claim at no cost for the ...
0
votes
Unable to access apache2 from outside
I found a solution.
I opened up nginx on port 81 which worked ok and so I thought it must be only blocking any web ports.
After a bit of research this was due to the fact that my EC2 was reported with ...
0
votes
Unable to access apache2 from outside
Try using tspdump to track packets - whether the packet arrives at the host or not.
If the packet arrives, then obviously something on the server is blocking or discarding it.
Completely reset all ...
0
votes
Accepted
InvalidConfigurationRequest: A load balancer cannot be attached to multiple subnets in the same Availability Zone
You should be using public_subnets from the vpc module in your aws_lb:
resource "aws_lb" "ubuntu-lb" {
name = "terraform-asg-ubuntu"
load_balancer_type = "...
0
votes
How do I create DNS entries for EC2 instances created by Auto Scaling?
Try the KopiCloud AD API Terraform Provider (https://registry.terraform.io/providers/KopiCloud-AD-API/ad/latest); it can create/delete/list DNS records in Microsoft DNS.
I wrote Terraform code that ...
0
votes
Install Zip module in PHP8.2
Amazon Linux doesn't appear to have a package for PHP's zip extension.
You can install it via PECL:
sudo pecl install zip
Per https://github.com/amazonlinux/amazon-linux-2023/issues/320 you may need ...
1
vote
Install Zip module in PHP8.2
You can find the package using the RPM finder.
Here's the list of RPMs that contains the zip module for PHP 8.2:
https://rpmfind.net/linux/rpm2html/search.php?query=php82-php-zip
0
votes
Trying to run Security Onion on AWS behind an ALB (nginx behind ALB)
I was able to get this working by inserting a simple healthcheck in the nginx config.
server {
listen 443 ssl http2;
server_name 192.168.1.something;
location ...
0
votes
Accepted
Aws workspace can't access website hosted in aws ec2
I changed my proxy to google (8.8.8.8 and 8.8.4.4) then it works. So no problem with the inbound and outbound rules.
0
votes
Using AWS Blue/Green deployment, how do I modify the staging database?
I can confirm that the Green Deployment primary endpoint is read-only by default.
If your use case requires you to make write operations or schema changes you will need to apply a new DB parameter ...
0
votes
AWS EC2 instance running out of memory running NodeJs application, cannot identify root cause because of log suppression
and kills the process.
The first thing you need to do is stop running out of memory. Reduce the overcommit on the host.
Add a new file in /etc/sysctl.d containing (initially):
vm.overcommit_memory = ...
0
votes
Accepted
What does `aws configure` actually do?
aws configure actually isn't required when using non-default locations for credentials and configurations files. If the file locations for these files are set correctly in the environment variables, ...
0
votes
AWS Elastic Beanstalk File Upload Limit Issue
Just in case anyone is still struggling with this, check out this SO post's first answer.
In my case, the build step only copied the .build folder to ElasticBeanstalk, thus I had to add the step - cp -...
0
votes
What does `aws configure` actually do?
"aws configure" simple creates the credential file for you on your workstation or server in the file %USERPROFILE%\.aws\credentials. You type the credentials in, it puts them into the file ...
0
votes
Amplify SSL cert issued by Amazon not found in ACM?
The best option here is to create a new certificate using ACM and set up CloudFront with https as if it was a new domain.
You can have many different different certificates for the same domain with no ...
0
votes
Nginx directory (21: Is a directory)
In my case, the same error occurred, but I discovered that inside the /etc/nginx/sites-enabled/ directory there was a directory... I just had to remove it for the problem to be solved.
But that doesn'...
0
votes
Is it possible to switch between AWS accounts without signing out first?
You can also check out - Granted, a CLI to access the AWS console for multiple accounts and regions at once and allows multiple cloud accounts to be opened in your web browser simultaneously.
With ...
0
votes
CloudFront distribution can't access S3 bucket for website static assets
I had the same error. In my case I had set the default root object on the Distribution (General > Settings) to /index.html and I also set the origin path (Origins > my s3 origin) to /index.html....
0
votes
How to limit log size on Elastic beanstalk with Corretto 8/Amazon Linux 2 platform?
The easiest way is to stop sending web stdout to /var/log/messages. It requires only the line stop to be added to the corresponding rsyslog config in /etc/rsyslog.d/web.conf:
# This rsyslog file ...
0
votes
How to iterative over public/private subnets in the Terraform VPC module?
First update the variables type to list(string)
variable "my_private_subnets" {
type = list(string)
description = "private subnets within vpc cidr block"
default = [...
0
votes
how to forward godaddy domain to ec2 load balancer
Yes you can, first get the static ip addresses of the load-balancer from aws dashboard->Ec2->Network & Security->Network interfaces->search by load balancer name, find the ipv4 column. ...
Top 50 recent answers are included
Related Tags
amazon-web-services × 8613amazon-ec2 × 2696
amazon-vpc × 563
amazon-s3 × 561
linux × 426
elastic-beanstalk × 372
amazon-elb × 366
amazon-rds × 364
domain-name-system × 349
amazon-route53 × 345
ubuntu × 333
amazon-ebs × 325
load-balancing × 310
aws-cli × 295
nginx × 248
mysql × 247
networking × 237
ssh × 235
amazon-cloudfront × 222
amazon-iam × 204
amazon-cloudformation × 201
ssl × 191
vpn × 190
docker × 175
amazon-ecs × 163