skip to Main Content

Amazon web services – AWS Secret Manager `ParamValidationError`: `"SecretID", must be one of: SecretId, VersionId, VersionStage`

I am having a problem with accessing a secret from Secret Manager in a lambda function. Here is the relevant code: import boto3 session = boto3.session.Session() secretsmanager = session.client(service_name="secretsmanager") get_secret_value_response = secretsmanager.get_secret_value( SecretID="arn:aws:secretsmanager:SECRETNAME" ) secret = get_secret_value_response["SecretString"] The error message,…

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

Amazon web services – What is the difference between aws-codepipeline/Pipeline and pipelines/CodePipelines in AWS CDK

I have an AWS CDK project and am defining a code pipeline with the CDK to automatically deploy it. Should I use the CodePipeline defined here: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.CodePipeline.html or the Pipeline defined here: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codepipeline.Pipeline.html Also what exactly is the difference between…

VIEW QUESTION
Back To Top
Search