Таким образом, последний элемент, который я добавил в этот шаблон, был попыткой использовать определенную группу безопасности.Я не хотел, чтобы он создал новый.Когда я делаю проверку достоверности, которая возвращается нормально, но, видимо, мой код все еще не верен.Другое, что шаблон работал нормально.
Я перепробовал все, что мог придумать.нет ошибки, когда я наконец-то остановился, кроме «внутренней ошибки», поэтому я в растерянности.
Parameters:
VPC:
Description: Testing using this VPC
Type: String
Default: vpc-02765
SecGroup:
Description: Name of security group
Type: AWS::EC2::SecurityGroup
KeyName:
Description: Name of an existing EC2 key pair for SSH access to the EC2 instance.
Type: AWS::EC2::KeyPair::KeyName
InstanceType:
Description: EC2 instance type.
Type: String
Default: t2.micro
...
...
...
Resources:
EC2Instance:
Type: AWS::EC2::Instance
Properties:
InstanceType: !Ref 'InstanceType'
SubnetId: subnet-08b
KeyName: !Ref 'KeyName'
SecurityGroupIds:
- !Ref SecGroup
ImageId: !FindInMap
- AWSRegionArch2AMI
- !Ref 'AWS::Region'
- HVM64
'''
all I am trying to do is use the items I listed in the template. the vpc,securitygroup. The last time this worked was when I had the code in the template that builds a new SG. I than changed my mind and want to use an existing SG. so somewhere I messed up