r/aws•
monkey_fish

Sample/Test data from SDK calls

I'm looking to test an application that interfaces with the AWS API. I don't want to actually have to build dummy infrastructure at this time to test it, so I just want varied sample data to do some validation. Is there any data source that exists?

Posted Jul 1, 2018, 9:26 PM UTC

17
halftomato•
3
monkey_fishOP•

Thanks - I'll have to check that out. Should give me at least a good start.

1
mda90•

Have used moto (https://github.com/spulec/moto) in additional to localstack to get a pretty comprehensive set of AWS resources for testing.

2
monkey_fishOP•

Thanks for that. I think the word I was looking for was mock. I did a search using that and a bunch of things come back.

1
flyoverstat•
1
monkey_fishOP•

I may be missing it, but this seems like a general public data repository. I'm looking for data specifically for the AWS API. For example, is there a data set when running ec2 describe-instances. I just want to be able to test my application against that type of data.

1
phpchap1981•

Most of the aws client libraries (CLI, php, node etc.) are essentially http client wrappers around the AWS api, so you will need to mock the request/response cycle for your chosen language. I’m not aware of any purely AWS mocked library, that being said you could setup something like Charles proxy/wickmock to inspect / playback http traffic. Personally I’ve always mocked at the aws client level

1