mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 06:42:10 -04:00
correct kwargs
This commit is contained in:
parent
b8c9cdcec3
commit
e4b0fa67de
1 changed files with 9 additions and 9 deletions
|
|
@ -159,15 +159,15 @@ def make_instance(ec2_client,
|
|||
tags = [{'Key': 'Name', 'Value': instance_name}]
|
||||
tag_spec = [{'ResourceType': 'instance', 'Tags': tags}]
|
||||
kwargs = {
|
||||
BlockDeviceMappings=block_device_mappings,
|
||||
ImageId=ami_id,
|
||||
SecurityGroupIds=[security_group_id],
|
||||
SubnetId=subnet_id,
|
||||
KeyName=keyname,
|
||||
MinCount=1,
|
||||
MaxCount=1,
|
||||
InstanceType=machine_type,
|
||||
TagSpecifications=tag_spec
|
||||
'BlockDeviceMappings': block_device_mappings,
|
||||
'ImageId': ami_id,
|
||||
'SecurityGroupIds': [security_group_id],
|
||||
'SubnetId': subnet_id,
|
||||
'KeyName': keyname,
|
||||
'MinCount': 1,
|
||||
'MaxCount': 1,
|
||||
'InstanceType': machine_type,
|
||||
'TagSpecifications': tag_spec
|
||||
}
|
||||
if self_destruct:
|
||||
kwargs['InstanceInitiatedShutdownBehavior'] = 'terminate'
|
||||
|
|
|
|||
Loading…
Reference in a new issue