diff --git a/lib/ansible/module_utils/aws/waiters.py b/lib/ansible/module_utils/aws/waiters.py
index 7adb0c41cc3..9bcc76bfddf 100644
--- a/lib/ansible/module_utils/aws/waiters.py
+++ b/lib/ansible/module_utils/aws/waiters.py
@@ -115,6 +115,24 @@ ec2_data = {
},
]
},
+ "VpnGatewayExists": {
+ "delay": 5,
+ "maxAttempts": 40,
+ "operation": "DescribeVpnGateways",
+ "acceptors": [
+ {
+ "matcher": "path",
+ "expected": True,
+ "argument": "length(VpnGateways[]) > `0`",
+ "state": "success"
+ },
+ {
+ "matcher": "error",
+ "expected": "InvalidVpnGatewayID.NotFound",
+ "state": "retry"
+ },
+ ]
+ },
}
}
@@ -197,6 +215,12 @@ waiters_by_name = {
core_waiter.NormalizedOperationMethod(
ec2.describe_subnets
)),
+ ('EC2', 'vpn_gateway_exists'): lambda ec2: core_waiter.Waiter(
+ 'vpn_gateway_exists',
+ ec2_model('VpnGatewayExists'),
+ core_waiter.NormalizedOperationMethod(
+ ec2.describe_vpn_gateways
+ )),
('WAF', 'change_token_in_sync'): lambda waf: core_waiter.Waiter(
'change_token_in_sync',
waf_model('ChangeTokenInSync'),
diff --git a/lib/ansible/modules/cloud/amazon/ec2_vpc_vgw.py b/lib/ansible/modules/cloud/amazon/ec2_vpc_vgw.py
index b545a4b1826..ac7a5e5f486 100644
--- a/lib/ansible/modules/cloud/amazon/ec2_vpc_vgw.py
+++ b/lib/ansible/modules/cloud/amazon/ec2_vpc_vgw.py
@@ -112,8 +112,9 @@ try:
except ImportError:
HAS_BOTO3 = False
+from ansible.module_utils.aws.waiters import get_waiter
from ansible.module_utils.basic import AnsibleModule
-from ansible.module_utils.ec2 import HAS_BOTO3, boto3_conn, ec2_argument_spec, get_aws_connection_info
+from ansible.module_utils.ec2 import HAS_BOTO3, boto3_conn, ec2_argument_spec, get_aws_connection_info, AWSRetry
from ansible.module_utils._text import to_native
@@ -164,7 +165,7 @@ def attach_vgw(client, module, vpn_gateway_id):
params['VpcId'] = module.params.get('vpc_id')
try:
- response = client.attach_vpn_gateway(VpnGatewayId=vpn_gateway_id, VpcId=params['VpcId'])
+ response = AWSRetry.jittered_backoff()(client.attach_vpn_gateway)(VpnGatewayId=vpn_gateway_id, VpcId=params['VpcId'])
except botocore.exceptions.ClientError as e:
module.fail_json(msg=to_native(e), exception=traceback.format_exc())
@@ -205,6 +206,14 @@ def create_vgw(client, module):
try:
response = client.create_vpn_gateway(Type=params['Type'])
+ get_waiter(
+ client, 'vpn_gateway_exists'
+ ).wait(
+ VpnGatewayIds=[response['VpnGateway']['VpnGatewayId']]
+ )
+ except botocore.exceptions.WaiterError as e:
+ module.fail_json(msg="Failed to wait for Vpn Gateway {0} to be available".format(response['VpnGateway']['VpnGatewayId']),
+ exception=traceback.format_exc())
except botocore.exceptions.ClientError as e:
module.fail_json(msg=to_native(e), exception=traceback.format_exc())
@@ -329,37 +338,21 @@ def find_vpc(client, module):
def find_vgw(client, module, vpn_gateway_id=None):
params = dict()
- params['Name'] = module.params.get('name')
- params['Type'] = module.params.get('type')
- params['State'] = module.params.get('state')
-
- if params['State'] == 'present':
- try:
- response = client.describe_vpn_gateways(Filters=[
- {'Name': 'type', 'Values': [params['Type']]},
- {'Name': 'tag:Name', 'Values': [params['Name']]}
- ])
- except botocore.exceptions.ClientError as e:
- module.fail_json(msg=to_native(e), exception=traceback.format_exc())
-
+ if vpn_gateway_id:
+ params['VpnGatewayIds'] = vpn_gateway_id
else:
- if vpn_gateway_id:
- try:
- response = client.describe_vpn_gateways(VpnGatewayIds=vpn_gateway_id)
- except botocore.exceptions.ClientError as e:
- module.fail_json(msg=to_native(e), exception=traceback.format_exc())
+ params['Filters'] = [
+ {'Name': 'type', 'Values': [module.params.get('type')]},
+ {'Name': 'tag:Name', 'Values': [module.params.get('name')]},
+ ]
+ if module.params.get('state') == 'present':
+ params['Filters'].append({'Name': 'state', 'Values': ['pending', 'available']})
+ try:
+ response = client.describe_vpn_gateways(**params)
+ except botocore.exceptions.ClientError as e:
+ module.fail_json(msg=to_native(e), exception=traceback.format_exc())
- else:
- try:
- response = client.describe_vpn_gateways(Filters=[
- {'Name': 'type', 'Values': [params['Type']]},
- {'Name': 'tag:Name', 'Values': [params['Name']]}
- ])
- except botocore.exceptions.ClientError as e:
- module.fail_json(msg=to_native(e), exception=traceback.format_exc())
-
- result = response['VpnGateways']
- return result
+ return sorted(response['VpnGateways'], key=lambda k: k['VpnGatewayId'])
def ensure_vgw_present(client, module):
@@ -376,40 +369,33 @@ def ensure_vgw_present(client, module):
params['Tags'] = module.params.get('tags')
params['VpnGatewayIds'] = module.params.get('vpn_gateway_id')
- # Check that a name argument has been supplied.
- if not module.params.get('name'):
- module.fail_json(msg='A name is required when a status of \'present\' is suppled')
+ # check that the vpc_id exists. If not, an exception is thrown
+ if params['VpcId']:
+ vpc = find_vpc(client, module)
# check if a gateway matching our module args already exists
existing_vgw = find_vgw(client, module)
- if existing_vgw != [] and existing_vgw[0]['State'] != 'deleted':
+ if existing_vgw != []:
vpn_gateway_id = existing_vgw[0]['VpnGatewayId']
vgw, changed = check_tags(client, module, existing_vgw, vpn_gateway_id)
# if a vpc_id was provided, check if it exists and if it's attached
if params['VpcId']:
- # check that the vpc_id exists. If not, an exception is thrown
- vpc = find_vpc(client, module)
current_vpc_attachments = existing_vgw[0]['VpcAttachments']
if current_vpc_attachments != [] and current_vpc_attachments[0]['State'] == 'attached':
- if current_vpc_attachments[0]['VpcId'] == params['VpcId'] and current_vpc_attachments[0]['State'] == 'attached':
- changed = False
- else:
-
+ if current_vpc_attachments[0]['VpcId'] != params['VpcId'] or current_vpc_attachments[0]['State'] != 'attached':
# detach the existing vpc from the virtual gateway
vpc_to_detach = current_vpc_attachments[0]['VpcId']
detach_vgw(client, module, vpn_gateway_id, vpc_to_detach)
time.sleep(5)
attached_vgw = attach_vgw(client, module, vpn_gateway_id)
- vgw = find_vgw(client, module, [vpn_gateway_id])
changed = True
else:
# attach the vgw to the supplied vpc
attached_vgw = attach_vgw(client, module, vpn_gateway_id)
- vgw = find_vgw(client, module, [vpn_gateway_id])
changed = True
# if params['VpcId'] is not provided, check the vgw is attached to a vpc. if so, detach it.
@@ -423,8 +409,6 @@ def ensure_vgw_present(client, module):
detach_vgw(client, module, vpn_gateway_id, vpc_to_detach)
changed = True
- vgw = find_vgw(client, module, [vpn_gateway_id])
-
else:
# create a new vgw
new_vgw = create_vgw(client, module)
@@ -434,15 +418,13 @@ def ensure_vgw_present(client, module):
# tag the new virtual gateway
create_tags(client, module, vpn_gateway_id)
- # return current state of the vgw
- vgw = find_vgw(client, module, [vpn_gateway_id])
-
# if a vpc-id was supplied, attempt to attach it to the vgw
if params['VpcId']:
attached_vgw = attach_vgw(client, module, vpn_gateway_id)
changed = True
- vgw = find_vgw(client, module, [vpn_gateway_id])
+ # return current state of the vgw
+ vgw = find_vgw(client, module, [vpn_gateway_id])
result = get_vgw_info(vgw)
return changed, result
@@ -549,7 +531,8 @@ def main():
tags=dict(default=None, required=False, type='dict', aliases=['resource_tags']),
)
)
- module = AnsibleModule(argument_spec=argument_spec)
+ module = AnsibleModule(argument_spec=argument_spec,
+ required_if=[['state', 'present', ['name']]])
if not HAS_BOTO3:
module.fail_json(msg='json and boto3 is required.')
diff --git a/lib/ansible/modules/cloud/amazon/ec2_vpc_vpn.py b/lib/ansible/modules/cloud/amazon/ec2_vpc_vpn.py
index f547220c63f..23103e8c8a1 100644
--- a/lib/ansible/modules/cloud/amazon/ec2_vpc_vpn.py
+++ b/lib/ansible/modules/cloud/amazon/ec2_vpc_vpn.py
@@ -266,24 +266,25 @@ vpn_connection_id:
vpn_connection_id: vpn-781e0e19
"""
-from ansible.module_utils.basic import AnsibleModule
+from ansible.module_utils.aws.core import AnsibleAWSModule
from ansible.module_utils._text import to_text
-from ansible.module_utils import ec2 as ec2_utils
-import traceback
+from ansible.module_utils.ec2 import (
+ camel_dict_to_snake_dict,
+ boto3_tag_list_to_ansible_dict,
+ compare_aws_tags,
+ ansible_dict_to_boto3_tag_list,
+)
try:
- import boto3
- import botocore
+ from botocore.exceptions import BotoCoreError, ClientError, WaiterError
except ImportError:
- # will be caught in main
- pass
+ pass # Handled by AnsibleAWSModule
class VPNConnectionException(Exception):
- def __init__(self, msg, exception=None, response=None):
+ def __init__(self, msg, exception=None):
self.msg = msg
- self.error_traceback = exception
- self.response = response
+ self.exception = exception
def find_connection(connection, module_params, vpn_connection_id=None):
@@ -309,16 +310,13 @@ def find_connection(connection, module_params, vpn_connection_id=None):
# see if there is a unique matching connection
try:
if vpn_connection_id:
- existing_conn = connection.describe_vpn_connections(DryRun=False,
- VpnConnectionIds=vpn_connection_id,
+ existing_conn = connection.describe_vpn_connections(VpnConnectionIds=vpn_connection_id,
Filters=formatted_filter)
else:
- existing_conn = connection.describe_vpn_connections(DryRun=False,
- Filters=formatted_filter)
- except botocore.exceptions.ClientError as e:
+ existing_conn = connection.describe_vpn_connections(Filters=formatted_filter)
+ except (BotoCoreError, ClientError) as e:
raise VPNConnectionException(msg="Failed while describing VPN connection.",
- exception=traceback.format_exc(),
- **ec2_utils.camel_dict_to_snake_dict(e.response))
+ exception=e)
return find_connection_response(connections=existing_conn)
@@ -328,10 +326,9 @@ def add_routes(connection, vpn_connection_id, routes_to_add):
try:
connection.create_vpn_connection_route(VpnConnectionId=vpn_connection_id,
DestinationCidrBlock=route)
- except botocore.exceptions.ClientError as e:
+ except (BotoCoreError, ClientError) as e:
raise VPNConnectionException(msg="Failed while adding route {0} to the VPN connection {1}.".format(route, vpn_connection_id),
- exception=traceback.format_exc(),
- response=e.response)
+ exception=e)
def remove_routes(connection, vpn_connection_id, routes_to_remove):
@@ -339,10 +336,9 @@ def remove_routes(connection, vpn_connection_id, routes_to_remove):
try:
connection.delete_vpn_connection_route(VpnConnectionId=vpn_connection_id,
DestinationCidrBlock=route)
- except botocore.exceptions.ClientError as e:
+ except (BotoCoreError, ClientError) as e:
raise VPNConnectionException(msg="Failed to remove route {0} from the VPN connection {1}.".format(route, vpn_connection_id),
- exception=traceback.format_exc(),
- response=e.response)
+ exception=e)
def create_filter(module_params, provided_filters):
@@ -456,15 +452,17 @@ def create_connection(connection, customer_gateway_id, static_only, vpn_gateway_
raise VPNConnectionException(msg="No matching connection was found. To create a new connection you must provide "
"both vpn_gateway_id and customer_gateway_id.")
try:
- vpn = connection.create_vpn_connection(DryRun=False,
- Type=connection_type,
+ vpn = connection.create_vpn_connection(Type=connection_type,
CustomerGatewayId=customer_gateway_id,
VpnGatewayId=vpn_gateway_id,
Options=options)
- except botocore.exceptions.ClientError as e:
- raise VPNConnectionException(msg="Failed to create VPN connection: {0}".format(e.message),
- exception=traceback.format_exc(),
- response=e.response)
+ connection.get_waiter('vpn_connection_available').wait(VpnConnectionIds=[vpn['VpnConnection']['VpnConnectionId']])
+ except WaiterError as e:
+ raise VPNConnectionException(msg="Failed to wait for VPN connection {0} to be available".format(vpn['VpnConnection']['VpnConnectionId']),
+ exception=e)
+ except (BotoCoreError, ClientError) as e:
+ raise VPNConnectionException(msg="Failed to create VPN connection",
+ exception=e)
return vpn['VpnConnection']
@@ -472,36 +470,34 @@ def create_connection(connection, customer_gateway_id, static_only, vpn_gateway_
def delete_connection(connection, vpn_connection_id):
""" Deletes a VPN connection """
try:
- connection.delete_vpn_connection(DryRun=False,
- VpnConnectionId=vpn_connection_id)
- except botocore.exceptions.ClientError as e:
- raise VPNConnectionException(msg="Failed to delete the VPN connection: {0}".format(e.message),
- exception=traceback.format_exc(),
- response=e.response)
+ connection.delete_vpn_connection(VpnConnectionId=vpn_connection_id)
+ connection.get_waiter('vpn_connection_deleted').wait(VpnConnectionIds=[vpn_connection_id])
+ except WaiterError as e:
+ raise VPNConnectionException(msg="Failed to wait for VPN connection {0} to be removed".format(vpn_connection_id),
+ exception=e)
+ except (BotoCoreError, ClientError) as e:
+ raise VPNConnectionException(msg="Failed to delete the VPN connection: {0}".format(vpn_connection_id),
+ exception=e)
def add_tags(connection, vpn_connection_id, add):
try:
- connection.create_tags(DryRun=False,
- Resources=[vpn_connection_id],
+ connection.create_tags(Resources=[vpn_connection_id],
Tags=add)
- except botocore.exceptions.ClientError as e:
+ except (BotoCoreError, ClientError) as e:
raise VPNConnectionException(msg="Failed to add the tags: {0}.".format(add),
- exception=traceback.format_exc(),
- response=e.response)
+ exception=e)
def remove_tags(connection, vpn_connection_id, remove):
# format tags since they are a list in the format ['tag1', 'tag2', 'tag3']
key_dict_list = [{'Key': tag} for tag in remove]
try:
- connection.delete_tags(DryRun=False,
- Resources=[vpn_connection_id],
+ connection.delete_tags(Resources=[vpn_connection_id],
Tags=key_dict_list)
- except botocore.exceptions.ClientError as e:
+ except (BotoCoreError, ClientError) as e:
raise VPNConnectionException(msg="Failed to remove the tags: {0}.".format(remove),
- exception=traceback.format_exc(),
- response=e.response)
+ exception=e)
def check_for_update(connection, module_params, vpn_connection_id):
@@ -512,7 +508,7 @@ def check_for_update(connection, module_params, vpn_connection_id):
purge_routes = module_params.get('purge_routes')
vpn_connection = find_connection(connection, module_params, vpn_connection_id=vpn_connection_id)
- current_attrs = ec2_utils.camel_dict_to_snake_dict(vpn_connection)
+ current_attrs = camel_dict_to_snake_dict(vpn_connection)
# Initialize changes dict
changes = {'tags_to_add': [],
@@ -521,14 +517,9 @@ def check_for_update(connection, module_params, vpn_connection_id):
'routes_to_remove': []}
# Get changes to tags
- if 'tags' in current_attrs:
- current_tags = ec2_utils.boto3_tag_list_to_ansible_dict(current_attrs['tags'], u'key', u'value')
- tags_to_add, changes['tags_to_remove'] = ec2_utils.compare_aws_tags(current_tags, tags, purge_tags)
- changes['tags_to_add'] = ec2_utils.ansible_dict_to_boto3_tag_list(tags_to_add)
- elif tags:
- current_tags = {}
- tags_to_add, changes['tags_to_remove'] = ec2_utils.compare_aws_tags(current_tags, tags, purge_tags)
- changes['tags_to_add'] = ec2_utils.ansible_dict_to_boto3_tag_list(tags_to_add)
+ current_tags = boto3_tag_list_to_ansible_dict(current_attrs.get('tags', []), u'key', u'value')
+ tags_to_add, changes['tags_to_remove'] = compare_aws_tags(current_tags, tags, purge_tags)
+ changes['tags_to_add'] = ansible_dict_to_boto3_tag_list(tags_to_add)
# Get changes to routes
if 'Routes' in vpn_connection:
current_routes = [route['DestinationCidrBlock'] for route in vpn_connection['Routes']]
@@ -603,7 +594,7 @@ def get_check_mode_results(connection, module_params, vpn_connection_id=None, cu
# get combined current tags and tags to set
present_tags = module_params.get('tags')
if current_state and 'Tags' in current_state:
- current_tags = ec2_utils.boto3_tag_list_to_ansible_dict(current_state['Tags'])
+ current_tags = boto3_tag_list_to_ansible_dict(current_state['Tags'])
if module_params.get('purge_tags'):
if current_tags != present_tags:
changed = True
@@ -680,7 +671,7 @@ def ensure_present(connection, module_params, check_mode=False):
if vpn_connection:
vpn_connection = find_connection(connection, module_params, vpn_connection['VpnConnectionId'])
if 'Tags' in vpn_connection:
- vpn_connection['Tags'] = ec2_utils.boto3_tag_list_to_ansible_dict(vpn_connection['Tags'])
+ vpn_connection['Tags'] = boto3_tag_list_to_ansible_dict(vpn_connection['Tags'])
return changed, vpn_connection
@@ -702,38 +693,23 @@ def ensure_absent(connection, module_params, check_mode=False):
def main():
- argument_spec = ec2_utils.ec2_argument_spec()
- argument_spec.update(
- dict(
- state=dict(type='str', default='present', choices=['present', 'absent']),
- filters=dict(type='dict', default={}),
- vpn_gateway_id=dict(type='str'),
- tags=dict(default={}, type='dict'),
- connection_type=dict(default='ipsec.1', type='str'),
- tunnel_options=dict(type='list', default=[]),
- static_only=dict(default=False, type='bool'),
- customer_gateway_id=dict(type='str'),
- vpn_connection_id=dict(type='str'),
- purge_tags=dict(type='bool', default=False),
- routes=dict(type='list', default=[]),
- purge_routes=dict(type='bool', default=False),
- )
+ argument_spec = dict(
+ state=dict(type='str', default='present', choices=['present', 'absent']),
+ filters=dict(type='dict', default={}),
+ vpn_gateway_id=dict(type='str'),
+ tags=dict(default={}, type='dict'),
+ connection_type=dict(default='ipsec.1', type='str'),
+ tunnel_options=dict(type='list', default=[]),
+ static_only=dict(default=False, type='bool'),
+ customer_gateway_id=dict(type='str'),
+ vpn_connection_id=dict(type='str'),
+ purge_tags=dict(type='bool', default=False),
+ routes=dict(type='list', default=[]),
+ purge_routes=dict(type='bool', default=False),
)
- module = AnsibleModule(argument_spec=argument_spec,
- supports_check_mode=True)
-
- if not ec2_utils.HAS_BOTO3:
- module.fail_json(msg='boto3 required for this module')
-
- # Retrieve any AWS settings from the environment.
- region, ec2_url, aws_connect_kwargs = ec2_utils.get_aws_connection_info(module, boto3=True)
-
- if not region:
- module.fail_json(msg="Either region or AWS_REGION or EC2_REGION environment variable or boto config aws_region or ec2_region must be set.")
-
- connection = ec2_utils.boto3_conn(module, conn_type='client',
- resource='ec2', region=region,
- endpoint=ec2_url, **aws_connect_kwargs)
+ module = AnsibleAWSModule(argument_spec=argument_spec,
+ supports_check_mode=True)
+ connection = module.client('ec2')
state = module.params.get('state')
parameters = dict(module.params)
@@ -744,16 +720,12 @@ def main():
elif state == 'absent':
changed, response = ensure_absent(connection, parameters, module.check_mode)
except VPNConnectionException as e:
- if e.response and e.error_traceback:
- module.fail_json(msg=e.msg, exception=e.error_traceback, **ec2_utils.camel_dict_to_snake_dict(e.response))
- elif e.error_traceback:
- module.fail_json(msg=e.msg, exception=e.error_traceback)
+ if e.exception:
+ module.fail_json_aws(e.exception, msg=e.msg)
else:
module.fail_json(msg=e.msg)
- facts_result = dict(changed=changed, **ec2_utils.camel_dict_to_snake_dict(response))
-
- module.exit_json(**facts_result)
+ module.exit_json(changed=changed, **camel_dict_to_snake_dict(response))
if __name__ == '__main__':
main()
diff --git a/test/integration/targets/ec2_vpc_vgw/aliases b/test/integration/targets/ec2_vpc_vgw/aliases
new file mode 100644
index 00000000000..d6ae2f116bc
--- /dev/null
+++ b/test/integration/targets/ec2_vpc_vgw/aliases
@@ -0,0 +1,2 @@
+cloud/aws
+posix/ci/cloud/group4/aws
diff --git a/test/integration/targets/ec2_vpc_vgw/tasks/main.yml b/test/integration/targets/ec2_vpc_vgw/tasks/main.yml
new file mode 100644
index 00000000000..13365146e14
--- /dev/null
+++ b/test/integration/targets/ec2_vpc_vgw/tasks/main.yml
@@ -0,0 +1,171 @@
+---
+- block:
+
+ # ============================================================
+ - name: set up aws connection info
+ set_fact:
+ aws_connection_info: &aws_connection_info
+ aws_access_key: "{{ aws_access_key }}"
+ aws_secret_key: "{{ aws_secret_key }}"
+ security_token: "{{ security_token }}"
+ region: "{{ aws_region }}"
+ no_log: yes
+
+ # ============================================================
+ - debug: msg="Setting up test dependencies"
+
+ - name: create a VPC
+ ec2_vpc_net:
+ name: "{{ resource_prefix }}-vpc-{{ item }}"
+ state: present
+ cidr_block: "10.0.0.0/26"
+ <<: *aws_connection_info
+ tags:
+ Name: "{{ resource_prefix }}-vpc-{{ item }}"
+ Description: "Created by ansible-test"
+ register: vpc_result
+ loop: [1, 2]
+
+ - name: use set fact for vpc ids
+ set_fact:
+ vpc_id_1: '{{ vpc_result.results.0.vpc.id }}'
+ vpc_id_2: '{{ vpc_result.results.1.vpc.id }}'
+
+ # ============================================================
+ - debug: msg="Running tests"
+
+ - name: create vpn gateway and attach it to vpc
+ ec2_vpc_vgw:
+ state: present
+ vpc_id: '{{ vpc_id_1 }}'
+ name: "{{ resource_prefix }}-vgw"
+ <<: *aws_connection_info
+ register: vgw
+
+ - assert:
+ that:
+ - vgw.changed
+ - "{{ vgw.vgw.vpc_id == vpc_id_1 }}"
+ - '"{{ vgw.vgw.tags.Name }}" == "{{ resource_prefix }}-vgw"'
+
+ - name: test idempotence
+ ec2_vpc_vgw:
+ state: present
+ vpc_id: '{{ vpc_id_1 }}'
+ name: "{{ resource_prefix }}-vgw"
+ <<: *aws_connection_info
+ register: vgw
+
+ - assert:
+ that:
+ - not vgw.changed
+
+ # ============================================================
+ - name: attach vpn gateway to the other VPC
+ ec2_vpc_vgw:
+ state: present
+ vpc_id: '{{ vpc_id_2 }}'
+ name: "{{ resource_prefix }}-vgw"
+ <<: *aws_connection_info
+ register: vgw
+
+ - assert:
+ that:
+ - vgw.changed
+ - "{{ vgw.vgw.vpc_id == vpc_id_2 }}"
+
+ # ============================================================
+ - name: add tags to the VGW
+ ec2_vpc_vgw:
+ state: present
+ vpc_id: '{{ vpc_id_2 }}'
+ name: "{{ resource_prefix }}-vgw"
+ tags:
+ created_by: ec2_vpc_vgw integration tests
+ <<: *aws_connection_info
+ register: vgw
+
+ - assert:
+ that:
+ - vgw.changed
+ - vgw.vgw.tags | length == 2
+ - "'created_by' in vgw.vgw.tags"
+
+ - name: test idempotence
+ ec2_vpc_vgw:
+ state: present
+ vpc_id: '{{ vpc_id_2 }}'
+ name: "{{ resource_prefix }}-vgw"
+ tags:
+ created_by: ec2_vpc_vgw integration tests
+ <<: *aws_connection_info
+ register: vgw
+
+ - assert:
+ that:
+ - not vgw.changed
+
+ # ============================================================
+ - name: remove tags from the VGW
+ ec2_vpc_vgw:
+ state: present
+ vpc_id: '{{ vpc_id_2 }}'
+ name: "{{ resource_prefix }}-vgw"
+ <<: *aws_connection_info
+ register: vgw
+
+ - assert:
+ that:
+ - vgw.changed
+ - vgw.vgw.tags | length == 1
+ - '"{{ vgw.vgw.tags.Name }}" == "{{ resource_prefix }}-vgw"'
+
+ # ============================================================
+ - name: detach vpn gateway
+ ec2_vpc_vgw:
+ state: present
+ name: "{{ resource_prefix }}-vgw"
+ <<: *aws_connection_info
+ register: vgw
+
+ - assert:
+ that:
+ - vgw.changed
+ - not vgw.vgw.vpc_id
+
+ - name: test idempotence
+ ec2_vpc_vgw:
+ state: present
+ name: "{{ resource_prefix }}-vgw"
+ <<: *aws_connection_info
+ register: vgw
+
+ - assert:
+ that:
+ - not vgw.changed
+
+ # ============================================================
+
+ always:
+
+ - debug: msg="Removing test dependencies"
+
+ - name: delete vpn gateway
+ ec2_vpc_vgw:
+ state: absent
+ vpn_gateway_id: '{{ vgw.vgw.id }}'
+ <<: *aws_connection_info
+ ignore_errors: yes
+
+ - name: delete vpc
+ ec2_vpc_net:
+ name: "{{ resource_prefix }}-vpc-{{ item }}"
+ state: absent
+ cidr_block: "10.0.0.0/26"
+ <<: *aws_connection_info
+ loop: [1, 2]
+ register: result
+ retries: 10
+ delay: 5
+ until: result is not failed
+ ignore_errors: true
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.CreateVpnConnectionRoute_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.CreateVpnConnectionRoute_1.json
index 4d37e2109e7..2b8018f2548 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.CreateVpnConnectionRoute_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.CreateVpnConnectionRoute_1.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "cd85ac52-d6bb-4359-a3f9-2a38da538ba2",
+ "HTTPStatusCode": 200,
+ "RequestId": "22cf9d88-b0ca-4a6c-8bfa-a2969541f25b",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:29 GMT"
- }
+ "content-length": "249",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:18:47 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.CreateVpnConnectionRoute_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.CreateVpnConnectionRoute_2.json
index 5cbdb7296dd..540cb22d86b 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.CreateVpnConnectionRoute_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.CreateVpnConnectionRoute_2.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "317446c6-62c4-4204-9987-d9a203bd71f8",
+ "HTTPStatusCode": 200,
+ "RequestId": "ee7493f2-1db0-4edb-a2c8-66dc31c41df8",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:29 GMT"
- }
+ "content-length": "249",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:18:47 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.CreateVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.CreateVpnConnection_1.json
index b63456e638f..16510d83d40 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.CreateVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.CreateVpnConnection_1.json
@@ -1,28 +1,29 @@
{
- "status_code": 200,
"data": {
"VpnConnection": {
- "VpnConnectionId": "vpn-c0d1cad2",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.250\n 255.255.255.252\n 30\n \n \n \n \n 34.208.26.210\n \n \n 169.254.12.249\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 4PcswUCk9jOKcg0x6aVID9o5w73l0d0f\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.170\n 255.255.255.252\n 30\n \n \n \n \n 35.166.98.185\n \n \n 169.254.14.169\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n SGvO3U_dG.ofdKmpsDZsXsnZj7iWoZ.F\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
+ "CustomerGatewayId": "cgw-6113c87f",
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "VpnConnectionId": "vpn-9b06e28e",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ },
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "c02e6144-46bc-4da3-a15b-0695e6ef1fa4",
+ "HTTPStatusCode": 200,
+ "RequestId": "b0fe4793-77a1-4c92-978c-975c7b963c59",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:28 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5234",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:15:07 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DeleteVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DeleteVpnConnection_1.json
index bef6f808b56..30d8ac08ee9 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DeleteVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DeleteVpnConnection_1.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "0e3d9efd-85ad-4942-b2e8-85ceaf577cf8",
+ "HTTPStatusCode": 200,
+ "RequestId": "92162d1f-1563-4b14-8fc5-0821c50687cb",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:31 GMT"
- }
+ "content-length": "239",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:18:48 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_1.json
index 087b3b80bbc..97f64fd2526 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_1.json
@@ -1,140 +1,179 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d4d1cac6",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Ansible-Test",
+ "Value": "VPN"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dad1cac8",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d8d1caca",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "One",
+ "Value": "one"
+ },
+ {
+ "Key": "Two",
+ "Value": "two"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d9d1cacb",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-ded1cacc",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dfd1cacd",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dcd1cace",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-ddd1cacf",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-c2d1cad0",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-c3d1cad1",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "63558231-3b8b-4ee1-ab6c-cb0816524784",
+ "HTTPStatusCode": 200,
+ "RequestId": "9843e24b-c094-451f-9be3-3f859dc39385",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:27 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5887",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:15:06 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_10.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_10.json
new file mode 100644
index 00000000000..d67ec8ac010
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_10.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "d5d76451-0539-4de2-a197-dac87c4eb91b",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:17:13 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_11.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_11.json
new file mode 100644
index 00000000000..c61544026a8
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_11.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 23,
+ "minute": 17,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "7906c368-77fc-4afc-9ee4-c822dab4864e",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:17:29 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_12.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_12.json
new file mode 100644
index 00000000000..95032ac3f5b
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_12.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 23,
+ "minute": 17,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "b9e2ca97-e467-4dcc-a8fc-eff788e8ed49",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:17:44 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_13.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_13.json
new file mode 100644
index 00000000000..76d21af3c23
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_13.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 23,
+ "minute": 17,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "249f8e82-8137-4b69-8002-969e880dbcd2",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:18:00 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_14.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_14.json
new file mode 100644
index 00000000000..101822a5d9c
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_14.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 23,
+ "minute": 17,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "554aea72-2359-4c35-956b-1cd55c3b1ded",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:18:15 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_15.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_15.json
new file mode 100644
index 00000000000..a4fd2ecce72
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_15.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 23,
+ "minute": 17,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "a9203775-14d5-4020-aa61-f6709cd6c455",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:18:32 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_16.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_16.json
new file mode 100644
index 00000000000..6092812e211
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_16.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 18,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 23,
+ "minute": 17,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "c0621c72-8851-4c34-9d3d-7ae4bb5de50f",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:18:47 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_17.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_17.json
new file mode 100644
index 00000000000..ef7b5d3723b
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_17.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 18,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 23,
+ "minute": 17,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "62aae2fc-e699-4a66-9bea-1b4b2b26ce35",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:18:47 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_18.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_18.json
new file mode 100644
index 00000000000..afa295f3bfd
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_18.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 18,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 23,
+ "minute": 17,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "0d20ed3c-a88e-42ba-87cc-f573d22b0a11",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:18:47 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_19.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_19.json
new file mode 100644
index 00000000000..320101d50cd
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_19.json
@@ -0,0 +1,235 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [
+ {
+ "DestinationCidrBlock": "195.168.2.0/24",
+ "State": "available"
+ },
+ {
+ "DestinationCidrBlock": "196.168.2.0/24",
+ "State": "available"
+ }
+ ],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 2,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 18,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 2,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 23,
+ "minute": 17,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Ansible-Test",
+ "Value": "VPN"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "One",
+ "Value": "one"
+ },
+ {
+ "Key": "Two",
+ "Value": "two"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "d5ce628c-8270-4bb8-b0d9-c68b5834a9a8",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-type": "text/xml;charset=UTF-8",
+ "server": "AmazonEC2",
+ "date": "Mon, 16 Apr 2018 13:18:48 GMT",
+ "transfer-encoding": "chunked"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_2.json
index a57b1512ff5..12e36ed156e 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_2.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-c0d1cad2",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.250\n 255.255.255.252\n 30\n \n \n \n \n 34.208.26.210\n \n \n 169.254.12.249\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 4PcswUCk9jOKcg0x6aVID9o5w73l0d0f\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.170\n 255.255.255.252\n 30\n \n \n \n \n 35.166.98.185\n \n \n 169.254.14.169\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n SGvO3U_dG.ofdKmpsDZsXsnZj7iWoZ.F\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "34.208.26.210",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 28,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.166.98.185",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 28,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "5947bc65-4a3f-4b20-898c-47cc8e72d05b",
+ "HTTPStatusCode": 200,
+ "RequestId": "96ef43c9-1210-47a7-87f7-22c85a05eb2b",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:29 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:15:07 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_20.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_20.json
new file mode 100644
index 00000000000..bca49264855
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_20.json
@@ -0,0 +1,39 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "Routes": [
+ {
+ "DestinationCidrBlock": "196.168.2.0/24",
+ "State": "deleted"
+ },
+ {
+ "DestinationCidrBlock": "195.168.2.0/24",
+ "State": "deleted"
+ }
+ ],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "3a0d05ae-dbf7-4885-9b50-db2899bc30d5",
+ "HTTPHeaders": {
+ "content-length": "1066",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:18:48 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_3.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_3.json
index 33ab4bd0f08..b868885c82d 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_3.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_3.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-c0d1cad2",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.250\n 255.255.255.252\n 30\n \n \n \n \n 34.208.26.210\n \n \n 169.254.12.249\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 4PcswUCk9jOKcg0x6aVID9o5w73l0d0f\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.170\n 255.255.255.252\n 30\n \n \n \n \n 35.166.98.185\n \n \n 169.254.14.169\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n SGvO3U_dG.ofdKmpsDZsXsnZj7iWoZ.F\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "34.208.26.210",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 28,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.166.98.185",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 28,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "cd32e7fa-7f6f-45c4-8397-26e4be66a2e3",
+ "HTTPStatusCode": 200,
+ "RequestId": "c4fb8aa0-39ad-4333-9b45-25b48ce5a8cd",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:29 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:15:22 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_4.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_4.json
index 207e6fb4fc6..619c4866240 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_4.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_4.json
@@ -1,195 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d4d1cac6",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-dad1cac8",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d8d1caca",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d9d1cacb",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-ded1cacc",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-dfd1cacd",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-dcd1cace",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-ddd1cacf",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-c2d1cad0",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-c3d1cad1",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-c0d1cad2",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.250\n 255.255.255.252\n 30\n \n \n \n \n 34.208.26.210\n \n \n 169.254.12.249\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 4PcswUCk9jOKcg0x6aVID9o5w73l0d0f\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.170\n 255.255.255.252\n 30\n \n \n \n \n 35.166.98.185\n \n \n 169.254.14.169\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n SGvO3U_dG.ofdKmpsDZsXsnZj7iWoZ.F\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [
- {
- "DestinationCidrBlock": "196.168.2.0/24",
- "State": "available"
- },
- {
- "DestinationCidrBlock": "195.168.2.0/24",
- "State": "available"
- }
- ],
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 2,
- "OutsideIpAddress": "34.208.26.210",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 28,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 2,
- "OutsideIpAddress": "35.166.98.185",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 28,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "36ccb71c-af2a-4c5f-b002-98e30c42f083",
+ "HTTPStatusCode": 200,
+ "RequestId": "b728a197-4790-4987-afe1-23ba2d2edf55",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:30 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:15:38 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_5.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_5.json
new file mode 100644
index 00000000000..9ab3007c3a9
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_5.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "06bdac8b-d1ec-48d6-9af4-b2d5bf3fa2f4",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:15:55 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_6.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_6.json
new file mode 100644
index 00000000000..193586bf442
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_6.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "baefffe5-7638-423e-84fc-fd21fa7fc6d1",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:16:10 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_7.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_7.json
new file mode 100644
index 00000000000..b8569545efc
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_7.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "591329e5-78f5-4655-90c0-bf2b312b54af",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:16:26 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_8.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_8.json
new file mode 100644
index 00000000000..66e29949af0
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_8.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "4e526b69-b5ea-4f05-a81b-831aa5825e18",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:16:42 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_9.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_9.json
new file mode 100644
index 00000000000..35f035130df
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_routes/ec2.DescribeVpnConnections_9.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9b06e28e",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.116.135\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n OwpaQwQaVjEM2nWZRYOhh3.TxgU5QyG1\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.130\n 255.255.255.252\n 30\n \n \n \n \n 52.38.13.135\n \n \n 169.254.13.129\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oIbjSO1e2SVBqRuW2PzKn.CgsAdSOMME\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.11.116.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.13.135",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 7,
+ "minute": 15,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "534f5ec5-2d5f-46ac-8216-453fc4cad713",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:16:58 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.CreateTags_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.CreateTags_1.json
index 962d3af3b5b..8af115a96ec 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.CreateTags_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.CreateTags_1.json
@@ -1,17 +1,17 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "e897639f-7728-4cc7-b04e-6837d4b54bd0",
+ "HTTPStatusCode": 200,
+ "RequestId": "9661b9b4-e18b-491b-8182-6548bfb680bb",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:14 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-type": "text/xml;charset=UTF-8",
+ "server": "AmazonEC2",
+ "date": "Mon, 16 Apr 2018 13:12:21 GMT",
+ "transfer-encoding": "chunked"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.CreateVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.CreateVpnConnection_1.json
index b60b82cc988..e7cd28ab8b1 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.CreateVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.CreateVpnConnection_1.json
@@ -1,28 +1,29 @@
{
- "status_code": 200,
"data": {
"VpnConnection": {
- "VpnConnectionId": "vpn-c2d1cad0",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.66\n 255.255.255.252\n 30\n \n \n \n \n 52.26.111.81\n \n \n 169.254.14.65\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n RkrJYFTeDYWquAgtuNhYpVE8DBSyVmXP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.250\n 255.255.255.252\n 30\n \n \n \n \n 52.41.226.200\n \n \n 169.254.13.249\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n UL8iJhwcFcSI8fm_VqPVm9NiBtjmCbCC\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
+ "CustomerGatewayId": "cgw-6113c87f",
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 34.212.254.7\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n b2DU0T9yhIWbDPukoG2NBtbPNrruDTRm\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.106\n 255.255.255.252\n 30\n \n \n \n \n 35.160.254.75\n \n \n 169.254.15.105\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n FOhYu_zZqXdic2Bvm_dYS03ONJCK.LfP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "VpnConnectionId": "vpn-9e06e28b",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ },
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "16749092-9188-43a5-a888-283ed45873e7",
+ "HTTPStatusCode": 200,
+ "RequestId": "0c445bcd-4e37-4368-b45d-b4560bde459f",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:13 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5236",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:09:28 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DeleteVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DeleteVpnConnection_1.json
index 27e812b96b3..e190e232a71 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DeleteVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DeleteVpnConnection_1.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "8ed4bf62-d2b4-4a0d-9e4a-43bb51f04be2",
+ "HTTPStatusCode": 200,
+ "RequestId": "8deda3c9-1498-44ef-a663-111e93657c7f",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:15 GMT"
- }
+ "content-length": "239",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:12:22 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_1.json
index 4073e7a0af7..6d975f1ac7c 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_1.json
@@ -1,118 +1,149 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d4d1cac6",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "One",
+ "Value": "one"
+ },
+ {
+ "Key": "Two",
+ "Value": "two"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dad1cac8",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d8d1caca",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d9d1cacb",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-ded1cacc",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dfd1cacd",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dcd1cace",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-ddd1cacf",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "0c723ac9-9eb8-486e-94e0-28753d78b191",
+ "HTTPStatusCode": 200,
+ "RequestId": "e3c0cd84-d327-4a9e-8cac-0361a0afaaac",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:12 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "4836",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:09:28 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_10.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_10.json
new file mode 100644
index 00000000000..6066eb507ba
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_10.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 34.212.254.7\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n b2DU0T9yhIWbDPukoG2NBtbPNrruDTRm\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.106\n 255.255.255.252\n 30\n \n \n \n \n 35.160.254.75\n \n \n 169.254.15.105\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n FOhYu_zZqXdic2Bvm_dYS03ONJCK.LfP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.212.254.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.160.254.75",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "3888db16-157b-404a-9fea-fe27e8bd556d",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:11:34 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_11.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_11.json
new file mode 100644
index 00000000000..92d1f1e7f57
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_11.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 34.212.254.7\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n b2DU0T9yhIWbDPukoG2NBtbPNrruDTRm\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.106\n 255.255.255.252\n 30\n \n \n \n \n 35.160.254.75\n \n \n 169.254.15.105\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n FOhYu_zZqXdic2Bvm_dYS03ONJCK.LfP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.212.254.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 41,
+ "minute": 11,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.160.254.75",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "ada7d223-32a6-4b60-81bb-63bca2cb2d56",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:11:50 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_12.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_12.json
new file mode 100644
index 00000000000..e60cb21cec4
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_12.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 34.212.254.7\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n b2DU0T9yhIWbDPukoG2NBtbPNrruDTRm\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.106\n 255.255.255.252\n 30\n \n \n \n \n 35.160.254.75\n \n \n 169.254.15.105\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n FOhYu_zZqXdic2Bvm_dYS03ONJCK.LfP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.212.254.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 41,
+ "minute": 11,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.160.254.75",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 57,
+ "minute": 11,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "def174a4-c5c2-4e5b-a5b6-1c2448e869f1",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:12:05 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_13.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_13.json
new file mode 100644
index 00000000000..055f7de90ef
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_13.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 34.212.254.7\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n b2DU0T9yhIWbDPukoG2NBtbPNrruDTRm\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.106\n 255.255.255.252\n 30\n \n \n \n \n 35.160.254.75\n \n \n 169.254.15.105\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n FOhYu_zZqXdic2Bvm_dYS03ONJCK.LfP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.212.254.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 41,
+ "minute": 11,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.160.254.75",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 57,
+ "minute": 11,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "7c65999e-0e70-4aac-a720-b2216dbe70af",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:12:20 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_14.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_14.json
new file mode 100644
index 00000000000..e199f3c0fc3
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_14.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 34.212.254.7\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n b2DU0T9yhIWbDPukoG2NBtbPNrruDTRm\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.106\n 255.255.255.252\n 30\n \n \n \n \n 35.160.254.75\n \n \n 169.254.15.105\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n FOhYu_zZqXdic2Bvm_dYS03ONJCK.LfP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.212.254.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 41,
+ "minute": 11,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.160.254.75",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 57,
+ "minute": 11,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "1153ff47-87b6-40b1-bcdd-ae66c4d4a3ae",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:12:21 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_15.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_15.json
new file mode 100644
index 00000000000..f67a916094c
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_15.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 34.212.254.7\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n b2DU0T9yhIWbDPukoG2NBtbPNrruDTRm\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.106\n 255.255.255.252\n 30\n \n \n \n \n 35.160.254.75\n \n \n 169.254.15.105\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n FOhYu_zZqXdic2Bvm_dYS03ONJCK.LfP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.212.254.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 41,
+ "minute": 11,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.160.254.75",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 57,
+ "minute": 11,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "c0748f40-1e33-4f0b-9417-77092bfc9090",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:12:21 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_16.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_16.json
new file mode 100644
index 00000000000..8b6d7e2d30a
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_16.json
@@ -0,0 +1,202 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 34.212.254.7\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n b2DU0T9yhIWbDPukoG2NBtbPNrruDTRm\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.106\n 255.255.255.252\n 30\n \n \n \n \n 35.160.254.75\n \n \n 169.254.15.105\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n FOhYu_zZqXdic2Bvm_dYS03ONJCK.LfP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "Tags": [
+ {
+ "Key": "Ansible-Test",
+ "Value": "VPN"
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.212.254.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 41,
+ "minute": 11,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.160.254.75",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 57,
+ "minute": 11,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "State": "available"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "One",
+ "Value": "one"
+ },
+ {
+ "Key": "Two",
+ "Value": "two"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "16aa6a4d-0fca-4035-b607-c223fc424f81",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-type": "text/xml;charset=UTF-8",
+ "server": "AmazonEC2",
+ "date": "Mon, 16 Apr 2018 13:12:22 GMT",
+ "transfer-encoding": "chunked"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_17.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_17.json
new file mode 100644
index 00000000000..78a05ba8605
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_17.json
@@ -0,0 +1,36 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Ansible-Test",
+ "Value": "VPN"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "0d463b0f-87ea-4ada-a79a-f2bb0910c31c",
+ "HTTPHeaders": {
+ "content-length": "878",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:12:22 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_2.json
index 9f098e5f462..5c0dea83c39 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_2.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-c2d1cad0",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.66\n 255.255.255.252\n 30\n \n \n \n \n 52.26.111.81\n \n \n 169.254.14.65\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n RkrJYFTeDYWquAgtuNhYpVE8DBSyVmXP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.250\n 255.255.255.252\n 30\n \n \n \n \n 52.41.226.200\n \n \n 169.254.13.249\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n UL8iJhwcFcSI8fm_VqPVm9NiBtjmCbCC\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 34.212.254.7\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n b2DU0T9yhIWbDPukoG2NBtbPNrruDTRm\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.106\n 255.255.255.252\n 30\n \n \n \n \n 35.160.254.75\n \n \n 169.254.15.105\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n FOhYu_zZqXdic2Bvm_dYS03ONJCK.LfP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.26.111.81",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.212.254.7",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 14,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.41.226.200",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.160.254.75",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 14,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "d8126b94-4b79-4636-8cd3-780f95752ebe",
+ "HTTPStatusCode": 200,
+ "RequestId": "bab29653-3411-49bb-af70-3d7b3284ca06",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:14 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:09:28 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_3.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_3.json
index 233329f8591..3b47382cf9d 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_3.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_3.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-c2d1cad0",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.66\n 255.255.255.252\n 30\n \n \n \n \n 52.26.111.81\n \n \n 169.254.14.65\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n RkrJYFTeDYWquAgtuNhYpVE8DBSyVmXP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.250\n 255.255.255.252\n 30\n \n \n \n \n 52.41.226.200\n \n \n 169.254.13.249\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n UL8iJhwcFcSI8fm_VqPVm9NiBtjmCbCC\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 34.212.254.7\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n b2DU0T9yhIWbDPukoG2NBtbPNrruDTRm\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.106\n 255.255.255.252\n 30\n \n \n \n \n 35.160.254.75\n \n \n 169.254.15.105\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n FOhYu_zZqXdic2Bvm_dYS03ONJCK.LfP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.26.111.81",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.212.254.7",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 14,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.41.226.200",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.160.254.75",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 14,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "a200d727-f66f-4bd1-af1a-c9e5b57763b0",
+ "HTTPStatusCode": 200,
+ "RequestId": "d3732d64-34fb-40eb-bddb-c34e5e571921",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:14 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:09:44 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_4.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_4.json
index 6841253a3f2..701f05ae0a9 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_4.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_4.json
@@ -1,170 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 34.212.254.7\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n b2DU0T9yhIWbDPukoG2NBtbPNrruDTRm\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.106\n 255.255.255.252\n 30\n \n \n \n \n 35.160.254.75\n \n \n 169.254.15.105\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n FOhYu_zZqXdic2Bvm_dYS03ONJCK.LfP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d4d1cac6",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-dad1cac8",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d8d1caca",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d9d1cacb",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-ded1cacc",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-dfd1cacd",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-dcd1cace",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-ddd1cacf",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-c2d1cad0",
- "Tags": [
- {
- "Value": "VPN",
- "Key": "Ansible-Test"
- }
- ],
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.66\n 255.255.255.252\n 30\n \n \n \n \n 52.26.111.81\n \n \n 169.254.14.65\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n RkrJYFTeDYWquAgtuNhYpVE8DBSyVmXP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.250\n 255.255.255.252\n 30\n \n \n \n \n 52.41.226.200\n \n \n 169.254.13.249\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n UL8iJhwcFcSI8fm_VqPVm9NiBtjmCbCC\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.26.111.81",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.212.254.7",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 14,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.41.226.200",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.160.254.75",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 14,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "5406a662-9a2a-41ac-aed1-7aa4ca87d236",
+ "HTTPStatusCode": 200,
+ "RequestId": "bd3ccd25-a6d6-44cf-9371-f01ca22d3f57",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:15 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:10:00 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_5.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_5.json
new file mode 100644
index 00000000000..f25da7060f1
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_5.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 34.212.254.7\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n b2DU0T9yhIWbDPukoG2NBtbPNrruDTRm\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.106\n 255.255.255.252\n 30\n \n \n \n \n 35.160.254.75\n \n \n 169.254.15.105\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n FOhYu_zZqXdic2Bvm_dYS03ONJCK.LfP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.212.254.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.160.254.75",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "36906e17-078f-4c15-9e01-af3e233af2d3",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:10:15 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_6.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_6.json
new file mode 100644
index 00000000000..f8aa9ec9734
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_6.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 34.212.254.7\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n b2DU0T9yhIWbDPukoG2NBtbPNrruDTRm\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.106\n 255.255.255.252\n 30\n \n \n \n \n 35.160.254.75\n \n \n 169.254.15.105\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n FOhYu_zZqXdic2Bvm_dYS03ONJCK.LfP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.212.254.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.160.254.75",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "cab9bb1a-7afe-4c5f-b106-038b10cba813",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:10:31 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_7.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_7.json
new file mode 100644
index 00000000000..1a8a4f86aae
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_7.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 34.212.254.7\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n b2DU0T9yhIWbDPukoG2NBtbPNrruDTRm\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.106\n 255.255.255.252\n 30\n \n \n \n \n 35.160.254.75\n \n \n 169.254.15.105\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n FOhYu_zZqXdic2Bvm_dYS03ONJCK.LfP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.212.254.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.160.254.75",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "938c6207-f582-4935-bef5-a9e3b01e18e1",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:10:47 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_8.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_8.json
new file mode 100644
index 00000000000..e7f974dced9
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_8.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 34.212.254.7\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n b2DU0T9yhIWbDPukoG2NBtbPNrruDTRm\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.106\n 255.255.255.252\n 30\n \n \n \n \n 35.160.254.75\n \n \n 169.254.15.105\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n FOhYu_zZqXdic2Bvm_dYS03ONJCK.LfP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.212.254.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.160.254.75",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "0bf3fb58-412a-447c-8cf7-af7185ec7f93",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:11:02 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_9.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_9.json
new file mode 100644
index 00000000000..dbbefcbc5a6
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/add_tags/ec2.DescribeVpnConnections_9.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 34.212.254.7\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n b2DU0T9yhIWbDPukoG2NBtbPNrruDTRm\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.106\n 255.255.255.252\n 30\n \n \n \n \n 35.160.254.75\n \n \n 169.254.15.105\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n FOhYu_zZqXdic2Bvm_dYS03ONJCK.LfP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.212.254.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.160.254.75",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "b67d7024-2bad-4283-b440-5519b5541867",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:11:18 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.CreateVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.CreateVpnConnection_1.json
index 5dc6a6d4d4c..503422fc263 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.CreateVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.CreateVpnConnection_1.json
@@ -1,28 +1,29 @@
{
- "status_code": 200,
"data": {
"VpnConnection": {
- "VpnConnectionId": "vpn-ddd1cacf",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.186\n 255.255.255.252\n 30\n \n \n \n \n 35.165.127.130\n \n \n 169.254.13.185\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n PiBZrBwBpHPjQJxL2zLH12WDOSbIX8lv\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.18\n 255.255.255.252\n 30\n \n \n \n \n 52.37.57.18\n \n \n 169.254.15.17\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n TpmJttQ9t2E7J2JHiU4LBSRQ4pfdUUOv\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
+ "CustomerGatewayId": "cgw-6113c87f",
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.114\n 255.255.255.252\n 30\n \n \n \n \n 52.43.202.248\n \n \n 169.254.15.113\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n spNJGPBQfzbK8hNvpHNOaaml_paRZNKs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.126\n 255.255.255.252\n 30\n \n \n \n \n 54.70.185.193\n \n \n 169.254.14.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n yE7hnuavW4SzersgnMyKIoKbd0rE8giW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "VpnConnectionId": "vpn-9f06e28a",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ },
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "a8072f03-db43-4afa-aee0-00c12792a5bf",
+ "HTTPStatusCode": 200,
+ "RequestId": "3239a34a-f3ed-4ba7-9d31-99265ceda2a9",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:08 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5237",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:06:47 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DeleteVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DeleteVpnConnection_1.json
index b8215b0c70b..46de4d6ab4c 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DeleteVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DeleteVpnConnection_1.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "a89de9ea-6e3c-44c4-9c16-bd9e41ebfa07",
+ "HTTPStatusCode": 200,
+ "RequestId": "bdcbf647-c1cc-4971-b133-3e1cd8ee36d5",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:09 GMT"
- }
+ "content-length": "239",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:09:24 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_1.json
index c0559e4bb0f..835d53a9d95 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_1.json
@@ -1,107 +1,137 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "One",
+ "Value": "one"
+ },
+ {
+ "Key": "Two",
+ "Value": "two"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d4d1cac6",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dad1cac8",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d8d1caca",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d9d1cacb",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-ded1cacc",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dfd1cacd",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dcd1cace",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "a28c742b-c924-430d-a993-2fd52e0850ab",
+ "HTTPStatusCode": 200,
+ "RequestId": "87d4db59-f8e6-4d4c-9800-7c0bda5ebee2",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:08 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "4397",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:06:46 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_10.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_10.json
new file mode 100644
index 00000000000..7ee030b7d87
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_10.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.114\n 255.255.255.252\n 30\n \n \n \n \n 52.43.202.248\n \n \n 169.254.15.113\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n spNJGPBQfzbK8hNvpHNOaaml_paRZNKs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.126\n 255.255.255.252\n 30\n \n \n \n \n 54.70.185.193\n \n \n 169.254.14.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n yE7hnuavW4SzersgnMyKIoKbd0rE8giW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.43.202.248",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 47,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.70.185.193",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 8,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "40e8326d-2f4b-4761-a2f9-011c989b0d11",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:08:53 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_11.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_11.json
new file mode 100644
index 00000000000..9e4979b24f6
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_11.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.114\n 255.255.255.252\n 30\n \n \n \n \n 52.43.202.248\n \n \n 169.254.15.113\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n spNJGPBQfzbK8hNvpHNOaaml_paRZNKs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.126\n 255.255.255.252\n 30\n \n \n \n \n 54.70.185.193\n \n \n 169.254.14.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n yE7hnuavW4SzersgnMyKIoKbd0rE8giW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.43.202.248",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 3,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.70.185.193",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 8,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "5c5688ae-0f6e-4d88-adb6-d9f654c74b42",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:09:08 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_12.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_12.json
new file mode 100644
index 00000000000..ba464dc252b
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_12.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.114\n 255.255.255.252\n 30\n \n \n \n \n 52.43.202.248\n \n \n 169.254.15.113\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n spNJGPBQfzbK8hNvpHNOaaml_paRZNKs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.126\n 255.255.255.252\n 30\n \n \n \n \n 54.70.185.193\n \n \n 169.254.14.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n yE7hnuavW4SzersgnMyKIoKbd0rE8giW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.43.202.248",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 3,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.70.185.193",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 8,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "7a5c5c59-d48a-467b-9414-097a93c923ae",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6124",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:09:23 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_13.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_13.json
new file mode 100644
index 00000000000..57967a5e57e
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_13.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.114\n 255.255.255.252\n 30\n \n \n \n \n 52.43.202.248\n \n \n 169.254.15.113\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n spNJGPBQfzbK8hNvpHNOaaml_paRZNKs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.126\n 255.255.255.252\n 30\n \n \n \n \n 54.70.185.193\n \n \n 169.254.14.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n yE7hnuavW4SzersgnMyKIoKbd0rE8giW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.43.202.248",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 3,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.70.185.193",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 8,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "cb26ba43-cfc6-466b-8bde-5e63d58728e0",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6124",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:09:24 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_14.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_14.json
new file mode 100644
index 00000000000..6f500939bb7
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_14.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.114\n 255.255.255.252\n 30\n \n \n \n \n 52.43.202.248\n \n \n 169.254.15.113\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n spNJGPBQfzbK8hNvpHNOaaml_paRZNKs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.126\n 255.255.255.252\n 30\n \n \n \n \n 54.70.185.193\n \n \n 169.254.14.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n yE7hnuavW4SzersgnMyKIoKbd0rE8giW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.43.202.248",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 3,
+ "minute": 9,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.70.185.193",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 8,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "1005f435-3e86-461f-a96c-a4f45c32c795",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6124",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:09:24 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_15.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_15.json
new file mode 100644
index 00000000000..55bbb3116e8
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_15.json
@@ -0,0 +1,30 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "edac5b19-14be-4b2d-ab47-a2279de47d40",
+ "HTTPHeaders": {
+ "content-length": "705",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:09:25 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_2.json
index 09a54c51cf0..a69976b5566 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_2.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-ddd1cacf",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.186\n 255.255.255.252\n 30\n \n \n \n \n 35.165.127.130\n \n \n 169.254.13.185\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n PiBZrBwBpHPjQJxL2zLH12WDOSbIX8lv\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.18\n 255.255.255.252\n 30\n \n \n \n \n 52.37.57.18\n \n \n 169.254.15.17\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n TpmJttQ9t2E7J2JHiU4LBSRQ4pfdUUOv\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.114\n 255.255.255.252\n 30\n \n \n \n \n 52.43.202.248\n \n \n 169.254.15.113\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n spNJGPBQfzbK8hNvpHNOaaml_paRZNKs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.126\n 255.255.255.252\n 30\n \n \n \n \n 54.70.185.193\n \n \n 169.254.14.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n yE7hnuavW4SzersgnMyKIoKbd0rE8giW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.165.127.130",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.43.202.248",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 9,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 47,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.37.57.18",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.70.185.193",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 9,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 47,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "a2f41704-db5d-4939-82e0-39e14f8fd9fb",
+ "HTTPStatusCode": 200,
+ "RequestId": "07ee7fe5-c16a-4940-b099-3cd39aa9c2c8",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:09 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:06:47 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_3.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_3.json
index 53c30f86464..b1254a9ff9a 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_3.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_3.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-ddd1cacf",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.186\n 255.255.255.252\n 30\n \n \n \n \n 35.165.127.130\n \n \n 169.254.13.185\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n PiBZrBwBpHPjQJxL2zLH12WDOSbIX8lv\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.18\n 255.255.255.252\n 30\n \n \n \n \n 52.37.57.18\n \n \n 169.254.15.17\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n TpmJttQ9t2E7J2JHiU4LBSRQ4pfdUUOv\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.114\n 255.255.255.252\n 30\n \n \n \n \n 52.43.202.248\n \n \n 169.254.15.113\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n spNJGPBQfzbK8hNvpHNOaaml_paRZNKs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.126\n 255.255.255.252\n 30\n \n \n \n \n 54.70.185.193\n \n \n 169.254.14.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n yE7hnuavW4SzersgnMyKIoKbd0rE8giW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.165.127.130",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.43.202.248",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 9,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 47,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.37.57.18",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.70.185.193",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 9,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 47,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "42ba9a12-4c17-4ab4-8e6f-51ddc5ab46b7",
+ "HTTPStatusCode": 200,
+ "RequestId": "7f34b516-b810-4a2b-8e9c-2e4ac5ea32f2",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:09 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:07:03 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_4.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_4.json
new file mode 100644
index 00000000000..97128118379
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_4.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.114\n 255.255.255.252\n 30\n \n \n \n \n 52.43.202.248\n \n \n 169.254.15.113\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n spNJGPBQfzbK8hNvpHNOaaml_paRZNKs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.126\n 255.255.255.252\n 30\n \n \n \n \n 54.70.185.193\n \n \n 169.254.14.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n yE7hnuavW4SzersgnMyKIoKbd0rE8giW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.43.202.248",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 47,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.70.185.193",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 47,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "3f0d6abf-421a-4e56-9f19-a95c4639cbe6",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:07:18 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_5.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_5.json
new file mode 100644
index 00000000000..71ccc5f0bfb
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_5.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.114\n 255.255.255.252\n 30\n \n \n \n \n 52.43.202.248\n \n \n 169.254.15.113\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n spNJGPBQfzbK8hNvpHNOaaml_paRZNKs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.126\n 255.255.255.252\n 30\n \n \n \n \n 54.70.185.193\n \n \n 169.254.14.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n yE7hnuavW4SzersgnMyKIoKbd0rE8giW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.43.202.248",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 47,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.70.185.193",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 47,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "8174eae1-ae94-492c-b8d3-369a912dc994",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:07:34 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_6.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_6.json
new file mode 100644
index 00000000000..7fba5fbca67
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_6.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.114\n 255.255.255.252\n 30\n \n \n \n \n 52.43.202.248\n \n \n 169.254.15.113\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n spNJGPBQfzbK8hNvpHNOaaml_paRZNKs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.126\n 255.255.255.252\n 30\n \n \n \n \n 54.70.185.193\n \n \n 169.254.14.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n yE7hnuavW4SzersgnMyKIoKbd0rE8giW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.43.202.248",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 47,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.70.185.193",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 47,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "ab76cd4e-9a69-48f4-8fa6-7b1ea9710f2d",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:07:49 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_7.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_7.json
new file mode 100644
index 00000000000..e98f0cead5f
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_7.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.114\n 255.255.255.252\n 30\n \n \n \n \n 52.43.202.248\n \n \n 169.254.15.113\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n spNJGPBQfzbK8hNvpHNOaaml_paRZNKs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.126\n 255.255.255.252\n 30\n \n \n \n \n 54.70.185.193\n \n \n 169.254.14.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n yE7hnuavW4SzersgnMyKIoKbd0rE8giW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.43.202.248",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 47,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.70.185.193",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 47,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "9e552112-f325-4d3e-bb3d-0698b69a9074",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:08:05 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_8.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_8.json
new file mode 100644
index 00000000000..9f3c01830c7
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_8.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.114\n 255.255.255.252\n 30\n \n \n \n \n 52.43.202.248\n \n \n 169.254.15.113\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n spNJGPBQfzbK8hNvpHNOaaml_paRZNKs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.126\n 255.255.255.252\n 30\n \n \n \n \n 54.70.185.193\n \n \n 169.254.14.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n yE7hnuavW4SzersgnMyKIoKbd0rE8giW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.43.202.248",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 47,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.70.185.193",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 47,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "1c10aa65-e78f-41e5-bb24-7902b7974bff",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:08:21 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_9.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_9.json
new file mode 100644
index 00000000000..863aa6350ce
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_nonmodifiable_attr/ec2.DescribeVpnConnections_9.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.114\n 255.255.255.252\n 30\n \n \n \n \n 52.43.202.248\n \n \n 169.254.15.113\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n spNJGPBQfzbK8hNvpHNOaaml_paRZNKs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.126\n 255.255.255.252\n 30\n \n \n \n \n 54.70.185.193\n \n \n 169.254.14.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n yE7hnuavW4SzersgnMyKIoKbd0rE8giW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.43.202.248",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 47,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.70.185.193",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 8,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "1963dfb1-564a-4a0c-932c-ecddcdb39d41",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:08:37 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.CreateTags_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.CreateTags_1.json
index 281a0ad8b25..32afe4c15d7 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.CreateTags_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.CreateTags_1.json
@@ -1,17 +1,17 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "eb7076a9-b2ef-410b-84fc-e973749f1e4a",
+ "HTTPStatusCode": 200,
+ "RequestId": "8738f361-b294-47d7-a6d7-82d289db5e5f",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:05 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-type": "text/xml;charset=UTF-8",
+ "server": "AmazonEC2",
+ "date": "Mon, 16 Apr 2018 13:06:44 GMT",
+ "transfer-encoding": "chunked"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.CreateVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.CreateVpnConnection_1.json
index 8b5e225856c..0e22d719b02 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.CreateVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.CreateVpnConnection_1.json
@@ -1,28 +1,29 @@
{
- "status_code": 200,
"data": {
"VpnConnection": {
- "VpnConnectionId": "vpn-dcd1cace",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.250\n 255.255.255.252\n 30\n \n \n \n \n 35.160.213.236\n \n \n 169.254.15.249\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n wMZl5SKvXhcUddu7GjrWLkFVXNIZEPS_\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.94\n 255.255.255.252\n 30\n \n \n \n \n 52.40.96.196\n \n \n 169.254.12.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n NhVDPRk1mGt1iPkTFwXAFfuZLKPNm9se\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
+ "CustomerGatewayId": "cgw-6113c87f",
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.163.112.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n HxHFvA2bBdWo_sBRDHLiRCDviolMhaMR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.42\n 255.255.255.252\n 30\n \n \n \n \n 54.148.246.46\n \n \n 169.254.15.41\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n YANkpCz981zsiW_QkZCFrjN1QAiKm73G\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "VpnConnectionId": "vpn-9c06e289",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ },
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "16dfb72e-2456-4358-a751-a07ed149b87e",
+ "HTTPStatusCode": 200,
+ "RequestId": "d94359a8-8a4f-4087-b848-27de6253ff6c",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:02 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5234",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:04:35 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DeleteVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DeleteVpnConnection_1.json
index cc7a2c5ec7f..0d225110b26 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DeleteVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DeleteVpnConnection_1.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "82ea6b05-e768-41c3-ad34-4f34ff08eb38",
+ "HTTPStatusCode": 200,
+ "RequestId": "e780e8ce-5417-4a33-a39e-dd78a18b69a5",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:06 GMT"
- }
+ "content-length": "239",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:06:44 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_1.json
index ec3659c5a48..548dcfe963a 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_1.json
@@ -1,96 +1,115 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d4d1cac6",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dad1cac8",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d8d1caca",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d9d1cacb",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-ded1cacc",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dfd1cacd",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "85097037-302a-4d4a-9422-9f7080bc3fda",
+ "HTTPStatusCode": 200,
+ "RequestId": "35740449-70e9-4723-b5c4-8c82dc5ec5e6",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:01 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "3673",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:04:35 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_10.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_10.json
new file mode 100644
index 00000000000..584a6216a2a
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_10.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.163.112.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n HxHFvA2bBdWo_sBRDHLiRCDviolMhaMR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.42\n 255.255.255.252\n 30\n \n \n \n \n 54.148.246.46\n \n \n 169.254.15.41\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n YANkpCz981zsiW_QkZCFrjN1QAiKm73G\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.112.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 28,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.148.246.46",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 57,
+ "minute": 5,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "2d618f80-4045-4951-8d2e-c8d33395a141",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:06:42 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_11.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_11.json
new file mode 100644
index 00000000000..f328bac1ba8
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_11.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.163.112.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n HxHFvA2bBdWo_sBRDHLiRCDviolMhaMR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.42\n 255.255.255.252\n 30\n \n \n \n \n 54.148.246.46\n \n \n 169.254.15.41\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n YANkpCz981zsiW_QkZCFrjN1QAiKm73G\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.112.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 28,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.148.246.46",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 57,
+ "minute": 5,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "c9e48b82-1edc-4aa7-ac4d-c45c7bd4ae19",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:06:42 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_12.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_12.json
new file mode 100644
index 00000000000..4137627685e
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_12.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.163.112.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n HxHFvA2bBdWo_sBRDHLiRCDviolMhaMR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.42\n 255.255.255.252\n 30\n \n \n \n \n 54.148.246.46\n \n \n 169.254.15.41\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n YANkpCz981zsiW_QkZCFrjN1QAiKm73G\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.112.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 28,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.148.246.46",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 57,
+ "minute": 5,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "b346f588-dc55-4be6-95c8-e4708609a4e2",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:06:43 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_13.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_13.json
new file mode 100644
index 00000000000..b8a3a18fa79
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_13.json
@@ -0,0 +1,162 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.163.112.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n HxHFvA2bBdWo_sBRDHLiRCDviolMhaMR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.42\n 255.255.255.252\n 30\n \n \n \n \n 54.148.246.46\n \n \n 169.254.15.41\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n YANkpCz981zsiW_QkZCFrjN1QAiKm73G\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.112.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 28,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.148.246.46",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 57,
+ "minute": 5,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "a5650999-a5ad-4eea-b407-6d9913738f24",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-type": "text/xml;charset=UTF-8",
+ "server": "AmazonEC2",
+ "date": "Mon, 16 Apr 2018 13:06:43 GMT",
+ "transfer-encoding": "chunked"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_14.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_14.json
new file mode 100644
index 00000000000..56db26d9b81
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_14.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.163.112.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n HxHFvA2bBdWo_sBRDHLiRCDviolMhaMR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.42\n 255.255.255.252\n 30\n \n \n \n \n 54.148.246.46\n \n \n 169.254.15.41\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n YANkpCz981zsiW_QkZCFrjN1QAiKm73G\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.112.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 28,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.148.246.46",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 57,
+ "minute": 5,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "5e8c0572-8f87-4708-9aca-997ea3736bc4",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:06:43 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_15.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_15.json
new file mode 100644
index 00000000000..84a774dd80d
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_15.json
@@ -0,0 +1,76 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.163.112.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n HxHFvA2bBdWo_sBRDHLiRCDviolMhaMR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.42\n 255.255.255.252\n 30\n \n \n \n \n 54.148.246.46\n \n \n 169.254.15.41\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n YANkpCz981zsiW_QkZCFrjN1QAiKm73G\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "Tags": [
+ {
+ "Key": "One",
+ "Value": "one"
+ },
+ {
+ "Key": "Two",
+ "Value": "two"
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.112.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 28,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.148.246.46",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 57,
+ "minute": 5,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "134576b2-43ed-40ac-aefb-c4770a81f587",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6407",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:06:44 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_16.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_16.json
new file mode 100644
index 00000000000..e2bdf29eeeb
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_16.json
@@ -0,0 +1,76 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.163.112.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n HxHFvA2bBdWo_sBRDHLiRCDviolMhaMR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.42\n 255.255.255.252\n 30\n \n \n \n \n 54.148.246.46\n \n \n 169.254.15.41\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n YANkpCz981zsiW_QkZCFrjN1QAiKm73G\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "Tags": [
+ {
+ "Key": "One",
+ "Value": "one"
+ },
+ {
+ "Key": "Two",
+ "Value": "two"
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.112.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 28,
+ "minute": 6,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.148.246.46",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 57,
+ "minute": 5,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "5daf9a13-6835-4e6d-be9f-040405da8dff",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6407",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:06:44 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_17.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_17.json
new file mode 100644
index 00000000000..4f365045384
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_17.json
@@ -0,0 +1,40 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "One",
+ "Value": "one"
+ },
+ {
+ "Key": "Two",
+ "Value": "two"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "561b039d-ffee-42dc-a390-6dde1ae4fcfe",
+ "HTTPHeaders": {
+ "content-length": "990",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:06:44 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_2.json
index 1f25fbb75c5..ebd539e3a5c 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_2.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-dcd1cace",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.250\n 255.255.255.252\n 30\n \n \n \n \n 35.160.213.236\n \n \n 169.254.15.249\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n wMZl5SKvXhcUddu7GjrWLkFVXNIZEPS_\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.94\n 255.255.255.252\n 30\n \n \n \n \n 52.40.96.196\n \n \n 169.254.12.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n NhVDPRk1mGt1iPkTFwXAFfuZLKPNm9se\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.163.112.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n HxHFvA2bBdWo_sBRDHLiRCDviolMhaMR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.42\n 255.255.255.252\n 30\n \n \n \n \n 54.148.246.46\n \n \n 169.254.15.41\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n YANkpCz981zsiW_QkZCFrjN1QAiKm73G\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.160.213.236",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.112.252",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 2,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.40.96.196",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.148.246.46",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 2,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "f1f0d604-1259-4c11-aa9b-42deee0d281f",
+ "HTTPStatusCode": 200,
+ "RequestId": "29d88495-a6b4-4f53-9ec7-32ac21fd80c6",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:02 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:04:35 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_3.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_3.json
index 5cf084474ae..9b004c2a971 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_3.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_3.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-dcd1cace",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.250\n 255.255.255.252\n 30\n \n \n \n \n 35.160.213.236\n \n \n 169.254.15.249\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n wMZl5SKvXhcUddu7GjrWLkFVXNIZEPS_\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.94\n 255.255.255.252\n 30\n \n \n \n \n 52.40.96.196\n \n \n 169.254.12.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n NhVDPRk1mGt1iPkTFwXAFfuZLKPNm9se\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.163.112.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n HxHFvA2bBdWo_sBRDHLiRCDviolMhaMR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.42\n 255.255.255.252\n 30\n \n \n \n \n 54.148.246.46\n \n \n 169.254.15.41\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n YANkpCz981zsiW_QkZCFrjN1QAiKm73G\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.160.213.236",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.112.252",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 2,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.40.96.196",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.148.246.46",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 2,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "d4c54530-c478-4988-9239-8f1cc20493a1",
+ "HTTPStatusCode": 200,
+ "RequestId": "a647316d-7079-4a0a-8ad3-91a0a36dc124",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:03 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:04:51 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_4.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_4.json
index 6cb8dbd9dc4..9cf6f0ffc36 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_4.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_4.json
@@ -1,142 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.163.112.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n HxHFvA2bBdWo_sBRDHLiRCDviolMhaMR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.42\n 255.255.255.252\n 30\n \n \n \n \n 54.148.246.46\n \n \n 169.254.15.41\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n YANkpCz981zsiW_QkZCFrjN1QAiKm73G\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d4d1cac6",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-dad1cac8",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d8d1caca",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d9d1cacb",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-ded1cacc",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-dfd1cacd",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-dcd1cace",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.250\n 255.255.255.252\n 30\n \n \n \n \n 35.160.213.236\n \n \n 169.254.15.249\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n wMZl5SKvXhcUddu7GjrWLkFVXNIZEPS_\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.94\n 255.255.255.252\n 30\n \n \n \n \n 52.40.96.196\n \n \n 169.254.12.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n NhVDPRk1mGt1iPkTFwXAFfuZLKPNm9se\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.160.213.236",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.112.252",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 2,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.40.96.196",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.148.246.46",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 2,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "d162c9cb-b175-4b5c-a715-88c8eb6e17f0",
+ "HTTPStatusCode": 200,
+ "RequestId": "f913c208-ac39-4b8e-aba5-1410f2e4d6cf",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:04 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:05:07 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_5.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_5.json
index fcf015019e7..88eeadf41a5 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_5.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_5.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-dcd1cace",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.250\n 255.255.255.252\n 30\n \n \n \n \n 35.160.213.236\n \n \n 169.254.15.249\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n wMZl5SKvXhcUddu7GjrWLkFVXNIZEPS_\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.94\n 255.255.255.252\n 30\n \n \n \n \n 52.40.96.196\n \n \n 169.254.12.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n NhVDPRk1mGt1iPkTFwXAFfuZLKPNm9se\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.163.112.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n HxHFvA2bBdWo_sBRDHLiRCDviolMhaMR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.42\n 255.255.255.252\n 30\n \n \n \n \n 54.148.246.46\n \n \n 169.254.15.41\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n YANkpCz981zsiW_QkZCFrjN1QAiKm73G\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.160.213.236",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.112.252",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 2,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.40.96.196",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.148.246.46",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 2,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "b101d28f-94a1-4c81-8e45-5a7af98c15cc",
+ "HTTPStatusCode": 200,
+ "RequestId": "260f7ff4-ec3b-452e-90f3-9ffb3d5f6895",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:04 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:05:23 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_6.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_6.json
index 7e336d84ccc..860dcfd3312 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_6.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_6.json
@@ -1,75 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-dcd1cace",
- "Tags": [
- {
- "Value": "one",
- "Key": "One"
- },
- {
- "Value": "two",
- "Key": "Two"
- }
- ],
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.250\n 255.255.255.252\n 30\n \n \n \n \n 35.160.213.236\n \n \n 169.254.15.249\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n wMZl5SKvXhcUddu7GjrWLkFVXNIZEPS_\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.94\n 255.255.255.252\n 30\n \n \n \n \n 52.40.96.196\n \n \n 169.254.12.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n NhVDPRk1mGt1iPkTFwXAFfuZLKPNm9se\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.163.112.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n HxHFvA2bBdWo_sBRDHLiRCDviolMhaMR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.42\n 255.255.255.252\n 30\n \n \n \n \n 54.148.246.46\n \n \n 169.254.15.41\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n YANkpCz981zsiW_QkZCFrjN1QAiKm73G\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.160.213.236",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.112.252",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 2,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.40.96.196",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.148.246.46",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 2,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "6286c7c0-7697-4a50-ae0e-41a8c87f3a41",
+ "HTTPStatusCode": 200,
+ "RequestId": "fb308284-ea47-44f9-af61-3c0271809839",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:05 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:05:39 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_7.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_7.json
index 9234c0140e1..d71b6108ec2 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_7.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_7.json
@@ -1,75 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-dcd1cace",
- "Tags": [
- {
- "Value": "one",
- "Key": "One"
- },
- {
- "Value": "two",
- "Key": "Two"
- }
- ],
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.250\n 255.255.255.252\n 30\n \n \n \n \n 35.160.213.236\n \n \n 169.254.15.249\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n wMZl5SKvXhcUddu7GjrWLkFVXNIZEPS_\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.94\n 255.255.255.252\n 30\n \n \n \n \n 52.40.96.196\n \n \n 169.254.12.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n NhVDPRk1mGt1iPkTFwXAFfuZLKPNm9se\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.163.112.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n HxHFvA2bBdWo_sBRDHLiRCDviolMhaMR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.42\n 255.255.255.252\n 30\n \n \n \n \n 54.148.246.46\n \n \n 169.254.15.41\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n YANkpCz981zsiW_QkZCFrjN1QAiKm73G\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.160.213.236",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.112.252",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 2,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.40.96.196",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.148.246.46",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 2,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "b2ac8baa-3f10-4968-89d3-1fd2d5259b3d",
+ "HTTPStatusCode": 200,
+ "RequestId": "5e0c4efb-8f23-4ce1-b1fe-c5bccac45063",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:05 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:05:53 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_8.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_8.json
index 74f048dcee7..6ca0be0346b 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_8.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_8.json
@@ -1,75 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-dcd1cace",
- "Tags": [
- {
- "Value": "one",
- "Key": "One"
- },
- {
- "Value": "two",
- "Key": "Two"
- }
- ],
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.250\n 255.255.255.252\n 30\n \n \n \n \n 35.160.213.236\n \n \n 169.254.15.249\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n wMZl5SKvXhcUddu7GjrWLkFVXNIZEPS_\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.94\n 255.255.255.252\n 30\n \n \n \n \n 52.40.96.196\n \n \n 169.254.12.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n NhVDPRk1mGt1iPkTFwXAFfuZLKPNm9se\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.163.112.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n HxHFvA2bBdWo_sBRDHLiRCDviolMhaMR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.42\n 255.255.255.252\n 30\n \n \n \n \n 54.148.246.46\n \n \n 169.254.15.41\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n YANkpCz981zsiW_QkZCFrjN1QAiKm73G\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.160.213.236",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.112.252",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 2,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.40.96.196",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.148.246.46",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 2,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 57,
+ "minute": 5,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "b31af8f6-705c-491f-982f-ec59237daece",
+ "HTTPStatusCode": 200,
+ "RequestId": "be516d5b-d999-4de7-bd3e-9c0cb5de857c",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:05 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:06:09 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_9.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_9.json
new file mode 100644
index 00000000000..633be4130cd
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/check_for_update_tags/ec2.DescribeVpnConnections_9.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.163.112.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n HxHFvA2bBdWo_sBRDHLiRCDviolMhaMR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.42\n 255.255.255.252\n 30\n \n \n \n \n 54.148.246.46\n \n \n 169.254.15.41\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n YANkpCz981zsiW_QkZCFrjN1QAiKm73G\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.112.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 36,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.148.246.46",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 57,
+ "minute": 5,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "007948c6-bac8-4f43-8b80-5e7c32f2d1e8",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:06:25 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.CreateVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.CreateVpnConnection_1.json
index 77d8b14935d..c7f4a8a970d 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.CreateVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.CreateVpnConnection_1.json
@@ -1,28 +1,29 @@
{
- "status_code": 200,
"data": {
"VpnConnection": {
- "VpnConnectionId": "vpn-d8d1caca",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.18\n 255.255.255.252\n 30\n \n \n \n \n 35.161.20.177\n \n \n 169.254.13.17\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n D5B4Y.dutl2Z4I3uChHN7NcgQAd_PFcH\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.170\n 255.255.255.252\n 30\n \n \n \n \n 35.166.123.146\n \n \n 169.254.15.169\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n .RsAAZ92ymhAD3Pys_tMdZFGaosxQmMo\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
+ "CustomerGatewayId": "cgw-6113c87f",
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 52.24.101.167\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n ZqeYNh0tOtKAbA2GjOnfP1ckplrsKR0I\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.58\n 255.255.255.252\n 30\n \n \n \n \n 52.40.126.9\n \n \n 169.254.14.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 2hNRbfughR8JKpllR1mEg0uPRckXd0bR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "VpnConnectionId": "vpn-9006e285",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ },
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "01e716ac-65d9-4247-864c-f750f8c025a0",
+ "HTTPStatusCode": 200,
+ "RequestId": "e312dbd3-7956-4b0e-bb66-29a85e65e477",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:36 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5233",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:53:33 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DeleteVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DeleteVpnConnection_1.json
index dd11f4b0afb..933d9868223 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DeleteVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DeleteVpnConnection_1.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "a09068c5-75bd-4292-8b79-05607d8f9cf7",
+ "HTTPStatusCode": 200,
+ "RequestId": "fd2ddf0e-f378-46d7-92e7-1b6008d98b04",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:37 GMT"
- }
+ "content-length": "239",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:56:11 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_1.json
index fa493796a69..4c2a4f72bc4 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_1.json
@@ -1,52 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d4d1cac6",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dad1cac8",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "8340a216-1c4b-4cea-b19e-83b661c227f0",
+ "HTTPStatusCode": 200,
+ "RequestId": "bcdba325-fd96-4c4b-bb15-dc9a88c456ae",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:35 GMT"
- }
+ "content-length": "1917",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:53:33 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_10.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_10.json
new file mode 100644
index 00000000000..25f9a24c45a
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_10.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 52.24.101.167\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n ZqeYNh0tOtKAbA2GjOnfP1ckplrsKR0I\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.58\n 255.255.255.252\n 30\n \n \n \n \n 52.40.126.9\n \n \n 169.254.14.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 2hNRbfughR8JKpllR1mEg0uPRckXd0bR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.24.101.167",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 10,
+ "minute": 55,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.126.9",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "ee75ebe8-0587-49b5-a231-0d31f713e3be",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:55:39 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_11.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_11.json
new file mode 100644
index 00000000000..fde1cd4c02e
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_11.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 52.24.101.167\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n ZqeYNh0tOtKAbA2GjOnfP1ckplrsKR0I\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.58\n 255.255.255.252\n 30\n \n \n \n \n 52.40.126.9\n \n \n 169.254.14.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 2hNRbfughR8JKpllR1mEg0uPRckXd0bR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.24.101.167",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 10,
+ "minute": 55,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.126.9",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "5cbe30a2-8771-4116-ba7d-78c32a06546e",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:55:55 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_12.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_12.json
new file mode 100644
index 00000000000..3c37b32a2bb
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_12.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 52.24.101.167\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n ZqeYNh0tOtKAbA2GjOnfP1ckplrsKR0I\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.58\n 255.255.255.252\n 30\n \n \n \n \n 52.40.126.9\n \n \n 169.254.14.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 2hNRbfughR8JKpllR1mEg0uPRckXd0bR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.24.101.167",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 10,
+ "minute": 55,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.126.9",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 56,
+ "minute": 55,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "3d3d8178-0359-4c80-85c7-410411a532f4",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:56:11 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_13.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_13.json
new file mode 100644
index 00000000000..e13b27d041c
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_13.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 52.24.101.167\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n ZqeYNh0tOtKAbA2GjOnfP1ckplrsKR0I\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.58\n 255.255.255.252\n 30\n \n \n \n \n 52.40.126.9\n \n \n 169.254.14.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 2hNRbfughR8JKpllR1mEg0uPRckXd0bR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.24.101.167",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 10,
+ "minute": 55,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.126.9",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 56,
+ "minute": 55,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "67e4f285-2875-4615-ba4e-a36105d24dd7",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:56:11 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_14.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_14.json
new file mode 100644
index 00000000000..beaa98a1c0a
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_14.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 52.24.101.167\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n ZqeYNh0tOtKAbA2GjOnfP1ckplrsKR0I\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.58\n 255.255.255.252\n 30\n \n \n \n \n 52.40.126.9\n \n \n 169.254.14.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 2hNRbfughR8JKpllR1mEg0uPRckXd0bR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.24.101.167",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 10,
+ "minute": 55,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.126.9",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 56,
+ "minute": 55,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "a31cc536-1f4b-46d7-a91d-c8d0909eb897",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:56:11 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_15.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_15.json
new file mode 100644
index 00000000000..cf88d5b8d0f
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_15.json
@@ -0,0 +1,30 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "0cf4c8bf-4f69-4f9f-b6ae-aecbbcb60081",
+ "HTTPHeaders": {
+ "content-length": "705",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:56:12 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_2.json
index ee9b2dd8e91..4803740289d 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_2.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d8d1caca",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.18\n 255.255.255.252\n 30\n \n \n \n \n 35.161.20.177\n \n \n 169.254.13.17\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n D5B4Y.dutl2Z4I3uChHN7NcgQAd_PFcH\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.170\n 255.255.255.252\n 30\n \n \n \n \n 35.166.123.146\n \n \n 169.254.15.169\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n .RsAAZ92ymhAD3Pys_tMdZFGaosxQmMo\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 52.24.101.167\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n ZqeYNh0tOtKAbA2GjOnfP1ckplrsKR0I\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.58\n 255.255.255.252\n 30\n \n \n \n \n 52.40.126.9\n \n \n 169.254.14.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 2hNRbfughR8JKpllR1mEg0uPRckXd0bR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.161.20.177",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.24.101.167",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 36,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.166.123.146",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.126.9",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 36,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "6b5f3e76-8538-4467-8d39-c5afe2248182",
+ "HTTPStatusCode": 200,
+ "RequestId": "07019e0f-0012-47dc-8f86-950bb2b36e52",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:36 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:53:33 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_3.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_3.json
index b0e0fe54468..5e69b0584df 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_3.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_3.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d8d1caca",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.18\n 255.255.255.252\n 30\n \n \n \n \n 35.161.20.177\n \n \n 169.254.13.17\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n D5B4Y.dutl2Z4I3uChHN7NcgQAd_PFcH\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.170\n 255.255.255.252\n 30\n \n \n \n \n 35.166.123.146\n \n \n 169.254.15.169\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n .RsAAZ92ymhAD3Pys_tMdZFGaosxQmMo\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 52.24.101.167\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n ZqeYNh0tOtKAbA2GjOnfP1ckplrsKR0I\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.58\n 255.255.255.252\n 30\n \n \n \n \n 52.40.126.9\n \n \n 169.254.14.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 2hNRbfughR8JKpllR1mEg0uPRckXd0bR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.161.20.177",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.24.101.167",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 36,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.166.123.146",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.126.9",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 36,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "5f2cb472-c561-4989-81c9-8570e8cca1e4",
+ "HTTPStatusCode": 200,
+ "RequestId": "8174c5d9-d54a-4173-aef3-5e9c3e86bac6",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:37 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:53:49 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_4.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_4.json
new file mode 100644
index 00000000000..47ad906096b
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_4.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 52.24.101.167\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n ZqeYNh0tOtKAbA2GjOnfP1ckplrsKR0I\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.58\n 255.255.255.252\n 30\n \n \n \n \n 52.40.126.9\n \n \n 169.254.14.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 2hNRbfughR8JKpllR1mEg0uPRckXd0bR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.24.101.167",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.126.9",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "46432541-20bd-444f-ab0a-38db7c36aab5",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:54:05 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_5.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_5.json
new file mode 100644
index 00000000000..f7137760d33
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_5.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 52.24.101.167\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n ZqeYNh0tOtKAbA2GjOnfP1ckplrsKR0I\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.58\n 255.255.255.252\n 30\n \n \n \n \n 52.40.126.9\n \n \n 169.254.14.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 2hNRbfughR8JKpllR1mEg0uPRckXd0bR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.24.101.167",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.126.9",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "84598175-301b-40e4-884d-4e4777267375",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:54:21 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_6.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_6.json
new file mode 100644
index 00000000000..69249db308c
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_6.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 52.24.101.167\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n ZqeYNh0tOtKAbA2GjOnfP1ckplrsKR0I\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.58\n 255.255.255.252\n 30\n \n \n \n \n 52.40.126.9\n \n \n 169.254.14.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 2hNRbfughR8JKpllR1mEg0uPRckXd0bR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.24.101.167",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.126.9",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "092fbf9c-c529-4f71-855e-20b4289dc6f4",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:54:37 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_7.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_7.json
new file mode 100644
index 00000000000..da6185154f4
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_7.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 52.24.101.167\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n ZqeYNh0tOtKAbA2GjOnfP1ckplrsKR0I\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.58\n 255.255.255.252\n 30\n \n \n \n \n 52.40.126.9\n \n \n 169.254.14.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 2hNRbfughR8JKpllR1mEg0uPRckXd0bR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.24.101.167",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.126.9",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "6d1bb01f-6afe-418c-94c2-7d83c4f94a4d",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:54:52 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_8.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_8.json
new file mode 100644
index 00000000000..284e8b5492f
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_8.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 52.24.101.167\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n ZqeYNh0tOtKAbA2GjOnfP1ckplrsKR0I\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.58\n 255.255.255.252\n 30\n \n \n \n \n 52.40.126.9\n \n \n 169.254.14.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 2hNRbfughR8JKpllR1mEg0uPRckXd0bR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.24.101.167",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.126.9",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "830ae224-6cdf-46e2-817b-92bcd5fa86ec",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:55:08 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_9.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_9.json
new file mode 100644
index 00000000000..3f1a6a680f2
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection/ec2.DescribeVpnConnections_9.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 52.24.101.167\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n ZqeYNh0tOtKAbA2GjOnfP1ckplrsKR0I\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.58\n 255.255.255.252\n 30\n \n \n \n \n 52.40.126.9\n \n \n 169.254.14.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 2hNRbfughR8JKpllR1mEg0uPRckXd0bR\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.24.101.167",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 10,
+ "minute": 55,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.126.9",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 34,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "51ec304a-3c90-4bbe-86dc-56d87d693ef6",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:55:23 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.CreateVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.CreateVpnConnection_1.json
index 86bd3b7c09f..45abc721826 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.CreateVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.CreateVpnConnection_1.json
@@ -1,28 +1,29 @@
{
- "status_code": 200,
"data": {
"VpnConnection": {
- "VpnConnectionId": "vpn-d9d1cacb",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.222\n 255.255.255.252\n 30\n \n \n \n \n 35.161.209.3\n \n \n 169.254.15.221\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n pdQedpvQ23fYYft2kc38kV3oE4YybIZD\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.10\n 255.255.255.252\n 30\n \n \n \n \n 52.35.122.12\n \n \n 169.254.12.9\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n MZq6_Ah81mZF7XaHXtDCdHLMkmEv8Yq2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
+ "CustomerGatewayId": "cgw-6113c87f",
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "VpnConnectionId": "vpn-9306e286",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ },
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "9b3dcbc2-7213-47f6-b92d-32dc0aba29c4",
+ "HTTPStatusCode": 200,
+ "RequestId": "541d2997-d79d-42b4-af0a-7d49754a99a0",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:41 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5235",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:56:14 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DeleteVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DeleteVpnConnection_1.json
index 06a88ceaed8..46c92879a6f 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DeleteVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DeleteVpnConnection_1.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "f0431d86-cd4a-47b9-96bb-fabedb356c3d",
+ "HTTPStatusCode": 200,
+ "RequestId": "e9b91aeb-4237-44ba-9367-b9d240b3d8ba",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:43 GMT"
- }
+ "content-length": "239",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:59:25 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_1.json
index 4dd3de7f626..5a1e79ea42e 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_1.json
@@ -1,63 +1,79 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d4d1cac6",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dad1cac8",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d8d1caca",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "84ff7cb7-6581-4c27-8cc7-65c658a7d9e6",
+ "HTTPStatusCode": 200,
+ "RequestId": "fc165fe7-372e-4517-a256-5e12138aa890",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:40 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "2356",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:56:14 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_10.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_10.json
new file mode 100644
index 00000000000..06d4d8371d6
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_10.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "9e46eaa5-4f5b-42ff-ada0-d90504c0bd9c",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:58:20 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_11.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_11.json
new file mode 100644
index 00000000000..fc46769aff2
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_11.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "a3d938cd-ea4f-4739-87df-956db661c1a3",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:58:36 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_12.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_12.json
new file mode 100644
index 00000000000..0a7045f11ed
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_12.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "c49c942f-0408-4d6d-b04a-1778dc3a3c43",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:58:52 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_13.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_13.json
new file mode 100644
index 00000000000..385a832a5e4
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_13.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 58,
+ "minute": 58,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 0,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "18debff6-05c3-44ad-8106-1c1099fba0e0",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:59:07 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_14.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_14.json
new file mode 100644
index 00000000000..cb313c523ce
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_14.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 58,
+ "minute": 58,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 0,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "6fb7285e-c4ff-4f11-bdbc-464efbb66f15",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:59:23 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_15.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_15.json
new file mode 100644
index 00000000000..4749c57d5dc
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_15.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 58,
+ "minute": 58,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 0,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "cffd1787-58a7-4506-b14b-0bab509b8a1a",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:59:23 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_16.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_16.json
new file mode 100644
index 00000000000..de15a8f21dc
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_16.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 58,
+ "minute": 58,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 0,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "cb19e2ba-a42a-47d3-a20f-9ea9521978f4",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:59:23 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_17.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_17.json
new file mode 100644
index 00000000000..33283151024
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_17.json
@@ -0,0 +1,126 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 58,
+ "minute": 58,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 0,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "de97618e-a5a7-4efd-925c-6ca24b2603c6",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-type": "text/xml;charset=UTF-8",
+ "server": "AmazonEC2",
+ "date": "Mon, 16 Apr 2018 12:59:24 GMT",
+ "transfer-encoding": "chunked"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_18.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_18.json
new file mode 100644
index 00000000000..505d1a36a5b
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_18.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 58,
+ "minute": 58,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 0,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "aa76261f-ab0e-4bd4-a412-a59e7fdfb6db",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:59:24 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_19.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_19.json
new file mode 100644
index 00000000000..caac14d220a
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_19.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 58,
+ "minute": 58,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 0,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "9885231e-ee67-49cb-ada6-e8eb3c772e6b",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:59:24 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_2.json
index 3e60a6114e8..7e870bbe37f 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_2.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d9d1cacb",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.222\n 255.255.255.252\n 30\n \n \n \n \n 35.161.209.3\n \n \n 169.254.15.221\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n pdQedpvQ23fYYft2kc38kV3oE4YybIZD\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.10\n 255.255.255.252\n 30\n \n \n \n \n 52.35.122.12\n \n \n 169.254.12.9\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n MZq6_Ah81mZF7XaHXtDCdHLMkmEv8Yq2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.161.209.3",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 41,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.35.122.12",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 41,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "b1f60afb-bd9c-4b8c-8182-1b21655550c7",
+ "HTTPStatusCode": 200,
+ "RequestId": "ca30a295-dfce-49f8-a1d1-f5af0dffd1c2",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:41 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:56:14 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_20.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_20.json
new file mode 100644
index 00000000000..0f39c5aa638
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_20.json
@@ -0,0 +1,30 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "204f247b-ad5a-4917-bc3e-a793bf09bd48",
+ "HTTPHeaders": {
+ "content-length": "705",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:59:25 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_3.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_3.json
index 024751e313e..1af37e30570 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_3.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_3.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d9d1cacb",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.222\n 255.255.255.252\n 30\n \n \n \n \n 35.161.209.3\n \n \n 169.254.15.221\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n pdQedpvQ23fYYft2kc38kV3oE4YybIZD\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.10\n 255.255.255.252\n 30\n \n \n \n \n 52.35.122.12\n \n \n 169.254.12.9\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n MZq6_Ah81mZF7XaHXtDCdHLMkmEv8Yq2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.161.209.3",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 41,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.35.122.12",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 41,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "2e2e9ee2-8285-4b3e-8ce7-9436c87ace48",
+ "HTTPStatusCode": 200,
+ "RequestId": "a8ebc328-fea9-430d-a546-c5e24d447cef",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:41 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:56:30 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_4.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_4.json
index b2f8d7c6a2a..e8ab98030aa 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_4.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_4.json
@@ -1,109 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d4d1cac6",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-dad1cac8",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d8d1caca",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d9d1cacb",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.222\n 255.255.255.252\n 30\n \n \n \n \n 35.161.209.3\n \n \n 169.254.15.221\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n pdQedpvQ23fYYft2kc38kV3oE4YybIZD\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.10\n 255.255.255.252\n 30\n \n \n \n \n 52.35.122.12\n \n \n 169.254.12.9\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n MZq6_Ah81mZF7XaHXtDCdHLMkmEv8Yq2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.161.209.3",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 41,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.35.122.12",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 41,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "6b736669-c831-4b81-9ca4-79d915eb4312",
+ "HTTPStatusCode": 200,
+ "RequestId": "edf29e1c-30a1-4d11-9e5a-feddd7f082ab",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:42 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:56:46 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_5.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_5.json
index ea0ac2948ad..5e8203fec88 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_5.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_5.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d9d1cacb",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.222\n 255.255.255.252\n 30\n \n \n \n \n 35.161.209.3\n \n \n 169.254.15.221\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n pdQedpvQ23fYYft2kc38kV3oE4YybIZD\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.10\n 255.255.255.252\n 30\n \n \n \n \n 52.35.122.12\n \n \n 169.254.12.9\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n MZq6_Ah81mZF7XaHXtDCdHLMkmEv8Yq2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.161.209.3",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 41,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.35.122.12",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 41,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "84ed029a-19b6-4b2a-b586-3fedfa75c4f8",
+ "HTTPStatusCode": 200,
+ "RequestId": "51c5182c-f83e-496b-ba45-e4972064d690",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:42 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:57:01 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_6.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_6.json
index 4e0a55a620e..cf06e0ad472 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_6.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_6.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d9d1cacb",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.222\n 255.255.255.252\n 30\n \n \n \n \n 35.161.209.3\n \n \n 169.254.15.221\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n pdQedpvQ23fYYft2kc38kV3oE4YybIZD\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.10\n 255.255.255.252\n 30\n \n \n \n \n 52.35.122.12\n \n \n 169.254.12.9\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n MZq6_Ah81mZF7XaHXtDCdHLMkmEv8Yq2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.161.209.3",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 41,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.35.122.12",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 41,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "181271e4-ac0b-4598-81d8-7fc1b91d8bbe",
+ "HTTPStatusCode": 200,
+ "RequestId": "b9255f48-f509-42a9-8c0f-6626a492b46e",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:42 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:57:17 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_7.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_7.json
index 477f60bbd4e..e7965bd025f 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_7.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_7.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d9d1cacb",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.222\n 255.255.255.252\n 30\n \n \n \n \n 35.161.209.3\n \n \n 169.254.15.221\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n pdQedpvQ23fYYft2kc38kV3oE4YybIZD\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.10\n 255.255.255.252\n 30\n \n \n \n \n 52.35.122.12\n \n \n 169.254.12.9\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n MZq6_Ah81mZF7XaHXtDCdHLMkmEv8Yq2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.161.209.3",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 41,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.35.122.12",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 41,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "d4ee7e72-1c6a-4460-b0cd-6676ed3f3545",
+ "HTTPStatusCode": 200,
+ "RequestId": "bab0deee-150b-4952-b949-4acefe6ebafe",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:43 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:57:33 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_8.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_8.json
new file mode 100644
index 00000000000..e7c600455d1
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_8.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "c90d25a2-7e6c-42cc-8f5a-17ab0c58e720",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:57:49 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_9.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_9.json
new file mode 100644
index 00000000000..17bd7e73954
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/create_connection_that_exists/ec2.DescribeVpnConnections_9.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.15.146\n 255.255.255.252\n 30\n \n \n \n \n 34.213.145.113\n \n \n 169.254.15.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n iNsKYUCSTSepYCf0igJVeirisatbjYiw\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.86\n 255.255.255.252\n 30\n \n \n \n \n 52.40.202.36\n \n \n 169.254.14.85\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n KZpfPULAV7ahI1aUspYf9oy4412BFNoP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.213.145.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.202.36",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 15,
+ "minute": 56,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "b1da658d-a66a-4def-873f-193ede827765",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:58:05 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.CreateVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.CreateVpnConnection_1.json
index 739a2a41f79..21408b7a6da 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.CreateVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.CreateVpnConnection_1.json
@@ -1,28 +1,29 @@
{
- "status_code": 200,
"data": {
"VpnConnection": {
- "VpnConnectionId": "vpn-dfd1cacd",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.162\n 255.255.255.252\n 30\n \n \n \n \n 35.165.73.3\n \n \n 169.254.12.161\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n aMIxfFrw7FiyaYn8OaA9a5sZzP4VN1mS\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.242\n 255.255.255.252\n 30\n \n \n \n \n 52.89.34.226\n \n \n 169.254.12.241\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n btRxqLWsAA8MAZ6XRI3CQJFmMDh1scIB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
+ "CustomerGatewayId": "cgw-6113c87f",
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.166.247.180\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n vMOOPmaOf_RaI5CYB1HP1LSN7fKVajOB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.126\n 255.255.255.252\n 30\n \n \n \n \n 35.167.45.7\n \n \n 169.254.12.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DP5uNzsBDGM2M79qOw0w4uttdQvvTmuE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "VpnConnectionId": "vpn-9d06e288",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ },
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "53ceea07-78f5-4baf-b4c3-7c4cbb141117",
+ "HTTPStatusCode": 200,
+ "RequestId": "6b76950f-28f0-4e74-9b61-14780c62ced9",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:54 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5234",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:01:53 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DeleteVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DeleteVpnConnection_1.json
index 92198fd8e58..a27bc82cf9f 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DeleteVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DeleteVpnConnection_1.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "7c15f17a-6c94-4c68-93dc-e03b8cda47de",
+ "HTTPStatusCode": 200,
+ "RequestId": "e0e829b9-86e9-4b26-aa01-ccacf0a77edc",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:56 GMT"
- }
+ "content-length": "239",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:04:31 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_1.json
index 8643e4f0f63..fc618a3241d 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_1.json
@@ -1,85 +1,103 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d4d1cac6",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dad1cac8",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d8d1caca",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d9d1cacb",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-ded1cacc",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "bcd53725-0a26-408a-be7a-3d392c7c908e",
+ "HTTPStatusCode": 200,
+ "RequestId": "149f4f23-9fec-4995-acc5-0db46d4d698f",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:53 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "3234",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:01:53 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_10.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_10.json
new file mode 100644
index 00000000000..958e8a9821a
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_10.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.166.247.180\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n vMOOPmaOf_RaI5CYB1HP1LSN7fKVajOB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.126\n 255.255.255.252\n 30\n \n \n \n \n 35.167.45.7\n \n \n 169.254.12.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DP5uNzsBDGM2M79qOw0w4uttdQvvTmuE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.166.247.180",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.167.45.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 3,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "5bb89e85-8f96-43b1-96e3-0fd6c00f9b14",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:03:58 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_11.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_11.json
new file mode 100644
index 00000000000..265a34962da
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_11.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.166.247.180\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n vMOOPmaOf_RaI5CYB1HP1LSN7fKVajOB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.126\n 255.255.255.252\n 30\n \n \n \n \n 35.167.45.7\n \n \n 169.254.12.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DP5uNzsBDGM2M79qOw0w4uttdQvvTmuE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.166.247.180",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.167.45.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 3,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "40ebbb4a-0a18-494e-9666-3481637027fc",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:04:14 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_12.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_12.json
new file mode 100644
index 00000000000..71caefcf584
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_12.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.166.247.180\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n vMOOPmaOf_RaI5CYB1HP1LSN7fKVajOB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.126\n 255.255.255.252\n 30\n \n \n \n \n 35.167.45.7\n \n \n 169.254.12.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DP5uNzsBDGM2M79qOw0w4uttdQvvTmuE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.166.247.180",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 19,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.167.45.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 3,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "a86ec01a-5ea5-4fba-8123-5567a04a3596",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:04:30 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_13.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_13.json
new file mode 100644
index 00000000000..037ba1a1d95
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_13.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.166.247.180\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n vMOOPmaOf_RaI5CYB1HP1LSN7fKVajOB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.126\n 255.255.255.252\n 30\n \n \n \n \n 35.167.45.7\n \n \n 169.254.12.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DP5uNzsBDGM2M79qOw0w4uttdQvvTmuE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.166.247.180",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 19,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.167.45.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 3,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "6c96cc41-2657-47a0-b437-a79b0631bbd8",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:04:30 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_14.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_14.json
new file mode 100644
index 00000000000..7e74e95fbe4
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_14.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.166.247.180\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n vMOOPmaOf_RaI5CYB1HP1LSN7fKVajOB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.126\n 255.255.255.252\n 30\n \n \n \n \n 35.167.45.7\n \n \n 169.254.12.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DP5uNzsBDGM2M79qOw0w4uttdQvvTmuE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.166.247.180",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 19,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.167.45.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 3,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "1f605613-e582-4b3b-8838-e9fcf0c58e67",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:04:30 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_15.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_15.json
new file mode 100644
index 00000000000..5bbb025be0a
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_15.json
@@ -0,0 +1,150 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.166.247.180\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n vMOOPmaOf_RaI5CYB1HP1LSN7fKVajOB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.126\n 255.255.255.252\n 30\n \n \n \n \n 35.167.45.7\n \n \n 169.254.12.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DP5uNzsBDGM2M79qOw0w4uttdQvvTmuE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.166.247.180",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 19,
+ "minute": 4,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.167.45.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 3,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "9e38c8b0-f339-463a-b92f-aa90fd3315e8",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-type": "text/xml;charset=UTF-8",
+ "server": "AmazonEC2",
+ "date": "Mon, 16 Apr 2018 13:04:31 GMT",
+ "transfer-encoding": "chunked"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_16.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_16.json
new file mode 100644
index 00000000000..786f224ead0
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_16.json
@@ -0,0 +1,30 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "0d2390b1-83fb-40f6-ab75-adf605a9a3fc",
+ "HTTPHeaders": {
+ "content-length": "705",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:04:31 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_2.json
index 00718ccb4cc..7abf137d37f 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_2.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-dfd1cacd",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.162\n 255.255.255.252\n 30\n \n \n \n \n 35.165.73.3\n \n \n 169.254.12.161\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n aMIxfFrw7FiyaYn8OaA9a5sZzP4VN1mS\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.242\n 255.255.255.252\n 30\n \n \n \n \n 52.89.34.226\n \n \n 169.254.12.241\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n btRxqLWsAA8MAZ6XRI3CQJFmMDh1scIB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.166.247.180\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n vMOOPmaOf_RaI5CYB1HP1LSN7fKVajOB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.126\n 255.255.255.252\n 30\n \n \n \n \n 35.167.45.7\n \n \n 169.254.12.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DP5uNzsBDGM2M79qOw0w4uttdQvvTmuE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.165.73.3",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.166.247.180",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 55,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.89.34.226",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.167.45.7",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 55,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "ebdd2503-3b5a-43c3-bf4d-c2486490e559",
+ "HTTPStatusCode": 200,
+ "RequestId": "e29c19bc-d875-4b6b-83b2-bc2fdfb87bf0",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:54 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:01:53 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_3.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_3.json
index 3d071e5e366..e7dc1a4a4f2 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_3.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_3.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-dfd1cacd",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.162\n 255.255.255.252\n 30\n \n \n \n \n 35.165.73.3\n \n \n 169.254.12.161\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n aMIxfFrw7FiyaYn8OaA9a5sZzP4VN1mS\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.242\n 255.255.255.252\n 30\n \n \n \n \n 52.89.34.226\n \n \n 169.254.12.241\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n btRxqLWsAA8MAZ6XRI3CQJFmMDh1scIB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.166.247.180\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n vMOOPmaOf_RaI5CYB1HP1LSN7fKVajOB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.126\n 255.255.255.252\n 30\n \n \n \n \n 35.167.45.7\n \n \n 169.254.12.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DP5uNzsBDGM2M79qOw0w4uttdQvvTmuE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.165.73.3",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.166.247.180",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 55,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.89.34.226",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.167.45.7",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 55,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "a4d4d91e-a03f-4def-b4dd-ab70b8f16439",
+ "HTTPStatusCode": 200,
+ "RequestId": "686ef8bb-a95e-4b86-b814-f272c54c8ea5",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:55 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:02:09 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_4.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_4.json
index 17f933fc372..3e3f889f906 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_4.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_4.json
@@ -1,131 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.166.247.180\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n vMOOPmaOf_RaI5CYB1HP1LSN7fKVajOB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.126\n 255.255.255.252\n 30\n \n \n \n \n 35.167.45.7\n \n \n 169.254.12.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DP5uNzsBDGM2M79qOw0w4uttdQvvTmuE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d4d1cac6",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-dad1cac8",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d8d1caca",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d9d1cacb",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-ded1cacc",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-dfd1cacd",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.162\n 255.255.255.252\n 30\n \n \n \n \n 35.165.73.3\n \n \n 169.254.12.161\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n aMIxfFrw7FiyaYn8OaA9a5sZzP4VN1mS\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.242\n 255.255.255.252\n 30\n \n \n \n \n 52.89.34.226\n \n \n 169.254.12.241\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n btRxqLWsAA8MAZ6XRI3CQJFmMDh1scIB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.165.73.3",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.166.247.180",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 55,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.89.34.226",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.167.45.7",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 55,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "b3546f46-72a0-4f50-af9e-c4db2e3fdd8a",
+ "HTTPStatusCode": 200,
+ "RequestId": "c0583208-1fa5-4c6e-8970-8dd2f3ecd62d",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:56 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:02:25 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_5.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_5.json
new file mode 100644
index 00000000000..59d520d1c43
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_5.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.166.247.180\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n vMOOPmaOf_RaI5CYB1HP1LSN7fKVajOB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.126\n 255.255.255.252\n 30\n \n \n \n \n 35.167.45.7\n \n \n 169.254.12.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DP5uNzsBDGM2M79qOw0w4uttdQvvTmuE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.166.247.180",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.167.45.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "b10cdcbf-b16e-43c0-99b1-2fe2ad8db09b",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:02:40 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_6.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_6.json
new file mode 100644
index 00000000000..06ce44a44db
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_6.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.166.247.180\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n vMOOPmaOf_RaI5CYB1HP1LSN7fKVajOB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.126\n 255.255.255.252\n 30\n \n \n \n \n 35.167.45.7\n \n \n 169.254.12.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DP5uNzsBDGM2M79qOw0w4uttdQvvTmuE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.166.247.180",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.167.45.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "93d3176a-6d6a-44de-8a20-91bd4a64b3a3",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:02:56 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_7.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_7.json
new file mode 100644
index 00000000000..e15dc61ebf8
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_7.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.166.247.180\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n vMOOPmaOf_RaI5CYB1HP1LSN7fKVajOB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.126\n 255.255.255.252\n 30\n \n \n \n \n 35.167.45.7\n \n \n 169.254.12.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DP5uNzsBDGM2M79qOw0w4uttdQvvTmuE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.166.247.180",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.167.45.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "329c10c9-0ee8-48d3-acb2-b48668ddbab6",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:03:12 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_8.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_8.json
new file mode 100644
index 00000000000..806c717d2f4
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_8.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.166.247.180\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n vMOOPmaOf_RaI5CYB1HP1LSN7fKVajOB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.126\n 255.255.255.252\n 30\n \n \n \n \n 35.167.45.7\n \n \n 169.254.12.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DP5uNzsBDGM2M79qOw0w4uttdQvvTmuE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.166.247.180",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.167.45.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "bf983aa1-224e-470a-b0a1-add5bda488b5",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:03:27 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_9.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_9.json
new file mode 100644
index 00000000000..8e7c3eccfb9
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_connection/ec2.DescribeVpnConnections_9.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.166.247.180\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n vMOOPmaOf_RaI5CYB1HP1LSN7fKVajOB\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.126\n 255.255.255.252\n 30\n \n \n \n \n 35.167.45.7\n \n \n 169.254.12.125\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DP5uNzsBDGM2M79qOw0w4uttdQvvTmuE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.166.247.180",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 54,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.167.45.7",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 29,
+ "minute": 3,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "4857fe1d-dc96-4168-a7e1-9fbb73282ab2",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:03:43 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_nonexistent_connection/ec2.DescribeVpnConnections_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_nonexistent_connection/ec2.DescribeVpnConnections_1.json
index 6c4075ef029..eebfb3a70bf 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_nonexistent_connection/ec2.DescribeVpnConnections_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/delete_nonexistent_connection/ec2.DescribeVpnConnections_1.json
@@ -1,18 +1,17 @@
{
- "status_code": 200,
"data": {
- "VpnConnections": [],
+ "VpnConnections": [],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "907abc1f-5f95-44ca-b5f2-f5151cda3f7a",
+ "HTTPStatusCode": 200,
+ "RequestId": "8218208e-030d-4aea-9ae5-6e8534efe1ef",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:58 GMT"
- }
+ "content-length": "243",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:04:32 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.CreateTags_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.CreateTags_1.json
index fd4f500054e..9f4209eea08 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.CreateTags_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.CreateTags_1.json
@@ -1,17 +1,17 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "3d25206a-61fc-41d3-983c-e82e9124d39a",
+ "HTTPStatusCode": 200,
+ "RequestId": "ccf8e327-eeee-4db8-9ae6-006a8fe5628c",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:15 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-type": "text/xml;charset=UTF-8",
+ "server": "AmazonEC2",
+ "date": "Mon, 16 Apr 2018 12:48:04 GMT",
+ "transfer-encoding": "chunked"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.CreateTags_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.CreateTags_2.json
index 8d5ddac943e..062840fc216 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.CreateTags_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.CreateTags_2.json
@@ -1,17 +1,17 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "c7565d5c-72a5-4351-b987-efb022a1438a",
+ "HTTPStatusCode": 200,
+ "RequestId": "0e1859bf-b896-4a30-ab94-849441b914f9",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:17 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-type": "text/xml;charset=UTF-8",
+ "server": "AmazonEC2",
+ "date": "Mon, 16 Apr 2018 12:48:05 GMT",
+ "transfer-encoding": "chunked"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.CreateVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.CreateVpnConnection_1.json
index ff7ef8e2718..c81bb5f509e 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.CreateVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.CreateVpnConnection_1.json
@@ -1,28 +1,29 @@
{
- "status_code": 200,
"data": {
"VpnConnection": {
- "VpnConnectionId": "vpn-d4d1cac6",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.174\n 255.255.255.252\n 30\n \n \n \n \n 34.208.63.208\n \n \n 169.254.13.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n BoicPawQq1PrbGopF.5uOIUHV8QuwlIk\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.234\n 255.255.255.252\n 30\n \n \n \n \n 52.43.238.101\n \n \n 169.254.13.233\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oVWMk0STre72RtHDSGFchlxNHCLPbQRP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
+ "CustomerGatewayId": "cgw-6113c87f",
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 35.163.160.156\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oC1SMX2FbEbY71f2sWq3DPOQELqt4h0p\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.90\n 255.255.255.252\n 30\n \n \n \n \n 52.33.241.73\n \n \n 169.254.13.89\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oNaPmhtWjtzz4Wy3TolB1e5C1UK6_6t9\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "VpnConnectionId": "vpn-6a06e27f",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ },
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "20f10b43-469a-4a3e-bde9-9b72a43892ac",
+ "HTTPStatusCode": 200,
+ "RequestId": "5db2e287-2d09-4a50-aaa1-a4615ece9bd6",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:08 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5235",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:43:03 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.CreateVpnConnection_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.CreateVpnConnection_2.json
index c0c795f2409..69c39a89a83 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.CreateVpnConnection_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.CreateVpnConnection_2.json
@@ -1,28 +1,29 @@
{
- "status_code": 200,
"data": {
"VpnConnection": {
- "VpnConnectionId": "vpn-d5d1cac7",
- "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.66\n 255.255.255.252\n 30\n \n \n \n \n 35.165.76.189\n \n \n 169.254.15.65\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n Nkf85LZPueu8Vsb1eW8E0MakAcDXmam2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.94\n 255.255.255.252\n 30\n \n \n \n \n 52.34.36.2\n \n \n 169.254.15.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n .eTE1ZMmoAq2kZIFy3u2QzP8yxvajM.F\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "State": "pending",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
+ "CustomerGatewayId": "cgw-9e13c880",
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "VpnConnectionId": "vpn-9506e280",
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ },
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "70469ace-bc8a-4a4c-862a-56f4d16f07bf",
+ "HTTPStatusCode": 200,
+ "RequestId": "7533469a-5979-42fd-94de-c33a66d34065",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:11 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5234",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:45:25 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DeleteVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DeleteVpnConnection_1.json
index 5b7aac69810..cc17b12afc6 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DeleteVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DeleteVpnConnection_1.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "94ead0e4-dbb1-416d-a16e-b7207df52b26",
+ "HTTPStatusCode": 200,
+ "RequestId": "5670f275-006d-48db-91e0-72058d9d881f",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:20 GMT"
- }
+ "content-length": "239",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:06 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DeleteVpnConnection_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DeleteVpnConnection_2.json
index 13d2b497570..d2fd5524e8f 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DeleteVpnConnection_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DeleteVpnConnection_2.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "9b1b23ef-e912-4636-9f69-d8241168ef6d",
+ "HTTPStatusCode": 200,
+ "RequestId": "35514550-20a7-4f91-b175-d21182ad8bdd",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:20 GMT"
- }
+ "content-length": "239",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:07 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_1.json
index f8b6dccc801..d9d2f28724b 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_1.json
@@ -1,30 +1,30 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "2f5a8a9d-25fb-44f9-b638-bdf8873dd790",
+ "HTTPStatusCode": 200,
+ "RequestId": "edae433c-c2f8-475a-95f9-5c3c00d0b54b",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:06 GMT"
- }
+ "content-length": "705",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:43:03 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_10.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_10.json
index 96f4f707b24..aeb3224679e 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_10.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_10.json
@@ -1,71 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d4d1cac6",
- "Tags": [
- {
- "Value": "Tag",
- "Key": "Wrong"
- }
- ],
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.174\n 255.255.255.252\n 30\n \n \n \n \n 34.208.63.208\n \n \n 169.254.13.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n BoicPawQq1PrbGopF.5uOIUHV8QuwlIk\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.234\n 255.255.255.252\n 30\n \n \n \n \n 52.43.238.101\n \n \n 169.254.13.233\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oVWMk0STre72RtHDSGFchlxNHCLPbQRP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 35.163.160.156\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oC1SMX2FbEbY71f2sWq3DPOQELqt4h0p\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.90\n 255.255.255.252\n 30\n \n \n \n \n 52.33.241.73\n \n \n 169.254.13.89\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oNaPmhtWjtzz4Wy3TolB1e5C1UK6_6t9\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "34.208.63.208",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.160.156",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 8,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 6,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.43.238.101",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.33.241.73",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 8,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 53,
+ "minute": 44,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "4e52d197-7903-46ce-84c6-c0cc734a4992",
+ "HTTPStatusCode": 200,
+ "RequestId": "a30a934b-5716-4d4d-958a-7e780e333a24",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:16 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:45:08 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_11.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_11.json
index 91c293d6a23..3132117c7cd 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_11.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_11.json
@@ -1,76 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d7d1cac5",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 35.163.160.156\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oC1SMX2FbEbY71f2sWq3DPOQELqt4h0p\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.90\n 255.255.255.252\n 30\n \n \n \n \n 52.33.241.73\n \n \n 169.254.13.89\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oNaPmhtWjtzz4Wy3TolB1e5C1UK6_6t9\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d5d1cac7",
- "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.66\n 255.255.255.252\n 30\n \n \n \n \n 35.165.76.189\n \n \n 169.254.15.65\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n Nkf85LZPueu8Vsb1eW8E0MakAcDXmam2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.94\n 255.255.255.252\n 30\n \n \n \n \n 52.34.36.2\n \n \n 169.254.15.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n .eTE1ZMmoAq2kZIFy3u2QzP8yxvajM.F\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.165.76.189",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.160.156",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 11,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 6,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.34.36.2",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.33.241.73",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 11,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 53,
+ "minute": 44,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "4b0c1efa-7a13-4ace-924a-e3af5647eda3",
+ "HTTPStatusCode": 200,
+ "RequestId": "99b8bb83-e3f0-4b87-9121-5d862e2627f0",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:16 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:45:24 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_12.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_12.json
index 72921c4b6a9..89a6fd077d6 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_12.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_12.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d5d1cac7",
- "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.66\n 255.255.255.252\n 30\n \n \n \n \n 35.165.76.189\n \n \n 169.254.15.65\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n Nkf85LZPueu8Vsb1eW8E0MakAcDXmam2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.94\n 255.255.255.252\n 30\n \n \n \n \n 52.34.36.2\n \n \n 169.254.15.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n .eTE1ZMmoAq2kZIFy3u2QzP8yxvajM.F\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 35.163.160.156\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oC1SMX2FbEbY71f2sWq3DPOQELqt4h0p\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.90\n 255.255.255.252\n 30\n \n \n \n \n 52.33.241.73\n \n \n 169.254.13.89\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oNaPmhtWjtzz4Wy3TolB1e5C1UK6_6t9\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.165.76.189",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.160.156",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 11,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 6,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.34.36.2",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.33.241.73",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 11,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 53,
+ "minute": 44,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "80442f20-0375-48b7-bb67-41f78cfe6fe4",
+ "HTTPStatusCode": 200,
+ "RequestId": "c6d1bf65-4f3e-4f7f-9274-281ebf433b2b",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:16 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:45:24 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_13.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_13.json
index 2e7396351aa..6c50e6b66c8 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_13.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_13.json
@@ -1,71 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d5d1cac7",
- "Tags": [
- {
- "Value": "Tag",
- "Key": "Correct"
- }
- ],
- "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.66\n 255.255.255.252\n 30\n \n \n \n \n 35.165.76.189\n \n \n 169.254.15.65\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n Nkf85LZPueu8Vsb1eW8E0MakAcDXmam2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.94\n 255.255.255.252\n 30\n \n \n \n \n 52.34.36.2\n \n \n 169.254.15.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n .eTE1ZMmoAq2kZIFy3u2QzP8yxvajM.F\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 35.163.160.156\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oC1SMX2FbEbY71f2sWq3DPOQELqt4h0p\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.90\n 255.255.255.252\n 30\n \n \n \n \n 52.33.241.73\n \n \n 169.254.13.89\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oNaPmhtWjtzz4Wy3TolB1e5C1UK6_6t9\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.165.76.189",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.160.156",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 11,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 6,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.34.36.2",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.33.241.73",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 11,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 53,
+ "minute": 44,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "9989fff5-6d49-4ac8-a56a-c2a9dfbd6781",
+ "HTTPStatusCode": 200,
+ "RequestId": "28733dff-592e-4c48-94f9-b4d56bbc246a",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:17 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:45:25 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_14.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_14.json
index 6715debc654..c8ad595dcb8 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_14.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_14.json
@@ -1,71 +1,30 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d5d1cac7",
- "Tags": [
- {
- "Value": "Tag",
- "Key": "Correct"
- }
- ],
- "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.66\n 255.255.255.252\n 30\n \n \n \n \n 35.165.76.189\n \n \n 169.254.15.65\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n Nkf85LZPueu8Vsb1eW8E0MakAcDXmam2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.94\n 255.255.255.252\n 30\n \n \n \n \n 52.34.36.2\n \n \n 169.254.15.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n .eTE1ZMmoAq2kZIFy3u2QzP8yxvajM.F\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "VgwTelemetry": [
- {
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.165.76.189",
- "LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 11,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
- {
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.34.36.2",
- "LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 11,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- }
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-6906e27c",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "deleted"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "7bc4bca5-c8e7-4c6e-be09-d009c31f52f5",
+ "HTTPStatusCode": 200,
+ "RequestId": "d38f939c-ded7-416b-a563-88161b71be1c",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:18 GMT"
- }
+ "content-length": "705",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:45:25 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_15.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_15.json
index aa7871ca53b..06fd99e110b 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_15.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_15.json
@@ -1,71 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d5d1cac7",
- "Tags": [
- {
- "Value": "Tag",
- "Key": "Correct"
- }
- ],
- "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.66\n 255.255.255.252\n 30\n \n \n \n \n 35.165.76.189\n \n \n 169.254.15.65\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n Nkf85LZPueu8Vsb1eW8E0MakAcDXmam2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.94\n 255.255.255.252\n 30\n \n \n \n \n 52.34.36.2\n \n \n 169.254.15.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n .eTE1ZMmoAq2kZIFy3u2QzP8yxvajM.F\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.165.76.189",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 11,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.34.36.2",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 11,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "5851a62c-eb26-448f-b1c4-559a54a118b3",
+ "HTTPStatusCode": 200,
+ "RequestId": "af7c54ed-ca7f-4013-adee-16133b822d53",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:19 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:45:26 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_16.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_16.json
new file mode 100644
index 00000000000..ef0845944ac
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_16.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "24133f7b-2620-4f2b-98b5-427aaa5d04bd",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:45:41 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_17.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_17.json
new file mode 100644
index 00000000000..1a5bc6e7858
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_17.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "5ac6d438-cae6-40cc-9c63-81073def54be",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:45:57 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_18.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_18.json
new file mode 100644
index 00000000000..77dbba5bba1
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_18.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "968a8ebd-ed59-4a8d-a314-83a6430bebd3",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:46:13 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_19.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_19.json
new file mode 100644
index 00000000000..6c01e2c67f6
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_19.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "07f96ac8-f5ec-43e4-ab7d-6b989e071808",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:46:29 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_2.json
index b556e92feed..2f51af37102 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_2.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d4d1cac6",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.174\n 255.255.255.252\n 30\n \n \n \n \n 34.208.63.208\n \n \n 169.254.13.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n BoicPawQq1PrbGopF.5uOIUHV8QuwlIk\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.234\n 255.255.255.252\n 30\n \n \n \n \n 52.43.238.101\n \n \n 169.254.13.233\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oVWMk0STre72RtHDSGFchlxNHCLPbQRP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 35.163.160.156\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oC1SMX2FbEbY71f2sWq3DPOQELqt4h0p\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.90\n 255.255.255.252\n 30\n \n \n \n \n 52.33.241.73\n \n \n 169.254.13.89\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oNaPmhtWjtzz4Wy3TolB1e5C1UK6_6t9\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "34.208.63.208",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.160.156",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 8,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 4,
+ "minute": 43,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.43.238.101",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.33.241.73",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 8,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 4,
+ "minute": 43,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "bef248f5-e474-44a9-a612-d58be45208cb",
+ "HTTPStatusCode": 200,
+ "RequestId": "b1b10bb7-e85c-44ca-b74e-85352550db52",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:09 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:43:04 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_20.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_20.json
new file mode 100644
index 00000000000..30ecbe4b4e2
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_20.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "0750711f-fafd-4323-a685-65329a0a9302",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:46:43 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_21.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_21.json
new file mode 100644
index 00000000000..844fdab041c
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_21.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "ec319bcc-2a61-43d3-a69c-9d94235aeb56",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:46:59 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_22.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_22.json
new file mode 100644
index 00000000000..be8c4aa55b3
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_22.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "6fe5a339-9436-4077-a201-dab2b7b95039",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:47:16 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_23.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_23.json
new file mode 100644
index 00000000000..0a98ebdf353
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_23.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "7897be6a-fc15-4608-bac0-c3cf7bba28c6",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:47:31 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_24.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_24.json
new file mode 100644
index 00000000000..d304915288f
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_24.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 47,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 26,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "898cc57f-ab56-47d7-920e-995814f532a4",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:47:47 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_25.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_25.json
new file mode 100644
index 00000000000..79b0739f098
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_25.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 47,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 49,
+ "minute": 47,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "134c741c-757b-4a87-9a34-c8f1848ef33e",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:02 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_26.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_26.json
new file mode 100644
index 00000000000..49b4c09ab6d
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_26.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 47,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 49,
+ "minute": 47,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "8009af6c-6d35-45fa-a94d-5384d3b92573",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:02 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_27.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_27.json
new file mode 100644
index 00000000000..059a154eebd
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_27.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 47,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 49,
+ "minute": 47,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "7ef9e804-1eb9-4486-9285-584204a824a3",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:02 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_28.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_28.json
new file mode 100644
index 00000000000..76ad9ba8ec6
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_28.json
@@ -0,0 +1,78 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 35.163.160.156\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oC1SMX2FbEbY71f2sWq3DPOQELqt4h0p\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.90\n 255.255.255.252\n 30\n \n \n \n \n 52.33.241.73\n \n \n 169.254.13.89\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oNaPmhtWjtzz4Wy3TolB1e5C1UK6_6t9\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.160.156",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 6,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.33.241.73",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 53,
+ "minute": 44,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "05c178e1-3f1f-4e0f-bb43-027d2b41f56c",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6561",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:04 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_29.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_29.json
new file mode 100644
index 00000000000..0b2918289ea
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_29.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 35.163.160.156\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oC1SMX2FbEbY71f2sWq3DPOQELqt4h0p\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.90\n 255.255.255.252\n 30\n \n \n \n \n 52.33.241.73\n \n \n 169.254.13.89\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oNaPmhtWjtzz4Wy3TolB1e5C1UK6_6t9\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.160.156",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 6,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.33.241.73",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 53,
+ "minute": 44,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "92db5b5e-d7e6-4cfd-9d62-abdda5a6083c",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:04 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_3.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_3.json
index ae7dfd43b38..9f85a23b561 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_3.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_3.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d4d1cac6",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.174\n 255.255.255.252\n 30\n \n \n \n \n 34.208.63.208\n \n \n 169.254.13.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n BoicPawQq1PrbGopF.5uOIUHV8QuwlIk\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.234\n 255.255.255.252\n 30\n \n \n \n \n 52.43.238.101\n \n \n 169.254.13.233\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oVWMk0STre72RtHDSGFchlxNHCLPbQRP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 35.163.160.156\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oC1SMX2FbEbY71f2sWq3DPOQELqt4h0p\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.90\n 255.255.255.252\n 30\n \n \n \n \n 52.33.241.73\n \n \n 169.254.13.89\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oNaPmhtWjtzz4Wy3TolB1e5C1UK6_6t9\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "34.208.63.208",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.160.156",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 8,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 4,
+ "minute": 43,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.43.238.101",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.33.241.73",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 8,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 4,
+ "minute": 43,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "28d92ba7-d092-4ae7-9600-fee96fc8e714",
+ "HTTPStatusCode": 200,
+ "RequestId": "2a3a4fd7-189b-43b0-8a44-82ebd52dba01",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:10 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:43:19 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_30.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_30.json
new file mode 100644
index 00000000000..cad1188b977
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_30.json
@@ -0,0 +1,72 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 35.163.160.156\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oC1SMX2FbEbY71f2sWq3DPOQELqt4h0p\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.90\n 255.255.255.252\n 30\n \n \n \n \n 52.33.241.73\n \n \n 169.254.13.89\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oNaPmhtWjtzz4Wy3TolB1e5C1UK6_6t9\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.160.156",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 6,
+ "minute": 45,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.33.241.73",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 53,
+ "minute": 44,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "ffa7e24d-e004-4b4e-9317-80b97dc89cc8",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6288",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:04 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_31.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_31.json
new file mode 100644
index 00000000000..94f87c7d060
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_31.json
@@ -0,0 +1,78 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 47,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 49,
+ "minute": 47,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "available"
+ },
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-6906e27c",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "0cebf278-197b-4bdd-b8d9-c44250637154",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6559",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:05 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_32.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_32.json
new file mode 100644
index 00000000000..bba62063290
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_32.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 47,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 49,
+ "minute": 47,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "4bc3a17b-6896-4f8a-b3bc-07cbbf88e9e2",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:05 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_33.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_33.json
new file mode 100644
index 00000000000..630ea016d7f
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_33.json
@@ -0,0 +1,72 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 47,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 49,
+ "minute": 47,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "7371d436-849d-4717-a284-e33389f8982d",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6288",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:06 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_34.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_34.json
new file mode 100644
index 00000000000..a294fb7421c
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_34.json
@@ -0,0 +1,72 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.138\n 255.255.255.252\n 30\n \n \n \n \n 35.164.115.77\n \n \n 169.254.15.137\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n LOIUEOybh.7onRDbkA0jIjVgwAanpstb\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.13.14\n 255.255.255.252\n 30\n \n \n \n \n 52.32.43.175\n \n \n 169.254.13.13\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n gVdPYm2D00u04GU8PlcRg8NayCIB.8hu\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.164.115.77",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 47,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.32.43.175",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 49,
+ "minute": 47,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "b645a20e-3689-4a13-8af1-2dcc38f70a9b",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6288",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:06 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_35.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_35.json
new file mode 100644
index 00000000000..42ea2ec0db8
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_35.json
@@ -0,0 +1,36 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "6e80e598-aeb2-4ae1-bfe3-2383505379cc",
+ "HTTPHeaders": {
+ "content-length": "871",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:07 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_36.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_36.json
new file mode 100644
index 00000000000..9a97df1f0eb
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_36.json
@@ -0,0 +1,36 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "f4072f73-ff8c-49ed-89a7-eaed0389b11a",
+ "HTTPHeaders": {
+ "content-length": "873",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:08 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_4.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_4.json
index 48bef48b0ea..ad74fa0620f 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_4.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_4.json
@@ -1,30 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d7d1cac5",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 35.163.160.156\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oC1SMX2FbEbY71f2sWq3DPOQELqt4h0p\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.90\n 255.255.255.252\n 30\n \n \n \n \n 52.33.241.73\n \n \n 169.254.13.89\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oNaPmhtWjtzz4Wy3TolB1e5C1UK6_6t9\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.160.156",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 4,
+ "minute": 43,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.33.241.73",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 4,
+ "minute": 43,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "1c9af9df-3a21-44d2-ab2c-7aa31dc0c842",
+ "HTTPStatusCode": 200,
+ "RequestId": "ed467717-f22a-4c33-a9e7-0f871d1b35b2",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:10 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:43:35 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_5.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_5.json
index f498bb3b50d..9f2bb01f3fa 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_5.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_5.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d5d1cac7",
- "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.66\n 255.255.255.252\n 30\n \n \n \n \n 35.165.76.189\n \n \n 169.254.15.65\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n Nkf85LZPueu8Vsb1eW8E0MakAcDXmam2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.94\n 255.255.255.252\n 30\n \n \n \n \n 52.34.36.2\n \n \n 169.254.15.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n .eTE1ZMmoAq2kZIFy3u2QzP8yxvajM.F\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 35.163.160.156\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oC1SMX2FbEbY71f2sWq3DPOQELqt4h0p\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.90\n 255.255.255.252\n 30\n \n \n \n \n 52.33.241.73\n \n \n 169.254.13.89\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oNaPmhtWjtzz4Wy3TolB1e5C1UK6_6t9\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.165.76.189",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.160.156",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 11,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 4,
+ "minute": 43,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.34.36.2",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.33.241.73",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 11,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 4,
+ "minute": 43,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "65e2647e-081a-4f5f-8c21-cf6b841d05fb",
+ "HTTPStatusCode": 200,
+ "RequestId": "49f28398-4458-4c9d-9c04-598c9d8e76bd",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:12 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:43:50 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_6.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_6.json
index 34f59a56436..58c773d2c01 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_6.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_6.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d5d1cac7",
- "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.15.66\n 255.255.255.252\n 30\n \n \n \n \n 35.165.76.189\n \n \n 169.254.15.65\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n Nkf85LZPueu8Vsb1eW8E0MakAcDXmam2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.94\n 255.255.255.252\n 30\n \n \n \n \n 52.34.36.2\n \n \n 169.254.15.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n .eTE1ZMmoAq2kZIFy3u2QzP8yxvajM.F\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 35.163.160.156\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oC1SMX2FbEbY71f2sWq3DPOQELqt4h0p\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.90\n 255.255.255.252\n 30\n \n \n \n \n 52.33.241.73\n \n \n 169.254.13.89\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oNaPmhtWjtzz4Wy3TolB1e5C1UK6_6t9\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.165.76.189",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.160.156",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 11,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 4,
+ "minute": 43,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.34.36.2",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.33.241.73",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 11,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 4,
+ "minute": 43,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "f045d2e0-e396-46af-be77-8541f3204cae",
+ "HTTPStatusCode": 200,
+ "RequestId": "bebb46be-76a1-486b-a9d0-7f0e33f68294",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:13 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:44:06 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_7.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_7.json
index dc0ce5877c9..a15fd0e3264 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_7.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_7.json
@@ -1,76 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 35.163.160.156\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oC1SMX2FbEbY71f2sWq3DPOQELqt4h0p\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.90\n 255.255.255.252\n 30\n \n \n \n \n 52.33.241.73\n \n \n 169.254.13.89\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oNaPmhtWjtzz4Wy3TolB1e5C1UK6_6t9\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d4d1cac6",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.174\n 255.255.255.252\n 30\n \n \n \n \n 34.208.63.208\n \n \n 169.254.13.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n BoicPawQq1PrbGopF.5uOIUHV8QuwlIk\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.234\n 255.255.255.252\n 30\n \n \n \n \n 52.43.238.101\n \n \n 169.254.13.233\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oVWMk0STre72RtHDSGFchlxNHCLPbQRP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "34.208.63.208",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.160.156",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 8,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 4,
+ "minute": 43,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.43.238.101",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.33.241.73",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 8,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 4,
+ "minute": 43,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "a7d7c15c-9b96-4c50-bf1c-1a4aa9cf1d5c",
+ "HTTPStatusCode": 200,
+ "RequestId": "090f369a-71f4-4e60-b860-c1f5cc52a5ab",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:14 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:44:21 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_8.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_8.json
index a746a94339d..2765a9f26f7 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_8.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_8.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d4d1cac6",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.174\n 255.255.255.252\n 30\n \n \n \n \n 34.208.63.208\n \n \n 169.254.13.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n BoicPawQq1PrbGopF.5uOIUHV8QuwlIk\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.234\n 255.255.255.252\n 30\n \n \n \n \n 52.43.238.101\n \n \n 169.254.13.233\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oVWMk0STre72RtHDSGFchlxNHCLPbQRP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 35.163.160.156\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oC1SMX2FbEbY71f2sWq3DPOQELqt4h0p\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.90\n 255.255.255.252\n 30\n \n \n \n \n 52.33.241.73\n \n \n 169.254.13.89\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oNaPmhtWjtzz4Wy3TolB1e5C1UK6_6t9\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "34.208.63.208",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.160.156",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 8,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 4,
+ "minute": 43,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.43.238.101",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.33.241.73",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 8,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 4,
+ "minute": 43,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "44c8dba1-4d16-4126-8e06-12b9ca6d8d99",
+ "HTTPStatusCode": 200,
+ "RequestId": "f98ad6e5-e3c6-48ae-b6c1-d9ed9824ea88",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:14 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:44:37 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_9.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_9.json
index f5d550843fc..9b6e2ada236 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_9.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_filters/ec2.DescribeVpnConnections_9.json
@@ -1,71 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d4d1cac6",
- "Tags": [
- {
- "Value": "Tag",
- "Key": "Wrong"
- }
- ],
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.174\n 255.255.255.252\n 30\n \n \n \n \n 34.208.63.208\n \n \n 169.254.13.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n BoicPawQq1PrbGopF.5uOIUHV8QuwlIk\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.234\n 255.255.255.252\n 30\n \n \n \n \n 52.43.238.101\n \n \n 169.254.13.233\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oVWMk0STre72RtHDSGFchlxNHCLPbQRP\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.194\n 255.255.255.252\n 30\n \n \n \n \n 35.163.160.156\n \n \n 169.254.14.193\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oC1SMX2FbEbY71f2sWq3DPOQELqt4h0p\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.90\n 255.255.255.252\n 30\n \n \n \n \n 52.33.241.73\n \n \n 169.254.13.89\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n oNaPmhtWjtzz4Wy3TolB1e5C1UK6_6t9\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "34.208.63.208",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.160.156",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 8,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 4,
+ "minute": 43,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.43.238.101",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.33.241.73",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 8,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 53,
+ "minute": 44,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "0efe07c4-1553-4a4e-b829-ff66cc99d4b6",
+ "HTTPStatusCode": 200,
+ "RequestId": "ef918599-de1c-40e5-95ab-2a4b16356455",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:16 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:44:52 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.CreateTags_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.CreateTags_1.json
index 3c1a8f9d665..52ca9673111 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.CreateTags_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.CreateTags_1.json
@@ -1,17 +1,17 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "9e21c5d7-8be2-413a-8211-bed94de38e47",
+ "HTTPStatusCode": 200,
+ "RequestId": "f39595f7-c4f7-4e7c-9681-83e5619e0d84",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:24 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-type": "text/xml;charset=UTF-8",
+ "server": "AmazonEC2",
+ "date": "Mon, 16 Apr 2018 12:50:34 GMT",
+ "transfer-encoding": "chunked"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.CreateTags_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.CreateTags_2.json
index 4dd7894f095..3aeb21cf6fe 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.CreateTags_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.CreateTags_2.json
@@ -1,17 +1,17 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "b871e67a-4507-4859-b690-b28d6488397a",
+ "HTTPStatusCode": 200,
+ "RequestId": "61647610-452d-4a99-abce-d8e61a6ada95",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:28 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-type": "text/xml;charset=UTF-8",
+ "server": "AmazonEC2",
+ "date": "Mon, 16 Apr 2018 12:53:28 GMT",
+ "transfer-encoding": "chunked"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.CreateVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.CreateVpnConnection_1.json
index ab23047c291..17aca9388e3 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.CreateVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.CreateVpnConnection_1.json
@@ -1,28 +1,29 @@
{
- "status_code": 200,
"data": {
"VpnConnection": {
- "VpnConnectionId": "vpn-dad1cac8",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.110\n 255.255.255.252\n 30\n \n \n \n \n 52.26.198.124\n \n \n 169.254.13.109\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 51Mah1x0ibaJnZk0GV7MNijJKBtEPKWL\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.150\n 255.255.255.252\n 30\n \n \n \n \n 52.39.71.179\n \n \n 169.254.15.149\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n lY27_pTs_9cqHl.MhalLgXsclxA4Ei9T\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
+ "CustomerGatewayId": "cgw-6113c87f",
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.26\n 255.255.255.252\n 30\n \n \n \n \n 34.214.254.212\n \n \n 169.254.14.25\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n AwW2EGlLGc4apzToCgrKQ2e4RexOSfj8\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.174\n 255.255.255.252\n 30\n \n \n \n \n 52.38.34.113\n \n \n 169.254.14.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5Slu8XDI5h2_TGXkCw_E2wAiRzyz3yIn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "VpnConnectionId": "vpn-9706e282",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ },
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "3205fb79-ffa9-4982-83b9-7772d62a5c81",
+ "HTTPStatusCode": 200,
+ "RequestId": "080cc661-516b-4d6c-806b-64f54b232f57",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:24 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5235",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:13 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.CreateVpnConnection_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.CreateVpnConnection_2.json
index a9f649c2253..0080abe9dc4 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.CreateVpnConnection_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.CreateVpnConnection_2.json
@@ -1,28 +1,29 @@
{
- "status_code": 200,
"data": {
"VpnConnection": {
- "VpnConnectionId": "vpn-dbd1cac9",
- "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.146\n 255.255.255.252\n 30\n \n \n \n \n 34.210.151.74\n \n \n 169.254.12.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 1nmmvzBlufrj_vueJvPiIBTUJWI.UAuL\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.14.142\n 255.255.255.252\n 30\n \n \n \n \n 52.41.102.69\n \n \n 169.254.14.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n CQtqQDcVcNan0gWNfv4LLANSVZwq6Zv2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "State": "pending",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
+ "CustomerGatewayId": "cgw-9e13c880",
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.142\n 255.255.255.252\n 30\n \n \n \n \n 34.215.4.190\n \n \n 169.254.12.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n l9lo.f40_7mQk6G.Xe1tZ3HnYaGrqeis\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.12.214\n 255.255.255.252\n 30\n \n \n \n \n 35.163.123.41\n \n \n 169.254.12.213\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n By_kbJfKdll6PTY4W.pMr7CC0gqeP5U2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "VpnConnectionId": "vpn-9606e283",
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ },
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "f12fa28a-7a66-47fb-9730-3555a42f6f1e",
+ "HTTPStatusCode": 200,
+ "RequestId": "d49ec118-3438-40cb-bcb5-8e98d9676688",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:25 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5236",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:50:36 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DeleteVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DeleteVpnConnection_1.json
index 26d32613038..ddce99bb1ed 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DeleteVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DeleteVpnConnection_1.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "13d95a20-f2df-4e2f-b2a9-d090f418504e",
+ "HTTPStatusCode": 200,
+ "RequestId": "995f99a1-42d4-4d0f-b216-5e54c7052a71",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:31 GMT"
- }
+ "content-length": "239",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:53:29 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DeleteVpnConnection_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DeleteVpnConnection_2.json
index ec2af1a722d..65af7a36663 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DeleteVpnConnection_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DeleteVpnConnection_2.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "ab0fd4fb-32d3-4ec8-9ebe-c81989ec7bf4",
+ "HTTPStatusCode": 200,
+ "RequestId": "701a2c53-ef2e-4b77-bb0c-b0e4904dc714",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:31 GMT"
- }
+ "content-length": "239",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:53:29 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_1.json
index 433718ee9ad..59bbeec791c 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_1.json
@@ -1,41 +1,48 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d4d1cac6",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "98700ca4-7ab6-484f-ac58-63413c89ca71",
+ "HTTPStatusCode": 200,
+ "RequestId": "22e251ed-4e2b-49a4-8747-fcc9c39ad99e",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:23 GMT"
- }
+ "content-length": "1310",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:12 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_10.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_10.json
new file mode 100644
index 00000000000..334a32fc447
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_10.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.26\n 255.255.255.252\n 30\n \n \n \n \n 34.214.254.212\n \n \n 169.254.14.25\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n AwW2EGlLGc4apzToCgrKQ2e4RexOSfj8\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.174\n 255.255.255.252\n 30\n \n \n \n \n 52.38.34.113\n \n \n 169.254.14.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5Slu8XDI5h2_TGXkCw_E2wAiRzyz3yIn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.214.254.212",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 1,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.34.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 9,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "66c5b212-f514-4075-ab41-6c70424d13ef",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:50:17 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_11.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_11.json
new file mode 100644
index 00000000000..27cf0e60f48
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_11.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.26\n 255.255.255.252\n 30\n \n \n \n \n 34.214.254.212\n \n \n 169.254.14.25\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n AwW2EGlLGc4apzToCgrKQ2e4RexOSfj8\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.174\n 255.255.255.252\n 30\n \n \n \n \n 52.38.34.113\n \n \n 169.254.14.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5Slu8XDI5h2_TGXkCw_E2wAiRzyz3yIn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.214.254.212",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 1,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.34.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 9,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "4fa0db43-456e-491d-a6f6-2a2a262bc068",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:50:33 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_12.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_12.json
new file mode 100644
index 00000000000..12afe81e0da
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_12.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.26\n 255.255.255.252\n 30\n \n \n \n \n 34.214.254.212\n \n \n 169.254.14.25\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n AwW2EGlLGc4apzToCgrKQ2e4RexOSfj8\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.174\n 255.255.255.252\n 30\n \n \n \n \n 52.38.34.113\n \n \n 169.254.14.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5Slu8XDI5h2_TGXkCw_E2wAiRzyz3yIn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.214.254.212",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 1,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.34.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 9,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "521f0a1b-e935-40c2-b896-b13b5b6f2d1a",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:50:34 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_13.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_13.json
new file mode 100644
index 00000000000..0c5d8ca7849
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_13.json
@@ -0,0 +1,72 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.26\n 255.255.255.252\n 30\n \n \n \n \n 34.214.254.212\n \n \n 169.254.14.25\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n AwW2EGlLGc4apzToCgrKQ2e4RexOSfj8\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.174\n 255.255.255.252\n 30\n \n \n \n \n 52.38.34.113\n \n \n 169.254.14.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5Slu8XDI5h2_TGXkCw_E2wAiRzyz3yIn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.214.254.212",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 1,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.34.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 9,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "da5b58d2-4042-4ed5-8faf-daceb3d706c6",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6290",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:50:35 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_14.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_14.json
new file mode 100644
index 00000000000..861ebd74b53
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_14.json
@@ -0,0 +1,48 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-6906e27c",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "d4e21661-391e-48b9-80f8-6c04a13a653e",
+ "HTTPHeaders": {
+ "content-length": "1312",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:50:35 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_15.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_15.json
new file mode 100644
index 00000000000..d54c65027c0
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_15.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.142\n 255.255.255.252\n 30\n \n \n \n \n 34.215.4.190\n \n \n 169.254.12.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n l9lo.f40_7mQk6G.Xe1tZ3HnYaGrqeis\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.12.214\n 255.255.255.252\n 30\n \n \n \n \n 35.163.123.41\n \n \n 169.254.12.213\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n By_kbJfKdll6PTY4W.pMr7CC0gqeP5U2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.215.4.190",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.123.41",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "3b4a1671-80a6-45a7-b620-885f88f5fd77",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:50:36 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_16.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_16.json
new file mode 100644
index 00000000000..41fc9a238f3
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_16.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.142\n 255.255.255.252\n 30\n \n \n \n \n 34.215.4.190\n \n \n 169.254.12.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n l9lo.f40_7mQk6G.Xe1tZ3HnYaGrqeis\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.12.214\n 255.255.255.252\n 30\n \n \n \n \n 35.163.123.41\n \n \n 169.254.12.213\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n By_kbJfKdll6PTY4W.pMr7CC0gqeP5U2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.215.4.190",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.123.41",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "55115858-ebfd-4329-85e8-5bd15b31e62d",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:50:51 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_17.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_17.json
new file mode 100644
index 00000000000..1d82c71110a
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_17.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.142\n 255.255.255.252\n 30\n \n \n \n \n 34.215.4.190\n \n \n 169.254.12.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n l9lo.f40_7mQk6G.Xe1tZ3HnYaGrqeis\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.12.214\n 255.255.255.252\n 30\n \n \n \n \n 35.163.123.41\n \n \n 169.254.12.213\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n By_kbJfKdll6PTY4W.pMr7CC0gqeP5U2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.215.4.190",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.123.41",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "241b82e1-4611-495a-952d-21fce8354e6e",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:51:07 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_18.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_18.json
new file mode 100644
index 00000000000..0b0861b6896
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_18.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.142\n 255.255.255.252\n 30\n \n \n \n \n 34.215.4.190\n \n \n 169.254.12.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n l9lo.f40_7mQk6G.Xe1tZ3HnYaGrqeis\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.12.214\n 255.255.255.252\n 30\n \n \n \n \n 35.163.123.41\n \n \n 169.254.12.213\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n By_kbJfKdll6PTY4W.pMr7CC0gqeP5U2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.215.4.190",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.123.41",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "898fcbc8-4c89-49cd-943f-7c2f0e3a73b7",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:51:22 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_19.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_19.json
new file mode 100644
index 00000000000..c054486c7a3
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_19.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.142\n 255.255.255.252\n 30\n \n \n \n \n 34.215.4.190\n \n \n 169.254.12.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n l9lo.f40_7mQk6G.Xe1tZ3HnYaGrqeis\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.12.214\n 255.255.255.252\n 30\n \n \n \n \n 35.163.123.41\n \n \n 169.254.12.213\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n By_kbJfKdll6PTY4W.pMr7CC0gqeP5U2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.215.4.190",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.123.41",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "2f8be95a-d488-412c-9bc3-bca1c66c3ccf",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:51:38 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_2.json
index 6c8de0d7396..9900b9b0a8b 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_2.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-dad1cac8",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.110\n 255.255.255.252\n 30\n \n \n \n \n 52.26.198.124\n \n \n 169.254.13.109\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 51Mah1x0ibaJnZk0GV7MNijJKBtEPKWL\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.150\n 255.255.255.252\n 30\n \n \n \n \n 52.39.71.179\n \n \n 169.254.15.149\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n lY27_pTs_9cqHl.MhalLgXsclxA4Ei9T\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.26\n 255.255.255.252\n 30\n \n \n \n \n 34.214.254.212\n \n \n 169.254.14.25\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n AwW2EGlLGc4apzToCgrKQ2e4RexOSfj8\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.174\n 255.255.255.252\n 30\n \n \n \n \n 52.38.34.113\n \n \n 169.254.14.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5Slu8XDI5h2_TGXkCw_E2wAiRzyz3yIn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.26.198.124",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.214.254.212",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 24,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 48,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.39.71.179",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.34.113",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 24,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 48,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "4e7c321b-1ab1-418d-bafd-c2d6af70bdac",
+ "HTTPStatusCode": 200,
+ "RequestId": "bd0e67d4-f5a5-4e98-a388-e80af982bebf",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:24 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:13 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_20.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_20.json
new file mode 100644
index 00000000000..39ddd25ed78
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_20.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.142\n 255.255.255.252\n 30\n \n \n \n \n 34.215.4.190\n \n \n 169.254.12.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n l9lo.f40_7mQk6G.Xe1tZ3HnYaGrqeis\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.12.214\n 255.255.255.252\n 30\n \n \n \n \n 35.163.123.41\n \n \n 169.254.12.213\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n By_kbJfKdll6PTY4W.pMr7CC0gqeP5U2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.215.4.190",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.123.41",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "66fe299d-2a18-4693-bdc3-00475c529a7f",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:51:53 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_21.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_21.json
new file mode 100644
index 00000000000..cd711acfe3f
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_21.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.142\n 255.255.255.252\n 30\n \n \n \n \n 34.215.4.190\n \n \n 169.254.12.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n l9lo.f40_7mQk6G.Xe1tZ3HnYaGrqeis\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.12.214\n 255.255.255.252\n 30\n \n \n \n \n 35.163.123.41\n \n \n 169.254.12.213\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n By_kbJfKdll6PTY4W.pMr7CC0gqeP5U2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.215.4.190",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.123.41",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "b5ebc50e-0f1d-4d96-87c1-bf222c186911",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:52:09 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_22.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_22.json
new file mode 100644
index 00000000000..490f336b65d
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_22.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.142\n 255.255.255.252\n 30\n \n \n \n \n 34.215.4.190\n \n \n 169.254.12.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n l9lo.f40_7mQk6G.Xe1tZ3HnYaGrqeis\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.12.214\n 255.255.255.252\n 30\n \n \n \n \n 35.163.123.41\n \n \n 169.254.12.213\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n By_kbJfKdll6PTY4W.pMr7CC0gqeP5U2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.215.4.190",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.123.41",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "4f123753-f797-4aff-83f2-edfdb31b679f",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:52:24 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_23.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_23.json
new file mode 100644
index 00000000000..78223c6e995
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_23.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.142\n 255.255.255.252\n 30\n \n \n \n \n 34.215.4.190\n \n \n 169.254.12.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n l9lo.f40_7mQk6G.Xe1tZ3HnYaGrqeis\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.12.214\n 255.255.255.252\n 30\n \n \n \n \n 35.163.123.41\n \n \n 169.254.12.213\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n By_kbJfKdll6PTY4W.pMr7CC0gqeP5U2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.215.4.190",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.123.41",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "ff8ad5d4-4798-44f2-b89a-100387a1e1bc",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:52:40 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_24.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_24.json
new file mode 100644
index 00000000000..2a98e206985
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_24.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.142\n 255.255.255.252\n 30\n \n \n \n \n 34.215.4.190\n \n \n 169.254.12.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n l9lo.f40_7mQk6G.Xe1tZ3HnYaGrqeis\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.12.214\n 255.255.255.252\n 30\n \n \n \n \n 35.163.123.41\n \n \n 169.254.12.213\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n By_kbJfKdll6PTY4W.pMr7CC0gqeP5U2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.215.4.190",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 41,
+ "minute": 52,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.123.41",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "c69b6d28-6925-4b09-9a23-c58bd23a952d",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:52:56 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_25.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_25.json
new file mode 100644
index 00000000000..069b679c245
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_25.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.142\n 255.255.255.252\n 30\n \n \n \n \n 34.215.4.190\n \n \n 169.254.12.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n l9lo.f40_7mQk6G.Xe1tZ3HnYaGrqeis\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.12.214\n 255.255.255.252\n 30\n \n \n \n \n 35.163.123.41\n \n \n 169.254.12.213\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n By_kbJfKdll6PTY4W.pMr7CC0gqeP5U2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.215.4.190",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 41,
+ "minute": 52,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.123.41",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 36,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "30239673-06bd-4122-8187-834e098e3035",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:53:12 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_26.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_26.json
new file mode 100644
index 00000000000..95f632a8339
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_26.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.142\n 255.255.255.252\n 30\n \n \n \n \n 34.215.4.190\n \n \n 169.254.12.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n l9lo.f40_7mQk6G.Xe1tZ3HnYaGrqeis\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.12.214\n 255.255.255.252\n 30\n \n \n \n \n 35.163.123.41\n \n \n 169.254.12.213\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n By_kbJfKdll6PTY4W.pMr7CC0gqeP5U2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.215.4.190",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 41,
+ "minute": 52,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.123.41",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 14,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "a35493d8-79cf-44ce-a5d9-a322984952bb",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:53:27 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_27.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_27.json
new file mode 100644
index 00000000000..f3e3744186d
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_27.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.142\n 255.255.255.252\n 30\n \n \n \n \n 34.215.4.190\n \n \n 169.254.12.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n l9lo.f40_7mQk6G.Xe1tZ3HnYaGrqeis\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.12.214\n 255.255.255.252\n 30\n \n \n \n \n 35.163.123.41\n \n \n 169.254.12.213\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n By_kbJfKdll6PTY4W.pMr7CC0gqeP5U2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.215.4.190",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 41,
+ "minute": 52,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.123.41",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 14,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "a0d807f4-6947-474e-86bc-f1d978a1e6c6",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:53:27 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_28.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_28.json
new file mode 100644
index 00000000000..0eb348b26b7
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_28.json
@@ -0,0 +1,72 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.142\n 255.255.255.252\n 30\n \n \n \n \n 34.215.4.190\n \n \n 169.254.12.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n l9lo.f40_7mQk6G.Xe1tZ3HnYaGrqeis\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.12.214\n 255.255.255.252\n 30\n \n \n \n \n 35.163.123.41\n \n \n 169.254.12.213\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n By_kbJfKdll6PTY4W.pMr7CC0gqeP5U2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.215.4.190",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 41,
+ "minute": 52,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.123.41",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 14,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "123f065b-f06a-4464-93e9-f0c9224825dc",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6290",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:53:28 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_29.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_29.json
new file mode 100644
index 00000000000..15182c9cab1
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_29.json
@@ -0,0 +1,143 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.142\n 255.255.255.252\n 30\n \n \n \n \n 34.215.4.190\n \n \n 169.254.12.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n l9lo.f40_7mQk6G.Xe1tZ3HnYaGrqeis\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.12.214\n 255.255.255.252\n 30\n \n \n \n \n 35.163.123.41\n \n \n 169.254.12.213\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n By_kbJfKdll6PTY4W.pMr7CC0gqeP5U2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.215.4.190",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 41,
+ "minute": 52,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.163.123.41",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 14,
+ "minute": 53,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "State": "available"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.26\n 255.255.255.252\n 30\n \n \n \n \n 34.214.254.212\n \n \n 169.254.14.25\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n AwW2EGlLGc4apzToCgrKQ2e4RexOSfj8\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.174\n 255.255.255.252\n 30\n \n \n \n \n 52.38.34.113\n \n \n 169.254.14.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5Slu8XDI5h2_TGXkCw_E2wAiRzyz3yIn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.214.254.212",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 1,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.34.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 9,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "State": "available"
+ },
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "c6c78a9a-e004-4766-8ef6-16c52b25475d",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-type": "text/xml;charset=UTF-8",
+ "server": "AmazonEC2",
+ "date": "Mon, 16 Apr 2018 12:53:28 GMT",
+ "transfer-encoding": "chunked"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_3.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_3.json
index 15126a5bca3..fb9619cdcd6 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_3.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_3.json
@@ -1,71 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-dad1cac8",
- "Tags": [
- {
- "Value": "Tag",
- "Key": "Correct"
- }
- ],
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.110\n 255.255.255.252\n 30\n \n \n \n \n 52.26.198.124\n \n \n 169.254.13.109\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 51Mah1x0ibaJnZk0GV7MNijJKBtEPKWL\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.150\n 255.255.255.252\n 30\n \n \n \n \n 52.39.71.179\n \n \n 169.254.15.149\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n lY27_pTs_9cqHl.MhalLgXsclxA4Ei9T\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.26\n 255.255.255.252\n 30\n \n \n \n \n 34.214.254.212\n \n \n 169.254.14.25\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n AwW2EGlLGc4apzToCgrKQ2e4RexOSfj8\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.174\n 255.255.255.252\n 30\n \n \n \n \n 52.38.34.113\n \n \n 169.254.14.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5Slu8XDI5h2_TGXkCw_E2wAiRzyz3yIn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.26.198.124",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.214.254.212",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 24,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 48,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.39.71.179",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.34.113",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 24,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 48,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "cfce2cb4-9475-4ce6-91fe-7bd0a16472a5",
+ "HTTPStatusCode": 200,
+ "RequestId": "2b96bd10-97eb-44b0-9ab9-548b0ddf03b9",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:25 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:28 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_30.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_30.json
new file mode 100644
index 00000000000..4dd608bc648
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_30.json
@@ -0,0 +1,36 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "1b613de0-c6e1-48d3-9c9d-b94de070ccda",
+ "HTTPHeaders": {
+ "content-length": "873",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:53:29 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_31.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_31.json
new file mode 100644
index 00000000000..6e537944b51
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_31.json
@@ -0,0 +1,36 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "0e36b69f-39b7-40ac-8273-8003211fc5f5",
+ "HTTPHeaders": {
+ "content-length": "873",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:53:29 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_4.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_4.json
index 6aba7111747..4a13f61e8c3 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_4.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_4.json
@@ -1,41 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d7d1cac5",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.26\n 255.255.255.252\n 30\n \n \n \n \n 34.214.254.212\n \n \n 169.254.14.25\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n AwW2EGlLGc4apzToCgrKQ2e4RexOSfj8\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.174\n 255.255.255.252\n 30\n \n \n \n \n 52.38.34.113\n \n \n 169.254.14.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5Slu8XDI5h2_TGXkCw_E2wAiRzyz3yIn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d5d1cac7",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.214.254.212",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 48,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.34.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 48,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "312ddaf3-437c-4a61-973b-1c9eca412cb0",
+ "HTTPStatusCode": 200,
+ "RequestId": "ace0b6a9-e76f-4198-a077-1e2dffbc6c2e",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:25 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:43 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_5.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_5.json
index e9b23e2bc6a..3695e62250f 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_5.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_5.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-dbd1cac9",
- "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.146\n 255.255.255.252\n 30\n \n \n \n \n 34.210.151.74\n \n \n 169.254.12.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 1nmmvzBlufrj_vueJvPiIBTUJWI.UAuL\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.14.142\n 255.255.255.252\n 30\n \n \n \n \n 52.41.102.69\n \n \n 169.254.14.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n CQtqQDcVcNan0gWNfv4LLANSVZwq6Zv2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.26\n 255.255.255.252\n 30\n \n \n \n \n 34.214.254.212\n \n \n 169.254.14.25\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n AwW2EGlLGc4apzToCgrKQ2e4RexOSfj8\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.174\n 255.255.255.252\n 30\n \n \n \n \n 52.38.34.113\n \n \n 169.254.14.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5Slu8XDI5h2_TGXkCw_E2wAiRzyz3yIn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "34.210.151.74",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.214.254.212",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 26,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 48,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.41.102.69",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.34.113",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 26,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 48,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "bf8580db-3ddd-4c80-b7eb-ec0cef43527e",
+ "HTTPStatusCode": 200,
+ "RequestId": "434a478c-99ab-4da1-9446-0190d615553f",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:26 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:48:59 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_6.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_6.json
index 64b71880430..337959a7984 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_6.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_6.json
@@ -1,71 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-dbd1cac9",
- "Tags": [
- {
- "Value": "Tag",
- "Key": "Correct"
- }
- ],
- "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.146\n 255.255.255.252\n 30\n \n \n \n \n 34.210.151.74\n \n \n 169.254.12.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 1nmmvzBlufrj_vueJvPiIBTUJWI.UAuL\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.14.142\n 255.255.255.252\n 30\n \n \n \n \n 52.41.102.69\n \n \n 169.254.14.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n CQtqQDcVcNan0gWNfv4LLANSVZwq6Zv2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.26\n 255.255.255.252\n 30\n \n \n \n \n 34.214.254.212\n \n \n 169.254.14.25\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n AwW2EGlLGc4apzToCgrKQ2e4RexOSfj8\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.174\n 255.255.255.252\n 30\n \n \n \n \n 52.38.34.113\n \n \n 169.254.14.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5Slu8XDI5h2_TGXkCw_E2wAiRzyz3yIn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "34.210.151.74",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.214.254.212",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 26,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 48,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.41.102.69",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.34.113",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 26,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 48,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "4e60c4cf-950c-458b-8a5e-083744e09a91",
+ "HTTPStatusCode": 200,
+ "RequestId": "406c570c-4ca9-4657-aab6-c3aec6943a24",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:29 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:49:15 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_7.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_7.json
index 7abb9ae5bfa..171cce65798 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_7.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_7.json
@@ -1,123 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-dad1cac8",
- "Tags": [
- {
- "Value": "Tag",
- "Key": "Correct"
- }
- ],
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.110\n 255.255.255.252\n 30\n \n \n \n \n 52.26.198.124\n \n \n 169.254.13.109\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 51Mah1x0ibaJnZk0GV7MNijJKBtEPKWL\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.150\n 255.255.255.252\n 30\n \n \n \n \n 52.39.71.179\n \n \n 169.254.15.149\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n lY27_pTs_9cqHl.MhalLgXsclxA4Ei9T\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "VgwTelemetry": [
- {
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.26.198.124",
- "LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 24,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
- {
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.39.71.179",
- "LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 24,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- }
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.26\n 255.255.255.252\n 30\n \n \n \n \n 34.214.254.212\n \n \n 169.254.14.25\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n AwW2EGlLGc4apzToCgrKQ2e4RexOSfj8\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.174\n 255.255.255.252\n 30\n \n \n \n \n 52.38.34.113\n \n \n 169.254.14.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5Slu8XDI5h2_TGXkCw_E2wAiRzyz3yIn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-dbd1cac9",
- "Tags": [
- {
- "Value": "Tag",
- "Key": "Correct"
- }
- ],
- "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.146\n 255.255.255.252\n 30\n \n \n \n \n 34.210.151.74\n \n \n 169.254.12.145\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 1nmmvzBlufrj_vueJvPiIBTUJWI.UAuL\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.14.142\n 255.255.255.252\n 30\n \n \n \n \n 52.41.102.69\n \n \n 169.254.14.141\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n CQtqQDcVcNan0gWNfv4LLANSVZwq6Zv2\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "34.210.151.74",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.214.254.212",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 26,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 48,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.41.102.69",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.34.113",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 26,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 48,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "01fb2a9f-d22f-4971-bd27-6064474945b7",
+ "HTTPStatusCode": 200,
+ "RequestId": "bc262f2c-187c-45ff-bd0e-b8287760d26e",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:30 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:49:31 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_8.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_8.json
new file mode 100644
index 00000000000..9b63c6f5f0c
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_8.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.26\n 255.255.255.252\n 30\n \n \n \n \n 34.214.254.212\n \n \n 169.254.14.25\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n AwW2EGlLGc4apzToCgrKQ2e4RexOSfj8\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.174\n 255.255.255.252\n 30\n \n \n \n \n 52.38.34.113\n \n \n 169.254.14.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5Slu8XDI5h2_TGXkCw_E2wAiRzyz3yIn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.214.254.212",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 48,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.34.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 48,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "99bc2889-52c9-4933-ba37-9fc2524a6ec1",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:49:47 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_9.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_9.json
new file mode 100644
index 00000000000..a6472849102
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_insufficient_filters/ec2.DescribeVpnConnections_9.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.26\n 255.255.255.252\n 30\n \n \n \n \n 34.214.254.212\n \n \n 169.254.14.25\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n AwW2EGlLGc4apzToCgrKQ2e4RexOSfj8\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.174\n 255.255.255.252\n 30\n \n \n \n \n 52.38.34.113\n \n \n 169.254.14.173\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5Slu8XDI5h2_TGXkCw_E2wAiRzyz3yIn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "34.214.254.212",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 1,
+ "minute": 50,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.38.34.113",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 48,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "26fd3e6c-8c41-4e3b-8bda-47ee9b1ef167",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:50:02 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_nonexistent/ec2.DescribeVpnConnections_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_nonexistent/ec2.DescribeVpnConnections_1.json
index 9e4a335ae94..288d2313bc4 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_nonexistent/ec2.DescribeVpnConnections_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_nonexistent/ec2.DescribeVpnConnections_1.json
@@ -1,18 +1,73 @@
{
- "status_code": 200,
"data": {
- "VpnConnections": [],
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9606e283",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-9506e280",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "deleted"
+ }
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "9771e3f2-7127-4a53-8c9d-38836325ec98",
+ "HTTPStatusCode": 200,
+ "RequestId": "79832782-f6e3-483a-b848-306c43731940",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:31 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "2087",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:53:30 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.CreateVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.CreateVpnConnection_1.json
index 7ea9e570951..90b1f2dd202 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.CreateVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.CreateVpnConnection_1.json
@@ -1,28 +1,29 @@
{
- "status_code": 200,
"data": {
"VpnConnection": {
- "VpnConnectionId": "vpn-d6d1cac4",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.154\n 255.255.255.252\n 30\n \n \n \n \n 35.167.147.42\n \n \n 169.254.12.153\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n aX9p2u82Bs2pibGbe9zba5yNMvyrNzLs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.101.242\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n Be4ZkSyc82x446zI4.Bw2VS1aAGjCTkh\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
+ "CustomerGatewayId": "cgw-6113c87f",
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "VpnConnectionId": "vpn-6f06e27a",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ },
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "6525291e-6e01-4ce8-af1a-95aeaa58c4ba",
+ "HTTPStatusCode": 200,
+ "RequestId": "ef16cc59-db82-49e8-b39f-5ed5035a6fba",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:21:58 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5236",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:37:13 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.CreateVpnConnection_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.CreateVpnConnection_2.json
index 41445caeed8..dbb692fb60b 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.CreateVpnConnection_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.CreateVpnConnection_2.json
@@ -1,28 +1,29 @@
{
- "status_code": 200,
"data": {
"VpnConnection": {
- "VpnConnectionId": "vpn-d7d1cac5",
- "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.14.238\n 255.255.255.252\n 30\n \n \n \n \n 35.167.61.147\n \n \n 169.254.14.237\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n Ugp4SR29pwnm61Cph1uqcPFQ_VK__AEg\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.94\n 255.255.255.252\n 30\n \n \n \n \n 54.71.100.208\n \n \n 169.254.15.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n s9AlLUdC1zCXkUgamTAiRk5lcpdIg9y5\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "State": "pending",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
+ "CustomerGatewayId": "cgw-9e13c880",
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.78\n 255.255.255.252\n 30\n \n \n \n \n 52.40.19.84\n \n \n 169.254.12.77\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n uckHBwcFkdkno4gf5nZHDLCNIM7WXFaW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.46\n 255.255.255.252\n 30\n \n \n \n \n 54.149.194.122\n \n \n 169.254.15.45\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hyFjiPPXAKg6WDjLQkfT7be6lPSK1.TE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "VpnConnectionId": "vpn-6906e27c",
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ },
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "e9506512-d780-4bb7-ac6f-6e28d14694a9",
+ "HTTPStatusCode": 200,
+ "RequestId": "7311c482-6425-4bf5-b764-06652c9ea4b8",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:00 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5232",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:40:37 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DeleteVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DeleteVpnConnection_1.json
index 0dd6b47dfdc..7d346168ad3 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DeleteVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DeleteVpnConnection_1.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "990ab5ce-57da-4e15-bd7c-83e17aeb306e",
+ "HTTPStatusCode": 200,
+ "RequestId": "73286a1c-f428-4617-9b23-b0af8e8e2657",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:03 GMT"
- }
+ "content-length": "239",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:43:00 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DeleteVpnConnection_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DeleteVpnConnection_2.json
index e41a6b4174f..cde1d023770 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DeleteVpnConnection_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DeleteVpnConnection_2.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "ff6789cc-0a68-4f2f-ac37-6f3ec9c3b91c",
+ "HTTPStatusCode": 200,
+ "RequestId": "6ff1e7ac-f41b-45f8-a925-99f12f15df72",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:03 GMT"
- }
+ "content-length": "239",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:43:00 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_1.json
index 11d86b7d2e5..079fe193fc1 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_1.json
@@ -1,18 +1,17 @@
{
- "status_code": 200,
"data": {
- "VpnConnections": [],
+ "VpnConnections": [],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "156ff25d-5297-4e60-b7f1-ef588e3fb5b7",
+ "HTTPStatusCode": 200,
+ "RequestId": "784ab580-8495-4cff-b8a9-a70474686d99",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:21:57 GMT"
- }
+ "content-length": "243",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:37:13 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_10.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_10.json
new file mode 100644
index 00000000000..5a14e8385b3
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_10.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 39,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "45a3a55f-4577-4292-9c88-6b20c8968bdb",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:39:18 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_11.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_11.json
new file mode 100644
index 00000000000..d70a4c405e4
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_11.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 39,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "dea0cb15-a87a-4340-836d-6cd460b2243e",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:39:33 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_12.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_12.json
new file mode 100644
index 00000000000..731805d6b95
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_12.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 39,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "c9f63be4-079d-4dcd-adb8-ab18f8787a9c",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:39:48 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_13.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_13.json
new file mode 100644
index 00000000000..b7406b64cb7
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_13.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 39,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "75e6bdc7-dab7-428c-900b-f8566fcdd8b4",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:40:04 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_14.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_14.json
new file mode 100644
index 00000000000..a5f05224ef3
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_14.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 39,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "02cad910-6d43-4d55-a031-4055a30bf411",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:40:20 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_15.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_15.json
new file mode 100644
index 00000000000..f663512223e
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_15.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 25,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 39,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "18e05aff-5c66-4e73-97bd-a63061019ed2",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6124",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:40:36 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_16.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_16.json
new file mode 100644
index 00000000000..53623b87b39
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_16.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 25,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 39,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "6df83c0e-40bd-41ed-8149-960375e0b0cf",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6124",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:40:36 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_17.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_17.json
new file mode 100644
index 00000000000..62f01fc341b
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_17.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 25,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 39,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "a6f596eb-c6a8-4e31-8e1a-bc1ae80443c5",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6124",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:40:36 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_18.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_18.json
new file mode 100644
index 00000000000..2336ab51cb7
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_18.json
@@ -0,0 +1,17 @@
+{
+ "data": {
+ "VpnConnections": [],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "dde896f2-98ea-45d2-8208-b71b46a88cd7",
+ "HTTPHeaders": {
+ "content-length": "243",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:40:37 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_19.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_19.json
new file mode 100644
index 00000000000..3741da6497e
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_19.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-6906e27c",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.78\n 255.255.255.252\n 30\n \n \n \n \n 52.40.19.84\n \n \n 169.254.12.77\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n uckHBwcFkdkno4gf5nZHDLCNIM7WXFaW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.46\n 255.255.255.252\n 30\n \n \n \n \n 54.149.194.122\n \n \n 169.254.15.45\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hyFjiPPXAKg6WDjLQkfT7be6lPSK1.TE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.19.84",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.149.194.122",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "22bd50ce-bac1-4b63-bef5-d91e10a27cb6",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:40:38 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_2.json
index cbd71827a99..7552a17aae8 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_2.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.154\n 255.255.255.252\n 30\n \n \n \n \n 35.167.147.42\n \n \n 169.254.12.153\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n aX9p2u82Bs2pibGbe9zba5yNMvyrNzLs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.101.242\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n Be4ZkSyc82x446zI4.Bw2VS1aAGjCTkh\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.167.147.42",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 58,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 21
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.11.101.242",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 58,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 21
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "963457ae-af51-4a4d-818f-4b50a034182b",
+ "HTTPStatusCode": 200,
+ "RequestId": "acad86c4-655b-488f-a552-f04c60502dcb",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:21:58 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:37:13 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_20.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_20.json
new file mode 100644
index 00000000000..448959205db
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_20.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-6906e27c",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.78\n 255.255.255.252\n 30\n \n \n \n \n 52.40.19.84\n \n \n 169.254.12.77\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n uckHBwcFkdkno4gf5nZHDLCNIM7WXFaW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.46\n 255.255.255.252\n 30\n \n \n \n \n 54.149.194.122\n \n \n 169.254.15.45\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hyFjiPPXAKg6WDjLQkfT7be6lPSK1.TE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.19.84",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.149.194.122",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "4df8324c-5d9f-436e-b9c8-31d123170bcd",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:40:53 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_21.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_21.json
new file mode 100644
index 00000000000..fcfe29941d3
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_21.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-6906e27c",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.78\n 255.255.255.252\n 30\n \n \n \n \n 52.40.19.84\n \n \n 169.254.12.77\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n uckHBwcFkdkno4gf5nZHDLCNIM7WXFaW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.46\n 255.255.255.252\n 30\n \n \n \n \n 54.149.194.122\n \n \n 169.254.15.45\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hyFjiPPXAKg6WDjLQkfT7be6lPSK1.TE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.19.84",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.149.194.122",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "b2fddbbe-070c-40c4-b3ff-31b4ab039a93",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:41:09 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_22.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_22.json
new file mode 100644
index 00000000000..819d4fb183c
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_22.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-6906e27c",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.78\n 255.255.255.252\n 30\n \n \n \n \n 52.40.19.84\n \n \n 169.254.12.77\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n uckHBwcFkdkno4gf5nZHDLCNIM7WXFaW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.46\n 255.255.255.252\n 30\n \n \n \n \n 54.149.194.122\n \n \n 169.254.15.45\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hyFjiPPXAKg6WDjLQkfT7be6lPSK1.TE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.19.84",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.149.194.122",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "e4575384-f0ae-4ddb-a6f0-60bf09ae3431",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:41:24 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_23.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_23.json
new file mode 100644
index 00000000000..f7b5de10de3
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_23.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-6906e27c",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.78\n 255.255.255.252\n 30\n \n \n \n \n 52.40.19.84\n \n \n 169.254.12.77\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n uckHBwcFkdkno4gf5nZHDLCNIM7WXFaW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.46\n 255.255.255.252\n 30\n \n \n \n \n 54.149.194.122\n \n \n 169.254.15.45\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hyFjiPPXAKg6WDjLQkfT7be6lPSK1.TE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.19.84",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.149.194.122",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "3c2df2d8-21ff-435b-a25e-309708e5d728",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:41:40 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_24.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_24.json
new file mode 100644
index 00000000000..d2b789983e0
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_24.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-6906e27c",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.78\n 255.255.255.252\n 30\n \n \n \n \n 52.40.19.84\n \n \n 169.254.12.77\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n uckHBwcFkdkno4gf5nZHDLCNIM7WXFaW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.46\n 255.255.255.252\n 30\n \n \n \n \n 54.149.194.122\n \n \n 169.254.15.45\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hyFjiPPXAKg6WDjLQkfT7be6lPSK1.TE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.19.84",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.149.194.122",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "47bedfce-6c4f-40e5-8d3c-2f7618670665",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:41:55 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_25.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_25.json
new file mode 100644
index 00000000000..bf69c4d5798
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_25.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-6906e27c",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.78\n 255.255.255.252\n 30\n \n \n \n \n 52.40.19.84\n \n \n 169.254.12.77\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n uckHBwcFkdkno4gf5nZHDLCNIM7WXFaW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.46\n 255.255.255.252\n 30\n \n \n \n \n 54.149.194.122\n \n \n 169.254.15.45\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hyFjiPPXAKg6WDjLQkfT7be6lPSK1.TE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.19.84",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.149.194.122",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "25fb78ea-cc25-427c-a1bb-c9bc06a0fcf0",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:42:11 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_26.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_26.json
new file mode 100644
index 00000000000..005ca53be1a
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_26.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-6906e27c",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.78\n 255.255.255.252\n 30\n \n \n \n \n 52.40.19.84\n \n \n 169.254.12.77\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n uckHBwcFkdkno4gf5nZHDLCNIM7WXFaW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.46\n 255.255.255.252\n 30\n \n \n \n \n 54.149.194.122\n \n \n 169.254.15.45\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hyFjiPPXAKg6WDjLQkfT7be6lPSK1.TE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.19.84",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.149.194.122",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "dfd25f0b-3331-46b0-9594-739e54b3633b",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:42:27 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_27.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_27.json
new file mode 100644
index 00000000000..a8dc687f131
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_27.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-6906e27c",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.78\n 255.255.255.252\n 30\n \n \n \n \n 52.40.19.84\n \n \n 169.254.12.77\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n uckHBwcFkdkno4gf5nZHDLCNIM7WXFaW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.46\n 255.255.255.252\n 30\n \n \n \n \n 54.149.194.122\n \n \n 169.254.15.45\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hyFjiPPXAKg6WDjLQkfT7be6lPSK1.TE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.19.84",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 31,
+ "minute": 42,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.149.194.122",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 37,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "e0ce84a4-b7fa-4c51-89c5-f689f5ab05e7",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6116",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:42:42 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_28.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_28.json
new file mode 100644
index 00000000000..207caacdcff
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_28.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-6906e27c",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.78\n 255.255.255.252\n 30\n \n \n \n \n 52.40.19.84\n \n \n 169.254.12.77\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n uckHBwcFkdkno4gf5nZHDLCNIM7WXFaW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.46\n 255.255.255.252\n 30\n \n \n \n \n 54.149.194.122\n \n \n 169.254.15.45\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hyFjiPPXAKg6WDjLQkfT7be6lPSK1.TE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.19.84",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 31,
+ "minute": 42,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.149.194.122",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 46,
+ "minute": 42,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "fbb5d0bf-db4a-4865-b74a-15c9d5dc9acb",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:42:58 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_29.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_29.json
new file mode 100644
index 00000000000..397ea49ca36
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_29.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-6906e27c",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.78\n 255.255.255.252\n 30\n \n \n \n \n 52.40.19.84\n \n \n 169.254.12.77\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n uckHBwcFkdkno4gf5nZHDLCNIM7WXFaW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.46\n 255.255.255.252\n 30\n \n \n \n \n 54.149.194.122\n \n \n 169.254.15.45\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hyFjiPPXAKg6WDjLQkfT7be6lPSK1.TE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.19.84",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 31,
+ "minute": 42,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.149.194.122",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 46,
+ "minute": 42,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "06310935-6410-44da-ab8a-0a3a77b2ed02",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:42:59 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_3.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_3.json
index 27a552e4d6a..6c2a473a761 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_3.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_3.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.154\n 255.255.255.252\n 30\n \n \n \n \n 35.167.147.42\n \n \n 169.254.12.153\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n aX9p2u82Bs2pibGbe9zba5yNMvyrNzLs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.101.242\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n Be4ZkSyc82x446zI4.Bw2VS1aAGjCTkh\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.167.147.42",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 58,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 21
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.11.101.242",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 58,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 21
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "05d64b71-f28d-48de-b433-a73525b413aa",
+ "HTTPStatusCode": 200,
+ "RequestId": "bc0abc0d-3217-4a9c-91b7-4cf7d1612270",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:21:59 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:37:29 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_30.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_30.json
new file mode 100644
index 00000000000..86a37a4779e
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_30.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-6906e27c",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.12.78\n 255.255.255.252\n 30\n \n \n \n \n 52.40.19.84\n \n \n 169.254.12.77\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n uckHBwcFkdkno4gf5nZHDLCNIM7WXFaW\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.46\n 255.255.255.252\n 30\n \n \n \n \n 54.149.194.122\n \n \n 169.254.15.45\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hyFjiPPXAKg6WDjLQkfT7be6lPSK1.TE\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.40.19.84",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 31,
+ "minute": 42,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "54.149.194.122",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 46,
+ "minute": 42,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "5ce492e4-a36b-4148-9db4-1cd1390f4d94",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:42:59 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_31.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_31.json
new file mode 100644
index 00000000000..c5d67fffc90
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_31.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 25,
+ "minute": 40,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 39,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "fab3e62a-b821-40cc-ac9d-3b589ddd7be9",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6124",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:43:00 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_32.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_32.json
new file mode 100644
index 00000000000..66db65f6bf7
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_32.json
@@ -0,0 +1,30 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "c45356e9-b255-4886-bdeb-a200225b3066",
+ "HTTPHeaders": {
+ "content-length": "705",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:43:00 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_33.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_33.json
new file mode 100644
index 00000000000..0abc8171746
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_33.json
@@ -0,0 +1,30 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-9e13c880",
+ "VpnConnectionId": "vpn-6906e27c",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-32d70c2c",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "39d1181a-5c5b-4d7e-97cd-dcd5b83bc0b3",
+ "HTTPHeaders": {
+ "content-length": "705",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:43:00 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_4.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_4.json
index 4a8b2e9f558..2c4135812dd 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_4.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_4.json
@@ -1,18 +1,66 @@
{
- "status_code": 200,
"data": {
- "VpnConnections": [],
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "42dd58a6-a3c8-4630-9ee2-c2c831774bc7",
+ "HTTPStatusCode": 200,
+ "RequestId": "ed7c7fbb-b31b-4244-b588-e90821e65bff",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:21:59 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:37:45 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_5.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_5.json
index c4e48b30a43..6434571b265 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_5.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_5.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d7d1cac5",
- "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.14.238\n 255.255.255.252\n 30\n \n \n \n \n 35.167.61.147\n \n \n 169.254.14.237\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n Ugp4SR29pwnm61Cph1uqcPFQ_VK__AEg\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.94\n 255.255.255.252\n 30\n \n \n \n \n 54.71.100.208\n \n \n 169.254.15.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n s9AlLUdC1zCXkUgamTAiRk5lcpdIg9y5\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.167.61.147",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 0,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "54.71.100.208",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 0,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "9586d887-1653-4116-bc91-38fbb53f5bd8",
+ "HTTPStatusCode": 200,
+ "RequestId": "096fa68d-3ed3-4483-b323-4b03cc2c1ebd",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:01 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:37:59 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_6.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_6.json
index 3b073365860..5e30b888c19 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_6.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_6.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d7d1cac5",
- "CustomerGatewayConfiguration": "\n\n cgw-9e13c880\n vgw-32d70c2c\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 5.4.3.2\n \n \n 169.254.14.238\n 255.255.255.252\n 30\n \n \n \n \n 35.167.61.147\n \n \n 169.254.14.237\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n Ugp4SR29pwnm61Cph1uqcPFQ_VK__AEg\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 5.4.3.2\n \n \n 169.254.15.94\n 255.255.255.252\n 30\n \n \n \n \n 54.71.100.208\n \n \n 169.254.15.93\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n s9AlLUdC1zCXkUgamTAiRk5lcpdIg9y5\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.167.61.147",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 0,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "54.71.100.208",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 0,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-32d70c2c",
- "CustomerGatewayId": "cgw-9e13c880",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "01747a02-2849-4c94-951e-63126a1de23a",
+ "HTTPStatusCode": 200,
+ "RequestId": "e18b7cde-2baa-466e-a5ac-ac5cd94db089",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:02 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:38:15 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_7.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_7.json
index ac499b78a2f..c84d4c084d3 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_7.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_7.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.154\n 255.255.255.252\n 30\n \n \n \n \n 35.167.147.42\n \n \n 169.254.12.153\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n aX9p2u82Bs2pibGbe9zba5yNMvyrNzLs\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.38\n 255.255.255.252\n 30\n \n \n \n \n 52.11.101.242\n \n \n 169.254.13.37\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n Be4ZkSyc82x446zI4.Bw2VS1aAGjCTkh\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.167.147.42",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 58,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 21
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "52.11.101.242",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 58,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 21
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "520d6c88-f5c4-4cad-b8b1-9190517aa318",
+ "HTTPStatusCode": 200,
+ "RequestId": "5845f7f3-a0ea-4948-b3ee-d9ee3fc0f303",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:03 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:38:30 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_8.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_8.json
new file mode 100644
index 00000000000..3b729eccb5d
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_8.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "4a29bfaa-c800-4ed7-858c-9ea4fc8de167",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:38:47 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_9.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_9.json
new file mode 100644
index 00000000000..87dd4df8e48
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/find_connection_vpc_conn_id/ec2.DescribeVpnConnections_9.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.34\n 255.255.255.252\n 30\n \n \n \n \n 35.161.239.138\n \n \n 169.254.14.33\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n XGAHy.QMOtIujnLKHvwNdGivflNQGbxc\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.12.230\n 255.255.255.252\n 30\n \n \n \n \n 52.26.108.105\n \n \n 169.254.12.229\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n hk9hgD21aBIIJSz4809scBxMT3dsX_0h\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.161.239.138",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.108.105",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 13,
+ "minute": 37,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "8c873704-b869-4dc2-890d-ebc7d62d7963",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:39:02 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.CreateVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.CreateVpnConnection_1.json
index 22e38567f01..1262491d43b 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.CreateVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.CreateVpnConnection_1.json
@@ -1,28 +1,29 @@
{
- "status_code": 200,
"data": {
"VpnConnection": {
- "VpnConnectionId": "vpn-ded1cacc",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.222\n 255.255.255.252\n 30\n \n \n \n \n 35.163.70.159\n \n \n 169.254.12.221\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n q0QiYHyByq4qZDcghFdPV.t4bLDpYgkX\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.170\n 255.255.255.252\n 30\n \n \n \n \n 54.69.128.94\n \n \n 169.254.13.169\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5EvTuoMPkkW3LJuPcZZ0y7jqTlOpz6r.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
+ "CustomerGatewayId": "cgw-6113c87f",
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 52.26.213.112\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n PyWmFHtlfQSgohtXYC1MXVSE9i80QMOK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.226\n 255.255.255.252\n 30\n \n \n \n \n 52.36.80.33\n \n \n 169.254.14.225\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n K_tnJM.Z5LxS.Y6vpeXIaCLdetEZik__\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "VpnConnectionId": "vpn-9206e287",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ },
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "b9478b55-7b46-43c6-b490-97044a554e58",
+ "HTTPStatusCode": 200,
+ "RequestId": "686913e8-485a-4de0-880d-60a0c2444f65",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:48 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5235",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:59:28 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DeleteVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DeleteVpnConnection_1.json
index b69f55d43b1..2f8b7802e67 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DeleteVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DeleteVpnConnection_1.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "0c03aa63-a3f8-4112-8d78-a2449d5d86b0",
+ "HTTPStatusCode": 200,
+ "RequestId": "ba0807f4-446e-471b-ad25-dc627d0917ff",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:51 GMT"
- }
+ "content-length": "239",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:01:49 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_1.json
index 17d3494ef5a..3fe09832d7f 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_1.json
@@ -1,74 +1,91 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d4d1cac6",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dad1cac8",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d8d1caca",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d9d1cacb",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "50884462-74be-47ce-b807-c3dc95627d56",
+ "HTTPStatusCode": 200,
+ "RequestId": "e85e108f-c5c6-4627-a409-ae5e57519e68",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:48 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "2795",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:59:28 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_10.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_10.json
new file mode 100644
index 00000000000..5726948840b
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_10.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 52.26.213.112\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n PyWmFHtlfQSgohtXYC1MXVSE9i80QMOK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.226\n 255.255.255.252\n 30\n \n \n \n \n 52.36.80.33\n \n \n 169.254.14.225\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n K_tnJM.Z5LxS.Y6vpeXIaCLdetEZik__\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.213.112",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.36.80.33",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 32,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "fe0912ad-2a87-4f24-a2e9-ecce88edd3a6",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:01:33 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_11.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_11.json
new file mode 100644
index 00000000000..c1593d62e4b
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_11.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 52.26.213.112\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n PyWmFHtlfQSgohtXYC1MXVSE9i80QMOK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.226\n 255.255.255.252\n 30\n \n \n \n \n 52.36.80.33\n \n \n 169.254.14.225\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n K_tnJM.Z5LxS.Y6vpeXIaCLdetEZik__\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.213.112",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.36.80.33",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 32,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "3d9c0acf-a5e7-41cf-a929-17a804c23cf1",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:01:49 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_12.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_12.json
new file mode 100644
index 00000000000..f1d5f5b426f
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_12.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 52.26.213.112\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n PyWmFHtlfQSgohtXYC1MXVSE9i80QMOK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.226\n 255.255.255.252\n 30\n \n \n \n \n 52.36.80.33\n \n \n 169.254.14.225\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n K_tnJM.Z5LxS.Y6vpeXIaCLdetEZik__\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.213.112",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.36.80.33",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 32,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "c59001df-f7a6-413d-8ba2-a3a3e1f3a08c",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:01:49 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_13.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_13.json
new file mode 100644
index 00000000000..686dfef8424
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_13.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 52.26.213.112\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n PyWmFHtlfQSgohtXYC1MXVSE9i80QMOK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.226\n 255.255.255.252\n 30\n \n \n \n \n 52.36.80.33\n \n \n 169.254.14.225\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n K_tnJM.Z5LxS.Y6vpeXIaCLdetEZik__\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.213.112",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.36.80.33",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 32,
+ "minute": 1,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "f9a5a6a9-a952-4183-8600-f0d709ca5902",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:01:49 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_14.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_14.json
new file mode 100644
index 00000000000..5a65e1dcb4d
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_14.json
@@ -0,0 +1,30 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "ad7f2a01-f5a2-41cb-b572-e55cfff6f0fd",
+ "HTTPHeaders": {
+ "content-length": "705",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:01:50 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_15.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_15.json
new file mode 100644
index 00000000000..b2bbc32a63b
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_15.json
@@ -0,0 +1,30 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "ffd0c558-1fb0-4e47-8a78-ad93241a8909",
+ "HTTPHeaders": {
+ "content-length": "705",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:01:50 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_2.json
index 89d003185a6..4ce279f36de 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_2.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-ded1cacc",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.222\n 255.255.255.252\n 30\n \n \n \n \n 35.163.70.159\n \n \n 169.254.12.221\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n q0QiYHyByq4qZDcghFdPV.t4bLDpYgkX\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.170\n 255.255.255.252\n 30\n \n \n \n \n 54.69.128.94\n \n \n 169.254.13.169\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5EvTuoMPkkW3LJuPcZZ0y7jqTlOpz6r.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 52.26.213.112\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n PyWmFHtlfQSgohtXYC1MXVSE9i80QMOK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.226\n 255.255.255.252\n 30\n \n \n \n \n 52.36.80.33\n \n \n 169.254.14.225\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n K_tnJM.Z5LxS.Y6vpeXIaCLdetEZik__\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.163.70.159",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.213.112",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 49,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 28,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "54.69.128.94",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.36.80.33",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 49,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 28,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "a88f4e98-f186-484e-b24e-bf3c8bf87fd3",
+ "HTTPStatusCode": 200,
+ "RequestId": "aefdae0c-715c-468d-b209-df744593d702",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:49 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:59:28 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_3.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_3.json
index 848102a4561..a2d6c448ba0 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_3.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_3.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-ded1cacc",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.222\n 255.255.255.252\n 30\n \n \n \n \n 35.163.70.159\n \n \n 169.254.12.221\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n q0QiYHyByq4qZDcghFdPV.t4bLDpYgkX\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.13.170\n 255.255.255.252\n 30\n \n \n \n \n 54.69.128.94\n \n \n 169.254.13.169\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n 5EvTuoMPkkW3LJuPcZZ0y7jqTlOpz6r.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 52.26.213.112\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n PyWmFHtlfQSgohtXYC1MXVSE9i80QMOK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.226\n 255.255.255.252\n 30\n \n \n \n \n 52.36.80.33\n \n \n 169.254.14.225\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n K_tnJM.Z5LxS.Y6vpeXIaCLdetEZik__\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.163.70.159",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.213.112",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 49,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 12,
+ "second": 28,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "54.69.128.94",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.36.80.33",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 49,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 22
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 12,
+ "second": 28,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "583422b3-6730-48e9-8529-4d73d3ac245d",
+ "HTTPStatusCode": 200,
+ "RequestId": "5e7d2b85-1951-4fa5-8003-dcae818ab111",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:50 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:59:44 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_4.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_4.json
index fa73b0ba7a7..9075e75e642 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_4.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_4.json
@@ -1,30 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-ded1cacc",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 52.26.213.112\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n PyWmFHtlfQSgohtXYC1MXVSE9i80QMOK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.226\n 255.255.255.252\n 30\n \n \n \n \n 52.36.80.33\n \n \n 169.254.14.225\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n K_tnJM.Z5LxS.Y6vpeXIaCLdetEZik__\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.213.112",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 28,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.36.80.33",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 28,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "61a042a1-25d7-4c7d-bb05-f4bb25edee1e",
+ "HTTPStatusCode": 200,
+ "RequestId": "648be063-6a5d-4871-8ccf-047275662818",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:22:51 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 12:59:59 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_5.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_5.json
new file mode 100644
index 00000000000..ba6c47c51ac
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_5.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 52.26.213.112\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n PyWmFHtlfQSgohtXYC1MXVSE9i80QMOK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.226\n 255.255.255.252\n 30\n \n \n \n \n 52.36.80.33\n \n \n 169.254.14.225\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n K_tnJM.Z5LxS.Y6vpeXIaCLdetEZik__\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.213.112",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 28,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.36.80.33",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 28,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "e5f1a740-ef05-454b-a8ce-26c6c96d6822",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:00:15 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_6.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_6.json
new file mode 100644
index 00000000000..089a0a16973
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_6.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 52.26.213.112\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n PyWmFHtlfQSgohtXYC1MXVSE9i80QMOK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.226\n 255.255.255.252\n 30\n \n \n \n \n 52.36.80.33\n \n \n 169.254.14.225\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n K_tnJM.Z5LxS.Y6vpeXIaCLdetEZik__\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.213.112",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 28,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.36.80.33",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 28,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "240aa4a8-495f-4e22-973a-d1b8ca85a7b7",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:00:30 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_7.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_7.json
new file mode 100644
index 00000000000..a93c555c8b2
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_7.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 52.26.213.112\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n PyWmFHtlfQSgohtXYC1MXVSE9i80QMOK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.226\n 255.255.255.252\n 30\n \n \n \n \n 52.36.80.33\n \n \n 169.254.14.225\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n K_tnJM.Z5LxS.Y6vpeXIaCLdetEZik__\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.213.112",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 28,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.36.80.33",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 28,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "71e9943b-886d-442f-bd0d-eb50d92522e2",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:00:46 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_8.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_8.json
new file mode 100644
index 00000000000..ca810951ba1
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_8.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 52.26.213.112\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n PyWmFHtlfQSgohtXYC1MXVSE9i80QMOK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.226\n 255.255.255.252\n 30\n \n \n \n \n 52.36.80.33\n \n \n 169.254.14.225\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n K_tnJM.Z5LxS.Y6vpeXIaCLdetEZik__\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.213.112",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 28,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.36.80.33",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 28,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "518172bc-6355-4988-8a92-14c589fbfc6f",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:01:02 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_9.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_9.json
new file mode 100644
index 00000000000..2af22bb65b8
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/modify_deleted_connection/ec2.DescribeVpnConnections_9.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.13.206\n 255.255.255.252\n 30\n \n \n \n \n 52.26.213.112\n \n \n 169.254.13.205\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n PyWmFHtlfQSgohtXYC1MXVSE9i80QMOK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.226\n 255.255.255.252\n 30\n \n \n \n \n 52.36.80.33\n \n \n 169.254.14.225\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n K_tnJM.Z5LxS.Y6vpeXIaCLdetEZik__\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.26.213.112",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 28,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.36.80.33",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 12,
+ "second": 28,
+ "minute": 59,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "4679b3c8-f187-4207-81fc-79982e721cb0",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6118",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:01:18 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.CreateVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.CreateVpnConnection_1.json
index ec7a38f722d..f278854b925 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.CreateVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.CreateVpnConnection_1.json
@@ -1,28 +1,29 @@
{
- "status_code": 200,
"data": {
"VpnConnection": {
- "VpnConnectionId": "vpn-c3d1cad1",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.150\n 255.255.255.252\n 30\n \n \n \n \n 35.161.37.166\n \n \n 169.254.14.149\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n zFFl0n8Gzdo_lUUxBVq5olSB26IItCOn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.238\n 255.255.255.252\n 30\n \n \n \n \n 35.163.39.95\n \n \n 169.254.14.237\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DBf239oVB9dPWGnhJjDQkGNrhUGkPRPK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
+ "CustomerGatewayId": "cgw-6113c87f",
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.165.156.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n z2x1x6uE.UaqsFoLbfNuGIzp0rZTLiT.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.58\n 255.255.255.252\n 30\n \n \n \n \n 52.39.145.205\n \n \n 169.254.15.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n dsNLWo6G.KUBY99TYvBnEMohghrqm6.k\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "VpnConnectionId": "vpn-9806e28d",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ },
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "ed4f8d6a-e9cf-4f71-9b42-b3fe24a7fc51",
+ "HTTPStatusCode": 200,
+ "RequestId": "f5a54fbe-aabf-4b5e-82f6-0fc9cd13e50c",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:20 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5234",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:12:25 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DeleteTags_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DeleteTags_1.json
index e5e648bdc04..bf0afd35e49 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DeleteTags_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DeleteTags_1.json
@@ -1,17 +1,17 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "8f963e2f-1049-4b47-a7e5-9c721bd64bd9",
+ "HTTPStatusCode": 200,
+ "RequestId": "2714ec51-d05e-4034-8401-2c99f5247755",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:22 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-type": "text/xml;charset=UTF-8",
+ "server": "AmazonEC2",
+ "date": "Mon, 16 Apr 2018 13:15:02 GMT",
+ "transfer-encoding": "chunked"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DeleteVpnConnection_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DeleteVpnConnection_1.json
index 24ae5107321..5cdff416eb9 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DeleteVpnConnection_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DeleteVpnConnection_1.json
@@ -1,17 +1,16 @@
{
- "status_code": 200,
"data": {
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "c0f8ab11-60bd-4d05-88bf-90a35243b5d7",
+ "HTTPStatusCode": 200,
+ "RequestId": "d635286c-b0e0-4048-9edd-5370c643aab4",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:23 GMT"
- }
+ "content-length": "239",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:15:03 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_1.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_1.json
index 0103bb84984..0e552275c2c 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_1.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_1.json
@@ -1,129 +1,167 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Ansible-Test",
+ "Value": "VPN"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d4d1cac6",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dad1cac8",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "One",
+ "Value": "one"
+ },
+ {
+ "Key": "Two",
+ "Value": "two"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d8d1caca",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-d9d1cacb",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-ded1cacc",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dfd1cacd",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-dcd1cace",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-ddd1cacf",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
{
- "VpnConnectionId": "vpn-c2d1cad0",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "6e8bb9f0-077a-4205-9f63-fc0bb35a08f5",
+ "HTTPStatusCode": 200,
+ "RequestId": "0a7676c6-68de-4301-b107-5ef0fcf5136e",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:20 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "5448",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:12:25 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_10.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_10.json
new file mode 100644
index 00000000000..f5afd3ed161
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_10.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.165.156.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n z2x1x6uE.UaqsFoLbfNuGIzp0rZTLiT.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.58\n 255.255.255.252\n 30\n \n \n \n \n 52.39.145.205\n \n \n 169.254.15.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n dsNLWo6G.KUBY99TYvBnEMohghrqm6.k\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.165.156.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.39.145.205",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 16,
+ "minute": 14,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "68efe4ef-9c50-414b-bd65-cbf418c25f72",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:14:30 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_11.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_11.json
new file mode 100644
index 00000000000..56c742fafed
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_11.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.165.156.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n z2x1x6uE.UaqsFoLbfNuGIzp0rZTLiT.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.58\n 255.255.255.252\n 30\n \n \n \n \n 52.39.145.205\n \n \n 169.254.15.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n dsNLWo6G.KUBY99TYvBnEMohghrqm6.k\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.165.156.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 38,
+ "minute": 14,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.39.145.205",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 16,
+ "minute": 14,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "7b7f58cb-4e94-4cb2-9d93-ad6e82949476",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:14:46 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_12.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_12.json
new file mode 100644
index 00000000000..fd2890b7efe
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_12.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.165.156.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n z2x1x6uE.UaqsFoLbfNuGIzp0rZTLiT.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.58\n 255.255.255.252\n 30\n \n \n \n \n 52.39.145.205\n \n \n 169.254.15.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n dsNLWo6G.KUBY99TYvBnEMohghrqm6.k\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.165.156.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 38,
+ "minute": 14,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.39.145.205",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 16,
+ "minute": 14,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "1d06bb9d-234a-43b4-9465-0f0d6769e7cb",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:15:01 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_13.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_13.json
new file mode 100644
index 00000000000..18c7b173fe7
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_13.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.165.156.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n z2x1x6uE.UaqsFoLbfNuGIzp0rZTLiT.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.58\n 255.255.255.252\n 30\n \n \n \n \n 52.39.145.205\n \n \n 169.254.15.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n dsNLWo6G.KUBY99TYvBnEMohghrqm6.k\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.165.156.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 38,
+ "minute": 14,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.39.145.205",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 16,
+ "minute": 14,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "d967fe54-4131-4d3c-8bec-ca51039d51f5",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:15:01 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_14.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_14.json
new file mode 100644
index 00000000000..3373af1da70
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_14.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.165.156.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n z2x1x6uE.UaqsFoLbfNuGIzp0rZTLiT.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.58\n 255.255.255.252\n 30\n \n \n \n \n 52.39.145.205\n \n \n 169.254.15.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n dsNLWo6G.KUBY99TYvBnEMohghrqm6.k\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.165.156.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 38,
+ "minute": 14,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.39.145.205",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 16,
+ "minute": 14,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "9bdf35c6-373f-4a9f-a86a-4f01cd15f742",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6122",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:15:02 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_15.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_15.json
new file mode 100644
index 00000000000..bfe18c03743
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_15.json
@@ -0,0 +1,214 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.165.156.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n z2x1x6uE.UaqsFoLbfNuGIzp0rZTLiT.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.58\n 255.255.255.252\n 30\n \n \n \n \n 52.39.145.205\n \n \n 169.254.15.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n dsNLWo6G.KUBY99TYvBnEMohghrqm6.k\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.165.156.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 38,
+ "minute": 14,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.39.145.205",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 16,
+ "minute": 14,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "available"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9e06e28b",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Ansible-Test",
+ "Value": "VPN"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9f06e28a",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9c06e289",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "One",
+ "Value": "one"
+ },
+ {
+ "Key": "Two",
+ "Value": "two"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9d06e288",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9206e287",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9306e286",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9006e285",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9706e282",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Correct",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6a06e27f",
+ "Category": "VPN",
+ "Tags": [
+ {
+ "Key": "Wrong",
+ "Value": "Tag"
+ }
+ ],
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ },
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-6f06e27a",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "bcdce0f0-10da-4e78-8fbe-ac147d62013b",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-type": "text/xml;charset=UTF-8",
+ "server": "AmazonEC2",
+ "date": "Mon, 16 Apr 2018 13:15:02 GMT",
+ "transfer-encoding": "chunked"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_16.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_16.json
new file mode 100644
index 00000000000..1e44c3c514b
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_16.json
@@ -0,0 +1,30 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "deleted"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "4d572583-1b0c-431f-a9f9-7acd45d588e8",
+ "HTTPHeaders": {
+ "content-length": "705",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:15:03 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_2.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_2.json
index 5391cae3e5e..d337c7f6938 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_2.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_2.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-c3d1cad1",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.150\n 255.255.255.252\n 30\n \n \n \n \n 35.161.37.166\n \n \n 169.254.14.149\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n zFFl0n8Gzdo_lUUxBVq5olSB26IItCOn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.238\n 255.255.255.252\n 30\n \n \n \n \n 35.163.39.95\n \n \n 169.254.14.237\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DBf239oVB9dPWGnhJjDQkGNrhUGkPRPK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.165.156.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n z2x1x6uE.UaqsFoLbfNuGIzp0rZTLiT.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.58\n 255.255.255.252\n 30\n \n \n \n \n 52.39.145.205\n \n \n 169.254.15.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n dsNLWo6G.KUBY99TYvBnEMohghrqm6.k\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.161.37.166",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.165.156.252",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 21,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.163.39.95",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.39.145.205",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 21,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "44120906-afb3-46bb-bce9-72676f8fd605",
+ "HTTPStatusCode": 200,
+ "RequestId": "c8f872e5-ef0e-4517-8ab8-9ef0788a04bc",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:21 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:12:26 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_3.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_3.json
index 9c51ce55cde..1d65fb2c689 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_3.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_3.json
@@ -1,65 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-c3d1cad1",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.150\n 255.255.255.252\n 30\n \n \n \n \n 35.161.37.166\n \n \n 169.254.14.149\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n zFFl0n8Gzdo_lUUxBVq5olSB26IItCOn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.238\n 255.255.255.252\n 30\n \n \n \n \n 35.163.39.95\n \n \n 169.254.14.237\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DBf239oVB9dPWGnhJjDQkGNrhUGkPRPK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.165.156.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n z2x1x6uE.UaqsFoLbfNuGIzp0rZTLiT.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.58\n 255.255.255.252\n 30\n \n \n \n \n 52.39.145.205\n \n \n 169.254.15.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n dsNLWo6G.KUBY99TYvBnEMohghrqm6.k\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.161.37.166",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.165.156.252",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 21,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.163.39.95",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.39.145.205",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 21,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "644cba92-8580-4c1c-a53e-25d2f0c7a7d9",
+ "HTTPStatusCode": 200,
+ "RequestId": "d99d51ce-6b82-4f53-ade0-d4967b769c93",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:22 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:12:41 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_4.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_4.json
index c2fa087e48f..3c63747c06c 100644
--- a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_4.json
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_4.json
@@ -1,175 +1,66 @@
{
- "status_code": 200,
"data": {
"VpnConnections": [
{
- "VpnConnectionId": "vpn-d6d1cac4",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.165.156.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n z2x1x6uE.UaqsFoLbfNuGIzp0rZTLiT.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.58\n 255.255.255.252\n 30\n \n \n \n \n 52.39.145.205\n \n \n 169.254.15.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n dsNLWo6G.KUBY99TYvBnEMohghrqm6.k\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
"Options": {
"StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d4d1cac6",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-dad1cac8",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d8d1caca",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-d9d1cacb",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-ded1cacc",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-dfd1cacd",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-dcd1cace",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-ddd1cacf",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-c2d1cad0",
- "Routes": [],
- "State": "deleted",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
- },
- {
- "VpnConnectionId": "vpn-c3d1cad1",
- "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.14.150\n 255.255.255.252\n 30\n \n \n \n \n 35.161.37.166\n \n \n 169.254.14.149\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n zFFl0n8Gzdo_lUUxBVq5olSB26IItCOn\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.14.238\n 255.255.255.252\n 30\n \n \n \n \n 35.163.39.95\n \n \n 169.254.14.237\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n DBf239oVB9dPWGnhJjDQkGNrhUGkPRPK\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n\n",
- "Routes": [],
+ },
+ "Type": "ipsec.1",
"VgwTelemetry": [
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.161.37.166",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.165.156.252",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 21,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
- },
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
{
- "Status": "DOWN",
- "AcceptedRouteCount": 0,
- "OutsideIpAddress": "35.163.39.95",
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.39.145.205",
+ "AcceptedRouteCount": 0,
"LastStatusChange": {
- "hour": 20,
- "__class__": "datetime",
- "month": 6,
- "second": 21,
- "microsecond": 0,
- "year": 2017,
- "day": 12,
- "minute": 23
- },
- "StatusMessage": ""
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
}
- ],
- "State": "pending",
- "VpnGatewayId": "vgw-35d70c2b",
- "CustomerGatewayId": "cgw-6113c87f",
- "Type": "ipsec.1",
- "Options": {
- "StaticRoutesOnly": true
- }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
}
- ],
+ ],
"ResponseMetadata": {
- "RetryAttempts": 0,
- "HTTPStatusCode": 200,
- "RequestId": "1303865c-0809-450a-8058-fc12a9dc5294",
+ "HTTPStatusCode": 200,
+ "RequestId": "f43f34f0-e4d7-4888-9037-2d3f99a30f8f",
"HTTPHeaders": {
- "transfer-encoding": "chunked",
- "vary": "Accept-Encoding",
- "server": "AmazonEC2",
- "content-type": "text/xml;charset=UTF-8",
- "date": "Mon, 12 Jun 2017 20:23:22 GMT"
- }
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:12:57 GMT"
+ },
+ "RetryAttempts": 0
}
- }
+ },
+ "status_code": 200
}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_5.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_5.json
new file mode 100644
index 00000000000..4b1ed8e7fd5
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_5.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.165.156.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n z2x1x6uE.UaqsFoLbfNuGIzp0rZTLiT.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.58\n 255.255.255.252\n 30\n \n \n \n \n 52.39.145.205\n \n \n 169.254.15.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n dsNLWo6G.KUBY99TYvBnEMohghrqm6.k\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.165.156.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.39.145.205",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "5b03354b-e15d-4cb7-92e3-b359870a99a3",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:13:13 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_6.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_6.json
new file mode 100644
index 00000000000..f10651beffd
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_6.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.165.156.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n z2x1x6uE.UaqsFoLbfNuGIzp0rZTLiT.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.58\n 255.255.255.252\n 30\n \n \n \n \n 52.39.145.205\n \n \n 169.254.15.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n dsNLWo6G.KUBY99TYvBnEMohghrqm6.k\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.165.156.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.39.145.205",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "a022a838-4264-4f08-b309-bea8058706ae",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:13:28 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_7.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_7.json
new file mode 100644
index 00000000000..6f5406b365a
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_7.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.165.156.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n z2x1x6uE.UaqsFoLbfNuGIzp0rZTLiT.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.58\n 255.255.255.252\n 30\n \n \n \n \n 52.39.145.205\n \n \n 169.254.15.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n dsNLWo6G.KUBY99TYvBnEMohghrqm6.k\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.165.156.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.39.145.205",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "f9ae9cd9-ce79-4245-863b-79fd5b39cdc1",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:13:44 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_8.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_8.json
new file mode 100644
index 00000000000..25e0713fdb4
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_8.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.165.156.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n z2x1x6uE.UaqsFoLbfNuGIzp0rZTLiT.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.58\n 255.255.255.252\n 30\n \n \n \n \n 52.39.145.205\n \n \n 169.254.15.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n dsNLWo6G.KUBY99TYvBnEMohghrqm6.k\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.165.156.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.39.145.205",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "57806378-a669-45b1-96ec-ab29ae8a47bb",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:13:59 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file
diff --git a/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_9.json b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_9.json
new file mode 100644
index 00000000000..98f25682a2a
--- /dev/null
+++ b/test/units/modules/cloud/amazon/placebo_recordings/ec2_vpc_vpn/remove_tags/ec2.DescribeVpnConnections_9.json
@@ -0,0 +1,66 @@
+{
+ "data": {
+ "VpnConnections": [
+ {
+ "CustomerGatewayId": "cgw-6113c87f",
+ "VpnConnectionId": "vpn-9806e28d",
+ "Category": "VPN",
+ "CustomerGatewayConfiguration": "\n\n cgw-6113c87f\n vgw-35d70c2b\n ipsec.1\n NoBGPVPNConnection\n \n \n \n 9.8.7.6\n \n \n 169.254.12.22\n 255.255.255.252\n 30\n \n \n \n \n 35.165.156.252\n \n \n 169.254.12.21\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n z2x1x6uE.UaqsFoLbfNuGIzp0rZTLiT.\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n \n \n \n 9.8.7.6\n \n \n 169.254.15.58\n 255.255.255.252\n 30\n \n \n \n \n 52.39.145.205\n \n \n 169.254.15.57\n 255.255.255.252\n 30\n \n \n \n sha1\n aes-128-cbc\n 28800\n group2\n main\n dsNLWo6G.KUBY99TYvBnEMohghrqm6.k\n \n \n esp\n hmac-sha1-96\n aes-128-cbc\n 3600\n group2\n tunnel\n true\n true\n 1379\n \n 10\n 3\n \n \n \n",
+ "Routes": [],
+ "Options": {
+ "StaticRoutesOnly": true
+ },
+ "Type": "ipsec.1",
+ "VgwTelemetry": [
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "35.165.156.252",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ },
+ {
+ "StatusMessage": "",
+ "Status": "DOWN",
+ "OutsideIpAddress": "52.39.145.205",
+ "AcceptedRouteCount": 0,
+ "LastStatusChange": {
+ "year": 2018,
+ "hour": 13,
+ "second": 26,
+ "minute": 12,
+ "__class__": "datetime",
+ "day": 16,
+ "month": 4,
+ "microsecond": 0
+ }
+ }
+ ],
+ "VpnGatewayId": "vgw-35d70c2b",
+ "State": "pending"
+ }
+ ],
+ "ResponseMetadata": {
+ "HTTPStatusCode": 200,
+ "RequestId": "7efaeb2a-f071-4178-af9c-1bcdbb383d0d",
+ "HTTPHeaders": {
+ "vary": "Accept-Encoding",
+ "content-length": "6120",
+ "server": "AmazonEC2",
+ "content-type": "text/xml;charset=UTF-8",
+ "date": "Mon, 16 Apr 2018 13:14:15 GMT"
+ },
+ "RetryAttempts": 0
+ }
+ },
+ "status_code": 200
+}
\ No newline at end of file