aws-ec2

what are pagecache, dentries, inodes?

你说的曾经没有我的故事 提交于 2020-06-09 08:44:44
问题 Just learned these 3 new techniques from https://unix.stackexchange.com/questions/87908/how-do-you-empty-the-buffers-and-cache-on-a-linux-system: To free pagecache: # echo 1 > /proc/sys/vm/drop_caches To free dentries and inodes: # echo 2 > /proc/sys/vm/drop_caches To free pagecache, dentries and inodes: # echo 3 > /proc/sys/vm/drop_caches I am trying to understand what exactly are pagecache, dentries and inodes. What exactly are they? Do freeing them up also remove the useful memcached and

Error when Ec2 running as a role tries to get a Session Token in AWS

对着背影说爱祢 提交于 2020-04-12 09:52:28
问题 I'm running a app on an EC2 using a role with the the permissions: "sts:GetSessionToken", "sts:AssumeRole" When I try to obtain temporary credentials using that role, I get the error: Cannot call GetSessionToken with session credentials (Service: AWSSecurityTokenService; Status Code: 403; Error Code: AccessDenied; Am I missing one or more permissions for the role to be able to obtain temporary session credentials? 回答1: According to AWS support, roles cannot request temporary credentials. Only

Error when Ec2 running as a role tries to get a Session Token in AWS

我与影子孤独终老i 提交于 2020-04-12 09:51:17
问题 I'm running a app on an EC2 using a role with the the permissions: "sts:GetSessionToken", "sts:AssumeRole" When I try to obtain temporary credentials using that role, I get the error: Cannot call GetSessionToken with session credentials (Service: AWSSecurityTokenService; Status Code: 403; Error Code: AccessDenied; Am I missing one or more permissions for the role to be able to obtain temporary session credentials? 回答1: According to AWS support, roles cannot request temporary credentials. Only

How to change aws-ec2 instance type?

余生颓废 提交于 2020-01-03 02:28:10
问题 I wanted to change the aws-ec2 instance type(e.g from micro to large or vice-versa etc) using Boto3. What are the factors that needs to be care while changing the instance type of ec2-instances. Here is my code: def get_ec2_boto3_connection(region, arn): sess = Boto3Connecton.get_boto3_session(arn) ec2_conn = sess.client(service_name='ec2', region_name=region) return ec2_conn def change_instance_type(arn,region): ec2_conn=get_ec2_boto3_connection(region,arn) ec2_conn.modify_instance_attribute

How to ensure to update Docker image on AWS ECS?

风流意气都作罢 提交于 2020-01-02 06:41:18
问题 I use Docker Hub to store a private Docker image, the repository has a webhook that once the image is updated it calls a service I built to: update the ECS task definition update the ECS service deregister the old ECS task definition The service is running accordingly. After it runs ECS creates a new task with the new task definition, stops the task with the old task definition and the service come back with the new definition. The point is that the Docker Image is not updated, once the

What are the request per seconds of the AWS API Queries?

不想你离开。 提交于 2019-12-23 04:48:32
问题 What are the request per seconds and average response times(roundtrip) of the following API calls made by Boto-2.38/Boto3 ? conn=EC2(aws_access_key,aws_secret_key_id) Q1:images=conn.get_all_images(owners=['self']) Q2:instances=conn.get_only_instances() Q3:snapshots=conn.get_all_snapshots(owner='self') Q4:snapshot=conn.create_snapshot(volume_id, description) Q5:instance=conn.launch_instance(<params>) Q6:image=conn.create_image(instance_id,name,description) Q7:conn.deregister_image(image_id

AWS EC2 doesn't display instance usage report. Why?

前提是你 提交于 2019-12-13 05:18:30
问题 I use AWS EC2 free tiers and Elastic Beanstalk. I didn't buy any services from AWS yet. When I login as a root, AWS informs me that I'm going to exceed the Free Tier usage limit: I want to see the report. I do all that this docs says https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/usage-reports-instance.html#viewing-instance-usage But AWS doesn't show me reports. I set all the necessary filters correctly: Why? How to make AWS to show report? 回答1: I figured that out. I have never used any

Is the IP address resolution wrong in my EC2 instance?

前提是你 提交于 2019-12-13 01:41:09
问题 Hi, The following is the result of netstat -a -o -n on my windows ec2 instance. I see that port 80 is being used by different processes in both physical and foreign address. Does this mean that the NAT is not resolving the private and public IP address of the EC2 instance properly ? What should I do to fix it ? On the private IP, port 80 is occupied by the node server while a chrome transaction is occupying port 80 on the foreign address. Thanks. 回答1: Try setting DHCP Option set . I had a

EC2 Instance without any attached Volume?

∥☆過路亽.° 提交于 2019-12-12 03:36:25
问题 Is it Possible to have instances without any volume(root-device or attached volume)? Lets say the instance_ids are [i-120cd3fe,i-23e46634] Is it possible that any Instances are present without any attached volume in AWS? conn=get_ec2_connection(region=region) instances = conn.get_only_instances(instance_ids=instance_ids) volumes_list=[] for instance in instances: dev_mappings = instance.block_device_mapping for block_device in dev_mappings.keys(): volume_id = dev_mappings[block_device].volume

EADDRNOTAVAIL while using EC2 instance only

旧时模样 提交于 2019-12-11 11:48:07
问题 My node application is listening to port 8080. When I add app.listen(port,'50.30.217.289'); I can access the application from the browser. But when I replace the IP address with the Elastic IP address of my EC2 instance, I get an error : EADDRNOTAVAIL How do I fix this ? 回答1: What you are trying to do is not how it works in EC2. The public IP address is mapped to the primary private IP address through network address translation (NAT). http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using