All Questions
Tagged with boto3 amazon-iam
240
questions
2
votes
1
answer
156
views
Invoking Lambda function from another Lambda function consistently results in a strange HTTP 421 Misdirected Request error
I'm suffering from a bizarre undocumented HTTP 421 Misdirected Request error when trying to invoke Lambda functions from other Lambda functions via Python/boto3 (with InvocationType = 'Event') like so:...
0
votes
1
answer
37
views
unable to run start_notebook_execution for an EMR Jupyter notebook
Why is my AWS EMR Jupyter notebook saying that my cluster id is null? I've verified that 1) the cluster id value being passed is neither null, None, nor '' (empty string) and 2) confirmed that the ...
0
votes
0
answers
18
views
Trying to access Dynamo from AWS ECS - botocore.exceptions.NoCredentialsError: Unable to locate credentials [duplicate]
I have a Python application using boto3, and trying to access a dynamo table. When trying this as a local container, it works perfectly.
I then set up an IAM role for me ECS task to use. I can see in ...
0
votes
1
answer
86
views
GCP & AWS: CloudFunction: Can't assume AWS role
I created a terraform deployment for gcp cloudfunction which should assume AWS role to manipulate on AWS s3.
The problem that flow which looks like created correctly causes to (AccessDenied) when ...
0
votes
0
answers
43
views
AWS AppRunner getting "Unable to locate credentials" error when calling SNS in the cloud
I have my application deployed on AWS AppRunner, which will call SNS to send an email.
mysns = boto3.client(
"sns",
)
response = mysns.publish(
TopicArn = self.TOPIC_ARN,
...
0
votes
2
answers
126
views
How can I add a trust policy to a role using boto3?
This question is somewhat connected to the discussion found here:
How can I use the AWS CLI to add a trust policy to a role?
Previously, I encountered a problem adding a policy via the AWS CLI. It was ...
0
votes
1
answer
52
views
boto3 s3 copy HeadObject 403 Forbidden
Source and destination buckets are in the same region but different AWS accounts. The copy code that fails:
import boto3
from datetime import datetime
assumed_role = boto3.client('sts').assume_role(
...
0
votes
0
answers
43
views
Not authorized to perform sts:AssumeRoleWithWebIdentity when calling assume_role_with_web_identity
I am trying to develop a S3 upload file for user federation., which is implemented in Python. A User from Cognito Group has Role ARN name S3-Group-Role
S3-Group-Role
{
"Version": "2012-...
0
votes
0
answers
93
views
Boto3 to pull data from Public S3 Bucket, into my S3 Bucket
I have a python script that works perfectly on my local computer. I want to migrate this script to Lambda, and run it in AWS Cloud.
The Local script uses Boto3 to pull a geopackage file from a public ...
0
votes
2
answers
407
views
An error occurred (AccessDenied) when calling the PutObject operation: Access Denied"
I'm trying to have my lambda putting/updating objects in my s3 bucket. I have not changed any default bucket setting and attached the below role iam policy to the lambda.
{
"Statement": [...
-2
votes
1
answer
645
views
optimal solution to run a python script on multiple aws accounts
I want to run a python script through multiple aws accounts using boto3 sdk. I have a user who has roles in multiple aws accounts. I was going to utilize sts and iterate through each accounts ARN in ...
2
votes
1
answer
145
views
Boto3 Creating Account Assignment returns a in-progress and later fails
env: python3 venv and using boto3 apis
I have created a group and a permission set in identity store and want to assign the group to permission set. (through apis. got IDs and arns from creation ...
0
votes
1
answer
545
views
Get real IAM username of the STS AssumeRole issuer
I have been assuming an IAM role in the AWS account B using the IAM user credentials from the AWS Account A, and it works as expected. As part of the security and auditing purpose, I would like to get ...
0
votes
1
answer
84
views
Lambda function issue when calling the PutObject operation: Access Denied
I need your help on this issue on which am always getting issue after many more solutions adaptations.
I tried to resolve this issue with answers posted on the below links, but nothing has worked on ...
-1
votes
2
answers
817
views
Secret manager access denied issue with boto3
I have a usecase to use the secret from A in all other accounts in that organization. I have provided permission for secret for organization and encrypted the secret with kms key . I have a role ...