@@ -6,10 +6,6 @@ Parameters:
66 Default : t3.micro
77 Description : EC2 machine instance size (see https://aws.amazon.com/ec2/instance-types/)
88
9- KeyName :
10- Type : AWS::EC2::KeyPair::KeyName
11- Description : SSH key to use for logging in (see https://docs.aws.amazon.com/ground-station/latest/ug/create-ec2-ssh-key-pair.html)
12-
139 AmiId :
1410 Type : AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>
1511 Default : ' /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2'
@@ -34,13 +30,13 @@ Parameters:
3430
3531 YouTubeApiKey :
3632 Type : String
37- Default : ' '
33+ AllowedPattern : ' .+ ' # Required
3834 Description : |
3935 Key to use for YouTube API access (see https://github.com/mxpv/podsync/blob/master/docs/how_to_get_youtube_api_key.md)
4036
4137 VimeoAccessToken :
4238 Type : String
43- Default : ' '
39+ AllowedPattern : ' .+ ' # Required
4440 Description : |
4541 Key to use for Vimeo API access (see https://github.com/mxpv/podsync/blob/master/docs/how_to_get_vimeo_token.md)
4642
@@ -60,7 +56,7 @@ Parameters:
6056 PageSize :
6157 Type : Number
6258 Default : 50
63- MinValue : 10
59+ MinValue : 5
6460 Description : |
6561 The number of episodes to query each time
6662
@@ -109,8 +105,6 @@ Metadata:
109105 ParameterLabels :
110106 InstanceType :
111107 default : ' Instance type'
112- KeyName :
113- default : ' SSH key name'
114108 AmiId :
115109 default : ' AMI ID'
116110 VolumeSize :
@@ -131,14 +125,18 @@ Metadata:
131125 default : ' Page size'
132126
133127Resources :
128+ NewKeyPair :
129+ Type : AWS::EC2::KeyPair
130+ Properties :
131+ KeyName : !Sub "${AWS::StackName}"
134132 Ec2Instance :
135133 Type : AWS::EC2::Instance
136134 CreationPolicy :
137135 ResourceSignal :
138136 Count : 1
139137 Properties :
140138 InstanceType : !Ref InstanceType
141- KeyName : !Ref KeyName
139+ KeyName : !Ref NewKeyPair
142140 ImageId : !Ref AmiId
143141 SecurityGroups :
144142 - !Ref AccessSecurityGroup
@@ -243,4 +241,4 @@ Resources:
243241Outputs :
244242 PodsyncUrl :
245243 Description : ' Feed URL'
246- Value : !Sub "http://${Ec2Instance.PublicDnsName}:${PodsyncPort}/${FeedId}/"
244+ Value : !Sub "http://${Ec2Instance.PublicDnsName}:${PodsyncPort}/${FeedId}.xml /"
0 commit comments