aws-cloudformation - aws cloudformation,以下是什么意思

标签 aws-cloudformation

我继承了一个 aws 项目,其中 vpc 安全组具有以下 cloudformation 设置。

SecurityGroupEgress:
  - IpProtocol: -1
    FromPort: -1
    ToPort: -1
    CidrIp: 0.0.0.0/0

我不是网络或 VPC 方面的专家,有人可以向我解释以下含义,特别是 -1。

最佳答案

这意味着:

  • 此配置附加在任何安全组上
  • 允许所有流量
  • 在任何端口
  • 来自互联网上的任何位置 (0.0.0.0/0)

来自AWS::EC2::SecurityGroupEgress - AWS CloudFormation :

You can use -1 for the type or code to mean all types or all codes.

关于aws-cloudformation - aws cloudformation,以下是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56607641/

相关文章:

amazon-web-services - 尝试通过 CloudFormation 创建 SG 和 RDS 时显示 `Invalid security group`

python-3.x - 无法将 EventBridge 计划附加到 AWS SAM 中的 Lambda 函数

amazon-web-services - 如何创建具有版本的 DynamoDb 表?

aws-lambda - 如何在 CloudFormation 中设置集群创建者以在 lambda 中重用它?

amazon-web-services - 通过 AWS CloudFormation 部署 AWS Glue 作业 : Failed to properly render job config field for: language

json - 尝试将参数从主模板传递到子模板

aws-cloudformation - 无法访问restApiId和restApiRootResourceId以在无服务器yml中进行跨堆栈引用

aws-lambda - Serverless.com/CloudFormation : Properties "Retry attempts", "Maximum age of record"未在 AWS Lambda EventSource 上设置映射到 DynamoDB 流

amazon-web-services - 使用 Cloudformation 配置 Glacier Deep Archive 转换规则

amazon-web-services - 为什么我的 CFN IAM 角色失败并显示 "Missing required field Action"?