All Questions
144 questions
-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 ...
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
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
votes
1
answer
853
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 ...
-4
votes
1
answer
838
views
convert aws cli output to json format with python script
within the python script i've aws-cli command to print ec2 information
def ec2Output = sh(returnStdout: true, script: "aws ec2 describe-instances --region ${Region} --filters Name=tag:Environment,...
0
votes
1
answer
2k
views
AWS SSO with AWS CLI - python boto3
I am a beginner learning AWSCLI, and boto3 with Python. I am trying to execute a few operations using Python boto3 on my s3 bucket. For running the code, I had to copy-paste the short-lived ...
0
votes
1
answer
638
views
Unable to create a simple TXT record set in Amazon Route 53 using the AWS CLI
I am getting below error while creating TXT record in Route53 using AWS CLI. Please let me know where I am doing mistake.
Error:
[Invalid Resource Record: 'FATAL problem: InvalidCharacterString (...
0
votes
1
answer
131
views
Setting aws temp credentials in python - AttributeError
I am trying to create a python script which will set aws temp credentials for me , rather than me having to manually run these following commands each time :
export AWS_PROFILE=terraformlive
aws sts ...
1
vote
1
answer
515
views
boto3 cloudformation list_stacks() function is not listed all the stacks in cloudformation
I have created a stacks in Cloud formation. When try to get all the stacks through aws cli its working but i tried to get all the stack via boto3 API in python. Here, it didn't collect all the stacks ...
0
votes
1
answer
234
views
Run aws cli from EC2 python script with variables
I need to run AWS CLI Polly service from AWS EC2 using python, with additional variables. The problem is with the including variable in the cmd string
import subprocess
row1 = 'My husband and I have ...
2
votes
1
answer
3k
views
AWS CodeArtifact error with 401 Unauthorized when trying to upload with twine
I'm having issues pushing python package into CodeArtifact using twine. I would love your ideas on what this might be and how to debug this.
I've setup the repository following this doc.
Running aws ...