- increase key name combination to 20 characters of length
- add ID to the profiles download link
This commit is contained in:
parent
b062dbac1a
commit
e5a46b4bf0
@ -401,7 +401,7 @@
|
|||||||
"'''",
|
"'''",
|
||||||
"def handler(event, context):",
|
"def handler(event, context):",
|
||||||
" try:",
|
" try:",
|
||||||
" keyName = 'setup-ipsec-vpn-' + ''.join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(10)).lower()",
|
" keyName = 'setup-ipsec-vpn-' + ''.join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(20)).lower()",
|
||||||
" region = event['ResourceProperties']['Region']",
|
" region = event['ResourceProperties']['Region']",
|
||||||
" ec2 = boto3.client('ec2',region)",
|
" ec2 = boto3.client('ec2',region)",
|
||||||
" response = ec2.create_key_pair(",
|
" response = ec2.create_key_pair(",
|
||||||
@ -724,10 +724,17 @@
|
|||||||
"RegionalDomainName"
|
"RegionalDomainName"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"/profiles.zip"
|
"/",
|
||||||
|
{
|
||||||
|
"Fn::GetAtt": [
|
||||||
|
"KeyPairInfo",
|
||||||
|
"KeyName"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"-profiles.zip"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user