1 個回答
- 最新
- 最多得票
- 最多評論
0
In the console, I just tested the below template, and it worked as expected. If the fields, didn't match, I was unable to proceed, if they did I was able to create a stack from the template.
AWSTemplateFormatVersion: 2010-09-09
Parameters:
AdminPassword:
Type: String
ConfirmAdminPassword:
Type: String
Rules:
ConfirmPasswordsMatch:
Assertions:
- Assert:
Fn::Equals:
- !Ref AdminPassword
- !Ref ConfirmAdminPassword
AssertDescription: Passwords do not match
Resources:
myVPC:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
EnableDnsSupport: 'true'
EnableDnsHostnames: 'true'
Tags:
- Key: stack
Value: test
已回答 1 年前
相關內容
- AWS 官方已更新 2 年前