Exclua portas de alto risco de mapeamentos DNAT em um NAT gateway em massa.
Nome do modelo
O ACS-VPC-BulkyDeleteForwardEntry exclui portas de alto risco especificadas dos mapeamentos DNAT em um NAT gateway.
Descrição do modelo
Remove portas de alto risco mapeadas por entradas DNAT em um NAT gateway.
Tipo de modelo
Automatizado
Proprietário
Alibaba Cloud
Parâmetros de entrada
|
Parâmetro |
Descrição |
Tipo |
Obrigatório |
Valor padrão |
Limite |
|
instanceId |
O ID do NAT gateway. |
String |
Sim |
||
|
port |
A porta de alto risco. |
List |
Sim |
||
|
regionId |
O ID da região. |
String |
Não |
{{ ACS::RegionId }} |
|
|
rateControl |
A taxa de simultaneidade na execução da tarefa. |
Json |
Não |
{'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} |
|
|
OOSAssumeRole |
A função RAM assumida pelo CloudOps Orchestration Service (OOS). |
String |
Não |
"" |
Parâmetros de saída
Nenhum
Política de permissão necessária para executar o modelo
{
"Version": "1",
"Statement": [
{
"Action": [
"vpc:DeleteForwardEntry",
"vpc:DescribeForwardTableEntries",
"vpc:DescribeNatGateways"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
Detalhes
Para obter mais informações, consulte ACS-VPC-BulkyDeleteForwardEntry.yml no GitHub.
Conteúdo do modelo
FormatVersion: OOS-2019-06-01
Description:
en: Deletes the specified high-risk ports mapped on the DNAT table.
zh-cn: Deletes the specified high-risk ports mapped on the DNAT table.
name-en: ACS-VPC-BulkyDeleteForwardEntry
name-zh-cn: ACS-VPC-BulkyDeleteForwardEntry
categories:
- security
Parameters:
regionId:
Label:
en: Region ID
zh-cn: Region ID
Type: String
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
instanceId:
Label:
en: The instance ID of the NAT Gateway.
zh-cn: The instance ID of the NAT Gateway.
Type: String
port:
Label:
en: The high-risk port (backend port)
zh-cn: The high-risk port (backend port)
Type: List
rateControl:
Label:
en: Rate Control
zh-cn: Concurrency rate for task execution
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: The RAM role that OOS assumes
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: describeNatGateways
Action: ACS::ExecuteAPI
Description:
en: Queries the DNAT table ID of the NAT Gateway instance.
zh-cn: Queries the DNAT table ID of the NAT Gateway instance.
Properties:
Service: VPC
API: DescribeNatGateways
Parameters:
RegionId: '{{ regionId }}'
NatGatewayId: '{{ instanceId }}'
Outputs:
ForwardTableIds:
Type: String
ValueSelector: .NatGateways.NatGateway[].ForwardTableIds.ForwardTableId[]
- Name: describeForwardTableEntries
Action: ACS::ExecuteAPI
Description:
en: Queries the IDs of DNAT entries that match the high-risk ports.
zh-cn: Queries the IDs of DNAT entries that match the high-risk ports.
Properties:
Service: VPC
API: DescribeForwardTableEntries
Parameters:
RegionId: '{{ regionId }}'
ForwardTableId: '{{ describeNatGateways.ForwardTableIds }}'
InternalPort: '{{ ACS::TaskLoopItem }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ port }}'
Outputs:
ForwardEntryId-all:
AggregateType: Fn::ListJoin
AggregateField: ForwardEntryId
Outputs:
ForwardEntryId:
Type: Json
ValueSelector: .ForwardTableEntries.ForwardTableEntry[].ForwardEntryId
- Name: deleteForwardEntry
Action: ACS::ExecuteAPI
Description:
en: Deletes the specified high-risk ports mapped on the DNAT table.
zh-cn: Deletes the specified high-risk ports mapped on the DNAT table.
Properties:
Service: VPC
API: DeleteForwardEntry
Parameters:
RegionId: '{{ regionId }}'
ForwardEntryId: '{{ ACS::TaskLoopItem }}'
ForwardTableId: '{{ describeNatGateways.ForwardTableIds }}'
Loop:
Items:
'Fn::Jq':
- All
- '.[] | (select(. != null))'
- '{{ describeForwardTableEntries.ForwardEntryId-all }}'
RateControl:
Mode: Concurrency
MaxErrors: 0
Concurrency: 1
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- port
Label:
default:
zh-cn: Configure Parameters
en: Configure Parameters
- Parameters:
- regionId
- instanceId
Label:
default:
zh-cn: Select Instance
en: Select Instance
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
zh-cn: Advanced Options
en: Advanced Options
Instruções
Leia o documento em inglês para compreender O QUE precisa ser comunicado
Escreva o conteúdo em português do Brasil DO ZERO — esqueça a estrutura das frases em inglês
Preserve toda a formatação markdown, blocos de código, links e imagens exatamente como estão
Tags xref (
<a data-tag="xref" ...>text</a>) — preserve a tag INTEIRA com todos os atributos na ordem e caixa originais, traduza APENAS o texto visível entre > eAplique todas as regras específicas do idioma rigorosamente
Aplique as regras de stopwords com tolerância zero
Use o modo imperativo em passos numerados e listas de procedimentos
Garanta a consistência terminológica — o mesmo termo deve ter a mesma tradução em todo o documento
Varie os inícios de frase em listas e tabelas — nenhum início deve se repetir mais de 3 vezes
Retorne APENAS o documento markdown em português do Brasil, sem explicações