Skip to main content

All Questions

0 votes
1 answer
319 views

Restrict AWS SSM access to SSH only

I need to restrict some users AWS SSM access to SSH only. These users should only be able to start a SSH session via SSM like this: ProxyCommand sh -c "aws ssm start-session --target %h --...
Michael's user avatar
  • 375
0 votes
0 answers
825 views

AWS ECR Login error

AWS ECR Login error: command: aws ecr get-login-password --region ap-south-1 | docker login --username AWS --password-stdin {id}.dkr.ecr.{region}.amazonaws.com An error occurred (...
Arya Aniket's user avatar
0 votes
0 answers
171 views

EC2 instance DNS resolving issue

How do I identify the EC2 instance causing DNS (my website) resolving errors? I have some instances in my VPC, one of them is creating an error, I did not enable monitoring for this VPC and the ...
samtech 2021's user avatar
0 votes
1 answer
417 views

How can I find the list of instance types that do not require ENA and the list of AMIs that support ENA?

I have this Terraform file - terraform { required_providers { aws = { source = "hashicorp/aws" version = "~> 4.23" } } required_version = ">= ...
Lone Learner's user avatar
1 vote
1 answer
14k views

How do I extract a list of all folders of my AWS S3 storage bucket or directories?

Does Amazon provide an easy way extract a list of all folders that have files greater than 500 MB from a s3 bucket? want to limit the scope to the '/files/ftp_upload/' directories also This is so I ...
sam23's user avatar
  • 59
6 votes
2 answers
3k views

AWS Root volume Encryption

In my scenario, I have some old EBS volumes that are not encrypted. To satisfy new corporate security measures, all data needs to be encrypted so I need to compile a plan to encrypt the unencrypted ...
samtech 2021's user avatar
0 votes
0 answers
413 views

How can I let apache server work always on my ec2 instance?

I am learning aws's EC2 server. I configured apache and php. I started the apache server with the command Sudo service httpd start But every time I stop my pc, or the next day, when I want to continue ...
fathi93's user avatar
  • 101
1 vote
1 answer
468 views

What is the best way to attach instance to auto scaling?

This is my first post so hope I will get the answer. I want to create auto scaling on my existing EC2 instance, so I found this approach so hope someone will tell me is it good ( or suggest me how to ...
mawerick_1's user avatar
1 vote
1 answer
1k views

How to tag launch template _itself_ in AWS with JSON and `create-launch-template` AWS CLI

While creating EC2 launch templates with the create-launch-template AWS CLI ec2 command and a JSON spec, I can't seem to figure out how to tag the template itself. I'm providing the TagSpecifications ...
mmuurr's user avatar
  • 145
0 votes
0 answers
115 views

Launching RStudio Server from AWS EC2 instance on Chromebook Linux/Debian Terminal

So I was able to install and activate the rstudio-server but I'm not sure how to launch the server so I can start writing and running script through a local host as described in https://indicatrix.org/...
Carlos Rivas's user avatar
0 votes
0 answers
861 views

How do I poll for when the ssm agent is started and session manager can connect for newly created instances?

I use SSM to connection to windows ec2 instances with the cli: aws ssm start-session --target <id> It takes the ssm service on a windows instance a few mins to start sometimes I can check when ...
red888's user avatar
  • 4,273
1 vote
1 answer
932 views

Request times out when applying terraform plan on AWS, or describing instances through AWS CLI

I am having an issue accessing the following endpoint from an EC2 instance located in a private subnet. Architecture is the following: VPC Private Subnet 1 (there is a route on 0.0.0.0/0 to Transit ...
Charles Morin's user avatar
2 votes
1 answer
522 views

How to name or rename an EIP in AWS?

Somehow, at some point, I created 2 EIPs and gave them names (they have names in the EC2 UI). But now I cannot figure out, or find in the docs, how to name EIPs either when creating them or after ...
Jim W's user avatar
  • 131
0 votes
1 answer
63 views

find IP of running spotfleet instances through powershell

I am trying to launch spot instances from Spot Fleet: aws ec2 request-spot-fleet --spot-fleet-request-config file://aws-spot6.json below is json content { "SpotPrice": "0.06", "TargetCapacity": 1,...
Amit M's user avatar
  • 1
1 vote
1 answer
367 views

AWS Lambda boto3 : Instance launch from lambda boto3 python but not launching

while trying launch instance from python function instance not launching but not getting python syntax error. region = 'us-east-2' ec2 = boto3.client('ec2') ec2 = boto3.resource('ec2') client = boto3....
CloudNinja's user avatar

15 30 50 per page
1
2 3 4 5