小编Mii*_*ika的帖子

Git Clone:非法端口号

我正在尝试使用用户名和密码克隆一个存储库,如下所示:

git clone https://username:password@gitlab.com/user/repo.git
Run Code Online (Sandbox Code Playgroud)

但是我收到此错误:

fatal: unable to access 'https://username:password@gitlab.com/user/repo.git': Illegal port number
Run Code Online (Sandbox Code Playgroud)

我正在尝试在使用AWS Linux的EC2实例上执行此操作.如果我手动完成,我可以使用它,并且只使用克隆中的用户名,然后将密码放入提示符,但我正在尝试使用bash脚本克隆存储库.

git bash amazon-web-services git-clone fatal-error

9
推荐指数
1
解决办法
2991
查看次数

云形成:链接到Lambda的S3给出了ARN格式不正确

我正在尝试使用CloudFormation部署一个ObjectCreate调用Lambda函数的S3存储桶.

这是我的资源:

"ExampleFunction": {
            "Type": "AWS::Lambda::Function",
            "Properties": {
                "Handler": "index.lambda_handler",
                "Code": {
                    "S3Bucket": "bucketname",
                    "S3Key": "something.zip"
                },
                "Runtime": "python3.6",
                "Role": {
                    "Fn::GetAtt": [
                        "LambdaExecutionRole",
                        "Arn"
                    ]
                }
            }
        },
        "InputDataBucket": {
            "Type": "AWS::S3::Bucket",
            "Properties": {
                "BucketName": "input-data",
                "NotificationConfiguration": {
                    "LambdaConfigurations": [
                        {
                            "Function": {
                                "Ref": "ExampleFunction"
                            },
                            "Event": "s3:ObjectCreated:*",
                            "Filter": {
                                "S3Key": {
                                    "Rules": [
                                        {
                                            "Name": "suffix",
                                            "Value": "zip"
                                        }
                                    ]
                                }
                            }
                        }
                    ]
                }
            }
        },
        "LambdaInvokePermission": {
            "Type": "AWS::Lambda::Permission",
            "Properties": {
                "Action": "lambda:InvokeFunction",
                "FunctionName": …
Run Code Online (Sandbox Code Playgroud)

lambda amazon-s3 amazon-web-services aws-cloudformation

3
推荐指数
1
解决办法
2317
查看次数