AWS对象Lambda访问点在从VPC内部运行时写入响应时超时。
创始人
2024-09-24 22:01:13
0

可能是由于在VPC内部运行时,你的Lambda访问点需要将响应写回到VPC子网中,并且由于安全组或网络ACL配置的限制而被阻止。建议检查安全组和ACL配置并确保访问点可以在VPC子网中写入。

以下是一个代码示例,你可以使用该示例代码来设置访问点的iam角色和安全组设置:

import boto3
from botocore.config import Config

client = boto3.client('accesspoint', 
    region_name='us-west-2', 
    config=
    Config(
        retries={
            'max_attempts': 10,
            'mode': 'standard'
        }
    ))

# set up the role and security group for your access point
response = client.put_access_point_configuration(
    AccountId='123456789012',
    Name='example-access-point',
    Configuration={
        'ObjectLambdaAccessPointConfiguration':{
            'TransformationConfigurations':[
                # specify the IAM role and security group settings
                {
                    'Actions':[
                        {
                            'Action':'GetObject',
                            'GetObject':{}
                        }
                    ],
                    'ObjectLambdaTransformConfig':{
                        'AwsLambda':{
                            'FunctionArn':'arn:aws:lambda:us-west-2:123456789012:function:example-function'
                        },
                        'InputSchema':{},
                        'OutputSchema':{}
                    },
                    'ObjectLambdaAllowedFeatures':[
                        'GetObject'
                    ],
                    'ContentTransformation':{
                        'AwsLambda':{
                            'FunctionArn':'arn:aws:lambda:us-west-2:123456789012:function:example-function'
                        },
                        'InputSchema':{},
                        'OutputSchema':{}
                    }
                }
            ]
        }
    }
)

# print the response
print(response)

相关内容

热门资讯

透视存在!德普之星透视辅助软件... 透视存在!德普之星透视辅助软件激活码,wepokerplus万能挂,课程教程(确实有挂)-哔哩哔哩1...
透视智能ai!wepoker智... 您好,wepoker智能辅助插件这款游戏可以开挂的,确实是有挂的,需要了解加去威信【48527505...
透视教学!wepoker俱乐部... 透视教学!wepoker俱乐部辅助,德州透视脚本,策略教程(真的有挂)-哔哩哔哩1、wepoker俱...
透视脚本!we-poker靠谱... 透视脚本!we-poker靠谱吗,wpk显示有辅助,教程书教程(有挂辅助)-哔哩哔哩1、游戏颠覆性的...
透视辅助!wpk透视怎么安装,... 透视辅助!wpk透视怎么安装,拱趴大菠萝万能挂,手段教程(有挂秘诀)-哔哩哔哩1、进入游戏-大厅左侧...
透视教学!wpk辅助最怕三个东... 透视教学!wpk辅助最怕三个东西,aapoker ai插件,课程教程(有挂分析)-哔哩哔哩1、下载好...
透视科技!wepoker怎么发... 透视科技!wepoker怎么发冤家牌,wepoker是不是有人用挂,练习教程(新版有挂)-哔哩哔哩1...
透视线上!哈糖大菠萝怎么挂,h... 透视线上!哈糖大菠萝怎么挂,hhpoker德州有挂吗,操作教程(有挂方式)-哔哩哔哩1、哈糖大菠萝怎...
透视新版!pokemmo辅助工... 透视新版!pokemmo辅助工具,德州透视脚本,法子教程(的确有挂)-哔哩哔哩1、游戏颠覆性的策略玩...
透视新版!wejoker辅助软... 透视新版!wejoker辅助软件,wepoker有没有挂,秘籍教程(有挂存在)-哔哩哔哩1)wepo...