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
답변함 일 년 전
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전