Category : amazon-ec2

I need to create EC2 launch-type ecs by using below code in screenshot The problem for me are below The cluster created is Fargate instead of EC2 launch-type(sample code in python install package suggest this to create EC2-launch-type one but does not work) There is no way(also no need according to sample code) to specify ..

Read more

I have some code that works to add tags to all pending and running instances, and then searches for their associated volumes, and adds tags to those as well. However, if I spin up a new instance with NO tags at all, I get a KeyError and it does not work. What I’m looking to ..

Read more

I am developing an app that scrapes data from an e-commerce website. When I send request using python’s requests module from my personal system I get the required response. import requests response = requests.get(‘https://www.daraz.com.np/televisions/?ajax=true&page=1’) print(response.text) The response text is {"mods":{"filter":{"tItemType":"nt_filter","filterItems":[{"options":[{"value":"televisions","title":"Televisions","url":"/televisions/","order":0,"id":"198"}] But when I send the same request from an EC2 instance I get the following ..

Read more

Using ansible=2.10.0 and boto=2.49.0, When trying to execute ec2_vol playbook for manage disk to AWS instance with Proxy environment. Getting this error – connection.py",line 796, in proxy_ssl, sock.sendall("CONNECT %s HTTP/1.0rn" % host), TypeError: a bytes-like object is required, not ‘str’, There is open PR to boto to fix it, But not merged yet – https://github.com/boto/boto/pull/3699. ..

Read more

I am trying to install deltalake Python library (https://github.com/delta-io/delta-rs/tree/main/python) on an Amazon Linux 2 EC2 instance which was launched from amzn2-ami-hvm-2.0.20210318.0-x86_64-gp2 (us-east-1 region). It fails as showing below: $ pip3 install deltalake Collecting deltalake Could not find a version that satisfies the requirement deltalake (from versions: ) No matching distribution found for deltalake $ The ..

Read more