skip to Main Content

AWS AssumeRole with Laravel Filesystem

I'm currently trying to figure something out. I have 2 AWS Accounts. Account A has a bucket called my_awesome_files. Account B has users, that would like to be able to see those documents in my_awesome_files. I have the following policies…

VIEW QUESTION

Amazon web services – Partial credentials found in explicit, missing: aws_access_key_id

I am trying to run the following code snipet (based on this code here): import boto3, os from dotenv import load_dotenv load_dotenv() AWS_ACCESS_KEY=os.getenv('AWS_ACCESS_KEY') AWS_SECRET_KEY=os.getenv('AWS_SECRET_KEY') translate = boto3.client( service_name='translate', region_name='us-east-1', aws_access_key_id=AWS_ACCESS_KEY, aws_secret_access_key=AWS_SECRET_KEY, ) result = translate.translate_text(Text="Hello, World", SourceLanguageCode="en", TargetLanguageCode="de") print('TranslatedText: '…

VIEW QUESTION

Amazon web services – Problem with aws expiration time for presigned url

I have created a function to get a link to download an object in S3. def get_presigned_url(s3_bucket, s3_object_key, expiration_seconds): url = boto3.client('s3', config=Config(signature_version='s3v4'), aws_access_key_id='access_key_id', aws_secret_access_key='secret_access_key').generate_presigned_url( ClientMethod='get_object', Params={'Bucket': s3_bucket, 'Key': s3_object_key}, ExpiresIn=expiration_seconds) return url It creates the link with the correct…

VIEW QUESTION
Back To Top
Search