UNPKG

@itentialopensource/adapter-aws_ec2

Version:

This adapter integrates with system described as: Aws_Ec2.

502 lines (501 loc) 13.2 kB
{ "id": "Adapter-aws_ec2", "type": "Awsec2", "properties": { "host": "ec2.us-east-1.amazonaws.com", "region": "us-east-1", "port": 443, "choosepath": "", "base_path": "/", "version": "", "cache_location": "none", "encode_pathvars": true, "encode_queryvars": true, "save_metric": false, "stub": true, "protocol": "https", "service": "ec2", "xmlArrayKeys": [ "item" ], "authentication": { "auth_method": "aws_authentication", "username": "username", "password": "password", "token": "token", "token_timeout": 180000, "token_cache": "local", "invalid_token_error": 401, "auth_field": "header.headers.Cookie", "auth_field_format": "Token {token}", "auth_logging": false, "client_id": "", "client_secret": "", "grant_type": "", "auth_request_datatype": "", "auth_response_datatype": "", "token_response_placement": "", "sensitive": [], "sso": { "protocol": "", "host": "", "port": 0 }, "multiStepAuthCalls": [ { "name": "", "requestFields": {}, "responseFields": {}, "successfullResponseCode": 200 } ], "aws_access_key": "aws_access_key", "aws_secret_key": "aws_secret_key", "aws_session_token": "aws_session_token", "aws_iam_role": "", "aws_sts": { "region": "us-east-1", "sslEnable": true, "endpoint": "", "proxy": "", "proxyagent": "", "use_proxy_for_initial_auth": false, "externalId": "" } }, "healthcheck": { "type": "startup", "frequency": 60000, "query_object": { "Action": "DescribeRegions", "Version": "2016-11-15" }, "addlHeaders": {} }, "throttle": { "throttle_enabled": false, "number_pronghorns": 1, "sync_async": "sync", "max_in_queue": 1000, "concurrent_max": 1, "expire_timeout": 0, "avg_runtime": 200, "priorities": [ { "value": 0, "percent": 100 } ] }, "request": { "number_redirects": 0, "number_retries": 3, "limit_retry_error": 0, "failover_codes": [], "attempt_timeout": 5000, "global_request": { "payload": {}, "uriOptions": {}, "addlHeaders": {}, "authData": {} }, "healthcheck_on_timeout": true, "return_raw": false, "archiving": false, "return_request": false, "keep_alive_interval": 0 }, "proxy": { "enabled": false, "host": "", "port": 1, "protocol": "http", "username": "", "password": "" }, "ssl": { "ecdhCurve": "", "enabled": false, "accept_invalid_cert": false, "ca_file": "", "ca_file_content": "", "key_file": "", "cert_file": "", "secure_protocol": "", "ciphers": "" }, "mongo": { "url": "", "host": "", "port": 0, "database": "", "dbAuth": false, "username": "", "password": "", "replSet": "", "addSrv": false, "db_ssl": { "enabled": false, "accept_invalid_cert": false, "ca_file": "", "key_file": "", "cert_file": "" } }, "devicebroker": { "enabled": true, "getDevice": [ { "path": "/", "method": "GET", "query": { "Action": "DescribeVpcs", "Version": "2016-11-15", "VpcId.1": "{vpcId}" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "DescribeVpcsResponse.vpcSet.item", "responseFields": { "name": "{vpcId}", "ostype": "{vpc}", "ostypePrefix": "aws-", "ipaddress": "{cidrBlock}", "port": "n/a" } } ], "getDevicesFiltered": [ { "path": "/", "method": "GET", "query": { "Action": "DescribeVpcs", "Version": "2016-11-15" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "DescribeVpcsResponse.vpcSet.item", "responseFields": { "name": "{vpcId}", "ostype": "{vpc}", "ostypePrefix": "aws-", "ipaddress": "{cidrBlock}", "port": "n/a", "vpcId": "{vpcId}" } } ], "isAlive": [ { "path": "/", "method": "GET", "query": { "Action": "DescribeVpcs", "Version": "2016-11-15", "VpcId.1": "{vpcId}" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "DescribeVpcsResponse.vpcSet.item", "responseFields": { "status": "{state}", "statusValue": "available" } } ], "getConfig": [ { "path": "/", "method": "GET", "query": { "Action": "DescribeInternetGateways", "Version": "2016-11-15", "Filter.1.Name": "attachment.vpc-id", "Filter.1.Value": "{vpcId}" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "", "responseFields": {} }, { "path": "/", "method": "GET", "query": { "Action": "DescribeSubnets", "Version": "2016-11-15", "Filter.1.Name": "vpc-id", "Filter.1.Value": "{vpcId}" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "", "responseFields": {} }, { "path": "/", "method": "GET", "query": { "Action": "DescribeRouteTables", "Version": "2016-11-15", "Filter.1.Name": "vpc-id", "Filter.1.Value": "{vpcId}" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "", "responseFields": {} }, { "path": "/", "method": "GET", "query": { "Action": "DescribeNetworkAcls", "Version": "2016-11-15", "Filter.1.Name": "vpc-id", "Filter.1.Value": "{vpcId}" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "", "responseFields": {} }, { "path": "/", "method": "GET", "query": { "Action": "DescribeVpcPeeringConnections", "Version": "2016-11-15", "Filter.1.Name": "requester-vpc-info.vpc-id", "Filter.1.Value": "{vpcId}" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "", "responseFields": {} }, { "path": "/", "method": "GET", "query": { "Action": "DescribeVpcEndpoints", "Version": "2016-11-15", "Filter.1.Name": "vpc-id", "Filter.1.Value": "{vpcId}" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "", "responseFields": {} }, { "path": "/", "method": "GET", "query": { "Action": "DescribeNatGateways", "Version": "2016-11-15", "Filter.1.Name": "vpc-id", "Filter.1.Value": "{vpcId}" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "", "responseFields": {} }, { "path": "/", "method": "GET", "query": { "Action": "DescribeSecurityGroups", "Version": "2016-11-15", "Filter.1.Name": "vpc-id", "Filter.1.Value": "{vpcId}" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "", "responseFields": {} }, { "path": "/", "method": "GET", "query": { "Action": "DescribeInstances", "Version": "2016-11-15", "Filter.1.Name": "vpc-id", "Filter.1.Value": "{vpcId}" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "", "responseFields": {} }, { "path": "/", "method": "GET", "query": { "Action": "DescribeVpnConnections", "Version": "2016-11-15", "VpnConnectionId.1.Value": "{vpcId}" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "", "responseFields": {} }, { "path": "/", "method": "GET", "query": { "Action": "DescribeVpnGateways", "Version": "2016-11-15", "Filter.1.Name": "attachment.vpc-id", "Filter.1.Value": "{vpcId}" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "", "responseFields": {} }, { "path": "/", "method": "GET", "query": { "Action": "DescribeNetworkInterfaces", "Version": "2016-11-15", "Filter.1.Name": "vpc-id", "Filter.1.Value": "{vpcId}" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "", "responseFields": {} }, { "path": "/", "method": "GET", "query": { "Action": "DescribeVpcs", "Version": "2016-11-15", "Filter.1.Name": "vpc-id", "Filter.1.Value": "{vpcId}" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "", "responseFields": {} } ], "getCount": [ { "path": "/", "method": "GET", "query": { "Action": "DescribeVpcs", "Version": "2016-11-15" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "DescribeVpcsResponse.vpcSet.item", "responseFields": { "name": "{vpcId}", "ostype": "vpc", "ostypePrefix": "aws-", "ipaddress": "{cidrBlock}", "port": "n/a", "vpcId": "{vpcId}" } } ] }, "cache": { "enabled": false, "entities": [ { "entityType": "device", "frequency": 3600, "flushOnFail": false, "limit": 1000, "retryAttempts": 5, "sort": true, "populate": [ { "path": "/", "method": "GET", "pagination": { "offsetVar": "", "limitVar": "", "incrementBy": "limit", "requestLocation": "query" }, "query": { "Action": "DescribeVpcs", "Version": "2016-11-15" }, "body": {}, "headers": {}, "handleFailure": "ignore", "requestFields": {}, "responseDatakey": "result.response.DescribeVpcsResponse.vpcSet.item", "responseFields": { "cidrBlock": "{cidrBlock}", "name": "{vpcId}", "ostype": "{vpc}", "ostypePrefix": "aws-", "ipaddress": "{cidrBlock}", "port": "n/a", "vpcId": "{vpcId}" } } ], "cachedTasks": [ { "name": "", "filterField": "", "filterLoc": "" } ] } ] } }, "groups": [], "brokers": [], "logLevel": "none", "timeout": 120000 }