class AwsEC2Platform extends Platform implements SshBasedExperiment<AwsEC2Container> {

    AwsEC2Container createContainerFromInstance (Instance instance) {
        if (instance.getState().getCode() == AwsEC2Constants.AWS_TERMINATED_CODE) return null;
        AwsEC2Container container = containerManager.getMatchingContainer(AwsEC2Container.class, instance.getInstanceId());
        if (container == null) {
            container = buildContainerFromInstance(instance);
            log.info("Found new AWS EC2 Container {}", v(DATADOG_CONTAINER_KEY, container));
            containerManager.offer(container);
        } else {
            log.debug("Found existing AWS EC2 Container {}", v(DATADOG_CONTAINER_KEY, container));
        }
        return container;
    }

    @Autowired  AwsEC2Platform(AmazonEC2 amazonEC2, ContainerManager containerManager, AwsEC2SelfAwareness awsEC2SelfAwareness);
    private  AwsEC2Platform();

}