Aws.config[:ec2] = { stub_responses: { describe_vpcs: { vpcs: [ { vpc_id: 'vpc-ab123cde', tags: [ { key: 'Name', value: 'my-vpc' } ] } ] }, describe_subnets: { subnets: [ { state: 'available', vpc_id: 'vpc-ab123cde', subnet_id: 'subnet-1234a567', cidr_block: '10.0.1.0/24', tags: [ { key: 'Name', value: 'my-subnet' } ] } ] } } }