Open sanderr opened 3 years ago
I noticed a test failure that seems to indicate that the VM was not cleaned up properly. This might be caused by running the cleanup and starting the tests to quickly. This needs to be looked at. Another possibility is creating VMs with random names so that we are sure they are no longer there.
___________________________________ test_vm ____________________________________
project = <pytest_inmanta.plugin.Project object at 0x7fdac52e69e8>
ec2 = ec2.ServiceResource(), subnet_id = 'subnet-03d6169e1d1f487f9'
latest_amzn_image = ec2.Image(id='ami-019304ea8d137b773')
resource_name_prefix = 'inmanta-unit-test'
def test_vm(project, ec2, subnet_id, latest_amzn_image, resource_name_prefix: str):
"""
Test VM creation.
"""
key = (
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCsiYV4Cr2lD56bkVabAs2i0WyGSjJbuNHP6IDf8Ru3Pg7DJkz0JaBmETHNjIs+yQ98DNkwH9gZX0"
"gfrSgX0YfA/PwTatdPf44dwuwWy+cjS2FAqGKdLzNVwLfO5gf74nit4NwATyzakoojHn7YVGnd9ScWfwFNd5jQ6kcLZDq/1w== "
"bart@wolf.inmanta.com"
)
model = f"""
import unittest
import aws
import ssh
provider = aws::Provider(name="test", access_key=std::get_env("AWS_ACCESS_KEY_ID"), region=std::get_env("AWS_REGION"),
secret_key=std::get_env("AWS_SECRET_ACCESS_KEY"), availability_zone="a")
key = ssh::Key(name="{resource_name_prefix}", public_key="{key}")
aws::VirtualMachine(provider=provider, flavor="t2.small", image="{latest_amzn_image.id}", user_data="", public_key=key,
subnet_id="{subnet_id}", name="{resource_name_prefix}")
"""
project.compile(model)
project.deploy_resource("aws::VirtualMachine")
instances = [
x
for x in ec2.instances.filter(
Filters=[{"Name": "tag:Name", "Values": [resource_name_prefix]}]
)
if x.state["Name"] not in INSTANCE_TERMINATING_STATES
]
assert len(instances) == 1
# run again -> idempotent
project.compile(model)
> project.deploy_resource("aws::VirtualMachine")
/home/jenkins/workspace/v-dependencies-module--1.46.0_10/tests/test_aws.py:65:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_inmanta.plugin.Project object at 0x7fdac52e69e8>
resource_type = 'aws::VirtualMachine'
status = <ResourceState.deployed: 'deployed'>, run_as_root = False
change = None, filter_args = {}
res = aws::VirtualMachine[test,name=inmanta-unit-test], @py_assert2 = None
@py_assert1 = <ResourceState.skipped: 'skipped'>
ctx = <inmanta.agent.handler.HandlerContext object at 0x7fdac39e2a90>
log = <inmanta.data.LogLine object at 0x7fdac2fcaf60>
def deploy_resource(
self,
resource_type: str,
status: const.ResourceState = const.ResourceState.deployed,
run_as_root: bool = False,
change: const.Change = None,
**filter_args: typing.Dict[str, object],
) -> Resource:
"""
Deploy a resource of the given type, that matches the filter and assert the outcome
:param resource_type: the type of resource to deploy
:param filter_args: a set of kwargs, the resource must have all matching attributes set to the given values
:param run_as_root: run the handler as root or not
:param status: the expected status of the deployment
:param change: the expected change performed by the handler
:return: the resource
"""
res = self.get_resource(resource_type, **filter_args)
assert res is not None, "No resource found of given type and filter args"
ctx = self.deploy(res, run_as_root)
if ctx.status != status:
print("Deploy did not result in correct status")
print("Requested changes: ", ctx._changes)
for log in ctx.logs:
print("Log: ", log._data["msg"])
print(
"Kwargs: ",
[
"%s: %s" % (k, v)
for k, v in log._data["kwargs"].items()
if k != "traceback"
],
)
if "traceback" in log._data["kwargs"]:
print("Traceback:\n", log._data["kwargs"]["traceback"])
> assert ctx.status == status
E AssertionError: assert <ResourceStat...ed: 'skipped'> == <ResourceStat...d: 'deployed'>
E - deployed
E + skipped
/home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib64/python3.6/site-packages/pytest_inmanta/plugin.py:580: AssertionError
------------------------------ Captured log setup ------------------------------
DEBUG botocore.hooks:hooks.py:417 Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane
DEBUG botocore.hooks:hooks.py:417 Changing event name from before-call.apigateway to before-call.api-gateway
DEBUG botocore.hooks:hooks.py:417 Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict
DEBUG botocore.hooks:hooks.py:417 Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration
DEBUG botocore.hooks:hooks.py:417 Changing event name from before-parameter-build.route53 to before-parameter-build.route-53
DEBUG botocore.hooks:hooks.py:417 Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search
DEBUG botocore.hooks:hooks.py:417 Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto-scaling.CreateLaunchConfiguration.complete-section
DEBUG botocore.hooks:hooks.py:417 Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask
DEBUG botocore.hooks:hooks.py:417 Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch-logs.CreateExportTask.complete-section
DEBUG botocore.hooks:hooks.py:417 Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search
DEBUG botocore.hooks:hooks.py:417 Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch-domain.Search.complete-section
DEBUG botocore.session:session.py:311 Setting config variable for region to 'eu-west-1'
DEBUG botocore.loaders:loaders.py:174 Loading JSON file: /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib64/python3.6/site-packages/boto3/data/ec2/2016-11-15/resources-1.json
DEBUG botocore.loaders:loaders.py:174 Loading JSON file: /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib64/python3.6/site-packages/botocore/data/endpoints.json
DEBUG botocore.hooks:hooks.py:210 Event choose-service-name: calling handler <function handle_service_name_alias at 0x7fdac673eae8>
DEBUG botocore.loaders:loaders.py:174 Loading JSON file: /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib64/python3.6/site-packages/botocore/data/ec2/2016-11-15/service-2.json
DEBUG botocore.hooks:hooks.py:210 Event creating-client-class.ec2: calling handler <function add_generate_presigned_url at 0x7fdac67e96a8>
DEBUG botocore.endpoint:endpoint.py:292 Setting ec2 timeout as (60, 60)
DEBUG botocore.loaders:loaders.py:174 Loading JSON file: /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib64/python3.6/site-packages/botocore/data/_retry.json
DEBUG botocore.client:client.py:166 Registering retry handlers for service: ec2
DEBUG boto3.resources.factory:factory.py:66 Loading ec2:ec2
DEBUG botocore.hooks:hooks.py:210 Event creating-resource-class.ec2.ServiceResource: calling handler <function lazy_call.<locals>._handler at 0x7fdac664b488>
DEBUG botocore.loaders:loaders.py:174 Loading JSON file: /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib64/python3.6/site-packages/botocore/data/ec2/2016-11-15/paginators-1.json
DEBUG boto3.resources.collection:collection.py:160 Calling ec2:describe_images with {'Owners': ['amazon'], 'Filters': [{'Name': 'name', 'Values': ['amzn-ami-hvm-*-x86_64-gp2']}]}
DEBUG botocore.hooks:hooks.py:210 Event before-parameter-build.ec2.DescribeImages: calling handler <bound method ParameterAlias.alias_parameter_in_call of <botocore.handlers.ParameterAlias object at 0x7fdac6753c50>>
DEBUG botocore.hooks:hooks.py:210 Event before-parameter-build.ec2.DescribeImages: calling handler <function generate_idempotent_uuid at 0x7fdac6758ea0>
DEBUG botocore.hooks:hooks.py:210 Event before-call.ec2.DescribeImages: calling handler <function inject_api_version_header_if_needed at 0x7fdac67606a8>
DEBUG botocore.endpoint:endpoint.py:101 Making request for OperationModel(name=DescribeImages) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': 'Boto3/1.17.109 Python/3.6.8 Linux/4.18.0-305.3.1.el8.x86_64 Botocore/1.20.110 Resource'}, 'body': {'Action': 'DescribeImages', 'Version': '2016-11-15', 'Owner.1': 'amazon', 'Filter.1.Name': 'name', 'Filter.1.Value.1': 'amzn-ami-hvm-*-x86_64-gp2'}, 'url': 'https://ec2.eu-west-1.amazonaws.com/', 'context': {'client_region': 'eu-west-1', 'client_config': <botocore.config.Config object at 0x7fdac5e81ac8>, 'has_streaming_input': False, 'auth_type': None}}
DEBUG botocore.hooks:hooks.py:210 Event request-created.ec2.DescribeImages: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7fdac5e81a90>>
DEBUG botocore.hooks:hooks.py:210 Event choose-signer.ec2.DescribeImages: calling handler <function set_operation_specific_signer at 0x7fdac6758d90>
DEBUG botocore.auth:auth.py:380 Calculating signature using v4 auth.
DEBUG botocore.auth:auth.py:381 CanonicalRequest:
POST
/
content-type:application/x-www-form-urlencoded; charset=utf-8
host:ec2.eu-west-1.amazonaws.com
x-amz-date:20210712T211421Z
content-type;host;x-amz-date
7c013c49a2f6d5790fe2af069d8edfa8c7460664a11ae734e604c5cdd49e46ec
DEBUG botocore.auth:auth.py:383 StringToSign:
AWS4-HMAC-SHA256
20210712T211421Z
20210712/eu-west-1/ec2/aws4_request
e7b36cd20865cc5f877afbe8ac3a040cd361a75d6e228fcc076e0482dd50d571
DEBUG botocore.auth:auth.py:385 Signature:
1dad819fefbb7ac8695dfe583fbd1e44ceb3aecdc919917e4da4a7d83a7f2949
DEBUG botocore.endpoint:endpoint.py:187 Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://ec2.eu-west-1.amazonaws.com/, headers={'Content-Type': b'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': b'Boto3/1.17.109 Python/3.6.8 Linux/4.18.0-305.3.1.el8.x86_64 Botocore/1.20.110 Resource', 'X-Amz-Date': b'20210712T211421Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=****/20210712/eu-west-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1dad819fefbb7ac8695dfe583fbd1e44ceb3aecdc919917e4da4a7d83a7f2949', 'Content-Length': '119'}>
DEBUG botocore.httpsession:httpsession.py:50 Certificate path: /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib64/python3.6/site-packages/certifi/cacert.pem
DEBUG urllib3.connectionpool:connectionpool.py:975 Starting new HTTPS connection (1): ec2.eu-west-1.amazonaws.com:443
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG botocore.parsers:parsers.py:233 Response headers: {'x-amzn-RequestId': '4c0450c2-9704-4e2d-9d58-0feb0491f493', 'Cache-Control': 'no-cache, no-store', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'Content-Type': 'text/xml;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'vary': 'accept-encoding', 'Date': 'Mon, 12 Jul 2021 21:14:21 GMT', 'Server': 'AmazonEC2'}
DEBUG botocore.parsers:parsers.py:234 Response body:
b'<?xml version="1.0" encoding="UTF-8"?>\n<DescribeImagesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">\n <requestId>4c0450c2-9704-4e2d-9d58-0feb0491f493</requestId>\n <imagesSet>\n <item>\n <imageId>ami-00890f614e48ce866</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20200318.2-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2020-04-07T05:39:32.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20200318.2-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20200318.2 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-05ce8c4d068c8249b</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-015232c01a82b847b</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20200918.0-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2020-09-23T17:37:57.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20200918.0-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20200918.0 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-01e44c178fbbee358</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-019304ea8d137b773</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20210521.1-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2021-05-27T07:21:17.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20210521.1-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20210521.1 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0f5421e5dbf233a2a</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-01ccc867</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2017.03.0.20170417-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2017-04-17T08:10:48.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2017.03.0.20170417-x86_64-gp2</name>\n <description>Amazon Linux AMI 2017.03.0.20170417 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-06ff5119377ae9a9f</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-028188d9b49b32a80</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20190826-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2019-08-26T20:12:17.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20190826-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20190826 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-05c4bb84f3ffc33d0</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-031a03cb800ecb0d5</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20200602.1-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2020-06-16T06:29:11.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20200602.1-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20200602.1 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-09bd22875a7b819ea</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-031a3db8bacbcdc20</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20181116-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2018-11-17T00:54:54.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20181116-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20181116 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-019c9b44e0361bbb0</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-034d940df32c75d15</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20200318.1-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2020-03-22T10:08:05.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20200318.1-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20200318.1 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0fcd613928f632fb2</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-03c242f4af81b2365</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20190514-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2019-05-13T21:16:47.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20190514-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20190514 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-07534ddc8898f7855</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-047bb4163c506cd98</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20180811-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2018-08-11T02:30:07.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20180811-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20180811 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0a1cd41e685344f94</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-04c2d1d01e928b8e2</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20200729.0-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2020-08-11T20:09:50.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20200729.0-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20200729.0 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0da8b1a38f714dd6c</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-0532f1e27dce41388</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20210408.0-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2021-04-13T14:01:41.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20210408.0-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20210408.0 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-03e109456b1773a5c</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-06965d227fdac9555</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20210224.0-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2021-02-24T11:18:15.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20210224.0-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20210224.0 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-09e827a5d8adf3f26</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-07123fefbc35ec9cf</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20210126.1-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2021-01-26T16:39:02.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20210126.1-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20210126.1 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-006987009c8d8a09a</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-0717dc2c13076628f</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20210319.0-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2021-03-19T16:27:18.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20210319.0-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20210319.0 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-050be2c0b1510ffcf</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-071f4ce599deff521</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20191219.0-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2019-12-20T22:13:54.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20191219.0-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20191219.0 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-03b77e24bf9b6efe5</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-0744c1fc56cc1c3e6</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20201209.1-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2020-12-22T07:12:40.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20201209.1-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20201209.1 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-05a42ba5477ed9fdd</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-075eca7e</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2017.09.1.20180103-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2018-01-03T19:02:53.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2017.09.1.20180103-x86_64-gp2</name>\n <description>Amazon Linux AMI 2017.09.1.20180103 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0f366781726cda491</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-0862aabda3fb488b5</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20190611-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2019-06-11T01:59:29.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20190611-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20190611 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-03223d6be8b1043ca</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-08935252a36e25f85</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20181129-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2018-11-28T21:08:11.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20181129-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20181129 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-019c9b44e0361bbb0</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-08a3e19d8b5deb857</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20201028.0-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2020-10-29T23:47:49.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20201028.0-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20201028.0 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0cdb3353e8fc4c2f2</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-096758dcc47dc6c27</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20200716.0-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2020-07-21T18:33:15.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20200716.0-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20200716.0 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0f52fc95668b3edd5</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-0a7c31280fbd23a86</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20200904.0-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2020-09-04T02:10:37.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20200904.0-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20200904.0 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0074acc6ef2a50aa6</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-0b4b2d87bdd32212a</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20200514.0-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2020-05-20T00:56:52.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20200514.0-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20200514.0 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0fe776e1e5d24f433</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-0c1299a276e458ddc</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2017.09.1-testlongids.20180307-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2018-03-07T07:04:49.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2017.09.1-testlongids.20180307-x86_64-gp2</name>\n <description>Amazon Linux AMI 2017.09.1-testlongids.20180307 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0fc63e7b864024b24</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-0e61341fa75fcaa18</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20200206.0-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2020-02-08T01:22:06.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20200206.0-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20200206.0 x86_64 HVM gp2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-070ba79905978517c</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-1a962263</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2017.09.1.20171120-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2017-11-20T22:23:55.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2017.09.1.20171120-x86_64-gp2</name>\n <description>Amazon Linux AMI 2017.09.1.20171120 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-049e2cbd0e7328e2a</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-3bfab942</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2017.09.1.20180307-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2018-03-07T07:04:49.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2017.09.1.20180307-x86_64-gp2</name>\n <description>Amazon Linux AMI 2017.09.1.20180307 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0c7e60ade4bc39e58</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-70edb016</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2016.09.1.20170119-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2017-01-20T23:39:50.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2016.09.1.20170119-x86_64-gp2</name>\n <description>Amazon Linux AMI 2016.09.1.20170119 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0d6b5a4e866a22927</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-760aaa0f</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2017.09.1.20171103-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2017-11-03T23:20:52.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2017.09.1.20171103-x86_64-gp2</name>\n <description>Amazon Linux AMI 2017.09.1.20171103 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0465ac035e2dac85d</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-7d50491b</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2017.03.1.20170617-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2017-06-17T21:55:53.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2017.03.1.20170617-x86_64-gp2</name>\n <description>Amazon Linux AMI 2017.03.1.20170617 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-075d9de1b8299f8bc</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-9398d3e0</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2016.09.0.20161028-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2016-10-29T00:46:01.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2016.09.0.20161028-x86_64-gp2</name>\n <description>Amazon Linux AMI 2016.09.0.20161028 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-756cc97c</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-9cbe9be5</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20180412-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2018-04-13T00:25:53.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20180412-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20180412 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-03cb10efc0e42879e</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-acd005d5</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2017.09.0.20170930-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2017-10-01T09:05:54.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2017.09.0.20170930-x86_64-gp2</name>\n <description>Amazon Linux AMI 2017.09.0.20170930 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0ffa67ca805adfd5f</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-c51e3eb6</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2016.09.1.20161221-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2016-12-20T23:29:46.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2016.09.1.20161221-x86_64-gp2</name>\n <description>Amazon Linux AMI 2016.09.1.20161221 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0741fccc2a2d6a245</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-c56d5da3</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2017.03.rc-0.20170320-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2017-03-20T09:28:57.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2017.03.rc-0.20170320-x86_64-gp2</name>\n <description>Amazon Linux AMI 2017.03.rc-0.20170320 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0e76b9ac66284c00e</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-ca0135b3</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20180508-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2018-05-08T18:10:50.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20180508-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20180508 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-09d3638ae7e8cb12c</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-ca18d8b3</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2017.09.rc-0.20170913-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2017-09-13T00:20:51.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2017.09.rc-0.20170913-x86_64-gp2</name>\n <description>Amazon Linux AMI 2017.09.rc-0.20170913 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0b080574da3558ace</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-d41d58a7</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2016.09.0.20160923-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2016-09-23T10:13:17.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2016.09.0.20160923-x86_64-gp2</name>\n <description>Amazon Linux AMI 2016.09.0.20160923 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-adc5fe41</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-d7b9a2b1</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2017.03.1.20170623-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2017-06-23T23:28:11.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2017.03.1.20170623-x86_64-gp2</name>\n <description>Amazon Linux AMI 2017.03.1.20170623 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-00778ade06aa7eb2c</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-d834aba1</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2017.09.1.20180115-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2018-01-15T19:18:54.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2017.09.1.20180115-x86_64-gp2</name>\n <description>Amazon Linux AMI 2017.09.1.20180115 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0fcab3e3796f11100</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-df99a4b9</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2017.03.rc-1.20170327-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2017-03-28T01:54:52.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2017.03.rc-1.20170327-x86_64-gp2</name>\n <description>Amazon Linux AMI 2017.03.rc-1.20170327 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-086022cf3f4fbe93c</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-e4515e0e</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2018.03.0.20180622-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2018-06-22T22:25:52.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2018.03.0.20180622-x86_64-gp2</name>\n <description>Amazon Linux AMI 2018.03.0.20180622 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-010347c9b6cfe5aae</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-e487179d</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2017.09.1.20180108-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2018-01-08T18:42:50.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2017.09.1.20180108-x86_64-gp2</name>\n <description>Amazon Linux AMI 2017.09.1.20180108 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-017ed935db60ec5e3</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-e5083683</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2017.03.0.20170401-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2017-04-02T05:52:49.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2017.03.0.20170401-x86_64-gp2</name>\n <description>Amazon Linux AMI 2017.03.0.20170401 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-070e08749c497ec2e</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n <item>\n <imageId>ami-ebd02392</imageId>\n <imageLocation>amazon/amzn-ami-hvm-2017.03.1.20170812-x86_64-gp2</imageLocation>\n <imageState>available</imageState>\n <imageOwnerId>137112412989</imageOwnerId>\n <creationDate>2017-08-13T02:40:50.000Z</creationDate>\n <isPublic>true</isPublic>\n <architecture>x86_64</architecture>\n <imageType>machine</imageType>\n <sriovNetSupport>simple</sriovNetSupport>\n <imageOwnerAlias>amazon</imageOwnerAlias>\n <name>amzn-ami-hvm-2017.03.1.20170812-x86_64-gp2</name>\n <description>Amazon Linux AMI 2017.03.1.20170812 x86_64 HVM GP2</description>\n <rootDeviceType>ebs</rootDeviceType>\n <rootDeviceName>/dev/xvda</rootDeviceName>\n <blockDeviceMapping>\n <item>\n <deviceName>/dev/xvda</deviceName>\n <ebs>\n <snapshotId>snap-0eaa863e5b937dc97</snapshotId>\n <volumeSize>8</volumeSize>\n <deleteOnTermination>true</deleteOnTermination>\n <volumeType>gp2</volumeType>\n <encrypted>false</encrypted>\n </ebs>\n </item>\n </blockDeviceMapping>\n <virtualizationType>hvm</virtualizationType>\n <hypervisor>xen</hypervisor>\n <enaSupport>true</enaSupport>\n <platformDetails>Linux/UNIX</platformDetails>\n <usageOperation>RunInstances</usageOperation>\n </item>\n </imagesSet>\n</DescribeImagesResponse>'
DEBUG botocore.hooks:hooks.py:210 Event needs-retry.ec2.DescribeImages: calling handler <botocore.retryhandler.RetryHandler object at 0x7fdac5eb02e8>
DEBUG botocore.retryhandler:retryhandler.py:187 No retry needed.
DEBUG boto3.resources.factory:factory.py:66 Loading ec2:Image
DEBUG botocore.hooks:hooks.py:210 Event choose-service-name: calling handler <function handle_service_name_alias at 0x7fdac673eae8>
DEBUG botocore.loaders:loaders.py:174 Loading JSON file: /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib64/python3.6/site-packages/botocore/data/elb/2012-06-01/service-2.json
DEBUG botocore.hooks:hooks.py:210 Event creating-client-class.elastic-load-balancing: calling handler <function add_generate_presigned_url at 0x7fdac67e96a8>
DEBUG botocore.endpoint:endpoint.py:292 Setting elasticloadbalancing timeout as (60, 60)
DEBUG botocore.client:client.py:166 Registering retry handlers for service: elb
INFO inmanta.env:env.py:56 Creating new virtual environment in /tmp/tmp3gzytanr/.env
INFO inmanta.module:module.py:1512 Checking out 1.0.5 on /tmp/tmp3gzytanr/libs/platform
INFO inmanta.module:module.py:1512 Checking out 3.0.2 on /tmp/tmp3gzytanr/libs/std
INFO inmanta.module:module.py:1512 Checking out 1.2.1 on /tmp/tmp3gzytanr/libs/ip
INFO inmanta.module:module.py:1512 Checking out 1.0.5 on /tmp/tmp3gzytanr/libs/net
INFO inmanta.module:module.py:1512 Checking out 0.6.3 on /tmp/tmp3gzytanr/libs/ssh
INFO inmanta.module:module.py:1512 Checking out 0.3.3 on /tmp/tmp3gzytanr/libs/web
DEBUG inmanta.module:module.py:913 Parsing took 3.248553 seconds
DEBUG inmanta.env:env.py:102 Created a new virtualenv at /tmp/tmp3gzytanr/.env
INFO inmanta.module:module.py:1071 verifying project
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.aws
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.aws
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.std
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.std
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.std.resources
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.std.resources
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.ip
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.ip
DEBUG inmanta.env:env.py:279 ['/tmp/tmp3gzytanr/.env/bin/python3', '-m', 'pip', 'install', '-r', '/tmp/tmpx5stxd76']: Looking in indexes: https://artifacts.internal.inmanta.com/inmanta/dev
Requirement already satisfied: Jinja2~=3.0 in /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib/python3.6/site-packages (from -r /tmp/tmpx5stxd76 (line 1)) (3.0.1)
Requirement already satisfied: boto3==1.17.109 in /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib/python3.6/site-packages (from -r /tmp/tmpx5stxd76 (line 2)) (1.17.109)
Requirement already satisfied: dataclasses~=0.7 in /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib/python3.6/site-packages (from -r /tmp/tmpx5stxd76 (line 3)) (0.8)
Requirement already satisfied: email_validator~=1.1 in /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib/python3.6/site-packages (from -r /tmp/tmpx5stxd76 (line 4)) (1.1.3)
Collecting netaddr~=0.8.0
Using cached https://artifacts.internal.inmanta.com/root/pypi/%2Bf/966/6d0232c32d265/netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB)
Requirement already satisfied: pydantic~=1.8 in /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib/python3.6/site-packages (from -r /tmp/tmpx5stxd76 (line 6)) (1.8.2)
Collecting zipp~=3.4.1
Using cached https://artifacts.internal.inmanta.com/root/pypi/%2Bf/a53/03f8ad20aff64/zipp-3.4.2-py3-none-any.whl (5.3 kB)
Requirement already satisfied: botocore<1.21.0,>=1.20.109 in /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib/python3.6/site-packages (from boto3==1.17.109->-r /tmp/tmpx5stxd76 (line 2)) (1.20.110)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib/python3.6/site-packages (from boto3==1.17.109->-r /tmp/tmpx5stxd76 (line 2)) (0.10.0)
Requirement already satisfied: s3transfer<0.5.0,>=0.4.0 in /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib/python3.6/site-packages (from boto3==1.17.109->-r /tmp/tmpx5stxd76 (line 2)) (0.4.2)
Requirement already satisfied: MarkupSafe>=2.0 in /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib/python3.6/site-packages (from Jinja2~=3.0->-r /tmp/tmpx5stxd76 (line 1)) (2.0.1)
Requirement already satisfied: idna>=2.0.0 in /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib/python3.6/site-packages (from email_validator~=1.1->-r /tmp/tmpx5stxd76 (line 4)) (2.10)
Requirement already satisfied: dnspython>=1.15.0 in /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib/python3.6/site-packages (from email_validator~=1.1->-r /tmp/tmpx5stxd76 (line 4)) (2.1.0)
Collecting importlib-resources
Using cached https://artifacts.internal.inmanta.com/root/pypi/%2Bf/a01/43290bef3cbc9/importlib_resources-5.2.0-py3-none-any.whl (27 kB)
Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib/python3.6/site-packages (from pydantic~=1.8->-r /tmp/tmpx5stxd76 (line 6)) (3.10.0.0)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib/python3.6/site-packages (from botocore<1.21.0,>=1.20.109->boto3==1.17.109->-r /tmp/tmpx5stxd76 (line 2)) (2.8.1)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib/python3.6/site-packages (from botocore<1.21.0,>=1.20.109->boto3==1.17.109->-r /tmp/tmpx5stxd76 (line 2)) (1.26.6)
Requirement already satisfied: six>=1.5 in /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib/python3.6/site-packages (from python-dateutil<3.0.0,>=2.1->botocore<1.21.0,>=1.20.109->boto3==1.17.109->-r /tmp/tmpx5stxd76 (line 2)) (1.16.0)
Installing collected packages: zipp, importlib-resources, netaddr
Attempting uninstall: zipp
Found existing installation: zipp 3.5.0
Not uninstalling zipp at /home/jenkins/workspace/v-dependencies-module--1.46.0_10/env/lib/python3.6/site-packages, outside environment /tmp/tmp3gzytanr/.env
Can't uninstall 'zipp'. No files were found to uninstall.
Successfully installed importlib-resources-5.2.0 netaddr-0.8.0 zipp-3.4.2
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.aws
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.std
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.std.resources
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.ip
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.ip
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.ssh
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.ssh
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG conftest:conftest.py:120 Cleanup: terminating vm ec2.Instance(id='i-0608625f5ff820d8b')
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG conftest:conftest.py:120 Cleanup: terminating vm ec2.Instance(id='i-089f52b1fa939e330')
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG conftest:conftest.py:120 Cleanup: terminating vm ec2.Instance(id='i-0baff0d0894f7670c')
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG conftest:conftest.py:120 Cleanup: terminating vm ec2.Instance(id='i-053f3b5f412554248')
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG conftest:conftest.py:120 Cleanup: terminating vm ec2.Instance(id='i-05d34128e62d49a6d')
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG conftest:conftest.py:120 Cleanup: terminating vm ec2.Instance(id='i-0f3edd395b1983513')
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 221
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 248
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 212
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 221
DEBUG urllib3.connectionpool:connectionpool.py:975 Starting new HTTPS connection (1): elasticloadbalancing.eu-west-1.amazonaws.com:443
DEBUG urllib3.connectionpool:connectionpool.py:461 https://elasticloadbalancing.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 335
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 907
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 221
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 929
------------------------------ Captured log call -------------------------------
DEBUG root:plugin.py:678 Compiling model:
01
02 import unittest
03 import aws
04 import ssh
05 provider = aws::Provider(name="test", access_key=std::get_env("AWS_ACCESS_KEY_ID"), region=std::get_env("AWS_REGION"),
06 secret_key=std::get_env("AWS_SECRET_ACCESS_KEY"), availability_zone="a")
07 key = ssh::Key(name="inmanta-unit-test", public_key="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCsiYV4Cr2lD56bkVabAs2i0WyGSjJbuNHP6IDf8Ru3Pg7DJkz0JaBmETHNjIs+yQ98DNkwH9gZX0gfrSgX0YfA/PwTatdPf44dwuwWy+cjS2FAqGKdLzNVwLfO5gf74nit4NwATyzakoojHn7YVGnd9ScWfwFNd5jQ6kcLZDq/1w== bart@wolf.inmanta.com")
08 aws::VirtualMachine(provider=provider, flavor="t2.small", image="ami-019304ea8d137b773", user_data="", public_key=key,
09 subnet_id="subnet-03d6169e1d1f487f9", name="inmanta-unit-test")
10
INFO inmanta.env:env.py:56 Creating new virtual environment in /tmp/tmp3gzytanr/.env
WARNING inmanta.module:module.py:1186 Module unittest is not version controlled, we recommend you do this as soon as possible.
DEBUG inmanta.module:module.py:913 Parsing took 0.079530 seconds
INFO inmanta.module:module.py:1071 verifying project
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.ssh
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.ssh
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.ip
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.ip
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.std
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.std
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.std.resources
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.std.resources
INFO inmanta.resources:resources.py:87 Reloading module std::Service
INFO inmanta.resources:resources.py:87 Reloading module std::File
INFO inmanta.resources:resources.py:87 Reloading module std::Directory
INFO inmanta.resources:resources.py:87 Reloading module std::Package
INFO inmanta.resources:resources.py:87 Reloading module std::Symlink
INFO inmanta.resources:resources.py:87 Reloading module std::AgentConfig
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.aws
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.aws
INFO inmanta.resources:resources.py:87 Reloading module aws::ELB
INFO inmanta.resources:resources.py:87 Reloading module aws::VirtualMachine
INFO inmanta.resources:resources.py:87 Reloading module aws::Volume
INFO inmanta.resources:resources.py:87 Reloading module aws::analytics::ElasticSearch
INFO inmanta.resources:resources.py:87 Reloading module aws::VPC
INFO inmanta.resources:resources.py:87 Reloading module aws::Subnet
INFO inmanta.resources:resources.py:87 Reloading module aws::InternetGateway
INFO inmanta.resources:resources.py:87 Reloading module aws::Route
INFO inmanta.resources:resources.py:87 Reloading module aws::SecurityGroup
INFO inmanta.resources:resources.py:87 Reloading module aws::database::RDS
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.unittest
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.unittest
DEBUG inmanta.compiler:__init__.py:64 Starting compile
DEBUG inmanta.execute.scheduler:scheduler.py:324 Iteration 1 (e: 33, w: 0, p: 0, done: 0, time: 0.014296)
DEBUG inmanta.execute.scheduler:scheduler.py:324 Iteration 2 (e: 1, w: 3, p: 119, done: 196, time: 0.006915)
DEBUG inmanta.execute.scheduler:scheduler.py:385 Finishing statements with no waiters
DEBUG inmanta.execute.scheduler:scheduler.py:324 Iteration 3 (e: 3, w: 0, p: 0, done: 198, time: 0.000760)
DEBUG inmanta.execute.scheduler:scheduler.py:385 Finishing statements with no waiters
INFO inmanta.execute.scheduler:scheduler.py:399 Iteration 3 (e: 0, w: 0, p: 0, done: 203, time: 0.000253)
INFO inmanta.execute.scheduler:scheduler.py:411 Total compilation time 0.022545
DEBUG inmanta.compiler:__init__.py:79 Compile done
DEBUG asyncio:selector_events.py:54 Using selector: EpollSelector
DEBUG root:cache.py:126 Cache open version 0
DEBUG inmanta.agent.io:__init__.py:86 Using io class <class 'inmanta.agent.io.local.LocalIO'> for uri local: (local, {})
DEBUG inmanta.agent.handler:handler.py:369 resource aws::VirtualMachine[test,name=inmanta-unit-test],v=0: Calling read_resource
DEBUG urllib3.connectionpool:connectionpool.py:975 Starting new HTTPS connection (1): ec2.eu-west-1.amazonaws.com:443
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 221
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG inmanta.agent.handler:handler.py:369 resource aws::VirtualMachine[test,name=inmanta-unit-test],v=0: Calling create_resource
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 376
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 1098
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 1863
INFO inmanta.agent.handler:handler.py:369 resource aws::VirtualMachine[test,name=inmanta-unit-test],v=0: args {}
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 4914
DEBUG root:cache.py:146 Cache close version 0
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG root:plugin.py:678 Compiling model:
01
02 import unittest
03 import aws
04 import ssh
05 provider = aws::Provider(name="test", access_key=std::get_env("AWS_ACCESS_KEY_ID"), region=std::get_env("AWS_REGION"),
06 secret_key=std::get_env("AWS_SECRET_ACCESS_KEY"), availability_zone="a")
07 key = ssh::Key(name="inmanta-unit-test", public_key="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCsiYV4Cr2lD56bkVabAs2i0WyGSjJbuNHP6IDf8Ru3Pg7DJkz0JaBmETHNjIs+yQ98DNkwH9gZX0gfrSgX0YfA/PwTatdPf44dwuwWy+cjS2FAqGKdLzNVwLfO5gf74nit4NwATyzakoojHn7YVGnd9ScWfwFNd5jQ6kcLZDq/1w== bart@wolf.inmanta.com")
08 aws::VirtualMachine(provider=provider, flavor="t2.small", image="ami-019304ea8d137b773", user_data="", public_key=key,
09 subnet_id="subnet-03d6169e1d1f487f9", name="inmanta-unit-test")
10
INFO inmanta.env:env.py:56 Creating new virtual environment in /tmp/tmp3gzytanr/.env
WARNING inmanta.module:module.py:1186 Module unittest is not version controlled, we recommend you do this as soon as possible.
DEBUG inmanta.module:module.py:913 Parsing took 0.086729 seconds
INFO inmanta.module:module.py:1071 verifying project
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.ssh
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.ssh
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.ip
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.ip
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.std
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.std
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.std.resources
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.std.resources
INFO inmanta.resources:resources.py:87 Reloading module std::Service
INFO inmanta.resources:resources.py:87 Reloading module std::File
INFO inmanta.resources:resources.py:87 Reloading module std::Directory
INFO inmanta.resources:resources.py:87 Reloading module std::Package
INFO inmanta.resources:resources.py:87 Reloading module std::Symlink
INFO inmanta.resources:resources.py:87 Reloading module std::AgentConfig
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.aws
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.aws
INFO inmanta.resources:resources.py:87 Reloading module aws::ELB
INFO inmanta.resources:resources.py:87 Reloading module aws::VirtualMachine
INFO inmanta.resources:resources.py:87 Reloading module aws::Volume
INFO inmanta.resources:resources.py:87 Reloading module aws::analytics::ElasticSearch
INFO inmanta.resources:resources.py:87 Reloading module aws::VPC
INFO inmanta.resources:resources.py:87 Reloading module aws::Subnet
INFO inmanta.resources:resources.py:87 Reloading module aws::InternetGateway
INFO inmanta.resources:resources.py:87 Reloading module aws::Route
INFO inmanta.resources:resources.py:87 Reloading module aws::SecurityGroup
INFO inmanta.resources:resources.py:87 Reloading module aws::database::RDS
DEBUG inmanta.module:module.py:1315 Loading module inmanta_plugins.unittest
DEBUG inmanta.loader:loader.py:435 Loading module: inmanta_plugins.unittest
INFO inmanta.resources:resources.py:87 Reloading module unittest::Resource
INFO inmanta.resources:resources.py:87 Reloading module unittest::IgnoreResource
DEBUG inmanta.compiler:__init__.py:64 Starting compile
DEBUG inmanta.execute.scheduler:scheduler.py:324 Iteration 1 (e: 33, w: 0, p: 0, done: 0, time: 0.012570)
DEBUG inmanta.execute.scheduler:scheduler.py:324 Iteration 2 (e: 1, w: 3, p: 119, done: 196, time: 0.006341)
DEBUG inmanta.execute.scheduler:scheduler.py:385 Finishing statements with no waiters
DEBUG inmanta.execute.scheduler:scheduler.py:324 Iteration 3 (e: 3, w: 0, p: 0, done: 198, time: 0.000551)
DEBUG inmanta.execute.scheduler:scheduler.py:385 Finishing statements with no waiters
INFO inmanta.execute.scheduler:scheduler.py:399 Iteration 3 (e: 0, w: 0, p: 0, done: 203, time: 0.000232)
INFO inmanta.execute.scheduler:scheduler.py:411 Total compilation time 0.019996
DEBUG inmanta.compiler:__init__.py:79 Compile done
DEBUG root:cache.py:126 Cache open version 0
DEBUG inmanta.agent.io:__init__.py:86 Using io class <class 'inmanta.agent.io.local.LocalIO'> for uri local: (local, {})
DEBUG inmanta.agent.handler:handler.py:369 resource aws::VirtualMachine[test,name=inmanta-unit-test],v=0: Calling read_resource
DEBUG urllib3.connectionpool:connectionpool.py:975 Starting new HTTPS connection (1): ec2.eu-west-1.amazonaws.com:443
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 521
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 1203
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 1203
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 346
DEBUG inmanta.agent.handler:handler.py:369 resource aws::VirtualMachine[test,name=inmanta-unit-test],v=0: Calling update_resource
WARNING inmanta.agent.handler:handler.py:369 resource aws::VirtualMachine[test,name=inmanta-unit-test],v=0: attempting to modify running instance, diff {'subnet_id': {'current': None, 'desired': 'subnet-03d6169e1d1f487f9'}}
WARNING inmanta.agent.handler:handler.py:369 resource aws::VirtualMachine[test,name=inmanta-unit-test],v=0: Resource aws::VirtualMachine[test,name=inmanta-unit-test] was skipped: ('Modifying a running instance is not supported.',)
DEBUG root:cache.py:146 Cache close version 0
---------------------------- Captured log teardown -----------------------------
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG conftest:conftest.py:120 Cleanup: terminating vm ec2.Instance(id='i-0608625f5ff820d8b')
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG conftest:conftest.py:120 Cleanup: terminating vm ec2.Instance(id='i-089f52b1fa939e330')
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG conftest:conftest.py:120 Cleanup: terminating vm ec2.Instance(id='i-0baff0d0894f7670c')
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG conftest:conftest.py:120 Cleanup: terminating vm ec2.Instance(id='i-053f3b5f412554248')
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG conftest:conftest.py:120 Cleanup: terminating vm ec2.Instance(id='i-05d9cd4e162d9555a')
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG conftest:conftest.py:120 Cleanup: terminating vm ec2.Instance(id='i-05d34128e62d49a6d')
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG conftest:conftest.py:120 Cleanup: terminating vm ec2.Instance(id='i-0f3edd395b1983513')
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 3580
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 3580
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 3580
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 3580
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 3580
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 3580
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 3580
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 None
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 221
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 248
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 1162
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 243
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 1098
DEBUG conftest:conftest.py:170 Cleanup: deleting subnet ec2.Subnet(id='subnet-03d6169e1d1f487f9')
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 225
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 219
DEBUG conftest:conftest.py:175 Cleanup: deleting vpc ec2.Vpc(id='vpc-049a785624750dc66')
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 521
DEBUG conftest:conftest.py:194 Cleanup: deleting key ec2.KeyPairInfo(name='inmanta-unit-test')
DEBUG urllib3.connectionpool:connectionpool.py:461 https://ec2.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 227
DEBUG urllib3.connectionpool:connectionpool.py:272 Resetting dropped connection: elasticloadbalancing.eu-west-1.amazonaws.com
DEBUG urllib3.connectionpool:connectionpool.py:461 https://elasticloadbalancing.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 200 335
- generated xml file: /home/jenkins/workspace/v-dependencies-module--1.46.0_10/junit.xml -
=========================== short test summary info ============================
FAILED tests/test_aws.py::test_vm - AssertionError: assert <ResourceStat...ed...
=================== 1 failed, 9 passed in 139.70s (0:02:19) ====================
See this Jenkins log.