All Questions
254 questions
0
votes
0
answers
54
views
Python pexpect: Command only happens after subsequent commands are sent
Objective*
I am trying to use aws ecs execute-command in conjunction with pexpect.spawn() to start an interactive bash session in a container running on an EC2 instance.
Sample Code
import sys
import ...
-3
votes
1
answer
104
views
How do I install AWS CLI on Mac running Python 2.7?
I need to install (and utilize) AWS CLI, which requires Python 3.8 or higher. My Catalina Mac has 2.7.16.
I installed 3.12 via the link at https://docs.python.org/3/using/mac.html. I see when running ...
1
vote
1
answer
204
views
How to pass arguments containing parentheses to aws ecs execute-command using python subprocess.run?
Goal: Use the aws cli in a subprocess.run call to execute a command in a container of a running task.
Example Usage:
task_arn = 'a_task_arn'
arg = event = {'something': 'that contains ( )'}
# Attempt ...
0
votes
2
answers
91
views
How to Design a DynamoDB Table with Composite Primary Key for Property_ID, Category_ID, and Subcategory_ID?
I'm designing a DynamoDB table for storing property-related data where each property belongs to a category and subcategory.
I have three combination of primary key in sql server.
I need assistance in ...
1
vote
2
answers
1k
views
AWS S3: Error: An error occurred (AccessDenied) when calling the CreateSession operation: Access Denied
I am new to Amazon web service management.
I created a directory bucket and user in IAM so that I could connect to my bucket through the Flask app. This is my permissions policy for user:
{
"...
1
vote
1
answer
144
views
Cannot deploy AWS Greengrass v2 components with boto3
I developed a greengrass component that is basically a jar, with no configuration, as example to getting started with AWS Greengrass v2. I created a S3 bucket containing the jar and created a ...
4
votes
3
answers
3k
views
Getting pip error while installing aws-cli
I am trying to install aws-cli using following command
I tried it with following command also
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
But still getting the following error
...
0
votes
0
answers
119
views
How do I run the following Python and Boto3 code?
I'm trying to explore machine learning models from AWS. AWS recently released a Bedrock service, and I would like to setup an environment to do that. I would also need to interact with S3, Langchain ...
2
votes
2
answers
1k
views
get-log-events returns only a few results of many
I am logging to CloudWatch from a python lambda. In the AWS console I can see several hundred log entries, but if I try to use get-log-events from either a Python Boto call, or through the AWS CLI I ...
2
votes
1
answer
763
views
How does the AWS CLI open a browser and wait for a response before proceeding?
I'm trying to build a golang cli tool for my company and as part of that build login and some other features into the tool. For the life of me I can't figure out how AWS is able to open a browser ...
-2
votes
1
answer
1k
views
Upgrade runtime options for AWS Lambda function
I have a Lambda function which runs currently on Python 3.9.
Now I'm trying to upgrade the runtime to python 3.11.
So I updated my aws cli and python to the newest version.
aws --version` is `aws-cli/...
1
vote
0
answers
798
views
Getting error [setup.cfg] license_file parameter is deprecated while building docker image using jenkin/inbound agent alpine image
Getting error [setup.cfg] license_file parameter is deprecated while building docker image using jenkin/inbound agent alpine image.
I tried to change docker engine version and also tried with changing ...
-1
votes
1
answer
852
views
AWS EB CLI - 'eb' is not recognized as an internal or external command
I installed AWS with Python 3.11 in my PC. later I uninstalled Python 3.11 to use Python 3.10 but when I run aws --version it still shows Python 3.11.
When I run other commands like eb init it shows ...
1
vote
0
answers
564
views
aiobotocore - AttributeError: 'ClientCreatorContext' object has no attribute 'send_message'
I have a working application that interacts with SQS using python 3.6 and I am required to upgrade the same to Python3.8. Locally, I am using elasticmq as part of the development.
I have a SQSWrapper ...
0
votes
2
answers
383
views
What's the best way to sweep over a parameter space with ECS tasks?
How can I trigger N executions of the same task with different parameters in a way to systematically sweep a 3D paramter space?
I have AWS ECS Fargate tasks defined. They accept multiple args over the ...